@road-labs/map-sdk 0.0.28-rc.6 → 0.0.28-rc.7
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/README.md +5 -9
- package/dist/components/AnalyticsOverlay/AnalyticsOverlay.d.ts +1 -0
- package/dist/components/CustomMarker/CustomMarker.d.ts +2 -1
- package/dist/contexts/Map.d.ts +16 -1
- package/dist/i18n.d.ts +10 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2960 -2603
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +25 -7
- package/dist/utils/buckets.d.ts +2 -0
- package/dist/utils/buckets.test.d.ts +1 -0
- package/dist/utils/formatters.d.ts +1 -1
- package/dist/utils/i18n.test.d.ts +1 -0
- package/dist/utils/location.d.ts +1 -1
- package/dist/utils/request.d.ts +15 -4
- package/dist/utils/request.test.d.ts +1 -0
- package/dist/utils/status.d.ts +9 -0
- package/dist/utils/status.test.d.ts +1 -0
- package/dist/utils/statusFilters.d.ts +15 -0
- package/dist/utils/statusFilters.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),h=require("react"),qn=require("react-dom/client"),Me=require("react-dom"),Zn="app-module_container",Kn="app-module_loader",Pt={container:Zn,loader:Kn};function Jn(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 Xn(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 Qn={"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.open":"Open","location.openNow":"Open now","location.closedNow":"Closed","location.closed":"Closed","location.open24hours":"Open 24 hours","location.hours24":"24 hours","location.opensAt":"Opens {{time}}","location.opensAtDay":"Opens {{time}} {{day}}","location.closesAt":"Closes {{time}}","location.chargingWhenClosed":"Charging available when closed","location.exceptionalClosings":"Exceptional closing","location.exceptionalOpenings":"Exceptional opening","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"},er={"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.open":"Open","location.openNow":"Nu open","location.closedNow":"Gesloten","location.closed":"Gesloten","location.open24hours":"24 uur geopend","location.hours24":"24 uur","location.opensAt":"Opent om {{time}}","location.opensAtDay":"Opent {{day}} om {{time}}","location.closesAt":"Sluit om {{time}}","location.chargingWhenClosed":"Laden mogelijk wanneer gesloten","location.exceptionalClosings":"Uitzonderlijke sluiting","location.exceptionalOpenings":"Uitzonderlijke opening","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"},tr={"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.open":"Geöffnet","location.openNow":"Jetzt geöffnet","location.closedNow":"Geschlossen","location.closed":"Geschlossen","location.open24hours":"24 Stunden geöffnet","location.hours24":"24 Stunden","location.opensAt":"Öffnet um {{time}}","location.opensAtDay":"Öffnet {{day}} um {{time}}","location.closesAt":"Schließt um {{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"},nr={"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.open":"Ouvert","location.openNow":"Ouvert","location.closedNow":"Fermé","location.closed":"Fermé","location.open24hours":"Ouvert 24h/24","location.hours24":"24 heures","location.opensAt":"Ouvre à {{time}}","location.opensAtDay":"Ouvre {{day}} à {{time}}","location.closesAt":"Ferme à {{time}}","location.chargingWhenClosed":"Recharge possible hors des heures d'ouverture","location.exceptionalClosings":"Fermeture exceptionnelle","location.exceptionalOpenings":"Ouverture exceptionnelle","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 à"},rr={"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.open":"Aperto","location.openNow":"Aperto ora","location.closedNow":"Chiuso","location.closed":"Chiuso","location.open24hours":"Aperto 24 ore","location.hours24":"24 ore","location.opensAt":"Apre alle {{time}}","location.opensAtDay":"Apre {{day}} alle {{time}}","location.closesAt":"Chiude alle {{time}}","location.chargingWhenClosed":"Ricarica disponibile anche da chiuso","location.exceptionalClosings":"Chiusura eccezionale","location.exceptionalOpenings":"Apertura eccezionale","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"},ir={"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.open":"Abierto","location.openNow":"Abierto ahora","location.closedNow":"Cerrado","location.closed":"Cerrado","location.open24hours":"Abierto 24 horas","location.hours24":"24 horas","location.opensAt":"Abre a las {{time}}","location.opensAtDay":"Abre {{day}} a las {{time}}","location.closesAt":"Cierra a las {{time}}","location.chargingWhenClosed":"Carga disponible cuando está cerrado","location.exceptionalClosings":"Cierre excepcional","location.exceptionalOpenings":"Apertura excepcional","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"},or={en:Qn,nl:er,de:tr,fr:nr,it:rr,es:ir};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 ar(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 sr(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 lr(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 cr(e,t,i,{type:r,country_code:a,party_id:o,location_id:s,evse_uid:c}){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:c})})}async function dr(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"}),ur=({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,c]=h.useState(),[d,l]=h.useState(),[u,f]=h.useState(t.options.position),[p,v]=h.useState({}),[y,T]=h.useState([t.options.locationId].filter(Boolean)),[j,L]=h.useState([]),[Y,D]=h.useState({type:"success"}),[N,C]=h.useState(!1),I=window.location.search.includes("debug=true");I&&console.log("map-context options",t.options);const K=h.useMemo(()=>Xn(t.options.language||"en"),[t.options.language]),te=h.useMemo(()=>(g,S)=>or[K][g].replace(/\{\{(\w+)\}\}/g,(O,P)=>S[P]),[K]),W=(()=>{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 G=t.options.version,X=t.options.authorization;const ce=window.location.search.split("map_key=")[1];ce&&(X=ce,G="v2");const ge={...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=>ar(W,G,X,t.options.limitToLocationIds||[],{...ge,...g}),R=lr.bind(null,W,G,X),q=sr.bind(null,W,G,X),re=cr.bind(null,W,G,X);async function pe({ids:g,status:S}){D({type:"loading"});try{const{data:O}=await R({ids:g,...G==="v2"?{status:S}:{}});return L(O.filter(P=>P?.evses?.length)),D({type:"success"}),O}catch(O){D({type:"error",error:O})}}h.useEffect(()=>{t.options.locationId&&pe({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(()=>{dr(W,G,X).then(g=>{I&&console.log("retrieved remote config",g),o({...g,...a}),r({googleApiKey:g.googleMapsApiKey,...i,...g}),!i.locationId&&!i?.position?.lat&&g.ipLatitude?(I&&console.debug("setting position from ip latitude and longitude"),f({lat:g.ipLatitude,lng:g.ipLongitude})):i.locationId||(I&&console.debug("setting position from options position"),f(i?.position?.lat?i.position:{lat:52.3676,lng:4.9041}))}).catch(g=>c(g))},[]),h.useEffect(()=>{y?.length&&pe({ids:y,status:p.status})},[y]),h.useEffect(()=>{const{theming:g,shadowRoot:S}=t.options;if(S){const O=S.querySelectorAll("#road-map-styles")[0]||document.createElement("style");O.setAttribute("type","text/css"),O.setAttribute("id","road-map-styles"),O.innerHTML=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),h=require("react"),hr=require("react-dom/client"),Le=require("react-dom"),mr="app-module_container",gr="app-module_loader",Ht={container:mr,loader:gr};function vr(e){const[t,i]=h.useState(!1),r=h.useMemo(()=>new IntersectionObserver(([o])=>{o.isIntersecting&&(i(!0),r.disconnect())}),[e]);return h.useEffect(()=>{if(e.current)return r.observe(e.current),()=>r.disconnect()},[e.current]),t}function Cr(e){const t=(e||window.navigator.language).toLowerCase();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 yr={"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","evse.statusBlocked":"Blocked","evse.statusClosed":"Closed","ocpp.statusPreparing":"Preparing","ocpp.statusSuspendedEvse":"Suspended (EVSE)","ocpp.statusSuspendedEv":"Suspended (EV)","ocpp.statusFinishing":"Finishing","ocpp.statusFaulted":"Faulted","analytics.roaming":"Roaming","analytics.ocpp":"OCPP","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.open":"Open","location.openNow":"Open now","location.closedNow":"Closed","location.closed":"Closed","location.open24hours":"Open 24 hours","location.hours24":"24 hours","location.opensAt":"Opens {{time}}","location.opensAtDay":"Opens {{time}} {{day}}","location.closesAt":"Closes {{time}}","location.chargingWhenClosed":"Charging available when closed","location.exceptionalClosings":"Exceptional closing","location.exceptionalOpenings":"Exceptional opening","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"},xr={"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","evse.statusBlocked":"Geblokkeerd","evse.statusClosed":"Gesloten","ocpp.statusPreparing":"Voorbereiden","ocpp.statusSuspendedEvse":"Onderbroken (EVSE)","ocpp.statusSuspendedEv":"Onderbroken (EV)","ocpp.statusFinishing":"Afronden","ocpp.statusFaulted":"Storing","analytics.roaming":"Roaming","analytics.ocpp":"OCPP","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.open":"Open","location.openNow":"Nu open","location.closedNow":"Gesloten","location.closed":"Gesloten","location.open24hours":"24 uur geopend","location.hours24":"24 uur","location.opensAt":"Opent om {{time}}","location.opensAtDay":"Opent {{day}} om {{time}}","location.closesAt":"Sluit om {{time}}","location.chargingWhenClosed":"Laden mogelijk wanneer gesloten","location.exceptionalClosings":"Uitzonderlijke sluiting","location.exceptionalOpenings":"Uitzonderlijke opening","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"},Tr={"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","evse.statusBlocked":"Blockiert","evse.statusClosed":"Geschlossen","ocpp.statusPreparing":"Vorbereitung","ocpp.statusSuspendedEvse":"Unterbrochen (EVSE)","ocpp.statusSuspendedEv":"Unterbrochen (EV)","ocpp.statusFinishing":"Abschluss","ocpp.statusFaulted":"Fehler","analytics.roaming":"Roaming","analytics.ocpp":"OCPP","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.open":"Geöffnet","location.openNow":"Jetzt geöffnet","location.closedNow":"Geschlossen","location.closed":"Geschlossen","location.open24hours":"24 Stunden geöffnet","location.hours24":"24 Stunden","location.opensAt":"Öffnet um {{time}}","location.opensAtDay":"Öffnet {{day}} um {{time}}","location.closesAt":"Schließt um {{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"},br={"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","evse.statusBlocked":"Bloqué","evse.statusClosed":"Fermé","ocpp.statusPreparing":"Préparation","ocpp.statusSuspendedEvse":"Suspendu (EVSE)","ocpp.statusSuspendedEv":"Suspendu (EV)","ocpp.statusFinishing":"Finalisation","ocpp.statusFaulted":"En défaut","analytics.roaming":"Roaming","analytics.ocpp":"OCPP","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.open":"Ouvert","location.openNow":"Ouvert","location.closedNow":"Fermé","location.closed":"Fermé","location.open24hours":"Ouvert 24h/24","location.hours24":"24 heures","location.opensAt":"Ouvre à {{time}}","location.opensAtDay":"Ouvre {{day}} à {{time}}","location.closesAt":"Ferme à {{time}}","location.chargingWhenClosed":"Recharge possible hors des heures d'ouverture","location.exceptionalClosings":"Fermeture exceptionnelle","location.exceptionalOpenings":"Ouverture exceptionnelle","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 à"},Er={"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","evse.statusBlocked":"Bloccato","evse.statusClosed":"Chiuso","ocpp.statusPreparing":"Preparazione","ocpp.statusSuspendedEvse":"Sospeso (EVSE)","ocpp.statusSuspendedEv":"Sospeso (EV)","ocpp.statusFinishing":"Completamento","ocpp.statusFaulted":"Guasto","analytics.roaming":"Roaming","analytics.ocpp":"OCPP","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.open":"Aperto","location.openNow":"Aperto ora","location.closedNow":"Chiuso","location.closed":"Chiuso","location.open24hours":"Aperto 24 ore","location.hours24":"24 ore","location.opensAt":"Apre alle {{time}}","location.opensAtDay":"Apre {{day}} alle {{time}}","location.closesAt":"Chiude alle {{time}}","location.chargingWhenClosed":"Ricarica disponibile anche da chiuso","location.exceptionalClosings":"Chiusura eccezionale","location.exceptionalOpenings":"Apertura eccezionale","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"},_r={"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","evse.statusBlocked":"Bloqueado","evse.statusClosed":"Cerrado","ocpp.statusPreparing":"Preparando","ocpp.statusSuspendedEvse":"Suspendido (EVSE)","ocpp.statusSuspendedEv":"Suspendido (EV)","ocpp.statusFinishing":"Finalizando","ocpp.statusFaulted":"Averiado","analytics.roaming":"Roaming","analytics.ocpp":"OCPP","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.open":"Abierto","location.openNow":"Abierto ahora","location.closedNow":"Cerrado","location.closed":"Cerrado","location.open24hours":"Abierto 24 horas","location.hours24":"24 horas","location.opensAt":"Abre a las {{time}}","location.opensAtDay":"Abre {{day}} a las {{time}}","location.closesAt":"Cierra a las {{time}}","location.chargingWhenClosed":"Carga disponible cuando está cerrado","location.exceptionalClosings":"Cierre excepcional","location.exceptionalOpenings":"Apertura excepcional","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"},wr={en:yr,nl:xr,de:Tr,fr:br,it:Er,es:_r};async function Ie(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}}function An(e,t){return{...e?.length>0&&{locationIds:e},...t,...t?.operatorOnly?{operator:[t.operatorOnly]}:{},chargingAccessibility:t?.chargingAccessibility&&t.chargingAccessibility!=="ALL"?t.chargingAccessibility:void 0,searchPhrase:t?.searchPhrase||void 0,excludeOperator:t?.excludeOperator?.length?t.excludeOperator:void 0,authMethodCapabilities:t?.authMethodCapabilities?.length?t.authMethodCapabilities:void 0}}function Pn(e,t,i){return`${e.replace(/\/+$/,"")}/1/map/${t==="cpo"?"cpo/":""}${i}`}async function Nr(e,t,i,r,{precision:o,...a},s="roaming"){return Ie(Pn(e,s,"search"),{method:"POST",version:t,authorization:i,body:JSON.stringify({gridPrecision:o,...An(r,a)})})}async function Sr(e,t,i,r,o,a="roaming"){return Ie(Pn(e,a,"analytics"),{method:"POST",version:t,authorization:i,body:JSON.stringify(An(r,o))})}async function Or(e,t,i,{origin:r,ids:o}){return Ie(`${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:o})})}async function Ar(e,t,i,{ids:r,status:o}){return Ie(`${e}/1/map/locations`,{method:"POST",version:t,authorization:i,body:JSON.stringify({ids:r,...t==="v2"?{status:o}:{}})})}async function Pr(e,t,i,{type:r,country_code:o,party_id:a,location_id:s,evse_uid:c}){return Ie(`${e}/1/map/report-problem`,{method:"POST",version:t,authorization:i,body:JSON.stringify({type:r,country_code:o,party_id:a,location_id:s,evse_uid:c})})}async function jr(e,t,i){return(await Ie(`${e}/1/map/config`,{version:t,authorization:i}))?.data}const Dr=["EVSE_STATUS_","CONNECTOR_OCPP_STATUS_"];function _t(e){let t=(e||"").toUpperCase();for(const i of Dr)if(t.startsWith(i)){t=t.slice(i.length);break}return t===""||t==="UNSPECIFIED"?"UNKNOWN":t}const tt="#33AC19",nt="#005CEE",ze="#EB001B",jn="#F0A202",Dn="#9E9E9E",In=new Set(["CHARGING","PREPARING","SUSPENDED_EVSE","SUSPENDED_EV","FINISHING"]);function Ir(e){return e==="AVAILABLE"?tt:In.has(e)?nt:ze}function kr(e){return e==="FAULTED"?ze:e==="UNAVAILABLE"?jn:e==="UNKNOWN"?Dn:e==="AVAILABLE"?tt:In.has(e)||e==="RESERVED"?nt:ze}function _e(e,t="roaming"){const i=_t(e);return t==="cpo"?kr(i):Ir(i)}const Rr={AVAILABLE:"evse.statusAvailable",CHARGING:"evse.statusCharging",UNAVAILABLE:"evse.statusUnavailable",ERROR:"evse.statusError",UNKNOWN:"evse.statusUnknown",REMOVED:"evse.statusRemoved",PLANNED:"evse.statusPlanned",RESERVED:"evse.statusReserved",INOPERATIVE:"evse.statusInoperative",OUTOFORDER:"evse.statusOutOfOrder",BLOCKED:"evse.statusBlocked",CLOSED:"evse.statusClosed",PREPARING:"ocpp.statusPreparing",SUSPENDED_EVSE:"ocpp.statusSuspendedEvse",SUSPENDED_EV:"ocpp.statusSuspendedEv",FINISHING:"ocpp.statusFinishing",FAULTED:"ocpp.statusFaulted"};function wt(e){return Rr[_t(e)]||"evse.statusUnknown"}const Mr={roaming:[tt,nt,ze],cpo:[ze,jn,nt,tt,Dn]};function Lr(e=[],t="roaming"){const i=new Set(e.map(o=>_e(o.name,t))),r=Mr[t];return r.find(o=>i.has(o))||r.at(-1)}const Fr=[{id:"statusAvailable",labelKey:"filters.available",values:["AVAILABLE"],color:_e("AVAILABLE")},{id:"statusCharging",labelKey:"filters.charging",values:["CHARGING"],color:_e("CHARGING")},{id:"statusError",labelKey:"filters.notAvailable",values:["INOPERATIVE","UNKNOWN"],color:_e("INOPERATIVE")}],Hr=["AVAILABLE","PREPARING","CHARGING","SUSPENDED_EVSE","SUSPENDED_EV","FINISHING","RESERVED","UNAVAILABLE","FAULTED","UNSPECIFIED"],Vr=Hr.map(e=>({id:`ocppStatus_${e}`,labelKey:wt(e),values:[e],color:_e(e,"cpo")}));function kn(e){return e==="cpo"}function Rn(e){return kn(e)?Vr:Fr}function gt(e,t,i){switch(e){case"remove":return t.filter(r=>!i.includes(r));case"add":return Array.from(new Set([...t,...i]))}}function Mn(e,t){const i=_t(t);return Rn(e).find(r=>r.values.includes(i)||i==="UNKNOWN"&&r.values.includes("UNSPECIFIED"))}function Ln(e,t,i){const r=Mn(e,i);return!!(r&&r.values.every(o=>t.includes(o)))}function Vt(e,t,i){const r=Mn(e,i);if(!r)return;const o=Ln(e,t,i)?"remove":"add";return gt(o,t,r.values)}function zr(e){const{status:t,...i}=e||{};return i}function $r(e,t){return kn(e)?void 0:t}const Nt=h.createContext({isReady:!1,setPlace:()=>{},t:e=>`Translate ${e}`,language:"en",mapKind:"roaming"}),Br=({children:e,...t})=>{const[i,r]=h.useState(t.options),[o,a]=h.useState({preferredOperators:t.options.preferredOperators,...t.options.showOperatorOnly!==void 0&&{showOperatorOnly:t.options.showOperatorOnly},...t.options.showNoAdditionalFeeFilter!==void 0&&{showNoAdditionalFeeFilter:t.options.showNoAdditionalFeeFilter},...t.options.showPublishingModeFilter!==void 0&&{showPublishingModeFilter:t.options.showPublishingModeFilter},...t.options.showVehicleAvailabilityFilter!==void 0&&{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},...t.options.showAnalytics!==void 0&&{showAnalytics:t.options.showAnalytics}}),[s,c]=h.useState(),[l,d]=h.useState(),[f,u]=h.useState(t.options.position),[p,m]=h.useState({}),[v,x]=h.useState([t.options.locationId].filter(Boolean)),[O,I]=h.useState([]),[B,j]=h.useState({type:"success"}),[S,C]=h.useState(!1),[H,J]=h.useState(),[ne,X]=h.useState(),q=window.location.search.includes("debug=true");q&&console.log("map-context options",t.options);const ee=h.useMemo(()=>Cr(t.options.language),[t.options.language]),de=h.useMemo(()=>(b,P)=>wr[ee][b].replace(/\{\{(\w+)\}\}/g,(k,V)=>P[V]),[ee]),oe=(()=>{if(t.options.apiRoot&&t.options.apiRoot.includes(".dev"))return t.options.apiRoot;switch(t.options.version){case"v2":return"http://localhost:8080";default:return"https://api.road.io"}})();let E=t.options.version,L=t.options.authorization;const Y=window.location.search.split("map_key=")[1];Y&&(L=Y,E="v2");const te=ne?.toLowerCase()==="cpo"?"cpo":"roaming",he={...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}},we=b=>Nr(oe,E,L,t.options.limitToLocationIds||[],{...he,...b},te),g=b=>Sr(oe,E,L,t.options.limitToLocationIds||[],{...he,...b},te),T=Ar.bind(null,oe,E,L),F=Or.bind(null,oe,E,L),R=Pr.bind(null,oe,E,L);async function D({ids:b,status:P}){j({type:"loading"});try{const{data:k}=await T({ids:b,...E==="v2"?{status:$r(te,P)}:{}});return I(k.filter(V=>V?.evses?.length)),j({type:"success"}),k}catch(k){j({type:"error",error:k})}}h.useEffect(()=>{t.options.locationId&&D({ids:[t.options.locationId],status:p.status}).then(b=>{if(b?.length){const P=b[0];P.geoLocation?.coordinates&&u({lng:P.geoLocation?.coordinates[0],lat:P.geoLocation?.coordinates[1]})}})},[t.options.locationId]),h.useEffect(()=>{jr(oe,E,L).then(b=>{q&&console.log("retrieved remote config",b),a({...b,...o}),r({googleApiKey:b.googleMapsApiKey,...i,...b}),X(b.context),!i.locationId&&!i?.position?.lat&&b.ipLatitude?(q&&console.debug("setting position from ip latitude and longitude"),u({lat:b.ipLatitude,lng:b.ipLongitude})):i.locationId||(q&&console.debug("setting position from options position"),u(i?.position?.lat?i.position:{lat:52.3676,lng:4.9041}))}).catch(b=>c(b))},[]),h.useEffect(()=>{v?.length&&D({ids:v,status:p.status})},[v]),h.useEffect(()=>{const{theming:b,shadowRoot:P}=t.options;if(P){const k=P.querySelectorAll("#road-map-styles")[0]||document.createElement("style");k.setAttribute("type","text/css"),k.setAttribute("id","road-map-styles"),k.innerHTML=`
|
|
2
2
|
:host {
|
|
3
|
-
--roadmap-brand-color: ${
|
|
4
|
-
--roadmap-background-color: ${
|
|
5
|
-
--roadmap-text-color: ${
|
|
6
|
-
--roadmap-border-color: ${
|
|
7
|
-
--roadmap-font-family: ${
|
|
3
|
+
--roadmap-brand-color: ${b?.brandColor||"#6102d3"};
|
|
4
|
+
--roadmap-background-color: ${b?.backgroundColor||"#ffffff"};
|
|
5
|
+
--roadmap-text-color: ${b?.textColor||"#2a2a2a"};
|
|
6
|
+
--roadmap-border-color: ${b?.borderColor||"#dddddd"};
|
|
7
|
+
--roadmap-font-family: ${b?.fontFamily||"Inter"};
|
|
8
8
|
}
|
|
9
|
-
`,S.appendChild(O)}},[t.options.theming]);const we=!!(u&&i?.googleApiKey),m=h.useMemo(()=>({options:i,setPlace:l,place:d,t:te,language:K,fetchGeohashes:_,locations:j,locationsStatus:Y,filterConfiguration:a,setFilters:v,setLocationsIds:T,locationIds:y,filters:p,fetchTariffs:q,reportProblem:re,fetchLocations:R,isReady:we,position:u,isSearching:N,setIsSearching:C}),[u,K,j,Y,q,re,t.options,d,l,v,p,a,y,T,te,_,R,we,N]);return n.jsx(yt.Provider,{value:m,children:e})};function U(){const e=h.useContext(yt);if(e===void 0)throw new Error("useMapContext must be used within a MapProvider");return e}function fr(e){const{isReady:t}=h.useContext(yt),i=h.useRef(null),a=Jn(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 pr="Map-module_container",hr={container:pr};function mr(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 c(u){try{l(r.next(u))}catch(f){s(f)}}function d(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?o(u.value):a(u.value).then(c,d)}l((r=r.apply(e,[])).next())})}function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vr=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},Cr=gr(vr);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:c=[],mapIds:d,nonce:l,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=c,this.mapIds=d,this.nonce=l,this.region=u,this.retries=f,this.url=p,this.version=v,_e.instance){if(!Cr(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+=`®ion=${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,c,d,l="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={}),j=new Set,L=new URLSearchParams,Y=()=>s||(s=new Promise((D,N)=>mr(this,void 0,void 0,function*(){var C;yield c=v.createElement("script"),c.id=this.id,L.set("libraries",[...j]+"");for(d in o)L.set(d.replace(/[A-Z]/g,I=>"_"+I[0].toLowerCase()),o[d]);L.set("callback",u+".maps."+p),c.src=this.url+"?"+L,T[p]=D,c.onerror=()=>s=N(Error(l+" could not load.")),c.nonce=this.nonce||((C=v.querySelector("script[nonce]"))===null||C===void 0?void 0:C.nonce)||"",v.head.append(c)})));T[f]?console.warn(l+" only loads once. Ignoring:",o):T[f]=(D,...N)=>j.add(D)&&Y().then(()=>T[f](D,...N))})(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 nt;function vn(e,t){if(nt)return nt;const i=new _e({apiKey:e,version:"weekly",language:t});return nt=i,i}const rt="0123456789bcdefghjkmnpqrstuvwxyz";class ee{static encode(t,i,r){if(typeof r>"u"){for(let p=1;p<=12;p++){const v=ee.encode(t,i,p),y=ee.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,c="",d=-90,l=90,u=-180,f=180;for(;c.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+l)/2;t>=p?(a=a*2+1,d=p):(a=a*2,l=p)}s=!s,++o==5&&(c+=rt.charAt(a),o=0,a=0)}return c}static decode(t){const i=ee.bounds(t),r=i.sw.lat,a=i.sw.lon,o=i.ne.lat,s=i.ne.lon;let c=(r+o)/2,d=(a+s)/2;return c=c.toFixed(Math.floor(2-Math.log(o-r)/Math.LN10)),d=d.toFixed(Math.floor(2-Math.log(s-a)/Math.LN10)),{lat:Number(c),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 l=t.charAt(d),u=rt.indexOf(l);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 c=t.length%2;return a[i][c].indexOf(o)!=-1&&s!=""&&(s=ee.adjacent(s,i)),s+rt.charAt(r[i][c].indexOf(o))}static neighbours(t){return{n:ee.adjacent(t,"n"),ne:ee.adjacent(ee.adjacent(t,"n"),"e"),e:ee.adjacent(t,"e"),se:ee.adjacent(ee.adjacent(t,"s"),"e"),s:ee.adjacent(t,"s"),sw:ee.adjacent(ee.adjacent(t,"s"),"w"),w:ee.adjacent(t,"w"),nw:ee.adjacent(ee.adjacent(t,"n"),"w")}}}function yr(e,t,i){class r extends google.maps.OverlayView{constructor(o,s,c){super(),this.container=o,this.pane=s,this.position=c}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 xr({position:e,pane:t="floatPane",map:i,zIndex:r,children:a}){const o=h.useMemo(()=>{const c=document.createElement("div");return c.style.position="absolute",c},[]),s=h.useMemo(()=>yr(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 me(e){switch(e){case"AVAILABLE":return"#33AC19";case"CHARGING":return"#005CEE";default:return"#EB001B"}}const Tr="CustomMarker-module_container",br={container:Tr},Er=new Intl.NumberFormat(void 0,{maximumSignificantDigits:3}),_r=e=>Er.format(e),wr=({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:me("AVAILABLE")}:e.statuses.find(s=>s.name==="CHARGING")?{background:me("CHARGING")}:{background:me("UNAVAILABLE")},[e]);return n.jsx(xr,{position:e.centroid,map:t,zIndex:r?99:0,children:n.jsx("button",{className:br.container,onClick:a,style:o,onTouchEndCapture:a,children:e.count>1?_r(e.count):""})})},Nr=[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 it(e){return Nr[e]}function It(e,t){const i=e.getSouthWest().toJSON(),r=e.getNorthEast().toJSON(),a=ee.encode(i.lat,i.lng,t),o=ee.bounds(a),s=Math.abs(o.sw.lat-o.ne.lat),c=Math.abs(o.sw.lon-o.ne.lon);let d=o.sw.lat;for(;d<=r.lat;)d=d+s;let l=o.sw.lon;for(;l<=r.lng;)l=l+c;return{nwLat:d,nwLng:o.sw.lon,seLat:o.sw.lat,seLng:l}}function Sr(e,t){return e.nwLat===t.nwLat&&e.nwLng===t.nwLng&&e.seLat===t.seLat&&e.seLng===t.seLng}function Or({map:e,filters:t,fetchGeohashes:i,onMarkerClicked:r}){const{setIsSearching:a}=U(),[o,s]=h.useState([]),[c,d]=h.useState({zoom:it(e.getZoom()),normalizedBounds:It(e.getBounds(),it(e.getZoom()))});h.useEffect(()=>{let f=c.zoom,p;e.addListener("idle",()=>{const v=it(e.getZoom()),y={...c,zoom:v},T=It(e.getBounds(),f);p&&Sr(p,T)||(p=T,d({...y,normalizedBounds:T}))})},[]);function l(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(!c.normalizedBounds)return;let f=!1;return a(!0),i({precision:c.zoom,bbox:c.normalizedBounds,...t}).then(({data:p})=>{f||(l(p),a(!1))}).catch(p=>{a(!1)}),()=>{f=!0,a(!1)}},[c,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(wr,{map:e,data:f,onClick:u},f.key))})}function Ar(){const{place:e,options:t,fetchGeohashes:i,setLocationsIds:r,language:a,filters:o,position:s}=U(),c=t.googleApiKey,[d,l]=h.useState(),u=h.useRef(null),f=vn(c,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",()=>{l(v)}),()=>{console.log("unmounting")}})},[c]),n.jsx("div",{className:hr.container,ref:u,children:d&&d.getBounds()&&n.jsx(Or,{filters:o,onMarkerClicked:p=>{r([...p])},map:d,fetchGeohashes:i})})}function et(){return et=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},et.apply(null,arguments)}function Cn(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 pt(e,t){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},pt(e,t)}function xt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pt(e,t)}function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Be={exports:{}},Ue={exports:{}},V={};/** @license React v16.13.1
|
|
9
|
+
`,P.appendChild(k)}},[t.options.theming]);const z=!!(f&&i?.googleApiKey&&ne),M=h.useMemo(()=>({options:i,setPlace:d,place:l,t:de,language:ee,fetchGeohashes:we,fetchAnalytics:g,searchBounds:H,setSearchBounds:J,mapKind:te,locations:O,locationsStatus:B,filterConfiguration:o,setFilters:m,setLocationsIds:x,locationIds:v,filters:p,fetchTariffs:F,reportProblem:R,fetchLocations:T,isReady:z,position:f,isSearching:S,setIsSearching:C}),[f,ee,O,B,F,R,t.options,l,d,m,p,o,v,x,de,we,g,H,te,T,z,S]);return n.jsx(Nt.Provider,{value:M,children:e})};function $(){const e=h.useContext(Nt);if(e===void 0)throw new Error("useMapContext must be used within a MapProvider");return e}function Ur(e){const{isReady:t}=h.useContext(Nt),i=h.useRef(null),o=vr(i)&&t;return n.jsxs("div",{ref:i,className:Ht.container,style:{height:`${e.height}px`},children:[!o&&n.jsx("div",{className:Ht.loader,children:"Loading..."}),o&&e.children]})}const Wr="Map-module_container",Yr={container:Wr};function Gr(e,t,i,r){function o(a){return a instanceof i?a:new i(function(s){s(a)})}return new(i||(i=Promise))(function(a,s){function c(f){try{d(r.next(f))}catch(u){s(u)}}function l(f){try{d(r.throw(f))}catch(u){s(u)}}function d(f){f.done?a(f.value):o(f.value).then(c,l)}d((r=r.apply(e,[])).next())})}function Kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr=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,o,a;if(Array.isArray(t)){if(r=t.length,r!=i.length)return!1;for(o=r;o--!==0;)if(!e(t[o],i[o]))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(a=Object.keys(t),r=a.length,r!==Object.keys(i).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(i,a[o]))return!1;for(o=r;o--!==0;){var s=a[o];if(!e(t[s],i[s]))return!1}return!0}return t!==t&&i!==i},Zr=Kr(qr);const zt="__googleMapsScriptId";var Pe;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Pe||(Pe={}));class Ee{constructor({apiKey:t,authReferrerPolicy:i,channel:r,client:o,id:a=zt,language:s,libraries:c=[],mapIds:l,nonce:d,region:f,retries:u=3,url:p="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=i,this.channel=r,this.client=o,this.id=a||zt,this.language=s,this.libraries=c,this.mapIds=l,this.nonce=d,this.region=f,this.retries=u,this.url=p,this.version=m,Ee.instance){if(!Zr(this.options,Ee.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Ee.instance.options)}`);return Ee.instance}Ee.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?Pe.FAILURE:this.done?Pe.SUCCESS:this.loading?Pe.LOADING:Pe.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+=`®ion=${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(a=>!r[a]&&delete r[a]),!((i=(t=window?.google)===null||t===void 0?void 0:t.maps)===null||i===void 0)&&i.importLibrary||(a=>{let s,c,l,d="The Google Maps JavaScript API",f="google",u="importLibrary",p="__ib__",m=document,v=window;v=v[f]||(v[f]={});const x=v.maps||(v.maps={}),O=new Set,I=new URLSearchParams,B=()=>s||(s=new Promise((j,S)=>Gr(this,void 0,void 0,function*(){var C;yield c=m.createElement("script"),c.id=this.id,I.set("libraries",[...O]+"");for(l in a)I.set(l.replace(/[A-Z]/g,H=>"_"+H[0].toLowerCase()),a[l]);I.set("callback",f+".maps."+p),c.src=this.url+"?"+I,x[p]=j,c.onerror=()=>s=S(Error(d+" could not load.")),c.nonce=this.nonce||((C=m.querySelector("script[nonce]"))===null||C===void 0?void 0:C.nonce)||"",m.head.append(c)})));x[u]?console.warn(d+" only loads once. Ignoring:",a):x[u]=(j,...S)=>O.add(j)&&B().then(()=>x[u](j,...S))})(r);const o=this.libraries.map(a=>this.importLibrary(a));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),a=>{const s=new ErrorEvent("error",{error:a});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 ot;function Fn(e,t){if(ot)return ot;const i=new Ee({apiKey:e,version:"weekly",language:t});return ot=i,i}const at="0123456789bcdefghjkmnpqrstuvwxyz";class Q{static encode(t,i,r){if(typeof r>"u"){for(let p=1;p<=12;p++){const m=Q.encode(t,i,p),v=Q.decode(m);if(v.lat==t&&v.lon==i)return m}r=12}if(t=Number(t),i=Number(i),r=Number(r),isNaN(t)||isNaN(i)||isNaN(r))throw new Error("Invalid geohash");let o=0,a=0,s=!0,c="",l=-90,d=90,f=-180,u=180;for(;c.length<r;){if(s){const p=(f+u)/2;i>=p?(o=o*2+1,f=p):(o=o*2,u=p)}else{const p=(l+d)/2;t>=p?(o=o*2+1,l=p):(o=o*2,d=p)}s=!s,++a==5&&(c+=at.charAt(o),a=0,o=0)}return c}static decode(t){const i=Q.bounds(t),r=i.sw.lat,o=i.sw.lon,a=i.ne.lat,s=i.ne.lon;let c=(r+a)/2,l=(o+s)/2;return c=c.toFixed(Math.floor(2-Math.log(a-r)/Math.LN10)),l=l.toFixed(Math.floor(2-Math.log(s-o)/Math.LN10)),{lat:Number(c),lon:Number(l)}}static bounds(t){if(t.length==0)throw new Error("Invalid geohash");t=t.toLowerCase();let i=!0,r=-90,o=90,a=-180,s=180;for(let l=0;l<t.length;l++){const d=t.charAt(l),f=at.indexOf(d);if(f==-1)throw new Error("Invalid geohash");for(let u=4;u>=0;u--){const p=f>>u&1;if(i){const m=(a+s)/2;p==1?a=m:s=m}else{const m=(r+o)/2;p==1?r=m:o=m}i=!i}}return{sw:{lat:r,lon:a},ne:{lat:o,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"]},o={n:["prxz","bcfguvyz"],s:["028b","0145hjnp"],e:["bcfguvyz","prxz"],w:["0145hjnp","028b"]},a=t.slice(-1);let s=t.slice(0,-1);const c=t.length%2;return o[i][c].indexOf(a)!=-1&&s!=""&&(s=Q.adjacent(s,i)),s+at.charAt(r[i][c].indexOf(a))}static neighbours(t){return{n:Q.adjacent(t,"n"),ne:Q.adjacent(Q.adjacent(t,"n"),"e"),e:Q.adjacent(t,"e"),se:Q.adjacent(Q.adjacent(t,"s"),"e"),s:Q.adjacent(t,"s"),sw:Q.adjacent(Q.adjacent(t,"s"),"w"),w:Q.adjacent(t,"w"),nw:Q.adjacent(Q.adjacent(t,"n"),"w")}}}function Jr(e,t,i){class r extends google.maps.OverlayView{constructor(a,s,c){super(),this.container=a,this.pane=s,this.position=c}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 Xr({position:e,pane:t="floatPane",map:i,zIndex:r,children:o}){const a=h.useMemo(()=>{const c=document.createElement("div");return c.style.position="absolute",c},[]),s=h.useMemo(()=>Jr(a,t,{lat:e.lat,lng:e.lon}),[a,t,e]);return h.useEffect(()=>(s?.setMap(i),()=>{s?.setMap(null)}),[i,s]),h.useEffect(()=>{a.style.zIndex=`${r}`},[r,a]),Le.createPortal(o,a)}const Qr="CustomMarker-module_container",ei={container:Qr},ti=new Intl.NumberFormat(void 0,{maximumSignificantDigits:3}),ni=e=>ti.format(e),ri=({data:e,map:t,onClick:i,highlight:r,kind:o="roaming"})=>{const a=h.useCallback(()=>{i(e)},[i,e]),s=h.useMemo(()=>({background:Lr(e.statuses,o)}),[e,o]);return n.jsx(Xr,{position:e.centroid,map:t,zIndex:r?99:0,children:n.jsx("button",{className:ei.container,onClick:a,style:s,onTouchEndCapture:a,children:e.count>1?ni(e.count):""})})};function ii(e,t){if(e.count!==t.count)return!1;const i=e.statuses||[],r=t.statuses||[];return i.length!==r.length?!1:i.every((o,a)=>o.name===r[a].name&&o.count===r[a].count)}function oi(e,t){const i=new Map(e.map(r=>[r.key,r]));return t.map(r=>{const o=i.get(r.key);return o&&ii(o,r)?o:r})}const ai=[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 st(e){return ai[e]}function $t(e,t){const i=e.getSouthWest().toJSON(),r=e.getNorthEast().toJSON(),o=Q.encode(i.lat,i.lng,t),a=Q.bounds(o),s=Math.abs(a.sw.lat-a.ne.lat),c=Math.abs(a.sw.lon-a.ne.lon);let l=a.sw.lat;for(;l<=r.lat;)l=l+s;let d=a.sw.lon;for(;d<=r.lng;)d=d+c;return{nwLat:l,nwLng:a.sw.lon,seLat:a.sw.lat,seLng:d}}function si(e,t){return e.nwLat===t.nwLat&&e.nwLng===t.nwLng&&e.seLat===t.seLat&&e.seLng===t.seLng}function ci({map:e,filters:t,fetchGeohashes:i,onMarkerClicked:r}){const{setIsSearching:o,setSearchBounds:a,mapKind:s}=$(),[c,l]=h.useState([]),[d,f]=h.useState({zoom:st(e.getZoom()),normalizedBounds:$t(e.getBounds(),st(e.getZoom()))});h.useEffect(()=>{let m=d.zoom,v;e.addListener("idle",()=>{const x=st(e.getZoom()),O={...d,zoom:x},I=$t(e.getBounds(),m);v&&si(v,I)||(v=I,f({...O,normalizedBounds:I}))})},[]);function u(m){l(oi(c,m))}h.useEffect(()=>{d.normalizedBounds&&a?.(d.normalizedBounds)},[d.normalizedBounds]),h.useEffect(()=>{if(!d.normalizedBounds)return;let m=!1;return o(!0),i({precision:d.zoom,bbox:d.normalizedBounds,...t}).then(({data:v})=>{m||(u(v),o(!1))}).catch(v=>{o(!1)}),()=>{m=!0,o(!1)}},[d,t,s]);const p=h.useCallback(m=>{const v=m.ids;v.length==100&&e.setZoom(e.getZoom()+2),e.panTo({lat:m.centroid.lat,lng:m.centroid.lon}),v.length!==100&&r(v)},[e,r]);return n.jsx(n.Fragment,{children:c.filter(Boolean).map((m,v)=>n.jsx(ri,{map:e,data:m,kind:s,onClick:p},m.key))})}function li(){const{place:e,options:t,fetchGeohashes:i,setLocationsIds:r,language:o,filters:a,position:s}=$(),c=t.googleApiKey,[l,d]=h.useState(),f=h.useRef(null),u=Fn(c,o);return h.useEffect(()=>{l&&e?.geometry?.viewport&&l.fitBounds(e.geometry.viewport),l&&e?.geometry?.location&&l.setCenter(e.geometry.location)},[l,e]),h.useEffect(()=>{u.importLibrary("maps").then(({Map:p})=>{const m=new p(f.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 m.addListener("idle",()=>{d(m)}),()=>{console.log("unmounting")}})},[c]),n.jsx("div",{className:Yr.container,ref:f,children:l&&l.getBounds()&&n.jsx(ci,{filters:a,onMarkerClicked:p=>{r([...p])},map:l,fetchGeohashes:i})})}const St=({color:e,size:t=10})=>n.jsx("span",{style:{display:"block",width:t,height:t,borderRadius:t,background:e}}),Bt="(min-width: 768px)",di=380,Ut=20,ui=48;function fi(){const[e,t]=h.useState(()=>window.matchMedia(Bt).matches);return h.useEffect(()=>{const i=window.matchMedia(Bt),r=o=>t(o.matches);return i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[]),e}const pi={position:"absolute",top:Ut,left:di,right:Ut,zIndex:1,display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"flex-start",gap:12,fontFamily:"var(--roadmap-font-family, Inter), system-ui",fontSize:12,lineHeight:"16px",color:"var(--roadmap-text-color, #2a2a2a)",pointerEvents:"none",userSelect:"none",transition:"opacity 0.2s ease"},hi={boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center",gap:8,height:ui,padding:"0 12px",background:"var(--roadmap-background-color, #fff)",border:"1px solid var(--roadmap-border-color, #ddd)",borderRadius:10,whiteSpace:"nowrap",pointerEvents:"auto"},mi={fontSize:10,fontWeight:600,letterSpacing:.4,textTransform:"uppercase",color:"var(--roadmap-muted-color, #6a6a6a)"},vt={display:"inline-flex",alignItems:"center",gap:6,padding:"4px 6px",borderWidth:1,borderStyle:"solid",borderColor:"transparent",borderRadius:6,background:"none",font:"inherit",color:"inherit",lineHeight:"16px",outline:"none"},gi={...vt,borderColor:"var(--roadmap-brand-color, #ff3d00)",color:"var(--roadmap-brand-color, #ff3d00)"},vi={cursor:"pointer"},Ci={fontSize:13,fontWeight:600};function Wt({caption:e,buckets:t,format:i,kind:r,filterKind:o}){const{t:a,filters:s,setFilters:c}=$(),l=s?.status||[],d=f=>{const u=Vt(o,l,f);!u||!c||c({...s,status:u})};return n.jsxs("div",{style:hi,children:[e&&n.jsx("span",{style:mi,children:e}),t.map(f=>{const u=!!o&&Vt(o,l,f.name)!==void 0,p=u&&Ln(o,l,f.name),m=n.jsxs(n.Fragment,{children:[n.jsx(St,{color:_e(f.name,r),size:8}),n.jsx("span",{style:Ci,children:i.format(f.count)}),a(wt(f.name))]});return u?n.jsx("button",{type:"button","aria-pressed":p,style:{...p?gi:vt,...vi},onClick:()=>d(f.name),children:m},f.name):n.jsx("span",{style:vt,children:m},f.name)})]})}function yi(){const{t:e,language:t,options:i,filters:r,filterConfiguration:o,searchBounds:a,fetchAnalytics:s,mapKind:c}=$(),[l,d]=h.useState(),[f,u]=h.useState(!1),p=fi(),m=i?.version==="v2"&&!!o?.showAnalytics,v=JSON.stringify(zr(r)),x=h.useMemo(()=>JSON.parse(v),[v]);h.useEffect(()=>{if(!m||!a||!s)return;let S=!1;return u(!0),s({bbox:a,...x}).then(C=>{S||d(C?.data)}).catch(()=>{S||d(void 0)}).finally(()=>{S||u(!1)}),()=>{S=!0}},[m,a,x,c]);const O=h.useMemo(()=>new Intl.NumberFormat(t),[t]);if(!m||!p||!l)return null;const I=c==="cpo",B=l.evses.byStatus||[],j=l.connectors.byOcppStatus||[];return B.length===0&&j.length===0?null:n.jsxs("div",{style:{...pi,opacity:f?.6:1},children:[B.length>0&&n.jsx(Wt,{caption:I?e("analytics.roaming"):void 0,buckets:B,format:O,kind:"roaming",filterKind:I?void 0:"roaming"}),I&&j.length>0&&n.jsx(Wt,{caption:e("analytics.ocpp"),buckets:j,format:O,kind:"cpo",filterKind:"cpo"})]})}function rt(){return rt=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},rt.apply(null,arguments)}function Hn(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 Ct(e,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},Ct(e,t)}function Ot(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ct(e,t)}function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var We={exports:{}},Ye={exports:{}},U={};/** @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
|
|
16
|
+
*/var Yt;function Ti(){if(Yt)return U;Yt=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,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C!==null){var H=C.$$typeof;switch(H){case t:switch(C=C.type,C){case l:case d:case r:case a:case o:case u:return C;default:switch(C=C&&C.$$typeof,C){case c:case f:case v:case m:case s:return C;default:return H}}case i:return H}}}function S(C){return j(C)===d}return U.AsyncMode=l,U.ConcurrentMode=d,U.ContextConsumer=c,U.ContextProvider=s,U.Element=t,U.ForwardRef=f,U.Fragment=r,U.Lazy=v,U.Memo=m,U.Portal=i,U.Profiler=a,U.StrictMode=o,U.Suspense=u,U.isAsyncMode=function(C){return S(C)||j(C)===l},U.isConcurrentMode=S,U.isContextConsumer=function(C){return j(C)===c},U.isContextProvider=function(C){return j(C)===s},U.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},U.isForwardRef=function(C){return j(C)===f},U.isFragment=function(C){return j(C)===r},U.isLazy=function(C){return j(C)===v},U.isMemo=function(C){return j(C)===m},U.isPortal=function(C){return j(C)===i},U.isProfiler=function(C){return j(C)===a},U.isStrictMode=function(C){return j(C)===o},U.isSuspense=function(C){return j(C)===u},U.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===a||C===o||C===u||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===m||C.$$typeof===s||C.$$typeof===c||C.$$typeof===f||C.$$typeof===O||C.$$typeof===I||C.$$typeof===B||C.$$typeof===x)},U.typeOf=j,U}var W={};/** @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
|
|
23
|
+
*/var Gt;function bi(){return Gt||(Gt=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,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function j(y){return typeof y=="string"||typeof y=="function"||y===r||y===d||y===a||y===o||y===u||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===m||y.$$typeof===s||y.$$typeof===c||y.$$typeof===f||y.$$typeof===O||y.$$typeof===I||y.$$typeof===B||y.$$typeof===x)}function S(y){if(typeof y=="object"&&y!==null){var ue=y.$$typeof;switch(ue){case t:var Ue=y.type;switch(Ue){case l:case d:case r:case a:case o:case u:return Ue;default:var Ft=Ue&&Ue.$$typeof;switch(Ft){case c:case f:case v:case m:case s:return Ft;default:return ue}}case i:return ue}}}var C=l,H=d,J=c,ne=s,X=t,q=f,ee=r,de=v,oe=m,E=i,L=a,Y=o,te=u,he=!1;function we(y){return he||(he=!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.")),g(y)||S(y)===l}function g(y){return S(y)===d}function T(y){return S(y)===c}function F(y){return S(y)===s}function R(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function D(y){return S(y)===f}function z(y){return S(y)===r}function M(y){return S(y)===v}function b(y){return S(y)===m}function P(y){return S(y)===i}function k(y){return S(y)===a}function V(y){return S(y)===o}function re(y){return S(y)===u}W.AsyncMode=C,W.ConcurrentMode=H,W.ContextConsumer=J,W.ContextProvider=ne,W.Element=X,W.ForwardRef=q,W.Fragment=ee,W.Lazy=de,W.Memo=oe,W.Portal=E,W.Profiler=L,W.StrictMode=Y,W.Suspense=te,W.isAsyncMode=we,W.isConcurrentMode=g,W.isContextConsumer=T,W.isContextProvider=F,W.isElement=R,W.isForwardRef=D,W.isFragment=z,W.isLazy=M,W.isMemo=b,W.isPortal=P,W.isProfiler=k,W.isStrictMode=V,W.isSuspense=re,W.isValidElementType=j,W.typeOf=S})()),W}var Kt;function Vn(){return Kt||(Kt=1,process.env.NODE_ENV==="production"?Ye.exports=Ti():Ye.exports=bi()),Ye.exports}/*
|
|
24
24
|
object-assign
|
|
25
25
|
(c) Sindre Sorhus
|
|
26
26
|
@license MIT
|
|
27
|
-
*/var
|
|
28
|
-
Valid keys: `+JSON.stringify(Object.keys(m),null," "));var x=ie(M,z,P,H,k+"."+z,i);if(x)return x}return null}return j(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||c(m))return!0;var g=f(m);if(g){var S=g.call(m),O;if(g!==m.entries){for(;!(O=S.next()).done;)if(!_(O.value))return!1}else for(;!(O=S.next()).done;){var P=O.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 q(m){var g=typeof m;return Array.isArray(m)?"array":m instanceof RegExp?"object":R(g,m)?"symbol":g}function re(m){if(typeof m>"u"||m===null)return""+m;var g=q(m);if(g==="object"){if(m instanceof Date)return"date";if(m instanceof RegExp)return"regexp"}return g}function pe(m){var g=re(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},ct}var dt,$t;function Rr(){if($t)return dt;$t=1;var e=Tt();function t(){}function i(){}return i.resetWarningCache=t,dt=function(){function r(s,c,d,l,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},dt}var Bt;function Lr(){if(Bt)return Be.exports;if(Bt=1,process.env.NODE_ENV!=="production"){var e=yn(),t=!0;Be.exports=Mr()(e.isElement,t)}else Be.exports=Rr()();return Be.exports}var Hr=Lr();const A=jr(Hr);function Fr(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function zr(e,t){e.classList?e.classList.add(t):Fr(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 Vr(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 $r=process.env.NODE_ENV!=="production"?A.oneOfType([A.number,A.shape({enter:A.number,exit:A.number,appear:A.number}).isRequired]):null,Br=process.env.NODE_ENV!=="production"?A.oneOfType([A.string,A.shape({enter:A.string,exit:A.string,active:A.string}),A.shape({enter:A.string,enterDone:A.string,enterActive:A.string,exit:A.string,exitDone:A.string,exitActive:A.string})]):null;const bt=h.createContext(null);var Tn=function(t){return t.scrollTop},Re="unmounted",be="exited",se="entering",ue="entered",Fe="exiting",fe=(function(e){xt(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=a,c=s&&!s.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?c?(d=be,o.appearStatus=se):d=ue: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!==se&&s!==ue&&(o=se):(s===se||s===ue)&&(o=Fe)}this.updateStatus(!1,o)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var a=this.props.timeout,o,s,c;return o=s=c=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,c=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:c}},i.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===se){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this);s&&Tn(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,c=this.context?this.context.isMounting:a,d=this.props.nodeRef?[c]:[Me.findDOMNode(this),c],l=d[0],u=d[1],f=this.getTimeouts(),p=c?f.appear:f.enter;if(!a&&!s||Yt.disabled){this.safeSetState({status:ue},function(){o.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:se},function(){o.props.onEntering(l,u),o.onTransitionEnd(p,function(){o.safeSetState({status:ue},function(){o.props.onEntered(l,u)})})})},i.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),c=this.props.nodeRef?void 0:Me.findDOMNode(this);if(!o||Yt.disabled){this.safeSetState({status:be},function(){a.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Fe},function(){a.props.onExiting(c),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:be},function(){a.props.onExited(c)})})})},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(c){s&&(s=!1,o.nextCallback=null,a(c))},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),c=a==null&&!this.props.addEndListener;if(!s||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=d[0],u=d[1];this.props.addEndListener(l,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 c=Cn(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,c):h.cloneElement(h.Children.only(s),c))},t})(h.Component);fe.contextType=bt;fe.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:A.shape({current:typeof Element>"u"?A.any:function(e,t,i,r,a,o){var s=e[t];return A.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,i,r,a,o)}}),children:A.oneOfType([A.func.isRequired,A.element.isRequired]).isRequired,in:A.bool,mountOnEnter:A.bool,unmountOnExit:A.bool,appear:A.bool,enter:A.bool,exit:A.bool,timeout:function(t){var i=$r;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:A.func,onEnter:A.func,onEntering:A.func,onEntered:A.func,onExit:A.func,onExiting:A.func,onExited:A.func}:{};function Ne(){}fe.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};fe.UNMOUNTED=Re;fe.EXITED=be;fe.ENTERING=se;fe.ENTERED=ue;fe.EXITING=Fe;var Ur=function(t,i){return t&&i&&i.split(" ").forEach(function(r){return zr(t,r)})},ut=function(t,i){return t&&i&&i.split(" ").forEach(function(r){return Vr(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(c,d){var l=r.resolveArguments(c,d),u=l[0],f=l[1];r.removeClasses(u,"exit"),r.addClass(u,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(c,d)},r.onEntering=function(c,d){var l=r.resolveArguments(c,d),u=l[0],f=l[1],p=f?"appear":"enter";r.addClass(u,p,"active"),r.props.onEntering&&r.props.onEntering(c,d)},r.onEntered=function(c,d){var l=r.resolveArguments(c,d),u=l[0],f=l[1],p=f?"appear":"enter";r.removeClasses(u,p),r.addClass(u,p,"done"),r.props.onEntered&&r.props.onEntered(c,d)},r.onExit=function(c){var d=r.resolveArguments(c),l=d[0];r.removeClasses(l,"appear"),r.removeClasses(l,"enter"),r.addClass(l,"exit","base"),r.props.onExit&&r.props.onExit(c)},r.onExiting=function(c){var d=r.resolveArguments(c),l=d[0];r.addClass(l,"exit","active"),r.props.onExiting&&r.props.onExiting(c)},r.onExited=function(c){var d=r.resolveArguments(c),l=d[0];r.removeClasses(l,"exit"),r.addClass(l,"exit","done"),r.props.onExited&&r.props.onExited(c)},r.resolveArguments=function(c,d){return r.props.nodeRef?[r.props.nodeRef.current,c]:[c,d]},r.getClassNames=function(c){var d=r.props.classNames,l=typeof d=="string",u=l&&d?d+"-":"",f=l?""+u+c:d[c],p=l?f+"-active":d[c+"Active"],v=l?f+"-done":d[c+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:v}},r}var i=t.prototype;return i.addClass=function(a,o,s){var c=this.getClassNames(o)[s+"ClassName"],d=this.getClassNames("enter"),l=d.doneClassName;o==="appear"&&s==="done"&&l&&(c+=" "+l),s==="active"&&a&&Tn(a),c&&(this.appliedClasses[o][s]=c,Ur(a,c))},i.removeClasses=function(a,o){var s=this.appliedClasses[o],c=s.base,d=s.active,l=s.done;this.appliedClasses[o]={},c&&ut(a,c),d&&ut(a,d),l&&ut(a,l)},i.render=function(){var a=this.props;a.classNames;var o=Cn(a,["classNames"]);return h.createElement(fe,et({},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"?et({},fe.propTypes,{classNames:Br,onEnter:A.func,onEntering:A.func,onEntered:A.func,onExit:A.func,onExiting:A.func,onExited:A.func}):{};var Ye,We;function Yr(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"},tt=function(t,i,r){return function(){var a;t.props[i]&&(a=t.props)[i].apply(a,arguments),r()}},Wr=(Ye={},Ye[ye.out]=function(e){var t=e.current,i=e.changeState;return h.cloneElement(t,{in:!1,onExited:tt(t,"onExited",function(){i(se,null)})})},Ye[ye.in]=function(e){var t=e.current,i=e.changeState,r=e.children;return[t,h.cloneElement(r,{in:!0,onEntered:tt(r,"onEntered",function(){i(se)})})]},Ye),Gr=(We={},We[ye.out]=function(e){var t=e.children,i=e.changeState;return h.cloneElement(t,{in:!0,onEntered:tt(t,"onEntered",function(){i(ue,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:tt(t,"onExited",function(){r(ue,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:ue,current:null},r.appeared=!1,r.changeState=function(c,d){d===void 0&&(d=r.state.current),r.setState({status:c,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===se&&a.mode===ye.in?{status:se}:o.current&&Yr(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,c=this.state,d=c.status,l=c.current,u={children:o,current:l,changeState:this.changeState,status:d},f;switch(d){case se:f=Gr[s](u);break;case Fe:f=Wr[s](u);break;case ue:f=l}return h.createElement(bt.Provider,{value:{isMounting:!this.appeared}},f)},t})(h.Component);_t.propTypes=process.env.NODE_ENV!=="production"?{mode:A.oneOf([ye.in,ye.out]),children:A.oneOfType([A.element.isRequired])}:{};_t.defaultProps={mode:ye.out};const qr="stack-module_stack",Zr="stack-module_slideEnter",Kr="stack-module_slideEnterActive",Jr="stack-module_slideExit",Xr="stack-module_slideExitActive",Ce={stack:qr,slideEnter:Zr,slideEnterActive:Kr,slideExit:Jr,slideExitActive:Xr};function Qr({name:e,children:t}){return n.jsx("div",{className:Ce.stack,children:t})}const bn=h.createContext({setView:()=>{},current:{name:"none"}});function De(){return h.useContext(bn)}function he({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:c}=a[t],[d,l]=h.useState({}),u=h.useMemo(()=>({current:{name:t,args:d},setView:(f,p)=>{l(p),i(f,p)}}),[t,i,d,l]);return n.jsx(bn.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:c})},t)})})}he.View=Qr;const ei="router-module_container",ti="router-module_controlsContainer",ni="router-module_filterButton",ri="router-module_filterCounter",ii="router-module_spinner",oi="router-module_stackContainer",Te={container:ei,controlsContainer:ti,filterButton:ni,filterCounter:ri,spinner:ii,stackContainer:oi},ai="SearchInput-module_container",si="SearchInput-module_searchInput",Wt={container:ai,searchInput:si};function li({onFocus:e}){const{options:t,setPlace:i,t:r,language:a}=U(),o=t.googleApiKey,s=h.useRef(null),c=vn(o,a);return h.useEffect(()=>{s.current&&c.importLibrary("places").then(d=>{const l=new d.Autocomplete(s.current,{fields:["geometry"]});l.addListener("place_changed",()=>{const u=l.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 ci="filters-module_headerContainer",di="filters-module_container",ui="filters-module_header",fi="filters-module_heading",pi="filters-module_actionLinkClearAll",hi="filters-module_optionsGroup",mi="filters-module_rowLabel",gi="filters-module_label",vi="filters-module_dot",Ci="filters-module_connectorIcon",b={headerContainer:ci,container:di,header:ui,heading:fi,actionLinkClearAll:pi,optionsGroup:hi,rowLabel:mi,label:gi,dot:vi,connectorIcon:Ci},yi="Checkbox-module_container",xi="Checkbox-module_box",Gt={container:yi,box:xi};function ne({id:e,name:t,checked:i,onChange:r,type:a="checkbox"}){const[o,s]=h.useState(i||!1),c=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:c}),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 Ti="Range-module_container",bi="Range-module_input",Ei="Range-module_ticksContainer",_i="Range-module_tick",Ge={container:Ti,input:bi,ticksContainer:Ei,tick:_i};function wi({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,c)=>n.jsx("div",{onClick:d=>{i(e[c].value)},className:Ge.tick,children:s.label},s.label))})]})}const Ni="MultiSelect-module_multiSelect",Si="MultiSelect-module_control",Oi="MultiSelect-module_disabled",Ai="MultiSelect-module_valueContainer",ji="MultiSelect-module_input",Pi="MultiSelect-module_multiValue",Di="MultiSelect-module_multiValueLabel",Ii="MultiSelect-module_multiValueRemove",ki="MultiSelect-module_dropdownIndicator",Mi="MultiSelect-module_menu",Ri="MultiSelect-module_menuOpen",Li="MultiSelect-module_menuList",Hi="MultiSelect-module_groupHeading",Fi="MultiSelect-module_groupSeparator",zi="MultiSelect-module_option",Vi="MultiSelect-module_optionLast",$i="MultiSelect-module_optionSelected",Bi="MultiSelect-module_optionFocused",Ui="MultiSelect-module_optionCheck",Yi="MultiSelect-module_optionDisabled",Wi="MultiSelect-module_optionLabel",Gi="MultiSelect-module_noOptions",Z={multiSelect:Ni,control:Si,disabled:Oi,valueContainer:Ai,input:ji,multiValue:Pi,multiValueLabel:Di,multiValueRemove:Ii,dropdownIndicator:ki,menu:Mi,menuOpen:Ri,menuList:Li,groupHeading:Hi,groupSeparator:Fi,option:zi,optionLast:Vi,optionSelected:$i,optionFocused:Bi,optionCheck:Ui,optionDisabled:Yi,optionLabel:Wi,noOptions:Gi},qt=({id:e,name:t,options:i,value:r=[],preferredValues:a=[],placeholder:o="Select...",disabled:s=!1,className:c,onChange:d})=>{const[l,u]=h.useState(!1),[f,p]=h.useState(""),[v,y]=h.useState(-1),T=h.useRef(null),j=h.useRef(null),L=h.useMemo(()=>new Set(a),[a]),{preferred:Y,others:D}=h.useMemo(()=>{const _=f.toLowerCase(),R=i.filter(q=>q.label.toLowerCase().includes(_));return{preferred:R.filter(q=>L.has(q.value)),others:R.filter(q=>!L.has(q.value))}},[i,f,L]),N=h.useMemo(()=>[...Y,...D],[Y,D]),C=h.useMemo(()=>i.filter(_=>r.includes(_.value)),[i,r]);h.useEffect(()=>{v>=N.length&&y(N.length>0?0:-1)},[N,v]);const I=()=>{s||(u(!0),v<0&&N.length>0&&y(0))},K=()=>{u(!1),p(""),y(-1)},te=_=>{if(_.disabled)return;const R=r.includes(_.value)?r.filter(q=>q!==_.value):[...r,_.value];d?.(R),p(""),u(!0),T.current?.focus()},W=_=>{d?.(r.filter(R=>R!==_))},G=_=>{if(!s)switch(_.key){case"Backspace":f===""&&r.length>0&&(_.preventDefault(),d?.(r.slice(0,-1)));return;case"ArrowDown":_.preventDefault(),l?N.length>0&&y(R=>(R+1)%N.length):(u(!0),N.length>0&&y(0));return;case"ArrowUp":_.preventDefault(),l?N.length>0&&y(R=>(R<=0?N.length:R)-1):(u(!0),N.length>0&&y(N.length-1));return;case"Enter":l&&v>=0&&N[v]&&(_.preventDefault(),te(N[v]));return;case"Escape":l&&(_.preventDefault(),K());return;case"Home":l&&N.length>0&&(_.preventDefault(),y(0));return;case"End":l&&N.length>0&&(_.preventDefault(),y(N.length-1));return;default:return}},X=_=>{const R=_.relatedTarget;R&&j.current?.contains(R)||K()},ce=()=>{s||(l?u(!1):I(),T.current?.focus())},ge=(_,R,q)=>{const re=r.includes(_.value);return n.jsxs("div",{className:`${Z.option} ${v===R?Z.optionFocused:""} ${re?Z.optionSelected:""} ${_.disabled?Z.optionDisabled:""} ${q?Z.optionLast:""}`,role:"option","aria-selected":re,"aria-disabled":_.disabled||void 0,onMouseDown:pe=>pe.preventDefault(),onMouseMove:()=>{v!==R&&y(R)},onClick:()=>te(_),children:[n.jsx("span",{className:Z.optionLabel,children:_.label}),re&&n.jsx("svg",{className:Z.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:j,className:`${Z.multiSelect} ${c??""}`,children:[n.jsxs("div",{className:`${Z.control} ${s?Z.disabled:""}`,children:[n.jsxs("div",{className:Z.valueContainer,onMouseDown:_=>{_.target===_.currentTarget&&(_.preventDefault(),T.current?.focus(),I())},children:[C.map(_=>n.jsxs("div",{className:Z.multiValue,children:[n.jsx("span",{className:Z.multiValueLabel,children:_.label}),n.jsx("button",{type:"button",className:Z.multiValueRemove,onMouseDown:R=>R.preventDefault(),onClick:()=>W(_.value),disabled:s,"aria-label":`Remove ${_.label}`,children:"×"})]},_.value)),n.jsx("input",{ref:T,id:e,name:t,className:Z.input,value:f,onChange:_=>{p(_.target.value),u(!0),y(0)},onKeyDown:G,onFocus:I,onBlur:X,placeholder:C.length===0?o:"",disabled:s,autoComplete:"off",role:"combobox","aria-expanded":l,"aria-autocomplete":"list"})]}),n.jsx("button",{type:"button",className:Z.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"})})})]}),l&&n.jsx("div",{className:`${Z.menu} ${Z.menuOpen}`,role:"listbox",children:n.jsxs("div",{className:Z.menuList,children:[Y.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Z.groupHeading,children:"Preferred"}),Y.map((_,R)=>ge(_,R,R===Y.length-1&&D.length===0))]}),D.length>0&&n.jsxs(n.Fragment,{children:[Y.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Z.groupSeparator}),n.jsx("div",{className:Z.groupHeading,children:"All"})]}),D.map((_,R)=>ge(_,Y.length+R,R===D.length-1))]}),Y.length===0&&D.length===0&&n.jsx("div",{className:Z.noOptions,children:"No options found"})]})})]})},qi="SelectField-module_selectField",Zi="SelectField-module_select",Zt={selectField:qi,select:Zi},Kt=({id:e,name:t,value:i,options:r=[],placeholder:a="Select an option",disabled:o=!1,className:s="",onChange:c,onBlur:d,onFocus:l})=>{const u=f=>{const p=f.target.value,v=r.find(y=>y.value.toString()===p);v&&c&&c(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:l,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",ae="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:ae,CHAOJI:ae,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:ae,PANTOGRAPH_TOP_DOWN:ae,TESLA_R:ae,TESLA_S:ae,CONNECTOR_STANDARD_TYPE_CHADEMO:ae,CONNECTOR_STANDARD_TYPE_CHAOJI:ae,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:ae,CONNECTOR_STANDARD_TYPE_PANTOGRAPH_TOP_DOWN:ae,CONNECTOR_STANDARD_TYPE_TESLA_R:ae,CONNECTOR_STANDARD_TYPE_TESLA_S:ae},Le={minPower:7,operator:[],status:[],publishingMode:"",connectorTypes:[],chargingAccessibility:"ALL",noAdditionalCharges:!1,powerType:void 0,operatorOnly:"",remoteStartStop:!1,searchPhrase:"",excludeOperator:[],authMethodCapabilities:[]};function Ki(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 Ji=[{value:"AUTH_METHOD_CAPABILITY_PLUG_AND_CHARGE",labelKey:"filters.authCapability.plugAndCharge"},{value:"AUTH_METHOD_CAPABILITY_CREDIT_CARD_PAYABLE",labelKey:"filters.authCapability.creditCard"}],Xi=[{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 Qi(e){return h.useReducer((t,i)=>({...t,...i}),e)}function eo(){const{setFilters:e,t,filters:i,filterConfiguration:r,options:a}=U(),[o,s]=Qi(Le),{setView:c}=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:l=>s({searchPhrase:l.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(ne,{id:"dsChargers",checked:o.powerType==="dc",onChange:l=>{s({powerType:l?"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(ne,{id:"efluxChargers",checked:o.partyId==="EFL",onChange:l=>{s({partyId:l?"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(ne,{id:"noAdditionalFee",checked:o.noAdditionalCharges,onChange:l=>{s({noAdditionalCharges:l?!0:void 0})}})]}),n.jsxs("label",{htmlFor:"remoteStartStop",className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:t("filters.remoteStartStop")}),n.jsx(ne,{id:"remoteStartStop",checked:o.remoteStartStop,onChange:l=>{s({remoteStartStop:l?!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(ne,{id:"operatorOnly",checked:o.operatorOnly===r.showOperatorOnly,onChange:l=>{s({operatorOnly:l?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(l=>({value:l?.connectionId,label:l?.name,selected:o.operators?.includes(l?.connectionId)}))||[]],placeholder:"Select operator",onChange:l=>{s({operator:l})}})]}),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(l=>({value:l?.connectionId,label:l?.name,selected:o.excludeOperator?.includes(l?.connectionId)}))||[]],placeholder:t("filters.excludeOperator"),onChange:l=>{s({excludeOperator:l})}})]}),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:l=>{s({publishingMode:l})}})]}),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(ne,{id:"statusAvailable",name:"status",checked:o.status.includes("AVAILABLE"),onChange:l=>{s({status:Ze(l?"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(ne,{id:"statusCharging",checked:o.status.includes("CHARGING"),onChange:l=>{s({status:Ze(l?"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(ne,{id:"statusError",name:"status",checked:o.status.includes("INOPERATIVE")&&o.status.includes("UNKNOWN"),onChange:l=>{s({status:Ze(l?"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(wi,{value:o.minPower,onChange:l=>{s({minPower:l})},ticks:Xi})]}),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(ne,{id:"type1",checked:o.connectorTypes.includes("IEC_62196_T1"),onChange:l=>{s({connectorTypes:l?[...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(ne,{id:"type2",checked:o.connectorTypes.includes("IEC_62196_T2"),onChange:l=>{s({connectorTypes:l?[...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(ne,{id:"type3",checked:o.connectorTypes.includes("IEC_62196_T3A"),onChange:l=>{s({connectorTypes:l?[...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(ne,{id:"CHAdeMo",checked:o.connectorTypes.includes("CHADEMO"),onChange:l=>{s({connectorTypes:l?[...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(ne,{id:"domestic",checked:o.connectorTypes.includes("DOMESTIC_F"),onChange:l=>{s({connectorTypes:l?[...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(ne,{id:"combo",checked:o.connectorTypes.includes("IEC_62196_T2_COMBO"),onChange:l=>{s({connectorTypes:l?[...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")}),Ji.map(l=>{const u=`auth-${l.value}`,f=o.authMethodCapabilities?.includes(l.value)??!1;return n.jsxs("label",{htmlFor:u,className:b.rowLabel,children:[n.jsx("div",{className:b.label,children:t(l.labelKey)}),n.jsx(ne,{id:u,checked:f,onChange:p=>{s({authMethodCapabilities:Ze(p?"add":"remove",o.authMethodCapabilities||[],[l.value])})}})]},l.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:l=>{s({chargingAccessibility:l})}})]})]})]})}const to="locations-module_headerContainer",no="locations-module_publishingMode",ro="locations-module_container",io="locations-module_header",oo="locations-module_subheader",ao="locations-module_row",so="locations-module_icon",lo="locations-module_statusIcon",co="locations-module_text",uo="locations-module_note",fo="locations-module_divider",po="locations-module_pagingation",ho="locations-module_tariffNoteLink",E={headerContainer:to,publishingMode:no,container:ro,header:io,subheader:oo,row:ao,icon:so,statusIcon:lo,text:co,note:uo,divider:fo,pagingation:po,tariffNoteLink:ho},mo="LocationPlaceholder-module_container",go="LocationPlaceholder-module_header",vo="LocationPlaceholder-module_divider",Co="LocationPlaceholder-module_iconLine",yo="LocationPlaceholder-module_priceLine",oe={container:mo,header:go,divider:vo,iconLine:Co,priceLine:yo};function xo(){return n.jsxs("div",{className:oe.container,children:[n.jsx("div",{className:oe.header}),n.jsx("div",{className:oe.divider,style:{marginTop:"15px",marginBottom:"23px"}}),n.jsx("div",{className:oe.iconLine,style:{width:"60%"}}),n.jsx("div",{className:oe.iconLine,style:{width:"45%"}}),n.jsx("div",{className:oe.iconLine,style:{width:"50%"}}),n.jsx("div",{className:oe.divider}),n.jsx("div",{className:oe.iconLine,style:{width:"50%"}}),n.jsx("div",{className:oe.iconLine,style:{width:"62%"}}),n.jsx("div",{className:oe.priceLine}),n.jsx("div",{className:oe.divider}),n.jsx("div",{className:oe.iconLine,style:{width:"50%"}}),n.jsx("div",{className:oe.iconLine,style:{width:"57%"}}),n.jsx("div",{className:oe.priceLine,style:{width:"30%"}})]})}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:"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 _n(){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 To(){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 bo(){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 Eo(){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 wn(){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 _o="SidebarContainer-module_container",wo={container:_o};function Pe({children:e}){return n.jsx("div",{className:wo.container,children:e})}const No="Debug-module_container",So="Debug-module_content",Oo="Debug-module_connectorHeader",Ao="Debug-module_code",jo="Debug-module_evse",Oe={container:No,content:So,connectorHeader:Oo,code:Ao,evse:jo};function Po({location:e}){return n.jsx("div",{className:Oe.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:Oe.content,children:e.evses.map(t=>n.jsxs("div",{className:Oe.evse,children:[n.jsxs("div",{className:Oe.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:Oe.connectorHeader,children:["Connector #",r]}),n.jsx("pre",{className:Oe.code,children:JSON.stringify(i.tariff||Array.isArray(e.tariffs)?e.tariffs?.find(a=>i.tariff_ids.includes(a.id)):null,null,2)})]}))})]}))})]})})}const Nn="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",Sn="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",On="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 jn(e,t){return new Intl.NumberFormat(e,{maximumFractionDigits:2}).format(t)}const Do={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 Pn(e){return[Io(e.standard||e.connectorStandardType),Do[e.powerType||e.power_type||e.connectorPowerType],"Socket"].join(", ")}function Io(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 Dn(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 In(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 kn(e=[]){return e.some(t=>t.status==="AVAILABLE")?me("AVAILABLE"):e.some(t=>t.status==="CHARGING")?me("CHARGING"):me("UNKNOWN")}function Mn(e,t){let i;["en","fr"].some(s=>{let d=new Intl.DateTimeFormat(s,{minute:"numeric",timeZone:t,timeZoneName:"short"}).formatToParts(e).filter(l=>l.type=="timeZoneName"&&l.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 Rn(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,c)=>(s[c.type]=c.value,c),Object.create(null));return`${r}-${i(a)}-${i(o)}`}function Ln(e,t=new Date){const i=Mn(t,e),r=Rn(i),a=new Date(+t);return a.setUTCMinutes(a.getUTCMinutes()+r),a}function Hn(e,t=new Date){const i=Mn(t,e),r=Rn(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 ko(e,t=new Date){return new Date(Hn(e,t).valueOf()+86399999)}function Mo(e,t,i){const r=Ln(i,e);return r.getUTCDate()!==t&&r.setUTCDate(e.getUTCDate()+(7+t-e.getUTCDay()-1)%7+1),{start:Hn(i,r),end:ko(i,r)}}function ht(e,t){return Ln(t,e).getUTCDay()}function rn(e){const[t,i]=e.split(":");return parseInt(t)*60+parseInt(i)}function mt(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 Ro(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],c=a.findLast(l=>l.startTime<=s.startTime);if(!c)a=a.filter(l=>l.endTime>s.endTime),a.unshift(s);else{const l=c.endTime;c.endTime=s.startTime;const u=[s];l>s.endTime&&u.push({...c,startTime:s.endTime,endTime:l}),a.splice(a.indexOf(c)+1,0,...u)}let d=0;a=a.map((l,u)=>{const f=a[u-1];if(l.endTime>d)d=l.endTime;else return null;return f&&f.endTime!==l.startTime&&(l.startTime=f.endTime),l}).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 c=s.restrictions._startDate.getDate();return o[c]={date:new Date(s.restrictions.startDate),items:[...o[c]?.items||[],s]},o},[]);return Object.keys(a).map(o=>{const{date:s,items:c}=a[o],d=c.map(({restrictions:l,...u})=>{const{_startDate:f,...p}=l;return{...u,restrictions:{...p}}}).map(mt).map(l=>{const u=ht(i)===ht(s),f=i.getHours()*60+i.getMinutes(),p=u&&l.startTime<=f&&l.endTime-1>=f;return{...l,isActive:p}});return{date:s,items:d}})}function Lo(e,t){const i=new Date;return[...e].reduce((r,a)=>{const{startDate:o,endDate:s,dayOfWeek:c=[]}=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 l=s?new Date(s):null;return s&&l.valueOf()<Date.now()||["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].forEach((u,f)=>{const{start:p,end:v}=Mo(i,f,t);d&&d.valueOf()>p.valueOf()||l&&l.valueOf()<v.valueOf()||c.length&&!c.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 Ho(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 Fo(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 zo(e){return xe(e)?(e.priceComponents||[]).some(t=>t.type!=="PARKING_TIME"&&(t.price||0)>0):!1}function Vo(e){return e.startTime===0&&e.endTime<=1||e.startTime>=1439&&e.endTime===1440}function Fn(e,t,i){const r=Lo(e.concat().filter(l=>!xe(l)),t),a=e.find(zo),{SUNDAY:o,...s}=r,[c,...d]=Object.keys({SUNDAY:r.SUNDAY,...s}).map((l,u)=>{const f=r[l],p=ht(i,t)===u,v=Fo(f.map(mt));return a&&v.length>0&&v.unshift(mt(a)),{day:l,isActive:p,items:Ro(v,p,i).filter(y=>!Vo(y))}});return[...d,c].reduce((l,u,f,p)=>{const v=l[l.length-1],y=v?.items;if(!y||!Ho(y,u.items)){const{day:T,...j}=u;l.push({...j,days:[u.day]})}else v.days=[v.days[0],u.day],v.isActive=v.isActive||u.isActive;return l},[]).filter(l=>!!l.items.length)}function $o(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 Bo(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 Uo="ConnectorTariff-module_container",Yo="ConnectorTariff-module_bold",Wo="ConnectorTariff-module_dynamicTariffItem",Go="ConnectorTariff-module_dynamicTariffItemRange",qo="ConnectorTariff-module_tariffHeader",Zo="ConnectorTariff-module_tariffLabel",Ko="ConnectorTariff-module_tariffNote",Jo="ConnectorTariff-module_activeNowLabel",Q={container:Uo,bold:Yo,dynamicTariffItem:Wo,dynamicTariffItemRange:Go,tariffHeader:qo,tariffLabel:Zo,tariffNote:Ko,activeNowLabel:Jo},Xo="Price-module_tariffItem",gt={tariffItem:Xo};function Qo(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function ea(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function ta({priceComponent:e,restrictions:t={},currency:i}){const{t:r}=U(),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:gt.tariffItem,children:r("tariffPriceComponent.parkingTimeWait",{minutes:Math.floor(t.maxDuration/60)})}):a[e.type]?n.jsx("div",{className:gt.tariffItem,children:r(a[e.type],{total:Qo(ea(e),{currency:i})})}):null}const na="PriceComponents-module_container",ra={container:na},an=["ENERGY","TIME","FLAT","PARKING_TIME"];function Ke({elements:e,currency:t}){const{t:i}=U(),r=e.reduce((o,s)=>(s.priceComponents.forEach(c=>{o[c.type]||(o[c.type]=[]),o[c.type].push({priceComponent:c,restrictions:s.restrictions})}),o),{}),a=Object.keys(r).map(o=>({type:o,elements:r[o]})).sort((o,s)=>{const c=an.indexOf(o.type),d=an.indexOf(s.type);return c===-1?1:d===-1?-1:c-d});return n.jsx("div",{className:ra.container,children:a.map(({type:o,elements:s},c)=>s.reverse().map((d,l)=>n.jsx(ta,{currency:t,priceComponent:d.priceComponent,restrictions:d.restrictions},`${o}-${c}-${l}`)))})}function ia(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function oa({vat:e,price:t}){const i=e?e/100:0;return t+t*i}function aa({cdrAdditionalCharge:e,currency:t}){const{t:i}=U(),r={FLAT_FEE:i("cdrPrice.flatFee",{total:ia(oa(e),{currency:t})})};return n.jsx("div",{className:gt.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 sa=Intl.DateTimeFormat().resolvedOptions().timeZone;function la(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(aa,{currency:e,cdrAdditionalCharge:i},i.id))}function St({timezone:e=sa,tariff:t,compact:i=!0,cdrAdditionalCharges:r=[]}){const{t:a,language:o}=U(),s=la(o);if(!t)return null;const c=t.elements||[],d=t.currency||"",l=c.some(y=>y.priceComponents&&y.priceComponents.length>0),u=Nt({elements:c,limit:i?6:40,now:new Date}),f=u.length?[]:Fn(c,e,new Date),p=c.filter(xe);if(!l)return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Q.tariffNote,children:a("tariffPriceComponent.noTariff")}),r.length>0&&n.jsx("div",{className:Q.container,children:n.jsx(ke,{currency:d,cdrAdditionalCharges:r})})]});const v=!f.some(y=>y.isActive);return f.length?n.jsxs("div",{className:Q.container,children:[p.length>0&&n.jsxs("div",{className:[Q.tariffList,Q.bold].join(" "),children:[n.jsxs("div",{className:Q.tariffHeader,children:[a("tariffPriceComponent.baseTariff"),v&&n.jsx("span",{className:Q.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:Q.tariffList,children:[n.jsxs("div",{className:Q.tariffHeader,children:[y.days.map(T=>s[T]).join(" - "),y.isActive&&n.jsx("span",{className:Q.activeNowLabel,children:a("tariffPriceComponent.active")})]}),y.items.map(T=>n.jsxs("div",{className:T.isActive&&Q.bold,children:[!T.isFullDay&&n.jsxs("div",{className:Q.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:Q.container,children:[p.length>0&&!u?.length&&n.jsxs("div",{className:Q.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:Q.tariffHeader,children:a("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(o,{weekday:"long",month:"short",day:"numeric"}).format(y.date)})}),n.jsx("div",{className:Q.dynamicTariffList,children:y.items.map((j,L)=>n.jsxs("div",{className:[Q.dynamicTariffItem,j.isActive&&Q.bold].filter(Boolean).join(" "),children:[n.jsxs("div",{className:Q.dynamicTariffItemRange,children:[Je(o,j.startTime)," –"," ",Je(o,j.endTime)]}),n.jsx(Ke,{elements:j.elements,currency:d}),n.jsx(ke,{currency:d,cdrAdditionalCharges:r}),j.isActive&&n.jsx("span",{className:Q.activeNowLabel,children:a("tariffPriceComponent.active")})]},[j.startTime,j.endTime,L].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 ca=({currentLocation:e,evses:t,setView:i,cdrAdditionalCharges:r})=>{const{options:a,t:o,language:s}=U(),c=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:Nn,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:kn(e.evses)},className:E.statusIcon})}),n.jsxs("div",{className:E.text,children:[c.length," / ",t.length," ",o("evse.statusAvailable")]})]}),e.subOperator?.name&&n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:Sn,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:In(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:me(d.status)},className:E.statusIcon}),n.jsx("div",{className:E.text,children:[Dn(o,d.status),d.maxPower&&`${jn(s,Math.floor(d.maxPower))}kW`].filter(Boolean).join(", ")})]}),d.connectors.map((l,u)=>{const f=$o(l.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(l),alt:"socket type"}),n.jsx("div",{className:E.text,children:Pn(l)})]}),n.jsxs("div",{className:E.row,children:[n.jsx("img",{className:E.icon,src:On,alt:"pricing"}),n.jsx("div",{className:E.text,children:o("evse.pricing")})]}),n.jsx(St,{tariff:l.tariff,cdrAdditionalCharges:r}),f==="dynamic"&&n.jsx("div",{className:E.tariffNoteLink,onClick:()=>{i("dynamicTariff",{connector:l,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(wn,{})," ",o("tariffPriceComponent.viewTariff")]})]},`connector-${u}`)})]},d.evseId))]})},da="LocationRow-module_row",ua="LocationRow-module_expandable",fa="LocationRow-module_icon",pa="LocationRow-module_text",ha="LocationRow-module_textHint",ma="LocationRow-module_chevron",ga="LocationRow-module_chevronOpen",va="LocationRow-module_body",ve={row:da,expandable:ua,icon:fa,text:pa,textHint:ha,chevron:ma,chevronOpen:ga,body:va},Ca={display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",padding:"5px 0",minWidth:0},ya={display:"inline-flex",alignItems:"center",justifyContent:"center",height:16,width:16,flex:"0 0 auto",marginRight:14,overflow:"hidden"},xa={flex:"1 1 auto",minWidth:0,fontSize:12,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},Ta={color:"var(--roadmap-muted-color, #6a6a6a)",fontWeight:"normal"},ba={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)"},Ea={padding:"4px 0 6px 30px",display:"flex",flexDirection:"column",gap:4},le=({icon:e,text:t,hint:i,children:r,defaultExpanded:a=!1})=>{const o=h.Children.count(r)>0,[s,c]=h.useState(a),d=()=>c(l=>!l);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`${ve.row} ${o?ve.expandable:""}`,style:{...Ca,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?l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),d())}:void 0,children:[n.jsx("span",{className:ve.icon,style:ya,children:h.isValidElement(e)?h.cloneElement(e,{style:{maxWidth:16,maxHeight:16,display:"block",...e.props?.style||{}}}):e}),n.jsxs("div",{className:ve.text,style:xa,children:[t,i!=null&&n.jsxs("span",{className:ve.textHint,style:Ta,children:[" · ",i]})]}),o&&n.jsx("span",{className:`${ve.chevron} ${s?ve.chevronOpen:""}`,style:{...ba,transform:s?"rotate(180deg)":void 0},children:n.jsx(To,{})})]}),o&&s&&n.jsx("div",{className:ve.body,style:Ea,children:r})]})},_a=({location:e})=>{const{options:t}=U(),i=e?.name||"-",r=e?.externalId||e?.id;let a;r&&t.locationUrlTemplate&&t.context==="cpo"?a=t.locationUrlTemplate.replace(/{{\s*locationId\s*}}/g,r):r&&t.locationBaseUrl&&(a=`${t.locationBaseUrl}/${r}`);const o=a?n.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:i}):i;return n.jsx(le,{icon:n.jsx("img",{src:Nn,alt:"station icon"}),text:o})},zn=({color:e,size:t=10})=>n.jsx("span",{style:{display:"block",width:t,height:t,borderRadius:t,background:e}}),wa=({evses:e})=>{const{t}=U(),i=e?.filter(r=>r.status==="AVAILABLE")||[];return n.jsx(le,{icon:n.jsx(zn,{color:kn(e)}),text:`${i.length} / ${e?.length||0} ${t("evse.statusAvailable")}`})},Na="OperatorSection-module_block",Sa="OperatorSection-module_role",Oa="OperatorSection-module_header",Aa="OperatorSection-module_name",ja="OperatorSection-module_logo",Pa="OperatorSection-module_website",Ae={block:Na,role:Sa,header:Oa,name:Aa,logo:ja,website:Pa},Da=({role:e,showRoleLabel:t})=>{const{t:i}=U();return e.name?n.jsxs("div",{className:Ae.block,style:{display:"flex",flexDirection:"column",gap:2,marginBottom:8},children:[t&&n.jsx("div",{className:Ae.role,style:{fontSize:11,textTransform:"uppercase",color:"var(--roadmap-muted-color, #6a6a6a)",letterSpacing:"0.04em"},children:i(e.labelKey)}),n.jsxs("div",{className:Ae.header,style:{display:"flex",alignItems:"center",gap:8},children:[e.logoUrl&&n.jsx("img",{className:Ae.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:Ae.name,style:{fontSize:13,fontWeight:600},children:e.name})]}),e.website&&n.jsx("a",{className:Ae.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},Ia=({operator:e,suboperator:t,fallbackOperatorName:i,fallbackSuboperatorName:r})=>{const{t:a}=U(),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},c=o.name?o:s.name?s:null;return c?n.jsx(le,{icon:n.jsx("img",{src:Sn,alt:"building icon"}),text:a("location.operatorInfo"),hint:c.name,children:n.jsx(Da,{role:c,showRoleLabel:!1})}):null};function ln(e,t){if(t<1||t>7)return"";const i=new Date(2024,0,t);return new Intl.DateTimeFormat(e,{weekday:"long"}).format(i)}function ka(e=new Date){return vt(e.getDay())}function Vn(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 $n(e,t){return`${e} - ${t}`}function Xe(e){const[t,i]=e.split(":").map(Number);return t*60+(i||0)}function vt(e){return e===0?7:e}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 Ma(e,t=new Date){if(!e)return{open:!1};if(e.twentyfourseven)return{open:!0};const i=vt(t.getDay()),r=cn(e.exceptional_closings,t);if(r){const d=new Date(r.period_end),l=vt(d.getDay());return{open:!1,nextChange:{time:d.toISOString().slice(11,16),label:"opens",day:l===i?void 0:l}}}const a=cn(e.exceptional_openings,t);if(a)return{open:!0,nextChange:{time:new Date(a.period_end).toISOString().slice(11,16),label:"closes"}};const o=Vn(e.regular_hours),s=i===1?7:i-1,c=t.getHours()*60+t.getMinutes();for(const d of o[s]){const l=Xe(d.period_begin),u=Xe(d.period_end);if((u<l||u===0)&&c<(u===0?1440:u))return{open:!0,nextChange:{time:d.period_end,label:"closes"}}}for(const d of o[i]){const l=Xe(d.period_begin),u=Xe(d.period_end),p=u<l||u===0?1440:u;if(c>=l&&c<p)return{open:!0,nextChange:{time:d.period_end,label:"closes"}};if(c<l)return{open:!1,nextChange:{time:d.period_begin,label:"opens"}}}for(let d=1;d<=7;d++){const l=(i-1+d)%7+1,u=o[l];if(u.length>0)return{open:!1,nextChange:{time:u[0].period_begin,label:"opens",day:l===i?void 0:l}}}return{open:!1}}function dn(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 Ra(e){const t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function un(e,t){const i=new Date(t);if(isNaN(i.getTime()))return t;if(e==="en"){const r=new Intl.DateTimeFormat("en",{month:"long"}).format(i),a=i.getDate();return`${r} ${a}${Ra(a)}`}return new Intl.DateTimeFormat(e,{month:"long",day:"numeric"}).format(i)}function La(e){const t=new Date(e.period_begin),i=new Date(e.period_end);return isNaN(t.getTime())||isNaN(i.getTime())?`${e.period_begin} - ${e.period_end}`:$n(t.toISOString().slice(11,16),i.toISOString().slice(11,16))}const Ha="OpeningHours-module_pill",Fa="OpeningHours-module_pillOpen",za="OpeningHours-module_pillClosed",Va="OpeningHours-module_day",$a="OpeningHours-module_dayLabel",Ba="OpeningHours-module_dayValue",Ua="OpeningHours-module_today",Ya="OpeningHours-module_exceptional",Wa="OpeningHours-module_exceptionalHeader",Ga="OpeningHours-module_exceptionalClosingHeader",qa="OpeningHours-module_exceptionalOpeningHeader",Za="OpeningHours-module_footnote",J={pill:Ha,pillOpen:Fa,pillClosed:za,day:Va,dayLabel:$a,dayValue:Ba,today:Ua,exceptional:Ya,exceptionalHeader:Wa,exceptionalClosingHeader:Ga,exceptionalOpeningHeader:qa,footnote:Za},Ka=({openingTimes:e,chargingWhenClosed:t})=>{const{t:i,language:r}=U();if(!e)return null;const a=Ma(e),o=Vn(e.regular_hours),s=dn(e.exceptional_closings),c=dn(e.exceptional_openings),d=(e.regular_hours?.length??0)>0,l=e.twentyfourseven||d;if(!l&&s.length===0&&c.length===0&&!t)return null;const u=e.twentyfourseven||a.open,f=ka();let p;if(e.twentyfourseven)p=i("location.hours24");else if(a.nextChange){const{time:I,label:K,day:te}=a.nextChange;K==="closes"?p=i("location.closesAt",{time:I}):p=te?i("location.opensAtDay",{time:I,day:ln(r,te)}):i("location.opensAt",{time:I})}const v={display:"inline-block",borderRadius:8,padding:"1px 8px",fontSize:12,lineHeight:"16px",fontWeight:600,background:u?"#e7f6ec":"#fdecea",color:u?"#1b7a3d":"#c5221f"},y={display:"flex",fontSize:12,lineHeight:1.5},T={minWidth:84},j={flex:"1 1 auto"},L={fontWeight:600},Y={fontSize:12,marginTop:8,paddingTop:8,borderTop:"1px solid var(--roadmap-border-color, #e5e5e5)"},D={fontWeight:600,marginBottom:4},N={fontSize:11,fontStyle:"italic",color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},C=n.jsx("span",{className:`${J.pill} ${u?J.pillOpen:J.pillClosed}`,style:v,children:i(u?"location.open":"location.closedNow")});return n.jsxs(le,{icon:n.jsx(bo,{}),text:C,hint:p,children:[l&&[1,2,3,4,5,6,7].map(I=>{const K=I===f,te=e.twentyfourseven?i("location.open24hours"):o[I].length===0?i("location.closed"):o[I].map(W=>$n(W.period_begin,W.period_end)).join(", ");return n.jsxs("div",{className:`${J.day} ${K?J.today:""}`,style:{...y,...K?L:{}},children:[n.jsx("div",{className:J.dayLabel,style:T,children:ln(r,I)}),n.jsx("div",{className:J.dayValue,style:j,children:te})]},I)}),s.length>0&&n.jsxs("div",{className:J.exceptional,style:Y,children:[n.jsx("div",{className:`${J.exceptionalHeader} ${J.exceptionalClosingHeader}`,style:{...D,color:"#c5221f"},children:i("location.exceptionalClosings")}),s.map((I,K)=>n.jsxs("div",{className:`${J.day} ${J.today}`,style:{...y,...L},children:[n.jsx("div",{className:J.dayLabel,style:T,children:un(r,I.period_begin)}),n.jsx("div",{className:J.dayValue,style:j,children:i("location.closed")})]},`c-${K}`))]}),c.length>0&&n.jsxs("div",{className:J.exceptional,style:Y,children:[n.jsx("div",{className:`${J.exceptionalHeader} ${J.exceptionalOpeningHeader}`,style:{...D,color:"#1b7a3d"},children:i("location.exceptionalOpenings")}),c.map((I,K)=>n.jsxs("div",{className:`${J.day} ${J.today}`,style:{...y,...L},children:[n.jsx("div",{className:J.dayLabel,style:T,children:un(r,I.period_begin)}),n.jsx("div",{className:J.dayValue,style:j,children:La(I)})]},`o-${K}`))]}),t&&n.jsx("div",{className:J.footnote,style:N,children:i("location.chargingWhenClosed")})]})},Ja=({parkingType:e})=>{const{t}=U();return!e||e==="PARKING_TYPE_UNKNOWN"?null:n.jsx(le,{icon:n.jsx("img",{src:wt,alt:"parking icon"}),text:In(t,e)})},Xa=({accessibility:e})=>e?n.jsx(le,{icon:n.jsx("img",{src:wt,alt:"accessibility icon"}),text:e==="TESLA"?"Tesla vehicles only":"All electric vehicles"}):null,Qa=({evse:e})=>n.jsx(le,{icon:n.jsx("img",{src:Ve,alt:"power icon"}),text:e.evse_id||"",hint:e.physical_reference||void 0}),es=({evse:e})=>{const{t,language:i}=U(),r=e.connectors[0],a=r?.power&&r?.connectorPowerType?`${jn(i,Math.floor(Bo(r)))}kW`:null,o=[Dn(t,e.status),a].filter(Boolean).join(", ");return n.jsx(le,{icon:n.jsx(zn,{color:me(e.status)}),text:o})},ts=({connector:e})=>n.jsx(le,{icon:n.jsx("img",{src:An(e),alt:"socket type"}),text:Pn(e)}),ns=()=>{const{t:e}=U();return n.jsx(le,{icon:n.jsx("img",{src:On,alt:"pricing"}),text:e("evse.pricing")})};function Ot(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 rs=({tariff:e,additionalCharges:t})=>{const{t:i}=U(),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:Ot(e),cdrAdditionalCharges:t})]})},is=["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"];function fn(e){const[t,i]=e.split(":").map(Number);return t*60+(i||0)}function os(e,t,i){const r=i.getHours()*60+i.getMinutes(),a=fn(e),o=fn(t);return o<a?r>=a||r<o:r>=a&&r<o}function as(e,t){if(xe(e))return!0;const i=e.restrictions;if(i.startTime&&i.endTime&&!os(i.startTime,i.endTime,t))return!1;if(i.dayOfWeek&&i.dayOfWeek.length>0){const r=is[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 ss(e,t){const i=t.restrictions?.minDuration??0,r=t.restrictions?.maxDuration??0;return`${e}:${i}:${r}`}function ls(e,t=new Date){if(!e)return{elements:[],currency:""};const r=(e.elements||[]).filter(d=>as(d,t)),a={};r.forEach(d=>{const l=xe(d);(d.priceComponents||[]).forEach(u=>{const f=ss(u.type,d),p=a[f];(!p||p.isBase&&!l)&&(a[f]={element:d,pc:u,isBase:l})})});const o=new Map,s=[];return Object.values(a).forEach(({element:d,pc:l})=>{o.has(d)||(o.set(d,[]),s.push(d)),o.get(d).push(l)}),{elements:s.map(d=>({...d,priceComponents:o.get(d)})),currency:e.currency||""}}const cs={display:"flex",flexWrap:"wrap",gap:6},Bn={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)"},ds=Bn,us={ENERGY:"tariffPriceComponent.energy",TIME:"tariffPriceComponent.time",FLAT:"tariffPriceComponent.flat",PARKING_TIME:"tariffPriceComponent.parkingTime"},pn=["ENERGY","TIME","FLAT","PARKING_TIME"];function hn(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t||"EUR",maximumFractionDigits:2}).format(e)}function fs(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function Un(e,t){return e.type==="PARKING_TIME"&&(e.price||0)===0&&!!t?.maxDuration&&(!t.minDuration||t.minDuration===0)}function ps(e,t){const i=[];return e.forEach(r=>{(r.priceComponents||[]).forEach(a=>{t&&(a.price||0)<=0&&!Un(a,r.restrictions)||i.push({pc:a,restrictions:r.restrictions})})}),i.sort((r,a)=>{const o=pn.indexOf(r.pc.type),s=pn.indexOf(a.pc.type);return o===-1?1:s===-1?-1:o-s})}const hs=({elements:e,currency:t,skipZero:i=!0,highlight:r=!1,additionalCharges:a=[]})=>{const{t:o}=U(),s=ps(e,i),c=r?ds:Bn;return s.length===0&&a.length===0?null:n.jsxs("div",{style:cs,children:[s.map(({pc:d,restrictions:l},u)=>{if(Un(d,l))return n.jsx("div",{style:c,children:o("tariffPriceComponent.parkingTimeWait",{minutes:String(Math.floor(l.maxDuration/60))})},`pc-${u}`);const f=us[d.type];return f?n.jsx("div",{style:c,children:o(f,{total:hn(fs(d),t)})},`pc-${u}`):null}),a.map(d=>{if(d.type!=="FLAT_FEE")return null;const l=d.price+(d.vat?d.price*(d.vat/100):0);return n.jsx("div",{style:c,children:o("cdrPrice.flatFee",{total:hn(l,t)})},`cdr-${d.id}`)})]})},mn={display:"flex",flexDirection:"column",gap:4,padding:"6px 0"},ms={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,fontSize:12,color:"var(--roadmap-muted-color, #6a6a6a)"},gs={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 c=!!s,d=c?{...mn,cursor:"pointer",userSelect:"none"}:mn,l=u=>{s&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s())};return n.jsxs("div",{style:d,role:c?"button":void 0,tabIndex:c?0:void 0,onClick:s,onKeyDown:c?l:void 0,children:[i!=null&&n.jsx("div",{style:ms,children:i}),n.jsxs("div",{style:gs,children:[n.jsx(hs,{elements:e,currency:t,highlight:a,additionalCharges:o}),r]})]})},Yn={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)"},vs={...Yn,cursor:"default",opacity:.6},Cs={display:"flex",alignItems:"center",gap:6,fontSize:12,color:"var(--roadmap-brand-color, #6102d3)"},ys={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},xs=({type:e,country_code:t,party_id:i,location_id:r,evse_uid:a})=>{const{t:o,reportProblem:s}=U(),[c,d]=h.useState("idle"),l=async u=>{if(u.stopPropagation(),!(c==="submitting"||c==="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 c==="done"?n.jsxs("div",{style:Cs,children:[n.jsx(Eo,{}),n.jsx("span",{children:o("tariff.reportThanks")})]}):n.jsxs(n.Fragment,{children:[n.jsx("button",{type:"button",onClick:l,disabled:c==="submitting",style:c==="submitting"?vs:Yn,children:o("tariff.report")}),c==="error"&&n.jsx("div",{style:ys,children:o("tariff.reportError")})]})},Ts={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)"},bs={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}=U();return n.jsxs("div",{style:Ts,children:[n.jsx("div",{style:bs,children:a("tariffPriceComponent.noTariff")}),n.jsx(xs,{type:"missing_tariff",country_code:e,party_id:t,location_id:i,evse_uid:r})]})},Es={display:"inline-flex",alignItems:"center",justifyContent:"center",color:"var(--roadmap-muted-color, #6a6a6a)",flex:"0 0 auto"},_s=({tariff:e,additionalCharges:t=[],evseId:i,evseUid:r,countryCode:a,partyId:o,locationId:s,locationName:c,setView:d})=>{const l=e?Ot(e):null,{elements:u,currency:f}=ls(l),p=u.map(T=>({...T,priceComponents:(T.priceComponents||[]).filter(j=>!!((j.price||0)>0||j.type==="PARKING_TIME"&&T.restrictions?.maxDuration&&(!T.restrictions.minDuration||T.restrictions.minDuration===0)))})).filter(T=>T.priceComponents.length>0);if(!(!!l&&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:c,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:Es,children:n.jsx(_n,{})})})},ws=({connector:e,tariffs:t,cdrAdditionalCharges:i,location:r,evseId:a,evseUid:o,setView:s})=>{const c=t?.find(d=>d.id===e?.tariff_ids?.[0]);return n.jsxs(n.Fragment,{children:[n.jsx(ts,{connector:e}),n.jsx(ns,{}),n.jsx(_s,{tariff:c,additionalCharges:i,evseId:a,evseUid:o||"",countryCode:r.country_code,partyId:r.party_id,locationId:r.id,locationName:r.name,setView:s})]})},Ns={background:"color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)",borderRadius:8,padding:"8px 12px",marginTop:12},Ss={paddingLeft:10,marginTop:10},Os=({evse:e,tariffs:t,cdrAdditionalCharges:i,location:r,setView:a})=>{const o=me(e.status),s={...Ss,borderLeft:`3px solid ${o}`,borderRadius:2};return n.jsxs("div",{style:Ns,children:[n.jsx(Qa,{evse:e}),n.jsx(es,{evse:e}),e.connectors.map((c,d)=>n.jsx("div",{style:s,children:n.jsx(ws,{connector:c,tariffs:t,cdrAdditionalCharges:i,location:r,evseId:e.evse_id,evseUid:e.uid,setView:a})},`connector-${d}`))]})},As={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 js(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 Ps=({directions:e})=>{const{language:t}=U(),i=js(e||[],t);return i?n.jsx("div",{style:As,children:i}):null},Ds=({currentLocation:e,setView:t})=>{const{options:i}=U();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(Ps,{directions:e.directions}),n.jsx(_a,{location:e}),n.jsx(wa,{evses:e.evses}),n.jsx(Ia,{operator:e.operator,suboperator:e.suboperator||e.subOperator,fallbackOperatorName:e.operator_name||e.operatorName,fallbackSuboperatorName:e.suboperator_name||e.suboperatorName}),n.jsx(Ka,{openingTimes:e.opening_times,chargingWhenClosed:e.charging_when_closed}),n.jsx(Ja,{parkingType:e.parkingType}),n.jsx(Xa,{accessibility:e.charging_accessibility}),e.evses?.map(r=>n.jsx(Os,{evse:r,tariffs:e.tariffs,cdrAdditionalCharges:e.cdrAdditionalCharges||[],location:e,setView:t},`${r.evse_id}-${r.uid}`))]})},Is=()=>{const{setView:e}=De(),{locations:t,locationsStatus:i,options:r}=U(),[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(xo,{})});const{evses:c=[],cdrAdditionalCharges:d}=s,l=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(Po,{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(En,{})}),n.jsx("button",{disabled:!l,onClick:()=>o(Math.min(t.length-1,a+1)),children:n.jsx(_n,{})})]}),p().filter(Boolean).join(", ")]})}),!v&&n.jsx(ca,{setView:e,cdrAdditionalCharges:d,currentLocation:s,evses:c}),v&&n.jsx(Ds,{setView:e,currentLocation:s})]})},ks="BackButton-module_backButton",Ms={backButton:ks};function At({onClick:e=()=>{}}){const{t}=U();return n.jsxs("button",{onClick:e,className:Ms.backButton,children:[n.jsx(En,{}),t("backButton.backTo")]})}function Rs(){const{t:e}=U(),{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(At,{}),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 Ls(){const{t:e}=U(),{current:t,setView:i}=De(),{connector:r,tariff:a,additionalCharges:o,locationName:s,evseId:c,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(At,{}),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:c})]}),a&&n.jsx(rs,{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:c,notes:d})},children:[n.jsx(wn,{})," ",e("tariffPriceComponent.viewTariff")]})]})]}):null}const Hs=Intl.DateTimeFormat().resolvedOptions().timeZone,ft={display:"flex",flexDirection:"column",gap:4,marginTop:14},gn={fontSize:12,fontWeight:600,textTransform:"capitalize",lineHeight:1.4},Fs={fontSize:12,lineHeight:1.5,color:"var(--roadmap-text-color, #2a2a2a)",marginTop:8},zs={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6};function Qe(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 Vs(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 $s(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 Bs(e,t){return!e||e.length===0?void 0:(e.find(r=>r.language?.toLowerCase()===t?.toLowerCase())||e[0])?.text}function Us(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 Ys(){const{t:e,language:t}=U(),{current:i,setView:r}=De(),{tariff:a,additionalCharges:o,locationName:s,evseId:c,evseUid:d,countryCode:l,partyId:u,locationId:f}=i?.args||{};if(!a)return null;const p=Ot(a),v={country_code:l||a.country_code||"",party_id:u||a.party_id||"",location_id:f||"",evse_uid:d||""},y=Bs(a.tariff_alt_text,t),T=Us(a.last_updated,t),j=()=>n.jsx("div",{className:E.headerContainer,children:n.jsxs("div",{className:E.header,onClick:()=>r("locations"),style:{cursor:"pointer"},children:[n.jsx(At,{}),s]})});if(!p)return n.jsxs(n.Fragment,{children:[j(),n.jsx("div",{className:E.container,children:n.jsx(Ct,{...v})})]});const L=(p.elements||[]).filter($s),Y=p.currency||"",D=o||[],N=L.filter(xe),C=Nt({elements:L,limit:40,now:new Date}),I=C.length?[]:Fn(L,Hs,new Date),K=!I.some(W=>W.isActive),te=Vs(t);return n.jsxs(n.Fragment,{children:[j(),n.jsxs("div",{className:E.container,children:[n.jsx("div",{className:E.subheader,children:e("tariff.fullDetailsHeader")}),c&&n.jsx(le,{icon:n.jsx("img",{src:Ve,alt:"power icon"}),text:c}),y&&n.jsx("div",{style:Fs,children:y}),T&&n.jsx("div",{style:zs,children:e("tariff.lastUpdated",{date:T})}),N.length>0&&n.jsx("div",{style:ft,children:n.jsx(He,{elements:N,currency:Y,highlight:I.length>0&&K,additionalCharges:D})}),I.map(W=>n.jsxs("div",{style:ft,children:[n.jsx("div",{style:gn,children:W.days.map(G=>te[G]).join(" – ")}),W.items.map((G,X)=>n.jsx(He,{elements:G.elements||[],currency:Y,highlight:!!G.isActive,label:G.isFullDay?void 0:`${Qe(G.startTime)} – ${Qe(G.endTime)}`},X))]},W.days.join("-"))),C.map((W,G)=>n.jsxs("div",{style:ft,children:[n.jsx("div",{style:gn,children:e("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(t,{weekday:"long",month:"short",day:"numeric"}).format(W.date)})}),W.items.map((X,ce)=>n.jsx(He,{elements:X.elements||[],currency:Y,highlight:!!X.isActive,label:`${Qe(X.startTime)} – ${Qe(X.endTime)}`},ce))]},G)),I.length===0&&C.length===0&&N.length===0&&n.jsx(Ct,{...v})]})]})}const Ws="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",Gs="CloseButton-module_closeButton",qs={closeButton:Gs};function Wn({onClick:e}){return n.jsx("button",{onClick:e,className:qs.closeButton,children:n.jsx("img",{src:Ws})})}function Zs(){const[e,t]=h.useState("locations"),{setView:i}=De();return n.jsxs(he,{name:"locations",currentView:e,onViewChange:t,children:[n.jsx(he.View,{name:"locations",children:n.jsxs(Pe,{children:[n.jsx(Wn,{onClick:()=>i("none")}),n.jsx(Is,{})]})}),n.jsx(he.View,{name:"tariffNote",children:n.jsx(Pe,{children:n.jsx(Rs,{})})}),n.jsx(he.View,{name:"dynamicTariff",children:n.jsx(Pe,{children:n.jsx(Ls,{})})}),n.jsx(he.View,{name:"tariffDetails",children:n.jsx(Pe,{children:n.jsx(Ys,{})})})]})}const Ks="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 Js(){const{locationIds:e,fetchLocations:t,filters:i,isSearching:r}=U(),[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(li,{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:Ks}),Ki(i)&&!(r??!1)&&n.jsx("span",{className:Te.filterCounter})]})]}),n.jsx("div",{className:Te.stackContainer,children:n.jsxs(he,{name:"router",currentView:a,onViewChange:s=>{o(s)},children:[n.jsx(he.View,{name:"locations",children:n.jsx(Zs,{})}),n.jsx(he.View,{name:"filters",children:n.jsxs(Pe,{children:[n.jsx(Wn,{onClick:()=>o("none")}),n.jsx(eo,{})]})})]})})]})}function Gn(e){return!e.shadowRoot&&e?.theming?.backgroundColor?n.jsx(Xs,{...e}):n.jsx(ur,{options:e,language:e.language,children:n.jsxs(fr,{height:e?.height,children:[n.jsx(Js,{}),n.jsx(Ar,{})]})})}const Xs=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 c="https://mapsdk.road.io/styles.css";e.sdkRoot&&(c=e.sdkRoot+"/styles.css");const d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.href=c,s.appendChild(d);const l=qn.createRoot(s);return i.current=l,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(Gn,{...e,shadowRoot:r.current});i.current.render(o)},[e]),n.jsx("div",{ref:t,style:{height:"100%",width:"100%"}})};exports.RoadMap=Gn;
|
|
27
|
+
*/var ct,qt;function Ei(){if(qt)return ct;qt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ct=o()?Object.assign:function(a,s){for(var c,l=r(a),d,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var u in c)t.call(c,u)&&(l[u]=c[u]);if(e){d=e(c);for(var p=0;p<d.length;p++)i.call(c,d[p])&&(l[d[p]]=c[d[p]])}}return l},ct}var lt,Zt;function At(){if(Zt)return lt;Zt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return lt=e,lt}var dt,Jt;function zn(){return Jt||(Jt=1,dt=Function.call.bind(Object.prototype.hasOwnProperty)),dt}var ut,Xt;function _i(){if(Xt)return ut;Xt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=At(),i={},r=zn();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(a,s,c,l,d){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var u;try{if(typeof a[f]!="function"){var p=Error((l||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=a[f](s,f,l,c,null,t)}catch(v){u=v}if(u&&!(u instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var m=d?d():"";e("Failed "+c+" type: "+u.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},ut=o,ut}var ft,Qt;function wi(){if(Qt)return ft;Qt=1;var e=Vn(),t=Ei(),i=At(),r=zn(),o=_i(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return ft=function(c,l){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(g){var T=g&&(d&&g[d]||g[f]);if(typeof T=="function")return T}var p="<<anonymous>>",m={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:B(),arrayOf:j,element:S(),elementType:C(),instanceOf:H,node:q(),objectOf:ne,oneOf:J,oneOfType:X,shape:de,exact:oe};function v(g,T){return g===T?g!==0||1/g===1/T:g!==g&&T!==T}function x(g,T){this.message=g,this.data=T&&typeof T=="object"?T:{},this.stack=""}x.prototype=Error.prototype;function O(g){if(process.env.NODE_ENV!=="production")var T={},F=0;function R(z,M,b,P,k,V,re){if(P=P||p,V=V||b,re!==i){if(l){var y=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 y.name="Invariant Violation",y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=P+":"+b;!T[ue]&&F<3&&(a("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+P+"`. 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."),T[ue]=!0,F++)}}return M[b]==null?z?M[b]===null?new x("The "+k+" `"+V+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new x("The "+k+" `"+V+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:g(M,b,P,k,V)}var D=R.bind(null,!1);return D.isRequired=R.bind(null,!0),D}function I(g){function T(F,R,D,z,M,b){var P=F[R],k=Y(P);if(k!==g){var V=te(P);return new x("Invalid "+z+" `"+M+"` of type "+("`"+V+"` supplied to `"+D+"`, expected ")+("`"+g+"`."),{expectedType:g})}return null}return O(T)}function B(){return O(s)}function j(g){function T(F,R,D,z,M){if(typeof g!="function")return new x("Property `"+M+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var b=F[R];if(!Array.isArray(b)){var P=Y(b);return new x("Invalid "+z+" `"+M+"` of type "+("`"+P+"` supplied to `"+D+"`, expected an array."))}for(var k=0;k<b.length;k++){var V=g(b,k,D,z,M+"["+k+"]",i);if(V instanceof Error)return V}return null}return O(T)}function S(){function g(T,F,R,D,z){var M=T[F];if(!c(M)){var b=Y(M);return new x("Invalid "+D+" `"+z+"` of type "+("`"+b+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return O(g)}function C(){function g(T,F,R,D,z){var M=T[F];if(!e.isValidElementType(M)){var b=Y(M);return new x("Invalid "+D+" `"+z+"` of type "+("`"+b+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return O(g)}function H(g){function T(F,R,D,z,M){if(!(F[R]instanceof g)){var b=g.name||p,P=we(F[R]);return new x("Invalid "+z+" `"+M+"` of type "+("`"+P+"` supplied to `"+D+"`, expected ")+("instance of `"+b+"`."))}return null}return O(T)}function J(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function T(F,R,D,z,M){for(var b=F[R],P=0;P<g.length;P++)if(v(b,g[P]))return null;var k=JSON.stringify(g,function(re,y){var ue=te(y);return ue==="symbol"?String(y):y});return new x("Invalid "+z+" `"+M+"` of value `"+String(b)+"` "+("supplied to `"+D+"`, expected one of "+k+"."))}return O(T)}function ne(g){function T(F,R,D,z,M){if(typeof g!="function")return new x("Property `"+M+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var b=F[R],P=Y(b);if(P!=="object")return new x("Invalid "+z+" `"+M+"` of type "+("`"+P+"` supplied to `"+D+"`, expected an object."));for(var k in b)if(r(b,k)){var V=g(b,k,D,z,M+"."+k,i);if(V instanceof Error)return V}return null}return O(T)}function X(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var T=0;T<g.length;T++){var F=g[T];if(typeof F!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+he(F)+" at index "+T+"."),s}function R(D,z,M,b,P){for(var k=[],V=0;V<g.length;V++){var re=g[V],y=re(D,z,M,b,P,i);if(y==null)return null;y.data&&r(y.data,"expectedType")&&k.push(y.data.expectedType)}var ue=k.length>0?", expected one of type ["+k.join(", ")+"]":"";return new x("Invalid "+b+" `"+P+"` supplied to "+("`"+M+"`"+ue+"."))}return O(R)}function q(){function g(T,F,R,D,z){return E(T[F])?null:new x("Invalid "+D+" `"+z+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return O(g)}function ee(g,T,F,R,D){return new x((g||"React class")+": "+T+" type `"+F+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function de(g){function T(F,R,D,z,M){var b=F[R],P=Y(b);if(P!=="object")return new x("Invalid "+z+" `"+M+"` of type `"+P+"` "+("supplied to `"+D+"`, expected `object`."));for(var k in g){var V=g[k];if(typeof V!="function")return ee(D,z,M,k,te(V));var re=V(b,k,D,z,M+"."+k,i);if(re)return re}return null}return O(T)}function oe(g){function T(F,R,D,z,M){var b=F[R],P=Y(b);if(P!=="object")return new x("Invalid "+z+" `"+M+"` of type `"+P+"` "+("supplied to `"+D+"`, expected `object`."));var k=t({},F[R],g);for(var V in k){var re=g[V];if(r(g,V)&&typeof re!="function")return ee(D,z,M,V,te(re));if(!re)return new x("Invalid "+z+" `"+M+"` key `"+V+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(F[R],null," ")+`
|
|
28
|
+
Valid keys: `+JSON.stringify(Object.keys(g),null," "));var y=re(b,V,D,z,M+"."+V,i);if(y)return y}return null}return O(T)}function E(g){switch(typeof g){case"number":case"string":case"undefined":return!0;case"boolean":return!g;case"object":if(Array.isArray(g))return g.every(E);if(g===null||c(g))return!0;var T=u(g);if(T){var F=T.call(g),R;if(T!==g.entries){for(;!(R=F.next()).done;)if(!E(R.value))return!1}else for(;!(R=F.next()).done;){var D=R.value;if(D&&!E(D[1]))return!1}}else return!1;return!0;default:return!1}}function L(g,T){return g==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function Y(g){var T=typeof g;return Array.isArray(g)?"array":g instanceof RegExp?"object":L(T,g)?"symbol":T}function te(g){if(typeof g>"u"||g===null)return""+g;var T=Y(g);if(T==="object"){if(g instanceof Date)return"date";if(g instanceof RegExp)return"regexp"}return T}function he(g){var T=te(g);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function we(g){return!g.constructor||!g.constructor.name?p:g.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},ft}var pt,en;function Ni(){if(en)return pt;en=1;var e=At();function t(){}function i(){}return i.resetWarningCache=t,pt=function(){function r(s,c,l,d,f,u){if(u!==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 o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:i,resetWarningCache:t};return a.PropTypes=a,a},pt}var tn;function Si(){if(tn)return We.exports;if(tn=1,process.env.NODE_ENV!=="production"){var e=Vn(),t=!0;We.exports=wi()(e.isElement,t)}else We.exports=Ni()();return We.exports}var Oi=Si();const A=xi(Oi);function Ai(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Pi(e,t){e.classList?e.classList.add(t):Ai(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function nn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ji(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=nn(e.className,t):e.setAttribute("class",nn(e.className&&e.className.baseVal||"",t))}const rn={disabled:!1};var Di=process.env.NODE_ENV!=="production"?A.oneOfType([A.number,A.shape({enter:A.number,exit:A.number,appear:A.number}).isRequired]):null,Ii=process.env.NODE_ENV!=="production"?A.oneOfType([A.string,A.shape({enter:A.string,exit:A.string,active:A.string}),A.shape({enter:A.string,enterDone:A.string,enterActive:A.string,exit:A.string,exitDone:A.string,exitActive:A.string})]):null;const Pt=h.createContext(null);var $n=function(t){return t.scrollTop},Fe="unmounted",Te="exited",ce="entering",fe="entered",$e="exiting",pe=(function(e){Ot(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,c=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?c?(l=Te,a.appearStatus=ce):l=fe:r.unmountOnExit||r.mountOnEnter?l=Fe:l=Te,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Fe?{status:Te}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ce&&s!==fe&&(a=ce):(s===ce||s===fe)&&(a=$e)}this.updateStatus(!1,a)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var o=this.props.timeout,a,s,c;return a=s=c=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,c=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:c}},i.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ce){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Le.findDOMNode(this);s&&$n(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Te&&this.setState({status:Fe})},i.performEnter=function(o){var a=this,s=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[Le.findDOMNode(this),c],d=l[0],f=l[1],u=this.getTimeouts(),p=c?u.appear:u.enter;if(!o&&!s||rn.disabled){this.safeSetState({status:fe},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:ce},function(){a.props.onEntering(d,f),a.onTransitionEnd(p,function(){a.safeSetState({status:fe},function(){a.props.onEntered(d,f)})})})},i.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),c=this.props.nodeRef?void 0:Le.findDOMNode(this);if(!a||rn.disabled){this.safeSetState({status:Te},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:$e},function(){o.props.onExiting(c),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Te},function(){o.props.onExited(c)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},i.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(c){s&&(s=!1,a.nextCallback=null,o(c))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},i.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Le.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!s||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],f=l[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},i.render=function(){var o=this.state.status;if(o===Fe)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=Hn(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(Pt.Provider,{value:null},typeof s=="function"?s(o,c):h.cloneElement(h.Children.only(s),c))},t})(h.Component);pe.contextType=Pt;pe.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:A.shape({current:typeof Element>"u"?A.any:function(e,t,i,r,o,a){var s=e[t];return A.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,i,r,o,a)}}),children:A.oneOfType([A.func.isRequired,A.element.isRequired]).isRequired,in:A.bool,mountOnEnter:A.bool,unmountOnExit:A.bool,appear:A.bool,enter:A.bool,exit:A.bool,timeout:function(t){var i=Di;t.addEndListener||(i=i.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return i.apply(void 0,[t].concat(o))},addEndListener:A.func,onEnter:A.func,onEntering:A.func,onEntered:A.func,onExit:A.func,onExiting:A.func,onExited:A.func}:{};function Ne(){}pe.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};pe.UNMOUNTED=Fe;pe.EXITED=Te;pe.ENTERING=ce;pe.ENTERED=fe;pe.EXITING=$e;var ki=function(t,i){return t&&i&&i.split(" ").forEach(function(r){return Pi(t,r)})},ht=function(t,i){return t&&i&&i.split(" ").forEach(function(r){return ji(t,r)})},jt=(function(e){Ot(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(c,l){var d=r.resolveArguments(c,l),f=d[0],u=d[1];r.removeClasses(f,"exit"),r.addClass(f,u?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(c,l)},r.onEntering=function(c,l){var d=r.resolveArguments(c,l),f=d[0],u=d[1],p=u?"appear":"enter";r.addClass(f,p,"active"),r.props.onEntering&&r.props.onEntering(c,l)},r.onEntered=function(c,l){var d=r.resolveArguments(c,l),f=d[0],u=d[1],p=u?"appear":"enter";r.removeClasses(f,p),r.addClass(f,p,"done"),r.props.onEntered&&r.props.onEntered(c,l)},r.onExit=function(c){var l=r.resolveArguments(c),d=l[0];r.removeClasses(d,"appear"),r.removeClasses(d,"enter"),r.addClass(d,"exit","base"),r.props.onExit&&r.props.onExit(c)},r.onExiting=function(c){var l=r.resolveArguments(c),d=l[0];r.addClass(d,"exit","active"),r.props.onExiting&&r.props.onExiting(c)},r.onExited=function(c){var l=r.resolveArguments(c),d=l[0];r.removeClasses(d,"exit"),r.addClass(d,"exit","done"),r.props.onExited&&r.props.onExited(c)},r.resolveArguments=function(c,l){return r.props.nodeRef?[r.props.nodeRef.current,c]:[c,l]},r.getClassNames=function(c){var l=r.props.classNames,d=typeof l=="string",f=d&&l?l+"-":"",u=d?""+f+c:l[c],p=d?u+"-active":l[c+"Active"],m=d?u+"-done":l[c+"Done"];return{baseClassName:u,activeClassName:p,doneClassName:m}},r}var i=t.prototype;return i.addClass=function(o,a,s){var c=this.getClassNames(a)[s+"ClassName"],l=this.getClassNames("enter"),d=l.doneClassName;a==="appear"&&s==="done"&&d&&(c+=" "+d),s==="active"&&o&&$n(o),c&&(this.appliedClasses[a][s]=c,ki(o,c))},i.removeClasses=function(o,a){var s=this.appliedClasses[a],c=s.base,l=s.active,d=s.done;this.appliedClasses[a]={},c&&ht(o,c),l&&ht(o,l),d&&ht(o,d)},i.render=function(){var o=this.props;o.classNames;var a=Hn(o,["classNames"]);return h.createElement(pe,rt({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(h.Component);jt.defaultProps={classNames:""};jt.propTypes=process.env.NODE_ENV!=="production"?rt({},pe.propTypes,{classNames:Ii,onEnter:A.func,onEntering:A.func,onEntered:A.func,onExit:A.func,onExiting:A.func,onExited:A.func}):{};var Ge,Ke;function Ri(e,t){return!(e===t||h.isValidElement(e)&&h.isValidElement(t)&&e.key!=null&&e.key===t.key)}var Ce={out:"out-in",in:"in-out"},it=function(t,i,r){return function(){var o;t.props[i]&&(o=t.props)[i].apply(o,arguments),r()}},Mi=(Ge={},Ge[Ce.out]=function(e){var t=e.current,i=e.changeState;return h.cloneElement(t,{in:!1,onExited:it(t,"onExited",function(){i(ce,null)})})},Ge[Ce.in]=function(e){var t=e.current,i=e.changeState,r=e.children;return[t,h.cloneElement(r,{in:!0,onEntered:it(r,"onEntered",function(){i(ce)})})]},Ge),Li=(Ke={},Ke[Ce.out]=function(e){var t=e.children,i=e.changeState;return h.cloneElement(t,{in:!0,onEntered:it(t,"onEntered",function(){i(fe,h.cloneElement(t,{in:!0}))})})},Ke[Ce.in]=function(e){var t=e.current,i=e.children,r=e.changeState;return[h.cloneElement(t,{in:!1,onExited:it(t,"onExited",function(){r(fe,h.cloneElement(i,{in:!0}))})}),h.cloneElement(i,{in:!0})]},Ke),Dt=(function(e){Ot(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.state={status:fe,current:null},r.appeared=!1,r.changeState=function(c,l){l===void 0&&(l=r.state.current),r.setState({status:c,current:l})},r}var i=t.prototype;return i.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(o,a){return o.children==null?{current:null}:a.status===ce&&o.mode===Ce.in?{status:ce}:a.current&&Ri(a.current,o.children)?{status:$e}:{current:h.cloneElement(o.children,{in:!0})}},i.render=function(){var o=this.props,a=o.children,s=o.mode,c=this.state,l=c.status,d=c.current,f={children:a,current:d,changeState:this.changeState,status:l},u;switch(l){case ce:u=Li[s](f);break;case $e:u=Mi[s](f);break;case fe:u=d}return h.createElement(Pt.Provider,{value:{isMounting:!this.appeared}},u)},t})(h.Component);Dt.propTypes=process.env.NODE_ENV!=="production"?{mode:A.oneOf([Ce.in,Ce.out]),children:A.oneOfType([A.element.isRequired])}:{};Dt.defaultProps={mode:Ce.out};const Fi="stack-module_stack",Hi="stack-module_slideEnter",Vi="stack-module_slideEnterActive",zi="stack-module_slideExit",$i="stack-module_slideExitActive",ve={stack:Fi,slideEnter:Hi,slideEnterActive:Vi,slideExit:zi,slideExitActive:$i};function Bi({name:e,children:t}){return n.jsx("div",{className:ve.stack,children:t})}const Bn=h.createContext({setView:()=>{},current:{name:"none"}});function ke(){return h.useContext(Bn)}function me({name:e,currentView:t,onViewChange:i,children:r}){const o={none:{name:"none",ref:h.createRef(),view:null}};h.Children.forEach(r,u=>{if(!h.isValidElement(u))return;const{name:p}=u.props;if(!p)throw new Error("name is required for Stack.View");o[p]={name:p,ref:h.createRef(),view:u}});const[a,s]=h.useState(o[t].ref);h.useEffect(()=>{s(o[t].ref)},[t]);const{view:c}=o[t],[l,d]=h.useState({}),f=h.useMemo(()=>({current:{name:t,args:l},setView:(u,p)=>{d(p),i(u,p)}}),[t,i,l,d]);return n.jsx(Bn.Provider,{value:f,children:n.jsx(Dt,{mode:"out-in",children:n.jsx(jt,{classNames:{enter:ve.slideEnter,enterActive:ve.slideEnterActive,enterDone:ve.slideEnterDone,exit:ve.slideExit,exitActive:ve.slideExitActive,exitDone:ve.slideExitDone},mountOnEnter:!0,unmountOnExit:!0,timeout:300,nodeRef:a,addEndListener:u=>{a.current.addEventListener("transitionend",u,!1)},children:n.jsx("div",{className:ve.stack,ref:a,children:c})},t)})})}me.View=Bi;const Ui="router-module_container",Wi="router-module_controlsContainer",Yi="router-module_filterButton",Gi="router-module_filterCounter",Ki="router-module_spinner",qi="router-module_stackContainer",xe={container:Ui,controlsContainer:Wi,filterButton:Yi,filterCounter:Gi,spinner:Ki,stackContainer:qi},Zi="SearchInput-module_container",Ji="SearchInput-module_searchInput",on={container:Zi,searchInput:Ji};function Xi({onFocus:e}){const{options:t,setPlace:i,t:r,language:o}=$(),a=t.googleApiKey,s=h.useRef(null),c=Fn(a,o);return h.useEffect(()=>{s.current&&c.importLibrary("places").then(l=>{const d=new l.Autocomplete(s.current,{fields:["geometry"]});d.addListener("place_changed",()=>{const f=d.getPlace();i(f)})})},[s]),n.jsx("div",{className:on.container,children:n.jsx("input",{onFocus:e,ref:s,className:on.searchInput,type:"text",placeholder:r("search.placeholder")})})}const Qi="filters-module_headerContainer",eo="filters-module_container",to="filters-module_header",no="filters-module_heading",ro="filters-module_actionLinkClearAll",io="filters-module_optionsGroup",oo="filters-module_rowLabel",ao="filters-module_label",so="filters-module_dot",co="filters-module_connectorIcon",_={headerContainer:Qi,container:eo,header:to,heading:no,actionLinkClearAll:ro,optionsGroup:io,rowLabel:oo,label:ao,dot:so,connectorIcon:co},lo="Checkbox-module_container",uo="Checkbox-module_box",an={container:lo,box:uo};function ae({id:e,name:t,checked:i,onChange:r,type:o="checkbox"}){const[a,s]=h.useState(i||!1),c=h.useCallback(l=>{s(l.target.checked),r(l.target.checked)},[r]);return h.useEffect(()=>{s(i)},[i]),n.jsxs("div",{className:an.container,children:[n.jsx("input",{name:t,id:e,type:o,value:a,checked:a,onChange:c}),n.jsx("span",{className:an.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 fo="Range-module_container",po="Range-module_input",ho="Range-module_ticksContainer",mo="Range-module_tick",qe={container:fo,input:po,ticksContainer:ho,tick:mo};function go({ticks:e,value:t,onChange:i}){const r=h.useRef(null),o=e.findIndex(s=>s.value===t),a=o/(e.length-1)*100;return n.jsxs("div",{className:qe.container,children:[n.jsx("input",{value:o,onChange:s=>{i(e[s.target.value].value)},ref:r,className:qe.input,type:"range",list:"tickmarks",step:"1",min:"0",max:"8",style:{"--roadmap-range-bgize":`${a}%`}}),n.jsx("div",{className:qe.ticksContainer,children:e.map((s,c)=>n.jsx("div",{onClick:l=>{i(e[c].value)},className:qe.tick,children:s.label},s.label))})]})}const vo="MultiSelect-module_multiSelect",Co="MultiSelect-module_control",yo="MultiSelect-module_disabled",xo="MultiSelect-module_valueContainer",To="MultiSelect-module_input",bo="MultiSelect-module_multiValue",Eo="MultiSelect-module_multiValueLabel",_o="MultiSelect-module_multiValueRemove",wo="MultiSelect-module_dropdownIndicator",No="MultiSelect-module_menu",So="MultiSelect-module_menuOpen",Oo="MultiSelect-module_menuList",Ao="MultiSelect-module_groupHeading",Po="MultiSelect-module_groupSeparator",jo="MultiSelect-module_option",Do="MultiSelect-module_optionLast",Io="MultiSelect-module_optionSelected",ko="MultiSelect-module_optionFocused",Ro="MultiSelect-module_optionCheck",Mo="MultiSelect-module_optionDisabled",Lo="MultiSelect-module_optionLabel",Fo="MultiSelect-module_noOptions",G={multiSelect:vo,control:Co,disabled:yo,valueContainer:xo,input:To,multiValue:bo,multiValueLabel:Eo,multiValueRemove:_o,dropdownIndicator:wo,menu:No,menuOpen:So,menuList:Oo,groupHeading:Ao,groupSeparator:Po,option:jo,optionLast:Do,optionSelected:Io,optionFocused:ko,optionCheck:Ro,optionDisabled:Mo,optionLabel:Lo,noOptions:Fo},sn=({id:e,name:t,options:i,value:r=[],preferredValues:o=[],placeholder:a="Select...",disabled:s=!1,className:c,onChange:l})=>{const[d,f]=h.useState(!1),[u,p]=h.useState(""),[m,v]=h.useState(-1),x=h.useRef(null),O=h.useRef(null),I=h.useMemo(()=>new Set(o),[o]),{preferred:B,others:j}=h.useMemo(()=>{const E=u.toLowerCase(),L=i.filter(Y=>Y.label.toLowerCase().includes(E));return{preferred:L.filter(Y=>I.has(Y.value)),others:L.filter(Y=>!I.has(Y.value))}},[i,u,I]),S=h.useMemo(()=>[...B,...j],[B,j]),C=h.useMemo(()=>i.filter(E=>r.includes(E.value)),[i,r]);h.useEffect(()=>{m>=S.length&&v(S.length>0?0:-1)},[S,m]);const H=()=>{s||(f(!0),m<0&&S.length>0&&v(0))},J=()=>{f(!1),p(""),v(-1)},ne=E=>{if(E.disabled)return;const L=r.includes(E.value)?r.filter(Y=>Y!==E.value):[...r,E.value];l?.(L),p(""),f(!0),x.current?.focus()},X=E=>{l?.(r.filter(L=>L!==E))},q=E=>{if(!s)switch(E.key){case"Backspace":u===""&&r.length>0&&(E.preventDefault(),l?.(r.slice(0,-1)));return;case"ArrowDown":E.preventDefault(),d?S.length>0&&v(L=>(L+1)%S.length):(f(!0),S.length>0&&v(0));return;case"ArrowUp":E.preventDefault(),d?S.length>0&&v(L=>(L<=0?S.length:L)-1):(f(!0),S.length>0&&v(S.length-1));return;case"Enter":d&&m>=0&&S[m]&&(E.preventDefault(),ne(S[m]));return;case"Escape":d&&(E.preventDefault(),J());return;case"Home":d&&S.length>0&&(E.preventDefault(),v(0));return;case"End":d&&S.length>0&&(E.preventDefault(),v(S.length-1));return;default:return}},ee=E=>{const L=E.relatedTarget;L&&O.current?.contains(L)||J()},de=()=>{s||(d?f(!1):H(),x.current?.focus())},oe=(E,L,Y)=>{const te=r.includes(E.value);return n.jsxs("div",{className:`${G.option} ${m===L?G.optionFocused:""} ${te?G.optionSelected:""} ${E.disabled?G.optionDisabled:""} ${Y?G.optionLast:""}`,role:"option","aria-selected":te,"aria-disabled":E.disabled||void 0,onMouseDown:he=>he.preventDefault(),onMouseMove:()=>{m!==L&&v(L)},onClick:()=>ne(E),children:[n.jsx("span",{className:G.optionLabel,children:E.label}),te&&n.jsx("svg",{className:G.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"})})]},E.value)};return n.jsxs("div",{ref:O,className:`${G.multiSelect} ${c??""}`,children:[n.jsxs("div",{className:`${G.control} ${s?G.disabled:""}`,children:[n.jsxs("div",{className:G.valueContainer,onMouseDown:E=>{E.target===E.currentTarget&&(E.preventDefault(),x.current?.focus(),H())},children:[C.map(E=>n.jsxs("div",{className:G.multiValue,children:[n.jsx("span",{className:G.multiValueLabel,children:E.label}),n.jsx("button",{type:"button",className:G.multiValueRemove,onMouseDown:L=>L.preventDefault(),onClick:()=>X(E.value),disabled:s,"aria-label":`Remove ${E.label}`,children:"×"})]},E.value)),n.jsx("input",{ref:x,id:e,name:t,className:G.input,value:u,onChange:E=>{p(E.target.value),f(!0),v(0)},onKeyDown:q,onFocus:H,onBlur:ee,placeholder:C.length===0?a:"",disabled:s,autoComplete:"off",role:"combobox","aria-expanded":d,"aria-autocomplete":"list"})]}),n.jsx("button",{type:"button",className:G.dropdownIndicator,onMouseDown:E=>E.preventDefault(),onClick:de,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"})})})]}),d&&n.jsx("div",{className:`${G.menu} ${G.menuOpen}`,role:"listbox",children:n.jsxs("div",{className:G.menuList,children:[B.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:G.groupHeading,children:"Preferred"}),B.map((E,L)=>oe(E,L,L===B.length-1&&j.length===0))]}),j.length>0&&n.jsxs(n.Fragment,{children:[B.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:G.groupSeparator}),n.jsx("div",{className:G.groupHeading,children:"All"})]}),j.map((E,L)=>oe(E,B.length+L,L===j.length-1))]}),B.length===0&&j.length===0&&n.jsx("div",{className:G.noOptions,children:"No options found"})]})})]})},Ho="SelectField-module_selectField",Vo="SelectField-module_select",cn={selectField:Ho,select:Vo},ln=({id:e,name:t,value:i,options:r=[],placeholder:o="Select an option",disabled:a=!1,className:s="",onChange:c,onBlur:l,onFocus:d})=>{const f=u=>{const p=u.target.value,m=r.find(v=>v.value.toString()===p);m&&c&&c(m.value)};return n.jsx("div",{className:`${cn.selectField} ${s}`,children:n.jsxs("select",{id:e,name:t,value:i||"",disabled:a,onChange:f,onBlur:l,onFocus:d,className:cn.select,children:[o&&n.jsx("option",{value:"",disabled:!0,children:o}),r.map((u,p)=>n.jsx("option",{value:u.value,disabled:u.disabled,children:u.label},`${p}`))]})})},dn="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",un="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",fn="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",pn="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",Ze="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",hn="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",N="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",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='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",be={IEC_62196_T1:fn,IEC_62196_T1_COMBO:pn,IEC_62196_T2:dn,IEC_62196_T2_COMBO:un,IEC_62196_T3:Ze,IEC_62196_T3A:hn,IEC_62196_T3B:Ze,IEC_62196_T3C:Ze,CHADEMO:se,CHAOJI:se,CATARC:Se,GBT_AC:Se,GBT_DC:Se,SCHUKO:N,DOMESTIC_A:N,DOMESTIC_B:N,DOMESTIC_C:N,DOMESTIC_D:N,DOMESTIC_E:N,DOMESTIC_F:N,DOMESTIC_G:N,DOMESTIC_H:N,DOMESTIC_I:N,DOMESTIC_J:N,DOMESTIC_K:N,DOMESTIC_L:N,DOMESTIC_M:N,DOMESTIC_N:N,DOMESTIC_O:N,IEC_60309_2_SINGLE_16:N,IEC_60309_2_THREE_16:N,IEC_60309_2_THREE_32:N,IEC_60309_2_THREE_64:N,NEMA_5_20:N,NEMA_6_30:N,NEMA_6_50:N,NEMA_10_30:N,NEMA_10_50:N,NEMA_14_30:N,NEMA_14_50:N,PANTOGRAPH_BOTTOM_UP:se,PANTOGRAPH_TOP_DOWN:se,TESLA_R:se,TESLA_S:se,CONNECTOR_STANDARD_TYPE_CHADEMO:se,CONNECTOR_STANDARD_TYPE_CHAOJI:se,CONNECTOR_STANDARD_TYPE_CATARC:Se,CONNECTOR_STANDARD_TYPE_SCHUKO:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_A:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_B:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_C:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_D:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_E:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_F:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_G:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_H:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_I:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_J:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_K:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_L:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_M:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_N:N,CONNECTOR_STANDARD_TYPE_DOMESTIC_O:N,CONNECTOR_STANDARD_TYPE_GBT_AC:Se,CONNECTOR_STANDARD_TYPE_GBT_DC:Se,CONNECTOR_STANDARD_TYPE_IEC_60309_2_SINGLE_16:N,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_16:N,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_32:N,CONNECTOR_STANDARD_TYPE_IEC_60309_2_THREE_64:N,CONNECTOR_STANDARD_TYPE_IEC_62196_T1:fn,CONNECTOR_STANDARD_TYPE_IEC_62196_T1_COMBO:pn,CONNECTOR_STANDARD_TYPE_IEC_62196_T2:dn,CONNECTOR_STANDARD_TYPE_IEC_62196_T2_COMBO:un,CONNECTOR_STANDARD_TYPE_IEC_62196_T3A:hn,CONNECTOR_STANDARD_TYPE_IEC_62196_T3C:Ze,CONNECTOR_STANDARD_TYPE_NEMA_5_20:N,CONNECTOR_STANDARD_TYPE_NEMA_6_30:N,CONNECTOR_STANDARD_TYPE_NEMA_6_50:N,CONNECTOR_STANDARD_TYPE_NEMA_10_30:N,CONNECTOR_STANDARD_TYPE_NEMA_10_50:N,CONNECTOR_STANDARD_TYPE_NEMA_14_30:N,CONNECTOR_STANDARD_TYPE_NEMA_14_50:N,CONNECTOR_STANDARD_TYPE_PANTOGRAPH_BOTTOM_UP:se,CONNECTOR_STANDARD_TYPE_PANTOGRAPH_TOP_DOWN:se,CONNECTOR_STANDARD_TYPE_TESLA_R:se,CONNECTOR_STANDARD_TYPE_TESLA_S:se},He={minPower:7,operator:[],status:[],publishingMode:"",connectorTypes:[],chargingAccessibility:"ALL",noAdditionalCharges:!1,powerType:void 0,operatorOnly:"",remoteStartStop:!1,searchPhrase:"",excludeOperator:[],authMethodCapabilities:[]};function zo(e){return!!(e.minPower&&e.minPower!==He.minPower||e?.status?.length||e?.connectorTypes?.length||e?.chargingAccessibility&&e?.chargingAccessibility!==He.chargingAccessibility||e?.operator?.length||e?.powerType||e?.partyId||e?.noAdditionalCharges||e?.operatorOnly||e?.remoteStartStop||e?.searchPhrase||e?.excludeOperator?.length||e?.authMethodCapabilities?.length)}const $o=[{value:"AUTH_METHOD_CAPABILITY_PLUG_AND_CHARGE",labelKey:"filters.authCapability.plugAndCharge"},{value:"AUTH_METHOD_CAPABILITY_CREDIT_CARD_PAYABLE",labelKey:"filters.authCapability.creditCard"}],Bo=[{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}];function Uo(e){return h.useReducer((t,i)=>({...t,...i}),e)}function Wo(){const{setFilters:e,t,filters:i,filterConfiguration:r,options:o,mapKind:a}=$(),[s,c]=Uo({...He,...i}),{setView:l}=ke(),d=o.version==="v2"&&r?.operators?.length>1,f=h.useRef();return h.useEffect(()=>{f.current&&i!==f.current&&c(i)},[i]),h.useEffect(()=>{f.current=s,e(s)},[s]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:_.headerContainer,children:n.jsx("div",{className:_.header,children:t("filters.header")})}),n.jsxs("div",{className:_.container,children:[n.jsx("button",{onClick:()=>{c(He),e(He)},className:_.actionLinkClearAll,children:t("filters.clearAll")}),o.version==="v2"&&r?.showSearchPhraseFilter&&n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.searchPhrase")}),n.jsx("input",{type:"text",value:s.searchPhrase||"",placeholder:t("filters.searchPhrasePlaceholder"),onChange:u=>c({searchPhrase:u.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:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.onlyShow")}),n.jsxs("label",{htmlFor:"dsChargers",className:_.rowLabel,children:[n.jsx("div",{className:_.label,children:t("filters.dcChargers")}),n.jsx(ae,{id:"dsChargers",checked:s.powerType==="dc",onChange:u=>{c({powerType:u?"dc":void 0})}})]}),o.version!=="v2"&&n.jsxs("label",{htmlFor:"efluxChargers",className:_.rowLabel,children:[n.jsx("div",{className:_.label,children:t("filters.efluxChargers")}),n.jsx(ae,{id:"efluxChargers",checked:s.partyId==="EFL",onChange:u=>{c({partyId:u?"EFL":void 0})}})]}),(o.version!=="v2"||r?.showNoAdditionalFeeFilter)&&n.jsxs("label",{htmlFor:"noAdditionalFee",className:_.rowLabel,children:[n.jsx("div",{className:_.label,children:t("filters.noAdditionalFee")}),n.jsx(ae,{id:"noAdditionalFee",checked:s.noAdditionalCharges,onChange:u=>{c({noAdditionalCharges:u?!0:void 0})}})]}),n.jsxs("label",{htmlFor:"remoteStartStop",className:_.rowLabel,children:[n.jsx("div",{className:_.label,children:t("filters.remoteStartStop")}),n.jsx(ae,{id:"remoteStartStop",checked:s.remoteStartStop,onChange:u=>{c({remoteStartStop:u?!0:void 0})}})]}),r.showOperatorOnly&&o.version==="v2"&&n.jsxs("label",{htmlFor:"operatorOnly",className:_.rowLabel,children:[n.jsx("div",{className:_.label,children:`Show '${r.showOperatorOnly}' only`}),n.jsx(ae,{id:"operatorOnly",checked:s.operatorOnly===r.showOperatorOnly,onChange:u=>{c({operatorOnly:u?r.showOperatorOnly:void 0})}})]})]}),d&&n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.operator")}),n.jsx(sn,{id:"operator",preferredValues:o.preferredOperators,value:s.operator,options:[...r?.operators?.map(u=>({value:u?.connectionId,label:u?.name,selected:s.operators?.includes(u?.connectionId)}))||[]],placeholder:"Select operator",onChange:u=>{c({operator:u})}})]}),d&&r?.showExcludeOperatorFilter&&n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.excludeOperator")}),n.jsx(sn,{id:"excludeOperator",preferredValues:o.preferredOperators,value:s.excludeOperator,options:[...r?.operators?.map(u=>({value:u?.connectionId,label:u?.name,selected:s.excludeOperator?.includes(u?.connectionId)}))||[]],placeholder:t("filters.excludeOperator"),onChange:u=>{c({excludeOperator:u})}})]}),r?.showPublishingModeFilter&&r?.publishingMode?.length>1&&n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:"Visibility"}),n.jsx(ln,{id:"publishingMode",value:s.publishingMode,options:[{value:"",label:"All locations"},{value:"PUBLISHING_MODE_PUBLIC",label:"Public locations"},{value:"PUBLISHING_MODE_PRIVATE",label:"Private locations"}],onChange:u=>{c({publishingMode:u})}})]}),n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.statusHeading")}),Rn(a).map(u=>n.jsxs("label",{htmlFor:u.id,className:_.rowLabel,children:[n.jsxs("div",{className:_.label,children:[n.jsx("div",{className:_.dot,style:{background:u.color}}),t(u.labelKey)]}),n.jsx(ae,{id:u.id,name:"status",checked:u.values.every(p=>s.status.includes(p)),onChange:p=>{c({status:gt(p?"add":"remove",s.status,u.values)})}})]},u.id))]}),n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.chargingPower")}),n.jsx(go,{value:s.minPower,onChange:u=>{c({minPower:u})},ticks:Bo})]}),n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.connectorType")}),n.jsxs("label",{htmlFor:"type1",className:_.rowLabel,children:[n.jsxs("div",{className:_.label,children:[n.jsx("img",{src:be.IEC_62196_T1,className:_.connectorIcon}),"Type 1 (Yazaki)"]}),n.jsx(ae,{id:"type1",checked:s.connectorTypes.includes("IEC_62196_T1"),onChange:u=>{c({connectorTypes:u?[...s.connectorTypes,"IEC_62196_T1"]:s.connectorTypes.filter(p=>p!=="IEC_62196_T1")})}})]}),n.jsxs("label",{htmlFor:"type2",className:_.rowLabel,children:[n.jsxs("div",{className:_.label,children:[n.jsx("img",{src:be.IEC_62196_T2,className:_.connectorIcon}),"Type 2 (Mennekes)"]}),n.jsx(ae,{id:"type2",checked:s.connectorTypes.includes("IEC_62196_T2"),onChange:u=>{c({connectorTypes:u?[...s.connectorTypes,"IEC_62196_T2"]:s.connectorTypes.filter(p=>p!=="IEC_62196_T2")})}})]}),n.jsxs("label",{htmlFor:"type3",className:_.rowLabel,children:[n.jsxs("div",{className:_.label,children:[n.jsx("img",{src:be.IEC_62196_T3,className:_.connectorIcon}),"Type 3 (Le Grand)"]}),n.jsx(ae,{id:"type3",checked:s.connectorTypes.includes("IEC_62196_T3A"),onChange:u=>{c({connectorTypes:u?[...s.connectorTypes,"IEC_62196_T3A"]:s.connectorTypes.filter(p=>p!=="IEC_62196_T3A")})}})]}),n.jsxs("label",{htmlFor:"CHAdeMo",className:_.rowLabel,children:[n.jsxs("div",{className:_.label,children:[n.jsx("img",{src:be.CHADEMO,className:_.connectorIcon}),"CHAdeMo"]}),n.jsx(ae,{id:"CHAdeMo",checked:s.connectorTypes.includes("CHADEMO"),onChange:u=>{c({connectorTypes:u?[...s.connectorTypes,"CHADEMO"]:s.connectorTypes.filter(p=>p!=="CHADEMO")})}})]}),n.jsxs("label",{htmlFor:"domestic",className:_.rowLabel,children:[n.jsxs("div",{className:_.label,children:[n.jsx("img",{src:be.DOMESTIC_F,className:_.connectorIcon}),"Domestic"]}),n.jsx(ae,{id:"domestic",checked:s.connectorTypes.includes("DOMESTIC_F"),onChange:u=>{c({connectorTypes:u?[...s.connectorTypes,"DOMESTIC_F"]:s.connectorTypes.filter(p=>p!=="DOMESTIC_F")})}})]}),n.jsxs("label",{htmlFor:"combo",className:_.rowLabel,children:[n.jsxs("div",{className:_.label,children:[n.jsx("img",{src:be.IEC_62196_T2_COMBO,className:_.connectorIcon}),"Combo"]}),n.jsx(ae,{id:"combo",checked:s.connectorTypes.includes("IEC_62196_T2_COMBO"),onChange:u=>{c({connectorTypes:u?[...s.connectorTypes,"IEC_62196_T2_COMBO"]:s.connectorTypes.filter(p=>p!=="IEC_62196_T2_COMBO")})}})]})]}),o.version==="v2"&&r?.showPaymentMethodFilter&&n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.authMethodCapabilities")}),$o.map(u=>{const p=`auth-${u.value}`,m=s.authMethodCapabilities?.includes(u.value)??!1;return n.jsxs("label",{htmlFor:p,className:_.rowLabel,children:[n.jsx("div",{className:_.label,children:t(u.labelKey)}),n.jsx(ae,{id:p,checked:m,onChange:v=>{c({authMethodCapabilities:gt(v?"add":"remove",s.authMethodCapabilities||[],[u.value])})}})]},u.value)})]}),r?.showVehicleAvailabilityFilter&&n.jsxs("div",{className:_.optionsGroup,children:[n.jsx("div",{className:_.heading,children:t("filters.chargingAccessibility")}),n.jsx(ln,{id:"chargingAccessibility",value:s.chargingAccessibility||"ALL",options:[{value:"ALL",label:t("filters.accessibilityAll")},{value:"TESLA",label:t("filters.accessibilityTesla")}],onChange:u=>{c({chargingAccessibility:u})}})]})]})]})}const Yo="locations-module_headerContainer",Go="locations-module_publishingMode",Ko="locations-module_container",qo="locations-module_header",Zo="locations-module_subheader",Jo="locations-module_row",Xo="locations-module_icon",Qo="locations-module_statusIcon",ea="locations-module_text",ta="locations-module_note",na="locations-module_divider",ra="locations-module_pagingation",ia="locations-module_tariffNoteLink",w={headerContainer:Yo,publishingMode:Go,container:Ko,header:qo,subheader:Zo,row:Jo,icon:Xo,statusIcon:Qo,text:ea,note:ta,divider:na,pagingation:ra,tariffNoteLink:ia},oa="LocationPlaceholder-module_container",aa="LocationPlaceholder-module_header",sa="LocationPlaceholder-module_divider",ca="LocationPlaceholder-module_iconLine",la="LocationPlaceholder-module_priceLine",ie={container:oa,header:aa,divider:sa,iconLine:ca,priceLine:la};function da(){return n.jsxs("div",{className:ie.container,children:[n.jsx("div",{className:ie.header}),n.jsx("div",{className:ie.divider,style:{marginTop:"15px",marginBottom:"23px"}}),n.jsx("div",{className:ie.iconLine,style:{width:"60%"}}),n.jsx("div",{className:ie.iconLine,style:{width:"45%"}}),n.jsx("div",{className:ie.iconLine,style:{width:"50%"}}),n.jsx("div",{className:ie.divider}),n.jsx("div",{className:ie.iconLine,style:{width:"50%"}}),n.jsx("div",{className:ie.iconLine,style:{width:"62%"}}),n.jsx("div",{className:ie.priceLine}),n.jsx("div",{className:ie.divider}),n.jsx("div",{className:ie.iconLine,style:{width:"50%"}}),n.jsx("div",{className:ie.iconLine,style:{width:"57%"}}),n.jsx("div",{className:ie.priceLine,style:{width:"30%"}})]})}function Un(){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 Wn(){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 ua(){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 fa(){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 pa(){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 Yn(){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 ha="SidebarContainer-module_container",ma={container:ha};function je({children:e}){return n.jsx("div",{className:ma.container,children:e})}const ga="Debug-module_container",va="Debug-module_content",Ca="Debug-module_connectorHeader",ya="Debug-module_code",xa="Debug-module_evse",Oe={container:ga,content:va,connectorHeader:Ca,code:ya,evse:xa};function Ta({location:e}){return n.jsx("div",{className:Oe.container,children:n.jsxs(je,{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:Oe.content,children:e.evses.map(t=>n.jsxs("div",{className:Oe.evse,children:[n.jsxs("div",{className:Oe.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:Oe.connectorHeader,children:["Connector #",r]}),n.jsx("pre",{className:Oe.code,children:JSON.stringify(i.tariff||Array.isArray(e.tariffs)?e.tariffs?.find(o=>i.tariff_ids.includes(o.id)):null,null,2)})]}))})]}))})]})})}const Gn="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",Kn="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",It="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",Be="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",qn="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 De(e){return _e(e)}function Zn(e){return be[e.standard||e.connectorStandardType]}function Jn(e,t){return new Intl.NumberFormat(e,{maximumFractionDigits:2}).format(t)}const ba={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 Xn(e){return[Ea(e.standard||e.connectorStandardType),ba[e.powerType||e.power_type||e.connectorPowerType],"Socket"].join(", ")}function Ea(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 Qn(e,t){return e(wt(t))}function er(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 tr(e=[]){return e.some(t=>t.status==="AVAILABLE")?De("AVAILABLE"):e.some(t=>t.status==="CHARGING")?De("CHARGING"):De("UNKNOWN")}function nr(e,t){let i;["en","fr"].some(s=>{let l=new Intl.DateTimeFormat(s,{minute:"numeric",timeZone:t,timeZoneName:"short"}).formatToParts(e).filter(d=>d.type=="timeZoneName"&&d.value);if(/^(GMT|UTC)/.test(l[0].value))return i=l[0].value.replace(/GMT|UTC/,"")||"+0",!0});let r=i[0]=="+"?"+":"-",[o,a]=i.substring(1).split(":");return r+o.padStart(2,"0")+":"+(a||"00")}function rr(e){let t=/^-/.test(e)?-1:1,[i,r]=e.match(/\d\d/g);return t*(i*60+Number(r))}function mn(e,t){const i=s=>("0"+s).slice(-2),{year:r,month:o,day:a}=new Intl.DateTimeFormat("en",{timeZone:e}).formatToParts(t).reduce((s,c)=>(s[c.type]=c.value,c),Object.create(null));return`${r}-${i(o)}-${i(a)}`}function ir(e,t=new Date){const i=nr(t,e),r=rr(i),o=new Date(+t);return o.setUTCMinutes(o.getUTCMinutes()+r),o}function or(e,t=new Date){const i=nr(t,e),r=rr(i),o=new Date(+t);o.setUTCHours(0,-r,0,0);const a=mn(e,t),s=mn(e,o);return s>a?o.setUTCDate(o.getUTCDate()-1):s<a&&o.setUTCDate(o.getUTCDate()+1),o}function _a(e,t=new Date){return new Date(or(e,t).valueOf()+86399999)}function wa(e,t,i){const r=ir(i,e);return r.getUTCDate()!==t&&r.setUTCDate(e.getUTCDate()+(7+t-e.getUTCDay()-1)%7+1),{start:or(i,r),end:_a(i,r)}}function yt(e,t){return ir(t,e).getUTCDay()}function gn(e){const[t,i]=e.split(":");return parseInt(t)*60+parseInt(i)}function xt(e){if(!e?.restrictions?.startTime||!e?.restrictions?.endTime)return{elements:[e],priceComponents:e.priceComponents,startTime:0,endTime:1440,isFullDay:!0};const t=gn(e.restrictions.startTime),i=gn(e.restrictions.endTime);return{elements:[e],priceComponents:e.priceComponents,isFullDay:t===0&&i===1440,startTime:t,endTime:i}}function Na(e,t,i){const r=(i.getHours()*60+i.getMinutes())%60;if(e.length<=1)return e.map(a=>(a.isActive=t&&a.startTime<=r&&a.endTime>=r,a));e=e.sort((a,s)=>a.startTime-s.startTime);let o=[e[0]];for(let a=1;a<e.length;a++){const s=e[a],c=o.findLast(d=>d.startTime<=s.startTime);if(!c)o=o.filter(d=>d.endTime>s.endTime),o.unshift(s);else{const d=c.endTime;c.endTime=s.startTime;const f=[s];d>s.endTime&&f.push({...c,startTime:s.endTime,endTime:d}),o.splice(o.indexOf(c)+1,0,...f)}let l=0;o=o.map((d,f)=>{const u=o[f-1];if(d.endTime>l)l=d.endTime;else return null;return u&&u.endTime!==d.startTime&&(d.startTime=u.endTime),d}).filter(Boolean)}return o.map(a=>(a.isActive=t&&a.startTime<=r&&a.endTime>=r,a.isFullDay=a.startTime===0&&a.endTime===1440,a))}function ye(e){return!e?.restrictions||!e?.restrictions?.startDate&&!e?.restrictions?.endDate&&!e?.restrictions?.startTime&&!e?.restrictions?.startTime&&!e?.restrictions?.dayOfWeek}function kt({elements:e,limit:t=6,now:i=new Date}){const o=[...e].filter(a=>!ye(a)).map(a=>({...a,restrictions:{_startDate:new Date(`${a.restrictions.startDate}T${a.restrictions.startTime}`),...a.restrictions}})).sort((a,s)=>a.restrictions._startDate.valueOf()-s.restrictions._startDate.valueOf()).filter(a=>a.restrictions._startDate.valueOf()>i.valueOf()-108e5).slice(0,t).reduce((a,s)=>{const c=s.restrictions._startDate.getDate();return a[c]={date:new Date(s.restrictions.startDate),items:[...a[c]?.items||[],s]},a},[]);return Object.keys(o).map(a=>{const{date:s,items:c}=o[a],l=c.map(({restrictions:d,...f})=>{const{_startDate:u,...p}=d;return{...f,restrictions:{...p}}}).map(xt).map(d=>{const f=yt(i)===yt(s),u=i.getHours()*60+i.getMinutes(),p=f&&d.startTime<=u&&d.endTime-1>=u;return{...d,isActive:p}});return{date:s,items:l}})}function Sa(e,t){const i=new Date;return[...e].reduce((r,o)=>{const{startDate:a,endDate:s,dayOfWeek:c=[]}=o.restrictions||{};if(!Object.keys(o.restrictions||{}).length)return r;const l=a?new Date(a):null;if(a&&l.valueOf()>Date.now())return r;const d=s?new Date(s):null;return s&&d.valueOf()<Date.now()||["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].forEach((f,u)=>{const{start:p,end:m}=wa(i,u,t);l&&l.valueOf()>p.valueOf()||d&&d.valueOf()<m.valueOf()||c.length&&!c.includes(f)||(r[f]=[...r[f],o])}),r},{MONDAY:[],TUESDAY:[],WEDNESDAY:[],THURSDAY:[],FRIDAY:[],SATURDAY:[],SUNDAY:[]})}function vn(e,t){return Object.keys(e).reduce((i,r)=>(t.includes(r)||(i[r]=e[r]),i),{})}function Oa(e,t){const i=e.map(o=>vn(o,["isActive"])),r=t.map(o=>vn(o,["isActive"]));return JSON.stringify(i)===JSON.stringify(r)}function Aa(e){return e.reduce((t,i)=>{const r=t.find(o=>o.startTime===i.startTime&&o.endTime===i.endTime);return r?r.elements.push(...i.elements):t.push(i),t},[])}function Pa(e){return ye(e)?(e.priceComponents||[]).some(t=>t.type!=="PARKING_TIME"&&(t.price||0)>0):!1}function ja(e){return e.startTime===0&&e.endTime<=1||e.startTime>=1439&&e.endTime===1440}function ar(e,t,i){const r=Sa(e.concat().filter(d=>!ye(d)),t),o=e.find(Pa),{SUNDAY:a,...s}=r,[c,...l]=Object.keys({SUNDAY:r.SUNDAY,...s}).map((d,f)=>{const u=r[d],p=yt(i,t)===f,m=Aa(u.map(xt));return o&&m.length>0&&m.unshift(xt(o)),{day:d,isActive:p,items:Na(m,p,i).filter(v=>!ja(v))}});return[...l,c].reduce((d,f,u,p)=>{const m=d[d.length-1],v=m?.items;if(!v||!Oa(v,f.items)){const{day:x,...O}=f;d.push({...O,days:[f.day]})}else m.days=[m.days[0],f.day],m.isActive=m.isActive||f.isActive;return d},[]).filter(d=>!!d.items.length)}function Da(e){const{elements:t=[]}=e;return t?.some(a=>a?.priceComponents?.length>0)?t.filter(ye).length===t.length?"base":kt({elements:t,limit:6,now:new Date}).length?"dynamic":"scheduled":"none"}const Re={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 Ia(e){switch(e.connectorPowerType){case Re.CONNECTOR_POWER_TYPE_AC_1_PHASE:case Re.CONNECTOR_POWER_TYPE_DC:return e.power.maxVoltage*e.power.maxAmperage/1e3;case Re.CONNECTOR_POWER_TYPE_AC_2_PHASE:case Re.CONNECTOR_POWER_TYPE_AC_2_PHASE_SPLIT:return e.power.maxVoltage*e.power.maxAmperage*2/1e3;case Re.CONNECTOR_POWER_TYPE_AC_3_PHASE:return e.power.maxVoltage*e.power.maxAmperage*3/1e3;default:return 0}}const ka="ConnectorTariff-module_container",Ra="ConnectorTariff-module_bold",Ma="ConnectorTariff-module_dynamicTariffItem",La="ConnectorTariff-module_dynamicTariffItemRange",Fa="ConnectorTariff-module_tariffHeader",Ha="ConnectorTariff-module_tariffLabel",Va="ConnectorTariff-module_tariffNote",za="ConnectorTariff-module_activeNowLabel",Z={container:ka,bold:Ra,dynamicTariffItem:Ma,dynamicTariffItemRange:La,tariffHeader:Fa,tariffLabel:Ha,tariffNote:Va,activeNowLabel:za},$a="Price-module_tariffItem",Tt={tariffItem:$a};function Ba(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function Ua(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function Wa({priceComponent:e,restrictions:t={},currency:i}){const{t:r}=$(),o={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:Tt.tariffItem,children:r("tariffPriceComponent.parkingTimeWait",{minutes:Math.floor(t.maxDuration/60)})}):o[e.type]?n.jsx("div",{className:Tt.tariffItem,children:r(o[e.type],{total:Ba(Ua(e),{currency:i})})}):null}const Ya="PriceComponents-module_container",Ga={container:Ya},Cn=["ENERGY","TIME","FLAT","PARKING_TIME"];function Je({elements:e,currency:t}){const{t:i}=$(),r=e.reduce((a,s)=>(s.priceComponents.forEach(c=>{a[c.type]||(a[c.type]=[]),a[c.type].push({priceComponent:c,restrictions:s.restrictions})}),a),{}),o=Object.keys(r).map(a=>({type:a,elements:r[a]})).sort((a,s)=>{const c=Cn.indexOf(a.type),l=Cn.indexOf(s.type);return c===-1?1:l===-1?-1:c-l});return n.jsx("div",{className:Ga.container,children:o.map(({type:a,elements:s},c)=>s.reverse().map((l,d)=>n.jsx(Wa,{currency:t,priceComponent:l.priceComponent,restrictions:l.restrictions},`${a}-${c}-${d}`)))})}function Ka(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t.currency||"EUR",maximumFractionDigits:2}).format(e)}function qa({vat:e,price:t}){const i=e?e/100:0;return t+t*i}function Za({cdrAdditionalCharge:e,currency:t}){const{t:i}=$(),r={FLAT_FEE:i("cdrPrice.flatFee",{total:Ka(qa(e),{currency:t})})};return n.jsx("div",{className:Tt.tariffItem,children:r[e.type]})}function Xe(e,t){const i=new Date(0),r=Math.floor(t/60),o=t%60;return i.setHours(r,o,0,0),i.toLocaleTimeString("nl",{hour:"2-digit",minute:"2-digit"})}const Ja=Intl.DateTimeFormat().resolvedOptions().timeZone;function Xa(e){const{format:t}=new Intl.DateTimeFormat(e,{weekday:"long"});return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].reduce((i,r,o)=>(i[r]=t(new Date(Date.UTC(2023,9,o+1))),i),{})}function Me({currency:e,cdrAdditionalCharges:t}){return t.map(i=>n.jsx(Za,{currency:e,cdrAdditionalCharge:i},i.id))}function Rt({timezone:e=Ja,tariff:t,compact:i=!0,cdrAdditionalCharges:r=[]}){const{t:o,language:a}=$(),s=Xa(a);if(!t)return null;const c=t.elements||[],l=t.currency||"",d=c.some(v=>v.priceComponents&&v.priceComponents.length>0),f=kt({elements:c,limit:i?6:40,now:new Date}),u=f.length?[]:ar(c,e,new Date),p=c.filter(ye);if(!d)return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Z.tariffNote,children:o("tariffPriceComponent.noTariff")}),r.length>0&&n.jsx("div",{className:Z.container,children:n.jsx(Me,{currency:l,cdrAdditionalCharges:r})})]});const m=!u.some(v=>v.isActive);return u.length?n.jsxs("div",{className:Z.container,children:[p.length>0&&n.jsxs("div",{className:[Z.tariffList,Z.bold].join(" "),children:[n.jsxs("div",{className:Z.tariffHeader,children:[o("tariffPriceComponent.baseTariff"),m&&n.jsx("span",{className:Z.activeNowLabel,children:o("tariffPriceComponent.active")})]}),n.jsx(Je,{elements:p,currency:l}),n.jsx(Me,{currency:l,cdrAdditionalCharges:r})]}),u.map(v=>n.jsxs("div",{className:Z.tariffList,children:[n.jsxs("div",{className:Z.tariffHeader,children:[v.days.map(x=>s[x]).join(" - "),v.isActive&&n.jsx("span",{className:Z.activeNowLabel,children:o("tariffPriceComponent.active")})]}),v.items.map(x=>n.jsxs("div",{className:x.isActive&&Z.bold,children:[!x.isFullDay&&n.jsxs("div",{className:Z.tariffLabel,children:[Xe(a,x.startTime)," -"," ",Xe(a,x.endTime)]}),n.jsxs("div",{children:[n.jsx(Je,{elements:x.elements,currency:l}),n.jsx(Me,{currency:l,cdrAdditionalCharges:r})]})]},x.startTime))]},v.days.join("-")))]}):n.jsxs("div",{className:Z.container,children:[p.length>0&&!f?.length&&n.jsxs("div",{className:Z.tariffList,children:[n.jsx(Je,{elements:p,currency:l}),n.jsx(Me,{currency:l,cdrAdditionalCharges:r})]}),f.length>0&&n.jsx(n.Fragment,{children:f.map((v,x)=>n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Z.tariffHeader,children:o("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(a,{weekday:"long",month:"short",day:"numeric"}).format(v.date)})}),n.jsx("div",{className:Z.dynamicTariffList,children:v.items.map((O,I)=>n.jsxs("div",{className:[Z.dynamicTariffItem,O.isActive&&Z.bold].filter(Boolean).join(" "),children:[n.jsxs("div",{className:Z.dynamicTariffItemRange,children:[Xe(a,O.startTime)," –"," ",Xe(a,O.endTime)]}),n.jsx(Je,{elements:O.elements,currency:l}),n.jsx(Me,{currency:l,cdrAdditionalCharges:r}),O.isActive&&n.jsx("span",{className:Z.activeNowLabel,children:o("tariffPriceComponent.active")})]},[O.startTime,O.endTime,I].join()))})]}))})]})}function yn(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 Qa=({currentLocation:e,evses:t,setView:i,cdrAdditionalCharges:r})=>{const{options:o,t:a,language:s}=$(),c=t.filter(l=>l.status==="AVAILABLE");return n.jsxs("div",{className:w.container,children:[n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:Gn,alt:"station icon"}),n.jsxs("div",{className:w.text,children:[o.locationBaseUrl&&n.jsx("a",{href:`${o.locationBaseUrl}/${e.id}`,children:e.name||"-"}),!o.locationBaseUrl&&e.name]})]}),n.jsxs("div",{className:w.row,children:[n.jsx("div",{className:w.icon,children:n.jsx("div",{style:{background:tr(e.evses)},className:w.statusIcon})}),n.jsxs("div",{className:w.text,children:[c.length," / ",t.length," ",a("evse.statusAvailable")]})]}),e.subOperator?.name&&n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:Kn,alt:"building icon"}),n.jsx("div",{className:w.text,children:e.subOperator?.name})]}),e.parkingType!=="UNKNOWN"&&n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:It,alt:"parking icon"}),n.jsx("div",{className:w.text,children:er(a,e.parkingType)})]}),t.map(l=>n.jsxs("div",{children:[n.jsx("hr",{className:w.divider}),n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:Be,alt:"power icon"}),n.jsx("div",{className:w.text,children:l.evseId})]}),n.jsxs("div",{className:w.row,children:[n.jsx("div",{style:{background:De(l.status)},className:w.statusIcon}),n.jsx("div",{className:w.text,children:[Qn(a,l.status),l.maxPower&&`${Jn(s,Math.floor(l.maxPower))}kW`].filter(Boolean).join(", ")})]}),l.connectors.map((d,f)=>{const u=Da(d.tariff),p=yn(a,e,u);return n.jsxs("div",{children:[" ",n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:Zn(d),alt:"socket type"}),n.jsx("div",{className:w.text,children:Xn(d)})]}),n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:qn,alt:"pricing"}),n.jsx("div",{className:w.text,children:a("evse.pricing")})]}),n.jsx(Rt,{tariff:d.tariff,cdrAdditionalCharges:r}),u==="dynamic"&&n.jsx("div",{className:w.tariffNoteLink,onClick:()=>{i("dynamicTariff",{connector:d,evseId:l.evseId,notes:p,locationName:e.name})},children:a("location.viewAllHourlyPrices")}),p.length>0&&n.jsxs("div",{className:w.tariffNoteLink,onClick:()=>{i("tariffNote",{locationName:e.name,evseId:l.evseId,notes:yn(a,e,u)})},children:[n.jsx(Yn,{})," ",a("tariffPriceComponent.viewTariff")]})]},`connector-${f}`)})]},l.evseId))]})},es="LocationRow-module_row",ts="LocationRow-module_expandable",ns="LocationRow-module_icon",rs="LocationRow-module_text",is="LocationRow-module_textHint",os="LocationRow-module_chevron",as="LocationRow-module_chevronOpen",ss="LocationRow-module_body",ge={row:es,expandable:ts,icon:ns,text:rs,textHint:is,chevron:os,chevronOpen:as,body:ss},cs={display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",padding:"5px 0",minWidth:0},ls={display:"inline-flex",alignItems:"center",justifyContent:"center",height:16,width:16,flex:"0 0 auto",marginRight:14,overflow:"hidden"},ds={flex:"1 1 auto",minWidth:0,fontSize:12,lineHeight:"16px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},us={color:"var(--roadmap-muted-color, #6a6a6a)",fontWeight:"normal"},fs={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)"},ps={padding:"4px 0 6px 30px",display:"flex",flexDirection:"column",gap:4},le=({icon:e,text:t,hint:i,children:r,defaultExpanded:o=!1})=>{const a=h.Children.count(r)>0,[s,c]=h.useState(o),l=()=>c(d=>!d);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`${ge.row} ${a?ge.expandable:""}`,style:{...cs,cursor:a?"pointer":void 0,userSelect:a?"none":void 0},role:a?"button":void 0,tabIndex:a?0:void 0,"aria-expanded":a?s:void 0,onClick:a?l:void 0,onKeyDown:a?d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),l())}:void 0,children:[n.jsx("span",{className:ge.icon,style:ls,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:ds,children:[t,i!=null&&n.jsxs("span",{className:ge.textHint,style:us,children:[" · ",i]})]}),a&&n.jsx("span",{className:`${ge.chevron} ${s?ge.chevronOpen:""}`,style:{...fs,transform:s?"rotate(180deg)":void 0},children:n.jsx(ua,{})})]}),a&&s&&n.jsx("div",{className:ge.body,style:ps,children:r})]})},hs=({location:e})=>{const{options:t,mapKind:i}=$(),r=e?.name||"-",o=e?.externalId||e?.id;let a;o&&t.locationUrlTemplate&&i==="cpo"?a=t.locationUrlTemplate.replace(/{{\s*locationId\s*}}/g,o):o&&t.locationBaseUrl&&(a=`${t.locationBaseUrl}/${o}`);const s=a?n.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:r}):r;return n.jsx(le,{icon:n.jsx("img",{src:Gn,alt:"station icon"}),text:s})},ms=({evses:e})=>{const{t}=$(),i=e?.filter(r=>r.status==="AVAILABLE")||[];return n.jsx(le,{icon:n.jsx(St,{color:tr(e)}),text:`${i.length} / ${e?.length||0} ${t("evse.statusAvailable")}`})},gs="OperatorSection-module_block",vs="OperatorSection-module_role",Cs="OperatorSection-module_header",ys="OperatorSection-module_name",xs="OperatorSection-module_logo",Ts="OperatorSection-module_website",Ae={block:gs,role:vs,header:Cs,name:ys,logo:xs,website:Ts},bs=({role:e,showRoleLabel:t})=>{const{t:i}=$();return e.name?n.jsxs("div",{className:Ae.block,style:{display:"flex",flexDirection:"column",gap:2,marginBottom:8},children:[t&&n.jsx("div",{className:Ae.role,style:{fontSize:11,textTransform:"uppercase",color:"var(--roadmap-muted-color, #6a6a6a)",letterSpacing:"0.04em"},children:i(e.labelKey)}),n.jsxs("div",{className:Ae.header,style:{display:"flex",alignItems:"center",gap:8},children:[e.logoUrl&&n.jsx("img",{className:Ae.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:Ae.name,style:{fontSize:13,fontWeight:600},children:e.name})]}),e.website&&n.jsx("a",{className:Ae.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},Es=({operator:e,suboperator:t,fallbackOperatorName:i,fallbackSuboperatorName:r})=>{const{t:o}=$(),a={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},c=a.name?a:s.name?s:null;return c?n.jsx(le,{icon:n.jsx("img",{src:Kn,alt:"building icon"}),text:o("location.operatorInfo"),hint:c.name,children:n.jsx(bs,{role:c,showRoleLabel:!1})}):null};function xn(e,t){if(t<1||t>7)return"";const i=new Date(2024,0,t);return new Intl.DateTimeFormat(e,{weekday:"long"}).format(i)}function _s(e=new Date){return bt(e.getDay())}function sr(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,o)=>r.period_begin.localeCompare(o.period_begin));return t}function cr(e,t){return`${e} - ${t}`}function Qe(e){const[t,i]=e.split(":").map(Number);return t*60+(i||0)}function bt(e){return e===0?7:e}function Tn(e,t){if(!e)return null;const i=t.getTime();for(const r of e){const o=new Date(r.period_begin).getTime(),a=new Date(r.period_end).getTime();if(!isNaN(o)&&!isNaN(a)&&i>=o&&i<=a)return r}return null}function ws(e,t=new Date){if(!e)return{open:!1};if(e.twentyfourseven)return{open:!0};const i=bt(t.getDay()),r=Tn(e.exceptional_closings,t);if(r){const l=new Date(r.period_end),d=bt(l.getDay());return{open:!1,nextChange:{time:l.toISOString().slice(11,16),label:"opens",day:d===i?void 0:d}}}const o=Tn(e.exceptional_openings,t);if(o)return{open:!0,nextChange:{time:new Date(o.period_end).toISOString().slice(11,16),label:"closes"}};const a=sr(e.regular_hours),s=i===1?7:i-1,c=t.getHours()*60+t.getMinutes();for(const l of a[s]){const d=Qe(l.period_begin),f=Qe(l.period_end);if((f<d||f===0)&&c<(f===0?1440:f))return{open:!0,nextChange:{time:l.period_end,label:"closes"}}}for(const l of a[i]){const d=Qe(l.period_begin),f=Qe(l.period_end),p=f<d||f===0?1440:f;if(c>=d&&c<p)return{open:!0,nextChange:{time:l.period_end,label:"closes"}};if(c<d)return{open:!1,nextChange:{time:l.period_begin,label:"opens"}}}for(let l=1;l<=7;l++){const d=(i-1+l)%7+1,f=a[d];if(f.length>0)return{open:!1,nextChange:{time:f[0].period_begin,label:"opens",day:d===i?void 0:d}}}return{open:!1}}function bn(e,t=new Date){if(!e)return[];const i=t.getTime();return e.filter(r=>{const o=new Date(r.period_end).getTime();return!isNaN(o)&&o>=i})}function Ns(e){const t=e%100;if(t>=11&&t<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function En(e,t){const i=new Date(t);if(isNaN(i.getTime()))return t;if(e==="en"){const r=new Intl.DateTimeFormat("en",{month:"long"}).format(i),o=i.getDate();return`${r} ${o}${Ns(o)}`}return new Intl.DateTimeFormat(e,{month:"long",day:"numeric"}).format(i)}function Ss(e){const t=new Date(e.period_begin),i=new Date(e.period_end);return isNaN(t.getTime())||isNaN(i.getTime())?`${e.period_begin} - ${e.period_end}`:cr(t.toISOString().slice(11,16),i.toISOString().slice(11,16))}const Os="OpeningHours-module_pill",As="OpeningHours-module_pillOpen",Ps="OpeningHours-module_pillClosed",js="OpeningHours-module_day",Ds="OpeningHours-module_dayLabel",Is="OpeningHours-module_dayValue",ks="OpeningHours-module_today",Rs="OpeningHours-module_exceptional",Ms="OpeningHours-module_exceptionalHeader",Ls="OpeningHours-module_exceptionalClosingHeader",Fs="OpeningHours-module_exceptionalOpeningHeader",Hs="OpeningHours-module_footnote",K={pill:Os,pillOpen:As,pillClosed:Ps,day:js,dayLabel:Ds,dayValue:Is,today:ks,exceptional:Rs,exceptionalHeader:Ms,exceptionalClosingHeader:Ls,exceptionalOpeningHeader:Fs,footnote:Hs},Vs=({openingTimes:e,chargingWhenClosed:t})=>{const{t:i,language:r}=$();if(!e)return null;const o=ws(e),a=sr(e.regular_hours),s=bn(e.exceptional_closings),c=bn(e.exceptional_openings),l=(e.regular_hours?.length??0)>0,d=e.twentyfourseven||l;if(!d&&s.length===0&&c.length===0&&!t)return null;const f=e.twentyfourseven||o.open,u=_s();let p;if(e.twentyfourseven)p=i("location.hours24");else if(o.nextChange){const{time:H,label:J,day:ne}=o.nextChange;J==="closes"?p=i("location.closesAt",{time:H}):p=ne?i("location.opensAtDay",{time:H,day:xn(r,ne)}):i("location.opensAt",{time:H})}const m={display:"inline-block",borderRadius:8,padding:"1px 8px",fontSize:12,lineHeight:"16px",fontWeight:600,background:f?"#e7f6ec":"#fdecea",color:f?"#1b7a3d":"#c5221f"},v={display:"flex",fontSize:12,lineHeight:1.5},x={minWidth:84},O={flex:"1 1 auto"},I={fontWeight:600},B={fontSize:12,marginTop:8,paddingTop:8,borderTop:"1px solid var(--roadmap-border-color, #e5e5e5)"},j={fontWeight:600,marginBottom:4},S={fontSize:11,fontStyle:"italic",color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},C=n.jsx("span",{className:`${K.pill} ${f?K.pillOpen:K.pillClosed}`,style:m,children:i(f?"location.open":"location.closedNow")});return n.jsxs(le,{icon:n.jsx(fa,{}),text:C,hint:p,children:[d&&[1,2,3,4,5,6,7].map(H=>{const J=H===u,ne=e.twentyfourseven?i("location.open24hours"):a[H].length===0?i("location.closed"):a[H].map(X=>cr(X.period_begin,X.period_end)).join(", ");return n.jsxs("div",{className:`${K.day} ${J?K.today:""}`,style:{...v,...J?I:{}},children:[n.jsx("div",{className:K.dayLabel,style:x,children:xn(r,H)}),n.jsx("div",{className:K.dayValue,style:O,children:ne})]},H)}),s.length>0&&n.jsxs("div",{className:K.exceptional,style:B,children:[n.jsx("div",{className:`${K.exceptionalHeader} ${K.exceptionalClosingHeader}`,style:{...j,color:"#c5221f"},children:i("location.exceptionalClosings")}),s.map((H,J)=>n.jsxs("div",{className:`${K.day} ${K.today}`,style:{...v,...I},children:[n.jsx("div",{className:K.dayLabel,style:x,children:En(r,H.period_begin)}),n.jsx("div",{className:K.dayValue,style:O,children:i("location.closed")})]},`c-${J}`))]}),c.length>0&&n.jsxs("div",{className:K.exceptional,style:B,children:[n.jsx("div",{className:`${K.exceptionalHeader} ${K.exceptionalOpeningHeader}`,style:{...j,color:"#1b7a3d"},children:i("location.exceptionalOpenings")}),c.map((H,J)=>n.jsxs("div",{className:`${K.day} ${K.today}`,style:{...v,...I},children:[n.jsx("div",{className:K.dayLabel,style:x,children:En(r,H.period_begin)}),n.jsx("div",{className:K.dayValue,style:O,children:Ss(H)})]},`o-${J}`))]}),t&&n.jsx("div",{className:K.footnote,style:S,children:i("location.chargingWhenClosed")})]})},zs=({parkingType:e})=>{const{t}=$();return!e||e==="PARKING_TYPE_UNKNOWN"?null:n.jsx(le,{icon:n.jsx("img",{src:It,alt:"parking icon"}),text:er(t,e)})},$s=({accessibility:e})=>e?n.jsx(le,{icon:n.jsx("img",{src:It,alt:"accessibility icon"}),text:e==="TESLA"?"Tesla vehicles only":"All electric vehicles"}):null,Bs=({evse:e})=>n.jsx(le,{icon:n.jsx("img",{src:Be,alt:"power icon"}),text:e.evse_id||"",hint:e.physical_reference||void 0}),Us=({evse:e})=>{const{t,language:i}=$(),r=e.connectors[0],o=r?.power&&r?.connectorPowerType?`${Jn(i,Math.floor(Ia(r)))}kW`:null,a=[Qn(t,e.status),o].filter(Boolean).join(", ");return n.jsx(le,{icon:n.jsx(St,{color:De(e.status)}),text:a})},Ws=({connector:e})=>n.jsx(le,{icon:n.jsx("img",{src:Zn(e),alt:"socket type"}),text:Xn(e)}),Ys=()=>{const{t:e}=$();return n.jsx(le,{icon:n.jsx("img",{src:qn,alt:"pricing"}),text:e("evse.pricing")})};function Mt(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 Gs=({tariff:e,additionalCharges:t})=>{const{t:i}=$(),r=e?.elements?.some(o=>o?.price_components?.some(a=>a.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(Rt,{tariff:Mt(e),cdrAdditionalCharges:t})]})},Ks=["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"];function _n(e){const[t,i]=e.split(":").map(Number);return t*60+(i||0)}function qs(e,t,i){const r=i.getHours()*60+i.getMinutes(),o=_n(e),a=_n(t);return a<o?r>=o||r<a:r>=o&&r<a}function Zs(e,t){if(ye(e))return!0;const i=e.restrictions;if(i.startTime&&i.endTime&&!qs(i.startTime,i.endTime,t))return!1;if(i.dayOfWeek&&i.dayOfWeek.length>0){const r=Ks[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 Js(e,t){const i=t.restrictions?.minDuration??0,r=t.restrictions?.maxDuration??0;return`${e}:${i}:${r}`}function Xs(e,t=new Date){if(!e)return{elements:[],currency:""};const r=(e.elements||[]).filter(l=>Zs(l,t)),o={};r.forEach(l=>{const d=ye(l);(l.priceComponents||[]).forEach(f=>{const u=Js(f.type,l),p=o[u];(!p||p.isBase&&!d)&&(o[u]={element:l,pc:f,isBase:d})})});const a=new Map,s=[];return Object.values(o).forEach(({element:l,pc:d})=>{a.has(l)||(a.set(l,[]),s.push(l)),a.get(l).push(d)}),{elements:s.map(l=>({...l,priceComponents:a.get(l)})),currency:e.currency||""}}const Qs={display:"flex",flexWrap:"wrap",gap:6},lr={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)"},ec=lr,tc={ENERGY:"tariffPriceComponent.energy",TIME:"tariffPriceComponent.time",FLAT:"tariffPriceComponent.flat",PARKING_TIME:"tariffPriceComponent.parkingTime"},wn=["ENERGY","TIME","FLAT","PARKING_TIME"];function Nn(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t||"EUR",maximumFractionDigits:2}).format(e)}function nc(e){const t=e.vat?e.vat/100:0;return e.price+e.price*t}function dr(e,t){return e.type==="PARKING_TIME"&&(e.price||0)===0&&!!t?.maxDuration&&(!t.minDuration||t.minDuration===0)}function rc(e,t){const i=[];return e.forEach(r=>{(r.priceComponents||[]).forEach(o=>{t&&(o.price||0)<=0&&!dr(o,r.restrictions)||i.push({pc:o,restrictions:r.restrictions})})}),i.sort((r,o)=>{const a=wn.indexOf(r.pc.type),s=wn.indexOf(o.pc.type);return a===-1?1:s===-1?-1:a-s})}const ic=({elements:e,currency:t,skipZero:i=!0,highlight:r=!1,additionalCharges:o=[]})=>{const{t:a}=$(),s=rc(e,i),c=r?ec:lr;return s.length===0&&o.length===0?null:n.jsxs("div",{style:Qs,children:[s.map(({pc:l,restrictions:d},f)=>{if(dr(l,d))return n.jsx("div",{style:c,children:a("tariffPriceComponent.parkingTimeWait",{minutes:String(Math.floor(d.maxDuration/60))})},`pc-${f}`);const u=tc[l.type];return u?n.jsx("div",{style:c,children:a(u,{total:Nn(nc(l),t)})},`pc-${f}`):null}),o.map(l=>{if(l.type!=="FLAT_FEE")return null;const d=l.price+(l.vat?l.price*(l.vat/100):0);return n.jsx("div",{style:c,children:a("cdrPrice.flatFee",{total:Nn(d,t)})},`cdr-${l.id}`)})]})},Sn={display:"flex",flexDirection:"column",gap:4,padding:"6px 0"},oc={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,fontSize:12,color:"var(--roadmap-muted-color, #6a6a6a)"},ac={display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},Ve=({elements:e,currency:t,label:i,trailing:r,highlight:o=!1,additionalCharges:a,onClick:s})=>{const c=!!s,l=c?{...Sn,cursor:"pointer",userSelect:"none"}:Sn,d=f=>{s&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())};return n.jsxs("div",{style:l,role:c?"button":void 0,tabIndex:c?0:void 0,onClick:s,onKeyDown:c?d:void 0,children:[i!=null&&n.jsx("div",{style:oc,children:i}),n.jsxs("div",{style:ac,children:[n.jsx(ic,{elements:e,currency:t,highlight:o,additionalCharges:a}),r]})]})},ur={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)"},sc={...ur,cursor:"default",opacity:.6},cc={display:"flex",alignItems:"center",gap:6,fontSize:12,color:"var(--roadmap-brand-color, #6102d3)"},lc={fontSize:11,color:"var(--roadmap-muted-color, #6a6a6a)",marginTop:6},dc=({type:e,country_code:t,party_id:i,location_id:r,evse_uid:o})=>{const{t:a,reportProblem:s}=$(),[c,l]=h.useState("idle"),d=async f=>{if(f.stopPropagation(),!(c==="submitting"||c==="done")){l("submitting");try{await s?.({type:e,country_code:t,party_id:i,location_id:r,evse_uid:o}),l("done")}catch{l("error")}}};return c==="done"?n.jsxs("div",{style:cc,children:[n.jsx(pa,{}),n.jsx("span",{children:a("tariff.reportThanks")})]}):n.jsxs(n.Fragment,{children:[n.jsx("button",{type:"button",onClick:d,disabled:c==="submitting",style:c==="submitting"?sc:ur,children:a("tariff.report")}),c==="error"&&n.jsx("div",{style:lc,children:a("tariff.reportError")})]})},uc={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)"},fc={fontSize:12,fontStyle:"italic",color:"var(--roadmap-muted-color, #6a6a6a)"},Et=({country_code:e,party_id:t,location_id:i,evse_uid:r})=>{const{t:o}=$();return n.jsxs("div",{style:uc,children:[n.jsx("div",{style:fc,children:o("tariffPriceComponent.noTariff")}),n.jsx(dc,{type:"missing_tariff",country_code:e,party_id:t,location_id:i,evse_uid:r})]})},pc={display:"inline-flex",alignItems:"center",justifyContent:"center",color:"var(--roadmap-muted-color, #6a6a6a)",flex:"0 0 auto"},hc=({tariff:e,additionalCharges:t=[],evseId:i,evseUid:r,countryCode:o,partyId:a,locationId:s,locationName:c,setView:l})=>{const d=e?Mt(e):null,{elements:f,currency:u}=Xs(d),p=f.map(x=>({...x,priceComponents:(x.priceComponents||[]).filter(O=>!!((O.price||0)>0||O.type==="PARKING_TIME"&&x.restrictions?.maxDuration&&(!x.restrictions.minDuration||x.restrictions.minDuration===0)))})).filter(x=>x.priceComponents.length>0);if(!(!!d&&p.length>0))return n.jsxs(n.Fragment,{children:[n.jsx(Et,{country_code:o,party_id:a,location_id:s,evse_uid:r}),t.length>0&&n.jsx(Ve,{elements:[],currency:u,additionalCharges:t})]});const v=()=>l("tariffDetails",{tariff:e,additionalCharges:t,locationName:c,evseId:i,evseUid:r,countryCode:o,partyId:a,locationId:s});return n.jsx(Ve,{elements:p,currency:u,highlight:!0,additionalCharges:t,onClick:v,trailing:n.jsx("span",{style:pc,children:n.jsx(Wn,{})})})},mc=({connector:e,tariffs:t,cdrAdditionalCharges:i,location:r,evseId:o,evseUid:a,setView:s})=>{const c=t?.find(l=>l.id===e?.tariff_ids?.[0]);return n.jsxs(n.Fragment,{children:[n.jsx(Ws,{connector:e}),n.jsx(Ys,{}),n.jsx(hc,{tariff:c,additionalCharges:i,evseId:o,evseUid:a||"",countryCode:r.country_code,partyId:r.party_id,locationId:r.id,locationName:r.name,setView:s})]})},gc={background:"color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)",borderRadius:8,padding:"8px 12px",marginTop:12},vc={paddingLeft:10,marginTop:10},Cc=({evse:e,tariffs:t,cdrAdditionalCharges:i,location:r,setView:o})=>{const a=De(e.status),s={...vc,borderLeft:`3px solid ${a}`,borderRadius:2};return n.jsxs("div",{style:gc,children:[n.jsx(Bs,{evse:e}),n.jsx(Us,{evse:e}),e.connectors.map((c,l)=>n.jsx("div",{style:s,children:n.jsx(mc,{connector:c,tariffs:t,cdrAdditionalCharges:i,location:r,evseId:e.evse_id,evseUid:e.uid,setView:o})},`connector-${l}`))]})},yc={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 xc(e,t){if(!e||e.length===0)return;const i=(t||"").toLowerCase(),r=e.find(a=>a.language?.toLowerCase()===i);return r?r.text:(e.find(a=>a.language?.toLowerCase()==="en")||e[0])?.text}const Tc=({directions:e})=>{const{language:t}=$(),i=xc(e||[],t);return i?n.jsx("div",{style:yc,children:i}):null},bc=({currentLocation:e,setView:t})=>{const{options:i,mapKind:r}=$();return n.jsxs("div",{className:w.container,children:[r==="cpo"&&n.jsx("div",{className:w.publishingMode,children:e?.publish?"Public location":"Private location"}),n.jsx(Tc,{directions:e.directions}),n.jsx(hs,{location:e}),n.jsx(ms,{evses:e.evses}),n.jsx(Es,{operator:e.operator,suboperator:e.suboperator||e.subOperator,fallbackOperatorName:e.operator_name||e.operatorName,fallbackSuboperatorName:e.suboperator_name||e.suboperatorName}),n.jsx(Vs,{openingTimes:e.opening_times,chargingWhenClosed:e.charging_when_closed}),n.jsx(zs,{parkingType:e.parkingType}),n.jsx($s,{accessibility:e.charging_accessibility}),e.evses?.map(o=>n.jsx(Cc,{evse:o,tariffs:e.tariffs,cdrAdditionalCharges:e.cdrAdditionalCharges||[],location:e,setView:t},`${o.evse_id}-${o.uid}`))]})},Ec=()=>{const{setView:e}=ke(),{locations:t,locationsStatus:i,options:r}=$(),[o,a]=h.useState(0);h.useEffect(()=>{a(0)},[t]);const s=t[o];if(i.type==="loading"||!s)return n.jsx("div",{className:w.container,children:n.jsx(da,{})});const{evses:c=[],cdrAdditionalCharges:l}=s,d=o<t.length-1,f=o>0,u=window.location?.search?.includes("debug"),p=()=>{switch(r.version){case"v2":return[s?.address,s?.city];default:return[s?.address,s?.city]}},m=r.version==="v2";return n.jsxs(n.Fragment,{children:[u&&s&&n.jsx(Ta,{location:s}),n.jsx("div",{className:w.headerContainer,children:n.jsxs("div",{className:w.header,children:[t.length>1&&n.jsxs("div",{className:w.pagingation,children:[n.jsxs("span",{children:[o+1," / ",t.length]}),n.jsx("button",{disabled:!f,onClick:()=>{a(Math.max(0,o-1))},children:n.jsx(Un,{})}),n.jsx("button",{disabled:!d,onClick:()=>a(Math.min(t.length-1,o+1)),children:n.jsx(Wn,{})})]}),p().filter(Boolean).join(", ")]})}),!m&&n.jsx(Qa,{setView:e,cdrAdditionalCharges:l,currentLocation:s,evses:c}),m&&n.jsx(bc,{setView:e,currentLocation:s})]})},_c="BackButton-module_backButton",wc={backButton:_c};function Lt({onClick:e=()=>{}}){const{t}=$();return n.jsxs("button",{onClick:e,className:wc.backButton,children:[n.jsx(Un,{}),t("backButton.backTo")]})}function Nc(){const{t:e}=$(),{current:t,setView:i}=ke(),{notes:r=[],evseId:o,locationName:a}=t?.args||{};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:w.headerContainer,children:n.jsxs("div",{className:w.header,onClick:()=>i("locations"),style:{cursor:"pointer"},children:[n.jsx(Lt,{}),a?.text||a]})}),n.jsxs("div",{className:w.container,children:[n.jsx("div",{className:w.subheader,children:e("tariffNote.subHeader")}),o&&n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:Be,alt:"power icon"}),n.jsx("div",{className:w.text,children:o})]}),r.map(s=>n.jsx("p",{className:w.note,children:s},s))]})]})}function Sc(){const{t:e}=$(),{current:t,setView:i}=ke(),{connector:r,tariff:o,additionalCharges:a,locationName:s,evseId:c,notes:l}=t?.args||{};return o||r?.tariff?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:w.headerContainer,children:n.jsxs("div",{className:w.header,onClick:()=>i("locations"),style:{cursor:"pointer"},children:[n.jsx(Lt,{}),s]})}),n.jsxs("div",{className:w.container,children:[n.jsx("div",{className:w.subheader,children:e("dynamicTariffs.subHeader")}),n.jsxs("div",{className:w.row,children:[n.jsx("img",{className:w.icon,src:Be,alt:"power icon"}),n.jsx("div",{className:w.text,children:c})]}),o&&n.jsx(Gs,{tariff:o,additionalCharges:a}),r.tariff&&n.jsx(Rt,{tariff:r.tariff,compact:!1}),n.jsxs("div",{className:w.tariffNoteLink,onClick:()=>{i("tariffNote",{locationName:s,evseId:c,notes:l})},children:[n.jsx(Yn,{})," ",e("tariffPriceComponent.viewTariff")]})]})]}):null}const Oc=Intl.DateTimeFormat().resolvedOptions().timeZone,mt={display:"flex",flexDirection:"column",gap:4,marginTop:14},On={fontSize:12,fontWeight:600,textTransform:"capitalize",lineHeight:1.4},Ac={fontSize:12,lineHeight:1.5,color:"var(--roadmap-text-color, #2a2a2a)",marginTop:8},Pc={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 jc(e){const{format:t}=new Intl.DateTimeFormat(e,{weekday:"long"});return["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"].reduce((i,r,o)=>(i[r]=t(new Date(Date.UTC(2023,9,o+1))),i),{})}function Dc(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 Ic(e,t){return!e||e.length===0?void 0:(e.find(r=>r.language?.toLowerCase()===t?.toLowerCase())||e[0])?.text}function kc(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 Rc(){const{t:e,language:t}=$(),{current:i,setView:r}=ke(),{tariff:o,additionalCharges:a,locationName:s,evseId:c,evseUid:l,countryCode:d,partyId:f,locationId:u}=i?.args||{};if(!o)return null;const p=Mt(o),m={country_code:d||o.country_code||"",party_id:f||o.party_id||"",location_id:u||"",evse_uid:l||""},v=Ic(o.tariff_alt_text,t),x=kc(o.last_updated,t),O=()=>n.jsx("div",{className:w.headerContainer,children:n.jsxs("div",{className:w.header,onClick:()=>r("locations"),style:{cursor:"pointer"},children:[n.jsx(Lt,{}),s]})});if(!p)return n.jsxs(n.Fragment,{children:[O(),n.jsx("div",{className:w.container,children:n.jsx(Et,{...m})})]});const I=(p.elements||[]).filter(Dc),B=p.currency||"",j=a||[],S=I.filter(ye),C=kt({elements:I,limit:40,now:new Date}),H=C.length?[]:ar(I,Oc,new Date),J=!H.some(X=>X.isActive),ne=jc(t);return n.jsxs(n.Fragment,{children:[O(),n.jsxs("div",{className:w.container,children:[n.jsx("div",{className:w.subheader,children:e("tariff.fullDetailsHeader")}),c&&n.jsx(le,{icon:n.jsx("img",{src:Be,alt:"power icon"}),text:c}),v&&n.jsx("div",{style:Ac,children:v}),x&&n.jsx("div",{style:Pc,children:e("tariff.lastUpdated",{date:x})}),S.length>0&&n.jsx("div",{style:mt,children:n.jsx(Ve,{elements:S,currency:B,highlight:H.length>0&&J,additionalCharges:j})}),H.map(X=>n.jsxs("div",{style:mt,children:[n.jsx("div",{style:On,children:X.days.map(q=>ne[q]).join(" – ")}),X.items.map((q,ee)=>n.jsx(Ve,{elements:q.elements||[],currency:B,highlight:!!q.isActive,label:q.isFullDay?void 0:`${et(q.startTime)} – ${et(q.endTime)}`},ee))]},X.days.join("-"))),C.map((X,q)=>n.jsxs("div",{style:mt,children:[n.jsx("div",{style:On,children:e("tariffPriceComponent.dynamicTariffHeader",{date:new Intl.DateTimeFormat(t,{weekday:"long",month:"short",day:"numeric"}).format(X.date)})}),X.items.map((ee,de)=>n.jsx(Ve,{elements:ee.elements||[],currency:B,highlight:!!ee.isActive,label:`${et(ee.startTime)} – ${et(ee.endTime)}`},de))]},q)),H.length===0&&C.length===0&&S.length===0&&n.jsx(Et,{...m})]})]})}const Mc="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",Lc="CloseButton-module_closeButton",Fc={closeButton:Lc};function fr({onClick:e}){return n.jsx("button",{onClick:e,className:Fc.closeButton,children:n.jsx("img",{src:Mc})})}function Hc(){const[e,t]=h.useState("locations"),{setView:i}=ke();return n.jsxs(me,{name:"locations",currentView:e,onViewChange:t,children:[n.jsx(me.View,{name:"locations",children:n.jsxs(je,{children:[n.jsx(fr,{onClick:()=>i("none")}),n.jsx(Ec,{})]})}),n.jsx(me.View,{name:"tariffNote",children:n.jsx(je,{children:n.jsx(Nc,{})})}),n.jsx(me.View,{name:"dynamicTariff",children:n.jsx(je,{children:n.jsx(Sc,{})})}),n.jsx(me.View,{name:"tariffDetails",children:n.jsx(je,{children:n.jsx(Rc,{})})})]})}const Vc="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 zc(){const{locationIds:e,fetchLocations:t,filters:i,isSearching:r}=$(),[o,a]=h.useState("none");return h.useEffect(()=>{e.length>0&&a("locations")},[e,a]),n.jsxs("div",{className:xe.container,children:[n.jsxs("div",{className:xe.controlsContainer,children:[n.jsx(Xi,{onFocus:()=>{a("none")}}),n.jsxs("div",{className:xe.filterButton,onClick:()=>{a("filters")},children:[r??!1?n.jsx("div",{className:xe.spinner}):n.jsx("img",{className:xe.filterIcon,src:Vc}),zo(i)&&!(r??!1)&&n.jsx("span",{className:xe.filterCounter})]})]}),n.jsx("div",{className:xe.stackContainer,children:n.jsxs(me,{name:"router",currentView:o,onViewChange:s=>{a(s)},children:[n.jsx(me.View,{name:"locations",children:n.jsx(Hc,{})}),n.jsx(me.View,{name:"filters",children:n.jsxs(je,{children:[n.jsx(fr,{onClick:()=>a("none")}),n.jsx(Wo,{})]})})]})})]})}function pr(e){return!e.shadowRoot&&e?.theming?.backgroundColor?n.jsx($c,{...e}):n.jsx(Br,{options:e,language:e.language,children:n.jsxs(Ur,{height:e?.height,children:[n.jsx(zc,{}),n.jsx(yi,{}),n.jsx(li,{})]})})}const $c=e=>{const t=h.useRef(null),i=h.useRef(null),r=h.useRef(null),o=h.useRef(!1);return h.useEffect(()=>{const a=t.current;if(!a||o.current)return;const s=a.attachShadow({mode:"open"});r.current=s;let c="https://mapsdk.road.io/styles.css";e.sdkRoot&&(c=e.sdkRoot+"/styles.css");const l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.href=c,s.appendChild(l);const d=hr.createRoot(s);return i.current=d,o.current=!0,()=>{i.current&&(i.current.unmount(),i.current=null),r.current=null,o.current=!1}},[]),h.useEffect(()=>{if(!i.current||!r.current)return;const a=h.createElement(pr,{...e,shadowRoot:r.current});i.current.render(a)},[e]),n.jsx("div",{ref:t,style:{height:"100%",width:"100%"}})};exports.RoadMap=pr;
|
|
29
29
|
//# sourceMappingURL=index.js.map
|