@road-labs/map-sdk 0.0.27 → 0.0.28-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,45 +1,29 @@
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",Sn={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}} additional fee","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","filters.remoteStartStop":"Supports remote charge","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}} extra kosten","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","filters.remoteStartStop":"Ondersteunt op afstand laden","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}} Zusatzgebühr","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","filters.remoteStartStop":"Unterstützt Fernladen","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}} frais supplémentaires","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é","filters.remoteStartStop":"Prend en charge la recharge à distance","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}} costi aggiuntivi","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à","filters.remoteStartStop":"Supporta la ricarica da remoto","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}} tarifa adicional","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","filters.remoteStartStop":"Admite carga remota","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 rn=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({}),[T,w]=m.useState([t.options.locationId].filter(Boolean)),[g,O]=m.useState([]),[C,_]=m.useState({type:"success"}),[x,v]=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,$)=>b[$]),[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||[]),S=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 S({ids:h,...A==="v2"?{status:b}:{}});return O(P.filter($=>$?.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(()=>{T?.length&&fe({ids:T,status:p.status})},[T]),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 n=require("react/jsx-runtime"),h=require("react"),Wn=require("react-dom/client"),Me=require("react-dom"),Gn="app-module_container",qn="app-module_loader",Pt={container:Gn,loader:qn};function Zn(e){const[t,i]=h.useState(!1),r=h.useMemo(()=>new IntersectionObserver(([a])=>{a.isIntersecting&&(i(!0),r.disconnect())}),[e]);return h.useEffect(()=>{if(e.current)return r.observe(e.current),()=>r.disconnect()},[e.current]),t}function Kn(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 Jn={"search.placeholder":"Enter a location...","cdrPrice.flatFee":"{{total}} additional fee","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","filters.remoteStartStop":"Supports remote charge","filters.searchPhrase":"Search","filters.searchPhrasePlaceholder":"EVSE ID or name","filters.operator":"Include operator(s)","filters.excludeOperator":"Exclude operator(s)","filters.authMethodCapabilities":"Payment methods","filters.authCapability.rfid":"RFID","filters.authCapability.plugAndCharge":"Plug and Charge","filters.authCapability.creditCard":"Credit / debit card","filters.authCapability.remoteStartStop":"Remote start/stop","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"},Xn={"search.placeholder":"Voer een locatie in...","cdrPrice.flatFee":"{{total}} extra kosten","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","filters.remoteStartStop":"Ondersteunt op afstand laden","filters.searchPhrase":"Zoeken","filters.searchPhrasePlaceholder":"EVSE-ID of naam","filters.operator":"Operator(s) opnemen","filters.excludeOperator":"Operator(s) uitsluiten","filters.authMethodCapabilities":"Betaalmethoden","filters.authCapability.rfid":"RFID","filters.authCapability.plugAndCharge":"Plug and Charge","filters.authCapability.creditCard":"Creditcard / pinpas","filters.authCapability.remoteStartStop":"Op afstand starten/stoppen","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"},Qn={"search.placeholder":"Geben Sie einen Ort ein...","cdrPrice.flatFee":"{{total}} Zusatzgebühr","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","filters.remoteStartStop":"Unterstützt Fernladen","filters.searchPhrase":"Suche","filters.searchPhrasePlaceholder":"EVSE-ID oder Name","filters.operator":"Betreiber einschließen","filters.excludeOperator":"Betreiber ausschließen","filters.authMethodCapabilities":"Zahlungsmethoden","filters.authCapability.rfid":"RFID","filters.authCapability.plugAndCharge":"Plug and Charge","filters.authCapability.creditCard":"Kredit- / Debitkarte","filters.authCapability.remoteStartStop":"Fernstart/-stopp","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"},er={"search.placeholder":"Entrez un lieu...","cdrPrice.flatFee":"{{total}} frais supplémentaires","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é","filters.remoteStartStop":"Prend en charge la recharge à distance","filters.searchPhrase":"Rechercher","filters.searchPhrasePlaceholder":"ID EVSE ou nom","filters.operator":"Inclure le(s) opérateur(s)","filters.excludeOperator":"Exclure le(s) opérateur(s)","filters.authMethodCapabilities":"Moyens de paiement","filters.authCapability.rfid":"RFID","filters.authCapability.plugAndCharge":"Plug and Charge","filters.authCapability.creditCard":"Carte de crédit / débit","filters.authCapability.remoteStartStop":"Démarrage/arrêt à distance","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 à"},tr={"search.placeholder":"Inserisci una posizione...","cdrPrice.flatFee":"{{total}} costi aggiuntivi","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à","filters.remoteStartStop":"Supporta la ricarica da remoto","filters.searchPhrase":"Cerca","filters.searchPhrasePlaceholder":"ID EVSE o nome","filters.operator":"Includi operatore/i","filters.excludeOperator":"Escludi operatore/i","filters.authMethodCapabilities":"Metodi di pagamento","filters.authCapability.rfid":"RFID","filters.authCapability.plugAndCharge":"Plug and Charge","filters.authCapability.creditCard":"Carta di credito / debito","filters.authCapability.remoteStartStop":"Avvio/stop remoto","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"},nr={"search.placeholder":"Ingrese una ubicación...","cdrPrice.flatFee":"{{total}} tarifa adicional","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","filters.remoteStartStop":"Admite carga remota","filters.searchPhrase":"Buscar","filters.searchPhrasePlaceholder":"ID de EVSE o nombre","filters.operator":"Incluir operador(es)","filters.excludeOperator":"Excluir operador(es)","filters.authMethodCapabilities":"Métodos de pago","filters.authCapability.rfid":"RFID","filters.authCapability.plugAndCharge":"Plug and Charge","filters.authCapability.creditCard":"Tarjeta de crédito / débito","filters.authCapability.remoteStartStop":"Inicio/parada remota","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"},rr={en:Jn,nl:Xn,de:Qn,fr:er,it:tr,es:nr};async function ze(e,t){try{const i=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(i.status){case 200:return i.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: ${i.status}`)}}catch(i){if(i instanceof DOMException)return null;throw i}}async function ir(e,t,i,r,{precision:a,bbox:o,...s}){return ze(`${e}/1/map/search`,{method:"POST",version:t,authorization:i,body:JSON.stringify({gridPrecision:a,bbox:o,...r?.length>0&&{locationIds:r},...s,...s?.operatorOnly?{operator:[s.operatorOnly]}:{},...s?.chargingAccessibility&&s.chargingAccessibility!=="ALL"&&{chargingAccessibility:s.chargingAccessibility},searchPhrase:s?.searchPhrase||void 0,excludeOperator:s?.excludeOperator?.length?s.excludeOperator:void 0,authMethodCapabilities:s?.authMethodCapabilities?.length?s.authMethodCapabilities:void 0})})}async function or(e,t,i,{origin:r,ids:a}){return ze(`${e}/1/map/tariff`,{method:"POST",version:t,authorization:i,body:JSON.stringify({connection_id:r.connectionId,country_code:r.countryCode,party_id:r.partyId,tariff_ids:a})})}async function ar(e,t,i,{ids:r,status:a}){return ze(`${e}/1/map/locations`,{method:"POST",version:t,authorization:i,body:JSON.stringify({ids:r,...t==="v2"?{status:a}:{}})})}async function sr(e,t,i,{type:r,country_code:a,party_id:o,location_id:s,evse_uid:l}){return ze(`${e}/1/map/report-problem`,{method:"POST",version:t,authorization:i,body:JSON.stringify({type:r,country_code:a,party_id:o,location_id:s,evse_uid:l})})}async function cr(e,t,i){return(await ze(`${e}/1/map/config`,{version:t,authorization:i}))?.data}const yt=h.createContext({isReady:!1,setPlace:()=>{},t:e=>`Translate ${e}`,language:"en"}),lr=({children:e,...t})=>{const[i,r]=h.useState(t.options),[a,o]=h.useState({preferredOperators:t.options.preferredOperators,showOperatorOnly:t.options.showOperatorOnly,showNoAdditionalFeeFilter:t.options.showNoAdditionalFeeFilter,showPublishingModeFilter:t.options.showPublishingModeFilter,showVehicleAvailabilityFilter:t.options.showVehicleAvailabilityFilter,...t.options.showSearchPhraseFilter!==void 0&&{showSearchPhraseFilter:t.options.showSearchPhraseFilter},...t.options.showExcludeOperatorFilter!==void 0&&{showExcludeOperatorFilter:t.options.showExcludeOperatorFilter},...t.options.showPaymentMethodFilter!==void 0&&{showPaymentMethodFilter:t.options.showPaymentMethodFilter}}),[s,l]=h.useState(),[d,c]=h.useState(),[u,f]=h.useState(t.options.position),[p,v]=h.useState({}),[y,T]=h.useState([t.options.locationId].filter(Boolean)),[N,k]=h.useState([]),[U,D]=h.useState({type:"success"}),[j,C]=h.useState(!1),Y=window.location.search.includes("debug=true");Y&&console.log("map-context options",t.options);const re=h.useMemo(()=>Kn(t.options.language||"en"),[t.options.language]),ae=h.useMemo(()=>(g,S)=>rr[re][g].replace(/\{\{(\w+)\}\}/g,(A,P)=>S[P]),[re]),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 W=t.options.version,K=t.options.authorization;const ce=window.location.search.split("map_key=")[1];ce&&(K=ce,W="v2");const me={...t.options.infraProviderId&&{infraProviderId:t.options.infraProviderId},...t.options.partyId&&{partyId:t.options.partyId},...t.options.partyIds?.length&&{partyIds:t.options.partyIds},...t.options.evseId&&{evseId:t.options.evseId},...t.options.from&&{from:t.options.from},...t.options.to&&{to:t.options.to}},_=g=>ir(Z,W,K,t.options.limitToLocationIds||[],{...me,...g}),R=ar.bind(null,Z,W,K),G=or.bind(null,Z,W,K),ee=sr.bind(null,Z,W,K);async function fe({ids:g,status:S}){D({type:"loading"});try{const{data:A}=await R({ids:g,...W==="v2"?{status:S}:{}});return k(A.filter(P=>P?.evses?.length)),D({type:"success"}),A}catch(A){D({type:"error",error:A})}}h.useEffect(()=>{t.options.locationId&&fe({ids:[t.options.locationId],status:p.status}).then(g=>{if(g?.length){const S=g[0];S.geoLocation?.coordinates&&f({lng:S.geoLocation?.coordinates[0],lat:S.geoLocation?.coordinates[1]})}})},[t.options.locationId]),h.useEffect(()=>{cr(Z,W,K).then(g=>{Y&&console.log("retrieved remote config",g),o({...g,...a}),r({googleApiKey:g.googleMapsApiKey,...i,...g}),!i.locationId&&!i?.position?.lat&&g.ipLatitude?(Y&&console.debug("setting position from ip latitude and longitude"),f({lat:g.ipLatitude,lng:g.ipLongitude})):i.locationId||(Y&&console.debug("setting position from options position"),f(i?.position?.lat?i.position:{lat:52.3676,lng:4.9041}))}).catch(g=>l(g))},[]),h.useEffect(()=>{y?.length&&fe({ids:y,status:p.status})},[y]),h.useEffect(()=>{const{theming:g,shadowRoot:S}=t.options;if(S){const A=S.querySelectorAll("#road-map-styles")[0]||document.createElement("style");A.setAttribute("type","text/css"),A.setAttribute("id","road-map-styles"),A.innerHTML=`
2
2
  :host {
3
- --roadmap-brand-color: ${h?.brandColor||"#6102d3"};
4
- --roadmap-background-color: ${h?.backgroundColor||"#ffffff"};
5
- --roadmap-text-color: ${h?.textColor||"#2a2a2a"};
6
- --roadmap-border-color: ${h?.borderColor||"#dddddd"};
7
- --roadmap-font-family: ${h?.fontFamily||"Inter"};
3
+ --roadmap-brand-color: ${g?.brandColor||"#6102d3"};
4
+ --roadmap-background-color: ${g?.backgroundColor||"#ffffff"};
5
+ --roadmap-text-color: ${g?.textColor||"#2a2a2a"};
6
+ --roadmap-border-color: ${g?.borderColor||"#dddddd"};
7
+ --roadmap-font-family: ${g?.fontFamily||"Inter"};
8
8
  }
9
- `,b.appendChild(P)}},[t.options.theming]);const Y=!!(d&&r?.googleApiKey),K=m.useMemo(()=>({options:r,setPlace:u,place:c,t:j,language:W,fetchGeohashes:D,locations:g,locationsStatus:C,filterConfiguration:i,setFilters:E,setLocationsIds:w,locationIds:T,filters:p,fetchTariffs:ee,reportProblem:Q,fetchLocations:S,isReady:Y,position:d,isSearching:x,setIsSearching:v}),[d,W,g,C,ee,Q,t.options,c,u,E,p,i,T,w,j,D,S,Y,x]);return s.jsx(rn.Provider,{value:K,children:e})};function ie(){const e=m.useContext(rn);if(e===void 0)throw new Error("useMapContext must be used within a MapProvider");return e}function ti(e){const{isReady:t}=m.useContext(rn),r=m.useRef(null),i=$o(r)&&t;return s.jsxs("div",{ref:r,className:Sn.container,style:{height:`${e.height}px`},children:[!i&&s.jsx("div",{className:Sn.loader,children:"Loading..."}),i&&e.children]})}const ni="Map-module_container",ri={container:ni};function oi(e,t,r,o){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return new(r||(r=Promise))(function(n,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?n(d.value):i(d.value).then(l,c)}u((o=o.apply(e,[])).next())})}function ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var si=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(i=o;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(n=Object.keys(t),o=n.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=o;i--!==0;){var a=n[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},ai=ii(si);const On="__googleMapsScriptId";var ze;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(ze||(ze={}));class Le{constructor({apiKey:t,authReferrerPolicy:r,channel:o,client:i,id:n=On,language:a,libraries:l=[],mapIds:c,nonce:u,region:d,retries:f=3,url:p="https://maps.googleapis.com/maps/api/js",version:E}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=r,this.channel=o,this.client=i,this.id=n||On,this.language=a,this.libraries=l,this.mapIds=c,this.nonce=u,this.region=d,this.retries=f,this.url=p,this.version=E,Le.instance){if(!ai(this.options,Le.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Le.instance.options)}`);return Le.instance}Le.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?ze.FAILURE:this.done?ze.SUCCESS:this.loading?ze.LOADING:ze.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,r)=>{this.loadCallback(o=>{o?r(o.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,r;if(document.getElementById(this.id)){this.callback();return}const o={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(o).forEach(n=>!o[n]&&delete o[n]),!((r=(t=window?.google)===null||t===void 0?void 0:t.maps)===null||r===void 0)&&r.importLibrary||(n=>{let a,l,c,u="The Google Maps JavaScript API",d="google",f="importLibrary",p="__ib__",E=document,T=window;T=T[d]||(T[d]={});const w=T.maps||(T.maps={}),g=new Set,O=new URLSearchParams,C=()=>a||(a=new Promise((_,x)=>oi(this,void 0,void 0,function*(){var v;yield l=E.createElement("script"),l.id=this.id,O.set("libraries",[...g]+"");for(c in n)O.set(c.replace(/[A-Z]/g,I=>"_"+I[0].toLowerCase()),n[c]);O.set("callback",d+".maps."+p),l.src=this.url+"?"+O,w[p]=_,l.onerror=()=>a=x(Error(u+" could not load.")),l.nonce=this.nonce||((v=E.querySelector("script[nonce]"))===null||v===void 0?void 0:v.nonce)||"",E.head.append(l)})));w[f]?console.warn(u+" only loads once. Ignoring:",n):w[f]=(_,...x)=>g.add(_)&&C().then(()=>w[f](_,...x))})(o);const i=this.libraries.map(n=>this.importLibrary(n));i.length||i.push(this.importLibrary("core")),Promise.all(i).then(()=>this.callback(),n=>{const a=new ErrorEvent("error",{error:n});this.loadErrorCallback(a)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const r=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${r} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},r)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}let jt;function br(e,t){if(jt)return jt;const r=new Le({apiKey:e,version:"weekly",language:t});return jt=r,r}const Lt="0123456789bcdefghjkmnpqrstuvwxyz";class ue{static encode(t,r,o){if(typeof o>"u"){for(let p=1;p<=12;p++){const E=ue.encode(t,r,p),T=ue.decode(E);if(T.lat==t&&T.lon==r)return E}o=12}if(t=Number(t),r=Number(r),o=Number(o),isNaN(t)||isNaN(r)||isNaN(o))throw new Error("Invalid geohash");let i=0,n=0,a=!0,l="",c=-90,u=90,d=-180,f=180;for(;l.length<o;){if(a){const p=(d+f)/2;r>=p?(i=i*2+1,d=p):(i=i*2,f=p)}else{const p=(c+u)/2;t>=p?(i=i*2+1,c=p):(i=i*2,u=p)}a=!a,++n==5&&(l+=Lt.charAt(i),n=0,i=0)}return l}static decode(t){const r=ue.bounds(t),o=r.sw.lat,i=r.sw.lon,n=r.ne.lat,a=r.ne.lon;let l=(o+n)/2,c=(i+a)/2;return l=l.toFixed(Math.floor(2-Math.log(n-o)/Math.LN10)),c=c.toFixed(Math.floor(2-Math.log(a-i)/Math.LN10)),{lat:Number(l),lon:Number(c)}}static bounds(t){if(t.length==0)throw new Error("Invalid geohash");t=t.toLowerCase();let r=!0,o=-90,i=90,n=-180,a=180;for(let c=0;c<t.length;c++){const u=t.charAt(c),d=Lt.indexOf(u);if(d==-1)throw new Error("Invalid geohash");for(let f=4;f>=0;f--){const p=d>>f&1;if(r){const E=(n+a)/2;p==1?n=E:a=E}else{const E=(o+i)/2;p==1?o=E:i=E}r=!r}}return{sw:{lat:o,lon:n},ne:{lat:i,lon:a}}}static adjacent(t,r){if(t=t.toLowerCase(),r=r.toLowerCase(),t.length==0)throw new Error("Invalid geohash");if("nsew".indexOf(r)==-1)throw new Error("Invalid direction");const o={n:["p0r21436x8zb9dcf5h7kjnmqesgutwvy","bc01fg45238967deuvhjyznpkmstqrwx"],s:["14365h7k9dcfesgujnmqp0r2twvyx8zb","238967debc01fg45kmstqrwxuvhjyznp"],e:["bc01fg45238967deuvhjyznpkmstqrwx","p0r21436x8zb9dcf5h7kjnmqesgutwvy"],w:["238967debc01fg45kmstqrwxuvhjyznp","14365h7k9dcfesgujnmqp0r2twvyx8zb"]},i={n:["prxz","bcfguvyz"],s:["028b","0145hjnp"],e:["bcfguvyz","prxz"],w:["0145hjnp","028b"]},n=t.slice(-1);let a=t.slice(0,-1);const l=t.length%2;return i[r][l].indexOf(n)!=-1&&a!=""&&(a=ue.adjacent(a,r)),a+Lt.charAt(o[r][l].indexOf(n))}static neighbours(t){return{n:ue.adjacent(t,"n"),ne:ue.adjacent(ue.adjacent(t,"n"),"e"),e:ue.adjacent(t,"e"),se:ue.adjacent(ue.adjacent(t,"s"),"e"),s:ue.adjacent(t,"s"),sw:ue.adjacent(ue.adjacent(t,"s"),"w"),w:ue.adjacent(t,"w"),nw:ue.adjacent(ue.adjacent(t,"n"),"w")}}}function li(e,t,r){class o extends google.maps.OverlayView{constructor(n,a,l){super(),this.container=n,this.pane=a,this.position=l}onAdd(){this.getPanes()?.[this.pane]?.appendChild(this.container)}draw(){const a=this.getProjection().fromLatLngToDivPixel(this.position);a!==null&&(this.container.style.transform=`translate(${a.x}px, ${a.y}px)`)}onRemove(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)}}return new o(e,t,r)}function ci({position:e,pane:t="floatPane",map:r,zIndex:o,children:i}){const n=m.useMemo(()=>{const l=document.createElement("div");return l.style.position="absolute",l},[]),a=m.useMemo(()=>li(n,t,{lat:e.lat,lng:e.lon}),[n,t,e]);return m.useEffect(()=>(a?.setMap(r),()=>{a?.setMap(null)}),[r,a]),m.useEffect(()=>{n.style.zIndex=`${o}`},[o,n]),Je.createPortal(i,n)}function Ne(e){switch(e){case"AVAILABLE":return"#33AC19";case"CHARGING":return"#005CEE";default:return"#EB001B"}}const ui="CustomMarker-module_container",di={container:ui},fi=new Intl.NumberFormat(void 0,{maximumSignificantDigits:3}),pi=e=>fi.format(e),hi=({data:e,map:t,onClick:r,highlight:o})=>{const i=m.useCallback(()=>{r(e)},[r,e]),n=m.useMemo(()=>e.statuses.find(a=>a.name==="AVAILABLE")?{background:Ne("AVAILABLE")}:e.statuses.find(a=>a.name==="CHARGING")?{background:Ne("CHARGING")}:{background:Ne("UNAVAILABLE")},[e]);return s.jsx(ci,{position:e.centroid,map:t,zIndex:o?99:0,children:s.jsx("button",{className:di.container,onClick:i,style:n,onTouchEndCapture:i,children:e.count>1?pi(e.count):""})})},mi=[1,1,2,2,2,3,3,3,4,4,4,5,6,6,6,7,8,8,8,8,8,9,9,9,9,9];function Ht(e){return mi[e]}function Dn(e,t){const r=e.getSouthWest().toJSON(),o=e.getNorthEast().toJSON(),i=ue.encode(r.lat,r.lng,t),n=ue.bounds(i),a=Math.abs(n.sw.lat-n.ne.lat),l=Math.abs(n.sw.lon-n.ne.lon);let c=n.sw.lat;for(;c<=o.lat;)c=c+a;let u=n.sw.lon;for(;u<=o.lng;)u=u+l;return{nwLat:c,nwLng:n.sw.lon,seLat:n.sw.lat,seLng:u}}function gi(e,t){return e.nwLat===t.nwLat&&e.nwLng===t.nwLng&&e.seLat===t.seLat&&e.seLng===t.seLng}function vi({map:e,filters:t,fetchGeohashes:r,onMarkerClicked:o}){const{setIsSearching:i}=ie(),[n,a]=m.useState([]),[l,c]=m.useState({zoom:Ht(e.getZoom()),normalizedBounds:Dn(e.getBounds(),Ht(e.getZoom()))});m.useEffect(()=>{let f=l.zoom,p;e.addListener("idle",()=>{const E=Ht(e.getZoom()),T={...l,zoom:E},w=Dn(e.getBounds(),f);p&&gi(p,w)||(p=w,c({...T,normalizedBounds:w}))})},[]);function u(f){const p=n.filter(E=>f.find(T=>T.key===E.key));a([...p,...f.filter(E=>!p.find(T=>T.key===E.key))])}m.useEffect(()=>{if(!l.normalizedBounds)return;let f=!1;return i(!0),r({precision:l.zoom,bbox:l.normalizedBounds,...t}).then(({data:p})=>{f||(u(p),i(!1))}).catch(p=>{i(!1)}),()=>{f=!0,i(!1)}},[l,t]);const d=m.useCallback(f=>{const p=f.ids;p.length==100&&e.setZoom(e.getZoom()+2),e.panTo({lat:f.centroid.lat,lng:f.centroid.lon}),p.length!==100&&o(p)},[e,o]);return s.jsx(s.Fragment,{children:n.filter(Boolean).map((f,p)=>s.jsx(hi,{map:e,data:f,onClick:d},f.key))})}function yi(){const{place:e,options:t,fetchGeohashes:r,setLocationsIds:o,language:i,filters:n,position:a}=ie(),l=t.googleApiKey,[c,u]=m.useState(),d=m.useRef(null),f=br(l,i);return m.useEffect(()=>{c&&e?.geometry?.viewport&&c.fitBounds(e.geometry.viewport),c&&e?.geometry?.location&&c.setCenter(e.geometry.location)},[c,e]),m.useEffect(()=>{f.importLibrary("maps").then(({Map:p})=>{const E=new p(d.current,{mapId:"ced50d4165f3a695",center:a,zoom:12,zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,controlSize:32,clickableIcons:!1,gestureHandling:t.gestureHandling||"auto"});return E.addListener("idle",()=>{u(E)}),()=>{console.log("unmounting")}})},[l]),s.jsx("div",{className:ri.container,ref:d,children:c&&c.getBounds()&&s.jsx(vi,{filters:n,onMarkerClicked:p=>{o([...p])},map:c,fetchGeohashes:r})})}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},X.apply(null,arguments)}function xe(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Gt(e,t){return Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Gt(e,t)}function Mt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gt(e,t)}function _i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={exports:{}},ut={exports:{}},te={};/** @license React v16.13.1
9
+ `,S.appendChild(A)}},[t.options.theming]);const we=!!(u&&i?.googleApiKey),m=h.useMemo(()=>({options:i,setPlace:c,place:d,t:ae,language:re,fetchGeohashes:_,locations:N,locationsStatus:U,filterConfiguration:a,setFilters:v,setLocationsIds:T,locationIds:y,filters:p,fetchTariffs:G,reportProblem:ee,fetchLocations:R,isReady:we,position:u,isSearching:j,setIsSearching:C}),[u,re,N,U,G,ee,t.options,d,c,v,p,a,y,T,ae,_,R,we,j]);return n.jsx(yt.Provider,{value:m,children:e})};function B(){const e=h.useContext(yt);if(e===void 0)throw new Error("useMapContext must be used within a MapProvider");return e}function dr(e){const{isReady:t}=h.useContext(yt),i=h.useRef(null),a=Zn(i)&&t;return n.jsxs("div",{ref:i,className:Pt.container,style:{height:`${e.height}px`},children:[!a&&n.jsx("div",{className:Pt.loader,children:"Loading..."}),a&&e.children]})}const ur="Map-module_container",fr={container:ur};function pr(e,t,i,r){function a(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?o(u.value):a(u.value).then(l,d)}c((r=r.apply(e,[])).next())})}function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mr=function e(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var r,a,o;if(Array.isArray(t)){if(r=t.length,r!=i.length)return!1;for(a=r;a--!==0;)if(!e(t[a],i[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(i).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,o[a]))return!1;for(a=r;a--!==0;){var s=o[a];if(!e(t[s],i[s]))return!1}return!0}return t!==t&&i!==i},gr=hr(mr);const Dt="__googleMapsScriptId";var je;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(je||(je={}));class _e{constructor({apiKey:t,authReferrerPolicy:i,channel:r,client:a,id:o=Dt,language:s,libraries:l=[],mapIds:d,nonce:c,region:u,retries:f=3,url:p="https://maps.googleapis.com/maps/api/js",version:v}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=i,this.channel=r,this.client=a,this.id=o||Dt,this.language=s,this.libraries=l,this.mapIds=d,this.nonce=c,this.region=u,this.retries=f,this.url=p,this.version=v,_e.instance){if(!gr(this.options,_e.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(_e.instance.options)}`);return _e.instance}_e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?je.FAILURE:this.done?je.SUCCESS:this.loading?je.LOADING:je.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,i)=>{this.loadCallback(r=>{r?i(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,i;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(o=>!r[o]&&delete r[o]),!((i=(t=window?.google)===null||t===void 0?void 0:t.maps)===null||i===void 0)&&i.importLibrary||(o=>{let s,l,d,c="The Google Maps JavaScript API",u="google",f="importLibrary",p="__ib__",v=document,y=window;y=y[u]||(y[u]={});const T=y.maps||(y.maps={}),N=new Set,k=new URLSearchParams,U=()=>s||(s=new Promise((D,j)=>pr(this,void 0,void 0,function*(){var C;yield l=v.createElement("script"),l.id=this.id,k.set("libraries",[...N]+"");for(d in o)k.set(d.replace(/[A-Z]/g,Y=>"_"+Y[0].toLowerCase()),o[d]);k.set("callback",u+".maps."+p),l.src=this.url+"?"+k,T[p]=D,l.onerror=()=>s=j(Error(c+" could not load.")),l.nonce=this.nonce||((C=v.querySelector("script[nonce]"))===null||C===void 0?void 0:C.nonce)||"",v.head.append(l)})));T[f]?console.warn(c+" only loads once. Ignoring:",o):T[f]=(D,...j)=>N.add(D)&&U().then(()=>T[f](D,...j))})(r);const a=this.libraries.map(o=>this.importLibrary(o));a.length||a.push(this.importLibrary("core")),Promise.all(a).then(()=>this.callback(),o=>{const s=new ErrorEvent("error",{error:o});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const i=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${i} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},i)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}let rt;function gn(e,t){if(rt)return rt;const i=new _e({apiKey:e,version:"weekly",language:t});return rt=i,i}const it="0123456789bcdefghjkmnpqrstuvwxyz";class X{static encode(t,i,r){if(typeof r>"u"){for(let p=1;p<=12;p++){const v=X.encode(t,i,p),y=X.decode(v);if(y.lat==t&&y.lon==i)return v}r=12}if(t=Number(t),i=Number(i),r=Number(r),isNaN(t)||isNaN(i)||isNaN(r))throw new Error("Invalid geohash");let a=0,o=0,s=!0,l="",d=-90,c=90,u=-180,f=180;for(;l.length<r;){if(s){const p=(u+f)/2;i>=p?(a=a*2+1,u=p):(a=a*2,f=p)}else{const p=(d+c)/2;t>=p?(a=a*2+1,d=p):(a=a*2,c=p)}s=!s,++o==5&&(l+=it.charAt(a),o=0,a=0)}return l}static decode(t){const i=X.bounds(t),r=i.sw.lat,a=i.sw.lon,o=i.ne.lat,s=i.ne.lon;let l=(r+o)/2,d=(a+s)/2;return l=l.toFixed(Math.floor(2-Math.log(o-r)/Math.LN10)),d=d.toFixed(Math.floor(2-Math.log(s-a)/Math.LN10)),{lat:Number(l),lon:Number(d)}}static bounds(t){if(t.length==0)throw new Error("Invalid geohash");t=t.toLowerCase();let i=!0,r=-90,a=90,o=-180,s=180;for(let d=0;d<t.length;d++){const c=t.charAt(d),u=it.indexOf(c);if(u==-1)throw new Error("Invalid geohash");for(let f=4;f>=0;f--){const p=u>>f&1;if(i){const v=(o+s)/2;p==1?o=v:s=v}else{const v=(r+a)/2;p==1?r=v:a=v}i=!i}}return{sw:{lat:r,lon:o},ne:{lat:a,lon:s}}}static adjacent(t,i){if(t=t.toLowerCase(),i=i.toLowerCase(),t.length==0)throw new Error("Invalid geohash");if("nsew".indexOf(i)==-1)throw new Error("Invalid direction");const r={n:["p0r21436x8zb9dcf5h7kjnmqesgutwvy","bc01fg45238967deuvhjyznpkmstqrwx"],s:["14365h7k9dcfesgujnmqp0r2twvyx8zb","238967debc01fg45kmstqrwxuvhjyznp"],e:["bc01fg45238967deuvhjyznpkmstqrwx","p0r21436x8zb9dcf5h7kjnmqesgutwvy"],w:["238967debc01fg45kmstqrwxuvhjyznp","14365h7k9dcfesgujnmqp0r2twvyx8zb"]},a={n:["prxz","bcfguvyz"],s:["028b","0145hjnp"],e:["bcfguvyz","prxz"],w:["0145hjnp","028b"]},o=t.slice(-1);let s=t.slice(0,-1);const l=t.length%2;return a[i][l].indexOf(o)!=-1&&s!=""&&(s=X.adjacent(s,i)),s+it.charAt(r[i][l].indexOf(o))}static neighbours(t){return{n:X.adjacent(t,"n"),ne:X.adjacent(X.adjacent(t,"n"),"e"),e:X.adjacent(t,"e"),se:X.adjacent(X.adjacent(t,"s"),"e"),s:X.adjacent(t,"s"),sw:X.adjacent(X.adjacent(t,"s"),"w"),w:X.adjacent(t,"w"),nw:X.adjacent(X.adjacent(t,"n"),"w")}}}function vr(e,t,i){class r extends google.maps.OverlayView{constructor(o,s,l){super(),this.container=o,this.pane=s,this.position=l}onAdd(){this.getPanes()?.[this.pane]?.appendChild(this.container)}draw(){const s=this.getProjection().fromLatLngToDivPixel(this.position);s!==null&&(this.container.style.transform=`translate(${s.x}px, ${s.y}px)`)}onRemove(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)}}return new r(e,t,i)}function Cr({position:e,pane:t="floatPane",map:i,zIndex:r,children:a}){const o=h.useMemo(()=>{const l=document.createElement("div");return l.style.position="absolute",l},[]),s=h.useMemo(()=>vr(o,t,{lat:e.lat,lng:e.lon}),[o,t,e]);return h.useEffect(()=>(s?.setMap(i),()=>{s?.setMap(null)}),[i,s]),h.useEffect(()=>{o.style.zIndex=`${r}`},[r,o]),Me.createPortal(a,o)}function he(e){switch(e){case"AVAILABLE":return"#33AC19";case"CHARGING":return"#005CEE";default:return"#EB001B"}}const yr="CustomMarker-module_container",xr={container:yr},Tr=new Intl.NumberFormat(void 0,{maximumSignificantDigits:3}),br=e=>Tr.format(e),Er=({data:e,map:t,onClick:i,highlight:r})=>{const a=h.useCallback(()=>{i(e)},[i,e]),o=h.useMemo(()=>e.statuses.find(s=>s.name==="AVAILABLE")?{background:he("AVAILABLE")}:e.statuses.find(s=>s.name==="CHARGING")?{background:he("CHARGING")}:{background:he("UNAVAILABLE")},[e]);return n.jsx(Cr,{position:e.centroid,map:t,zIndex:r?99:0,children:n.jsx("button",{className:xr.container,onClick:a,style:o,onTouchEndCapture:a,children:e.count>1?br(e.count):""})})},_r=[1,1,2,2,2,3,3,3,4,4,4,5,6,6,6,7,8,8,8,8,8,9,9,9,9,9];function ot(e){return _r[e]}function It(e,t){const i=e.getSouthWest().toJSON(),r=e.getNorthEast().toJSON(),a=X.encode(i.lat,i.lng,t),o=X.bounds(a),s=Math.abs(o.sw.lat-o.ne.lat),l=Math.abs(o.sw.lon-o.ne.lon);let d=o.sw.lat;for(;d<=r.lat;)d=d+s;let c=o.sw.lon;for(;c<=r.lng;)c=c+l;return{nwLat:d,nwLng:o.sw.lon,seLat:o.sw.lat,seLng:c}}function wr(e,t){return e.nwLat===t.nwLat&&e.nwLng===t.nwLng&&e.seLat===t.seLat&&e.seLng===t.seLng}function Nr({map:e,filters:t,fetchGeohashes:i,onMarkerClicked:r}){const{setIsSearching:a}=B(),[o,s]=h.useState([]),[l,d]=h.useState({zoom:ot(e.getZoom()),normalizedBounds:It(e.getBounds(),ot(e.getZoom()))});h.useEffect(()=>{let f=l.zoom,p;e.addListener("idle",()=>{const v=ot(e.getZoom()),y={...l,zoom:v},T=It(e.getBounds(),f);p&&wr(p,T)||(p=T,d({...y,normalizedBounds:T}))})},[]);function c(f){const p=o.filter(v=>f.find(y=>y.key===v.key));s([...p,...f.filter(v=>!p.find(y=>y.key===v.key))])}h.useEffect(()=>{if(!l.normalizedBounds)return;let f=!1;return a(!0),i({precision:l.zoom,bbox:l.normalizedBounds,...t}).then(({data:p})=>{f||(c(p),a(!1))}).catch(p=>{a(!1)}),()=>{f=!0,a(!1)}},[l,t]);const u=h.useCallback(f=>{const p=f.ids;p.length==100&&e.setZoom(e.getZoom()+2),e.panTo({lat:f.centroid.lat,lng:f.centroid.lon}),p.length!==100&&r(p)},[e,r]);return n.jsx(n.Fragment,{children:o.filter(Boolean).map((f,p)=>n.jsx(Er,{map:e,data:f,onClick:u},f.key))})}function Sr(){const{place:e,options:t,fetchGeohashes:i,setLocationsIds:r,language:a,filters:o,position:s}=B(),l=t.googleApiKey,[d,c]=h.useState(),u=h.useRef(null),f=gn(l,a);return h.useEffect(()=>{d&&e?.geometry?.viewport&&d.fitBounds(e.geometry.viewport),d&&e?.geometry?.location&&d.setCenter(e.geometry.location)},[d,e]),h.useEffect(()=>{f.importLibrary("maps").then(({Map:p})=>{const v=new p(u.current,{mapId:"ced50d4165f3a695",center:s,zoom:12,zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,controlSize:32,clickableIcons:!1,gestureHandling:t.gestureHandling||"auto"});return v.addListener("idle",()=>{c(v)}),()=>{console.log("unmounting")}})},[l]),n.jsx("div",{className:fr.container,ref:u,children:d&&d.getBounds()&&n.jsx(Nr,{filters:o,onMarkerClicked:p=>{r([...p])},map:d,fetchGeohashes:i})})}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},tt.apply(null,arguments)}function vn(e,t){if(e==null)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;i[r]=e[r]}return i}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},ht(e,t)}function xt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ht(e,t)}function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Be={exports:{}},Ue={exports:{}},z={};/** @license React v16.13.1
10
10
  * react-is.production.min.js
11
11
  *
12
12
  * Copyright (c) Facebook, Inc. and its affiliates.
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */var An;function Ci(){if(An)return te;An=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(v){if(typeof v=="object"&&v!==null){var I=v.$$typeof;switch(I){case t:switch(v=v.type,v){case c:case u:case o:case n:case i:case f:return v;default:switch(v=v&&v.$$typeof,v){case l:case d:case T:case E:case a:return v;default:return I}}case r:return I}}}function x(v){return _(v)===u}return te.AsyncMode=c,te.ConcurrentMode=u,te.ContextConsumer=l,te.ContextProvider=a,te.Element=t,te.ForwardRef=d,te.Fragment=o,te.Lazy=T,te.Memo=E,te.Portal=r,te.Profiler=n,te.StrictMode=i,te.Suspense=f,te.isAsyncMode=function(v){return x(v)||_(v)===c},te.isConcurrentMode=x,te.isContextConsumer=function(v){return _(v)===l},te.isContextProvider=function(v){return _(v)===a},te.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},te.isForwardRef=function(v){return _(v)===d},te.isFragment=function(v){return _(v)===o},te.isLazy=function(v){return _(v)===T},te.isMemo=function(v){return _(v)===E},te.isPortal=function(v){return _(v)===r},te.isProfiler=function(v){return _(v)===n},te.isStrictMode=function(v){return _(v)===i},te.isSuspense=function(v){return _(v)===f},te.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===o||v===u||v===n||v===i||v===f||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===T||v.$$typeof===E||v.$$typeof===a||v.$$typeof===l||v.$$typeof===d||v.$$typeof===g||v.$$typeof===O||v.$$typeof===C||v.$$typeof===w)},te.typeOf=_,te}var ne={};/** @license React v16.13.1
16
+ */var kt;function Or(){if(kt)return z;kt=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function D(C){if(typeof C=="object"&&C!==null){var Y=C.$$typeof;switch(Y){case t:switch(C=C.type,C){case d:case c:case r:case o:case a:case f:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case y:case v:case s:return C;default:return Y}}case i:return Y}}}function j(C){return D(C)===c}return z.AsyncMode=d,z.ConcurrentMode=c,z.ContextConsumer=l,z.ContextProvider=s,z.Element=t,z.ForwardRef=u,z.Fragment=r,z.Lazy=y,z.Memo=v,z.Portal=i,z.Profiler=o,z.StrictMode=a,z.Suspense=f,z.isAsyncMode=function(C){return j(C)||D(C)===d},z.isConcurrentMode=j,z.isContextConsumer=function(C){return D(C)===l},z.isContextProvider=function(C){return D(C)===s},z.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},z.isForwardRef=function(C){return D(C)===u},z.isFragment=function(C){return D(C)===r},z.isLazy=function(C){return D(C)===y},z.isMemo=function(C){return D(C)===v},z.isPortal=function(C){return D(C)===i},z.isProfiler=function(C){return D(C)===o},z.isStrictMode=function(C){return D(C)===a},z.isSuspense=function(C){return D(C)===f},z.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===c||C===o||C===a||C===f||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===v||C.$$typeof===s||C.$$typeof===l||C.$$typeof===u||C.$$typeof===N||C.$$typeof===k||C.$$typeof===U||C.$$typeof===T)},z.typeOf=D,z}var V={};/** @license React v16.13.1
17
17
  * react-is.development.js
18
18
  *
19
19
  * Copyright (c) Facebook, Inc. and its affiliates.
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */var Pn;function xi(){return Pn||(Pn=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(N){return typeof N=="string"||typeof N=="function"||N===o||N===u||N===n||N===i||N===f||N===p||typeof N=="object"&&N!==null&&(N.$$typeof===T||N.$$typeof===E||N.$$typeof===a||N.$$typeof===l||N.$$typeof===d||N.$$typeof===g||N.$$typeof===O||N.$$typeof===C||N.$$typeof===w)}function x(N){if(typeof N=="object"&&N!==null){var le=N.$$typeof;switch(le){case t:var R=N.type;switch(R){case c:case u:case o:case n:case i:case f:return R;default:var _e=R&&R.$$typeof;switch(_e){case l:case d:case T:case E:case a:return _e;default:return le}}case r:return le}}}var v=c,I=u,W=l,j=a,z=t,A=d,L=o,Z=T,D=E,S=r,ee=n,Q=i,fe=f,Y=!1;function K(N){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),h(N)||x(N)===c}function h(N){return x(N)===u}function b(N){return x(N)===l}function P(N){return x(N)===a}function $(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function k(N){return x(N)===d}function G(N){return x(N)===o}function M(N){return x(N)===T}function B(N){return x(N)===E}function U(N){return x(N)===r}function J(N){return x(N)===n}function q(N){return x(N)===i}function se(N){return x(N)===f}ne.AsyncMode=v,ne.ConcurrentMode=I,ne.ContextConsumer=W,ne.ContextProvider=j,ne.Element=z,ne.ForwardRef=A,ne.Fragment=L,ne.Lazy=Z,ne.Memo=D,ne.Portal=S,ne.Profiler=ee,ne.StrictMode=Q,ne.Suspense=fe,ne.isAsyncMode=K,ne.isConcurrentMode=h,ne.isContextConsumer=b,ne.isContextProvider=P,ne.isElement=$,ne.isForwardRef=k,ne.isFragment=G,ne.isLazy=M,ne.isMemo=B,ne.isPortal=U,ne.isProfiler=J,ne.isStrictMode=q,ne.isSuspense=se,ne.isValidElementType=_,ne.typeOf=x})()),ne}var Rn;function Tr(){return Rn||(Rn=1,process.env.NODE_ENV==="production"?ut.exports=Ci():ut.exports=xi()),ut.exports}/*
23
+ */var Mt;function jr(){return Mt||(Mt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function D(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===o||x===a||x===f||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===v||x.$$typeof===s||x.$$typeof===l||x.$$typeof===u||x.$$typeof===N||x.$$typeof===k||x.$$typeof===U||x.$$typeof===T)}function j(x){if(typeof x=="object"&&x!==null){var le=x.$$typeof;switch(le){case t:var $e=x.type;switch($e){case d:case c:case r:case o:case a:case f:return $e;default:var jt=$e&&$e.$$typeof;switch(jt){case l:case u:case y:case v:case s:return jt;default:return le}}case i:return le}}}var C=d,Y=c,re=l,ae=s,Z=t,W=u,K=r,ce=y,me=v,_=i,R=o,G=a,ee=f,fe=!1;function we(x){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),m(x)||j(x)===d}function m(x){return j(x)===c}function g(x){return j(x)===l}function S(x){return j(x)===s}function A(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function P(x){return j(x)===u}function L(x){return j(x)===r}function I(x){return j(x)===y}function M(x){return j(x)===v}function H(x){return j(x)===i}function $(x){return j(x)===o}function F(x){return j(x)===a}function te(x){return j(x)===f}V.AsyncMode=C,V.ConcurrentMode=Y,V.ContextConsumer=re,V.ContextProvider=ae,V.Element=Z,V.ForwardRef=W,V.Fragment=K,V.Lazy=ce,V.Memo=me,V.Portal=_,V.Profiler=R,V.StrictMode=G,V.Suspense=ee,V.isAsyncMode=we,V.isConcurrentMode=m,V.isContextConsumer=g,V.isContextProvider=S,V.isElement=A,V.isForwardRef=P,V.isFragment=L,V.isLazy=I,V.isMemo=M,V.isPortal=H,V.isProfiler=$,V.isStrictMode=F,V.isSuspense=te,V.isValidElementType=D,V.typeOf=j})()),V}var Rt;function Cn(){return Rt||(Rt=1,process.env.NODE_ENV==="production"?Ue.exports=Or():Ue.exports=jr()),Ue.exports}/*
24
24
  object-assign
25
25
  (c) Sindre Sorhus
26
26
  @license MIT
27
- */var Vt,Mn;function Ei(){if(Mn)return Vt;Mn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function i(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Vt=i()?Object.assign:function(n,a){for(var l,c=o(n),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var p=0;p<u.length;p++)r.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Vt}var $t,kn;function on(){if(kn)return $t;kn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $t=e,$t}var Ft,jn;function wr(){return jn||(jn=1,Ft=Function.call.bind(Object.prototype.hasOwnProperty)),Ft}var Bt,Ln;function bi(){if(Ln)return Bt;Ln=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=on(),r={},o=wr();e=function(n){var a="Warning: "+n;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(n,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in n)if(o(n,d)){var f;try{if(typeof n[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=n[d](a,d,c,l,null,t)}catch(T){f=T}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var E=u?u():"";e("Failed "+l+" type: "+f.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Bt=i,Bt}var zt,Hn;function Ti(){if(Hn)return zt;Hn=1;var e=Tr(),t=Ei(),r=on(),o=wr(),i=bi(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return zt=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(h){var b=h&&(u&&h[u]||h[d]);if(typeof b=="function")return b}var p="<<anonymous>>",E={array:O("array"),bigint:O("bigint"),bool:O("boolean"),func:O("function"),number:O("number"),object:O("object"),string:O("string"),symbol:O("symbol"),any:C(),arrayOf:_,element:x(),elementType:v(),instanceOf:I,node:A(),objectOf:j,oneOf:W,oneOfType:z,shape:Z,exact:D};function T(h,b){return h===b?h!==0||1/h===1/b:h!==h&&b!==b}function w(h,b){this.message=h,this.data=b&&typeof b=="object"?b:{},this.stack=""}w.prototype=Error.prototype;function g(h){if(process.env.NODE_ENV!=="production")var b={},P=0;function $(G,M,B,U,J,q,se){if(U=U||p,q=q||B,se!==r){if(c){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=U+":"+B;!b[le]&&P<3&&(n("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+U+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),b[le]=!0,P++)}}return M[B]==null?G?M[B]===null?new w("The "+J+" `"+q+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new w("The "+J+" `"+q+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:h(M,B,U,J,q)}var k=$.bind(null,!1);return k.isRequired=$.bind(null,!0),k}function O(h){function b(P,$,k,G,M,B){var U=P[$],J=Q(U);if(J!==h){var q=fe(U);return new w("Invalid "+G+" `"+M+"` of type "+("`"+q+"` supplied to `"+k+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return g(b)}function C(){return g(a)}function _(h){function b(P,$,k,G,M){if(typeof h!="function")return new w("Property `"+M+"` of component `"+k+"` has invalid PropType notation inside arrayOf.");var B=P[$];if(!Array.isArray(B)){var U=Q(B);return new w("Invalid "+G+" `"+M+"` of type "+("`"+U+"` supplied to `"+k+"`, expected an array."))}for(var J=0;J<B.length;J++){var q=h(B,J,k,G,M+"["+J+"]",r);if(q instanceof Error)return q}return null}return g(b)}function x(){function h(b,P,$,k,G){var M=b[P];if(!l(M)){var B=Q(M);return new w("Invalid "+k+" `"+G+"` of type "+("`"+B+"` supplied to `"+$+"`, expected a single ReactElement."))}return null}return g(h)}function v(){function h(b,P,$,k,G){var M=b[P];if(!e.isValidElementType(M)){var B=Q(M);return new w("Invalid "+k+" `"+G+"` of type "+("`"+B+"` supplied to `"+$+"`, expected a single ReactElement type."))}return null}return g(h)}function I(h){function b(P,$,k,G,M){if(!(P[$]instanceof h)){var B=h.name||p,U=K(P[$]);return new w("Invalid "+G+" `"+M+"` of type "+("`"+U+"` supplied to `"+k+"`, expected ")+("instance of `"+B+"`."))}return null}return g(b)}function W(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),a;function b(P,$,k,G,M){for(var B=P[$],U=0;U<h.length;U++)if(T(B,h[U]))return null;var J=JSON.stringify(h,function(se,N){var le=fe(N);return le==="symbol"?String(N):N});return new w("Invalid "+G+" `"+M+"` of value `"+String(B)+"` "+("supplied to `"+k+"`, expected one of "+J+"."))}return g(b)}function j(h){function b(P,$,k,G,M){if(typeof h!="function")return new w("Property `"+M+"` of component `"+k+"` has invalid PropType notation inside objectOf.");var B=P[$],U=Q(B);if(U!=="object")return new w("Invalid "+G+" `"+M+"` of type "+("`"+U+"` supplied to `"+k+"`, expected an object."));for(var J in B)if(o(B,J)){var q=h(B,J,k,G,M+"."+J,r);if(q instanceof Error)return q}return null}return g(b)}function z(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var b=0;b<h.length;b++){var P=h[b];if(typeof P!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(P)+" at index "+b+"."),a}function $(k,G,M,B,U){for(var J=[],q=0;q<h.length;q++){var se=h[q],N=se(k,G,M,B,U,r);if(N==null)return null;N.data&&o(N.data,"expectedType")&&J.push(N.data.expectedType)}var le=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new w("Invalid "+B+" `"+U+"` supplied to "+("`"+M+"`"+le+"."))}return g($)}function A(){function h(b,P,$,k,G){return S(b[P])?null:new w("Invalid "+k+" `"+G+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return g(h)}function L(h,b,P,$,k){return new w((h||"React class")+": "+b+" type `"+P+"."+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function Z(h){function b(P,$,k,G,M){var B=P[$],U=Q(B);if(U!=="object")return new w("Invalid "+G+" `"+M+"` of type `"+U+"` "+("supplied to `"+k+"`, expected `object`."));for(var J in h){var q=h[J];if(typeof q!="function")return L(k,G,M,J,fe(q));var se=q(B,J,k,G,M+"."+J,r);if(se)return se}return null}return g(b)}function D(h){function b(P,$,k,G,M){var B=P[$],U=Q(B);if(U!=="object")return new w("Invalid "+G+" `"+M+"` of type `"+U+"` "+("supplied to `"+k+"`, expected `object`."));var J=t({},P[$],h);for(var q in J){var se=h[q];if(o(h,q)&&typeof se!="function")return L(k,G,M,q,fe(se));if(!se)return new w("Invalid "+G+" `"+M+"` key `"+q+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(P[$],null," ")+`
28
- Valid keys: `+JSON.stringify(Object.keys(h),null," "));var N=se(B,q,k,G,M+"."+q,r);if(N)return N}return null}return g(b)}function S(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(S);if(h===null||l(h))return!0;var b=f(h);if(b){var P=b.call(h),$;if(b!==h.entries){for(;!($=P.next()).done;)if(!S($.value))return!1}else for(;!($=P.next()).done;){var k=$.value;if(k&&!S(k[1]))return!1}}else return!1;return!0;default:return!1}}function ee(h,b){return h==="symbol"?!0:b?b["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&b instanceof Symbol:!1}function Q(h){var b=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":ee(b,h)?"symbol":b}function fe(h){if(typeof h>"u"||h===null)return""+h;var b=Q(h);if(b==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return b}function Y(h){var b=fe(h);switch(b){case"array":case"object":return"an "+b;case"boolean":case"date":case"regexp":return"a "+b;default:return b}}function K(h){return!h.constructor||!h.constructor.name?p:h.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},zt}var Ut,Vn;function wi(){if(Vn)return Ut;Vn=1;var e=on();function t(){}function r(){}return r.resetWarningCache=t,Ut=function(){function o(a,l,c,u,d,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}o.isRequired=o;function i(){return o}var n={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Ut}var $n;function Ni(){if($n)return ct.exports;if($n=1,process.env.NODE_ENV!=="production"){var e=Tr(),t=!0;ct.exports=Ti()(e.isElement,t)}else ct.exports=wi()();return ct.exports}var Ii=Ni();const y=_i(Ii);function Si(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Oi(e,t){e.classList?e.classList.add(t):Si(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Fn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Di(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Fn(e.className,t):e.setAttribute("class",Fn(e.className&&e.className.baseVal||"",t))}const Bn={disabled:!1};var Ai=process.env.NODE_ENV!=="production"?y.oneOfType([y.number,y.shape({enter:y.number,exit:y.number,appear:y.number}).isRequired]):null,Pi=process.env.NODE_ENV!=="production"?y.oneOfType([y.string,y.shape({enter:y.string,exit:y.string,active:y.string}),y.shape({enter:y.string,enterDone:y.string,enterActive:y.string,exit:y.string,exitDone:y.string,exitActive:y.string})]):null;const sn=m.createContext(null);var Nr=function(t){return t.scrollTop},Xe="unmounted",ke="exited",ye="entering",be="entered",ot="exiting",Te=(function(e){Mt(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var a=i,l=a&&!a.isMounting?o.enter:o.appear,c;return n.appearStatus=null,o.in?l?(c=ke,n.appearStatus=ye):c=be:o.unmountOnExit||o.mountOnEnter?c=Xe:c=ke,n.state={status:c},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var a=i.in;return a&&n.status===Xe?{status:ke}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==ye&&a!==be&&(n=ye):(a===ye||a===be)&&(n=ot)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,a,l;return n=a=l=i,i!=null&&typeof i!="number"&&(n=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:n,enter:a,appear:l}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===ye){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Je.findDOMNode(this);a&&Nr(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ke&&this.setState({status:Xe})},r.performEnter=function(i){var n=this,a=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Je.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!i&&!a||Bn.disabled){this.safeSetState({status:be},function(){n.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ye},function(){n.props.onEntering(u,d),n.onTransitionEnd(p,function(){n.safeSetState({status:be},function(){n.props.onEntered(u,d)})})})},r.performExit=function(){var i=this,n=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Je.findDOMNode(this);if(!n||Bn.disabled){this.safeSetState({status:ke},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:ot},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ke},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,n.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var a=this.props.nodeRef?this.props.nodeRef.current:Je.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Xe)return null;var n=this.props,a=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var l=xe(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(sn.Provider,{value:null},typeof a=="function"?a(i,l):m.cloneElement(m.Children.only(a),l))},t})(m.Component);Te.contextType=sn;Te.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:y.shape({current:typeof Element>"u"?y.any:function(e,t,r,o,i,n){var a=e[t];return y.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,o,i,n)}}),children:y.oneOfType([y.func.isRequired,y.element.isRequired]).isRequired,in:y.bool,mountOnEnter:y.bool,unmountOnExit:y.bool,appear:y.bool,enter:y.bool,exit:y.bool,timeout:function(t){var r=Ai;t.addEndListener||(r=r.isRequired);for(var o=arguments.length,i=new Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];return r.apply(void 0,[t].concat(i))},addEndListener:y.func,onEnter:y.func,onEntering:y.func,onEntered:y.func,onExit:y.func,onExiting:y.func,onExited:y.func}:{};function Ve(){}Te.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ve,onEntering:Ve,onEntered:Ve,onExit:Ve,onExiting:Ve,onExited:Ve};Te.UNMOUNTED=Xe;Te.EXITED=ke;Te.ENTERING=ye;Te.ENTERED=be;Te.EXITING=ot;var Ri=function(t,r){return t&&r&&r.split(" ").forEach(function(o){return Oi(t,o)})},Yt=function(t,r){return t&&r&&r.split(" ").forEach(function(o){return Di(t,o)})},an=(function(e){Mt(t,e);function t(){for(var o,i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return o=e.call.apply(e,[this].concat(n))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1];o.removeClasses(d,"exit"),o.addClass(d,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.addClass(d,p,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.removeClasses(d,p),o.addClass(d,p,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",f=u?""+d+l:c[l],p=u?f+"-active":c[l+"Active"],E=u?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:E}},o}var r=t.prototype;return r.addClass=function(i,n,a){var l=this.getClassNames(n)[a+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;n==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&i&&Nr(i),l&&(this.appliedClasses[n][a]=l,Ri(i,l))},r.removeClasses=function(i,n){var a=this.appliedClasses[n],l=a.base,c=a.active,u=a.done;this.appliedClasses[n]={},l&&Yt(i,l),c&&Yt(i,c),u&&Yt(i,u)},r.render=function(){var i=this.props;i.classNames;var n=xe(i,["classNames"]);return m.createElement(Te,X({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(m.Component);an.defaultProps={classNames:""};an.propTypes=process.env.NODE_ENV!=="production"?X({},Te.propTypes,{classNames:Pi,onEnter:y.func,onEntering:y.func,onEntered:y.func,onExit:y.func,onExiting:y.func,onExited:y.func}):{};var dt,ft;function Mi(e,t){return!(e===t||m.isValidElement(e)&&m.isValidElement(t)&&e.key!=null&&e.key===t.key)}var Ae={out:"out-in",in:"in-out"},St=function(t,r,o){return function(){var i;t.props[r]&&(i=t.props)[r].apply(i,arguments),o()}},ki=(dt={},dt[Ae.out]=function(e){var t=e.current,r=e.changeState;return m.cloneElement(t,{in:!1,onExited:St(t,"onExited",function(){r(ye,null)})})},dt[Ae.in]=function(e){var t=e.current,r=e.changeState,o=e.children;return[t,m.cloneElement(o,{in:!0,onEntered:St(o,"onEntered",function(){r(ye)})})]},dt),ji=(ft={},ft[Ae.out]=function(e){var t=e.children,r=e.changeState;return m.cloneElement(t,{in:!0,onEntered:St(t,"onEntered",function(){r(be,m.cloneElement(t,{in:!0}))})})},ft[Ae.in]=function(e){var t=e.current,r=e.children,o=e.changeState;return[m.cloneElement(t,{in:!1,onExited:St(t,"onExited",function(){o(be,m.cloneElement(r,{in:!0}))})}),m.cloneElement(r,{in:!0})]},ft),ln=(function(e){Mt(t,e);function t(){for(var o,i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return o=e.call.apply(e,[this].concat(n))||this,o.state={status:be,current:null},o.appeared=!1,o.changeState=function(l,c){c===void 0&&(c=o.state.current),o.setState({status:l,current:c})},o}var r=t.prototype;return r.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(i,n){return i.children==null?{current:null}:n.status===ye&&i.mode===Ae.in?{status:ye}:n.current&&Mi(n.current,i.children)?{status:ot}:{current:m.cloneElement(i.children,{in:!0})}},r.render=function(){var i=this.props,n=i.children,a=i.mode,l=this.state,c=l.status,u=l.current,d={children:n,current:u,changeState:this.changeState,status:c},f;switch(c){case ye:f=ji[a](d);break;case ot:f=ki[a](d);break;case be:f=u}return m.createElement(sn.Provider,{value:{isMounting:!this.appeared}},f)},t})(m.Component);ln.propTypes=process.env.NODE_ENV!=="production"?{mode:y.oneOf([Ae.in,Ae.out]),children:y.oneOfType([y.element.isRequired])}:{};ln.defaultProps={mode:Ae.out};const Li="stack-module_stack",Hi="stack-module_slideEnter",Vi="stack-module_slideEnterActive",$i="stack-module_slideExit",Fi="stack-module_slideExitActive",Oe={stack:Li,slideEnter:Hi,slideEnterActive:Vi,slideExit:$i,slideExitActive:Fi};function Bi({name:e,children:t}){return s.jsx("div",{className:Oe.stack,children:t})}const Ir=m.createContext({setView:()=>{},current:{name:"none"}});function Ke(){return m.useContext(Ir)}function we({name:e,currentView:t,onViewChange:r,children:o}){const i={none:{name:"none",ref:m.createRef(),view:null}};m.Children.forEach(o,f=>{if(!m.isValidElement(f))return;const{name:p}=f.props;if(!p)throw new Error("name is required for Stack.View");i[p]={name:p,ref:m.createRef(),view:f}});const[n,a]=m.useState(i[t].ref);m.useEffect(()=>{a(i[t].ref)},[t]);const{view:l}=i[t],[c,u]=m.useState({}),d=m.useMemo(()=>({current:{name:t,args:c},setView:(f,p)=>{u(p),r(f,p)}}),[t,r,c,u]);return s.jsx(Ir.Provider,{value:d,children:s.jsx(ln,{mode:"out-in",children:s.jsx(an,{classNames:{enter:Oe.slideEnter,enterActive:Oe.slideEnterActive,enterDone:Oe.slideEnterDone,exit:Oe.slideExit,exitActive:Oe.slideExitActive,exitDone:Oe.slideExitDone},mountOnEnter:!0,unmountOnExit:!0,timeout:300,nodeRef:n,addEndListener:f=>{n.current.addEventListener("transitionend",f,!1)},children:s.jsx("div",{className:Oe.stack,ref:n,children:l})},t)})})}we.View=Bi;const zi="router-module_container",Ui="router-module_controlsContainer",Yi="router-module_filterButton",Wi="router-module_filterCounter",Ki="router-module_spinner",Gi="router-module_stackContainer",Me={container:zi,controlsContainer:Ui,filterButton:Yi,filterCounter:Wi,spinner:Ki,stackContainer:Gi},qi="SearchInput-module_container",Zi="SearchInput-module_searchInput",zn={container:qi,searchInput:Zi};function Ji({onFocus:e}){const{options:t,setPlace:r,t:o,language:i}=ie(),n=t.googleApiKey,a=m.useRef(null),l=br(n,i);return m.useEffect(()=>{a.current&&l.importLibrary("places").then(c=>{const u=new c.Autocomplete(a.current,{fields:["geometry"]});u.addListener("place_changed",()=>{const d=u.getPlace();r(d)})})},[a]),s.jsx("div",{className:zn.container,children:s.jsx("input",{onFocus:e,ref:a,className:zn.searchInput,type:"text",placeholder:o("search.placeholder")})})}const Xi="filters-module_headerContainer",Qi="filters-module_container",es="filters-module_header",ts="filters-module_heading",ns="filters-module_actionLinkClearAll",rs="filters-module_optionsGroup",os="filters-module_rowLabel",is="filters-module_label",ss="filters-module_dot",as="filters-module_connectorIcon",V={headerContainer:Xi,container:Qi,header:es,heading:ts,actionLinkClearAll:ns,optionsGroup:rs,rowLabel:os,label:is,dot:ss,connectorIcon:as},ls="Checkbox-module_container",cs="Checkbox-module_box",Un={container:ls,box:cs};function he({id:e,name:t,checked:r,onChange:o,type:i="checkbox"}){const[n,a]=m.useState(r||!1),l=m.useCallback(c=>{a(c.target.checked),o(c.target.checked)},[o]);return m.useEffect(()=>{a(r)},[r]),s.jsxs("div",{className:Un.container,children:[s.jsx("input",{name:t,id:e,type:i,value:n,checked:n,onChange:l}),s.jsx("span",{className:Un.box,children:s.jsx("svg",{className:"checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})})]})}const us="Range-module_container",ds="Range-module_input",fs="Range-module_ticksContainer",ps="Range-module_tick",pt={container:us,input:ds,ticksContainer:fs,tick:ps};function hs({ticks:e,value:t,onChange:r}){const o=m.useRef(null),i=e.findIndex(a=>a.value===t),n=i/(e.length-1)*100;return s.jsxs("div",{className:pt.container,children:[s.jsx("input",{value:i,onChange:a=>{r(e[a.target.value].value)},ref:o,className:pt.input,type:"range",list:"tickmarks",step:"1",min:"0",max:"8",style:{"--roadmap-range-bgize":`${n}%`}}),s.jsx("div",{className:pt.ticksContainer,children:e.map((a,l)=>s.jsx("div",{onClick:c=>{r(e[l].value)},className:pt.tick,children:a.label},a.label))})]})}var ht={exports:{}},re={};/**
29
- * @license React
30
- * react-is.production.min.js
31
- *
32
- * Copyright (c) Facebook, Inc. and its affiliates.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE file in the root directory of this source tree.
36
- */var Yn;function ms(){if(Yn)return re;Yn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),T;T=Symbol.for("react.module.reference");function w(g){if(typeof g=="object"&&g!==null){var O=g.$$typeof;switch(O){case e:switch(g=g.type,g){case r:case i:case o:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case a:case c:case p:case f:case n:return g;default:return O}}case t:return O}}}return re.ContextConsumer=a,re.ContextProvider=n,re.Element=e,re.ForwardRef=c,re.Fragment=r,re.Lazy=p,re.Memo=f,re.Portal=t,re.Profiler=i,re.StrictMode=o,re.Suspense=u,re.SuspenseList=d,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(g){return w(g)===a},re.isContextProvider=function(g){return w(g)===n},re.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},re.isForwardRef=function(g){return w(g)===c},re.isFragment=function(g){return w(g)===r},re.isLazy=function(g){return w(g)===p},re.isMemo=function(g){return w(g)===f},re.isPortal=function(g){return w(g)===t},re.isProfiler=function(g){return w(g)===i},re.isStrictMode=function(g){return w(g)===o},re.isSuspense=function(g){return w(g)===u},re.isSuspenseList=function(g){return w(g)===d},re.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===u||g===d||g===E||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===n||g.$$typeof===a||g.$$typeof===c||g.$$typeof===T||g.getModuleId!==void 0)},re.typeOf=w,re}var oe={};/**
37
- * @license React
38
- * react-is.development.js
39
- *
40
- * Copyright (c) Facebook, Inc. and its affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */var Wn;function gs(){return Wn||(Wn=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),T=!1,w=!1,g=!1,O=!1,C=!1,_;_=Symbol.for("react.module.reference");function x(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===i||C||R===o||R===u||R===d||O||R===E||T||w||g||typeof R=="object"&&R!==null&&(R.$$typeof===p||R.$$typeof===f||R.$$typeof===n||R.$$typeof===a||R.$$typeof===c||R.$$typeof===_||R.getModuleId!==void 0))}function v(R){if(typeof R=="object"&&R!==null){var _e=R.$$typeof;switch(_e){case e:var pe=R.type;switch(pe){case r:case i:case o:case u:case d:return pe;default:var Ce=pe&&pe.$$typeof;switch(Ce){case l:case a:case c:case p:case f:case n:return Ce;default:return _e}}case t:return _e}}}var I=a,W=n,j=e,z=c,A=r,L=p,Z=f,D=t,S=i,ee=o,Q=u,fe=d,Y=!1,K=!1;function h(R){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function b(R){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(R){return v(R)===a}function $(R){return v(R)===n}function k(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function G(R){return v(R)===c}function M(R){return v(R)===r}function B(R){return v(R)===p}function U(R){return v(R)===f}function J(R){return v(R)===t}function q(R){return v(R)===i}function se(R){return v(R)===o}function N(R){return v(R)===u}function le(R){return v(R)===d}oe.ContextConsumer=I,oe.ContextProvider=W,oe.Element=j,oe.ForwardRef=z,oe.Fragment=A,oe.Lazy=L,oe.Memo=Z,oe.Portal=D,oe.Profiler=S,oe.StrictMode=ee,oe.Suspense=Q,oe.SuspenseList=fe,oe.isAsyncMode=h,oe.isConcurrentMode=b,oe.isContextConsumer=P,oe.isContextProvider=$,oe.isElement=k,oe.isForwardRef=G,oe.isFragment=M,oe.isLazy=B,oe.isMemo=U,oe.isPortal=J,oe.isProfiler=q,oe.isStrictMode=se,oe.isSuspense=N,oe.isSuspenseList=le,oe.isValidElementType=x,oe.typeOf=v})()),oe}var Kn;function vs(){return Kn||(Kn=1,process.env.NODE_ENV==="production"?ht.exports=ms():ht.exports=gs()),ht.exports}var Gn=vs();const qn=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Zn=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",mt=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Zn(r.overflowY,t)||Zn(r.overflowX,t)||(o=>{const i=(n=>{if(!n.ownerDocument||!n.ownerDocument.defaultView)return null;try{return n.ownerDocument.defaultView.frameElement}catch{return null}})(o);return!!i&&(i.clientHeight<o.scrollHeight||i.clientWidth<o.scrollWidth)})(e)}return!1},gt=(e,t,r,o,i,n,a,l)=>n<e&&a>t||n>e&&a<t?0:n<=e&&l<=r||a>=t&&l>=r?n-e-o:a>t&&l<r||n<e&&l>r?a-t+i:0,ys=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},_s=(e,t)=>{var r,o,i,n;if(typeof document>"u")return[];const{inline:a,boundary:l,skipOverflowHiddenElements:c}=t,u=typeof l=="function"?l:D=>D!==l;if(!qn(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,f=[];let p=e;for(;qn(p)&&u(p);){if(p=ys(p),p===d){f.push(p);break}p!=null&&p===document.body&&mt(p)&&!mt(document.documentElement)||p!=null&&mt(p,c)&&f.push(p)}const E=(o=(r=window.visualViewport)==null?void 0:r.width)!=null?o:innerWidth,T=(n=(i=window.visualViewport)==null?void 0:i.height)!=null?n:innerHeight,{scrollX:w,scrollY:g}=window,{height:O,width:C,top:_,right:x,bottom:v,left:I}=e.getBoundingClientRect(),{top:W,right:j,left:z}=(D=>{const S=window.getComputedStyle(D);return{top:parseFloat(S.scrollMarginTop)||0,right:parseFloat(S.scrollMarginRight)||0,bottom:parseFloat(S.scrollMarginBottom)||0,left:parseFloat(S.scrollMarginLeft)||0}})(e);let A=_-W,L=a==="center"?I+C/2-z+j:a==="end"?x+j:I-z;const Z=[];for(let D=0;D<f.length;D++){const S=f[D],{height:ee,width:Q,top:fe,right:Y,bottom:K,left:h}=S.getBoundingClientRect();if(_>=0&&I>=0&&v<=T&&x<=E&&(S===d&&!mt(S)||_>=fe&&v<=K&&I>=h&&x<=Y))return Z;const b=getComputedStyle(S),P=parseInt(b.borderLeftWidth,10),$=parseInt(b.borderTopWidth,10),k=parseInt(b.borderRightWidth,10),G=parseInt(b.borderBottomWidth,10);let M=0,B=0;const U="offsetWidth"in S?S.offsetWidth-S.clientWidth-P-k:0,J="offsetHeight"in S?S.offsetHeight-S.clientHeight-$-G:0,q="offsetWidth"in S?S.offsetWidth===0?0:Q/S.offsetWidth:0,se="offsetHeight"in S?S.offsetHeight===0?0:ee/S.offsetHeight:0;if(d===S)M=gt(g,g+T,T,$,G,g+A,g+A+O,O),B=a==="start"?L:a==="center"?L-E/2:a==="end"?L-E:gt(w,w+E,E,P,k,w+L,w+L+C,C),M=Math.max(0,M+g),B=Math.max(0,B+w);else{M=gt(fe,K,ee,$,G+J,A,A+O,O),B=a==="start"?L-h-P:a==="center"?L-(h+Q/2)+U/2:a==="end"?L-Y+k+U:gt(h,Y,Q,P,k+U,L,L+C,C);const{scrollLeft:N,scrollTop:le}=S;M=se===0?0:Math.max(0,Math.min(le+M/se,S.scrollHeight-ee/se+J)),B=q===0?0:Math.max(0,Math.min(N+B/q,S.scrollWidth-Q/q+U)),A+=le-M,L+=N-B}Z.push({el:S,top:M,left:B})}return Z};var Ye=function(){return Ye=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ye.apply(this,arguments)};var Cs=0;function Jn(e){return typeof e=="function"?e:ge}function ge(){}function Sr(e,t){if(e){var r=_s(e,{boundary:t});r.forEach(function(o){var i=o.el,n=o.top,a=o.left;i.scrollTop=n,i.scrollLeft=a})}}function Xn(e,t,r){var o=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return o}function kt(e,t){var r;function o(){r&&clearTimeout(r)}function i(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];o(),r=setTimeout(function(){r=null,e.apply(void 0,a)},t)}return i.cancel=o,i}function de(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return t.some(function(l){return l&&l.apply(void 0,[o].concat(n)),o.preventDownshiftDefault||o.hasOwnProperty("nativeEvent")&&o.nativeEvent.preventDownshiftDefault})}}function Qe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){t.forEach(function(i){typeof i=="function"?i(o):i&&(i.current=o)})}}function Or(){return String(Cs++)}function xs(e){var t=e.isOpen,r=e.resultCount,o=e.previousResultCount;return t?r?r!==o?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Qn(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Dr(e){return typeof e.type=="string"}function Ar(e){return e.props}function Es(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var bs=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function vt(e){e===void 0&&(e={});var t={};return bs.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function Ot(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,o){return r[o]=qt(t,o)?t[o]:e[o],r},{})}function qt(e,t){return e[t]!==void 0}function Zt(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function Ts(e){return Object.prototype.toString.call(e)==="[object Object]"}function He(e,t,r,o,i){i===void 0&&(i=!1);var n=r.length;if(n===0)return-1;var a=n-1;(typeof e!="number"||e<0||e>a)&&(e=t>0?-1:a+1);var l=e+t;l<0?l=i?a:0:l>a&&(l=i?0:a);var c=We(l,t<0,r,o,i);return c===-1?e>=n?-1:e:c}function We(e,t,r,o,i){i===void 0&&(i=!1);var n=r.length;if(t){for(var a=e;a>=0;a--)if(!o(r[a],a))return a}else for(var l=e;l<n;l++)if(!o(r[l],l))return l;return i?We(t?n-1:0,t,r,o):-1}function Dt(e,t,r,o){return o===void 0&&(o=!0),r&&t.some(function(i){return i&&(Xn(i,e,r)||o&&Xn(i,r.document.activeElement,r))})}var cn=ge;process.env.NODE_ENV!=="production"&&(cn=function(t,r,o){var i="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(t).forEach(function(n){r[n]!==void 0&&o[n]===void 0?console.error('downshift: A component has changed the controlled prop "'+n+'" to be uncontrolled. '+i):r[n]===void 0&&o[n]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+n+'" to be controlled. '+i)})});var ws=kt(function(e){Pr(e).textContent=""},500);function Pr(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Rr(e,t){if(!(!e||!t)){var r=Pr(t);r.textContent=e,ws(t)}}function Ns(e){var t=e?.getElementById("a11y-status-message");t&&t.remove()}var Mr=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,kr=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,jr=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Tt=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,wt=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Lr=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Hr=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Vr=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,$r=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Fr=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Br=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,zr=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Ur=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Jt=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Yr=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Wr=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Kr=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,Is=Object.freeze({__proto__:null,blurButton:Yr,blurInput:Br,changeInput:zr,clickButton:Jt,clickItem:Fr,controlledPropUpdatedSelectedItem:Wr,itemMouseEnter:jr,keyDownArrowDown:wt,keyDownArrowUp:Tt,keyDownEnd:$r,keyDownEnter:Hr,keyDownEscape:Lr,keyDownHome:Vr,keyDownSpaceButton:Ur,mouseUp:kr,touchEnd:Kr,unknown:Mr}),Ss=["refKey","ref"],Os=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Ds=["onKeyDown","onBlur","onChange","onInput","onChangeText"],As=["refKey","ref"],Ps=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Rs=(function(){var e=(function(t){function r(i){var n;n=t.call(this,i)||this,n.id=n.props.id||"downshift-"+Or(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(C){return n.id+"-item-"+C},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(C,_){var x=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(v){return v!==x}),C()},_);n.timeoutIds.push(x)},n.setItemCount=function(C){n.itemCount=C},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(C,_){var x=n.getItemNodeFromIndex(_);return x&&x.hasAttribute("disabled")},n.setHighlightedIndex=function(C,_){C===void 0&&(C=n.props.defaultHighlightedIndex),_===void 0&&(_={}),_=vt(_),n.internalSetState(X({highlightedIndex:C},_))},n.clearSelection=function(C){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},C)},n.selectItem=function(C,_,x){_=vt(_),n.internalSetState(X({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:C,inputValue:n.props.itemToString(C)},_),x)},n.selectItemAtIndex=function(C,_,x){var v=n.items[C];v!=null&&n.selectItem(v,_,x)},n.selectHighlightedItem=function(C,_){return n.selectItemAtIndex(n.getState().highlightedIndex,C,_)},n.internalSetState=function(C,_){var x,v,I={},W=typeof C=="function";return!W&&C.hasOwnProperty("inputValue")&&n.props.onInputValueChange(C.inputValue,X({},n.getStateAndHelpers(),C)),n.setState(function(j){var z;j=n.getState(j);var A=W?C(j):C;A=n.props.stateReducer(j,A),x=A.hasOwnProperty("selectedItem");var L={};return x&&A.selectedItem!==j.selectedItem&&(v=A.selectedItem),(z=A).type||(z.type=Mr),Object.keys(A).forEach(function(Z){j[Z]!==A[Z]&&(I[Z]=A[Z]),Z!=="type"&&(A[Z],qt(n.props,Z)||(L[Z]=A[Z]))}),W&&A.hasOwnProperty("inputValue")&&n.props.onInputValueChange(A.inputValue,X({},n.getStateAndHelpers(),A)),L},function(){Jn(_)();var j=Object.keys(I).length>1;j&&n.props.onStateChange(I,n.getStateAndHelpers()),x&&n.props.onSelect(C.selectedItem,n.getStateAndHelpers()),v!==void 0&&n.props.onChange(v,n.getStateAndHelpers()),n.props.onUserAction(I,n.getStateAndHelpers())})},n.rootRef=function(C){return n._rootNode=C},n.getRootProps=function(C,_){var x,v=C===void 0?{}:C,I=v.refKey,W=I===void 0?"ref":I,j=v.ref,z=xe(v,Ss),A=_===void 0?{}:_,L=A.suppressRefError,Z=L===void 0?!1:L;n.getRootProps.called=!0,n.getRootProps.refKey=W,n.getRootProps.suppressRefError=Z;var D=n.getState(),S=D.isOpen;return X((x={},x[W]=Qe(j,n.rootRef),x.role="combobox",x["aria-expanded"]=S,x["aria-haspopup"]="listbox",x["aria-owns"]=S?n.menuId:void 0,x["aria-labelledby"]=n.labelId,x),z)},n.keyDownHandlers={ArrowDown:function(_){var x=this;if(_.preventDefault(),this.getState().isOpen){var v=_.shiftKey?5:1;this.moveHighlightedIndex(v,{type:wt})}else this.internalSetState({isOpen:!0,type:wt},function(){var I=x.getItemCount();if(I>0){var W=x.getState(),j=W.highlightedIndex,z=He(j,1,{length:I},x.isItemDisabled,!0);x.setHighlightedIndex(z,{type:wt})}})},ArrowUp:function(_){var x=this;if(_.preventDefault(),this.getState().isOpen){var v=_.shiftKey?-5:-1;this.moveHighlightedIndex(v,{type:Tt})}else this.internalSetState({isOpen:!0,type:Tt},function(){var I=x.getItemCount();if(I>0){var W=x.getState(),j=W.highlightedIndex,z=He(j,-1,{length:I},x.isItemDisabled,!0);x.setHighlightedIndex(z,{type:Tt})}})},Enter:function(_){if(_.which!==229){var x=this.getState(),v=x.isOpen,I=x.highlightedIndex;if(v&&I!=null){_.preventDefault();var W=this.items[I],j=this.getItemNodeFromIndex(I);if(W==null||j&&j.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Hr})}}},Escape:function(_){_.preventDefault(),this.reset(X({type:Lr},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=X({},n.keyDownHandlers,{" ":function(_){_.preventDefault(),this.toggleMenu({type:Ur})}}),n.inputKeyDownHandlers=X({},n.keyDownHandlers,{Home:function(_){var x=this.getState(),v=x.isOpen;if(v){_.preventDefault();var I=this.getItemCount();if(!(I<=0||!v)){var W=We(0,!1,{length:I},this.isItemDisabled);this.setHighlightedIndex(W,{type:Vr})}}},End:function(_){var x=this.getState(),v=x.isOpen;if(v){_.preventDefault();var I=this.getItemCount();if(!(I<=0||!v)){var W=We(I-1,!0,{length:I},this.isItemDisabled);this.setHighlightedIndex(W,{type:$r})}}}}),n.getToggleButtonProps=function(C){var _=C===void 0?{}:C,x=_.onClick;_.onPress;var v=_.onKeyDown,I=_.onKeyUp,W=_.onBlur,j=xe(_,Os),z=n.getState(),A=z.isOpen,L={onClick:de(x,n.buttonHandleClick),onKeyDown:de(v,n.buttonHandleKeyDown),onKeyUp:de(I,n.buttonHandleKeyUp),onBlur:de(W,n.buttonHandleBlur)},Z=j.disabled?{}:L;return X({type:"button",role:"button","aria-label":A?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},Z,j)},n.buttonHandleKeyUp=function(C){C.preventDefault()},n.buttonHandleKeyDown=function(C){var _=Zt(C);n.buttonKeyDownHandlers[_]&&n.buttonKeyDownHandlers[_].call(n,C)},n.buttonHandleClick=function(C){if(C.preventDefault(),n.props.environment){var _=n.props.environment.document,x=_.body,v=_.activeElement;x&&x===v&&C.target.focus()}process.env.NODE_ENV==="test"?n.toggleMenu({type:Jt}):n.internalSetTimeout(function(){return n.toggleMenu({type:Jt})})},n.buttonHandleBlur=function(C){var _=C.target;n.internalSetTimeout(function(){if(!(n.isMouseDown||!n.props.environment)){var x=n.props.environment.document.activeElement;(x==null||x.id!==n.inputId)&&x!==_&&n.reset({type:Yr})}})},n.getLabelProps=function(C){return X({htmlFor:n.inputId,id:n.labelId},C)},n.getInputProps=function(C){var _=C===void 0?{}:C,x=_.onKeyDown,v=_.onBlur,I=_.onChange,W=_.onInput;_.onChangeText;var j=xe(_,Ds),z,A={};z="onChange";var L=n.getState(),Z=L.inputValue,D=L.isOpen,S=L.highlightedIndex;if(!j.disabled){var ee;A=(ee={},ee[z]=de(I,W,n.inputHandleChange),ee.onKeyDown=de(x,n.inputHandleKeyDown),ee.onBlur=de(v,n.inputHandleBlur),ee)}return X({"aria-autocomplete":"list","aria-activedescendant":D&&typeof S=="number"&&S>=0?n.getItemId(S):void 0,"aria-controls":D?n.menuId:void 0,"aria-labelledby":j&&j["aria-label"]?void 0:n.labelId,autoComplete:"off",value:Z,id:n.inputId},A,j)},n.inputHandleKeyDown=function(C){var _=Zt(C);_&&n.inputKeyDownHandlers[_]&&n.inputKeyDownHandlers[_].call(n,C)},n.inputHandleChange=function(C){n.internalSetState({type:zr,isOpen:!0,inputValue:C.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){var C;if(!(n.isMouseDown||!n.props.environment)){var _=n.props.environment.document.activeElement,x=(_==null||(C=_.dataset)==null?void 0:C.toggle)&&n._rootNode&&n._rootNode.contains(_);x||n.reset({type:Br})}})},n.menuRef=function(C){n._menuNode=C},n.getMenuProps=function(C,_){var x,v=C===void 0?{}:C,I=v.refKey,W=I===void 0?"ref":I,j=v.ref,z=xe(v,As),A=_===void 0?{}:_,L=A.suppressRefError,Z=L===void 0?!1:L;return n.getMenuProps.called=!0,n.getMenuProps.refKey=W,n.getMenuProps.suppressRefError=Z,X((x={},x[W]=Qe(j,n.menuRef),x.role="listbox",x["aria-labelledby"]=z&&z["aria-label"]?void 0:n.labelId,x.id=n.menuId,x),z)},n.getItemProps=function(C){var _,x=C===void 0?{}:C,v=x.onMouseMove,I=x.onMouseDown,W=x.onClick;x.onPress;var j=x.index,z=x.item,A=z===void 0?process.env.NODE_ENV==="production"?void 0:Es("getItemProps","item"):z,L=xe(x,Ps);j===void 0?(n.items.push(A),j=n.items.indexOf(A)):n.items[j]=A;var Z="onClick",D=W,S=(_={onMouseMove:de(v,function(){j!==n.getState().highlightedIndex&&(n.setHighlightedIndex(j,{type:jr}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:de(I,function(Q){Q.preventDefault()})},_[Z]=de(D,function(){n.selectItemAtIndex(j,{type:Fr})}),_),ee=L.disabled?{onMouseDown:S.onMouseDown}:S;return X({id:n.getItemId(j),role:"option","aria-selected":n.getState().highlightedIndex===j},ee,L)},n.clearItems=function(){n.items=[]},n.reset=function(C,_){C===void 0&&(C={}),C=vt(C),n.internalSetState(function(x){var v=x.selectedItem;return X({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(v)},C)},_)},n.toggleMenu=function(C,_){C===void 0&&(C={}),C=vt(C),n.internalSetState(function(x){var v=x.isOpen;return X({isOpen:!v},v&&{highlightedIndex:n.props.defaultHighlightedIndex},C)},function(){var x=n.getState(),v=x.isOpen,I=x.highlightedIndex;v&&n.getItemCount()>0&&typeof I=="number"&&n.setHighlightedIndex(I,C),Jn(_)()})},n.openMenu=function(C){n.internalSetState({isOpen:!0},C)},n.closeMenu=function(C){n.internalSetState({isOpen:!1},C)},n.updateStatus=kt(function(){var C;if((C=n.props)!=null&&(C=C.environment)!=null&&C.document){var _=n.getState(),x=n.items[_.highlightedIndex],v=n.getItemCount(),I=n.props.getA11yStatusMessage(X({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:v,highlightedItem:x},_));n.previousResultCount=v,Rr(I,n.props.environment.document)}},200);var a=n.props,l=a.defaultHighlightedIndex,c=a.initialHighlightedIndex,u=c===void 0?l:c,d=a.defaultIsOpen,f=a.initialIsOpen,p=f===void 0?d:f,E=a.initialInputValue,T=E===void 0?"":E,w=a.initialSelectedItem,g=w===void 0?null:w,O=n.getState({highlightedIndex:u,isOpen:p,inputValue:T,selectedItem:g});return O.selectedItem!=null&&n.props.initialInputValue===void 0&&(O.inputValue=n.props.itemToString(O.selectedItem)),n.state=O,n}Mt(r,t);var o=r.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach(function(n){clearTimeout(n)}),this.timeoutIds=[]},o.getState=function(n){return n===void 0&&(n=this.state),Ot(n,this.props)},o.getItemCount=function(){var n=this.items.length;return this.itemCount!=null?n=this.itemCount:this.props.itemCount!==void 0&&(n=this.props.itemCount),n},o.getItemNodeFromIndex=function(n){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(n)):null},o.scrollHighlightedItemIntoView=function(){{var n=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(n,this._menuNode)}},o.moveHighlightedIndex=function(n,a){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var d=He(u,n,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(d,a)}},o.getStateAndHelpers=function(){var n=this.getState(),a=n.highlightedIndex,l=n.inputValue,c=n.selectedItem,u=n.isOpen,d=this.props.itemToString,f=this.id,p=this.getRootProps,E=this.getToggleButtonProps,T=this.getLabelProps,w=this.getMenuProps,g=this.getInputProps,O=this.getItemProps,C=this.openMenu,_=this.closeMenu,x=this.toggleMenu,v=this.selectItem,I=this.selectItemAtIndex,W=this.selectHighlightedItem,j=this.setHighlightedIndex,z=this.clearSelection,A=this.clearItems,L=this.reset,Z=this.setItemCount,D=this.unsetItemCount,S=this.internalSetState;return{getRootProps:p,getToggleButtonProps:E,getLabelProps:T,getMenuProps:w,getInputProps:g,getItemProps:O,reset:L,openMenu:C,closeMenu:_,toggleMenu:x,selectItem:v,selectItemAtIndex:I,selectHighlightedItem:W,setHighlightedIndex:j,clearSelection:z,clearItems:A,setItemCount:Z,unsetItemCount:D,setState:S,itemToString:d,id:f,highlightedIndex:a,inputValue:l,isOpen:u,selectedItem:c}},o.componentDidMount=function(){var n=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&er(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){n.internalClearTimeouts()};else{var a=function(){n.isMouseDown=!0},l=function(E){n.isMouseDown=!1;var T=Dt(E.target,[n._rootNode,n._menuNode],n.props.environment);!T&&n.getState().isOpen&&n.reset({type:kr},function(){return n.props.onOuterClick(n.getStateAndHelpers())})},c=function(){n.isTouchMove=!1},u=function(){n.isTouchMove=!0},d=function(E){var T=Dt(E.target,[n._rootNode,n._menuNode],n.props.environment,!1);!n.isTouchMove&&!T&&n.getState().isOpen&&n.reset({type:Kr},function(){return n.props.onOuterClick(n.getStateAndHelpers())})},f=this.props.environment;f.addEventListener("mousedown",a),f.addEventListener("mouseup",l),f.addEventListener("touchstart",c),f.addEventListener("touchmove",u),f.addEventListener("touchend",d),this.cleanup=function(){n.internalClearTimeouts(),n.updateStatus.cancel(),f.removeEventListener("mousedown",a),f.removeEventListener("mouseup",l),f.removeEventListener("touchstart",c),f.removeEventListener("touchmove",u),f.removeEventListener("touchend",d)}}},o.shouldScroll=function(n,a){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=a.highlightedIndex===void 0?n:a,d=u.highlightedIndex,f=c&&this.getState().isOpen&&!n.isOpen,p=c!==d;return f||p},o.componentDidUpdate=function(n,a){process.env.NODE_ENV!=="production"&&(cn(this.state,n,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&er(this._menuNode,this.getMenuProps)),qt(this.props,"selectedItem")&&this.props.selectedItemChanged(n.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Wr,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,n)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var n=Qn(this.props.children,ge);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var a=Qn(n(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&Ms(a,this.getRootProps),a;if(Dr(a))return m.cloneElement(a,this.getRootProps(Ar(a)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(m.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:xs,itemToString:function(r){return r==null?"":(process.env.NODE_ENV!=="production"&&Ts(r)&&!r.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",r),String(r))},onStateChange:ge,onInputValueChange:ge,onUserAction:ge,onChange:ge,onSelect:ge,onOuterClick:ge,selectedItemChanged:function(r,o){return r!==o},environment:typeof window>"u"?void 0:window,stateReducer:function(r,o){return o},suppressRefError:!1,scrollIntoView:Sr},e.stateChangeTypes=Is,e})();process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:y.func,defaultHighlightedIndex:y.number,defaultIsOpen:y.bool,initialHighlightedIndex:y.number,initialSelectedItem:y.any,initialInputValue:y.string,initialIsOpen:y.bool,getA11yStatusMessage:y.func,itemToString:y.func,onChange:y.func,onSelect:y.func,onStateChange:y.func,onInputValueChange:y.func,onUserAction:y.func,onOuterClick:y.func,selectedItemChanged:y.func,stateReducer:y.func,itemCount:y.number,id:y.string,environment:y.shape({addEventListener:y.func.isRequired,removeEventListener:y.func.isRequired,document:y.shape({createElement:y.func.isRequired,getElementById:y.func.isRequired,activeElement:y.any.isRequired,body:y.any.isRequired}).isRequired,Node:y.func.isRequired}),suppressRefError:y.bool,scrollIntoView:y.func,selectedItem:y.any,isOpen:y.bool,inputValue:y.string,highlightedIndex:y.number,labelId:y.string,inputId:y.string,menuId:y.string,getItemId:y.func});function er(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function Ms(e,t){var r=t.refKey,o=r!=="ref",i=!Dr(e);i&&!o&&!Gn.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&o&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!Gn.isForwardRef(e)&&!Ar(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}var Gr={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function ks(e,t,r){var o=e.props,i=e.type,n={};Object.keys(t).forEach(function(a){js(a,e,t,r),r[a]!==t[a]&&(n[a]=r[a])}),o.onStateChange&&Object.keys(n).length&&o.onStateChange(X({type:i},n))}function js(e,t,r,o){var i=t.props,n=t.type,a="on"+un(e)+"Change";i[a]&&o[e]!==void 0&&o[e]!==r[e]&&i[a](X({type:n},o))}function Ls(e,t){return t.changes}var tr=kt(function(e,t){Rr(e,t)},200),Hs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,Vs="useId"in m?function(t){var r=t.id,o=t.labelId,i=t.menuId,n=t.getItemId,a=t.toggleButtonId,l=t.inputId,c="downshift-"+m.useId();r||(r=c);var u=m.useRef({labelId:o||r+"-label",menuId:i||r+"-menu",getItemId:n||function(d){return r+"-item-"+d},toggleButtonId:a||r+"-toggle-button",inputId:l||r+"-input"});return u.current}:function(t){var r=t.id,o=r===void 0?"downshift-"+Or():r,i=t.labelId,n=t.menuId,a=t.getItemId,l=t.toggleButtonId,c=t.inputId,u=m.useRef({labelId:i||o+"-label",menuId:n||o+"-menu",getItemId:a||function(d){return o+"-item-"+d},toggleButtonId:l||o+"-toggle-button",inputId:c||o+"-input"});return u.current};function $s(e,t,r,o){var i,n;if(e===void 0){if(t===void 0)throw new Error(o);i=r[t],n=t}else n=t===void 0?r.indexOf(e):t,i=e;return[i,n]}function Fs(e){return/^\S{1}$/.test(e)}function un(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function qr(e){var t=m.useRef(e);return t.current=e,t}function Bs(e,t,r,o){var i=m.useRef(),n=m.useRef(),a=m.useCallback(function(E,T){n.current=T,E=Ot(E,T.props);var w=e(E,T),g=T.props.stateReducer(E,X({},T,{changes:w}));return g},[e]),l=m.useReducer(a,t,r),c=l[0],u=l[1],d=qr(t),f=m.useCallback(function(E){return u(X({props:d.current},E))},[d]),p=n.current;return m.useEffect(function(){var E=Ot(i.current,p?.props),T=p&&i.current&&!o(E,c);T&&ks(p,E,c),i.current=c},[c,p,o]),[c,f]}function zs(e,t,r,o){var i=Bs(e,t,r,o),n=i[0],a=i[1];return[Ot(n,t),a]}var et={itemToString:function(t){return t?String(t):""},itemToKey:function(t){return t},stateReducer:Ls,scrollIntoView:Sr,environment:typeof window>"u"?void 0:window};function De(e,t,r){r===void 0&&(r=Gr);var o=e["default"+un(t)];return o!==void 0?o:r[t]}function tt(e,t,r){r===void 0&&(r=Gr);var o=e[t];if(o!==void 0)return o;var i=e["initial"+un(t)];return i!==void 0?i:De(e,t,r)}function Us(e){var t=tt(e,"selectedItem"),r=tt(e,"isOpen"),o=qs(e),i=tt(e,"inputValue");return{highlightedIndex:o<0&&t&&r?e.items.findIndex(function(n){return e.itemToKey(n)===e.itemToKey(t)}):o,isOpen:r,selectedItem:t,inputValue:i}}function At(e,t,r){var o=e.items,i=e.initialHighlightedIndex,n=e.defaultHighlightedIndex,a=e.isItemDisabled,l=e.itemToKey,c=t.selectedItem,u=t.highlightedIndex;return o.length===0?-1:i!==void 0&&u===i&&!a(o[i],i)?i:n!==void 0&&!a(o[n],n)?n:c?o.findIndex(function(d){return l(c)===l(d)}):r<0&&!a(o[o.length-1],o.length-1)?o.length-1:r>0&&!a(o[0],0)?0:-1}function Ys(e,t,r){var o=m.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return m.useEffect(function(){if(!e)return ge;var i=r.map(function(d){return d.current});function n(){o.current.isTouchEnd=!1,o.current.isMouseDown=!0}function a(d){o.current.isMouseDown=!1,Dt(d.target,i,e)||t()}function l(){o.current.isTouchEnd=!1,o.current.isTouchMove=!1}function c(){o.current.isTouchMove=!0}function u(d){o.current.isTouchEnd=!0,!o.current.isTouchMove&&!Dt(d.target,i,e,!1)&&t()}return e.addEventListener("mousedown",n),e.addEventListener("mouseup",a),e.addEventListener("touchstart",l),e.addEventListener("touchmove",c),e.addEventListener("touchend",u),function(){e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",a),e.removeEventListener("touchstart",l),e.removeEventListener("touchmove",c),e.removeEventListener("touchend",u)}},[r,e,t]),o.current}var Zr=function(){return ge};process.env.NODE_ENV!=="production"&&(Zr=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=m.useRef(r.reduce(function(a,l){return a[l]={},a},{}));m.useEffect(function(){Object.keys(i.current).forEach(function(a){var l=i.current[a];if(!Object.keys(l).length){console.error("downshift: You forgot to call the "+a+" getter function on your component / element.");return}var c=l.suppressRefError,u=l.refKey,d=l.elementRef;c||d!=null&&d.current||console.error('downshift: The ref prop "'+u+'" from '+a+" was not applied correctly on your element.")})},[]);var n=m.useCallback(function(a,l,c,u){i.current[a]={suppressRefError:l,refKey:c,elementRef:u}},[]);return n});function Ws(e,t,r,o){o===void 0&&(o={});var i=o.document,n=Xr();m.useEffect(function(){if(!(!e||n||!i)){var a=e(t);tr(a,i)}},r),m.useEffect(function(){return function(){tr.cancel(),Ns(i)}},[i])}function Ks(e){var t=e.highlightedIndex,r=e.isOpen,o=e.itemRefs,i=e.getItemNodeFromIndex,n=e.menuElement,a=e.scrollIntoView,l=m.useRef(!0);return Hs(function(){t<0||!r||!Object.keys(o.current).length||(l.current===!1?l.current=!0:a(i(t),n))},[t]),l}var Jr=ge;process.env.NODE_ENV!=="production"&&(Jr=function(t){var r=t.props,o=t.state,i=m.useRef(r),n=Xr();m.useEffect(function(){n||(cn(o,i.current,r),i.current=r)},[o,r,n])});function nr(e,t,r){var o,i=((o=e.items)==null?void 0:o.length)&&t>=0;return X({isOpen:!1,highlightedIndex:-1},i&&X({selectedItem:e.items[t],isOpen:De(e,"isOpen"),highlightedIndex:De(e,"highlightedIndex")},r))}function Gs(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Xr(){var e=m.useRef(!0);return m.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function Qr(e){var t=De(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}function qs(e){var t=tt(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Nt={environment:y.shape({addEventListener:y.func.isRequired,removeEventListener:y.func.isRequired,document:y.shape({createElement:y.func.isRequired,getElementById:y.func.isRequired,activeElement:y.any.isRequired,body:y.any.isRequired}).isRequired,Node:y.func.isRequired}),itemToString:y.func,itemToKey:y.func,stateReducer:y.func},eo=X({},Nt,{getA11yStatusMessage:y.func,highlightedIndex:y.number,defaultHighlightedIndex:y.number,initialHighlightedIndex:y.number,isOpen:y.bool,defaultIsOpen:y.bool,initialIsOpen:y.bool,selectedItem:y.any,initialSelectedItem:y.any,defaultSelectedItem:y.any,id:y.string,labelId:y.string,menuId:y.string,getItemId:y.func,toggleButtonId:y.string,onSelectedItemChange:y.func,onHighlightedIndexChange:y.func,onStateChange:y.func,onIsOpenChange:y.func,scrollIntoView:y.func});function Zs(e,t,r){var o=t.type,i=t.props,n;switch(o){case r.ItemMouseMove:n={highlightedIndex:t.disabled?-1:t.index};break;case r.MenuMouseLeave:n={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:At(i,e,0)};break;case r.FunctionOpenMenu:n={isOpen:!0,highlightedIndex:At(i,e,0)};break;case r.FunctionCloseMenu:n={isOpen:!1};break;case r.FunctionSetHighlightedIndex:n={highlightedIndex:i.isItemDisabled(i.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case r.FunctionSetInputValue:n={inputValue:t.inputValue};break;case r.FunctionReset:n={highlightedIndex:Qr(i),isOpen:De(i,"isOpen"),selectedItem:De(i,"selectedItem"),inputValue:De(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return X({},e,n)}function Js(e){for(var t=e.keysSoFar,r=e.highlightedIndex,o=e.items,i=e.itemToString,n=e.isItemDisabled,a=t.toLowerCase(),l=0;l<o.length;l++){var c=(l+r+(t.length<2?1:0))%o.length,u=o[c];if(u!==void 0&&i(u).toLowerCase().startsWith(a)&&!n(u,c))return c}return r}var Xs=Ye(Ye({},eo),{items:y.array.isRequired,isItemDisabled:y.func}),Qs=Ye(Ye({},et),{isItemDisabled:function(){return!1}}),to=ge;process.env.NODE_ENV!=="production"&&(to=function(e,t){y.checkPropTypes(Xs,e,"prop",t.name)});var It=process.env.NODE_ENV!=="production"?"__togglebutton_click__":0,dn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,fn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,Pt=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,pn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,hn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,mn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,gn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,vn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,yn=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,_n=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,Rt=process.env.NODE_ENV!=="production"?"__togglebutton_blur__":11,no=process.env.NODE_ENV!=="production"?"__menu_mouse_leave__":12,ro=process.env.NODE_ENV!=="production"?"__item_mouse_move__":13,Cn=process.env.NODE_ENV!=="production"?"__item_click__":14,oo=process.env.NODE_ENV!=="production"?"__function_toggle_menu__":15,io=process.env.NODE_ENV!=="production"?"__function_open_menu__":16,so=process.env.NODE_ENV!=="production"?"__function_close_menu__":17,ao=process.env.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,xn=process.env.NODE_ENV!=="production"?"__function_select_item__":19,Xt=process.env.NODE_ENV!=="production"?"__function_set_input_value__":20,lo=process.env.NODE_ENV!=="production"?"__function_reset__":21,co=Object.freeze({__proto__:null,FunctionCloseMenu:so,FunctionOpenMenu:io,FunctionReset:lo,FunctionSelectItem:xn,FunctionSetHighlightedIndex:ao,FunctionSetInputValue:Xt,FunctionToggleMenu:oo,ItemClick:Cn,ItemMouseMove:ro,MenuMouseLeave:no,ToggleButtonBlur:Rt,ToggleButtonClick:It,ToggleButtonKeyDownArrowDown:dn,ToggleButtonKeyDownArrowUp:fn,ToggleButtonKeyDownCharacter:Pt,ToggleButtonKeyDownEnd:mn,ToggleButtonKeyDownEnter:gn,ToggleButtonKeyDownEscape:pn,ToggleButtonKeyDownHome:hn,ToggleButtonKeyDownPageDown:_n,ToggleButtonKeyDownPageUp:yn,ToggleButtonKeyDownSpaceButton:vn});function ea(e,t){var r,o=t.type,i=t.props,n=t.altKey,a;switch(o){case Cn:a={isOpen:De(i,"isOpen"),highlightedIndex:Qr(i),selectedItem:i.items[t.index]};break;case Pt:{var l=t.key,c=""+e.inputValue+l,u=!e.isOpen&&e.selectedItem?i.items.findIndex(function(E){return i.itemToKey(E)===i.itemToKey(e.selectedItem)}):e.highlightedIndex,d=Js({keysSoFar:c,highlightedIndex:u,items:i.items,itemToString:i.itemToString,isItemDisabled:i.isItemDisabled});a={inputValue:c,highlightedIndex:d,isOpen:!0}}break;case dn:{var f=e.isOpen?He(e.highlightedIndex,1,i.items,i.isItemDisabled):n&&e.selectedItem==null?-1:At(i,e,1);a={highlightedIndex:f,isOpen:!0}}break;case fn:if(e.isOpen&&n)a=nr(i,e.highlightedIndex,!1);else{var p=e.isOpen?He(e.highlightedIndex,-1,i.items,i.isItemDisabled):At(i,e,-1);a={highlightedIndex:p,isOpen:!0}}break;case gn:case vn:a=nr(i,e.highlightedIndex,!1);break;case hn:a={highlightedIndex:We(0,!1,i.items,i.isItemDisabled),isOpen:!0};break;case mn:a={highlightedIndex:We(i.items.length-1,!0,i.items,i.isItemDisabled),isOpen:!0};break;case yn:a={highlightedIndex:He(e.highlightedIndex,-10,i.items,i.isItemDisabled)};break;case _n:a={highlightedIndex:He(e.highlightedIndex,10,i.items,i.isItemDisabled)};break;case pn:a={isOpen:!1,highlightedIndex:-1};break;case Rt:a=X({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((r=i.items)==null?void 0:r.length)&&{selectedItem:i.items[e.highlightedIndex]});break;case xn:a={selectedItem:t.selectedItem};break;default:return Zs(e,t,co)}return X({},e,a)}var ta=["onClick"],na=["onMouseLeave","refKey","ref"],ra=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],oa=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];En.stateChangeTypes=co;function En(e){e===void 0&&(e={}),to(e,En);var t=X({},Qs,e),r=t.scrollIntoView,o=t.environment,i=t.getA11yStatusMessage,n=zs(ea,t,Us,Gs),a=n[0],l=n[1],c=a.isOpen,u=a.highlightedIndex,d=a.selectedItem,f=a.inputValue,p=m.useRef(null),E=m.useRef(null),T=m.useRef({}),w=m.useRef(null),g=Vs(t),O=qr({state:a,props:t}),C=m.useCallback(function(Y){return T.current[g.getItemId(Y)]},[g]);Ws(i,a,[c,u,d,f],o);var _=Ks({menuElement:E.current,highlightedIndex:u,isOpen:c,itemRefs:T,scrollIntoView:r,getItemNodeFromIndex:C});m.useEffect(function(){return w.current=kt(function(Y){Y({type:Xt,inputValue:""})},500),function(){w.current.cancel()}},[]),m.useEffect(function(){f&&w.current(l)},[l,f]),Jr({props:t,state:a}),m.useEffect(function(){var Y=tt(t,"isOpen");Y&&p.current&&p.current.focus()},[]);var x=Ys(o,m.useCallback(function(){O.current.state.isOpen&&l({type:Rt})},[l,O]),m.useMemo(function(){return[E,p]},[E.current,p.current])),v=Zr("getMenuProps","getToggleButtonProps");m.useEffect(function(){c||(T.current={})},[c]);var I=m.useMemo(function(){return{ArrowDown:function(K){K.preventDefault(),l({type:dn,altKey:K.altKey})},ArrowUp:function(K){K.preventDefault(),l({type:fn,altKey:K.altKey})},Home:function(K){K.preventDefault(),l({type:hn})},End:function(K){K.preventDefault(),l({type:mn})},Escape:function(){O.current.state.isOpen&&l({type:pn})},Enter:function(K){K.preventDefault(),l({type:O.current.state.isOpen?gn:It})},PageUp:function(K){O.current.state.isOpen&&(K.preventDefault(),l({type:yn}))},PageDown:function(K){O.current.state.isOpen&&(K.preventDefault(),l({type:_n}))}," ":function(K){K.preventDefault();var h=O.current.state;if(!h.isOpen){l({type:It});return}h.inputValue?l({type:Pt,key:" "}):l({type:vn})}}},[l,O]),W=m.useCallback(function(){l({type:oo})},[l]),j=m.useCallback(function(){l({type:so})},[l]),z=m.useCallback(function(){l({type:io})},[l]),A=m.useCallback(function(Y){l({type:ao,highlightedIndex:Y})},[l]),L=m.useCallback(function(Y){l({type:xn,selectedItem:Y})},[l]),Z=m.useCallback(function(){l({type:lo})},[l]),D=m.useCallback(function(Y){l({type:Xt,inputValue:Y})},[l]),S=m.useCallback(function(Y){var K=Y===void 0?{}:Y,h=K.onClick,b=xe(K,ta),P=function(){var k;(k=p.current)==null||k.focus()};return X({id:g.labelId,htmlFor:g.toggleButtonId,onClick:de(h,P)},b)},[g]),ee=m.useCallback(function(Y,K){var h,b=Y===void 0?{}:Y,P=b.onMouseLeave,$=b.refKey,k=$===void 0?"ref":$,G=b.ref,M=xe(b,na),B=K===void 0?{}:K,U=B.suppressRefError,J=U===void 0?!1:U,q=function(){l({type:no})};return v("getMenuProps",J,k,E),X((h={},h[k]=Qe(G,function(se){E.current=se}),h.id=g.menuId,h.role="listbox",h["aria-labelledby"]=M&&M["aria-label"]?void 0:""+g.labelId,h.onMouseLeave=de(P,q),h),M)},[l,v,g]),Q=m.useCallback(function(Y,K){var h,b=Y===void 0?{}:Y,P=b.onBlur,$=b.onClick;b.onPress;var k=b.onKeyDown,G=b.refKey,M=G===void 0?"ref":G,B=b.ref,U=xe(b,ra),J=K===void 0?{}:K,q=J.suppressRefError,se=q===void 0?!1:q,N=O.current.state,le=function(){l({type:It})},R=function(){N.isOpen&&!x.isMouseDown&&l({type:Rt})},_e=function(at){var Re=Zt(at);Re&&I[Re]?I[Re](at):Fs(Re)&&l({type:Pt,key:Re})},pe=X((h={},h[M]=Qe(B,function(Ce){p.current=Ce}),h["aria-activedescendant"]=N.isOpen&&N.highlightedIndex>-1?g.getItemId(N.highlightedIndex):"",h["aria-controls"]=g.menuId,h["aria-expanded"]=O.current.state.isOpen,h["aria-haspopup"]="listbox",h["aria-labelledby"]=U&&U["aria-label"]?void 0:""+g.labelId,h.id=g.toggleButtonId,h.role="combobox",h.tabIndex=0,h.onBlur=de(P,R),h),U);return U.disabled||(pe.onClick=de($,le),pe.onKeyDown=de(k,_e)),v("getToggleButtonProps",se,M,p),pe},[l,g,O,x,v,I]),fe=m.useCallback(function(Y){var K,h=Y===void 0?{}:Y,b=h.item,P=h.index,$=h.onMouseMove,k=h.onClick,G=h.onMouseDown;h.onPress;var M=h.refKey,B=M===void 0?"ref":M,U=h.disabled,J=h.ref,q=xe(h,oa);U!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var se=O.current,N=se.state,le=se.props,R=$s(b,P,le.items,"Pass either item or index to getItemProps!"),_e=R[0],pe=R[1],Ce=le.isItemDisabled(_e,pe),at=function(){x.isTouchEnd||pe===N.highlightedIndex||(_.current=!1,l({type:ro,index:pe,disabled:Ce}))},Re=function(){l({type:Cn,index:pe})},ko=function(jo){return jo.preventDefault()},lt=X((K={},K[B]=Qe(J,function(Ge){Ge&&(T.current[g.getItemId(pe)]=Ge)}),K["aria-disabled"]=Ce,K["aria-selected"]=_e===N.selectedItem,K.id=g.getItemId(pe),K.role="option",K),q);return Ce||(lt.onClick=de(k,Re)),lt.onMouseMove=de($,at),lt.onMouseDown=de(G,ko),lt},[O,g,x,_,l]);return{getToggleButtonProps:Q,getLabelProps:S,getMenuProps:ee,getItemProps:fe,toggleMenu:W,openMenu:z,closeMenu:j,setHighlightedIndex:A,selectItem:L,reset:Z,setInputValue:D,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;X({},eo,{items:y.array.isRequired,isItemDisabled:y.func,inputValue:y.string,defaultInputValue:y.string,initialInputValue:y.string,inputId:y.string,onInputValueChange:y.func});process.env.NODE_ENV;X({},et,{isItemDisabled:function(){return!1}});Nt.stateReducer,Nt.itemToKey,Nt.environment,y.array,y.array,y.array,y.func,y.number,y.number,y.number,y.func,y.func,y.string,y.string;et.itemToKey,et.stateReducer,et.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const ia="MultiSelect-module_multiSelect",sa="MultiSelect-module_control",aa="MultiSelect-module_disabled",la="MultiSelect-module_valueContainer",ca="MultiSelect-module_input",ua="MultiSelect-module_multiValue",da="MultiSelect-module_multiValueLabel",fa="MultiSelect-module_multiValueRemove",pa="MultiSelect-module_dropdownIndicator",ha="MultiSelect-module_menu",ma="MultiSelect-module_menuOpen",ga="MultiSelect-module_menuList",va="MultiSelect-module_groupHeading",ya="MultiSelect-module_groupSeparator",_a="MultiSelect-module_option",Ca="MultiSelect-module_optionLast",xa="MultiSelect-module_optionSelected",Ea="MultiSelect-module_optionFocused",ba="MultiSelect-module_optionDisabled",Ta="MultiSelect-module_optionLabel",wa="MultiSelect-module_noOptions",ae={multiSelect:ia,control:sa,disabled:aa,valueContainer:la,input:ca,multiValue:ua,multiValueLabel:da,multiValueRemove:fa,dropdownIndicator:pa,menu:ha,menuOpen:ma,menuList:ga,groupHeading:va,groupSeparator:ya,option:_a,optionLast:Ca,optionSelected:xa,optionFocused:Ea,optionDisabled:ba,optionLabel:Ta,noOptions:wa},Na=({id:e,name:t,options:r,value:o=[],preferredValues:i=[],placeholder:n="Select...",disabled:a=!1,className:l,onChange:c})=>{const[u,d]=m.useState(!1),[f,p]=m.useState(""),E=m.useRef(null),T=m.useRef(null),w=m.useMemo(()=>new Set(i),[i]),g=m.useMemo(()=>{const D=r.filter(Q=>Q.label.toLowerCase().includes(f.toLowerCase())),S=D.filter(Q=>w.has(Q.value)),ee=D.filter(Q=>!w.has(Q.value));return{preferred:S,others:ee}},[r,f,w]),O=m.useMemo(()=>r.filter(D=>o.includes(D.value)),[r,o]),{isOpen:C,getToggleButtonProps:_,getMenuProps:x,getItemProps:v,highlightedIndex:I}=En({items:[...g.preferred,...g.others],selectedItem:null,onSelectedItemChange:({selectedItem:D})=>{if(D){const S=D.value,ee=o.includes(S)?o.filter(Q=>Q!==S):[...o,S];c?.(ee)}}});m.useEffect(()=>{d(C)},[C]),m.useEffect(()=>{const D=S=>{T.current&&!T.current.contains(S.target)&&(d(!1),p(""))};return u&&document.addEventListener("mousedown",D),()=>{document.removeEventListener("mousedown",D)}},[u]);const W=D=>{p(D.target.value)},j=D=>{D.key==="Escape"&&(d(!1),p(""),E.current?.blur())},z=D=>{D.stopPropagation(),D.preventDefault()},A=D=>{D.stopPropagation()},L=D=>{const S=o.filter(ee=>ee!==D);c?.(S)},Z=()=>{a||d(!u)};return s.jsxs("div",{ref:T,className:`${ae.multiSelect} ${l??""}`,children:[s.jsxs("div",{className:`${ae.control} ${a?ae.disabled:""}`,children:[s.jsxs("div",{className:ae.valueContainer,children:[O.map(D=>s.jsxs("div",{className:ae.multiValue,children:[s.jsx("span",{className:ae.multiValueLabel,children:D.label}),s.jsx("button",{type:"button",className:ae.multiValueRemove,onClick:()=>L(D.value),disabled:a,children:"×"})]},D.value)),s.jsx("input",{ref:E,id:e,name:t,className:ae.input,value:f,onChange:W,onKeyDown:j,onFocus:()=>!a&&d(!0),placeholder:O.length===0?n:"",disabled:a,autoComplete:"off"})]}),s.jsx("button",{type:"button",className:ae.dropdownIndicator,onClick:Z,disabled:a,..._(),children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6,9 12,15 18,9"})})})]}),s.jsx("div",{className:`${ae.menu} ${u?ae.menuOpen:""}`,...x(),onClick:z,onMouseDown:A,children:s.jsxs("div",{className:ae.menuList,children:[g.preferred.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ae.groupHeading,children:"Preferred"}),g.preferred.map((D,S)=>{const Q=S===g.preferred.length-1&&g.others.length===0;return s.jsx("div",{className:`${ae.option} ${I===S?ae.optionFocused:""} ${o.includes(D.value)?ae.optionSelected:""} ${D.disabled?ae.optionDisabled:""} ${Q?ae.optionLast:""}`,onClick:z,...v({item:D,index:S,disabled:D.disabled}),children:s.jsx("span",{className:ae.optionLabel,children:D.label})},D.value)})]}),g.others.length>0&&s.jsxs(s.Fragment,{children:[g.preferred.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ae.groupSeparator}),s.jsx("div",{className:ae.groupHeading,children:"All"})]}),g.others.map((D,S)=>{const ee=g.preferred.length+S,Q=S===g.others.length-1;return s.jsx("div",{className:`${ae.option} ${I===ee?ae.optionFocused:""} ${o.includes(D.value)?ae.optionSelected:""} ${D.disabled?ae.optionDisabled:""} ${Q?ae.optionLast:""}`,onClick:z,...v({item:D,index:ee,disabled:D.disabled}),children:s.jsx("span",{className:ae.optionLabel,children:D.label})},D.value)})]}),g.preferred.length===0&&g.others.length===0&&s.jsx("div",{className:ae.noOptions,children:"No options found"})]})})]})},Ia="SelectField-module_selectField",Sa="SelectField-module_select",rr={selectField:Ia,select:Sa},or=({id:e,name:t,value:r,options:o=[],placeholder:i="Select an option",disabled:n=!1,className:a="",onChange:l,onBlur:c,onFocus:u})=>{const d=f=>{const p=f.target.value,E=o.find(T=>T.value.toString()===p);E&&l&&l(E.value)};return s.jsx("div",{className:`${rr.selectField} ${a}`,children:s.jsxs("select",{id:e,name:t,value:r||"",disabled:n,onChange:d,onBlur:c,onFocus:u,className:rr.select,children:[i&&s.jsx("option",{value:"",disabled:!0,children:i}),o.map((f,p)=>s.jsx("option",{value:f.value,disabled:f.disabled,children:f.label},`${p}`))]})})},ir="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M353.286,163.919c16.464,0,29.815,13.351,29.815,29.822%20c0,16.467-13.351,29.819-29.815,29.819c-16.47,0-29.822-13.352-29.822-29.819C323.464,177.27,336.816,163.919,353.286,163.919%20L353.286,163.919z%20M245.838,163.919c16.47,0,29.822,13.351,29.822,29.822c0,16.467-13.352,29.819-29.822,29.819%20c-16.471,0-29.822-13.352-29.822-29.819C216.016,177.27,229.367,163.919,245.838,163.919L245.838,163.919z%20M354.093,338.178%20c22.575,0,40.874,18.299,40.874,40.87c0,22.571-18.299,40.87-40.874,40.87c-22.568,0-40.867-18.299-40.867-40.87%20C313.226,356.477,331.525,338.178,354.093,338.178L354.093,338.178z%20M245.024,338.178c22.575,0,40.874,18.299,40.874,40.87%20c0,22.571-18.299,40.87-40.874,40.87c-22.568,0-40.874-18.299-40.874-40.87C204.151,356.477,222.457,338.178,245.024,338.178%20L245.024,338.178z%20M406.906,244.769c22.575,0,40.874,18.299,40.874,40.87s-18.299,40.87-40.874,40.87%20c-22.568,0-40.867-18.299-40.867-40.87S384.338,244.769,406.906,244.769L406.906,244.769z%20M192.211,244.769%20c22.568,0,40.874,18.299,40.874,40.87s-18.306,40.87-40.874,40.87c-22.575,0-40.874-18.299-40.874-40.87%20S169.636,244.769,192.211,244.769L192.211,244.769z%20M299.559,244.769c22.575,0,40.874,18.299,40.874,40.87%20s-18.299,40.87-40.874,40.87c-22.569,0-40.868-18.299-40.868-40.87S276.99,244.769,299.559,244.769L299.559,244.769z%20M452.99,131.334H146.127c-32.625,37.291-50.332,84.551-50.332,134.107c0,112.541,91.226,203.765,203.764,203.765%20c112.544,0,203.764-91.223,203.764-203.765C503.323,215.889,485.608,168.622,452.99,131.334L452.99,131.334z%20M471.276,105.109%20l-4.672-4.998h-334.09l-4.672,4.998c-40.739,43.6-63.267,100.662-63.267,160.332c0,129.775,105.21,234.988,234.984,234.988%20c129.774,0,234.984-105.213,234.984-234.988C534.542,205.771,512.015,148.709,471.276,105.109L471.276,105.109z%20M480.204,60.027%20H118.914C61.952,110.158,26,183.596,26,265.441C26,416.523,148.48,539,299.559,539c151.085,0,273.558-122.477,273.558-273.559%20C573.117,183.596,537.165,110.158,480.204,60.027z'/%3e%3c/svg%3e",sr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M228.887,396.793c20.779,0,37.62,16.841,37.62,37.617%20c0,20.773-16.841,37.617-37.62,37.617c-20.773,0-37.613-16.844-37.613-37.617C191.274,413.634,208.115,396.793,228.887,396.793%20L228.887,396.793z%20M366.03,396.793c20.773,0,37.614,16.841,37.614,37.617c0,20.773-16.841,37.617-37.614,37.617%20c-20.779,0-37.62-16.844-37.62-37.617C328.41,413.634,345.251,396.793,366.03,396.793L366.03,396.793z%20M228.375,325.684%20c-29.03,0-55.41,11.868-74.52,30.976c-41.566,41.573-41.566,113.923,0,155.497c19.111,19.111,45.49,30.979,74.52,30.979h138.168%20c29.023,0,55.41-11.868,74.521-30.979c41.565-41.566,41.565-113.928,0-155.497c-18.336-18.336-43.379-30.003-71.019-30.916%20c63.723-27.868,105.151-90.836,105.151-160.733c0-42.14-13.276-74.632-37.316-108.359H161.794%20c-24.033,33.747-37.309,66.2-37.309,108.359c0,69.852,41.359,132.758,105.012,160.674H228.375L228.375,325.684z%20M366.543,357.791%20H228.375c-20.163,0-38.513,8.265-51.824,21.569c-29.023,29.027-29.023,81.069,0,110.096c13.311,13.308,31.654,21.569,51.824,21.569%20h138.168c20.17,0,38.513-8.261,51.824-21.569c29.023-29.027,29.023-81.069,0-110.096%20C405.056,366.057,386.706,357.791,366.543,357.791L366.543,357.791z%20M421.17,88.762c14.523,23.018,21.915,49.024,21.915,76.248%20c0,79.121-64.131,143.245-143.248,143.245S156.595,244.127,156.595,165.01c0-27.234,7.392-53.222,21.915-76.248H421.17%20L421.17,88.762z%20M331.075,225.95c11.726,0,21.236,9.511,21.236,21.236c0,11.733-9.511,21.24-21.236,21.24%20c-11.733,0-21.236-9.507-21.236-21.24C309.839,235.461,319.342,225.95,331.075,225.95L331.075,225.95z%20M268.605,225.95%20c11.726,0,21.243,9.511,21.243,21.236c0,11.733-9.518,21.24-21.243,21.24c-11.726,0-21.236-9.507-21.236-21.24%20C247.369,235.461,256.879,225.95,268.605,225.95L268.605,225.95z%20M236.882,163.754c11.726,0,21.243,9.508,21.243,21.236%20c0,11.729-9.518,21.24-21.243,21.24c-11.726,0-21.236-9.511-21.236-21.24C215.646,173.261,225.156,163.754,236.882,163.754%20L236.882,163.754z%20M299.837,163.754c11.732,0,21.243,9.508,21.243,21.236c0,11.729-9.511,21.24-21.243,21.24%20c-11.726,0-21.236-9.511-21.236-21.24C278.6,173.261,288.111,163.754,299.837,163.754L299.837,163.754z%20M362.798,163.754%20c11.726,0,21.236,9.508,21.236,21.236c0,11.729-9.511,21.24-21.236,21.24c-11.733,0-21.236-9.511-21.236-21.24%20C341.562,173.261,351.065,163.754,362.798,163.754L362.798,163.754z%20M332.079,116.228c6.86,0,12.417,5.561,12.417,12.417%20c0,6.86-5.558,12.425-12.417,12.425s-12.424-5.566-12.424-12.425C319.654,121.79,325.219,116.228,332.079,116.228L332.079,116.228z%20M267.601,116.228c6.86,0,12.425,5.561,12.425,12.417c0,6.86-5.565,12.425-12.425,12.425c-6.86,0-12.417-5.566-12.417-12.425%20C255.184,121.79,260.742,116.228,267.601,116.228L267.601,116.228z%20M177.153,7.87C129.219,7.87,90,47.086,90,95.02v408.83%20c0,47.934,39.219,87.15,87.153,87.15h246.024c47.934,0,87.147-39.216,87.147-87.15V95.02c0-47.934-39.213-87.15-87.147-87.15%20H177.153z'/%3e%3c/svg%3e",ar="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M407.111,334.214c16.317,0,29.543,13.226,29.543,29.543%20c0,16.313-13.227,29.543-29.543,29.543c-16.31,0-29.536-13.229-29.536-29.543C377.576,347.44,390.802,334.214,407.111,334.214%20L407.111,334.214z%20M198.69,334.214c16.317,0,29.543,13.226,29.543,29.543c0,16.313-13.226,29.543-29.543,29.543%20s-29.543-13.229-29.543-29.543C169.147,347.44,182.373,334.214,198.69,334.214L198.69,334.214z%20M227.94,180.772%20c24.971,0,45.213,20.242,45.213,45.213c0,24.967-20.243,45.213-45.213,45.213s-45.213-20.245-45.213-45.213%20C182.727,201.014,202.969,180.772,227.94,180.772L227.94,180.772z%20M377.868,180.772c24.968,0,45.213,20.242,45.213,45.213%20c0,24.967-20.245,45.213-45.213,45.213c-24.974,0-45.213-20.245-45.213-45.213C332.655,201.014,352.894,180.772,377.868,180.772%20L377.868,180.772z%20M302.899,361.142c24.974,0,45.22,20.243,45.22,45.213s-20.245,45.213-45.22,45.213%20c-24.968,0-45.21-20.243-45.21-45.213S277.931,361.142,302.899,361.142L302.899,361.142z%20M302.899,100.142%20c-111.485,0-201.855,90.37-201.855,201.858c0,111.489,90.37,201.859,201.855,201.859c111.491,0,201.865-90.37,201.865-201.859%20C504.764,190.512,414.391,100.142,302.899,100.142L302.899,100.142z%20M302.899,69.21C174.338,69.21,70.113,173.44,70.113,302%20c0,128.561,104.226,232.79,232.787,232.79c128.56,0,232.793-104.229,232.793-232.79C535.692,173.44,431.459,69.21,302.899,69.21%20L302.899,69.21z%20M302.899,31C153.234,31,31.902,152.328,31.902,302c0,149.669,121.331,271,270.997,271%20c149.672,0,271.006-121.331,271.006-271C573.906,152.328,452.571,31,302.899,31z'/%3e%3c/svg%3e",lr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M246.063,132.777c18.959,0,34.335,15.373,34.335,34.332%20c0,18.965-15.376,34.335-34.335,34.335c-18.961,0-34.332-15.37-34.332-34.335C211.731,148.15,227.102,132.777,246.063,132.777%20L246.063,132.777z%20M357.555,132.777c18.962,0,34.332,15.373,34.332,34.332c0,18.962-15.37,34.335-34.332,34.335%20c-18.961,0-34.331-15.373-34.331-34.335C323.224,148.15,338.594,132.777,357.555,132.777L357.555,132.777z%20M226.875,253.708%20c9.286,0,16.811,7.525,16.811,16.808c0,9.286-7.525,16.811-16.811,16.811c-9.283,0-16.808-7.525-16.808-16.811%20C210.066,261.234,217.592,253.708,226.875,253.708L226.875,253.708z%20M371.359,253.708c9.286,0,16.815,7.525,16.815,16.808%20c0,9.286-7.529,16.811-16.815,16.811c-9.279,0-16.808-7.525-16.808-16.811C354.552,261.234,362.08,253.708,371.359,253.708%20L371.359,253.708z%20M236.304,421.639c19.179,0,34.731,15.548,34.731,34.731c0,19.179-15.552,34.731-34.731,34.731%20c-19.179,0-34.731-15.552-34.731-34.731C201.573,437.187,217.126,421.639,236.304,421.639L236.304,421.639z%20M362.924,421.639%20c19.179,0,34.728,15.548,34.728,34.731c0,19.179-15.549,34.731-34.728,34.731c-19.186,0-34.735-15.552-34.735-34.731%20C328.189,437.187,343.738,421.639,362.924,421.639L362.924,421.639z%20M235.828,355.985c-26.801,0-51.159,10.958-68.804,28.6%20c-38.377,38.383-38.377,105.184,0,143.567c17.645,17.645,42.004,28.602,68.804,28.602h127.568c26.803,0,51.159-10.957,68.804-28.602%20c38.377-38.377,38.377-105.19,0-143.567c-16.91-16.91-39.994-27.679-65.481-28.542c57.148-25.011,97.033-82.036,97.033-148.405%20c0-88.133-70.984-161.938-161.945-161.938c-90.131,0-161.935,73.009-161.935,161.938c0,66.315,39.821,123.302,96.895,148.348%20H235.828L235.828,355.985z%20M159.969,344.666c-6.378,4.464-12.357,9.488-17.866,14.999c-52.137,52.134-52.137,141.271-0.003,193.407%20C167.008,577.982,200.589,592,235.828,592h127.568c35.24,0,68.823-14.018,93.729-38.927c52.137-52.134,52.137-141.276,0-193.41%20c-4.761-4.761-9.874-9.155-15.287-13.143c36.523-36.834,57.159-86.685,57.159-138.883c0-108.993-88.188-197.184-197.19-197.184%20c-108.977,0-197.181,88.207-197.181,197.184C104.627,258.933,124.557,307.996,159.969,344.666L159.969,344.666z%20M363.396,385.629%20H235.828c-18.617,0-35.559,7.631-47.846,19.914c-26.797,26.8-26.797,74.85,0,101.65c12.287,12.286,29.225,19.914,47.846,19.914%20h127.568c18.623,0,35.559-7.628,47.849-19.914c26.797-26.8,26.797-74.85,0-101.65C398.955,393.259,382.013,385.629,363.396,385.629%20L363.396,385.629z%20M301.808,75.381c-73.808,0-132.256,59.869-132.256,132.256c0,72.383,58.448,132.256,132.256,132.256%20c73.815,0,132.265-59.87,132.265-132.256C434.073,135.248,375.622,75.381,301.808,75.381L301.808,75.381z%20M301.808,271.807%20c13.689,0,24.784,11.098,24.784,24.781c0,13.686-11.094,24.78-24.784,24.78c-13.686,0-24.777-11.094-24.777-24.78%20C277.03,282.905,288.122,271.807,301.808,271.807z'/%3e%3c/svg%3e",yt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M460.592,75.695C501.794,116.897,525,172.38,525,230.692v136.191%20c0,58.315-23.206,113.795-64.408,154.997c-86.029,86.032-228.158,86.032-314.186,0C105.203,480.679,82,425.199,82,366.884V230.692%20c0-58.312,23.203-113.795,64.405-154.997C232.433-10.337,374.563-10.337,460.592,75.695L460.592,75.695z%20M434.493,101.794%20c-71.625-71.628-190.365-71.628-261.989,0c-33.068,33.068-53.597,78.696-53.597,128.898v136.191%20c0,50.205,20.529,95.834,53.597,128.898c71.624,71.628,190.364,71.628,261.989,0c33.067-33.064,53.596-78.693,53.596-128.898%20V230.692C488.089,180.49,467.56,134.862,434.493,101.794L434.493,101.794z%20M195.699,124.99%20c-27.134,27.137-43.982,64.557-43.982,105.702v136.191c0,41.146,16.848,78.568,43.982,105.702%20c58.806,58.814,156.791,58.814,215.598,0c27.138-27.134,43.982-64.557,43.982-105.702V230.692%20c0-41.146-16.845-78.566-43.982-105.702C352.491,66.18,254.506,66.18,195.699,124.99L195.699,124.99z%20M303.497,401.594%20c-17.304,0-31.334,14.029-31.334,31.337c0,17.304,14.03,31.333,31.334,31.333c17.307,0,31.337-14.029,31.337-31.333%20C334.834,415.623,320.804,401.594,303.497,401.594L303.497,401.594z%20M223.204,305.993c-17.308,0-31.338,14.03-31.338,31.334%20c0,17.308,14.03,31.337,31.338,31.337c17.307,0,31.337-14.029,31.337-31.337C254.541,320.023,240.511,305.993,223.204,305.993%20L223.204,305.993z%20M223.204,208.881c-17.308,0-31.338,14.026-31.338,31.334c0,17.307,14.03,31.337,31.338,31.337%20c17.307,0,31.337-14.03,31.337-31.337C254.541,222.907,240.511,208.881,223.204,208.881L223.204,208.881z%20M383.796,305.993%20c-17.308,0-31.338,14.03-31.338,31.334c0,17.308,14.03,31.337,31.338,31.337c17.307,0,31.333-14.029,31.333-31.337%20C415.129,320.023,401.103,305.993,383.796,305.993L383.796,305.993z%20M383.796,208.881c-17.308,0-31.338,14.026-31.338,31.334%20c0,17.307,14.03,31.337,31.338,31.337c17.307,0,31.333-14.03,31.333-31.337C415.129,222.907,401.103,208.881,383.796,208.881%20L383.796,208.881z%20M354.769,129.256c-12.585,0-22.786,10.201-22.786,22.786s10.2,22.786,22.786,22.786%20c12.585,0,22.786-10.201,22.786-22.786S367.354,129.256,354.769,129.256L354.769,129.256z%20M252.228,129.256%20c-12.585,0-22.786,10.201-22.786,22.786s10.2,22.786,22.786,22.786c12.585,0,22.786-10.201,22.786-22.786%20S264.813,129.256,252.228,129.256z'/%3e%3c/svg%3e",cr="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17%2012.8108C17%2013.1901%2016.898%2013.5661%2016.6687%2013.8682C15.2357%2015.7558%2012.784%2017%2010%2017C7.21614%2017%204.76431%2015.7557%203.33134%2013.8681C3.10199%2013.566%203%2013.1901%203%2012.8108V7.18924C3%206.80993%203.10199%206.43401%203.33134%206.13189C4.76431%204.24428%207.21614%203%2010%203C12.784%203%2015.2357%204.24423%2016.6687%206.13183C16.898%206.43395%2017%206.80986%2017%207.18918V12.8108ZM10%207C10.5522%207%2011%206.55231%2011%206C11%205.44769%2010.5522%205%2010%205C9.44775%205%209%205.44769%209%206C9%206.55231%209.44775%207%2010%207ZM6.5%2011.5C7.32837%2011.5%208%2010.8284%208%2010C8%209.17157%207.32837%208.5%206.5%208.5C5.67163%208.5%205%209.17157%205%2010C5%2010.8284%205.67163%2011.5%206.5%2011.5ZM11.5%2013.5C11.5%2014.3284%2010.8284%2015%2010%2015C9.17163%2015%208.5%2014.3284%208.5%2013.5C8.5%2012.6716%209.17163%2012%2010%2012C10.8284%2012%2011.5%2012.6716%2011.5%2013.5ZM13.5%2011.5C14.3284%2011.5%2015%2010.8284%2015%2010C15%209.17157%2014.3284%208.5%2013.5%208.5C12.6716%208.5%2012%209.17157%2012%2010C12%2010.8284%2012.6716%2011.5%2013.5%2011.5Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%201C13.8106%201%2017.1182%202.95715%2018.7732%205.82595C18.9298%206.09752%2019%206.40872%2019%206.72224V13.2778C19%2013.5913%2018.9298%2013.9025%2018.7732%2014.1741C17.1182%2017.0429%2013.8106%2019%2010%2019C6.18943%2019%202.88177%2017.0429%201.22682%2014.1741C1.07016%2013.9025%201%2013.5913%201%2013.2778V6.72224C1%206.40872%201.07016%206.09752%201.22682%205.82595C2.88177%202.95715%206.18943%201%2010%201ZM17.6711%205.64554C17.8973%205.95002%2018%206.32536%2018%206.70467V13.2953C18%2013.6746%2017.8973%2014.05%2017.6711%2014.3545C16.0408%2016.5488%2013.214%2018%2010%2018C6.78594%2018%203.95915%2016.5488%202.32887%2014.3544C2.10268%2014.0499%202%2013.6746%202%2013.2953V6.70472C2%206.32542%202.10268%205.95008%202.32887%205.64561C3.95915%203.45116%206.78594%202%2010%202C13.214%202%2016.0408%203.45116%2017.6711%205.64554Z'%20fill='currentColor'/%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M395.264,259.724c21.074,0,38.157,17.083,38.157,38.158%20c0,21.074-17.083,38.164-38.157,38.164c-21.075,0-38.165-17.09-38.165-38.164C357.099,276.806,374.189,259.724,395.264,259.724%20L395.264,259.724z%20M206.743,259.724c21.075,0,38.158,17.083,38.158,38.158c0,21.074-17.083,38.164-38.158,38.164%20c-21.074,0-38.164-17.09-38.164-38.164C168.579,276.806,185.669,259.724,206.743,259.724L206.743,259.724z%20M317.092,89.755v29.841%20h-32.183V89.755c-67.083,5.031-127.459,41.741-163.107,98.796v223.399c35.648,57.055,96.024,93.765,163.107,98.802v-29.841h32.183%20v29.841c67.084-5.038,127.459-41.747,163.114-98.802V188.551C444.551,131.496,384.176,94.787,317.092,89.755L317.092,89.755z%20M301,56.962c-85.858,0-165.124,45.192-209.061,118.921l-2.328,3.902v90.784H58.612v59.364h30.999v90.784l2.328,3.902%20C135.876,498.348,215.143,543.539,301,543.539c85.857,0,165.123-45.184,209.06-118.921l2.328-3.902v-90.784h31.006v-59.364h-31.006%20v-90.784l-2.328-3.902C466.124,102.147,386.857,56.962,301,56.962L301,56.962z%20M301,18.251c-155.741,0-282,126.253-282,282%20c0,155.741,126.26,282,282,282c155.747,0,282-126.26,282-282C583,144.504,456.747,18.251,301,18.251z'/%3e%3c/svg%3e",ve="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M261.067,178.239c0,7.551,2.198,14.579,5.985,20.491l20.49-20.491%20l-20.49-20.491C263.265,163.659,261.067,170.694,261.067,178.239L261.067,178.239z%20M298.999,216.171%20c-7.545,0-14.58-2.198-20.488-5.981l20.488-20.491l20.491,20.491C313.581,213.972,306.55,216.171,298.999,216.171L298.999,216.171z%20M336.934,178.239c0-7.545-2.198-14.58-5.985-20.491l-20.491,20.491l20.491,20.491C334.736,192.818,336.934,185.79,336.934,178.239%20L336.934,178.239z%20M319.49,146.295l-20.491,20.484l-20.488-20.484c5.907-3.79,12.943-5.988,20.488-5.988%20C306.55,140.307,313.581,142.505,319.49,146.295L319.49,146.295z%20M298.999,124.101c29.864,0,54.141,24.281,54.141,54.138%20c0,29.864-24.277,54.145-54.141,54.145c-29.858,0-54.138-24.281-54.138-54.145C244.861,148.382,269.141,124.101,298.999,124.101%20L298.999,124.101z%20M261.067,417.863c0,7.551,2.198,14.579,5.985,20.491l20.49-20.491l-20.49-20.491%20C263.265,403.283,261.067,410.319,261.067,417.863L261.067,417.863z%20M298.999,455.795c-7.545,0-14.58-2.198-20.488-5.981%20l20.488-20.491l20.491,20.491C313.581,453.597,306.55,455.795,298.999,455.795L298.999,455.795z%20M336.934,417.863%20c0-7.545-2.198-14.58-5.985-20.491l-20.491,20.491l20.491,20.491C334.736,432.443,336.934,425.415,336.934,417.863L336.934,417.863z%20M319.49,385.92l-20.491,20.484l-20.488-20.484c5.907-3.79,12.943-5.988,20.488-5.988C306.55,379.931,313.581,382.13,319.49,385.92%20L319.49,385.92z%20M298.999,363.725c29.864,0,54.141,24.281,54.141,54.138c0,29.864-24.277,54.145-54.141,54.145%20c-29.858,0-54.138-24.281-54.138-54.145C244.861,388.007,269.141,363.725,298.999,363.725L298.999,363.725z%20M180.188,239.928%20c30.094,0,54.49,24.4,54.49,54.494c0,30.095-24.396,54.494-54.49,54.494c-30.095,0-54.494-24.399-54.494-54.494%20C125.694,264.327,150.093,239.928,180.188,239.928L180.188,239.928z%20M417.816,239.928c30.094,0,54.494,24.4,54.494,54.494%20c0,30.095-24.4,54.494-54.494,54.494c-30.095,0-54.494-24.399-54.494-54.494C363.323,264.327,387.722,239.928,417.816,239.928%20L417.816,239.928z%20M298.999,86.511c116.835,0,211.544,94.708,211.544,211.54c0,116.84-94.708,211.54-211.544,211.54%20c-116.836,0-211.54-94.708-211.54-211.54C87.458,181.219,182.163,86.511,298.999,86.511L298.999,86.511z%20M298.999,54.1%20c134.73,0,243.955,109.225,243.955,243.951c0,134.727-109.225,243.952-243.955,243.952c-134.727,0-243.952-109.225-243.952-243.952%20C55.047,163.324,164.271,54.1,298.999,54.1L298.999,54.1z%20M298.999,14.053C455.846,14.053,583,141.2,583,298.051%20c0,156.844-127.154,283.999-284.001,283.999C142.151,582.049,15,454.895,15,298.051C15,141.2,142.151,14.053,298.999,14.053z'/%3e%3c/svg%3e",$e="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M449.833,45.125C531.521,95.36,586,185.558,586,288.497%20c0,157.672-127.825,285.497-285.503,285.497C142.822,573.994,15,446.169,15,288.497C15,185.558,69.476,95.36,151.167,45.125H449.833%20L449.833,45.125z%20M193.639,256.195c-29.46,0-53.343,23.89-53.343,53.35c0,29.46,23.882,53.343,53.343,53.343%20c29.46,0,53.346-23.882,53.346-53.343C246.985,280.085,223.099,256.195,193.639,256.195L193.639,256.195z%20M407.365,256.195%20c-29.46,0-53.35,23.89-53.35,53.35c0,29.46,23.89,53.343,53.35,53.343c29.46,0,53.343-23.882,53.343-53.343%20C460.708,280.085,436.826,256.195,407.365,256.195L407.365,256.195z%20M442.248,88.407l-4.308-3.053H163.052l-4.304,3.053%20c-64.954,46.088-103.49,120.43-103.49,200.09c0,135.438,109.801,245.239,245.239,245.239c135.437,0,245.245-109.801,245.245-245.239%20C545.742,208.837,507.203,134.495,442.248,88.407L442.248,88.407z%20M427.607,117.937H173.391%20c-54.002,40.321-85.547,103.142-85.547,170.56c0,117.449,95.204,212.656,212.653,212.656c117.455,0,212.663-95.207,212.663-212.656%20C513.16,221.08,481.609,158.258,427.607,117.937L427.607,117.937z%20M300.497,215.65c-11.384,0-20.614,9.226-20.614,20.613%20c0,11.387,9.23,20.614,20.614,20.614c11.387,0,20.62-9.226,20.62-20.614C321.117,224.876,311.883,215.65,300.497,215.65%20L300.497,215.65z%20M300.497,146.275c-11.384,0-20.614,9.226-20.614,20.614c0,11.387,9.23,20.62,20.614,20.62%20c11.387,0,20.62-9.233,20.62-20.62C321.117,155.501,311.883,146.275,300.497,146.275L300.497,146.275z%20M381.735,146.275%20c-11.387,0-20.613,9.226-20.613,20.614c0,11.387,9.226,20.62,20.613,20.62c11.387,0,20.613-9.233,20.613-20.62%20C402.348,155.501,393.122,146.275,381.735,146.275L381.735,146.275z%20M219.265,146.275c-11.387,0-20.616,9.226-20.616,20.614%20c0,11.387,9.23,20.62,20.616,20.62c11.387,0,20.617-9.233,20.617-20.62C239.882,155.501,230.652,146.275,219.265,146.275%20L219.265,146.275z%20M300.497,400.094c-18.881,0-34.186,15.309-34.186,34.189c0,18.887,15.305,34.189,34.186,34.189%20c18.887,0,34.189-15.302,34.189-34.189C334.686,415.403,319.384,400.094,300.497,400.094L300.497,400.094z%20M381.735,417.199%20c-11.387,0-20.613,9.233-20.613,20.62c0,11.38,9.226,20.614,20.613,20.614c11.387,0,20.613-9.233,20.613-20.614%20C402.348,426.433,393.122,417.199,381.735,417.199L381.735,417.199z%20M219.265,417.199c-11.387,0-20.616,9.233-20.616,20.62%20c0,11.38,9.23,20.614,20.616,20.614c11.387,0,20.617-9.233,20.617-20.614C239.882,426.433,230.652,417.199,219.265,417.199z'/%3e%3c/svg%3e",je={IEC_62196_T1:ar,IEC_62196_T1_COMBO:lr,IEC_62196_T2:ir,IEC_62196_T2_COMBO:sr,IEC_62196_T3:yt,IEC_62196_T3A:cr,IEC_62196_T3B:yt,IEC_62196_T3C:yt,CHADEMO:ve,CHAOJI:ve,CATARC:$e,GBT_AC:$e,GBT_DC:$e,SCHUKO:F,DOMESTIC_A:F,DOMESTIC_B:F,DOMESTIC_C:F,DOMESTIC_D:F,DOMESTIC_E:F,DOMESTIC_F:F,DOMESTIC_G:F,DOMESTIC_H:F,DOMESTIC_I:F,DOMESTIC_J:F,DOMESTIC_K:F,DOMESTIC_L:F,DOMESTIC_M:F,DOMESTIC_N:F,DOMESTIC_O:F,IEC_60309_2_SINGLE_16:F,IEC_60309_2_THREE_16:F,IEC_60309_2_THREE_32:F,IEC_60309_2_THREE_64:F,NEMA_5_20:F,NEMA_6_30:F,NEMA_6_50:F,NEMA_10_30:F,NEMA_10_50:F,NEMA_14_30:F,NEMA_14_50:F,PANTOGRAPH_BOTTOM_UP:ve,PANTOGRAPH_TOP_DOWN:ve,TESLA_R:ve,TESLA_S:ve,CONNECTOR_STANDARD_TYPE_CHADEMO:ve,CONNECTOR_STANDARD_TYPE_CHAOJI:ve,CONNECTOR_STANDARD_TYPE_CATARC:$e,CONNECTOR_STANDARD_TYPE_SCHUKO:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_A:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_B:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_C:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_D:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_E:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_F:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_G:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_H:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_I:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_J:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_K:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_L:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_M:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_N:F,CONNECTOR_STANDARD_TYPE_DOMESTIC_O:F,CONNECTOR_STANDARD_TYPE_GBT_AC:$e,CONNECTOR_STANDARD_TYPE_GBT_DC:$e,CONNECTOR_STANDARD_TYPE_IEC_60309_2_SINGLE_16:F,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_16:F,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_32:F,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_64:F,CONNECTOR_STANDARD_TYPE_IEC_62196_T1:ar,CONNECTOR_STANDARD_TYPE_IEC_62196_T1_COMBO:lr,CONNECTOR_STANDARD_TYPE_IEC_62196_T2:ir,CONNECTOR_STANDARD_TYPE_IEC_62196_T2_COMBO:sr,CONNECTOR_STANDARD_TYPE_IEC_62196_T3A:cr,CONNECTOR_STANDARD_TYPE_IEC_62196_T3C:yt,CONNECTOR_STANDARD_TYPE_NEMA_5_20:F,CONNECTOR_STANDARD_TYPE_NEMA_6_30:F,CONNECTOR_STANDARD_TYPE_NEMA_6_50:F,CONNECTOR_STANDARD_TYPE_NEMA_10_30:F,CONNECTOR_STANDARD_TYPE_NEMA_10_50:F,CONNECTOR_STANDARD_TYPE_NEMA_14_30:F,CONNECTOR_STANDARD_TYPE_NEMA_14_50:F,CONNECTOR_STANDARD_TYPE_PANTOGRAPH_BOTTOM_UP:ve,CONNECTOR_STANDARD_TYPE_PANTOGRAPH_TOP_DOWN:ve,CONNECTOR_STANDARD_TYPE_TESLA_R:ve,CONNECTOR_STANDARD_TYPE_TESLA_S:ve},nt={minPower:7,operator:[],status:[],publishingMode:"",connectorTypes:[],chargingAccessibility:"ALL",noAdditionalCharges:!1,powerType:void 0,operatorOnly:"",remoteStartStop:!1};function Oa(e){return!!(e.minPower&&e.minPower!==nt.minPower||e?.status?.length||e?.connectorTypes?.length||e?.chargingAccessibility&&e?.chargingAccessibility!==nt.chargingAccessibility||e?.operator?.length||e?.powerType||e?.partyId||e?.noAdditionalCharges||e?.operatorOnly||e?.remoteStartStop)}const Da=[{label:3,value:3},{label:7,value:7},{label:11,value:11},{label:22,value:22},{label:43,value:43},{label:50,value:50},{label:100,value:100},{label:150,value:150},{label:200,value:200},{label:"250+",value:250}],Wt=(e,t,r)=>{switch(e){case"remove":return t.filter(o=>!r.includes(o));case"add":return Array.from(new Set([...t,...r]))}};function Aa(e){return m.useReducer((t,r)=>({...t,...r}),e)}function Pa(){const{setFilters:e,t,filters:r,filterConfiguration:o,options:i}=ie(),[n,a]=Aa(nt),{setView:l}=Ke(),c=i.version==="v2"&&o?.operators?.length>1;return m.useEffect(()=>{a(r)},[]),m.useEffect(()=>{e(n)},[n]),s.jsxs(s.Fragment,{children:[s.jsx("div",{className:V.headerContainer,children:s.jsx("div",{className:V.header,children:t("filters.header")})}),s.jsxs("div",{className:V.container,children:[s.jsx("button",{onClick:()=>{a(nt),e(nt)},className:V.actionLinkClearAll,children:t("filters.clearAll")}),s.jsxs("div",{className:V.optionsGroup,children:[s.jsx("div",{className:V.heading,children:t("filters.onlyShow")}),s.jsxs("label",{htmlFor:"dsChargers",className:V.rowLabel,children:[s.jsx("div",{className:V.label,children:t("filters.dcChargers")}),s.jsx(he,{id:"dsChargers",checked:n.powerType==="dc",onChange:u=>{a({powerType:u?"dc":void 0})}})]}),i.version!=="v2"&&s.jsxs("label",{htmlFor:"efluxChargers",className:V.rowLabel,children:[s.jsx("div",{className:V.label,children:t("filters.efluxChargers")}),s.jsx(he,{id:"efluxChargers",checked:n.partyId==="EFL",onChange:u=>{a({partyId:u?"EFL":void 0})}})]}),(i.version!=="v2"||o?.showNoAdditionalFeeFilter)&&s.jsxs("label",{htmlFor:"noAdditionalFee",className:V.rowLabel,children:[s.jsx("div",{className:V.label,children:t("filters.noAdditionalFee")}),s.jsx(he,{id:"noAdditionalFee",checked:n.noAdditionalCharges,onChange:u=>{a({noAdditionalCharges:u?!0:void 0})}})]}),s.jsxs("label",{htmlFor:"remoteStartStop",className:V.rowLabel,children:[s.jsx("div",{className:V.label,children:t("filters.remoteStartStop")}),s.jsx(he,{id:"remoteStartStop",checked:n.remoteStartStop,onChange:u=>{a({remoteStartStop:u?!0:void 0})}})]}),o.showOperatorOnly&&i.version==="v2"&&s.jsxs("label",{htmlFor:"operatorOnly",className:V.rowLabel,children:[s.jsx("div",{className:V.label,children:`Show '${o.showOperatorOnly}' only`}),s.jsx(he,{id:"operatorOnly",checked:n.operatorOnly===o.showOperatorOnly,onChange:u=>{a({operatorOnly:u?o.showOperatorOnly:void 0})}})]})]}),c&&s.jsxs("div",{className:V.optionsGroup,children:[s.jsx("div",{className:V.heading,children:"Operator"}),s.jsx(Na,{id:"operator",preferredValues:i.preferredOperators,value:n.operator,options:[...o?.operators?.map(u=>({value:u?.connectionId,label:u?.name,selected:n.operators?.includes(u?.connectionId)}))||[]],placeholder:"Select operator",onChange:u=>{a({operator:u})}})]}),o?.showPublishingModeFilter&&o?.publishingMode?.length>1&&s.jsxs("div",{className:V.optionsGroup,children:[s.jsx("div",{className:V.heading,children:"Visibility"}),s.jsx(or,{id:"publishingMode",value:n.publishingMode,options:[{value:"",label:"All locations"},{value:"PUBLISHING_MODE_PUBLIC",label:"Public locations"},{value:"PUBLISHING_MODE_PRIVATE",label:"Private locations"}],onChange:u=>{a({publishingMode:u})}})]}),s.jsxs("div",{className:V.optionsGroup,children:[s.jsx("div",{className:V.heading,children:t("filters.statusHeading")}),s.jsxs("label",{htmlFor:"statusAvailable",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("div",{className:V.dot,style:{background:"#33AC19"}}),t("filters.available")]}),s.jsx(he,{id:"statusAvailable",name:"status",checked:n.status.includes("AVAILABLE"),onChange:u=>{a({status:Wt(u?"add":"remove",n.status,["AVAILABLE"])})}})]}),s.jsxs("label",{htmlFor:"statusCharging",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("div",{className:V.dot,style:{background:"#005CEE"}}),t("filters.charging")]}),s.jsx(he,{id:"statusCharging",checked:n.status.includes("CHARGING"),onChange:u=>{a({status:Wt(u?"add":"remove",n.status,["CHARGING"])})}})]}),s.jsxs("label",{htmlFor:"statusError",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("div",{className:V.dot,style:{background:"#EB001B"}}),t("filters.notAvailable")]}),s.jsx(he,{id:"statusError",name:"status",checked:n.status.includes("INOPERATIVE")&&n.status.includes("UNKNOWN"),onChange:u=>{a({status:Wt(u?"add":"remove",n.status,["INOPERATIVE","UNKNOWN"])})}})]})]}),s.jsxs("div",{className:V.optionsGroup,children:[s.jsx("div",{className:V.heading,children:t("filters.chargingPower")}),s.jsx(hs,{value:n.minPower,onChange:u=>{a({minPower:u})},ticks:Da})]}),s.jsxs("div",{className:V.optionsGroup,children:[s.jsx("div",{className:V.heading,children:t("filters.connectorType")}),s.jsxs("label",{htmlFor:"type1",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("img",{src:je.IEC_62196_T1,className:V.connectorIcon}),"Type 1 (Yazaki)"]}),s.jsx(he,{id:"type1",checked:n.connectorTypes.includes("IEC_62196_T1"),onChange:u=>{a({connectorTypes:u?[...n.connectorTypes,"IEC_62196_T1"]:n.connectorTypes.filter(d=>d!=="IEC_62196_T1")})}})]}),s.jsxs("label",{htmlFor:"type2",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("img",{src:je.IEC_62196_T2,className:V.connectorIcon}),"Type 2 (Mennekes)"]}),s.jsx(he,{id:"type2",checked:n.connectorTypes.includes("IEC_62196_T2"),onChange:u=>{a({connectorTypes:u?[...n.connectorTypes,"IEC_62196_T2"]:n.connectorTypes.filter(d=>d!=="IEC_62196_T2")})}})]}),s.jsxs("label",{htmlFor:"type3",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("img",{src:je.IEC_62196_T3,className:V.connectorIcon}),"Type 3 (Le Grand)"]}),s.jsx(he,{id:"type3",checked:n.connectorTypes.includes("IEC_62196_T3A"),onChange:u=>{a({connectorTypes:u?[...n.connectorTypes,"IEC_62196_T3A"]:n.connectorTypes.filter(d=>d!=="IEC_62196_T3A")})}})]}),s.jsxs("label",{htmlFor:"CHAdeMo",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("img",{src:je.CHADEMO,className:V.connectorIcon}),"CHAdeMo"]}),s.jsx(he,{id:"CHAdeMo",checked:n.connectorTypes.includes("CHADEMO"),onChange:u=>{a({connectorTypes:u?[...n.connectorTypes,"CHADEMO"]:n.connectorTypes.filter(d=>d!=="CHADEMO")})}})]}),s.jsxs("label",{htmlFor:"domestic",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("img",{src:je.DOMESTIC_F,className:V.connectorIcon}),"Domestic"]}),s.jsx(he,{id:"domestic",checked:n.connectorTypes.includes("DOMESTIC_F"),onChange:u=>{a({connectorTypes:u?[...n.connectorTypes,"DOMESTIC_F"]:n.connectorTypes.filter(d=>d!=="DOMESTIC_F")})}})]}),s.jsxs("label",{htmlFor:"combo",className:V.rowLabel,children:[s.jsxs("div",{className:V.label,children:[s.jsx("img",{src:je.IEC_62196_T2_COMBO,className:V.connectorIcon}),"Combo"]}),s.jsx(he,{id:"combo",checked:n.connectorTypes.includes("IEC_62196_T2_COMBO"),onChange:u=>{a({connectorTypes:u?[...n.connectorTypes,"IEC_62196_T2_COMBO"]:n.connectorTypes.filter(d=>d!=="IEC_62196_T2_COMBO")})}})]})]}),o?.showVehicleAvailabilityFilter&&s.jsxs("div",{className:V.optionsGroup,children:[s.jsx("div",{className:V.heading,children:t("filters.chargingAccessibility")}),s.jsx(or,{id:"chargingAccessibility",value:n.chargingAccessibility||"ALL",options:[{value:"ALL",label:t("filters.accessibilityAll")},{value:"TESLA",label:t("filters.accessibilityTesla")}],onChange:u=>{a({chargingAccessibility:u})}})]})]})]})}const Ra="locations-module_headerContainer",Ma="locations-module_publishingMode",ka="locations-module_container",ja="locations-module_header",La="locations-module_subheader",Ha="locations-module_row",Va="locations-module_icon",$a="locations-module_statusIcon",Fa="locations-module_text",Ba="locations-module_note",za="locations-module_divider",Ua="locations-module_pagingation",Ya="locations-module_tariffNoteLink",H={headerContainer:Ra,publishingMode:Ma,container:ka,header:ja,subheader:La,row:Ha,icon:Va,statusIcon:$a,text:Fa,note:Ba,divider:za,pagingation:Ua,tariffNoteLink:Ya},Wa="LocationPlaceholder-module_container",Ka="LocationPlaceholder-module_header",Ga="LocationPlaceholder-module_divider",qa="LocationPlaceholder-module_iconLine",Za="LocationPlaceholder-module_priceLine",me={container:Wa,header:Ka,divider:Ga,iconLine:qa,priceLine:Za};function Ja(){return s.jsxs("div",{className:me.container,children:[s.jsx("div",{className:me.header}),s.jsx("div",{className:me.divider,style:{marginTop:"15px",marginBottom:"23px"}}),s.jsx("div",{className:me.iconLine,style:{width:"60%"}}),s.jsx("div",{className:me.iconLine,style:{width:"45%"}}),s.jsx("div",{className:me.iconLine,style:{width:"50%"}}),s.jsx("div",{className:me.divider}),s.jsx("div",{className:me.iconLine,style:{width:"50%"}}),s.jsx("div",{className:me.iconLine,style:{width:"62%"}}),s.jsx("div",{className:me.priceLine}),s.jsx("div",{className:me.divider}),s.jsx("div",{className:me.iconLine,style:{width:"50%"}}),s.jsx("div",{className:me.iconLine,style:{width:"57%"}}),s.jsx("div",{className:me.priceLine,style:{width:"30%"}})]})}function uo(){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"12",height:"12",fill:"currentColor",children:s.jsx("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"})})}function fo(){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"12",height:"12",fill:"currentColor",children:s.jsx("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})})}function Xa(){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 320",width:"10",height:"10",fill:"currentColor",children:s.jsx("path",{d:"M233.4 310.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 86.6 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})})}function Qa(){return s.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M8 0.25C3.72 0.25 0.25 3.72 0.25 8s3.47 7.75 7.75 7.75S15.75 12.28 15.75 8 12.28 0.25 8 0.25zm0 14C4.55 14.25 1.75 11.45 1.75 8S4.55 1.75 8 1.75 14.25 4.55 14.25 8 11.45 14.25 8 14.25zM8.75 4.25a0.75 0.75 0 0 0-1.5 0v4c0 0.2 0.08 0.39 0.22 0.53l2.5 2.5a0.75 0.75 0 1 0 1.06-1.06L8.75 7.94V4.25z"})})}function el(){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",children:s.jsx("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06L5.75 11.19l6.97-6.97a.75.75 0 0 1 1.06 0z"})})}function po(){return s.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{children:s.jsx("path",{d:"M8 0.25C3.72009 0.25 0.25 3.72134 0.25 8C0.25 12.2812 3.72009 15.75 8 15.75C12.2799 15.75 15.75 12.2812 15.75 8C15.75 3.72134 12.2799 0.25 8 0.25ZM8 14.25C4.54588 14.25 1.75 11.4553 1.75 8C1.75 4.54703 4.546 1.75 8 1.75C11.4528 1.75 14.25 4.54597 14.25 8C14.25 11.4541 11.4553 14.25 8 14.25ZM8 3.6875C8.72487 3.6875 9.3125 4.27513 9.3125 5C9.3125 5.72487 8.72487 6.3125 8 6.3125C7.27513 6.3125 6.6875 5.72487 6.6875 5C6.6875 4.27513 7.27513 3.6875 8 3.6875ZM9.75 11.625C9.75 11.8321 9.58209 12 9.375 12H6.625C6.41791 12 6.25 11.8321 6.25 11.625V10.875C6.25 10.6679 6.41791 10.5 6.625 10.5H7V8.5H6.625C6.41791 8.5 6.25 8.33209 6.25 8.125V7.375C6.25 7.16791 6.41791 7 6.625 7H8.625C8.83209 7 9 7.16791 9 7.375V10.5H9.375C9.58209 10.5 9.75 10.6679 9.75 10.875V11.625Z"})})})}const tl="SidebarContainer-module_container",nl={container:tl};function Ue({children:e}){return s.jsx("div",{className:nl.container,children:e})}const rl="Debug-module_container",ol="Debug-module_content",il="Debug-module_connectorHeader",sl="Debug-module_code",al="Debug-module_evse",Fe={container:rl,content:ol,connectorHeader:il,code:sl,evse:al};function ll({location:e}){return s.jsx("div",{className:Fe.container,children:s.jsxs(Ue,{children:[s.jsx("div",{children:s.jsxs("h3",{children:["Debug: ",e.name]})}),s.jsx("div",{style:{marginBottom:"5px"},children:s.jsx("button",{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(e,null,2))},children:"Copy location"})}),s.jsx("div",{className:Fe.content,children:e.evses.map(t=>s.jsxs("div",{className:Fe.evse,children:[s.jsxs("div",{className:Fe.connectorHeader,children:["Evse: ",t.evseId||t.evse_id]}),s.jsx("div",{children:t.connectors.map((r,o)=>s.jsxs("div",{children:[s.jsxs("div",{className:Fe.connectorHeader,children:["Connector #",o]}),s.jsx("pre",{className:Fe.code,children:JSON.stringify(r.tariff||Array.isArray(e.tariffs)?e.tariffs?.find(i=>r.tariff_ids.includes(i.id)):null,null,2)})]}))})]}))})]})})}const ho="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%3e%3cg%20clip-path='url(%23clip0_480_2466)'%3e%3cpath%20d='M3.76781%207H5.0925L4.81812%208.71156C4.77812%208.85969%204.9075%209%205.07875%209C5.17188%209%205.26156%208.95719%205.31063%208.88313L7.40219%205.78062C7.50531%205.62469%207.37656%205.42875%207.17031%205.42875H5.88219L6.14094%204.295C6.18625%204.14625%206.05781%204.00031%205.88219%204.00031H4.36438C4.23%204.00031%204.11656%204.08719%204.09875%204.20375L3.50187%206.735C3.48094%206.87531%203.60594%207%203.76781%207ZM17.5%204H17V2.5C17%202.22375%2016.7763%202%2016.5%202C16.2237%202%2016%202.22375%2016%202.5V4H15V2.5C15%202.22375%2014.7762%202%2014.5%202C14.2238%202%2014%202.22375%2014%202.5V4H13.5C13.2238%204%2013%204.22375%2013%204.5V6C13%207.1175%2013.7381%208.05281%2014.75%208.37281V11.625C14.75%2012.1075%2014.3575%2012.5%2013.875%2012.5C13.3925%2012.5%2013%2012.1075%2013%2011.625V10.75C13%209.23344%2011.7666%208%2010.25%208H10V1.5C10%200.671562%209.32844%200%208.5%200H2.5C1.67156%200%201%200.671562%201%201.5V14.5H0.25C0.111875%2014.5%200%2014.6119%200%2014.75V15.75C0%2015.8881%200.111875%2016%200.25%2016H10.75C10.8881%2016%2011%2015.8881%2011%2015.75V14.75C11%2014.6119%2010.8881%2014.5%2010.75%2014.5H10V9.5H10.25C10.9394%209.5%2011.5%2010.0606%2011.5%2010.75V11.625C11.5%2012.9347%2012.5653%2014%2013.875%2014C15.1847%2014%2016.25%2012.9347%2016.25%2011.625V8.37281C17.2619%208.05281%2018%207.1175%2018%206V4.5C18%204.22375%2017.7763%204%2017.5%204ZM8.5%2014.5H2.5V1.5H8.5V14.5ZM16.5%206C16.5%206.55125%2016.0513%207%2015.5%207C14.9487%207%2014.5%206.55125%2014.5%206V5.5H16.5V6Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2466'%3e%3crect%20width='18'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",mo="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_480_2468)'%3e%3cpath%20d='M4%204.625V3.375C4%203.16875%204.16875%203%204.375%203H5.625C5.83125%203%206%203.16875%206%203.375V4.625C6%204.83125%205.83125%205%205.625%205H4.375C4.16875%205%204%204.83125%204%204.625ZM8.375%205H9.625C9.83125%205%2010%204.83125%2010%204.625V3.375C10%203.16875%209.83125%203%209.625%203H8.375C8.16875%203%208%203.16875%208%203.375V4.625C8%204.83125%208.16875%205%208.375%205ZM4.375%208H5.625C5.83125%208%206%207.83125%206%207.625V6.375C6%206.16875%205.83125%206%205.625%206H4.375C4.16875%206%204%206.16875%204%206.375V7.625C4%207.83125%204.16875%208%204.375%208ZM8.375%208H9.625C9.83125%208%2010%207.83125%2010%207.625V6.375C10%206.16875%209.83125%206%209.625%206H8.375C8.16875%206%208%206.16875%208%206.375V7.625C8%207.83125%208.16875%208%208.375%208ZM6%2010.625V9.375C6%209.16875%205.83125%209%205.625%209H4.375C4.16875%209%204%209.16875%204%209.375V10.625C4%2010.8313%204.16875%2011%204.375%2011H5.625C5.83125%2011%206%2010.8313%206%2010.625ZM8.375%2011H9.625C9.83125%2011%2010%2010.8313%2010%2010.625V9.375C10%209.16875%209.83125%209%209.625%209H8.375C8.16875%209%208%209.16875%208%209.375V10.625C8%2010.8313%208.16875%2011%208.375%2011ZM14%2014.875V16H0V14.875C0%2014.6687%200.16875%2014.5%200.375%2014.5H0.984375V0.75C0.984375%200.334375%201.31875%200%201.73438%200H12.2656C12.6812%200%2013.0156%200.334375%2013.0156%200.75V14.5H13.625C13.8313%2014.5%2014%2014.6687%2014%2014.875ZM2.48438%2014.4688H6V12.375C6%2012.1687%206.16875%2012%206.375%2012H7.625C7.83125%2012%208%2012.1687%208%2012.375V14.4688H11.5156V1.53125L2.5%201.5L2.48438%2014.4688Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2468'%3e%3crect%20width='14'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",bn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='20'%20height='16'%20viewBox='0%200%2020%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%206H16.5L13.1003%201.75063C12.913%201.51641%2012.6754%201.32734%2012.405%201.19741C12.1347%201.06747%2011.8387%201.00001%2011.5387%201H4.85406C4.03625%201%203.30094%201.49781%202.99719%202.25719L1.5%206V6.07062C0.63875%206.29375%200%207.06906%200%208V11.5C0%2011.7762%200.22375%2012%200.5%2012H2C2%2013.6569%203.34312%2015%205%2015C6.65688%2015%208%2013.6569%208%2012H12C12%2013.6569%2013.3431%2015%2015%2015C16.6569%2015%2018%2013.6569%2018%2012H19.5C19.7763%2012%2020%2011.7762%2020%2011.5V9C20%207.34312%2018.6569%206%2017%206ZM8.75%202.5H11.5387C11.6916%202.5%2011.8338%202.56844%2011.9291%202.6875L14.5791%206H8.75V2.5ZM4.38969%202.81437C4.46625%202.62344%204.64844%202.5%204.85406%202.5H7.25V6H3.11562L4.38969%202.81437ZM5%2013.5C4.17156%2013.5%203.5%2012.8284%203.5%2012C3.5%2011.1716%204.17156%2010.5%205%2010.5C5.82844%2010.5%206.5%2011.1716%206.5%2012C6.5%2012.8284%205.82844%2013.5%205%2013.5ZM15%2013.5C14.1716%2013.5%2013.5%2012.8284%2013.5%2012C13.5%2011.1716%2014.1716%2010.5%2015%2010.5C15.8284%2010.5%2016.5%2011.1716%2016.5%2012C16.5%2012.8284%2015.8284%2013.5%2015%2013.5ZM18.5%2010.5H17.5841C17.0644%209.60719%2016.1078%209%2015%209C13.8922%209%2012.9359%209.60719%2012.4159%2010.5H7.58406C7.06437%209.60719%206.10781%209%205%209C3.89219%209%202.93594%209.60719%202.41594%2010.5H1.5V8C1.5%207.72437%201.72438%207.5%202%207.5H17C17.8272%207.5%2018.5%208.17281%2018.5%209V10.5Z'%20fill='black'/%3e%3c/svg%3e",st="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='12'%20height='16'%20viewBox='0%200%2012%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_480_2435)'%3e%3cpath%20d='M11.8068%205.24687C11.5506%204.8%2011.0849%204.53125%2010.5693%204.53125H7.61932L8.51619%201.79688C8.63182%201.36563%208.54119%200.9125%208.26932%200.55625C7.99432%200.203125%207.57869%200%207.13182%200H3.05369C2.34118%200%201.73181%200.534375%201.65368%201.15937L0.0161813%207.79063C-0.0431938%208.22188%200.0849314%208.65625%200.369307%208.98438C0.653682%209.3125%201.06618%209.5%201.50056%209.5H4.56619L3.47556%2014.2406C3.37556%2014.6688%203.47244%2015.1125%203.74431%2015.4563C4.01619%2015.8031%204.42556%2016%204.86619%2016C5.37556%2016%205.85057%2015.725%206.07869%2015.325L11.8037%206.67812C12.0662%206.23125%2012.0662%205.69375%2011.8068%205.24687ZM5.00369%2014.2937L6.45057%208H1.48493L3.05369%201.5L7.04119%201.47187L5.54744%206.03125H10.4381L5.00369%2014.2937Z'%20fill='%232A2A2A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2435'%3e%3crect%20width='12'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",go="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18'%20height='12'%20viewBox='0%200%2018%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.2857%200H0.857143C0.383839%200%200%200.383839%200%200.857143V11.1429C0%2011.6162%200.383839%2012%200.857143%2012H16.2857C16.759%2012%2017.1429%2011.6162%2017.1429%2011.1429V0.857143C17.1429%200.383839%2016.759%200%2016.2857%200ZM15.8571%2010.7143H1.28571V1.28571H15.8571V10.7143ZM7.92857%207.71429H10.0714C10.1898%207.71429%2010.2857%207.61839%2010.2857%207.5V6.64286C10.2857%206.52446%2010.1898%206.42857%2010.0714%206.42857H7.92857C7.81018%206.42857%207.71429%206.52446%207.71429%206.64286V7.5C7.71429%207.61839%207.81018%207.71429%207.92857%207.71429ZM14.3571%206.42857H12.2143C12.0959%206.42857%2012%206.52446%2012%206.64286V7.5C12%207.61839%2012.0959%207.71429%2012.2143%207.71429H14.3571C14.4755%207.71429%2014.5714%207.61839%2014.5714%207.5V6.64286C14.5714%206.52446%2014.4755%206.42857%2014.3571%206.42857ZM7.92857%205.57143H14.3571C14.4755%205.57143%2014.5714%205.47554%2014.5714%205.35714V4.5C14.5714%204.38161%2014.4755%204.28571%2014.3571%204.28571H7.92857C7.81018%204.28571%207.71429%204.38161%207.71429%204.5V5.35714C7.71429%205.47554%207.81018%205.57143%207.92857%205.57143ZM3.60857%206.04607L4.73866%206.3525C4.85089%206.38304%204.92857%206.47437%204.92857%206.57482C4.92857%206.70339%204.80804%206.80786%204.65911%206.80786H3.95357C3.84241%206.80786%203.73312%206.78%203.6383%206.72884C3.5558%206.68411%203.45509%206.69214%203.3908%206.76045L3.0675%207.10143C2.9842%207.18929%202.99786%207.33286%203.09777%207.40116C3.32009%207.5525%203.58152%207.63902%203.85714%207.65616V7.92857C3.85714%208.04696%203.95304%208.14286%204.07143%208.14286H4.5C4.61839%208.14286%204.71429%208.04696%204.71429%207.92857V7.65402C5.30839%207.62455%205.78571%207.15661%205.78571%206.57455C5.78571%206.08786%205.44768%205.65634%204.96286%205.52536L3.83277%205.21893C3.72054%205.18839%203.64286%205.09705%203.64286%204.99661C3.64286%204.86804%203.76339%204.76357%203.91232%204.76357H4.61786C4.72902%204.76357%204.8383%204.79143%204.93312%204.84259C5.01562%204.88705%205.11634%204.87929%205.18062%204.81098L5.50393%204.47C5.58723%204.38214%205.57357%204.23857%205.47366%204.17027C5.25134%204.01893%204.98991%203.93241%204.71429%203.91527V3.64286C4.71429%203.52446%204.61839%203.42857%204.5%203.42857H4.07143C3.95304%203.42857%203.85714%203.52446%203.85714%203.64286V3.91741C3.26304%203.94688%202.78571%204.41482%202.78571%204.99688C2.78571%205.48357%203.12375%205.91509%203.60857%206.04607Z'%20fill='%232A2A2A'/%3e%3c/svg%3e";function vo(e){return je[e.standard||e.connectorStandardType]}function yo(e,t){return new Intl.NumberFormat(e,{maximumFractionDigits:2}).format(t)}const cl={CONNECTOR_POWER_TYPE_UNSPECIFIED:"Unspecified",CONNECTOR_POWER_TYPE_AC_1_PHASE:"AC x 1",CONNECTOR_POWER_TYPE_AC_2_PHASE:"AC x 2",CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT:"AC x 2 Split",CONNECTOR_POWER_TYPE_AC_3_PHASE:"AC x 3",CONNECTOR_POWER_TYPE_DC:"DC",CONNECTOR_POWER_TYPE_AC:"AC",AC_3_PHASE:"AC x 3",AC_1_PHASE:"AC x 1",DC:"DC"};function _o(e){return[ul(e.standard||e.connectorStandardType),cl[e.powerType||e.power_type||e.connectorPowerType],"Socket"].join(", ")}function ul(e){return e=(e||"").replace("CONNECTOR_STANDARD_TYPE_",""),e==="IEC_62196_T1"?"Type 1":e==="IEC_62196_T1_COMBO"?"Type 1 Combo":e==="IEC_62196_T2"?"Type 2":e==="IEC_62196_T2_COMBO"?"Type 2 Combo":e==="IEC_62196_T3A"?"Type 3A":e==="IEC_62196_T3C"?"Type 3C":e==="CHADEMO"?"CHAdeMO":e==="DOMESTIC_F"?"Domestic F":e==="DOMESTIC_E"?"Domestic E":e==="DOMESTIC_B"?"Domestic B":e==="CATARC"?"Catarc":e}function Co(e,t){switch(t){case"AVAILABLE":return e("evse.statusAvailable");case"CHARGING":return e("evse.statusCharging");case"UNAVAILABLE":return e("evse.statusUnavailable");case"ERROR":return e("evse.statusError");case"UNKNOWN":return e("evse.statusUnknown");case"REMOVED":return e("evse.statusRemoved");case"PLANNED":return e("evse.statusPlanned");case"RESERVED":return e("evse.statusReserved");case"INOPERATIVE":return e("evse.statusInoperative");case"OUTOFORDER":return e("evse.statusOutOfOrder");default:return e("evse.statusUnknown")}}function xo(e,t){return t?.type==="ON_STREET"?e("locationType.onStreet"):t?.type==="PARKING_GARAGE"?e("locationType.parkingGarage"):t?.type==="UNDERGROUND_GARAGE"?e("locationType.undergroundGarage"):t?.type==="PARKING_LOT"?e("locationType.parkingLot"):e("locationType.other")}function Eo(e=[]){return e.some(t=>t.status==="AVAILABLE")?Ne("AVAILABLE"):e.some(t=>t.status==="CHARGING")?Ne("CHARGING"):Ne("UNKNOWN")}function bo(e,t){let r;["en","fr"].some(a=>{let c=new Intl.DateTimeFormat(a,{minute:"numeric",timeZone:t,timeZoneName:"short"}).formatToParts(e).filter(u=>u.type=="timeZoneName"&&u.value);if(/^(GMT|UTC)/.test(c[0].value))return r=c[0].value.replace(/GMT|UTC/,"")||"+0",!0});let o=r[0]=="+"?"+":"-",[i,n]=r.substring(1).split(":");return o+i.padStart(2,"0")+":"+(n||"00")}function To(e){let t=/^-/.test(e)?-1:1,[r,o]=e.match(/\d\d/g);return t*(r*60+Number(o))}function ur(e,t){const r=a=>("0"+a).slice(-2),{year:o,month:i,day:n}=new Intl.DateTimeFormat("en",{timeZone:e}).formatToParts(t).reduce((a,l)=>(a[l.type]=l.value,l),Object.create(null));return`${o}-${r(i)}-${r(n)}`}function wo(e,t=new Date){const r=bo(t,e),o=To(r),i=new Date(+t);return i.setUTCMinutes(i.getUTCMinutes()+o),i}function No(e,t=new Date){const r=bo(t,e),o=To(r),i=new Date(+t);i.setUTCHours(0,-o,0,0);const n=ur(e,t),a=ur(e,i);return a>n?i.setUTCDate(i.getUTCDate()-1):a<n&&i.setUTCDate(i.getUTCDate()+1),i}function dl(e,t=new Date){return new Date(No(e,t).valueOf()+86399999)}function fl(e,t,r){const o=wo(r,e);return o.getUTCDate()!==t&&o.setUTCDate(e.getUTCDate()+(7+t-e.getUTCDay()-1)%7+1),{start:No(r,o),end:dl(r,o)}}function Qt(e,t){return wo(t,e).getUTCDay()}function dr(e){const[t,r]=e.split(":");return parseInt(t)*60+parseInt(r)}function en(e){if(!e?.restrictions?.startTime||!e?.restrictions?.endTime)return{elements:[e],priceComponents:e.priceComponents,startTime:0,endTime:1440,isFullDay:!0};const t=dr(e.restrictions.startTime),r=dr(e.restrictions.endTime);return{elements:[e],priceComponents:e.priceComponents,isFullDay:t===0&&r===1440,startTime:t,endTime:r}}function pl(e,t,r){const o=(r.getHours()*60+r.getMinutes())%60;if(e.length<=1)return e.map(n=>(n.isActive=t&&n.startTime<=o&&n.endTime>=o,n));e=e.sort((n,a)=>n.startTime-a.startTime);let i=[e[0]];for(let n=1;n<e.length;n++){const a=e[n],l=i.findLast(u=>u.startTime<=a.startTime);if(!l)i=i.filter(u=>u.endTime>a.endTime),i.unshift(a);else{const u=l.endTime;l.endTime=a.startTime;const d=[a];u>a.endTime&&d.push({...l,startTime:a.endTime,endTime:u}),i.splice(i.indexOf(l)+1,0,...d)}let c=0;i=i.map((u,d)=>{const f=i[d-1];if(u.endTime>c)c=u.endTime;else return null;return f&&f.endTime!==u.startTime&&(u.startTime=f.endTime),u}).filter(Boolean)}return i.map(n=>(n.isActive=t&&n.startTime<=o&&n.endTime>=o,n.isFullDay=n.startTime===0&&n.endTime===1440,n))}function Pe(e){return!e?.restrictions||!e?.restrictions?.startDate&&!e?.restrictions?.endDate&&!e?.restrictions?.startTime&&!e?.restrictions?.startTime&&!e?.restrictions?.dayOfWeek}function Tn({elements:e,limit:t=6,now:r=new Date}){const i=[...e].filter(n=>!Pe(n)).map(n=>({...n,restrictions:{_startDate:new Date(`${n.restrictions.startDate}T${n.restrictions.startTime}`),...n.restrictions}})).sort((n,a)=>n.restrictions._startDate.valueOf()-a.restrictions._startDate.valueOf()).filter(n=>n.restrictions._startDate.valueOf()>r.valueOf()-108e5).slice(0,t).reduce((n,a)=>{const l=a.restrictions._startDate.getDate();return n[l]={date:new Date(a.restrictions.startDate),items:[...n[l]?.items||[],a]},n},[]);return Object.keys(i).map(n=>{const{date:a,items:l}=i[n],c=l.map(({restrictions:u,...d})=>{const{_startDate:f,...p}=u;return{...d,restrictions:{...p}}}).map(en).map(u=>{const d=Qt(r)===Qt(a),f=r.getHours()*60+r.getMinutes(),p=d&&u.startTime<=f&&u.endTime-1>=f;return{...u,isActive:p}});return{date:a,items:c}})}function hl(e,t){const r=new Date;return[...e].reduce((o,i)=>{const{startDate:n,endDate:a,dayOfWeek:l=[]}=i.restrictions||{};if(!Object.keys(i.restrictions||{}).length)return o;const c=n?new Date(n):null;if(n&&c.valueOf()>Date.now())return o;const u=a?new Date(a):null;return a&&u.valueOf()<Date.now()||["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].forEach((d,f)=>{const{start:p,end:E}=fl(r,f,t);c&&c.valueOf()>p.valueOf()||u&&u.valueOf()<E.valueOf()||l.length&&!l.includes(d)||(o[d]=[...o[d],i])}),o},{MONDAY:[],TUESDAY:[],WEDNESDAY:[],THURSDAY:[],FRIDAY:[],SATURDAY:[],SUNDAY:[]})}function fr(e,t){return Object.keys(e).reduce((r,o)=>(t.includes(o)||(r[o]=e[o]),r),{})}function ml(e,t){const r=e.map(i=>fr(i,["isActive"])),o=t.map(i=>fr(i,["isActive"]));return JSON.stringify(r)===JSON.stringify(o)}function gl(e){return e.reduce((t,r)=>{const o=t.find(i=>i.startTime===r.startTime&&i.endTime===r.endTime);return o?o.elements.push(...r.elements):t.push(r),t},[])}function vl(e){return Pe(e)?(e.priceComponents||[]).some(t=>t.type!=="PARKING_TIME"&&(t.price||0)>0):!1}function yl(e){return e.startTime===0&&e.endTime<=1||e.startTime>=1439&&e.endTime===1440}function Io(e,t,r){const o=hl(e.concat().filter(u=>!Pe(u)),t),i=e.find(vl),{SUNDAY:n,...a}=o,[l,...c]=Object.keys({SUNDAY:o.SUNDAY,...a}).map((u,d)=>{const f=o[u],p=Qt(r,t)===d,E=gl(f.map(en));return i&&E.length>0&&E.unshift(en(i)),{day:u,isActive:p,items:pl(E,p,r).filter(T=>!yl(T))}});return[...c,l].reduce((u,d,f,p)=>{const E=u[u.length-1],T=E?.items;if(!T||!ml(T,d.items)){const{day:w,...g}=d;u.push({...g,days:[d.day]})}else E.days=[E.days[0],d.day],E.isActive=E.isActive||d.isActive;return u},[]).filter(u=>!!u.items.length)}function _l(e){const{elements:t=[]}=e;return t?.some(n=>n?.priceComponents?.length>0)?t.filter(Pe).length===t.length?"base":Tn({elements:t,limit:6,now:new Date}).length?"dynamic":"scheduled":"none"}const qe={CONNECTOR_POWER_TYPE_AC_1_PHASE:"CONNECTOR_POWER_TYPE_AC_1_PHASE",CONNECTOR_POWER_TYPE_AC_2_PHASE:"CONNECTOR_POWER_TYPE_AC_2_PHASE",CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT:"CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT",CONNECTOR_POWER_TYPE_AC_3_PHASE:"CONNECTOR_POWER_TYPE_AC_3_PHASE",CONNECTOR_POWER_TYPE_DC:"CONNECTOR_POWER_TYPE_DC"};function Cl(e){switch(e.connectorPowerType){case qe.CONNECTOR_POWER_TYPE_AC_1_PHASE:case qe.CONNECTOR_POWER_TYPE_DC:return e.power.maxVoltage*e.power.maxAmperage/1e3;case qe.CONNECTOR_POWER_TYPE_AC_2_PHASE:case qe.CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT:return e.power.maxVoltage*e.power.maxAmperage*2/1e3;case qe.CONNECTOR_POWER_TYPE_AC_3_PHASE:return e.power.maxVoltage*e.power.maxAmperage*3/1e3;default:return 0}}const xl="ConnectorTariff-module_container",El="ConnectorTariff-module_bold",bl="ConnectorTariff-module_dynamicTariffItem",Tl="ConnectorTariff-module_dynamicTariffItemRange",wl="ConnectorTariff-module_tariffHeader",Nl="ConnectorTariff-module_tariffLabel",Il="ConnectorTariff-module_tariffNote",Sl="ConnectorTariff-module_activeNowLabel",ce={container:xl,bold:El,dynamicTariffItem:bl,dynamicTariffItemRange:Tl,tariffHeader:wl,tariffLabel:Nl,tariffNote:Il,activeNowLabel:Sl},Ol="Price-module_tariffItem",tn={tariffItem:Ol};function Dl(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function Al(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function Pl({priceComponent:e,restrictions:t={},currency:r}){const{t:o}=ie(),i={ENERGY:"tariffPriceComponent.energy",TIME:"tariffPriceComponent.time",FLAT:"tariffPriceComponent.flat",PARKING_TIME:"tariffPriceComponent.parkingTime"};return t?.minDuration===0&&t?.maxDuration&&e.type==="PARKING_TIME"?s.jsx("div",{className:tn.tariffItem,children:o("tariffPriceComponent.parkingTimeWait",{minutes:Math.floor(t.maxDuration/60)})}):i[e.type]?s.jsx("div",{className:tn.tariffItem,children:o(i[e.type],{total:Dl(Al(e),{currency:r})})}):null}const Rl="PriceComponents-module_container",Ml={container:Rl},pr=["ENERGY","TIME","FLAT","PARKING_TIME"];function _t({elements:e,currency:t}){const{t:r}=ie(),o=e.reduce((n,a)=>(a.priceComponents.forEach(l=>{n[l.type]||(n[l.type]=[]),n[l.type].push({priceComponent:l,restrictions:a.restrictions})}),n),{}),i=Object.keys(o).map(n=>({type:n,elements:o[n]})).sort((n,a)=>{const l=pr.indexOf(n.type),c=pr.indexOf(a.type);return l===-1?1:c===-1?-1:l-c});return s.jsx("div",{className:Ml.container,children:i.map(({type:n,elements:a},l)=>a.reverse().map((c,u)=>s.jsx(Pl,{currency:t,priceComponent:c.priceComponent,restrictions:c.restrictions},`${n}-${l}-${u}`)))})}function kl(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function jl({vat:e,price:t}){const r=e?e/100:0;return t+t*r}function Ll({cdrAdditionalCharge:e,currency:t}){const{t:r}=ie(),o={FLAT_FEE:r("cdrPrice.flatFee",{total:kl(jl(e),{currency:t})})};return s.jsx("div",{className:tn.tariffItem,children:o[e.type]})}function Ct(e,t){const r=new Date(0),o=Math.floor(t/60),i=t%60;return r.setHours(o,i,0,0),r.toLocaleTimeString("nl",{hour:"2-digit",minute:"2-digit"})}const Hl=Intl.DateTimeFormat().resolvedOptions().timeZone;function Vl(e){const{format:t}=new Intl.DateTimeFormat(e,{weekday:"long"});return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].reduce((r,o,i)=>(r[o]=t(new Date(Date.UTC(2023,9,i+1))),r),{})}function Ze({currency:e,cdrAdditionalCharges:t}){return t.map(r=>s.jsx(Ll,{currency:e,cdrAdditionalCharge:r},r.id))}function wn({timezone:e=Hl,tariff:t,compact:r=!0,cdrAdditionalCharges:o=[]}){const{t:i,language:n}=ie(),a=Vl(n);if(!t)return null;const l=t.elements||[],c=t.currency||"",u=l.some(T=>T.priceComponents&&T.priceComponents.length>0),d=Tn({elements:l,limit:r?6:40,now:new Date}),f=d.length?[]:Io(l,e,new Date),p=l.filter(Pe);if(!u)return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ce.tariffNote,children:i("tariffPriceComponent.noTariff")}),o.length>0&&s.jsx("div",{className:ce.container,children:s.jsx(Ze,{currency:c,cdrAdditionalCharges:o})})]});const E=!f.some(T=>T.isActive);return f.length?s.jsxs("div",{className:ce.container,children:[p.length>0&&s.jsxs("div",{className:[ce.tariffList,ce.bold].join(" "),children:[s.jsxs("div",{className:ce.tariffHeader,children:[i("tariffPriceComponent.baseTariff"),E&&s.jsx("span",{className:ce.activeNowLabel,children:i("tariffPriceComponent.active")})]}),s.jsx(_t,{elements:p,currency:c}),s.jsx(Ze,{currency:c,cdrAdditionalCharges:o})]}),f.map(T=>s.jsxs("div",{className:ce.tariffList,children:[s.jsxs("div",{className:ce.tariffHeader,children:[T.days.map(w=>a[w]).join(" - "),T.isActive&&s.jsx("span",{className:ce.activeNowLabel,children:i("tariffPriceComponent.active")})]}),T.items.map(w=>s.jsxs("div",{className:w.isActive&&ce.bold,children:[!w.isFullDay&&s.jsxs("div",{className:ce.tariffLabel,children:[Ct(n,w.startTime)," -"," ",Ct(n,w.endTime)]}),s.jsxs("div",{children:[s.jsx(_t,{elements:w.elements,currency:c}),s.jsx(Ze,{currency:c,cdrAdditionalCharges:o})]})]},w.startTime))]},T.days.join("-")))]}):s.jsxs("div",{className:ce.container,children:[p.length>0&&!d?.length&&s.jsxs("div",{className:ce.tariffList,children:[s.jsx(_t,{elements:p,currency:c}),s.jsx(Ze,{currency:c,cdrAdditionalCharges:o})]}),d.length>0&&s.jsx(s.Fragment,{children:d.map((T,w)=>s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ce.tariffHeader,children:i("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(n,{weekday:"long",month:"short",day:"numeric"}).format(T.date)})}),s.jsx("div",{className:ce.dynamicTariffList,children:T.items.map((g,O)=>s.jsxs("div",{className:[ce.dynamicTariffItem,g.isActive&&ce.bold].filter(Boolean).join(" "),children:[s.jsxs("div",{className:ce.dynamicTariffItemRange,children:[Ct(n,g.startTime)," –"," ",Ct(n,g.endTime)]}),s.jsx(_t,{elements:g.elements,currency:c}),s.jsx(Ze,{currency:c,cdrAdditionalCharges:o}),g.isActive&&s.jsx("span",{className:ce.activeNowLabel,children:i("tariffPriceComponent.active")})]},[g.startTime,g.endTime,O].join()))})]}))})]})}function hr(e,t,r){const o=[];return t?.customNote&&o.push(t?.customNote),r==="none"?o.length?o:[e("tariffNote.baseTariffNote")]:(r==="dynamic"&&o.push(e("tariffNote.dynamicScheduledTariffNote")),t?.infraProviderId==="NLEFL"||t?.party_id==="EFL"?(r==="scheduled"&&o.push(e("tariffNote.eFluxScheduledTariffNote")),o):(r==="scheduled"?o.push(e("tariffNote.baseTariffNote"),e("tariffNote.scheduledTariffNote")):o.push(e("tariffNote.baseTariffNote")),o))}const $l=({currentLocation:e,evses:t,setView:r,cdrAdditionalCharges:o})=>{const{options:i,t:n,language:a}=ie(),l=t.filter(c=>c.status==="AVAILABLE");return s.jsxs("div",{className:H.container,children:[s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:ho,alt:"station icon"}),s.jsxs("div",{className:H.text,children:[i.locationBaseUrl&&s.jsx("a",{href:`${i.locationBaseUrl}/${e.id}`,children:e.name||"-"}),!i.locationBaseUrl&&e.name]})]}),s.jsxs("div",{className:H.row,children:[s.jsx("div",{className:H.icon,children:s.jsx("div",{style:{background:Eo(e.evses)},className:H.statusIcon})}),s.jsxs("div",{className:H.text,children:[l.length," / ",t.length," ",n("evse.statusAvailable")]})]}),e.subOperator?.name&&s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:mo,alt:"building icon"}),s.jsx("div",{className:H.text,children:e.subOperator?.name})]}),e.parkingType!=="UNKNOWN"&&s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:bn,alt:"parking icon"}),s.jsx("div",{className:H.text,children:xo(n,e.parkingType)})]}),t.map(c=>s.jsxs("div",{children:[s.jsx("hr",{className:H.divider}),s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:st,alt:"power icon"}),s.jsx("div",{className:H.text,children:c.evseId})]}),s.jsxs("div",{className:H.row,children:[s.jsx("div",{style:{background:Ne(c.status)},className:H.statusIcon}),s.jsx("div",{className:H.text,children:[Co(n,c.status),c.maxPower&&`${yo(a,Math.floor(c.maxPower))}kW`].filter(Boolean).join(", ")})]}),c.connectors.map((u,d)=>{const f=_l(u.tariff),p=hr(n,e,f);return s.jsxs("div",{children:[" ",s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:vo(u),alt:"socket type"}),s.jsx("div",{className:H.text,children:_o(u)})]}),s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:go,alt:"pricing"}),s.jsx("div",{className:H.text,children:n("evse.pricing")})]}),s.jsx(wn,{tariff:u.tariff,cdrAdditionalCharges:o}),f==="dynamic"&&s.jsx("div",{className:H.tariffNoteLink,onClick:()=>{r("dynamicTariff",{connector:u,evseId:c.evseId,notes:p,locationName:e.name})},children:n("location.viewAllHourlyPrices")}),p.length>0&&s.jsxs("div",{className:H.tariffNoteLink,onClick:()=>{r("tariffNote",{locationName:e.name,evseId:c.evseId,notes:hr(n,e,f)})},children:[s.jsx(po,{})," ",n("tariffPriceComponent.viewTariff")]})]},`connector-${d}`)})]},c.evseId))]})},Fl="LocationRow-module_row",Bl="LocationRow-module_expandable",zl="LocationRow-module_icon",Ul="LocationRow-module_text",Yl="LocationRow-module_textHint",Wl="LocationRow-module_chevron",Kl="LocationRow-module_chevronOpen",Gl="LocationRow-module_body",Ie={row:Fl,expandable:Bl,icon:zl,text:Ul,textHint:Yl,chevron:Wl,chevronOpen:Kl,body:Gl},ql={display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",padding:"5px 0",minWidth:0},Zl={display:"inline-flex",alignItems:"center",justifyContent:"center",height:16,width:16,flex:"0 0 auto",marginRight:14,overflow:"hidden"},Jl={flex:"1 1 auto",minWidth:0,fontSize:12,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},Xl={color:"var(--roadmap-muted-color, #6a6a6a)",fontWeight:"normal"},Ql={display:"inline-flex",alignItems:"center",justifyContent:"center",height:10,width:10,flex:"0 0 auto",marginLeft:8,transition:"transform 0.15s ease",color:"var(--roadmap-text-color, #2a2a2a)"},ec={padding:"4px 0 6px 30px",display:"flex",flexDirection:"column",gap:4},Ee=({icon:e,text:t,hint:r,children:o,defaultExpanded:i=!1})=>{const n=m.Children.count(o)>0,[a,l]=m.useState(i),c=()=>l(u=>!u);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`${Ie.row} ${n?Ie.expandable:""}`,style:{...ql,cursor:n?"pointer":void 0,userSelect:n?"none":void 0},role:n?"button":void 0,tabIndex:n?0:void 0,"aria-expanded":n?a:void 0,onClick:n?c:void 0,onKeyDown:n?u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),c())}:void 0,children:[s.jsx("span",{className:Ie.icon,style:Zl,children:m.isValidElement(e)?m.cloneElement(e,{style:{maxWidth:16,maxHeight:16,display:"block",...e.props?.style||{}}}):e}),s.jsxs("div",{className:Ie.text,style:Jl,children:[t,r!=null&&s.jsxs("span",{className:Ie.textHint,style:Xl,children:[" · ",r]})]}),n&&s.jsx("span",{className:`${Ie.chevron} ${a?Ie.chevronOpen:""}`,style:{...Ql,transform:a?"rotate(180deg)":void 0},children:s.jsx(Xa,{})})]}),n&&a&&s.jsx("div",{className:Ie.body,style:ec,children:o})]})},tc=({location:e})=>{const{options:t}=ie(),r=e?.name||"-",o=t.locationBaseUrl?s.jsx("a",{href:`${t.locationBaseUrl}/${e?.id}`,children:r}):r;return s.jsx(Ee,{icon:s.jsx("img",{src:ho,alt:"station icon"}),text:o})},So=({color:e,size:t=10})=>s.jsx("span",{style:{display:"block",width:t,height:t,borderRadius:t,background:e}}),nc=({evses:e})=>{const{t}=ie(),r=e?.filter(o=>o.status==="AVAILABLE")||[];return s.jsx(Ee,{icon:s.jsx(So,{color:Eo(e)}),text:`${r.length} / ${e?.length||0} ${t("evse.statusAvailable")}`})},rc="OperatorSection-module_block",oc="OperatorSection-module_role",ic="OperatorSection-module_header",sc="OperatorSection-module_name",ac="OperatorSection-module_logo",lc="OperatorSection-module_website",Be={block:rc,role:oc,header:ic,name:sc,logo:ac,website:lc},cc=({role:e,showRoleLabel:t})=>{const{t:r}=ie();return e.name?s.jsxs("div",{className:Be.block,style:{display:"flex",flexDirection:"column",gap:2,marginBottom:8},children:[t&&s.jsx("div",{className:Be.role,style:{fontSize:11,textTransform:"uppercase",color:"var(--roadmap-muted-color, #6a6a6a)",letterSpacing:"0.04em"},children:r(e.labelKey)}),s.jsxs("div",{className:Be.header,style:{display:"flex",alignItems:"center",gap:8},children:[e.logoUrl&&s.jsx("img",{className:Be.logo,src:e.logoUrl,alt:`${e.name} logo`,style:{maxHeight:20,maxWidth:80,width:"auto",height:"auto",objectFit:"contain",display:"block"}}),s.jsx("div",{className:Be.name,style:{fontSize:13,fontWeight:600},children:e.name})]}),e.website&&s.jsx("a",{className:Be.website,href:e.website,target:"_blank",rel:"noopener noreferrer",style:{fontSize:12,color:"var(--roadmap-brand-color)",textDecoration:"none",wordBreak:"break-all"},children:r("location.visitWebsite")})]}):null},uc=({operator:e,suboperator:t,fallbackOperatorName:r,fallbackSuboperatorName:o})=>{const{t:i}=ie(),n={labelKey:"location.suboperator",name:t?.name||o,website:t?.website,logoUrl:t?.logo?.thumbnail||t?.logo?.url},a={labelKey:"location.operator",name:e?.name||r,website:e?.website,logoUrl:e?.logo?.thumbnail||e?.logo?.url},l=n.name?n:a.name?a:null;return l?s.jsx(Ee,{icon:s.jsx("img",{src:mo,alt:"building icon"}),text:i("location.operatorInfo"),hint:l.name,children:s.jsx(cc,{role:l,showRoleLabel:!1})}):null},dc=["weekday.mon","weekday.tue","weekday.wed","weekday.thu","weekday.fri","weekday.sat","weekday.sun"];function fc(e,t){const r=dc[t-1];return r?e(r):""}function Oo(e){const t={};for(let r=1;r<=7;r++)t[r]=[];(e||[]).forEach(r=>{r.weekday>=1&&r.weekday<=7&&t[r.weekday].push(r)});for(const r of Object.keys(t))t[Number(r)].sort((o,i)=>o.period_begin.localeCompare(i.period_begin));return t}function pc(e,t){return`${e} – ${t}`}function xt(e){const[t,r]=e.split(":").map(Number);return t*60+(r||0)}function hc(e){return e===0?7:e}function Et(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${o}`}function mr(e,t){if(!e)return null;const r=t.getTime();for(const o of e){const i=new Date(o.period_begin).getTime(),n=new Date(o.period_end).getTime();if(!isNaN(i)&&!isNaN(n)&&r>=i&&r<=n)return o}return null}function mc(e,t=new Date){if(!e)return{open:!1};if(e.twentyfourseven)return{open:!0};const r=mr(e.exceptional_closings,t);if(r)return{open:!1,nextChange:{time:new Date(r.period_end).toISOString().slice(11,16),label:"opens"}};const o=mr(e.exceptional_openings,t);if(o)return{open:!0,nextChange:{time:new Date(o.period_end).toISOString().slice(11,16),label:"closes"}};const i=Oo(e.regular_hours),n=hc(t.getDay()),a=n===1?7:n-1,l=t.getHours()*60+t.getMinutes();for(const c of i[a]){const u=xt(c.period_begin),d=xt(c.period_end);if((d<u||d===0)&&l<(d===0?1440:d))return{open:!0,nextChange:{time:c.period_end,label:"closes"}}}for(const c of i[n]){const u=xt(c.period_begin),d=xt(c.period_end),p=d<u||d===0?1440:d;if(l>=u&&l<p)return{open:!0,nextChange:{time:c.period_end,label:"closes"}};if(l<u)return{open:!1,nextChange:{time:c.period_begin,label:"opens"}}}for(let c=1;c<=7;c++){const u=(n-1+c)%7+1,d=i[u];if(d.length>0)return{open:!1,nextChange:{time:d[0].period_begin,label:"opens"}}}return{open:!1}}function gr(e,t=new Date){if(!e)return[];const r=t.getTime();return e.filter(o=>{const i=new Date(o.period_end).getTime();return!isNaN(i)&&i>=r})}function vr(e){const t=new Date(e.period_begin),r=new Date(e.period_end);if(isNaN(t.getTime())||isNaN(r.getTime()))return`${e.period_begin} – ${e.period_end}`;const o=Et(t)===Et(r),i=`${Et(t)} ${t.toISOString().slice(11,16)}`,n=o?r.toISOString().slice(11,16):`${Et(r)} ${r.toISOString().slice(11,16)}`;return`${i} – ${n}`}const gc="OpeningHours-module_day",vc="OpeningHours-module_dayLabel",yc="OpeningHours-module_dayValue",_c="OpeningHours-module_exceptional",Cc="OpeningHours-module_exceptionalHeader",xc="OpeningHours-module_footnote",Se={day:gc,dayLabel:vc,dayValue:yc,exceptional:_c,exceptionalHeader:Cc,footnote:xc},Ec=({openingTimes:e,chargingWhenClosed:t})=>{const{t:r}=ie();if(!e)return null;const o=mc(e),i=Oo(e.regular_hours),n=gr(e.exceptional_closings),a=gr(e.exceptional_openings),l=e.twentyfourseven?r("location.open24_7"):o.open?r("location.openNow"):r("location.closedNow"),c=!e.twentyfourseven&&o.nextChange?o.nextChange.label==="closes"?r("location.closesAt",{time:o.nextChange.time}):r("location.opensAt",{time:o.nextChange.time}):void 0,u=!e.twentyfourseven||n.length>0||a.length>0||!!t,d={display:"flex",fontSize:12,lineHeight:1.5},f={minWidth:56,fontWeight:600},p={flex:"1 1 auto"},E={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},T={fontWeight:600,marginBottom:2},w={fontSize:11,fontStyle:"italic",color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6};return s.jsx(Ee,{icon:s.jsx(Qa,{}),text:l,hint:c,children:u?s.jsxs(s.Fragment,{children:[!e.twentyfourseven&&[1,2,3,4,5,6,7].map(g=>{const O=i[g],C=O.length===0?r("location.closed"):O.map(_=>pc(_.period_begin,_.period_end)).join(", ");return s.jsxs("div",{className:Se.day,style:d,children:[s.jsx("div",{className:Se.dayLabel,style:f,children:fc(r,g)}),s.jsx("div",{className:Se.dayValue,style:p,children:C})]},g)}),n.length>0&&s.jsxs("div",{className:Se.exceptional,style:E,children:[s.jsx("div",{className:Se.exceptionalHeader,style:T,children:r("location.exceptionalClosings")}),n.map((g,O)=>s.jsx("div",{children:vr(g)},`c-${O}`))]}),a.length>0&&s.jsxs("div",{className:Se.exceptional,style:E,children:[s.jsx("div",{className:Se.exceptionalHeader,style:T,children:r("location.exceptionalOpenings")}),a.map((g,O)=>s.jsx("div",{children:vr(g)},`o-${O}`))]}),t&&s.jsx("div",{className:Se.footnote,style:w,children:r("location.chargingWhenClosed")})]}):null})},bc=({parkingType:e})=>{const{t}=ie();return!e||e==="PARKING_TYPE_UNKNOWN"?null:s.jsx(Ee,{icon:s.jsx("img",{src:bn,alt:"parking icon"}),text:xo(t,e)})},Tc=({accessibility:e})=>e?s.jsx(Ee,{icon:s.jsx("img",{src:bn,alt:"accessibility icon"}),text:e==="TESLA"?"Tesla vehicles only":"All electric vehicles"}):null,wc=({evse:e})=>s.jsx(Ee,{icon:s.jsx("img",{src:st,alt:"power icon"}),text:e.evse_id||""}),Nc=({evse:e})=>{const{t,language:r}=ie(),o=e.connectors[0],i=o?.power&&o?.connectorPowerType?`${yo(r,Math.floor(Cl(o)))}kW`:null,n=[Co(t,e.status),i].filter(Boolean).join(", ");return s.jsx(Ee,{icon:s.jsx(So,{color:Ne(e.status)}),text:n})},Ic=({connector:e})=>s.jsx(Ee,{icon:s.jsx("img",{src:vo(e),alt:"socket type"}),text:_o(e)}),Sc=()=>{const{t:e}=ie();return s.jsx(Ee,{icon:s.jsx("img",{src:go,alt:"pricing"}),text:e("evse.pricing")})};function Nn(e){return e?.currency?{currency:e.currency,id:e.id,country_code:e.country_code,party_id:e.party_id,elements:(e?.elements||[]).map(t=>({priceComponents:(t?.price_components||[]).map(r=>({type:(()=>{switch(r.type){case"FLAT":return"FLAT";case"TIME":return"TIME";case"ENERGY":return"ENERGY";case"PARKING_TIME":return"PARKING_TIME";case"CONGESTION_TIME":return"CONGESTION_TIME"}})(),price:r.price,vat:r.vat,stepSize:r.step_size})),...t?.restrictions?{restrictions:{startTime:t?.restrictions?.start_time,endTime:t?.restrictions?.end_time,startDate:t?.restrictions?.start_date,endDate:t?.restrictions?.end_date,dayOfWeek:t?.restrictions?.day_of_week,minDuration:t?.restrictions?.min_duration,maxDuration:t?.restrictions?.max_duration}}:{}}))}:null}const Oc=({tariff:e,additionalCharges:t})=>{const{t:r}=ie(),o=e?.elements?.some(i=>i?.price_components?.some(n=>n.type==="CONGESTION_TIME"));return s.jsxs(s.Fragment,{children:[o&&s.jsx("div",{style:{padding:"0.8rem",margin:"0.8rem 0",backgroundColor:"#FFF4E5",borderLeft:"3px solid #FF9800",borderRadius:"4px",fontSize:"13px",color:"#663C00"},children:r("tariff.congestionPricing")}),s.jsx(wn,{tariff:Nn(e),cdrAdditionalCharges:t})]})},Dc=["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"];function yr(e){const[t,r]=e.split(":").map(Number);return t*60+(r||0)}function Ac(e,t,r){const o=r.getHours()*60+r.getMinutes(),i=yr(e),n=yr(t);return n<i?o>=i||o<n:o>=i&&o<n}function Pc(e,t){if(Pe(e))return!0;const r=e.restrictions;if(r.startTime&&r.endTime&&!Ac(r.startTime,r.endTime,t))return!1;if(r.dayOfWeek&&r.dayOfWeek.length>0){const o=Dc[t.getDay()];if(!r.dayOfWeek.includes(o))return!1}if(r.startDate){const o=new Date(r.startDate);if(!isNaN(o.getTime())&&t<o)return!1}if(r.endDate){const o=new Date(r.endDate);if(!isNaN(o.getTime())&&t>o)return!1}return!0}function Rc(e,t){const r=t.restrictions?.minDuration??0,o=t.restrictions?.maxDuration??0;return`${e}:${r}:${o}`}function Mc(e,t=new Date){if(!e)return{elements:[],currency:""};const o=(e.elements||[]).filter(c=>Pc(c,t)),i={};o.forEach(c=>{const u=Pe(c);(c.priceComponents||[]).forEach(d=>{const f=Rc(d.type,c),p=i[f];(!p||p.isBase&&!u)&&(i[f]={element:c,pc:d,isBase:u})})});const n=new Map,a=[];return Object.values(i).forEach(({element:c,pc:u})=>{n.has(c)||(n.set(c,[]),a.push(c)),n.get(c).push(u)}),{elements:a.map(c=>({...c,priceComponents:n.get(c)})),currency:e.currency||""}}const kc={display:"flex",flexWrap:"wrap",gap:6},Do={fontSize:12,lineHeight:1.3,padding:"1px 8px",borderRadius:6,background:"color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 12%, transparent)",color:"var(--roadmap-brand-color, #6102d3)",border:"1px solid color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 30%, transparent)"},jc=Do,Lc={ENERGY:"tariffPriceComponent.energy",TIME:"tariffPriceComponent.time",FLAT:"tariffPriceComponent.flat",PARKING_TIME:"tariffPriceComponent.parkingTime"},_r=["ENERGY","TIME","FLAT","PARKING_TIME"];function Cr(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t||"EUR",maximumFractionDigits:2}).format(e)}function Hc(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function Ao(e,t){return e.type==="PARKING_TIME"&&(e.price||0)===0&&!!t?.maxDuration&&(!t.minDuration||t.minDuration===0)}function Vc(e,t){const r=[];return e.forEach(o=>{(o.priceComponents||[]).forEach(i=>{t&&(i.price||0)<=0&&!Ao(i,o.restrictions)||r.push({pc:i,restrictions:o.restrictions})})}),r.sort((o,i)=>{const n=_r.indexOf(o.pc.type),a=_r.indexOf(i.pc.type);return n===-1?1:a===-1?-1:n-a})}const $c=({elements:e,currency:t,skipZero:r=!0,highlight:o=!1,additionalCharges:i=[]})=>{const{t:n}=ie(),a=Vc(e,r),l=o?jc:Do;return a.length===0&&i.length===0?null:s.jsxs("div",{style:kc,children:[a.map(({pc:c,restrictions:u},d)=>{if(Ao(c,u))return s.jsx("div",{style:l,children:n("tariffPriceComponent.parkingTimeWait",{minutes:String(Math.floor(u.maxDuration/60))})},`pc-${d}`);const f=Lc[c.type];return f?s.jsx("div",{style:l,children:n(f,{total:Cr(Hc(c),t)})},`pc-${d}`):null}),i.map(c=>{if(c.type!=="FLAT_FEE")return null;const u=c.price+(c.vat?c.price*(c.vat/100):0);return s.jsx("div",{style:l,children:n("cdrPrice.flatFee",{total:Cr(u,t)})},`cdr-${c.id}`)})]})},xr={display:"flex",flexDirection:"column",gap:4,padding:"6px 0"},Fc={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,fontSize:12,color:"var(--roadmap-muted-color, #6a6a6a)"},Bc={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},rt=({elements:e,currency:t,label:r,trailing:o,highlight:i=!1,additionalCharges:n,onClick:a})=>{const l=!!a,c=l?{...xr,cursor:"pointer",userSelect:"none"}:xr,u=d=>{a&&(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),a())};return s.jsxs("div",{style:c,role:l?"button":void 0,tabIndex:l?0:void 0,onClick:a,onKeyDown:l?u:void 0,children:[r!=null&&s.jsx("div",{style:Fc,children:r}),s.jsxs("div",{style:Bc,children:[s.jsx($c,{elements:e,currency:t,highlight:i,additionalCharges:n}),o]})]})},Po={fontSize:12,fontWeight:600,padding:"4px 12px",borderRadius:6,cursor:"pointer",background:"transparent",color:"var(--roadmap-brand-color, #6102d3)",border:"1px solid color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 40%, transparent)"},zc={...Po,cursor:"default",opacity:.6},Uc={display:"flex",alignItems:"center",gap:6,fontSize:12,color:"var(--roadmap-brand-color, #6102d3)"},Yc={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},Wc=({type:e,country_code:t,party_id:r,location_id:o,evse_uid:i})=>{const{t:n,reportProblem:a}=ie(),[l,c]=m.useState("idle"),u=async d=>{if(d.stopPropagation(),!(l==="submitting"||l==="done")){c("submitting");try{await a?.({type:e,country_code:t,party_id:r,location_id:o,evse_uid:i}),c("done")}catch{c("error")}}};return l==="done"?s.jsxs("div",{style:Uc,children:[s.jsx(el,{}),s.jsx("span",{children:n("tariff.reportThanks")})]}):s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",onClick:u,disabled:l==="submitting",style:l==="submitting"?zc:Po,children:n("tariff.report")}),l==="error"&&s.jsx("div",{style:Yc,children:n("tariff.reportError")})]})},Kc={display:"flex",flexDirection:"column",alignItems:"flex-start",gap:10,padding:"14px 14px",marginTop:6,borderRadius:8,background:"color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)"},Gc={fontSize:12,fontStyle:"italic",color:"var(--roadmap-muted-color, #6a6a6a)"},nn=({country_code:e,party_id:t,location_id:r,evse_uid:o})=>{const{t:i}=ie();return s.jsxs("div",{style:Kc,children:[s.jsx("div",{style:Gc,children:i("tariffPriceComponent.noTariff")}),s.jsx(Wc,{type:"missing_tariff",country_code:e,party_id:t,location_id:r,evse_uid:o})]})},qc={display:"inline-flex",alignItems:"center",justifyContent:"center",color:"var(--roadmap-muted-color, #6a6a6a)",flex:"0 0 auto"},Zc=({tariff:e,additionalCharges:t=[],evseId:r,evseUid:o,countryCode:i,partyId:n,locationId:a,locationName:l,setView:c})=>{const u=e?Nn(e):null,{elements:d,currency:f}=Mc(u),p=d.map(w=>({...w,priceComponents:(w.priceComponents||[]).filter(g=>!!((g.price||0)>0||g.type==="PARKING_TIME"&&w.restrictions?.maxDuration&&(!w.restrictions.minDuration||w.restrictions.minDuration===0)))})).filter(w=>w.priceComponents.length>0);if(!(!!u&&p.length>0))return s.jsxs(s.Fragment,{children:[s.jsx(nn,{country_code:i,party_id:n,location_id:a,evse_uid:o}),t.length>0&&s.jsx(rt,{elements:[],currency:f,additionalCharges:t})]});const T=()=>c("tariffDetails",{tariff:e,additionalCharges:t,locationName:l,evseId:r,evseUid:o,countryCode:i,partyId:n,locationId:a});return s.jsx(rt,{elements:p,currency:f,highlight:!0,additionalCharges:t,onClick:T,trailing:s.jsx("span",{style:qc,children:s.jsx(fo,{})})})},Jc=({connector:e,tariffs:t,cdrAdditionalCharges:r,location:o,evseId:i,evseUid:n,setView:a})=>{const l=t?.find(c=>c.id===e?.tariff_ids?.[0]);return s.jsxs(s.Fragment,{children:[s.jsx(Ic,{connector:e}),s.jsx(Sc,{}),s.jsx(Zc,{tariff:l,additionalCharges:r,evseId:i,evseUid:n||"",countryCode:o.country_code,partyId:o.party_id,locationId:o.id,locationName:o.name,setView:a})]})},Xc={background:"color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)",borderRadius:8,padding:"8px 12px",marginTop:12},Qc={paddingLeft:10,marginTop:10},eu=({evse:e,tariffs:t,cdrAdditionalCharges:r,location:o,setView:i})=>{const n=Ne(e.status),a={...Qc,borderLeft:`3px solid ${n}`,borderRadius:2};return s.jsxs("div",{style:Xc,children:[s.jsx(wc,{evse:e}),s.jsx(Nc,{evse:e}),e.connectors.map((l,c)=>s.jsx("div",{style:a,children:s.jsx(Jc,{connector:l,tariffs:t,cdrAdditionalCharges:r,location:o,evseId:e.evse_id,evseUid:e.uid,setView:i})},`connector-${c}`))]})},tu={fontSize:12,fontStyle:"italic",lineHeight:1.5,color:"var(--roadmap-text-color, #2a2a2a)",padding:"12px 0 12px 12px",margin:"8px 0",borderLeft:"3px solid color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 20%, transparent)"};function nu(e,t){if(!e||e.length===0)return;const r=(t||"").toLowerCase(),o=e.find(n=>n.language?.toLowerCase()===r);return o?o.text:(e.find(n=>n.language?.toLowerCase()==="en")||e[0])?.text}const ru=({directions:e})=>{const{language:t}=ie(),r=nu(e||[],t);return r?s.jsx("div",{style:tu,children:r}):null},ou=({currentLocation:e,setView:t})=>{const{options:r}=ie();return s.jsxs("div",{className:H.container,children:[r.context==="cpo"&&s.jsx("div",{className:H.publishingMode,children:e?.publish?"Public location":"Private location"}),s.jsx(ru,{directions:e.directions}),s.jsx(tc,{location:e}),s.jsx(nc,{evses:e.evses}),s.jsx(uc,{operator:e.operator,suboperator:e.suboperator||e.subOperator,fallbackOperatorName:e.operator_name||e.operatorName,fallbackSuboperatorName:e.suboperator_name||e.suboperatorName}),s.jsx(Ec,{openingTimes:e.opening_times,chargingWhenClosed:e.charging_when_closed}),s.jsx(bc,{parkingType:e.parkingType}),s.jsx(Tc,{accessibility:e.charging_accessibility}),e.evses?.map(o=>s.jsx(eu,{evse:o,tariffs:e.tariffs,cdrAdditionalCharges:e.cdrAdditionalCharges||[],location:e,setView:t},`${o.evse_id}-${o.uid}`))]})},iu=()=>{const{setView:e}=Ke(),{locations:t,locationsStatus:r,options:o}=ie(),[i,n]=m.useState(0);m.useEffect(()=>{n(0)},[t]);const a=t[i];if(r.type==="loading"||!a)return s.jsx("div",{className:H.container,children:s.jsx(Ja,{})});const{evses:l=[],cdrAdditionalCharges:c}=a,u=i<t.length-1,d=i>0,f=window.location?.search?.includes("debug"),p=()=>{switch(o.version){case"v2":return[a?.address,a?.city];default:return[a?.address,a?.city]}},E=o.version==="v2";return s.jsxs(s.Fragment,{children:[f&&a&&s.jsx(ll,{location:a}),s.jsx("div",{className:H.headerContainer,children:s.jsxs("div",{className:H.header,children:[t.length>1&&s.jsxs("div",{className:H.pagingation,children:[s.jsxs("span",{children:[i+1," / ",t.length]}),s.jsx("button",{disabled:!d,onClick:()=>{n(Math.max(0,i-1))},children:s.jsx(uo,{})}),s.jsx("button",{disabled:!u,onClick:()=>n(Math.min(t.length-1,i+1)),children:s.jsx(fo,{})})]}),p().filter(Boolean).join(", ")]})}),!E&&s.jsx($l,{setView:e,cdrAdditionalCharges:c,currentLocation:a,evses:l}),E&&s.jsx(ou,{setView:e,currentLocation:a})]})},su="BackButton-module_backButton",au={backButton:su};function In({onClick:e=()=>{}}){const{t}=ie();return s.jsxs("button",{onClick:e,className:au.backButton,children:[s.jsx(uo,{}),t("backButton.backTo")]})}function lu(){const{t:e}=ie(),{current:t,setView:r}=Ke(),{notes:o=[],evseId:i,locationName:n}=t?.args||{};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:H.headerContainer,children:s.jsxs("div",{className:H.header,onClick:()=>r("locations"),style:{cursor:"pointer"},children:[s.jsx(In,{}),n?.text||n]})}),s.jsxs("div",{className:H.container,children:[s.jsx("div",{className:H.subheader,children:e("tariffNote.subHeader")}),i&&s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:st,alt:"power icon"}),s.jsx("div",{className:H.text,children:i})]}),o.map(a=>s.jsx("p",{className:H.note,children:a},a))]})]})}function cu(){const{t:e}=ie(),{current:t,setView:r}=Ke(),{connector:o,tariff:i,additionalCharges:n,locationName:a,evseId:l,notes:c}=t?.args||{};return i||o?.tariff?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:H.headerContainer,children:s.jsxs("div",{className:H.header,onClick:()=>r("locations"),style:{cursor:"pointer"},children:[s.jsx(In,{}),a]})}),s.jsxs("div",{className:H.container,children:[s.jsx("div",{className:H.subheader,children:e("dynamicTariffs.subHeader")}),s.jsxs("div",{className:H.row,children:[s.jsx("img",{className:H.icon,src:st,alt:"power icon"}),s.jsx("div",{className:H.text,children:l})]}),i&&s.jsx(Oc,{tariff:i,additionalCharges:n}),o.tariff&&s.jsx(wn,{tariff:o.tariff,compact:!1}),s.jsxs("div",{className:H.tariffNoteLink,onClick:()=>{r("tariffNote",{locationName:a,evseId:l,notes:c})},children:[s.jsx(po,{})," ",e("tariffPriceComponent.viewTariff")]})]})]}):null}const uu=Intl.DateTimeFormat().resolvedOptions().timeZone,Kt={display:"flex",flexDirection:"column",gap:4,marginTop:14},Er={fontSize:12,fontWeight:600,textTransform:"capitalize",lineHeight:1.4},du={fontSize:12,lineHeight:1.5,color:"var(--roadmap-text-color, #2a2a2a)",marginTop:8},fu={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6};function bt(e){const t=new Date(0);return t.setHours(Math.floor(e/60),e%60,0,0),t.toLocaleTimeString("nl",{hour:"2-digit",minute:"2-digit"})}function pu(e){const{format:t}=new Intl.DateTimeFormat(e,{weekday:"long"});return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].reduce((r,o,i)=>(r[o]=t(new Date(Date.UTC(2023,9,i+1))),r),{})}function hu(e){return(e.priceComponents||[]).some(t=>!!((t.price||0)>0||t.type==="PARKING_TIME"&&e.restrictions?.maxDuration&&(!e.restrictions.minDuration||e.restrictions.minDuration===0)))}function mu(e,t){return!e||e.length===0?void 0:(e.find(o=>o.language?.toLowerCase()===t?.toLowerCase())||e[0])?.text}function gu(e,t){if(!e)return;const r=new Date(e);if(!isNaN(r.getTime()))return new Intl.DateTimeFormat(t,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(r)}function vu(){const{t:e,language:t}=ie(),{current:r,setView:o}=Ke(),{tariff:i,additionalCharges:n,locationName:a,evseId:l,evseUid:c,countryCode:u,partyId:d,locationId:f}=r?.args||{};if(!i)return null;const p=Nn(i),E={country_code:u||i.country_code||"",party_id:d||i.party_id||"",location_id:f||"",evse_uid:c||""},T=mu(i.tariff_alt_text,t),w=gu(i.last_updated,t),g=()=>s.jsx("div",{className:H.headerContainer,children:s.jsxs("div",{className:H.header,onClick:()=>o("locations"),style:{cursor:"pointer"},children:[s.jsx(In,{}),a]})});if(!p)return s.jsxs(s.Fragment,{children:[g(),s.jsx("div",{className:H.container,children:s.jsx(nn,{...E})})]});const O=(p.elements||[]).filter(hu),C=p.currency||"",_=n||[],x=O.filter(Pe),v=Tn({elements:O,limit:40,now:new Date}),I=v.length?[]:Io(O,uu,new Date),W=!I.some(z=>z.isActive),j=pu(t);return s.jsxs(s.Fragment,{children:[g(),s.jsxs("div",{className:H.container,children:[s.jsx("div",{className:H.subheader,children:e("tariff.fullDetailsHeader")}),l&&s.jsx(Ee,{icon:s.jsx("img",{src:st,alt:"power icon"}),text:l}),T&&s.jsx("div",{style:du,children:T}),w&&s.jsx("div",{style:fu,children:e("tariff.lastUpdated",{date:w})}),x.length>0&&s.jsx("div",{style:Kt,children:s.jsx(rt,{elements:x,currency:C,highlight:I.length>0&&W,additionalCharges:_})}),I.map(z=>s.jsxs("div",{style:Kt,children:[s.jsx("div",{style:Er,children:z.days.map(A=>j[A]).join(" – ")}),z.items.map((A,L)=>s.jsx(rt,{elements:A.elements||[],currency:C,highlight:!!A.isActive,label:A.isFullDay?void 0:`${bt(A.startTime)} – ${bt(A.endTime)}`},L))]},z.days.join("-"))),v.map((z,A)=>s.jsxs("div",{style:Kt,children:[s.jsx("div",{style:Er,children:e("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(t,{weekday:"long",month:"short",day:"numeric"}).format(z.date)})}),z.items.map((L,Z)=>s.jsx(rt,{elements:L.elements||[],currency:C,highlight:!!L.isActive,label:`${bt(L.startTime)} – ${bt(L.endTime)}`},Z))]},A)),I.length===0&&v.length===0&&x.length===0&&s.jsx(nn,{...E})]})]})}const yu="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.48751%205.99758L9.85376%202.63133C10.0484%202.43664%2010.0484%202.1207%209.85376%201.9257L9.07157%201.14351C8.87688%200.948826%208.56095%200.948826%208.36595%201.14351L5.00001%204.51008L1.63376%201.14383C1.43907%200.949138%201.12313%200.949138%200.928135%201.14383L0.14626%201.9257C-0.0484277%202.12039%20-0.0484277%202.43633%200.14626%202.63133L3.51251%205.99758L0.14626%209.36383C-0.0484277%209.55851%20-0.0484277%209.87445%200.14626%2010.0695L0.928447%2010.8516C1.12313%2011.0463%201.43907%2011.0463%201.63407%2010.8516L5.00001%207.48508L8.36626%2010.8513C8.56095%2011.046%208.87688%2011.046%209.07188%2010.8513L9.85407%2010.0691C10.0488%209.87445%2010.0488%209.55851%209.85407%209.36351L6.48751%205.99758Z'%20fill='black'/%3e%3c/svg%3e",_u="CloseButton-module_closeButton",Cu={closeButton:_u};function Ro({onClick:e}){return s.jsx("button",{onClick:e,className:Cu.closeButton,children:s.jsx("img",{src:yu})})}function xu(){const[e,t]=m.useState("locations"),{setView:r}=Ke();return s.jsxs(we,{name:"locations",currentView:e,onViewChange:t,children:[s.jsx(we.View,{name:"locations",children:s.jsxs(Ue,{children:[s.jsx(Ro,{onClick:()=>r("none")}),s.jsx(iu,{})]})}),s.jsx(we.View,{name:"tariffNote",children:s.jsx(Ue,{children:s.jsx(lu,{})})}),s.jsx(we.View,{name:"dynamicTariff",children:s.jsx(Ue,{children:s.jsx(cu,{})})}),s.jsx(we.View,{name:"tariffDetails",children:s.jsx(Ue,{children:s.jsx(vu,{})})})]})}const Eu="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M14.4985%200H1.50178C0.169343%200%20-0.502939%201.61659%200.441124%202.56066L5.5%207.62131V13C5.5%2013.4721%205.72228%2013.9167%206.1%2014.25L8.1%2015.7208C9.07728%2016.4038%2010.5%2015.7689%2010.5%2014.5208V7.62131L15.5592%202.56066C16.5013%201.6185%2015.8336%200%2014.4985%200ZM9%207V14.5L7%2013V7L1.5%201.5H14.5L9%207Z'%20fill='currentColor'%20/%3e%3c/svg%3e";function bu(){const{locationIds:e,fetchLocations:t,filters:r,isSearching:o}=ie(),[i,n]=m.useState("none");return m.useEffect(()=>{e.length>0&&n("locations")},[e,n]),s.jsxs("div",{className:Me.container,children:[s.jsxs("div",{className:Me.controlsContainer,children:[s.jsx(Ji,{onFocus:()=>{n("none")}}),s.jsxs("div",{className:Me.filterButton,onClick:()=>{n("filters")},children:[o??!1?s.jsx("div",{className:Me.spinner}):s.jsx("img",{className:Me.filterIcon,src:Eu}),Oa(r)&&!(o??!1)&&s.jsx("span",{className:Me.filterCounter})]})]}),s.jsx("div",{className:Me.stackContainer,children:s.jsxs(we,{name:"router",currentView:i,onViewChange:a=>{n(a)},children:[s.jsx(we.View,{name:"locations",children:s.jsx(xu,{})}),s.jsx(we.View,{name:"filters",children:s.jsxs(Ue,{children:[s.jsx(Ro,{onClick:()=>n("none")}),s.jsx(Pa,{})]})})]})})]})}function Mo(e){return!e.shadowRoot&&e?.theming?.backgroundColor?s.jsx(Tu,{...e}):s.jsx(ei,{options:e,language:e.language,children:s.jsxs(ti,{height:e?.height,children:[s.jsx(bu,{}),s.jsx(yi,{})]})})}const Tu=e=>{const t=m.useRef(null),r=m.useRef(null),o=m.useRef(null),i=m.useRef(!1);return m.useEffect(()=>{const n=t.current;if(!n||i.current)return;const a=n.attachShadow({mode:"open"});o.current=a;let l="https://mapsdk.road.io/styles.css";e.sdkRoot&&(l=e.sdkRoot+"/styles.css");const c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=l,a.appendChild(c);const u=Lo.createRoot(a);return r.current=u,i.current=!0,()=>{r.current&&(r.current.unmount(),r.current=null),o.current=null,i.current=!1}},[]),m.useEffect(()=>{if(!r.current||!o.current)return;const n=m.createElement(Mo,{...e,shadowRoot:o.current});r.current.render(n)},[e]),s.jsx("div",{ref:t,style:{height:"100%",width:"100%"}})};exports.RoadMap=Mo;
27
+ */var at,Lt;function Pr(){if(Lt)return at;Lt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(d.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return at=a()?Object.assign:function(o,s){for(var l,d=r(o),c,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(d[f]=l[f]);if(e){c=e(l);for(var p=0;p<c.length;p++)i.call(l,c[p])&&(d[c[p]]=l[c[p]])}}return d},at}var st,Ht;function Tt(){if(Ht)return st;Ht=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return st=e,st}var ct,Ft;function yn(){return Ft||(Ft=1,ct=Function.call.bind(Object.prototype.hasOwnProperty)),ct}var lt,zt;function Dr(){if(zt)return lt;zt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tt(),i={},r=yn();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(o,s,l,d,c){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var f;try{if(typeof o[u]!="function"){var p=Error((d||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=o[u](s,u,d,l,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in i)){i[f.message]=!0;var v=c?c():"";e("Failed "+l+" type: "+f.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},lt=a,lt}var dt,Vt;function Ir(){if(Vt)return dt;Vt=1;var e=Cn(),t=Pr(),i=Tt(),r=yn(),a=Dr(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function s(){return null}return dt=function(l,d){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(m){var g=m&&(c&&m[c]||m[u]);if(typeof g=="function")return g}var p="<<anonymous>>",v={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:U(),arrayOf:D,element:j(),elementType:C(),instanceOf:Y,node:W(),objectOf:ae,oneOf:re,oneOfType:Z,shape:ce,exact:me};function y(m,g){return m===g?m!==0||1/m===1/g:m!==m&&g!==g}function T(m,g){this.message=m,this.data=g&&typeof g=="object"?g:{},this.stack=""}T.prototype=Error.prototype;function N(m){if(process.env.NODE_ENV!=="production")var g={},S=0;function A(L,I,M,H,$,F,te){if(H=H||p,F=F||M,te!==i){if(d){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=H+":"+M;!g[le]&&S<3&&(o("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),g[le]=!0,S++)}}return I[M]==null?L?I[M]===null?new T("The "+$+" `"+F+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new T("The "+$+" `"+F+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:m(I,M,H,$,F)}var P=A.bind(null,!1);return P.isRequired=A.bind(null,!0),P}function k(m){function g(S,A,P,L,I,M){var H=S[A],$=G(H);if($!==m){var F=ee(H);return new T("Invalid "+L+" `"+I+"` of type "+("`"+F+"` supplied to `"+P+"`, expected ")+("`"+m+"`."),{expectedType:m})}return null}return N(g)}function U(){return N(s)}function D(m){function g(S,A,P,L,I){if(typeof m!="function")return new T("Property `"+I+"` of component `"+P+"` has invalid PropType notation inside arrayOf.");var M=S[A];if(!Array.isArray(M)){var H=G(M);return new T("Invalid "+L+" `"+I+"` of type "+("`"+H+"` supplied to `"+P+"`, expected an array."))}for(var $=0;$<M.length;$++){var F=m(M,$,P,L,I+"["+$+"]",i);if(F instanceof Error)return F}return null}return N(g)}function j(){function m(g,S,A,P,L){var I=g[S];if(!l(I)){var M=G(I);return new T("Invalid "+P+" `"+L+"` of type "+("`"+M+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return N(m)}function C(){function m(g,S,A,P,L){var I=g[S];if(!e.isValidElementType(I)){var M=G(I);return new T("Invalid "+P+" `"+L+"` of type "+("`"+M+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return N(m)}function Y(m){function g(S,A,P,L,I){if(!(S[A]instanceof m)){var M=m.name||p,H=we(S[A]);return new T("Invalid "+L+" `"+I+"` of type "+("`"+H+"` supplied to `"+P+"`, expected ")+("instance of `"+M+"`."))}return null}return N(g)}function re(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function g(S,A,P,L,I){for(var M=S[A],H=0;H<m.length;H++)if(y(M,m[H]))return null;var $=JSON.stringify(m,function(te,x){var le=ee(x);return le==="symbol"?String(x):x});return new T("Invalid "+L+" `"+I+"` of value `"+String(M)+"` "+("supplied to `"+P+"`, expected one of "+$+"."))}return N(g)}function ae(m){function g(S,A,P,L,I){if(typeof m!="function")return new T("Property `"+I+"` of component `"+P+"` has invalid PropType notation inside objectOf.");var M=S[A],H=G(M);if(H!=="object")return new T("Invalid "+L+" `"+I+"` of type "+("`"+H+"` supplied to `"+P+"`, expected an object."));for(var $ in M)if(r(M,$)){var F=m(M,$,P,L,I+"."+$,i);if(F instanceof Error)return F}return null}return N(g)}function Z(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var g=0;g<m.length;g++){var S=m[g];if(typeof S!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(S)+" at index "+g+"."),s}function A(P,L,I,M,H){for(var $=[],F=0;F<m.length;F++){var te=m[F],x=te(P,L,I,M,H,i);if(x==null)return null;x.data&&r(x.data,"expectedType")&&$.push(x.data.expectedType)}var le=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new T("Invalid "+M+" `"+H+"` supplied to "+("`"+I+"`"+le+"."))}return N(A)}function W(){function m(g,S,A,P,L){return _(g[S])?null:new T("Invalid "+P+" `"+L+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return N(m)}function K(m,g,S,A,P){return new T((m||"React class")+": "+g+" type `"+S+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+P+"`.")}function ce(m){function g(S,A,P,L,I){var M=S[A],H=G(M);if(H!=="object")return new T("Invalid "+L+" `"+I+"` of type `"+H+"` "+("supplied to `"+P+"`, expected `object`."));for(var $ in m){var F=m[$];if(typeof F!="function")return K(P,L,I,$,ee(F));var te=F(M,$,P,L,I+"."+$,i);if(te)return te}return null}return N(g)}function me(m){function g(S,A,P,L,I){var M=S[A],H=G(M);if(H!=="object")return new T("Invalid "+L+" `"+I+"` of type `"+H+"` "+("supplied to `"+P+"`, expected `object`."));var $=t({},S[A],m);for(var F in $){var te=m[F];if(r(m,F)&&typeof te!="function")return K(P,L,I,F,ee(te));if(!te)return new T("Invalid "+L+" `"+I+"` key `"+F+"` supplied to `"+P+"`.\nBad object: "+JSON.stringify(S[A],null," ")+`
28
+ Valid keys: `+JSON.stringify(Object.keys(m),null," "));var x=te(M,F,P,L,I+"."+F,i);if(x)return x}return null}return N(g)}function _(m){switch(typeof m){case"number":case"string":case"undefined":return!0;case"boolean":return!m;case"object":if(Array.isArray(m))return m.every(_);if(m===null||l(m))return!0;var g=f(m);if(g){var S=g.call(m),A;if(g!==m.entries){for(;!(A=S.next()).done;)if(!_(A.value))return!1}else for(;!(A=S.next()).done;){var P=A.value;if(P&&!_(P[1]))return!1}}else return!1;return!0;default:return!1}}function R(m,g){return m==="symbol"?!0:g?g["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&g instanceof Symbol:!1}function G(m){var g=typeof m;return Array.isArray(m)?"array":m instanceof RegExp?"object":R(g,m)?"symbol":g}function ee(m){if(typeof m>"u"||m===null)return""+m;var g=G(m);if(g==="object"){if(m instanceof Date)return"date";if(m instanceof RegExp)return"regexp"}return g}function fe(m){var g=ee(m);switch(g){case"array":case"object":return"an "+g;case"boolean":case"date":case"regexp":return"a "+g;default:return g}}function we(m){return!m.constructor||!m.constructor.name?p:m.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},dt}var ut,$t;function kr(){if($t)return ut;$t=1;var e=Tt();function t(){}function i(){}return i.resetWarningCache=t,ut=function(){function r(s,l,d,c,u,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:t};return o.PropTypes=o,o},ut}var Bt;function Mr(){if(Bt)return Be.exports;if(Bt=1,process.env.NODE_ENV!=="production"){var e=Cn(),t=!0;Be.exports=Ir()(e.isElement,t)}else Be.exports=kr()();return Be.exports}var Rr=Mr();const O=Ar(Rr);function Lr(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Hr(e,t){e.classList?e.classList.add(t):Lr(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ut(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Fr(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ut(e.className,t):e.setAttribute("class",Ut(e.className&&e.className.baseVal||"",t))}const Yt={disabled:!1};var zr=process.env.NODE_ENV!=="production"?O.oneOfType([O.number,O.shape({enter:O.number,exit:O.number,appear:O.number}).isRequired]):null,Vr=process.env.NODE_ENV!=="production"?O.oneOfType([O.string,O.shape({enter:O.string,exit:O.string,active:O.string}),O.shape({enter:O.string,enterDone:O.string,enterActive:O.string,exit:O.string,exitDone:O.string,exitActive:O.string})]):null;const bt=h.createContext(null);var xn=function(t){return t.scrollTop},Re="unmounted",be="exited",oe="entering",de="entered",Fe="exiting",ue=(function(e){xt(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=a,l=s&&!s.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?l?(d=be,o.appearStatus=oe):d=de:r.unmountOnExit||r.mountOnEnter?d=Re:d=be,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===Re?{status:be}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==oe&&s!==de&&(o=oe):(s===oe||s===de)&&(o=Fe)}this.updateStatus(!1,o)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var a=this.props.timeout,o,s,l;return o=s=l=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,l=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:l}},i.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===oe){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this);s&&xn(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===be&&this.setState({status:Re})},i.performEnter=function(a){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:a,d=this.props.nodeRef?[l]:[Me.findDOMNode(this),l],c=d[0],u=d[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!a&&!s||Yt.disabled){this.safeSetState({status:de},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:oe},function(){o.props.onEntering(c,u),o.onTransitionEnd(p,function(){o.safeSetState({status:de},function(){o.props.onEntered(c,u)})})})},i.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Me.findDOMNode(this);if(!o||Yt.disabled){this.safeSetState({status:be},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Fe},function(){a.props.onExiting(l),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:be},function(){a.props.onExited(l)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},i.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,a(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},i.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=d[0],u=d[1];this.props.addEndListener(c,u)}a!=null&&setTimeout(this.nextCallback,a)},i.render=function(){var a=this.state.status;if(a===Re)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=vn(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(bt.Provider,{value:null},typeof s=="function"?s(a,l):h.cloneElement(h.Children.only(s),l))},t})(h.Component);ue.contextType=bt;ue.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:O.shape({current:typeof Element>"u"?O.any:function(e,t,i,r,a,o){var s=e[t];return O.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,i,r,a,o)}}),children:O.oneOfType([O.func.isRequired,O.element.isRequired]).isRequired,in:O.bool,mountOnEnter:O.bool,unmountOnExit:O.bool,appear:O.bool,enter:O.bool,exit:O.bool,timeout:function(t){var i=zr;t.addEndListener||(i=i.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return i.apply(void 0,[t].concat(a))},addEndListener:O.func,onEnter:O.func,onEntering:O.func,onEntered:O.func,onExit:O.func,onExiting:O.func,onExited:O.func}:{};function Ne(){}ue.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ne,onEntering:Ne,onEntered:Ne,onExit:Ne,onExiting:Ne,onExited:Ne};ue.UNMOUNTED=Re;ue.EXITED=be;ue.ENTERING=oe;ue.ENTERED=de;ue.EXITING=Fe;var $r=function(t,i){return t&&i&&i.split(" ").forEach(function(r){return Hr(t,r)})},ft=function(t,i){return t&&i&&i.split(" ").forEach(function(r){return Fr(t,r)})},Et=(function(e){xt(t,e);function t(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,d){var c=r.resolveArguments(l,d),u=c[0],f=c[1];r.removeClasses(u,"exit"),r.addClass(u,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,d)},r.onEntering=function(l,d){var c=r.resolveArguments(l,d),u=c[0],f=c[1],p=f?"appear":"enter";r.addClass(u,p,"active"),r.props.onEntering&&r.props.onEntering(l,d)},r.onEntered=function(l,d){var c=r.resolveArguments(l,d),u=c[0],f=c[1],p=f?"appear":"enter";r.removeClasses(u,p),r.addClass(u,p,"done"),r.props.onEntered&&r.props.onEntered(l,d)},r.onExit=function(l){var d=r.resolveArguments(l),c=d[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var d=r.resolveArguments(l),c=d[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var d=r.resolveArguments(l),c=d[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,d){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,d]},r.getClassNames=function(l){var d=r.props.classNames,c=typeof d=="string",u=c&&d?d+"-":"",f=c?""+u+l:d[l],p=c?f+"-active":d[l+"Active"],v=c?f+"-done":d[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:v}},r}var i=t.prototype;return i.addClass=function(a,o,s){var l=this.getClassNames(o)[s+"ClassName"],d=this.getClassNames("enter"),c=d.doneClassName;o==="appear"&&s==="done"&&c&&(l+=" "+c),s==="active"&&a&&xn(a),l&&(this.appliedClasses[o][s]=l,$r(a,l))},i.removeClasses=function(a,o){var s=this.appliedClasses[o],l=s.base,d=s.active,c=s.done;this.appliedClasses[o]={},l&&ft(a,l),d&&ft(a,d),c&&ft(a,c)},i.render=function(){var a=this.props;a.classNames;var o=vn(a,["classNames"]);return h.createElement(ue,tt({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(h.Component);Et.defaultProps={classNames:""};Et.propTypes=process.env.NODE_ENV!=="production"?tt({},ue.propTypes,{classNames:Vr,onEnter:O.func,onEntering:O.func,onEntered:O.func,onExit:O.func,onExiting:O.func,onExited:O.func}):{};var Ye,We;function Br(e,t){return!(e===t||h.isValidElement(e)&&h.isValidElement(t)&&e.key!=null&&e.key===t.key)}var ye={out:"out-in",in:"in-out"},nt=function(t,i,r){return function(){var a;t.props[i]&&(a=t.props)[i].apply(a,arguments),r()}},Ur=(Ye={},Ye[ye.out]=function(e){var t=e.current,i=e.changeState;return h.cloneElement(t,{in:!1,onExited:nt(t,"onExited",function(){i(oe,null)})})},Ye[ye.in]=function(e){var t=e.current,i=e.changeState,r=e.children;return[t,h.cloneElement(r,{in:!0,onEntered:nt(r,"onEntered",function(){i(oe)})})]},Ye),Yr=(We={},We[ye.out]=function(e){var t=e.children,i=e.changeState;return h.cloneElement(t,{in:!0,onEntered:nt(t,"onEntered",function(){i(de,h.cloneElement(t,{in:!0}))})})},We[ye.in]=function(e){var t=e.current,i=e.children,r=e.changeState;return[h.cloneElement(t,{in:!1,onExited:nt(t,"onExited",function(){r(de,h.cloneElement(i,{in:!0}))})}),h.cloneElement(i,{in:!0})]},We),_t=(function(e){xt(t,e);function t(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.state={status:de,current:null},r.appeared=!1,r.changeState=function(l,d){d===void 0&&(d=r.state.current),r.setState({status:l,current:d})},r}var i=t.prototype;return i.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(a,o){return a.children==null?{current:null}:o.status===oe&&a.mode===ye.in?{status:oe}:o.current&&Br(o.current,a.children)?{status:Fe}:{current:h.cloneElement(a.children,{in:!0})}},i.render=function(){var a=this.props,o=a.children,s=a.mode,l=this.state,d=l.status,c=l.current,u={children:o,current:c,changeState:this.changeState,status:d},f;switch(d){case oe:f=Yr[s](u);break;case Fe:f=Ur[s](u);break;case de:f=c}return h.createElement(bt.Provider,{value:{isMounting:!this.appeared}},f)},t})(h.Component);_t.propTypes=process.env.NODE_ENV!=="production"?{mode:O.oneOf([ye.in,ye.out]),children:O.oneOfType([O.element.isRequired])}:{};_t.defaultProps={mode:ye.out};const Wr="stack-module_stack",Gr="stack-module_slideEnter",qr="stack-module_slideEnterActive",Zr="stack-module_slideExit",Kr="stack-module_slideExitActive",Ce={stack:Wr,slideEnter:Gr,slideEnterActive:qr,slideExit:Zr,slideExitActive:Kr};function Jr({name:e,children:t}){return n.jsx("div",{className:Ce.stack,children:t})}const Tn=h.createContext({setView:()=>{},current:{name:"none"}});function De(){return h.useContext(Tn)}function pe({name:e,currentView:t,onViewChange:i,children:r}){const a={none:{name:"none",ref:h.createRef(),view:null}};h.Children.forEach(r,f=>{if(!h.isValidElement(f))return;const{name:p}=f.props;if(!p)throw new Error("name is required for Stack.View");a[p]={name:p,ref:h.createRef(),view:f}});const[o,s]=h.useState(a[t].ref);h.useEffect(()=>{s(a[t].ref)},[t]);const{view:l}=a[t],[d,c]=h.useState({}),u=h.useMemo(()=>({current:{name:t,args:d},setView:(f,p)=>{c(p),i(f,p)}}),[t,i,d,c]);return n.jsx(Tn.Provider,{value:u,children:n.jsx(_t,{mode:"out-in",children:n.jsx(Et,{classNames:{enter:Ce.slideEnter,enterActive:Ce.slideEnterActive,enterDone:Ce.slideEnterDone,exit:Ce.slideExit,exitActive:Ce.slideExitActive,exitDone:Ce.slideExitDone},mountOnEnter:!0,unmountOnExit:!0,timeout:300,nodeRef:o,addEndListener:f=>{o.current.addEventListener("transitionend",f,!1)},children:n.jsx("div",{className:Ce.stack,ref:o,children:l})},t)})})}pe.View=Jr;const Xr="router-module_container",Qr="router-module_controlsContainer",ei="router-module_filterButton",ti="router-module_filterCounter",ni="router-module_spinner",ri="router-module_stackContainer",Te={container:Xr,controlsContainer:Qr,filterButton:ei,filterCounter:ti,spinner:ni,stackContainer:ri},ii="SearchInput-module_container",oi="SearchInput-module_searchInput",Wt={container:ii,searchInput:oi};function ai({onFocus:e}){const{options:t,setPlace:i,t:r,language:a}=B(),o=t.googleApiKey,s=h.useRef(null),l=gn(o,a);return h.useEffect(()=>{s.current&&l.importLibrary("places").then(d=>{const c=new d.Autocomplete(s.current,{fields:["geometry"]});c.addListener("place_changed",()=>{const u=c.getPlace();i(u)})})},[s]),n.jsx("div",{className:Wt.container,children:n.jsx("input",{onFocus:e,ref:s,className:Wt.searchInput,type:"text",placeholder:r("search.placeholder")})})}const si="filters-module_headerContainer",ci="filters-module_container",li="filters-module_header",di="filters-module_heading",ui="filters-module_actionLinkClearAll",fi="filters-module_optionsGroup",pi="filters-module_rowLabel",hi="filters-module_label",mi="filters-module_dot",gi="filters-module_connectorIcon",b={headerContainer:si,container:ci,header:li,heading:di,actionLinkClearAll:ui,optionsGroup:fi,rowLabel:pi,label:hi,dot:mi,connectorIcon:gi},vi="Checkbox-module_container",Ci="Checkbox-module_box",Gt={container:vi,box:Ci};function Q({id:e,name:t,checked:i,onChange:r,type:a="checkbox"}){const[o,s]=h.useState(i||!1),l=h.useCallback(d=>{s(d.target.checked),r(d.target.checked)},[r]);return h.useEffect(()=>{s(i)},[i]),n.jsxs("div",{className:Gt.container,children:[n.jsx("input",{name:t,id:e,type:a,value:o,checked:o,onChange:l}),n.jsx("span",{className:Gt.box,children:n.jsx("svg",{className:"checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"20 6 9 17 4 12"})})})]})}const yi="Range-module_container",xi="Range-module_input",Ti="Range-module_ticksContainer",bi="Range-module_tick",Ge={container:yi,input:xi,ticksContainer:Ti,tick:bi};function Ei({ticks:e,value:t,onChange:i}){const r=h.useRef(null),a=e.findIndex(s=>s.value===t),o=a/(e.length-1)*100;return n.jsxs("div",{className:Ge.container,children:[n.jsx("input",{value:a,onChange:s=>{i(e[s.target.value].value)},ref:r,className:Ge.input,type:"range",list:"tickmarks",step:"1",min:"0",max:"8",style:{"--roadmap-range-bgize":`${o}%`}}),n.jsx("div",{className:Ge.ticksContainer,children:e.map((s,l)=>n.jsx("div",{onClick:d=>{i(e[l].value)},className:Ge.tick,children:s.label},s.label))})]})}const _i="MultiSelect-module_multiSelect",wi="MultiSelect-module_control",Ni="MultiSelect-module_disabled",Si="MultiSelect-module_valueContainer",Ai="MultiSelect-module_input",Oi="MultiSelect-module_multiValue",ji="MultiSelect-module_multiValueLabel",Pi="MultiSelect-module_multiValueRemove",Di="MultiSelect-module_dropdownIndicator",Ii="MultiSelect-module_menu",ki="MultiSelect-module_menuOpen",Mi="MultiSelect-module_menuList",Ri="MultiSelect-module_groupHeading",Li="MultiSelect-module_groupSeparator",Hi="MultiSelect-module_option",Fi="MultiSelect-module_optionLast",zi="MultiSelect-module_optionSelected",Vi="MultiSelect-module_optionFocused",$i="MultiSelect-module_optionCheck",Bi="MultiSelect-module_optionDisabled",Ui="MultiSelect-module_optionLabel",Yi="MultiSelect-module_noOptions",q={multiSelect:_i,control:wi,disabled:Ni,valueContainer:Si,input:Ai,multiValue:Oi,multiValueLabel:ji,multiValueRemove:Pi,dropdownIndicator:Di,menu:Ii,menuOpen:ki,menuList:Mi,groupHeading:Ri,groupSeparator:Li,option:Hi,optionLast:Fi,optionSelected:zi,optionFocused:Vi,optionCheck:$i,optionDisabled:Bi,optionLabel:Ui,noOptions:Yi},qt=({id:e,name:t,options:i,value:r=[],preferredValues:a=[],placeholder:o="Select...",disabled:s=!1,className:l,onChange:d})=>{const[c,u]=h.useState(!1),[f,p]=h.useState(""),[v,y]=h.useState(-1),T=h.useRef(null),N=h.useRef(null),k=h.useMemo(()=>new Set(a),[a]),{preferred:U,others:D}=h.useMemo(()=>{const _=f.toLowerCase(),R=i.filter(G=>G.label.toLowerCase().includes(_));return{preferred:R.filter(G=>k.has(G.value)),others:R.filter(G=>!k.has(G.value))}},[i,f,k]),j=h.useMemo(()=>[...U,...D],[U,D]),C=h.useMemo(()=>i.filter(_=>r.includes(_.value)),[i,r]);h.useEffect(()=>{v>=j.length&&y(j.length>0?0:-1)},[j,v]);const Y=()=>{s||(u(!0),v<0&&j.length>0&&y(0))},re=()=>{u(!1),p(""),y(-1)},ae=_=>{if(_.disabled)return;const R=r.includes(_.value)?r.filter(G=>G!==_.value):[...r,_.value];d?.(R),p(""),u(!0),T.current?.focus()},Z=_=>{d?.(r.filter(R=>R!==_))},W=_=>{if(!s)switch(_.key){case"Backspace":f===""&&r.length>0&&(_.preventDefault(),d?.(r.slice(0,-1)));return;case"ArrowDown":_.preventDefault(),c?j.length>0&&y(R=>(R+1)%j.length):(u(!0),j.length>0&&y(0));return;case"ArrowUp":_.preventDefault(),c?j.length>0&&y(R=>(R<=0?j.length:R)-1):(u(!0),j.length>0&&y(j.length-1));return;case"Enter":c&&v>=0&&j[v]&&(_.preventDefault(),ae(j[v]));return;case"Escape":c&&(_.preventDefault(),re());return;case"Home":c&&j.length>0&&(_.preventDefault(),y(0));return;case"End":c&&j.length>0&&(_.preventDefault(),y(j.length-1));return;default:return}},K=_=>{const R=_.relatedTarget;R&&N.current?.contains(R)||re()},ce=()=>{s||(c?u(!1):Y(),T.current?.focus())},me=(_,R,G)=>{const ee=r.includes(_.value);return n.jsxs("div",{className:`${q.option} ${v===R?q.optionFocused:""} ${ee?q.optionSelected:""} ${_.disabled?q.optionDisabled:""} ${G?q.optionLast:""}`,role:"option","aria-selected":ee,"aria-disabled":_.disabled||void 0,onMouseDown:fe=>fe.preventDefault(),onMouseMove:()=>{v!==R&&y(R)},onClick:()=>ae(_),children:[n.jsx("span",{className:q.optionLabel,children:_.label}),ee&&n.jsx("svg",{className:q.optionCheck,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"20 6 9 17 4 12"})})]},_.value)};return n.jsxs("div",{ref:N,className:`${q.multiSelect} ${l??""}`,children:[n.jsxs("div",{className:`${q.control} ${s?q.disabled:""}`,children:[n.jsxs("div",{className:q.valueContainer,onMouseDown:_=>{_.target===_.currentTarget&&(_.preventDefault(),T.current?.focus(),Y())},children:[C.map(_=>n.jsxs("div",{className:q.multiValue,children:[n.jsx("span",{className:q.multiValueLabel,children:_.label}),n.jsx("button",{type:"button",className:q.multiValueRemove,onMouseDown:R=>R.preventDefault(),onClick:()=>Z(_.value),disabled:s,"aria-label":`Remove ${_.label}`,children:"×"})]},_.value)),n.jsx("input",{ref:T,id:e,name:t,className:q.input,value:f,onChange:_=>{p(_.target.value),u(!0),y(0)},onKeyDown:W,onFocus:Y,onBlur:K,placeholder:C.length===0?o:"",disabled:s,autoComplete:"off",role:"combobox","aria-expanded":c,"aria-autocomplete":"list"})]}),n.jsx("button",{type:"button",className:q.dropdownIndicator,onMouseDown:_=>_.preventDefault(),onClick:ce,disabled:s,"aria-label":"Toggle menu",tabIndex:-1,children:n.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"6,9 12,15 18,9"})})})]}),c&&n.jsx("div",{className:`${q.menu} ${q.menuOpen}`,role:"listbox",children:n.jsxs("div",{className:q.menuList,children:[U.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:q.groupHeading,children:"Preferred"}),U.map((_,R)=>me(_,R,R===U.length-1&&D.length===0))]}),D.length>0&&n.jsxs(n.Fragment,{children:[U.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:q.groupSeparator}),n.jsx("div",{className:q.groupHeading,children:"All"})]}),D.map((_,R)=>me(_,U.length+R,R===D.length-1))]}),U.length===0&&D.length===0&&n.jsx("div",{className:q.noOptions,children:"No options found"})]})})]})},Wi="SelectField-module_selectField",Gi="SelectField-module_select",Zt={selectField:Wi,select:Gi},Kt=({id:e,name:t,value:i,options:r=[],placeholder:a="Select an option",disabled:o=!1,className:s="",onChange:l,onBlur:d,onFocus:c})=>{const u=f=>{const p=f.target.value,v=r.find(y=>y.value.toString()===p);v&&l&&l(v.value)};return n.jsx("div",{className:`${Zt.selectField} ${s}`,children:n.jsxs("select",{id:e,name:t,value:i||"",disabled:o,onChange:u,onBlur:d,onFocus:c,className:Zt.select,children:[a&&n.jsx("option",{value:"",disabled:!0,children:a}),r.map((f,p)=>n.jsx("option",{value:f.value,disabled:f.disabled,children:f.label},`${p}`))]})})},Jt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M353.286,163.919c16.464,0,29.815,13.351,29.815,29.822%20c0,16.467-13.351,29.819-29.815,29.819c-16.47,0-29.822-13.352-29.822-29.819C323.464,177.27,336.816,163.919,353.286,163.919%20L353.286,163.919z%20M245.838,163.919c16.47,0,29.822,13.351,29.822,29.822c0,16.467-13.352,29.819-29.822,29.819%20c-16.471,0-29.822-13.352-29.822-29.819C216.016,177.27,229.367,163.919,245.838,163.919L245.838,163.919z%20M354.093,338.178%20c22.575,0,40.874,18.299,40.874,40.87c0,22.571-18.299,40.87-40.874,40.87c-22.568,0-40.867-18.299-40.867-40.87%20C313.226,356.477,331.525,338.178,354.093,338.178L354.093,338.178z%20M245.024,338.178c22.575,0,40.874,18.299,40.874,40.87%20c0,22.571-18.299,40.87-40.874,40.87c-22.568,0-40.874-18.299-40.874-40.87C204.151,356.477,222.457,338.178,245.024,338.178%20L245.024,338.178z%20M406.906,244.769c22.575,0,40.874,18.299,40.874,40.87s-18.299,40.87-40.874,40.87%20c-22.568,0-40.867-18.299-40.867-40.87S384.338,244.769,406.906,244.769L406.906,244.769z%20M192.211,244.769%20c22.568,0,40.874,18.299,40.874,40.87s-18.306,40.87-40.874,40.87c-22.575,0-40.874-18.299-40.874-40.87%20S169.636,244.769,192.211,244.769L192.211,244.769z%20M299.559,244.769c22.575,0,40.874,18.299,40.874,40.87%20s-18.299,40.87-40.874,40.87c-22.569,0-40.868-18.299-40.868-40.87S276.99,244.769,299.559,244.769L299.559,244.769z%20M452.99,131.334H146.127c-32.625,37.291-50.332,84.551-50.332,134.107c0,112.541,91.226,203.765,203.764,203.765%20c112.544,0,203.764-91.223,203.764-203.765C503.323,215.889,485.608,168.622,452.99,131.334L452.99,131.334z%20M471.276,105.109%20l-4.672-4.998h-334.09l-4.672,4.998c-40.739,43.6-63.267,100.662-63.267,160.332c0,129.775,105.21,234.988,234.984,234.988%20c129.774,0,234.984-105.213,234.984-234.988C534.542,205.771,512.015,148.709,471.276,105.109L471.276,105.109z%20M480.204,60.027%20H118.914C61.952,110.158,26,183.596,26,265.441C26,416.523,148.48,539,299.559,539c151.085,0,273.558-122.477,273.558-273.559%20C573.117,183.596,537.165,110.158,480.204,60.027z'/%3e%3c/svg%3e",Xt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M228.887,396.793c20.779,0,37.62,16.841,37.62,37.617%20c0,20.773-16.841,37.617-37.62,37.617c-20.773,0-37.613-16.844-37.613-37.617C191.274,413.634,208.115,396.793,228.887,396.793%20L228.887,396.793z%20M366.03,396.793c20.773,0,37.614,16.841,37.614,37.617c0,20.773-16.841,37.617-37.614,37.617%20c-20.779,0-37.62-16.844-37.62-37.617C328.41,413.634,345.251,396.793,366.03,396.793L366.03,396.793z%20M228.375,325.684%20c-29.03,0-55.41,11.868-74.52,30.976c-41.566,41.573-41.566,113.923,0,155.497c19.111,19.111,45.49,30.979,74.52,30.979h138.168%20c29.023,0,55.41-11.868,74.521-30.979c41.565-41.566,41.565-113.928,0-155.497c-18.336-18.336-43.379-30.003-71.019-30.916%20c63.723-27.868,105.151-90.836,105.151-160.733c0-42.14-13.276-74.632-37.316-108.359H161.794%20c-24.033,33.747-37.309,66.2-37.309,108.359c0,69.852,41.359,132.758,105.012,160.674H228.375L228.375,325.684z%20M366.543,357.791%20H228.375c-20.163,0-38.513,8.265-51.824,21.569c-29.023,29.027-29.023,81.069,0,110.096c13.311,13.308,31.654,21.569,51.824,21.569%20h138.168c20.17,0,38.513-8.261,51.824-21.569c29.023-29.027,29.023-81.069,0-110.096%20C405.056,366.057,386.706,357.791,366.543,357.791L366.543,357.791z%20M421.17,88.762c14.523,23.018,21.915,49.024,21.915,76.248%20c0,79.121-64.131,143.245-143.248,143.245S156.595,244.127,156.595,165.01c0-27.234,7.392-53.222,21.915-76.248H421.17%20L421.17,88.762z%20M331.075,225.95c11.726,0,21.236,9.511,21.236,21.236c0,11.733-9.511,21.24-21.236,21.24%20c-11.733,0-21.236-9.507-21.236-21.24C309.839,235.461,319.342,225.95,331.075,225.95L331.075,225.95z%20M268.605,225.95%20c11.726,0,21.243,9.511,21.243,21.236c0,11.733-9.518,21.24-21.243,21.24c-11.726,0-21.236-9.507-21.236-21.24%20C247.369,235.461,256.879,225.95,268.605,225.95L268.605,225.95z%20M236.882,163.754c11.726,0,21.243,9.508,21.243,21.236%20c0,11.729-9.518,21.24-21.243,21.24c-11.726,0-21.236-9.511-21.236-21.24C215.646,173.261,225.156,163.754,236.882,163.754%20L236.882,163.754z%20M299.837,163.754c11.732,0,21.243,9.508,21.243,21.236c0,11.729-9.511,21.24-21.243,21.24%20c-11.726,0-21.236-9.511-21.236-21.24C278.6,173.261,288.111,163.754,299.837,163.754L299.837,163.754z%20M362.798,163.754%20c11.726,0,21.236,9.508,21.236,21.236c0,11.729-9.511,21.24-21.236,21.24c-11.733,0-21.236-9.511-21.236-21.24%20C341.562,173.261,351.065,163.754,362.798,163.754L362.798,163.754z%20M332.079,116.228c6.86,0,12.417,5.561,12.417,12.417%20c0,6.86-5.558,12.425-12.417,12.425s-12.424-5.566-12.424-12.425C319.654,121.79,325.219,116.228,332.079,116.228L332.079,116.228z%20M267.601,116.228c6.86,0,12.425,5.561,12.425,12.417c0,6.86-5.565,12.425-12.425,12.425c-6.86,0-12.417-5.566-12.417-12.425%20C255.184,121.79,260.742,116.228,267.601,116.228L267.601,116.228z%20M177.153,7.87C129.219,7.87,90,47.086,90,95.02v408.83%20c0,47.934,39.219,87.15,87.153,87.15h246.024c47.934,0,87.147-39.216,87.147-87.15V95.02c0-47.934-39.213-87.15-87.147-87.15%20H177.153z'/%3e%3c/svg%3e",Qt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M407.111,334.214c16.317,0,29.543,13.226,29.543,29.543%20c0,16.313-13.227,29.543-29.543,29.543c-16.31,0-29.536-13.229-29.536-29.543C377.576,347.44,390.802,334.214,407.111,334.214%20L407.111,334.214z%20M198.69,334.214c16.317,0,29.543,13.226,29.543,29.543c0,16.313-13.226,29.543-29.543,29.543%20s-29.543-13.229-29.543-29.543C169.147,347.44,182.373,334.214,198.69,334.214L198.69,334.214z%20M227.94,180.772%20c24.971,0,45.213,20.242,45.213,45.213c0,24.967-20.243,45.213-45.213,45.213s-45.213-20.245-45.213-45.213%20C182.727,201.014,202.969,180.772,227.94,180.772L227.94,180.772z%20M377.868,180.772c24.968,0,45.213,20.242,45.213,45.213%20c0,24.967-20.245,45.213-45.213,45.213c-24.974,0-45.213-20.245-45.213-45.213C332.655,201.014,352.894,180.772,377.868,180.772%20L377.868,180.772z%20M302.899,361.142c24.974,0,45.22,20.243,45.22,45.213s-20.245,45.213-45.22,45.213%20c-24.968,0-45.21-20.243-45.21-45.213S277.931,361.142,302.899,361.142L302.899,361.142z%20M302.899,100.142%20c-111.485,0-201.855,90.37-201.855,201.858c0,111.489,90.37,201.859,201.855,201.859c111.491,0,201.865-90.37,201.865-201.859%20C504.764,190.512,414.391,100.142,302.899,100.142L302.899,100.142z%20M302.899,69.21C174.338,69.21,70.113,173.44,70.113,302%20c0,128.561,104.226,232.79,232.787,232.79c128.56,0,232.793-104.229,232.793-232.79C535.692,173.44,431.459,69.21,302.899,69.21%20L302.899,69.21z%20M302.899,31C153.234,31,31.902,152.328,31.902,302c0,149.669,121.331,271,270.997,271%20c149.672,0,271.006-121.331,271.006-271C573.906,152.328,452.571,31,302.899,31z'/%3e%3c/svg%3e",en="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M246.063,132.777c18.959,0,34.335,15.373,34.335,34.332%20c0,18.965-15.376,34.335-34.335,34.335c-18.961,0-34.332-15.37-34.332-34.335C211.731,148.15,227.102,132.777,246.063,132.777%20L246.063,132.777z%20M357.555,132.777c18.962,0,34.332,15.373,34.332,34.332c0,18.962-15.37,34.335-34.332,34.335%20c-18.961,0-34.331-15.373-34.331-34.335C323.224,148.15,338.594,132.777,357.555,132.777L357.555,132.777z%20M226.875,253.708%20c9.286,0,16.811,7.525,16.811,16.808c0,9.286-7.525,16.811-16.811,16.811c-9.283,0-16.808-7.525-16.808-16.811%20C210.066,261.234,217.592,253.708,226.875,253.708L226.875,253.708z%20M371.359,253.708c9.286,0,16.815,7.525,16.815,16.808%20c0,9.286-7.529,16.811-16.815,16.811c-9.279,0-16.808-7.525-16.808-16.811C354.552,261.234,362.08,253.708,371.359,253.708%20L371.359,253.708z%20M236.304,421.639c19.179,0,34.731,15.548,34.731,34.731c0,19.179-15.552,34.731-34.731,34.731%20c-19.179,0-34.731-15.552-34.731-34.731C201.573,437.187,217.126,421.639,236.304,421.639L236.304,421.639z%20M362.924,421.639%20c19.179,0,34.728,15.548,34.728,34.731c0,19.179-15.549,34.731-34.728,34.731c-19.186,0-34.735-15.552-34.735-34.731%20C328.189,437.187,343.738,421.639,362.924,421.639L362.924,421.639z%20M235.828,355.985c-26.801,0-51.159,10.958-68.804,28.6%20c-38.377,38.383-38.377,105.184,0,143.567c17.645,17.645,42.004,28.602,68.804,28.602h127.568c26.803,0,51.159-10.957,68.804-28.602%20c38.377-38.377,38.377-105.19,0-143.567c-16.91-16.91-39.994-27.679-65.481-28.542c57.148-25.011,97.033-82.036,97.033-148.405%20c0-88.133-70.984-161.938-161.945-161.938c-90.131,0-161.935,73.009-161.935,161.938c0,66.315,39.821,123.302,96.895,148.348%20H235.828L235.828,355.985z%20M159.969,344.666c-6.378,4.464-12.357,9.488-17.866,14.999c-52.137,52.134-52.137,141.271-0.003,193.407%20C167.008,577.982,200.589,592,235.828,592h127.568c35.24,0,68.823-14.018,93.729-38.927c52.137-52.134,52.137-141.276,0-193.41%20c-4.761-4.761-9.874-9.155-15.287-13.143c36.523-36.834,57.159-86.685,57.159-138.883c0-108.993-88.188-197.184-197.19-197.184%20c-108.977,0-197.181,88.207-197.181,197.184C104.627,258.933,124.557,307.996,159.969,344.666L159.969,344.666z%20M363.396,385.629%20H235.828c-18.617,0-35.559,7.631-47.846,19.914c-26.797,26.8-26.797,74.85,0,101.65c12.287,12.286,29.225,19.914,47.846,19.914%20h127.568c18.623,0,35.559-7.628,47.849-19.914c26.797-26.8,26.797-74.85,0-101.65C398.955,393.259,382.013,385.629,363.396,385.629%20L363.396,385.629z%20M301.808,75.381c-73.808,0-132.256,59.869-132.256,132.256c0,72.383,58.448,132.256,132.256,132.256%20c73.815,0,132.265-59.87,132.265-132.256C434.073,135.248,375.622,75.381,301.808,75.381L301.808,75.381z%20M301.808,271.807%20c13.689,0,24.784,11.098,24.784,24.781c0,13.686-11.094,24.78-24.784,24.78c-13.686,0-24.777-11.094-24.777-24.78%20C277.03,282.905,288.122,271.807,301.808,271.807z'/%3e%3c/svg%3e",qe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M460.592,75.695C501.794,116.897,525,172.38,525,230.692v136.191%20c0,58.315-23.206,113.795-64.408,154.997c-86.029,86.032-228.158,86.032-314.186,0C105.203,480.679,82,425.199,82,366.884V230.692%20c0-58.312,23.203-113.795,64.405-154.997C232.433-10.337,374.563-10.337,460.592,75.695L460.592,75.695z%20M434.493,101.794%20c-71.625-71.628-190.365-71.628-261.989,0c-33.068,33.068-53.597,78.696-53.597,128.898v136.191%20c0,50.205,20.529,95.834,53.597,128.898c71.624,71.628,190.364,71.628,261.989,0c33.067-33.064,53.596-78.693,53.596-128.898%20V230.692C488.089,180.49,467.56,134.862,434.493,101.794L434.493,101.794z%20M195.699,124.99%20c-27.134,27.137-43.982,64.557-43.982,105.702v136.191c0,41.146,16.848,78.568,43.982,105.702%20c58.806,58.814,156.791,58.814,215.598,0c27.138-27.134,43.982-64.557,43.982-105.702V230.692%20c0-41.146-16.845-78.566-43.982-105.702C352.491,66.18,254.506,66.18,195.699,124.99L195.699,124.99z%20M303.497,401.594%20c-17.304,0-31.334,14.029-31.334,31.337c0,17.304,14.03,31.333,31.334,31.333c17.307,0,31.337-14.029,31.337-31.333%20C334.834,415.623,320.804,401.594,303.497,401.594L303.497,401.594z%20M223.204,305.993c-17.308,0-31.338,14.03-31.338,31.334%20c0,17.308,14.03,31.337,31.338,31.337c17.307,0,31.337-14.029,31.337-31.337C254.541,320.023,240.511,305.993,223.204,305.993%20L223.204,305.993z%20M223.204,208.881c-17.308,0-31.338,14.026-31.338,31.334c0,17.307,14.03,31.337,31.338,31.337%20c17.307,0,31.337-14.03,31.337-31.337C254.541,222.907,240.511,208.881,223.204,208.881L223.204,208.881z%20M383.796,305.993%20c-17.308,0-31.338,14.03-31.338,31.334c0,17.308,14.03,31.337,31.338,31.337c17.307,0,31.333-14.029,31.333-31.337%20C415.129,320.023,401.103,305.993,383.796,305.993L383.796,305.993z%20M383.796,208.881c-17.308,0-31.338,14.026-31.338,31.334%20c0,17.307,14.03,31.337,31.338,31.337c17.307,0,31.333-14.03,31.333-31.337C415.129,222.907,401.103,208.881,383.796,208.881%20L383.796,208.881z%20M354.769,129.256c-12.585,0-22.786,10.201-22.786,22.786s10.2,22.786,22.786,22.786%20c12.585,0,22.786-10.201,22.786-22.786S367.354,129.256,354.769,129.256L354.769,129.256z%20M252.228,129.256%20c-12.585,0-22.786,10.201-22.786,22.786s10.2,22.786,22.786,22.786c12.585,0,22.786-10.201,22.786-22.786%20S264.813,129.256,252.228,129.256z'/%3e%3c/svg%3e",tn="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17%2012.8108C17%2013.1901%2016.898%2013.5661%2016.6687%2013.8682C15.2357%2015.7558%2012.784%2017%2010%2017C7.21614%2017%204.76431%2015.7557%203.33134%2013.8681C3.10199%2013.566%203%2013.1901%203%2012.8108V7.18924C3%206.80993%203.10199%206.43401%203.33134%206.13189C4.76431%204.24428%207.21614%203%2010%203C12.784%203%2015.2357%204.24423%2016.6687%206.13183C16.898%206.43395%2017%206.80986%2017%207.18918V12.8108ZM10%207C10.5522%207%2011%206.55231%2011%206C11%205.44769%2010.5522%205%2010%205C9.44775%205%209%205.44769%209%206C9%206.55231%209.44775%207%2010%207ZM6.5%2011.5C7.32837%2011.5%208%2010.8284%208%2010C8%209.17157%207.32837%208.5%206.5%208.5C5.67163%208.5%205%209.17157%205%2010C5%2010.8284%205.67163%2011.5%206.5%2011.5ZM11.5%2013.5C11.5%2014.3284%2010.8284%2015%2010%2015C9.17163%2015%208.5%2014.3284%208.5%2013.5C8.5%2012.6716%209.17163%2012%2010%2012C10.8284%2012%2011.5%2012.6716%2011.5%2013.5ZM13.5%2011.5C14.3284%2011.5%2015%2010.8284%2015%2010C15%209.17157%2014.3284%208.5%2013.5%208.5C12.6716%208.5%2012%209.17157%2012%2010C12%2010.8284%2012.6716%2011.5%2013.5%2011.5Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%201C13.8106%201%2017.1182%202.95715%2018.7732%205.82595C18.9298%206.09752%2019%206.40872%2019%206.72224V13.2778C19%2013.5913%2018.9298%2013.9025%2018.7732%2014.1741C17.1182%2017.0429%2013.8106%2019%2010%2019C6.18943%2019%202.88177%2017.0429%201.22682%2014.1741C1.07016%2013.9025%201%2013.5913%201%2013.2778V6.72224C1%206.40872%201.07016%206.09752%201.22682%205.82595C2.88177%202.95715%206.18943%201%2010%201ZM17.6711%205.64554C17.8973%205.95002%2018%206.32536%2018%206.70467V13.2953C18%2013.6746%2017.8973%2014.05%2017.6711%2014.3545C16.0408%2016.5488%2013.214%2018%2010%2018C6.78594%2018%203.95915%2016.5488%202.32887%2014.3544C2.10268%2014.0499%202%2013.6746%202%2013.2953V6.70472C2%206.32542%202.10268%205.95008%202.32887%205.64561C3.95915%203.45116%206.78594%202%2010%202C13.214%202%2016.0408%203.45116%2017.6711%205.64554Z'%20fill='currentColor'/%3e%3c/svg%3e",w="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M395.264,259.724c21.074,0,38.157,17.083,38.157,38.158%20c0,21.074-17.083,38.164-38.157,38.164c-21.075,0-38.165-17.09-38.165-38.164C357.099,276.806,374.189,259.724,395.264,259.724%20L395.264,259.724z%20M206.743,259.724c21.075,0,38.158,17.083,38.158,38.158c0,21.074-17.083,38.164-38.158,38.164%20c-21.074,0-38.164-17.09-38.164-38.164C168.579,276.806,185.669,259.724,206.743,259.724L206.743,259.724z%20M317.092,89.755v29.841%20h-32.183V89.755c-67.083,5.031-127.459,41.741-163.107,98.796v223.399c35.648,57.055,96.024,93.765,163.107,98.802v-29.841h32.183%20v29.841c67.084-5.038,127.459-41.747,163.114-98.802V188.551C444.551,131.496,384.176,94.787,317.092,89.755L317.092,89.755z%20M301,56.962c-85.858,0-165.124,45.192-209.061,118.921l-2.328,3.902v90.784H58.612v59.364h30.999v90.784l2.328,3.902%20C135.876,498.348,215.143,543.539,301,543.539c85.857,0,165.123-45.184,209.06-118.921l2.328-3.902v-90.784h31.006v-59.364h-31.006%20v-90.784l-2.328-3.902C466.124,102.147,386.857,56.962,301,56.962L301,56.962z%20M301,18.251c-155.741,0-282,126.253-282,282%20c0,155.741,126.26,282,282,282c155.747,0,282-126.26,282-282C583,144.504,456.747,18.251,301,18.251z'/%3e%3c/svg%3e",ie="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M261.067,178.239c0,7.551,2.198,14.579,5.985,20.491l20.49-20.491%20l-20.49-20.491C263.265,163.659,261.067,170.694,261.067,178.239L261.067,178.239z%20M298.999,216.171%20c-7.545,0-14.58-2.198-20.488-5.981l20.488-20.491l20.491,20.491C313.581,213.972,306.55,216.171,298.999,216.171L298.999,216.171z%20M336.934,178.239c0-7.545-2.198-14.58-5.985-20.491l-20.491,20.491l20.491,20.491C334.736,192.818,336.934,185.79,336.934,178.239%20L336.934,178.239z%20M319.49,146.295l-20.491,20.484l-20.488-20.484c5.907-3.79,12.943-5.988,20.488-5.988%20C306.55,140.307,313.581,142.505,319.49,146.295L319.49,146.295z%20M298.999,124.101c29.864,0,54.141,24.281,54.141,54.138%20c0,29.864-24.277,54.145-54.141,54.145c-29.858,0-54.138-24.281-54.138-54.145C244.861,148.382,269.141,124.101,298.999,124.101%20L298.999,124.101z%20M261.067,417.863c0,7.551,2.198,14.579,5.985,20.491l20.49-20.491l-20.49-20.491%20C263.265,403.283,261.067,410.319,261.067,417.863L261.067,417.863z%20M298.999,455.795c-7.545,0-14.58-2.198-20.488-5.981%20l20.488-20.491l20.491,20.491C313.581,453.597,306.55,455.795,298.999,455.795L298.999,455.795z%20M336.934,417.863%20c0-7.545-2.198-14.58-5.985-20.491l-20.491,20.491l20.491,20.491C334.736,432.443,336.934,425.415,336.934,417.863L336.934,417.863z%20M319.49,385.92l-20.491,20.484l-20.488-20.484c5.907-3.79,12.943-5.988,20.488-5.988C306.55,379.931,313.581,382.13,319.49,385.92%20L319.49,385.92z%20M298.999,363.725c29.864,0,54.141,24.281,54.141,54.138c0,29.864-24.277,54.145-54.141,54.145%20c-29.858,0-54.138-24.281-54.138-54.145C244.861,388.007,269.141,363.725,298.999,363.725L298.999,363.725z%20M180.188,239.928%20c30.094,0,54.49,24.4,54.49,54.494c0,30.095-24.396,54.494-54.49,54.494c-30.095,0-54.494-24.399-54.494-54.494%20C125.694,264.327,150.093,239.928,180.188,239.928L180.188,239.928z%20M417.816,239.928c30.094,0,54.494,24.4,54.494,54.494%20c0,30.095-24.4,54.494-54.494,54.494c-30.095,0-54.494-24.399-54.494-54.494C363.323,264.327,387.722,239.928,417.816,239.928%20L417.816,239.928z%20M298.999,86.511c116.835,0,211.544,94.708,211.544,211.54c0,116.84-94.708,211.54-211.544,211.54%20c-116.836,0-211.54-94.708-211.54-211.54C87.458,181.219,182.163,86.511,298.999,86.511L298.999,86.511z%20M298.999,54.1%20c134.73,0,243.955,109.225,243.955,243.951c0,134.727-109.225,243.952-243.955,243.952c-134.727,0-243.952-109.225-243.952-243.952%20C55.047,163.324,164.271,54.1,298.999,54.1L298.999,54.1z%20M298.999,14.053C455.846,14.053,583,141.2,583,298.051%20c0,156.844-127.154,283.999-284.001,283.999C142.151,582.049,15,454.895,15,298.051C15,141.2,142.151,14.053,298.999,14.053z'/%3e%3c/svg%3e",Se="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2022.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20enable-background='new%200%200%20600%20600'%20xml:space='preserve'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='currentColor'%20d='M449.833,45.125C531.521,95.36,586,185.558,586,288.497%20c0,157.672-127.825,285.497-285.503,285.497C142.822,573.994,15,446.169,15,288.497C15,185.558,69.476,95.36,151.167,45.125H449.833%20L449.833,45.125z%20M193.639,256.195c-29.46,0-53.343,23.89-53.343,53.35c0,29.46,23.882,53.343,53.343,53.343%20c29.46,0,53.346-23.882,53.346-53.343C246.985,280.085,223.099,256.195,193.639,256.195L193.639,256.195z%20M407.365,256.195%20c-29.46,0-53.35,23.89-53.35,53.35c0,29.46,23.89,53.343,53.35,53.343c29.46,0,53.343-23.882,53.343-53.343%20C460.708,280.085,436.826,256.195,407.365,256.195L407.365,256.195z%20M442.248,88.407l-4.308-3.053H163.052l-4.304,3.053%20c-64.954,46.088-103.49,120.43-103.49,200.09c0,135.438,109.801,245.239,245.239,245.239c135.437,0,245.245-109.801,245.245-245.239%20C545.742,208.837,507.203,134.495,442.248,88.407L442.248,88.407z%20M427.607,117.937H173.391%20c-54.002,40.321-85.547,103.142-85.547,170.56c0,117.449,95.204,212.656,212.653,212.656c117.455,0,212.663-95.207,212.663-212.656%20C513.16,221.08,481.609,158.258,427.607,117.937L427.607,117.937z%20M300.497,215.65c-11.384,0-20.614,9.226-20.614,20.613%20c0,11.387,9.23,20.614,20.614,20.614c11.387,0,20.62-9.226,20.62-20.614C321.117,224.876,311.883,215.65,300.497,215.65%20L300.497,215.65z%20M300.497,146.275c-11.384,0-20.614,9.226-20.614,20.614c0,11.387,9.23,20.62,20.614,20.62%20c11.387,0,20.62-9.233,20.62-20.62C321.117,155.501,311.883,146.275,300.497,146.275L300.497,146.275z%20M381.735,146.275%20c-11.387,0-20.613,9.226-20.613,20.614c0,11.387,9.226,20.62,20.613,20.62c11.387,0,20.613-9.233,20.613-20.62%20C402.348,155.501,393.122,146.275,381.735,146.275L381.735,146.275z%20M219.265,146.275c-11.387,0-20.616,9.226-20.616,20.614%20c0,11.387,9.23,20.62,20.616,20.62c11.387,0,20.617-9.233,20.617-20.62C239.882,155.501,230.652,146.275,219.265,146.275%20L219.265,146.275z%20M300.497,400.094c-18.881,0-34.186,15.309-34.186,34.189c0,18.887,15.305,34.189,34.186,34.189%20c18.887,0,34.189-15.302,34.189-34.189C334.686,415.403,319.384,400.094,300.497,400.094L300.497,400.094z%20M381.735,417.199%20c-11.387,0-20.613,9.233-20.613,20.62c0,11.38,9.226,20.614,20.613,20.614c11.387,0,20.613-9.233,20.613-20.614%20C402.348,426.433,393.122,417.199,381.735,417.199L381.735,417.199z%20M219.265,417.199c-11.387,0-20.616,9.233-20.616,20.62%20c0,11.38,9.23,20.614,20.616,20.614c11.387,0,20.617-9.233,20.617-20.614C239.882,426.433,230.652,417.199,219.265,417.199z'/%3e%3c/svg%3e",Ee={IEC_62196_T1:Qt,IEC_62196_T1_COMBO:en,IEC_62196_T2:Jt,IEC_62196_T2_COMBO:Xt,IEC_62196_T3:qe,IEC_62196_T3A:tn,IEC_62196_T3B:qe,IEC_62196_T3C:qe,CHADEMO:ie,CHAOJI:ie,CATARC:Se,GBT_AC:Se,GBT_DC:Se,SCHUKO:w,DOMESTIC_A:w,DOMESTIC_B:w,DOMESTIC_C:w,DOMESTIC_D:w,DOMESTIC_E:w,DOMESTIC_F:w,DOMESTIC_G:w,DOMESTIC_H:w,DOMESTIC_I:w,DOMESTIC_J:w,DOMESTIC_K:w,DOMESTIC_L:w,DOMESTIC_M:w,DOMESTIC_N:w,DOMESTIC_O:w,IEC_60309_2_SINGLE_16:w,IEC_60309_2_THREE_16:w,IEC_60309_2_THREE_32:w,IEC_60309_2_THREE_64:w,NEMA_5_20:w,NEMA_6_30:w,NEMA_6_50:w,NEMA_10_30:w,NEMA_10_50:w,NEMA_14_30:w,NEMA_14_50:w,PANTOGRAPH_BOTTOM_UP:ie,PANTOGRAPH_TOP_DOWN:ie,TESLA_R:ie,TESLA_S:ie,CONNECTOR_STANDARD_TYPE_CHADEMO:ie,CONNECTOR_STANDARD_TYPE_CHAOJI:ie,CONNECTOR_STANDARD_TYPE_CATARC:Se,CONNECTOR_STANDARD_TYPE_SCHUKO:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_A:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_B:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_C:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_D:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_E:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_F:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_G:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_H:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_I:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_J:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_K:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_L:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_M:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_N:w,CONNECTOR_STANDARD_TYPE_DOMESTIC_O:w,CONNECTOR_STANDARD_TYPE_GBT_AC:Se,CONNECTOR_STANDARD_TYPE_GBT_DC:Se,CONNECTOR_STANDARD_TYPE_IEC_60309_2_SINGLE_16:w,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_16:w,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_32:w,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_64:w,CONNECTOR_STANDARD_TYPE_IEC_62196_T1:Qt,CONNECTOR_STANDARD_TYPE_IEC_62196_T1_COMBO:en,CONNECTOR_STANDARD_TYPE_IEC_62196_T2:Jt,CONNECTOR_STANDARD_TYPE_IEC_62196_T2_COMBO:Xt,CONNECTOR_STANDARD_TYPE_IEC_62196_T3A:tn,CONNECTOR_STANDARD_TYPE_IEC_62196_T3C:qe,CONNECTOR_STANDARD_TYPE_NEMA_5_20:w,CONNECTOR_STANDARD_TYPE_NEMA_6_30:w,CONNECTOR_STANDARD_TYPE_NEMA_6_50:w,CONNECTOR_STANDARD_TYPE_NEMA_10_30:w,CONNECTOR_STANDARD_TYPE_NEMA_10_50:w,CONNECTOR_STANDARD_TYPE_NEMA_14_30:w,CONNECTOR_STANDARD_TYPE_NEMA_14_50:w,CONNECTOR_STANDARD_TYPE_PANTOGRAPH_BOTTOM_UP:ie,CONNECTOR_STANDARD_TYPE_PANTOGRAPH_TOP_DOWN:ie,CONNECTOR_STANDARD_TYPE_TESLA_R:ie,CONNECTOR_STANDARD_TYPE_TESLA_S:ie},Le={minPower:7,operator:[],status:[],publishingMode:"",connectorTypes:[],chargingAccessibility:"ALL",noAdditionalCharges:!1,powerType:void 0,operatorOnly:"",remoteStartStop:!1,searchPhrase:"",excludeOperator:[],authMethodCapabilities:[]};function qi(e){return!!(e.minPower&&e.minPower!==Le.minPower||e?.status?.length||e?.connectorTypes?.length||e?.chargingAccessibility&&e?.chargingAccessibility!==Le.chargingAccessibility||e?.operator?.length||e?.powerType||e?.partyId||e?.noAdditionalCharges||e?.operatorOnly||e?.remoteStartStop||e?.searchPhrase||e?.excludeOperator?.length||e?.authMethodCapabilities?.length)}const Zi=[{value:"AUTH_METHOD_CAPABILITY_PLUG_AND_CHARGE",labelKey:"filters.authCapability.plugAndCharge"},{value:"AUTH_METHOD_CAPABILITY_CREDIT_CARD_PAYABLE",labelKey:"filters.authCapability.creditCard"}],Ki=[{label:3,value:3},{label:7,value:7},{label:11,value:11},{label:22,value:22},{label:43,value:43},{label:50,value:50},{label:100,value:100},{label:150,value:150},{label:200,value:200},{label:"250+",value:250}],Ze=(e,t,i)=>{switch(e){case"remove":return t.filter(r=>!i.includes(r));case"add":return Array.from(new Set([...t,...i]))}};function Ji(e){return h.useReducer((t,i)=>({...t,...i}),e)}function Xi(){const{setFilters:e,t,filters:i,filterConfiguration:r,options:a}=B(),[o,s]=Ji(Le),{setView:l}=De(),d=a.version==="v2"&&r?.operators?.length>1;return h.useEffect(()=>{s(i)},[]),h.useEffect(()=>{e(o)},[o]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:b.headerContainer,children:n.jsx("div",{className:b.header,children:t("filters.header")})}),n.jsxs("div",{className:b.container,children:[n.jsx("button",{onClick:()=>{s(Le),e(Le)},className:b.actionLinkClearAll,children:t("filters.clearAll")}),a.version==="v2"&&r?.showSearchPhraseFilter&&n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.searchPhrase")}),n.jsx("input",{type:"text",value:o.searchPhrase||"",placeholder:t("filters.searchPhrasePlaceholder"),onChange:c=>s({searchPhrase:c.target.value}),style:{width:"100%",boxSizing:"border-box",padding:"8px 10px",fontFamily:"var(--roadmap-font-family, Inter), system-ui",fontSize:14,lineHeight:"20px",color:"var(--roadmap-text-color, #2a2a2a)",background:"var(--roadmap-background-color, #fff)",border:"1px solid var(--roadmap-border-color, #ddd)",borderRadius:6,outline:"none"}})]}),n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.onlyShow")}),n.jsxs("label",{htmlFor:"dsChargers",className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:t("filters.dcChargers")}),n.jsx(Q,{id:"dsChargers",checked:o.powerType==="dc",onChange:c=>{s({powerType:c?"dc":void 0})}})]}),a.version!=="v2"&&n.jsxs("label",{htmlFor:"efluxChargers",className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:t("filters.efluxChargers")}),n.jsx(Q,{id:"efluxChargers",checked:o.partyId==="EFL",onChange:c=>{s({partyId:c?"EFL":void 0})}})]}),(a.version!=="v2"||r?.showNoAdditionalFeeFilter)&&n.jsxs("label",{htmlFor:"noAdditionalFee",className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:t("filters.noAdditionalFee")}),n.jsx(Q,{id:"noAdditionalFee",checked:o.noAdditionalCharges,onChange:c=>{s({noAdditionalCharges:c?!0:void 0})}})]}),n.jsxs("label",{htmlFor:"remoteStartStop",className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:t("filters.remoteStartStop")}),n.jsx(Q,{id:"remoteStartStop",checked:o.remoteStartStop,onChange:c=>{s({remoteStartStop:c?!0:void 0})}})]}),r.showOperatorOnly&&a.version==="v2"&&n.jsxs("label",{htmlFor:"operatorOnly",className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:`Show '${r.showOperatorOnly}' only`}),n.jsx(Q,{id:"operatorOnly",checked:o.operatorOnly===r.showOperatorOnly,onChange:c=>{s({operatorOnly:c?r.showOperatorOnly:void 0})}})]})]}),d&&n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.operator")}),n.jsx(qt,{id:"operator",preferredValues:a.preferredOperators,value:o.operator,options:[...r?.operators?.map(c=>({value:c?.connectionId,label:c?.name,selected:o.operators?.includes(c?.connectionId)}))||[]],placeholder:"Select operator",onChange:c=>{s({operator:c})}})]}),d&&r?.showExcludeOperatorFilter&&n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.excludeOperator")}),n.jsx(qt,{id:"excludeOperator",preferredValues:a.preferredOperators,value:o.excludeOperator,options:[...r?.operators?.map(c=>({value:c?.connectionId,label:c?.name,selected:o.excludeOperator?.includes(c?.connectionId)}))||[]],placeholder:t("filters.excludeOperator"),onChange:c=>{s({excludeOperator:c})}})]}),r?.showPublishingModeFilter&&r?.publishingMode?.length>1&&n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:"Visibility"}),n.jsx(Kt,{id:"publishingMode",value:o.publishingMode,options:[{value:"",label:"All locations"},{value:"PUBLISHING_MODE_PUBLIC",label:"Public locations"},{value:"PUBLISHING_MODE_PRIVATE",label:"Private locations"}],onChange:c=>{s({publishingMode:c})}})]}),n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.statusHeading")}),n.jsxs("label",{htmlFor:"statusAvailable",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("div",{className:b.dot,style:{background:"#33AC19"}}),t("filters.available")]}),n.jsx(Q,{id:"statusAvailable",name:"status",checked:o.status.includes("AVAILABLE"),onChange:c=>{s({status:Ze(c?"add":"remove",o.status,["AVAILABLE"])})}})]}),n.jsxs("label",{htmlFor:"statusCharging",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("div",{className:b.dot,style:{background:"#005CEE"}}),t("filters.charging")]}),n.jsx(Q,{id:"statusCharging",checked:o.status.includes("CHARGING"),onChange:c=>{s({status:Ze(c?"add":"remove",o.status,["CHARGING"])})}})]}),n.jsxs("label",{htmlFor:"statusError",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("div",{className:b.dot,style:{background:"#EB001B"}}),t("filters.notAvailable")]}),n.jsx(Q,{id:"statusError",name:"status",checked:o.status.includes("INOPERATIVE")&&o.status.includes("UNKNOWN"),onChange:c=>{s({status:Ze(c?"add":"remove",o.status,["INOPERATIVE","UNKNOWN"])})}})]})]}),n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.chargingPower")}),n.jsx(Ei,{value:o.minPower,onChange:c=>{s({minPower:c})},ticks:Ki})]}),n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.connectorType")}),n.jsxs("label",{htmlFor:"type1",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("img",{src:Ee.IEC_62196_T1,className:b.connectorIcon}),"Type 1 (Yazaki)"]}),n.jsx(Q,{id:"type1",checked:o.connectorTypes.includes("IEC_62196_T1"),onChange:c=>{s({connectorTypes:c?[...o.connectorTypes,"IEC_62196_T1"]:o.connectorTypes.filter(u=>u!=="IEC_62196_T1")})}})]}),n.jsxs("label",{htmlFor:"type2",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("img",{src:Ee.IEC_62196_T2,className:b.connectorIcon}),"Type 2 (Mennekes)"]}),n.jsx(Q,{id:"type2",checked:o.connectorTypes.includes("IEC_62196_T2"),onChange:c=>{s({connectorTypes:c?[...o.connectorTypes,"IEC_62196_T2"]:o.connectorTypes.filter(u=>u!=="IEC_62196_T2")})}})]}),n.jsxs("label",{htmlFor:"type3",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("img",{src:Ee.IEC_62196_T3,className:b.connectorIcon}),"Type 3 (Le Grand)"]}),n.jsx(Q,{id:"type3",checked:o.connectorTypes.includes("IEC_62196_T3A"),onChange:c=>{s({connectorTypes:c?[...o.connectorTypes,"IEC_62196_T3A"]:o.connectorTypes.filter(u=>u!=="IEC_62196_T3A")})}})]}),n.jsxs("label",{htmlFor:"CHAdeMo",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("img",{src:Ee.CHADEMO,className:b.connectorIcon}),"CHAdeMo"]}),n.jsx(Q,{id:"CHAdeMo",checked:o.connectorTypes.includes("CHADEMO"),onChange:c=>{s({connectorTypes:c?[...o.connectorTypes,"CHADEMO"]:o.connectorTypes.filter(u=>u!=="CHADEMO")})}})]}),n.jsxs("label",{htmlFor:"domestic",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("img",{src:Ee.DOMESTIC_F,className:b.connectorIcon}),"Domestic"]}),n.jsx(Q,{id:"domestic",checked:o.connectorTypes.includes("DOMESTIC_F"),onChange:c=>{s({connectorTypes:c?[...o.connectorTypes,"DOMESTIC_F"]:o.connectorTypes.filter(u=>u!=="DOMESTIC_F")})}})]}),n.jsxs("label",{htmlFor:"combo",className:b.rowLabel,children:[n.jsxs("div",{className:b.label,children:[n.jsx("img",{src:Ee.IEC_62196_T2_COMBO,className:b.connectorIcon}),"Combo"]}),n.jsx(Q,{id:"combo",checked:o.connectorTypes.includes("IEC_62196_T2_COMBO"),onChange:c=>{s({connectorTypes:c?[...o.connectorTypes,"IEC_62196_T2_COMBO"]:o.connectorTypes.filter(u=>u!=="IEC_62196_T2_COMBO")})}})]})]}),a.version==="v2"&&r?.showPaymentMethodFilter&&n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.authMethodCapabilities")}),Zi.map(c=>{const u=`auth-${c.value}`,f=o.authMethodCapabilities?.includes(c.value)??!1;return n.jsxs("label",{htmlFor:u,className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:t(c.labelKey)}),n.jsx(Q,{id:u,checked:f,onChange:p=>{s({authMethodCapabilities:Ze(p?"add":"remove",o.authMethodCapabilities||[],[c.value])})}})]},c.value)})]}),r?.showVehicleAvailabilityFilter&&n.jsxs("div",{className:b.optionsGroup,children:[n.jsx("div",{className:b.heading,children:t("filters.chargingAccessibility")}),n.jsx(Kt,{id:"chargingAccessibility",value:o.chargingAccessibility||"ALL",options:[{value:"ALL",label:t("filters.accessibilityAll")},{value:"TESLA",label:t("filters.accessibilityTesla")}],onChange:c=>{s({chargingAccessibility:c})}})]})]})]})}const Qi="locations-module_headerContainer",eo="locations-module_publishingMode",to="locations-module_container",no="locations-module_header",ro="locations-module_subheader",io="locations-module_row",oo="locations-module_icon",ao="locations-module_statusIcon",so="locations-module_text",co="locations-module_note",lo="locations-module_divider",uo="locations-module_pagingation",fo="locations-module_tariffNoteLink",E={headerContainer:Qi,publishingMode:eo,container:to,header:no,subheader:ro,row:io,icon:oo,statusIcon:ao,text:so,note:co,divider:lo,pagingation:uo,tariffNoteLink:fo},po="LocationPlaceholder-module_container",ho="LocationPlaceholder-module_header",mo="LocationPlaceholder-module_divider",go="LocationPlaceholder-module_iconLine",vo="LocationPlaceholder-module_priceLine",ne={container:po,header:ho,divider:mo,iconLine:go,priceLine:vo};function Co(){return n.jsxs("div",{className:ne.container,children:[n.jsx("div",{className:ne.header}),n.jsx("div",{className:ne.divider,style:{marginTop:"15px",marginBottom:"23px"}}),n.jsx("div",{className:ne.iconLine,style:{width:"60%"}}),n.jsx("div",{className:ne.iconLine,style:{width:"45%"}}),n.jsx("div",{className:ne.iconLine,style:{width:"50%"}}),n.jsx("div",{className:ne.divider}),n.jsx("div",{className:ne.iconLine,style:{width:"50%"}}),n.jsx("div",{className:ne.iconLine,style:{width:"62%"}}),n.jsx("div",{className:ne.priceLine}),n.jsx("div",{className:ne.divider}),n.jsx("div",{className:ne.iconLine,style:{width:"50%"}}),n.jsx("div",{className:ne.iconLine,style:{width:"57%"}}),n.jsx("div",{className:ne.priceLine,style:{width:"30%"}})]})}function bn(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"12",height:"12",fill:"currentColor",children:n.jsx("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"})})}function En(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"12",height:"12",fill:"currentColor",children:n.jsx("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})})}function yo(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 320",width:"10",height:"10",fill:"currentColor",children:n.jsx("path",{d:"M233.4 310.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 86.6 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})})}function xo(){return n.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M8 0.25C3.72 0.25 0.25 3.72 0.25 8s3.47 7.75 7.75 7.75S15.75 12.28 15.75 8 12.28 0.25 8 0.25zm0 14C4.55 14.25 1.75 11.45 1.75 8S4.55 1.75 8 1.75 14.25 4.55 14.25 8 11.45 14.25 8 14.25zM8.75 4.25a0.75 0.75 0 0 0-1.5 0v4c0 0.2 0.08 0.39 0.22 0.53l2.5 2.5a0.75 0.75 0 1 0 1.06-1.06L8.75 7.94V4.25z"})})}function To(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",children:n.jsx("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06L5.75 11.19l6.97-6.97a.75.75 0 0 1 1.06 0z"})})}function _n(){return n.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("g",{children:n.jsx("path",{d:"M8 0.25C3.72009 0.25 0.25 3.72134 0.25 8C0.25 12.2812 3.72009 15.75 8 15.75C12.2799 15.75 15.75 12.2812 15.75 8C15.75 3.72134 12.2799 0.25 8 0.25ZM8 14.25C4.54588 14.25 1.75 11.4553 1.75 8C1.75 4.54703 4.546 1.75 8 1.75C11.4528 1.75 14.25 4.54597 14.25 8C14.25 11.4541 11.4553 14.25 8 14.25ZM8 3.6875C8.72487 3.6875 9.3125 4.27513 9.3125 5C9.3125 5.72487 8.72487 6.3125 8 6.3125C7.27513 6.3125 6.6875 5.72487 6.6875 5C6.6875 4.27513 7.27513 3.6875 8 3.6875ZM9.75 11.625C9.75 11.8321 9.58209 12 9.375 12H6.625C6.41791 12 6.25 11.8321 6.25 11.625V10.875C6.25 10.6679 6.41791 10.5 6.625 10.5H7V8.5H6.625C6.41791 8.5 6.25 8.33209 6.25 8.125V7.375C6.25 7.16791 6.41791 7 6.625 7H8.625C8.83209 7 9 7.16791 9 7.375V10.5H9.375C9.58209 10.5 9.75 10.6679 9.75 10.875V11.625Z"})})})}const bo="SidebarContainer-module_container",Eo={container:bo};function Pe({children:e}){return n.jsx("div",{className:Eo.container,children:e})}const _o="Debug-module_container",wo="Debug-module_content",No="Debug-module_connectorHeader",So="Debug-module_code",Ao="Debug-module_evse",Ae={container:_o,content:wo,connectorHeader:No,code:So,evse:Ao};function Oo({location:e}){return n.jsx("div",{className:Ae.container,children:n.jsxs(Pe,{children:[n.jsx("div",{children:n.jsxs("h3",{children:["Debug: ",e.name]})}),n.jsx("div",{style:{marginBottom:"5px"},children:n.jsx("button",{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(e,null,2))},children:"Copy location"})}),n.jsx("div",{className:Ae.content,children:e.evses.map(t=>n.jsxs("div",{className:Ae.evse,children:[n.jsxs("div",{className:Ae.connectorHeader,children:["Evse: ",t.evseId||t.evse_id]}),n.jsx("div",{children:t.connectors.map((i,r)=>n.jsxs("div",{children:[n.jsxs("div",{className:Ae.connectorHeader,children:["Connector #",r]}),n.jsx("pre",{className:Ae.code,children:JSON.stringify(i.tariff||Array.isArray(e.tariffs)?e.tariffs?.find(a=>i.tariff_ids.includes(a.id)):null,null,2)})]}))})]}))})]})})}const wn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%3e%3cg%20clip-path='url(%23clip0_480_2466)'%3e%3cpath%20d='M3.76781%207H5.0925L4.81812%208.71156C4.77812%208.85969%204.9075%209%205.07875%209C5.17188%209%205.26156%208.95719%205.31063%208.88313L7.40219%205.78062C7.50531%205.62469%207.37656%205.42875%207.17031%205.42875H5.88219L6.14094%204.295C6.18625%204.14625%206.05781%204.00031%205.88219%204.00031H4.36438C4.23%204.00031%204.11656%204.08719%204.09875%204.20375L3.50187%206.735C3.48094%206.87531%203.60594%207%203.76781%207ZM17.5%204H17V2.5C17%202.22375%2016.7763%202%2016.5%202C16.2237%202%2016%202.22375%2016%202.5V4H15V2.5C15%202.22375%2014.7762%202%2014.5%202C14.2238%202%2014%202.22375%2014%202.5V4H13.5C13.2238%204%2013%204.22375%2013%204.5V6C13%207.1175%2013.7381%208.05281%2014.75%208.37281V11.625C14.75%2012.1075%2014.3575%2012.5%2013.875%2012.5C13.3925%2012.5%2013%2012.1075%2013%2011.625V10.75C13%209.23344%2011.7666%208%2010.25%208H10V1.5C10%200.671562%209.32844%200%208.5%200H2.5C1.67156%200%201%200.671562%201%201.5V14.5H0.25C0.111875%2014.5%200%2014.6119%200%2014.75V15.75C0%2015.8881%200.111875%2016%200.25%2016H10.75C10.8881%2016%2011%2015.8881%2011%2015.75V14.75C11%2014.6119%2010.8881%2014.5%2010.75%2014.5H10V9.5H10.25C10.9394%209.5%2011.5%2010.0606%2011.5%2010.75V11.625C11.5%2012.9347%2012.5653%2014%2013.875%2014C15.1847%2014%2016.25%2012.9347%2016.25%2011.625V8.37281C17.2619%208.05281%2018%207.1175%2018%206V4.5C18%204.22375%2017.7763%204%2017.5%204ZM8.5%2014.5H2.5V1.5H8.5V14.5ZM16.5%206C16.5%206.55125%2016.0513%207%2015.5%207C14.9487%207%2014.5%206.55125%2014.5%206V5.5H16.5V6Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2466'%3e%3crect%20width='18'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Nn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_480_2468)'%3e%3cpath%20d='M4%204.625V3.375C4%203.16875%204.16875%203%204.375%203H5.625C5.83125%203%206%203.16875%206%203.375V4.625C6%204.83125%205.83125%205%205.625%205H4.375C4.16875%205%204%204.83125%204%204.625ZM8.375%205H9.625C9.83125%205%2010%204.83125%2010%204.625V3.375C10%203.16875%209.83125%203%209.625%203H8.375C8.16875%203%208%203.16875%208%203.375V4.625C8%204.83125%208.16875%205%208.375%205ZM4.375%208H5.625C5.83125%208%206%207.83125%206%207.625V6.375C6%206.16875%205.83125%206%205.625%206H4.375C4.16875%206%204%206.16875%204%206.375V7.625C4%207.83125%204.16875%208%204.375%208ZM8.375%208H9.625C9.83125%208%2010%207.83125%2010%207.625V6.375C10%206.16875%209.83125%206%209.625%206H8.375C8.16875%206%208%206.16875%208%206.375V7.625C8%207.83125%208.16875%208%208.375%208ZM6%2010.625V9.375C6%209.16875%205.83125%209%205.625%209H4.375C4.16875%209%204%209.16875%204%209.375V10.625C4%2010.8313%204.16875%2011%204.375%2011H5.625C5.83125%2011%206%2010.8313%206%2010.625ZM8.375%2011H9.625C9.83125%2011%2010%2010.8313%2010%2010.625V9.375C10%209.16875%209.83125%209%209.625%209H8.375C8.16875%209%208%209.16875%208%209.375V10.625C8%2010.8313%208.16875%2011%208.375%2011ZM14%2014.875V16H0V14.875C0%2014.6687%200.16875%2014.5%200.375%2014.5H0.984375V0.75C0.984375%200.334375%201.31875%200%201.73438%200H12.2656C12.6812%200%2013.0156%200.334375%2013.0156%200.75V14.5H13.625C13.8313%2014.5%2014%2014.6687%2014%2014.875ZM2.48438%2014.4688H6V12.375C6%2012.1687%206.16875%2012%206.375%2012H7.625C7.83125%2012%208%2012.1687%208%2012.375V14.4688H11.5156V1.53125L2.5%201.5L2.48438%2014.4688Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2468'%3e%3crect%20width='14'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",wt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='20'%20height='16'%20viewBox='0%200%2020%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%206H16.5L13.1003%201.75063C12.913%201.51641%2012.6754%201.32734%2012.405%201.19741C12.1347%201.06747%2011.8387%201.00001%2011.5387%201H4.85406C4.03625%201%203.30094%201.49781%202.99719%202.25719L1.5%206V6.07062C0.63875%206.29375%200%207.06906%200%208V11.5C0%2011.7762%200.22375%2012%200.5%2012H2C2%2013.6569%203.34312%2015%205%2015C6.65688%2015%208%2013.6569%208%2012H12C12%2013.6569%2013.3431%2015%2015%2015C16.6569%2015%2018%2013.6569%2018%2012H19.5C19.7763%2012%2020%2011.7762%2020%2011.5V9C20%207.34312%2018.6569%206%2017%206ZM8.75%202.5H11.5387C11.6916%202.5%2011.8338%202.56844%2011.9291%202.6875L14.5791%206H8.75V2.5ZM4.38969%202.81437C4.46625%202.62344%204.64844%202.5%204.85406%202.5H7.25V6H3.11562L4.38969%202.81437ZM5%2013.5C4.17156%2013.5%203.5%2012.8284%203.5%2012C3.5%2011.1716%204.17156%2010.5%205%2010.5C5.82844%2010.5%206.5%2011.1716%206.5%2012C6.5%2012.8284%205.82844%2013.5%205%2013.5ZM15%2013.5C14.1716%2013.5%2013.5%2012.8284%2013.5%2012C13.5%2011.1716%2014.1716%2010.5%2015%2010.5C15.8284%2010.5%2016.5%2011.1716%2016.5%2012C16.5%2012.8284%2015.8284%2013.5%2015%2013.5ZM18.5%2010.5H17.5841C17.0644%209.60719%2016.1078%209%2015%209C13.8922%209%2012.9359%209.60719%2012.4159%2010.5H7.58406C7.06437%209.60719%206.10781%209%205%209C3.89219%209%202.93594%209.60719%202.41594%2010.5H1.5V8C1.5%207.72437%201.72438%207.5%202%207.5H17C17.8272%207.5%2018.5%208.17281%2018.5%209V10.5Z'%20fill='black'/%3e%3c/svg%3e",Ve="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='12'%20height='16'%20viewBox='0%200%2012%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_480_2435)'%3e%3cpath%20d='M11.8068%205.24687C11.5506%204.8%2011.0849%204.53125%2010.5693%204.53125H7.61932L8.51619%201.79688C8.63182%201.36563%208.54119%200.9125%208.26932%200.55625C7.99432%200.203125%207.57869%200%207.13182%200H3.05369C2.34118%200%201.73181%200.534375%201.65368%201.15937L0.0161813%207.79063C-0.0431938%208.22188%200.0849314%208.65625%200.369307%208.98438C0.653682%209.3125%201.06618%209.5%201.50056%209.5H4.56619L3.47556%2014.2406C3.37556%2014.6688%203.47244%2015.1125%203.74431%2015.4563C4.01619%2015.8031%204.42556%2016%204.86619%2016C5.37556%2016%205.85057%2015.725%206.07869%2015.325L11.8037%206.67812C12.0662%206.23125%2012.0662%205.69375%2011.8068%205.24687ZM5.00369%2014.2937L6.45057%208H1.48493L3.05369%201.5L7.04119%201.47187L5.54744%206.03125H10.4381L5.00369%2014.2937Z'%20fill='%232A2A2A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2435'%3e%3crect%20width='12'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Sn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18'%20height='12'%20viewBox='0%200%2018%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.2857%200H0.857143C0.383839%200%200%200.383839%200%200.857143V11.1429C0%2011.6162%200.383839%2012%200.857143%2012H16.2857C16.759%2012%2017.1429%2011.6162%2017.1429%2011.1429V0.857143C17.1429%200.383839%2016.759%200%2016.2857%200ZM15.8571%2010.7143H1.28571V1.28571H15.8571V10.7143ZM7.92857%207.71429H10.0714C10.1898%207.71429%2010.2857%207.61839%2010.2857%207.5V6.64286C10.2857%206.52446%2010.1898%206.42857%2010.0714%206.42857H7.92857C7.81018%206.42857%207.71429%206.52446%207.71429%206.64286V7.5C7.71429%207.61839%207.81018%207.71429%207.92857%207.71429ZM14.3571%206.42857H12.2143C12.0959%206.42857%2012%206.52446%2012%206.64286V7.5C12%207.61839%2012.0959%207.71429%2012.2143%207.71429H14.3571C14.4755%207.71429%2014.5714%207.61839%2014.5714%207.5V6.64286C14.5714%206.52446%2014.4755%206.42857%2014.3571%206.42857ZM7.92857%205.57143H14.3571C14.4755%205.57143%2014.5714%205.47554%2014.5714%205.35714V4.5C14.5714%204.38161%2014.4755%204.28571%2014.3571%204.28571H7.92857C7.81018%204.28571%207.71429%204.38161%207.71429%204.5V5.35714C7.71429%205.47554%207.81018%205.57143%207.92857%205.57143ZM3.60857%206.04607L4.73866%206.3525C4.85089%206.38304%204.92857%206.47437%204.92857%206.57482C4.92857%206.70339%204.80804%206.80786%204.65911%206.80786H3.95357C3.84241%206.80786%203.73312%206.78%203.6383%206.72884C3.5558%206.68411%203.45509%206.69214%203.3908%206.76045L3.0675%207.10143C2.9842%207.18929%202.99786%207.33286%203.09777%207.40116C3.32009%207.5525%203.58152%207.63902%203.85714%207.65616V7.92857C3.85714%208.04696%203.95304%208.14286%204.07143%208.14286H4.5C4.61839%208.14286%204.71429%208.04696%204.71429%207.92857V7.65402C5.30839%207.62455%205.78571%207.15661%205.78571%206.57455C5.78571%206.08786%205.44768%205.65634%204.96286%205.52536L3.83277%205.21893C3.72054%205.18839%203.64286%205.09705%203.64286%204.99661C3.64286%204.86804%203.76339%204.76357%203.91232%204.76357H4.61786C4.72902%204.76357%204.8383%204.79143%204.93312%204.84259C5.01562%204.88705%205.11634%204.87929%205.18062%204.81098L5.50393%204.47C5.58723%204.38214%205.57357%204.23857%205.47366%204.17027C5.25134%204.01893%204.98991%203.93241%204.71429%203.91527V3.64286C4.71429%203.52446%204.61839%203.42857%204.5%203.42857H4.07143C3.95304%203.42857%203.85714%203.52446%203.85714%203.64286V3.91741C3.26304%203.94688%202.78571%204.41482%202.78571%204.99688C2.78571%205.48357%203.12375%205.91509%203.60857%206.04607Z'%20fill='%232A2A2A'/%3e%3c/svg%3e";function An(e){return Ee[e.standard||e.connectorStandardType]}function On(e,t){return new Intl.NumberFormat(e,{maximumFractionDigits:2}).format(t)}const jo={CONNECTOR_POWER_TYPE_UNSPECIFIED:"Unspecified",CONNECTOR_POWER_TYPE_AC_1_PHASE:"AC x 1",CONNECTOR_POWER_TYPE_AC_2_PHASE:"AC x 2",CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT:"AC x 2 Split",CONNECTOR_POWER_TYPE_AC_3_PHASE:"AC x 3",CONNECTOR_POWER_TYPE_DC:"DC",CONNECTOR_POWER_TYPE_AC:"AC",AC_3_PHASE:"AC x 3",AC_1_PHASE:"AC x 1",DC:"DC"};function jn(e){return[Po(e.standard||e.connectorStandardType),jo[e.powerType||e.power_type||e.connectorPowerType],"Socket"].join(", ")}function Po(e){return e=(e||"").replace("CONNECTOR_STANDARD_TYPE_",""),e==="IEC_62196_T1"?"Type 1":e==="IEC_62196_T1_COMBO"?"Type 1 Combo":e==="IEC_62196_T2"?"Type 2":e==="IEC_62196_T2_COMBO"?"Type 2 Combo":e==="IEC_62196_T3A"?"Type 3A":e==="IEC_62196_T3C"?"Type 3C":e==="CHADEMO"?"CHAdeMO":e==="DOMESTIC_F"?"Domestic F":e==="DOMESTIC_E"?"Domestic E":e==="DOMESTIC_B"?"Domestic B":e==="CATARC"?"Catarc":e}function Pn(e,t){switch(t){case"AVAILABLE":return e("evse.statusAvailable");case"CHARGING":return e("evse.statusCharging");case"UNAVAILABLE":return e("evse.statusUnavailable");case"ERROR":return e("evse.statusError");case"UNKNOWN":return e("evse.statusUnknown");case"REMOVED":return e("evse.statusRemoved");case"PLANNED":return e("evse.statusPlanned");case"RESERVED":return e("evse.statusReserved");case"INOPERATIVE":return e("evse.statusInoperative");case"OUTOFORDER":return e("evse.statusOutOfOrder");default:return e("evse.statusUnknown")}}function Dn(e,t){return t?.type==="ON_STREET"?e("locationType.onStreet"):t?.type==="PARKING_GARAGE"?e("locationType.parkingGarage"):t?.type==="UNDERGROUND_GARAGE"?e("locationType.undergroundGarage"):t?.type==="PARKING_LOT"?e("locationType.parkingLot"):e("locationType.other")}function In(e=[]){return e.some(t=>t.status==="AVAILABLE")?he("AVAILABLE"):e.some(t=>t.status==="CHARGING")?he("CHARGING"):he("UNKNOWN")}function kn(e,t){let i;["en","fr"].some(s=>{let d=new Intl.DateTimeFormat(s,{minute:"numeric",timeZone:t,timeZoneName:"short"}).formatToParts(e).filter(c=>c.type=="timeZoneName"&&c.value);if(/^(GMT|UTC)/.test(d[0].value))return i=d[0].value.replace(/GMT|UTC/,"")||"+0",!0});let r=i[0]=="+"?"+":"-",[a,o]=i.substring(1).split(":");return r+a.padStart(2,"0")+":"+(o||"00")}function Mn(e){let t=/^-/.test(e)?-1:1,[i,r]=e.match(/\d\d/g);return t*(i*60+Number(r))}function nn(e,t){const i=s=>("0"+s).slice(-2),{year:r,month:a,day:o}=new Intl.DateTimeFormat("en",{timeZone:e}).formatToParts(t).reduce((s,l)=>(s[l.type]=l.value,l),Object.create(null));return`${r}-${i(a)}-${i(o)}`}function Rn(e,t=new Date){const i=kn(t,e),r=Mn(i),a=new Date(+t);return a.setUTCMinutes(a.getUTCMinutes()+r),a}function Ln(e,t=new Date){const i=kn(t,e),r=Mn(i),a=new Date(+t);a.setUTCHours(0,-r,0,0);const o=nn(e,t),s=nn(e,a);return s>o?a.setUTCDate(a.getUTCDate()-1):s<o&&a.setUTCDate(a.getUTCDate()+1),a}function Do(e,t=new Date){return new Date(Ln(e,t).valueOf()+86399999)}function Io(e,t,i){const r=Rn(i,e);return r.getUTCDate()!==t&&r.setUTCDate(e.getUTCDate()+(7+t-e.getUTCDay()-1)%7+1),{start:Ln(i,r),end:Do(i,r)}}function mt(e,t){return Rn(t,e).getUTCDay()}function rn(e){const[t,i]=e.split(":");return parseInt(t)*60+parseInt(i)}function gt(e){if(!e?.restrictions?.startTime||!e?.restrictions?.endTime)return{elements:[e],priceComponents:e.priceComponents,startTime:0,endTime:1440,isFullDay:!0};const t=rn(e.restrictions.startTime),i=rn(e.restrictions.endTime);return{elements:[e],priceComponents:e.priceComponents,isFullDay:t===0&&i===1440,startTime:t,endTime:i}}function ko(e,t,i){const r=(i.getHours()*60+i.getMinutes())%60;if(e.length<=1)return e.map(o=>(o.isActive=t&&o.startTime<=r&&o.endTime>=r,o));e=e.sort((o,s)=>o.startTime-s.startTime);let a=[e[0]];for(let o=1;o<e.length;o++){const s=e[o],l=a.findLast(c=>c.startTime<=s.startTime);if(!l)a=a.filter(c=>c.endTime>s.endTime),a.unshift(s);else{const c=l.endTime;l.endTime=s.startTime;const u=[s];c>s.endTime&&u.push({...l,startTime:s.endTime,endTime:c}),a.splice(a.indexOf(l)+1,0,...u)}let d=0;a=a.map((c,u)=>{const f=a[u-1];if(c.endTime>d)d=c.endTime;else return null;return f&&f.endTime!==c.startTime&&(c.startTime=f.endTime),c}).filter(Boolean)}return a.map(o=>(o.isActive=t&&o.startTime<=r&&o.endTime>=r,o.isFullDay=o.startTime===0&&o.endTime===1440,o))}function xe(e){return!e?.restrictions||!e?.restrictions?.startDate&&!e?.restrictions?.endDate&&!e?.restrictions?.startTime&&!e?.restrictions?.startTime&&!e?.restrictions?.dayOfWeek}function Nt({elements:e,limit:t=6,now:i=new Date}){const a=[...e].filter(o=>!xe(o)).map(o=>({...o,restrictions:{_startDate:new Date(`${o.restrictions.startDate}T${o.restrictions.startTime}`),...o.restrictions}})).sort((o,s)=>o.restrictions._startDate.valueOf()-s.restrictions._startDate.valueOf()).filter(o=>o.restrictions._startDate.valueOf()>i.valueOf()-108e5).slice(0,t).reduce((o,s)=>{const l=s.restrictions._startDate.getDate();return o[l]={date:new Date(s.restrictions.startDate),items:[...o[l]?.items||[],s]},o},[]);return Object.keys(a).map(o=>{const{date:s,items:l}=a[o],d=l.map(({restrictions:c,...u})=>{const{_startDate:f,...p}=c;return{...u,restrictions:{...p}}}).map(gt).map(c=>{const u=mt(i)===mt(s),f=i.getHours()*60+i.getMinutes(),p=u&&c.startTime<=f&&c.endTime-1>=f;return{...c,isActive:p}});return{date:s,items:d}})}function Mo(e,t){const i=new Date;return[...e].reduce((r,a)=>{const{startDate:o,endDate:s,dayOfWeek:l=[]}=a.restrictions||{};if(!Object.keys(a.restrictions||{}).length)return r;const d=o?new Date(o):null;if(o&&d.valueOf()>Date.now())return r;const c=s?new Date(s):null;return s&&c.valueOf()<Date.now()||["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].forEach((u,f)=>{const{start:p,end:v}=Io(i,f,t);d&&d.valueOf()>p.valueOf()||c&&c.valueOf()<v.valueOf()||l.length&&!l.includes(u)||(r[u]=[...r[u],a])}),r},{MONDAY:[],TUESDAY:[],WEDNESDAY:[],THURSDAY:[],FRIDAY:[],SATURDAY:[],SUNDAY:[]})}function on(e,t){return Object.keys(e).reduce((i,r)=>(t.includes(r)||(i[r]=e[r]),i),{})}function Ro(e,t){const i=e.map(a=>on(a,["isActive"])),r=t.map(a=>on(a,["isActive"]));return JSON.stringify(i)===JSON.stringify(r)}function Lo(e){return e.reduce((t,i)=>{const r=t.find(a=>a.startTime===i.startTime&&a.endTime===i.endTime);return r?r.elements.push(...i.elements):t.push(i),t},[])}function Ho(e){return xe(e)?(e.priceComponents||[]).some(t=>t.type!=="PARKING_TIME"&&(t.price||0)>0):!1}function Fo(e){return e.startTime===0&&e.endTime<=1||e.startTime>=1439&&e.endTime===1440}function Hn(e,t,i){const r=Mo(e.concat().filter(c=>!xe(c)),t),a=e.find(Ho),{SUNDAY:o,...s}=r,[l,...d]=Object.keys({SUNDAY:r.SUNDAY,...s}).map((c,u)=>{const f=r[c],p=mt(i,t)===u,v=Lo(f.map(gt));return a&&v.length>0&&v.unshift(gt(a)),{day:c,isActive:p,items:ko(v,p,i).filter(y=>!Fo(y))}});return[...d,l].reduce((c,u,f,p)=>{const v=c[c.length-1],y=v?.items;if(!y||!Ro(y,u.items)){const{day:T,...N}=u;c.push({...N,days:[u.day]})}else v.days=[v.days[0],u.day],v.isActive=v.isActive||u.isActive;return c},[]).filter(c=>!!c.items.length)}function zo(e){const{elements:t=[]}=e;return t?.some(o=>o?.priceComponents?.length>0)?t.filter(xe).length===t.length?"base":Nt({elements:t,limit:6,now:new Date}).length?"dynamic":"scheduled":"none"}const Ie={CONNECTOR_POWER_TYPE_AC_1_PHASE:"CONNECTOR_POWER_TYPE_AC_1_PHASE",CONNECTOR_POWER_TYPE_AC_2_PHASE:"CONNECTOR_POWER_TYPE_AC_2_PHASE",CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT:"CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT",CONNECTOR_POWER_TYPE_AC_3_PHASE:"CONNECTOR_POWER_TYPE_AC_3_PHASE",CONNECTOR_POWER_TYPE_DC:"CONNECTOR_POWER_TYPE_DC"};function Vo(e){switch(e.connectorPowerType){case Ie.CONNECTOR_POWER_TYPE_AC_1_PHASE:case Ie.CONNECTOR_POWER_TYPE_DC:return e.power.maxVoltage*e.power.maxAmperage/1e3;case Ie.CONNECTOR_POWER_TYPE_AC_2_PHASE:case Ie.CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT:return e.power.maxVoltage*e.power.maxAmperage*2/1e3;case Ie.CONNECTOR_POWER_TYPE_AC_3_PHASE:return e.power.maxVoltage*e.power.maxAmperage*3/1e3;default:return 0}}const $o="ConnectorTariff-module_container",Bo="ConnectorTariff-module_bold",Uo="ConnectorTariff-module_dynamicTariffItem",Yo="ConnectorTariff-module_dynamicTariffItemRange",Wo="ConnectorTariff-module_tariffHeader",Go="ConnectorTariff-module_tariffLabel",qo="ConnectorTariff-module_tariffNote",Zo="ConnectorTariff-module_activeNowLabel",J={container:$o,bold:Bo,dynamicTariffItem:Uo,dynamicTariffItemRange:Yo,tariffHeader:Wo,tariffLabel:Go,tariffNote:qo,activeNowLabel:Zo},Ko="Price-module_tariffItem",vt={tariffItem:Ko};function Jo(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function Xo(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function Qo({priceComponent:e,restrictions:t={},currency:i}){const{t:r}=B(),a={ENERGY:"tariffPriceComponent.energy",TIME:"tariffPriceComponent.time",FLAT:"tariffPriceComponent.flat",PARKING_TIME:"tariffPriceComponent.parkingTime"};return t?.minDuration===0&&t?.maxDuration&&e.type==="PARKING_TIME"?n.jsx("div",{className:vt.tariffItem,children:r("tariffPriceComponent.parkingTimeWait",{minutes:Math.floor(t.maxDuration/60)})}):a[e.type]?n.jsx("div",{className:vt.tariffItem,children:r(a[e.type],{total:Jo(Xo(e),{currency:i})})}):null}const ea="PriceComponents-module_container",ta={container:ea},an=["ENERGY","TIME","FLAT","PARKING_TIME"];function Ke({elements:e,currency:t}){const{t:i}=B(),r=e.reduce((o,s)=>(s.priceComponents.forEach(l=>{o[l.type]||(o[l.type]=[]),o[l.type].push({priceComponent:l,restrictions:s.restrictions})}),o),{}),a=Object.keys(r).map(o=>({type:o,elements:r[o]})).sort((o,s)=>{const l=an.indexOf(o.type),d=an.indexOf(s.type);return l===-1?1:d===-1?-1:l-d});return n.jsx("div",{className:ta.container,children:a.map(({type:o,elements:s},l)=>s.reverse().map((d,c)=>n.jsx(Qo,{currency:t,priceComponent:d.priceComponent,restrictions:d.restrictions},`${o}-${l}-${c}`)))})}function na(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function ra({vat:e,price:t}){const i=e?e/100:0;return t+t*i}function ia({cdrAdditionalCharge:e,currency:t}){const{t:i}=B(),r={FLAT_FEE:i("cdrPrice.flatFee",{total:na(ra(e),{currency:t})})};return n.jsx("div",{className:vt.tariffItem,children:r[e.type]})}function Je(e,t){const i=new Date(0),r=Math.floor(t/60),a=t%60;return i.setHours(r,a,0,0),i.toLocaleTimeString("nl",{hour:"2-digit",minute:"2-digit"})}const oa=Intl.DateTimeFormat().resolvedOptions().timeZone;function aa(e){const{format:t}=new Intl.DateTimeFormat(e,{weekday:"long"});return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].reduce((i,r,a)=>(i[r]=t(new Date(Date.UTC(2023,9,a+1))),i),{})}function ke({currency:e,cdrAdditionalCharges:t}){return t.map(i=>n.jsx(ia,{currency:e,cdrAdditionalCharge:i},i.id))}function St({timezone:e=oa,tariff:t,compact:i=!0,cdrAdditionalCharges:r=[]}){const{t:a,language:o}=B(),s=aa(o);if(!t)return null;const l=t.elements||[],d=t.currency||"",c=l.some(y=>y.priceComponents&&y.priceComponents.length>0),u=Nt({elements:l,limit:i?6:40,now:new Date}),f=u.length?[]:Hn(l,e,new Date),p=l.filter(xe);if(!c)return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:J.tariffNote,children:a("tariffPriceComponent.noTariff")}),r.length>0&&n.jsx("div",{className:J.container,children:n.jsx(ke,{currency:d,cdrAdditionalCharges:r})})]});const v=!f.some(y=>y.isActive);return f.length?n.jsxs("div",{className:J.container,children:[p.length>0&&n.jsxs("div",{className:[J.tariffList,J.bold].join(" "),children:[n.jsxs("div",{className:J.tariffHeader,children:[a("tariffPriceComponent.baseTariff"),v&&n.jsx("span",{className:J.activeNowLabel,children:a("tariffPriceComponent.active")})]}),n.jsx(Ke,{elements:p,currency:d}),n.jsx(ke,{currency:d,cdrAdditionalCharges:r})]}),f.map(y=>n.jsxs("div",{className:J.tariffList,children:[n.jsxs("div",{className:J.tariffHeader,children:[y.days.map(T=>s[T]).join(" - "),y.isActive&&n.jsx("span",{className:J.activeNowLabel,children:a("tariffPriceComponent.active")})]}),y.items.map(T=>n.jsxs("div",{className:T.isActive&&J.bold,children:[!T.isFullDay&&n.jsxs("div",{className:J.tariffLabel,children:[Je(o,T.startTime)," -"," ",Je(o,T.endTime)]}),n.jsxs("div",{children:[n.jsx(Ke,{elements:T.elements,currency:d}),n.jsx(ke,{currency:d,cdrAdditionalCharges:r})]})]},T.startTime))]},y.days.join("-")))]}):n.jsxs("div",{className:J.container,children:[p.length>0&&!u?.length&&n.jsxs("div",{className:J.tariffList,children:[n.jsx(Ke,{elements:p,currency:d}),n.jsx(ke,{currency:d,cdrAdditionalCharges:r})]}),u.length>0&&n.jsx(n.Fragment,{children:u.map((y,T)=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:J.tariffHeader,children:a("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(o,{weekday:"long",month:"short",day:"numeric"}).format(y.date)})}),n.jsx("div",{className:J.dynamicTariffList,children:y.items.map((N,k)=>n.jsxs("div",{className:[J.dynamicTariffItem,N.isActive&&J.bold].filter(Boolean).join(" "),children:[n.jsxs("div",{className:J.dynamicTariffItemRange,children:[Je(o,N.startTime)," –"," ",Je(o,N.endTime)]}),n.jsx(Ke,{elements:N.elements,currency:d}),n.jsx(ke,{currency:d,cdrAdditionalCharges:r}),N.isActive&&n.jsx("span",{className:J.activeNowLabel,children:a("tariffPriceComponent.active")})]},[N.startTime,N.endTime,k].join()))})]}))})]})}function sn(e,t,i){const r=[];return t?.customNote&&r.push(t?.customNote),i==="none"?r.length?r:[e("tariffNote.baseTariffNote")]:(i==="dynamic"&&r.push(e("tariffNote.dynamicScheduledTariffNote")),t?.infraProviderId==="NLEFL"||t?.party_id==="EFL"?(i==="scheduled"&&r.push(e("tariffNote.eFluxScheduledTariffNote")),r):(i==="scheduled"?r.push(e("tariffNote.baseTariffNote"),e("tariffNote.scheduledTariffNote")):r.push(e("tariffNote.baseTariffNote")),r))}const sa=({currentLocation:e,evses:t,setView:i,cdrAdditionalCharges:r})=>{const{options:a,t:o,language:s}=B(),l=t.filter(d=>d.status==="AVAILABLE");return n.jsxs("div",{className:E.container,children:[n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:wn,alt:"station icon"}),n.jsxs("div",{className:E.text,children:[a.locationBaseUrl&&n.jsx("a",{href:`${a.locationBaseUrl}/${e.id}`,children:e.name||"-"}),!a.locationBaseUrl&&e.name]})]}),n.jsxs("div",{className:E.row,children:[n.jsx("div",{className:E.icon,children:n.jsx("div",{style:{background:In(e.evses)},className:E.statusIcon})}),n.jsxs("div",{className:E.text,children:[l.length," / ",t.length," ",o("evse.statusAvailable")]})]}),e.subOperator?.name&&n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:Nn,alt:"building icon"}),n.jsx("div",{className:E.text,children:e.subOperator?.name})]}),e.parkingType!=="UNKNOWN"&&n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:wt,alt:"parking icon"}),n.jsx("div",{className:E.text,children:Dn(o,e.parkingType)})]}),t.map(d=>n.jsxs("div",{children:[n.jsx("hr",{className:E.divider}),n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:Ve,alt:"power icon"}),n.jsx("div",{className:E.text,children:d.evseId})]}),n.jsxs("div",{className:E.row,children:[n.jsx("div",{style:{background:he(d.status)},className:E.statusIcon}),n.jsx("div",{className:E.text,children:[Pn(o,d.status),d.maxPower&&`${On(s,Math.floor(d.maxPower))}kW`].filter(Boolean).join(", ")})]}),d.connectors.map((c,u)=>{const f=zo(c.tariff),p=sn(o,e,f);return n.jsxs("div",{children:[" ",n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:An(c),alt:"socket type"}),n.jsx("div",{className:E.text,children:jn(c)})]}),n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:Sn,alt:"pricing"}),n.jsx("div",{className:E.text,children:o("evse.pricing")})]}),n.jsx(St,{tariff:c.tariff,cdrAdditionalCharges:r}),f==="dynamic"&&n.jsx("div",{className:E.tariffNoteLink,onClick:()=>{i("dynamicTariff",{connector:c,evseId:d.evseId,notes:p,locationName:e.name})},children:o("location.viewAllHourlyPrices")}),p.length>0&&n.jsxs("div",{className:E.tariffNoteLink,onClick:()=>{i("tariffNote",{locationName:e.name,evseId:d.evseId,notes:sn(o,e,f)})},children:[n.jsx(_n,{})," ",o("tariffPriceComponent.viewTariff")]})]},`connector-${u}`)})]},d.evseId))]})},ca="LocationRow-module_row",la="LocationRow-module_expandable",da="LocationRow-module_icon",ua="LocationRow-module_text",fa="LocationRow-module_textHint",pa="LocationRow-module_chevron",ha="LocationRow-module_chevronOpen",ma="LocationRow-module_body",ge={row:ca,expandable:la,icon:da,text:ua,textHint:fa,chevron:pa,chevronOpen:ha,body:ma},ga={display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",padding:"5px 0",minWidth:0},va={display:"inline-flex",alignItems:"center",justifyContent:"center",height:16,width:16,flex:"0 0 auto",marginRight:14,overflow:"hidden"},Ca={flex:"1 1 auto",minWidth:0,fontSize:12,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},ya={color:"var(--roadmap-muted-color, #6a6a6a)",fontWeight:"normal"},xa={display:"inline-flex",alignItems:"center",justifyContent:"center",height:10,width:10,flex:"0 0 auto",marginLeft:8,transition:"transform 0.15s ease",color:"var(--roadmap-text-color, #2a2a2a)"},Ta={padding:"4px 0 6px 30px",display:"flex",flexDirection:"column",gap:4},se=({icon:e,text:t,hint:i,children:r,defaultExpanded:a=!1})=>{const o=h.Children.count(r)>0,[s,l]=h.useState(a),d=()=>l(c=>!c);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`${ge.row} ${o?ge.expandable:""}`,style:{...ga,cursor:o?"pointer":void 0,userSelect:o?"none":void 0},role:o?"button":void 0,tabIndex:o?0:void 0,"aria-expanded":o?s:void 0,onClick:o?d:void 0,onKeyDown:o?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),d())}:void 0,children:[n.jsx("span",{className:ge.icon,style:va,children:h.isValidElement(e)?h.cloneElement(e,{style:{maxWidth:16,maxHeight:16,display:"block",...e.props?.style||{}}}):e}),n.jsxs("div",{className:ge.text,style:Ca,children:[t,i!=null&&n.jsxs("span",{className:ge.textHint,style:ya,children:[" · ",i]})]}),o&&n.jsx("span",{className:`${ge.chevron} ${s?ge.chevronOpen:""}`,style:{...xa,transform:s?"rotate(180deg)":void 0},children:n.jsx(yo,{})})]}),o&&s&&n.jsx("div",{className:ge.body,style:Ta,children:r})]})},ba=({location:e})=>{const{options:t}=B(),i=e?.name||"-",r=t.locationBaseUrl?n.jsx("a",{href:`${t.locationBaseUrl}/${e?.id}`,children:i}):i;return n.jsx(se,{icon:n.jsx("img",{src:wn,alt:"station icon"}),text:r})},Fn=({color:e,size:t=10})=>n.jsx("span",{style:{display:"block",width:t,height:t,borderRadius:t,background:e}}),Ea=({evses:e})=>{const{t}=B(),i=e?.filter(r=>r.status==="AVAILABLE")||[];return n.jsx(se,{icon:n.jsx(Fn,{color:In(e)}),text:`${i.length} / ${e?.length||0} ${t("evse.statusAvailable")}`})},_a="OperatorSection-module_block",wa="OperatorSection-module_role",Na="OperatorSection-module_header",Sa="OperatorSection-module_name",Aa="OperatorSection-module_logo",Oa="OperatorSection-module_website",Oe={block:_a,role:wa,header:Na,name:Sa,logo:Aa,website:Oa},ja=({role:e,showRoleLabel:t})=>{const{t:i}=B();return e.name?n.jsxs("div",{className:Oe.block,style:{display:"flex",flexDirection:"column",gap:2,marginBottom:8},children:[t&&n.jsx("div",{className:Oe.role,style:{fontSize:11,textTransform:"uppercase",color:"var(--roadmap-muted-color, #6a6a6a)",letterSpacing:"0.04em"},children:i(e.labelKey)}),n.jsxs("div",{className:Oe.header,style:{display:"flex",alignItems:"center",gap:8},children:[e.logoUrl&&n.jsx("img",{className:Oe.logo,src:e.logoUrl,alt:`${e.name} logo`,style:{maxHeight:20,maxWidth:80,width:"auto",height:"auto",objectFit:"contain",display:"block"}}),n.jsx("div",{className:Oe.name,style:{fontSize:13,fontWeight:600},children:e.name})]}),e.website&&n.jsx("a",{className:Oe.website,href:e.website,target:"_blank",rel:"noopener noreferrer",style:{fontSize:12,color:"var(--roadmap-brand-color)",textDecoration:"none",wordBreak:"break-all"},children:i("location.visitWebsite")})]}):null},Pa=({operator:e,suboperator:t,fallbackOperatorName:i,fallbackSuboperatorName:r})=>{const{t:a}=B(),o={labelKey:"location.suboperator",name:t?.name||r,website:t?.website,logoUrl:t?.logo?.thumbnail||t?.logo?.url},s={labelKey:"location.operator",name:e?.name||i,website:e?.website,logoUrl:e?.logo?.thumbnail||e?.logo?.url},l=o.name?o:s.name?s:null;return l?n.jsx(se,{icon:n.jsx("img",{src:Nn,alt:"building icon"}),text:a("location.operatorInfo"),hint:l.name,children:n.jsx(ja,{role:l,showRoleLabel:!1})}):null},Da=["weekday.mon","weekday.tue","weekday.wed","weekday.thu","weekday.fri","weekday.sat","weekday.sun"];function Ia(e,t){const i=Da[t-1];return i?e(i):""}function zn(e){const t={};for(let i=1;i<=7;i++)t[i]=[];(e||[]).forEach(i=>{i.weekday>=1&&i.weekday<=7&&t[i.weekday].push(i)});for(const i of Object.keys(t))t[Number(i)].sort((r,a)=>r.period_begin.localeCompare(a.period_begin));return t}function ka(e,t){return`${e} – ${t}`}function Xe(e){const[t,i]=e.split(":").map(Number);return t*60+(i||0)}function Ma(e){return e===0?7:e}function Qe(e){const t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${r}`}function cn(e,t){if(!e)return null;const i=t.getTime();for(const r of e){const a=new Date(r.period_begin).getTime(),o=new Date(r.period_end).getTime();if(!isNaN(a)&&!isNaN(o)&&i>=a&&i<=o)return r}return null}function Ra(e,t=new Date){if(!e)return{open:!1};if(e.twentyfourseven)return{open:!0};const i=cn(e.exceptional_closings,t);if(i)return{open:!1,nextChange:{time:new Date(i.period_end).toISOString().slice(11,16),label:"opens"}};const r=cn(e.exceptional_openings,t);if(r)return{open:!0,nextChange:{time:new Date(r.period_end).toISOString().slice(11,16),label:"closes"}};const a=zn(e.regular_hours),o=Ma(t.getDay()),s=o===1?7:o-1,l=t.getHours()*60+t.getMinutes();for(const d of a[s]){const c=Xe(d.period_begin),u=Xe(d.period_end);if((u<c||u===0)&&l<(u===0?1440:u))return{open:!0,nextChange:{time:d.period_end,label:"closes"}}}for(const d of a[o]){const c=Xe(d.period_begin),u=Xe(d.period_end),p=u<c||u===0?1440:u;if(l>=c&&l<p)return{open:!0,nextChange:{time:d.period_end,label:"closes"}};if(l<c)return{open:!1,nextChange:{time:d.period_begin,label:"opens"}}}for(let d=1;d<=7;d++){const c=(o-1+d)%7+1,u=a[c];if(u.length>0)return{open:!1,nextChange:{time:u[0].period_begin,label:"opens"}}}return{open:!1}}function ln(e,t=new Date){if(!e)return[];const i=t.getTime();return e.filter(r=>{const a=new Date(r.period_end).getTime();return!isNaN(a)&&a>=i})}function dn(e){const t=new Date(e.period_begin),i=new Date(e.period_end);if(isNaN(t.getTime())||isNaN(i.getTime()))return`${e.period_begin} – ${e.period_end}`;const r=Qe(t)===Qe(i),a=`${Qe(t)} ${t.toISOString().slice(11,16)}`,o=r?i.toISOString().slice(11,16):`${Qe(i)} ${i.toISOString().slice(11,16)}`;return`${a} – ${o}`}const La="OpeningHours-module_day",Ha="OpeningHours-module_dayLabel",Fa="OpeningHours-module_dayValue",za="OpeningHours-module_exceptional",Va="OpeningHours-module_exceptionalHeader",$a="OpeningHours-module_footnote",ve={day:La,dayLabel:Ha,dayValue:Fa,exceptional:za,exceptionalHeader:Va,footnote:$a},Ba=({openingTimes:e,chargingWhenClosed:t})=>{const{t:i}=B();if(!e)return null;const r=Ra(e),a=zn(e.regular_hours),o=ln(e.exceptional_closings),s=ln(e.exceptional_openings),l=e.twentyfourseven?i("location.open24_7"):r.open?i("location.openNow"):i("location.closedNow"),d=!e.twentyfourseven&&r.nextChange?r.nextChange.label==="closes"?i("location.closesAt",{time:r.nextChange.time}):i("location.opensAt",{time:r.nextChange.time}):void 0,c=!e.twentyfourseven||o.length>0||s.length>0||!!t,u={display:"flex",fontSize:12,lineHeight:1.5},f={minWidth:56,fontWeight:600},p={flex:"1 1 auto"},v={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},y={fontWeight:600,marginBottom:2},T={fontSize:11,fontStyle:"italic",color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6};return n.jsx(se,{icon:n.jsx(xo,{}),text:l,hint:d,children:c?n.jsxs(n.Fragment,{children:[!e.twentyfourseven&&[1,2,3,4,5,6,7].map(N=>{const k=a[N],U=k.length===0?i("location.closed"):k.map(D=>ka(D.period_begin,D.period_end)).join(", ");return n.jsxs("div",{className:ve.day,style:u,children:[n.jsx("div",{className:ve.dayLabel,style:f,children:Ia(i,N)}),n.jsx("div",{className:ve.dayValue,style:p,children:U})]},N)}),o.length>0&&n.jsxs("div",{className:ve.exceptional,style:v,children:[n.jsx("div",{className:ve.exceptionalHeader,style:y,children:i("location.exceptionalClosings")}),o.map((N,k)=>n.jsx("div",{children:dn(N)},`c-${k}`))]}),s.length>0&&n.jsxs("div",{className:ve.exceptional,style:v,children:[n.jsx("div",{className:ve.exceptionalHeader,style:y,children:i("location.exceptionalOpenings")}),s.map((N,k)=>n.jsx("div",{children:dn(N)},`o-${k}`))]}),t&&n.jsx("div",{className:ve.footnote,style:T,children:i("location.chargingWhenClosed")})]}):null})},Ua=({parkingType:e})=>{const{t}=B();return!e||e==="PARKING_TYPE_UNKNOWN"?null:n.jsx(se,{icon:n.jsx("img",{src:wt,alt:"parking icon"}),text:Dn(t,e)})},Ya=({accessibility:e})=>e?n.jsx(se,{icon:n.jsx("img",{src:wt,alt:"accessibility icon"}),text:e==="TESLA"?"Tesla vehicles only":"All electric vehicles"}):null,Wa=({evse:e})=>n.jsx(se,{icon:n.jsx("img",{src:Ve,alt:"power icon"}),text:e.evse_id||"",hint:e.physical_reference||void 0}),Ga=({evse:e})=>{const{t,language:i}=B(),r=e.connectors[0],a=r?.power&&r?.connectorPowerType?`${On(i,Math.floor(Vo(r)))}kW`:null,o=[Pn(t,e.status),a].filter(Boolean).join(", ");return n.jsx(se,{icon:n.jsx(Fn,{color:he(e.status)}),text:o})},qa=({connector:e})=>n.jsx(se,{icon:n.jsx("img",{src:An(e),alt:"socket type"}),text:jn(e)}),Za=()=>{const{t:e}=B();return n.jsx(se,{icon:n.jsx("img",{src:Sn,alt:"pricing"}),text:e("evse.pricing")})};function At(e){return e?.currency?{currency:e.currency,id:e.id,country_code:e.country_code,party_id:e.party_id,elements:(e?.elements||[]).map(t=>({priceComponents:(t?.price_components||[]).map(i=>({type:(()=>{switch(i.type){case"FLAT":return"FLAT";case"TIME":return"TIME";case"ENERGY":return"ENERGY";case"PARKING_TIME":return"PARKING_TIME";case"CONGESTION_TIME":return"CONGESTION_TIME"}})(),price:i.price,vat:i.vat,stepSize:i.step_size})),...t?.restrictions?{restrictions:{startTime:t?.restrictions?.start_time,endTime:t?.restrictions?.end_time,startDate:t?.restrictions?.start_date,endDate:t?.restrictions?.end_date,dayOfWeek:t?.restrictions?.day_of_week,minDuration:t?.restrictions?.min_duration,maxDuration:t?.restrictions?.max_duration}}:{}}))}:null}const Ka=({tariff:e,additionalCharges:t})=>{const{t:i}=B(),r=e?.elements?.some(a=>a?.price_components?.some(o=>o.type==="CONGESTION_TIME"));return n.jsxs(n.Fragment,{children:[r&&n.jsx("div",{style:{padding:"0.8rem",margin:"0.8rem 0",backgroundColor:"#FFF4E5",borderLeft:"3px solid #FF9800",borderRadius:"4px",fontSize:"13px",color:"#663C00"},children:i("tariff.congestionPricing")}),n.jsx(St,{tariff:At(e),cdrAdditionalCharges:t})]})},Ja=["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"];function un(e){const[t,i]=e.split(":").map(Number);return t*60+(i||0)}function Xa(e,t,i){const r=i.getHours()*60+i.getMinutes(),a=un(e),o=un(t);return o<a?r>=a||r<o:r>=a&&r<o}function Qa(e,t){if(xe(e))return!0;const i=e.restrictions;if(i.startTime&&i.endTime&&!Xa(i.startTime,i.endTime,t))return!1;if(i.dayOfWeek&&i.dayOfWeek.length>0){const r=Ja[t.getDay()];if(!i.dayOfWeek.includes(r))return!1}if(i.startDate){const r=new Date(i.startDate);if(!isNaN(r.getTime())&&t<r)return!1}if(i.endDate){const r=new Date(i.endDate);if(!isNaN(r.getTime())&&t>r)return!1}return!0}function es(e,t){const i=t.restrictions?.minDuration??0,r=t.restrictions?.maxDuration??0;return`${e}:${i}:${r}`}function ts(e,t=new Date){if(!e)return{elements:[],currency:""};const r=(e.elements||[]).filter(d=>Qa(d,t)),a={};r.forEach(d=>{const c=xe(d);(d.priceComponents||[]).forEach(u=>{const f=es(u.type,d),p=a[f];(!p||p.isBase&&!c)&&(a[f]={element:d,pc:u,isBase:c})})});const o=new Map,s=[];return Object.values(a).forEach(({element:d,pc:c})=>{o.has(d)||(o.set(d,[]),s.push(d)),o.get(d).push(c)}),{elements:s.map(d=>({...d,priceComponents:o.get(d)})),currency:e.currency||""}}const ns={display:"flex",flexWrap:"wrap",gap:6},Vn={fontSize:12,lineHeight:1.3,padding:"1px 8px",borderRadius:6,background:"color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 12%, transparent)",color:"var(--roadmap-brand-color, #6102d3)",border:"1px solid color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 30%, transparent)"},rs=Vn,is={ENERGY:"tariffPriceComponent.energy",TIME:"tariffPriceComponent.time",FLAT:"tariffPriceComponent.flat",PARKING_TIME:"tariffPriceComponent.parkingTime"},fn=["ENERGY","TIME","FLAT","PARKING_TIME"];function pn(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t||"EUR",maximumFractionDigits:2}).format(e)}function os(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function $n(e,t){return e.type==="PARKING_TIME"&&(e.price||0)===0&&!!t?.maxDuration&&(!t.minDuration||t.minDuration===0)}function as(e,t){const i=[];return e.forEach(r=>{(r.priceComponents||[]).forEach(a=>{t&&(a.price||0)<=0&&!$n(a,r.restrictions)||i.push({pc:a,restrictions:r.restrictions})})}),i.sort((r,a)=>{const o=fn.indexOf(r.pc.type),s=fn.indexOf(a.pc.type);return o===-1?1:s===-1?-1:o-s})}const ss=({elements:e,currency:t,skipZero:i=!0,highlight:r=!1,additionalCharges:a=[]})=>{const{t:o}=B(),s=as(e,i),l=r?rs:Vn;return s.length===0&&a.length===0?null:n.jsxs("div",{style:ns,children:[s.map(({pc:d,restrictions:c},u)=>{if($n(d,c))return n.jsx("div",{style:l,children:o("tariffPriceComponent.parkingTimeWait",{minutes:String(Math.floor(c.maxDuration/60))})},`pc-${u}`);const f=is[d.type];return f?n.jsx("div",{style:l,children:o(f,{total:pn(os(d),t)})},`pc-${u}`):null}),a.map(d=>{if(d.type!=="FLAT_FEE")return null;const c=d.price+(d.vat?d.price*(d.vat/100):0);return n.jsx("div",{style:l,children:o("cdrPrice.flatFee",{total:pn(c,t)})},`cdr-${d.id}`)})]})},hn={display:"flex",flexDirection:"column",gap:4,padding:"6px 0"},cs={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,fontSize:12,color:"var(--roadmap-muted-color, #6a6a6a)"},ls={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},He=({elements:e,currency:t,label:i,trailing:r,highlight:a=!1,additionalCharges:o,onClick:s})=>{const l=!!s,d=l?{...hn,cursor:"pointer",userSelect:"none"}:hn,c=u=>{s&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s())};return n.jsxs("div",{style:d,role:l?"button":void 0,tabIndex:l?0:void 0,onClick:s,onKeyDown:l?c:void 0,children:[i!=null&&n.jsx("div",{style:cs,children:i}),n.jsxs("div",{style:ls,children:[n.jsx(ss,{elements:e,currency:t,highlight:a,additionalCharges:o}),r]})]})},Bn={fontSize:12,fontWeight:600,padding:"4px 12px",borderRadius:6,cursor:"pointer",background:"transparent",color:"var(--roadmap-brand-color, #6102d3)",border:"1px solid color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 40%, transparent)"},ds={...Bn,cursor:"default",opacity:.6},us={display:"flex",alignItems:"center",gap:6,fontSize:12,color:"var(--roadmap-brand-color, #6102d3)"},fs={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},ps=({type:e,country_code:t,party_id:i,location_id:r,evse_uid:a})=>{const{t:o,reportProblem:s}=B(),[l,d]=h.useState("idle"),c=async u=>{if(u.stopPropagation(),!(l==="submitting"||l==="done")){d("submitting");try{await s?.({type:e,country_code:t,party_id:i,location_id:r,evse_uid:a}),d("done")}catch{d("error")}}};return l==="done"?n.jsxs("div",{style:us,children:[n.jsx(To,{}),n.jsx("span",{children:o("tariff.reportThanks")})]}):n.jsxs(n.Fragment,{children:[n.jsx("button",{type:"button",onClick:c,disabled:l==="submitting",style:l==="submitting"?ds:Bn,children:o("tariff.report")}),l==="error"&&n.jsx("div",{style:fs,children:o("tariff.reportError")})]})},hs={display:"flex",flexDirection:"column",alignItems:"flex-start",gap:10,padding:"14px 14px",marginTop:6,borderRadius:8,background:"color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)"},ms={fontSize:12,fontStyle:"italic",color:"var(--roadmap-muted-color, #6a6a6a)"},Ct=({country_code:e,party_id:t,location_id:i,evse_uid:r})=>{const{t:a}=B();return n.jsxs("div",{style:hs,children:[n.jsx("div",{style:ms,children:a("tariffPriceComponent.noTariff")}),n.jsx(ps,{type:"missing_tariff",country_code:e,party_id:t,location_id:i,evse_uid:r})]})},gs={display:"inline-flex",alignItems:"center",justifyContent:"center",color:"var(--roadmap-muted-color, #6a6a6a)",flex:"0 0 auto"},vs=({tariff:e,additionalCharges:t=[],evseId:i,evseUid:r,countryCode:a,partyId:o,locationId:s,locationName:l,setView:d})=>{const c=e?At(e):null,{elements:u,currency:f}=ts(c),p=u.map(T=>({...T,priceComponents:(T.priceComponents||[]).filter(N=>!!((N.price||0)>0||N.type==="PARKING_TIME"&&T.restrictions?.maxDuration&&(!T.restrictions.minDuration||T.restrictions.minDuration===0)))})).filter(T=>T.priceComponents.length>0);if(!(!!c&&p.length>0))return n.jsxs(n.Fragment,{children:[n.jsx(Ct,{country_code:a,party_id:o,location_id:s,evse_uid:r}),t.length>0&&n.jsx(He,{elements:[],currency:f,additionalCharges:t})]});const y=()=>d("tariffDetails",{tariff:e,additionalCharges:t,locationName:l,evseId:i,evseUid:r,countryCode:a,partyId:o,locationId:s});return n.jsx(He,{elements:p,currency:f,highlight:!0,additionalCharges:t,onClick:y,trailing:n.jsx("span",{style:gs,children:n.jsx(En,{})})})},Cs=({connector:e,tariffs:t,cdrAdditionalCharges:i,location:r,evseId:a,evseUid:o,setView:s})=>{const l=t?.find(d=>d.id===e?.tariff_ids?.[0]);return n.jsxs(n.Fragment,{children:[n.jsx(qa,{connector:e}),n.jsx(Za,{}),n.jsx(vs,{tariff:l,additionalCharges:i,evseId:a,evseUid:o||"",countryCode:r.country_code,partyId:r.party_id,locationId:r.id,locationName:r.name,setView:s})]})},ys={background:"color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)",borderRadius:8,padding:"8px 12px",marginTop:12},xs={paddingLeft:10,marginTop:10},Ts=({evse:e,tariffs:t,cdrAdditionalCharges:i,location:r,setView:a})=>{const o=he(e.status),s={...xs,borderLeft:`3px solid ${o}`,borderRadius:2};return n.jsxs("div",{style:ys,children:[n.jsx(Wa,{evse:e}),n.jsx(Ga,{evse:e}),e.connectors.map((l,d)=>n.jsx("div",{style:s,children:n.jsx(Cs,{connector:l,tariffs:t,cdrAdditionalCharges:i,location:r,evseId:e.evse_id,evseUid:e.uid,setView:a})},`connector-${d}`))]})},bs={fontSize:12,fontStyle:"italic",lineHeight:1.5,color:"var(--roadmap-text-color, #2a2a2a)",padding:"12px 0 12px 12px",margin:"8px 0",borderLeft:"3px solid color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 20%, transparent)"};function Es(e,t){if(!e||e.length===0)return;const i=(t||"").toLowerCase(),r=e.find(o=>o.language?.toLowerCase()===i);return r?r.text:(e.find(o=>o.language?.toLowerCase()==="en")||e[0])?.text}const _s=({directions:e})=>{const{language:t}=B(),i=Es(e||[],t);return i?n.jsx("div",{style:bs,children:i}):null},ws=({currentLocation:e,setView:t})=>{const{options:i}=B();return n.jsxs("div",{className:E.container,children:[i.context==="cpo"&&n.jsx("div",{className:E.publishingMode,children:e?.publish?"Public location":"Private location"}),n.jsx(_s,{directions:e.directions}),n.jsx(ba,{location:e}),n.jsx(Ea,{evses:e.evses}),n.jsx(Pa,{operator:e.operator,suboperator:e.suboperator||e.subOperator,fallbackOperatorName:e.operator_name||e.operatorName,fallbackSuboperatorName:e.suboperator_name||e.suboperatorName}),n.jsx(Ba,{openingTimes:e.opening_times,chargingWhenClosed:e.charging_when_closed}),n.jsx(Ua,{parkingType:e.parkingType}),n.jsx(Ya,{accessibility:e.charging_accessibility}),e.evses?.map(r=>n.jsx(Ts,{evse:r,tariffs:e.tariffs,cdrAdditionalCharges:e.cdrAdditionalCharges||[],location:e,setView:t},`${r.evse_id}-${r.uid}`))]})},Ns=()=>{const{setView:e}=De(),{locations:t,locationsStatus:i,options:r}=B(),[a,o]=h.useState(0);h.useEffect(()=>{o(0)},[t]);const s=t[a];if(i.type==="loading"||!s)return n.jsx("div",{className:E.container,children:n.jsx(Co,{})});const{evses:l=[],cdrAdditionalCharges:d}=s,c=a<t.length-1,u=a>0,f=window.location?.search?.includes("debug"),p=()=>{switch(r.version){case"v2":return[s?.address,s?.city];default:return[s?.address,s?.city]}},v=r.version==="v2";return n.jsxs(n.Fragment,{children:[f&&s&&n.jsx(Oo,{location:s}),n.jsx("div",{className:E.headerContainer,children:n.jsxs("div",{className:E.header,children:[t.length>1&&n.jsxs("div",{className:E.pagingation,children:[n.jsxs("span",{children:[a+1," / ",t.length]}),n.jsx("button",{disabled:!u,onClick:()=>{o(Math.max(0,a-1))},children:n.jsx(bn,{})}),n.jsx("button",{disabled:!c,onClick:()=>o(Math.min(t.length-1,a+1)),children:n.jsx(En,{})})]}),p().filter(Boolean).join(", ")]})}),!v&&n.jsx(sa,{setView:e,cdrAdditionalCharges:d,currentLocation:s,evses:l}),v&&n.jsx(ws,{setView:e,currentLocation:s})]})},Ss="BackButton-module_backButton",As={backButton:Ss};function Ot({onClick:e=()=>{}}){const{t}=B();return n.jsxs("button",{onClick:e,className:As.backButton,children:[n.jsx(bn,{}),t("backButton.backTo")]})}function Os(){const{t:e}=B(),{current:t,setView:i}=De(),{notes:r=[],evseId:a,locationName:o}=t?.args||{};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:E.headerContainer,children:n.jsxs("div",{className:E.header,onClick:()=>i("locations"),style:{cursor:"pointer"},children:[n.jsx(Ot,{}),o?.text||o]})}),n.jsxs("div",{className:E.container,children:[n.jsx("div",{className:E.subheader,children:e("tariffNote.subHeader")}),a&&n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:Ve,alt:"power icon"}),n.jsx("div",{className:E.text,children:a})]}),r.map(s=>n.jsx("p",{className:E.note,children:s},s))]})]})}function js(){const{t:e}=B(),{current:t,setView:i}=De(),{connector:r,tariff:a,additionalCharges:o,locationName:s,evseId:l,notes:d}=t?.args||{};return a||r?.tariff?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:E.headerContainer,children:n.jsxs("div",{className:E.header,onClick:()=>i("locations"),style:{cursor:"pointer"},children:[n.jsx(Ot,{}),s]})}),n.jsxs("div",{className:E.container,children:[n.jsx("div",{className:E.subheader,children:e("dynamicTariffs.subHeader")}),n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:Ve,alt:"power icon"}),n.jsx("div",{className:E.text,children:l})]}),a&&n.jsx(Ka,{tariff:a,additionalCharges:o}),r.tariff&&n.jsx(St,{tariff:r.tariff,compact:!1}),n.jsxs("div",{className:E.tariffNoteLink,onClick:()=>{i("tariffNote",{locationName:s,evseId:l,notes:d})},children:[n.jsx(_n,{})," ",e("tariffPriceComponent.viewTariff")]})]})]}):null}const Ps=Intl.DateTimeFormat().resolvedOptions().timeZone,pt={display:"flex",flexDirection:"column",gap:4,marginTop:14},mn={fontSize:12,fontWeight:600,textTransform:"capitalize",lineHeight:1.4},Ds={fontSize:12,lineHeight:1.5,color:"var(--roadmap-text-color, #2a2a2a)",marginTop:8},Is={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6};function et(e){const t=new Date(0);return t.setHours(Math.floor(e/60),e%60,0,0),t.toLocaleTimeString("nl",{hour:"2-digit",minute:"2-digit"})}function ks(e){const{format:t}=new Intl.DateTimeFormat(e,{weekday:"long"});return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].reduce((i,r,a)=>(i[r]=t(new Date(Date.UTC(2023,9,a+1))),i),{})}function Ms(e){return(e.priceComponents||[]).some(t=>!!((t.price||0)>0||t.type==="PARKING_TIME"&&e.restrictions?.maxDuration&&(!e.restrictions.minDuration||e.restrictions.minDuration===0)))}function Rs(e,t){return!e||e.length===0?void 0:(e.find(r=>r.language?.toLowerCase()===t?.toLowerCase())||e[0])?.text}function Ls(e,t){if(!e)return;const i=new Date(e);if(!isNaN(i.getTime()))return new Intl.DateTimeFormat(t,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(i)}function Hs(){const{t:e,language:t}=B(),{current:i,setView:r}=De(),{tariff:a,additionalCharges:o,locationName:s,evseId:l,evseUid:d,countryCode:c,partyId:u,locationId:f}=i?.args||{};if(!a)return null;const p=At(a),v={country_code:c||a.country_code||"",party_id:u||a.party_id||"",location_id:f||"",evse_uid:d||""},y=Rs(a.tariff_alt_text,t),T=Ls(a.last_updated,t),N=()=>n.jsx("div",{className:E.headerContainer,children:n.jsxs("div",{className:E.header,onClick:()=>r("locations"),style:{cursor:"pointer"},children:[n.jsx(Ot,{}),s]})});if(!p)return n.jsxs(n.Fragment,{children:[N(),n.jsx("div",{className:E.container,children:n.jsx(Ct,{...v})})]});const k=(p.elements||[]).filter(Ms),U=p.currency||"",D=o||[],j=k.filter(xe),C=Nt({elements:k,limit:40,now:new Date}),Y=C.length?[]:Hn(k,Ps,new Date),re=!Y.some(Z=>Z.isActive),ae=ks(t);return n.jsxs(n.Fragment,{children:[N(),n.jsxs("div",{className:E.container,children:[n.jsx("div",{className:E.subheader,children:e("tariff.fullDetailsHeader")}),l&&n.jsx(se,{icon:n.jsx("img",{src:Ve,alt:"power icon"}),text:l}),y&&n.jsx("div",{style:Ds,children:y}),T&&n.jsx("div",{style:Is,children:e("tariff.lastUpdated",{date:T})}),j.length>0&&n.jsx("div",{style:pt,children:n.jsx(He,{elements:j,currency:U,highlight:Y.length>0&&re,additionalCharges:D})}),Y.map(Z=>n.jsxs("div",{style:pt,children:[n.jsx("div",{style:mn,children:Z.days.map(W=>ae[W]).join(" – ")}),Z.items.map((W,K)=>n.jsx(He,{elements:W.elements||[],currency:U,highlight:!!W.isActive,label:W.isFullDay?void 0:`${et(W.startTime)} – ${et(W.endTime)}`},K))]},Z.days.join("-"))),C.map((Z,W)=>n.jsxs("div",{style:pt,children:[n.jsx("div",{style:mn,children:e("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(t,{weekday:"long",month:"short",day:"numeric"}).format(Z.date)})}),Z.items.map((K,ce)=>n.jsx(He,{elements:K.elements||[],currency:U,highlight:!!K.isActive,label:`${et(K.startTime)} – ${et(K.endTime)}`},ce))]},W)),Y.length===0&&C.length===0&&j.length===0&&n.jsx(Ct,{...v})]})]})}const Fs="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.48751%205.99758L9.85376%202.63133C10.0484%202.43664%2010.0484%202.1207%209.85376%201.9257L9.07157%201.14351C8.87688%200.948826%208.56095%200.948826%208.36595%201.14351L5.00001%204.51008L1.63376%201.14383C1.43907%200.949138%201.12313%200.949138%200.928135%201.14383L0.14626%201.9257C-0.0484277%202.12039%20-0.0484277%202.43633%200.14626%202.63133L3.51251%205.99758L0.14626%209.36383C-0.0484277%209.55851%20-0.0484277%209.87445%200.14626%2010.0695L0.928447%2010.8516C1.12313%2011.0463%201.43907%2011.0463%201.63407%2010.8516L5.00001%207.48508L8.36626%2010.8513C8.56095%2011.046%208.87688%2011.046%209.07188%2010.8513L9.85407%2010.0691C10.0488%209.87445%2010.0488%209.55851%209.85407%209.36351L6.48751%205.99758Z'%20fill='black'/%3e%3c/svg%3e",zs="CloseButton-module_closeButton",Vs={closeButton:zs};function Un({onClick:e}){return n.jsx("button",{onClick:e,className:Vs.closeButton,children:n.jsx("img",{src:Fs})})}function $s(){const[e,t]=h.useState("locations"),{setView:i}=De();return n.jsxs(pe,{name:"locations",currentView:e,onViewChange:t,children:[n.jsx(pe.View,{name:"locations",children:n.jsxs(Pe,{children:[n.jsx(Un,{onClick:()=>i("none")}),n.jsx(Ns,{})]})}),n.jsx(pe.View,{name:"tariffNote",children:n.jsx(Pe,{children:n.jsx(Os,{})})}),n.jsx(pe.View,{name:"dynamicTariff",children:n.jsx(Pe,{children:n.jsx(js,{})})}),n.jsx(pe.View,{name:"tariffDetails",children:n.jsx(Pe,{children:n.jsx(Hs,{})})})]})}const Bs="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M14.4985%200H1.50178C0.169343%200%20-0.502939%201.61659%200.441124%202.56066L5.5%207.62131V13C5.5%2013.4721%205.72228%2013.9167%206.1%2014.25L8.1%2015.7208C9.07728%2016.4038%2010.5%2015.7689%2010.5%2014.5208V7.62131L15.5592%202.56066C16.5013%201.6185%2015.8336%200%2014.4985%200ZM9%207V14.5L7%2013V7L1.5%201.5H14.5L9%207Z'%20fill='currentColor'%20/%3e%3c/svg%3e";function Us(){const{locationIds:e,fetchLocations:t,filters:i,isSearching:r}=B(),[a,o]=h.useState("none");return h.useEffect(()=>{e.length>0&&o("locations")},[e,o]),n.jsxs("div",{className:Te.container,children:[n.jsxs("div",{className:Te.controlsContainer,children:[n.jsx(ai,{onFocus:()=>{o("none")}}),n.jsxs("div",{className:Te.filterButton,onClick:()=>{o("filters")},children:[r??!1?n.jsx("div",{className:Te.spinner}):n.jsx("img",{className:Te.filterIcon,src:Bs}),qi(i)&&!(r??!1)&&n.jsx("span",{className:Te.filterCounter})]})]}),n.jsx("div",{className:Te.stackContainer,children:n.jsxs(pe,{name:"router",currentView:a,onViewChange:s=>{o(s)},children:[n.jsx(pe.View,{name:"locations",children:n.jsx($s,{})}),n.jsx(pe.View,{name:"filters",children:n.jsxs(Pe,{children:[n.jsx(Un,{onClick:()=>o("none")}),n.jsx(Xi,{})]})})]})})]})}function Yn(e){return!e.shadowRoot&&e?.theming?.backgroundColor?n.jsx(Ys,{...e}):n.jsx(lr,{options:e,language:e.language,children:n.jsxs(dr,{height:e?.height,children:[n.jsx(Us,{}),n.jsx(Sr,{})]})})}const Ys=e=>{const t=h.useRef(null),i=h.useRef(null),r=h.useRef(null),a=h.useRef(!1);return h.useEffect(()=>{const o=t.current;if(!o||a.current)return;const s=o.attachShadow({mode:"open"});r.current=s;let l="https://mapsdk.road.io/styles.css";e.sdkRoot&&(l=e.sdkRoot+"/styles.css");const d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.href=l,s.appendChild(d);const c=Wn.createRoot(s);return i.current=c,a.current=!0,()=>{i.current&&(i.current.unmount(),i.current=null),r.current=null,a.current=!1}},[]),h.useEffect(()=>{if(!i.current||!r.current)return;const o=h.createElement(Yn,{...e,shadowRoot:r.current});i.current.render(o)},[e]),n.jsx("div",{ref:t,style:{height:"100%",width:"100%"}})};exports.RoadMap=Yn;
45
29
  //# sourceMappingURL=index.js.map