@geotrekce/geotrek-rando-widget 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js +2 -2
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filters_12.cjs.entry.js +46 -38
- package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +6 -5
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-cfc000c9.js → i18n-e2c62fa9.js} +7 -5
- package/dist/cjs/i18n-e2c62fa9.js.br +0 -0
- package/dist/cjs/i18n-e2c62fa9.js.gz +0 -0
- package/dist/cjs/i18n-e2c62fa9.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/utils-332e41b3.js.map +1 -1
- package/dist/collection/components/grw-app/grw-app.js +1 -1
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-filters/grw-filters.js +1 -1
- package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.js +16 -20
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +1 -1
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/collection/i18n/i18n.js +6 -4
- package/dist/collection/i18n/i18n.js.br +0 -0
- package/dist/collection/i18n/i18n.js.gz +0 -0
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/store/grw-touristic-content-provider.js +19 -1
- package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-contents-provider.js +1 -1
- package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-event-provider.js +23 -5
- package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
- package/dist/collection/store/grw-trek-provider.js +33 -5
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/grw-treks-provider.js +6 -6
- package/dist/collection/store/grw-treks-provider.js.br +0 -0
- package/dist/collection/store/grw-treks-provider.js.gz +0 -0
- package/dist/collection/store/grw-treks-provider.js.map +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +2 -2
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-filters_12.entry.js +46 -38
- package/dist/esm/grw-filters_12.entry.js.br +0 -0
- package/dist/esm/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm/grw-filters_12.entry.js.map +1 -1
- package/dist/esm/grw-touristic-event-card-provider.entry.js +6 -5
- package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.map +1 -1
- package/dist/esm/{i18n-60e9fdd3.js → i18n-b5c3a8d7.js} +7 -5
- package/dist/esm/i18n-b5c3a8d7.js.br +0 -0
- package/dist/esm/i18n-b5c3a8d7.js.gz +0 -0
- package/dist/esm/i18n-b5c3a8d7.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/utils-b09ac7c9.js.map +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-filters_12.entry.js +3 -3
- package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.map +1 -1
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +1 -1
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +1 -1
- package/dist/esm-es5/i18n-b5c3a8d7.js +2 -0
- package/dist/esm-es5/i18n-b5c3a8d7.js.br +0 -0
- package/dist/esm-es5/i18n-b5c3a8d7.js.gz +0 -0
- package/dist/esm-es5/i18n-b5c3a8d7.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/utils-b09ac7c9.js.map +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/p-01d57fd7.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-01d57fd7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-01d57fd7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d5584258.entry.js.map → p-01d57fd7.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +1 -1
- package/dist/geotrek-rando-widget/p-23c34829.js +2 -0
- package/dist/geotrek-rando-widget/p-23c34829.js.br +0 -0
- package/dist/geotrek-rando-widget/p-23c34829.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-23c34829.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-3c32c109.system.entry.js → p-2545bc2a.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2545bc2a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2545bc2a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-3c32c109.system.entry.js.map → p-2545bc2a.system.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-feeb03a9.system.entry.js → p-4d2be020.system.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-4d2be020.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-feeb03a9.system.entry.js.gz → p-4d2be020.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/p-4d2be020.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-7b61eee1.system.js +2 -0
- package/dist/geotrek-rando-widget/p-7b61eee1.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7b61eee1.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7b61eee1.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +1 -1
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +1 -1
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -1
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-bcd87b5c.entry.js → p-eb0e19d4.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-eb0e19d4.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-eb0e19d4.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-eb0e19d4.entry.js.map +1 -0
- package/dist/types/components/grw-map/grw-map.d.ts +2 -2
- package/dist/types/components.d.ts +6 -0
- package/dist/types/i18n/i18n.d.ts +1 -0
- package/dist/types/store/grw-touristic-content-provider.d.ts +1 -0
- package/dist/types/store/grw-touristic-event-provider.d.ts +1 -0
- package/dist/types/store/grw-trek-provider.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/i18n-cfc000c9.js.br +0 -0
- package/dist/cjs/i18n-cfc000c9.js.gz +0 -0
- package/dist/cjs/i18n-cfc000c9.js.map +0 -1
- package/dist/esm/i18n-60e9fdd3.js.br +0 -0
- package/dist/esm/i18n-60e9fdd3.js.gz +0 -0
- package/dist/esm/i18n-60e9fdd3.js.map +0 -1
- package/dist/esm-es5/i18n-60e9fdd3.js +0 -2
- package/dist/esm-es5/i18n-60e9fdd3.js.br +0 -0
- package/dist/esm-es5/i18n-60e9fdd3.js.gz +0 -0
- package/dist/esm-es5/i18n-60e9fdd3.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3c32c109.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3c32c109.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-7eca502d.js +0 -2
- package/dist/geotrek-rando-widget/p-7eca502d.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7eca502d.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7eca502d.js.map +0 -1
- package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b92fdd4e.system.js +0 -2
- package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-d5584258.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-d5584258.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d5584258.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register([],(function(e){"use strict";return{execute:function(){var i=e("t",{fr:{filter:"Filtrer",practice:"Pratique",difficulty:"Difficulté",duration:"Durée",length:"Longueur",treks:"itinéraires",trek:"itinéraire",showList:"Voir la liste",showMap:"Voir la carte",showRoute:"Voir l'itinéraire",showDetails:"Voir la fiche",download:"Téléchargement",downloads:"Téléchargements",description:"Description",departure:"Départ",arrival:"Arrivée",elevationProfile:"Profil altimétrique",roadAccess:"Accès routier",transport:"Transport",recommendations:"Recommandations",recommendedParking:"Parking conseillé",equipments:"Équipements",environmentalSensitiveAreas:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",accessibility:"Accessibilité",accessibilityLevel:"Niveau d'accessibilité",accessibilitySlope:"Pente",accessibilityWidth:"Largeur",accessibilitySignage:"Signalisation",accessibilityCovering:"Revêtement",accessibilityExposure:"Exposition",accessibilityAdvices:"Conseils",pois:function(e){return"Les ".concat(e," patrimoines à découvrir")},touristicContents:function(e){return"À proximité (".concat(e,")")},touristicEvents:function(e){return"Événements (".concat(e,")")},sources:"Sources",city:"Commune",crossedCities:"Communes",placeholderCrossedCities:"Sélectionner une ou plusieurs communes",home:{segment:{treks:"Itinéraires",touristicContents:"Services"},touristicContents:"à proximité",touristicContent:"à proximité"},options:{presentation:"Présentation",description:"Description",recommendations:"Recommandations",environmentalSensitiveAreas:"Zones sensibles",informationPlaces:"Lieux d'informations",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},layers:{referencePoints:"Points de référence",parking:"Parking conseillé",sensitiveArea:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},themes:"Thèmes",placeholderThemes:"Sélectionner un ou plusieurs thèmes",placeholderPractices:"Sélectionner une ou plusieurs pratiques",routes:"Type de parcours",elevation:"Denivelé positif",activities:"Activités",districts:"Secteurs",erase:"Effacer",ok:"Ok",location:"Localisation",steps:"étapes",usefulInformation:"Informations pratiques",contact:"Contact",email:"Email",website:"Site web",category:"Catégorie",services:"Services"},en:{filter:"Filter",practice:"Practice",difficulty:"Difficulty",duration:"Duration",length:"Length",treks:"routes",trek:"route",showList:"Show the list",showMap:"Show the map",showRoute:"Show the route",showDetails:"Show the details",download:"Download",downloads:"Downloads",description:"Description",departure:"Departure",arrival:"Arrival",elevationProfile:"Elevation profile",roadAccess:"Road acess",transport:"Transport",recommendations:"Recommendations",recommendedParking:"Parking recommended",equipments:"Equipements",environmentalSensitiveAreas:"Areas of environmental sensitivity",informationPlaces:"Information places",accessibility:"Accessibility",accessibilityLevel:"Accessibility level",accessibilitySlope:"Slope",accessibilityWidth:"Width",accessibilitySignage:"Signage",accessibilityCovering:"Covering",accessibilityExposure:"Exposure",accessibilityAdvices:"Advices",pois:function(e){return"".concat(e," points of interest")},touristicContents:function(e){return"Near (".concat(e,")")},touristicEvents:function(e){return"Events (".concat(e,")")},sources:"Sources",city:"City",crossedCities:"Cities",placeholderCrossedCities:"Select one or more municipalities",home:{segment:{treks:"Routes",touristicContents:"Services"},touristicContents:"near",touristicContent:"near"},options:{presentation:"Presentation",description:"Description",recommendations:"Recommendations",environmentalSensitiveAreas:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},layers:{referencePoints:"Reference points",parking:"Parking",sensitiveArea:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},themes:"Themes",placeholderThemes:"Select one or more themes",placeholderPractices:"Select one or more practices",routes:"Type of course",elevation:"Positive elevation",activities:"Activities",districts:"Districts",erase:"Erase",ok:"Ok",location:"Location",usefulInformation:"Useful information",steps:"steps",contact:"Contact",email:"Email",website:"Website",category:"Category",services:"Services"}})}}}));
|
|
2
|
+
//# sourceMappingURL=p-7b61eee1.system.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["translate","exports","fr","filter","practice","difficulty","duration","length","treks","trek","showList","showMap","showRoute","showDetails","download","downloads","description","departure","arrival","elevationProfile","roadAccess","transport","recommendations","recommendedParking","equipments","environmentalSensitiveAreas","informationPlaces","accessibility","accessibilityLevel","accessibilitySlope","accessibilityWidth","accessibilitySignage","accessibilityCovering","accessibilityExposure","accessibilityAdvices","pois","poisLength","concat","touristicContents","touristicContentsLength","touristicEvents","touristicEventsLength","sources","city","crossedCities","placeholderCrossedCities","home","segment","touristicContent","options","presentation","steps","layers","referencePoints","parking","sensitiveArea","themes","placeholderThemes","placeholderPractices","routes","elevation","activities","districts","erase","ok","location","usefulInformation","contact","email","website","category","services","en"],"sources":["src/i18n/i18n.ts"],"sourcesContent":["interface Translation {\n filter: string;\n practice: string;\n difficulty: string;\n duration: string;\n length: string;\n treks: string;\n trek: string;\n showList: string;\n showMap: string;\n showRoute: string;\n showDetails: string;\n download: string;\n downloads: string;\n description: string;\n departure: string;\n arrival: string;\n elevationProfile: string;\n roadAccess: string;\n transport: string;\n recommendations: string;\n recommendedParking: string;\n equipments: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n accessibility: string;\n accessibilityLevel: string;\n accessibilitySlope: string;\n accessibilityWidth: string;\n accessibilitySignage: string;\n accessibilityCovering: string;\n accessibilityExposure: string;\n accessibilityAdvices: string;\n pois: Function;\n touristicContents: Function;\n touristicEvents: Function;\n sources: string;\n city: string;\n crossedCities: string;\n placeholderCrossedCities: string;\n home: {\n segment: {\n treks: string;\n touristicContents: string;\n };\n touristicContents: string;\n touristicContent: string;\n };\n options: {\n presentation: string;\n description: string;\n recommendations: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n pois: string;\n steps: string;\n touristicContents: string;\n touristicEvents: string;\n };\n layers: {\n referencePoints: string;\n parking: string;\n sensitiveArea: string;\n informationPlaces: string;\n pois: string;\n steps: string;\n touristicContents: string;\n touristicEvents: string;\n };\n themes: string;\n placeholderThemes: string;\n placeholderPractices: string;\n routes: string;\n elevation: string;\n activities: string;\n districts: string;\n erase: string;\n ok: string;\n location: string;\n steps: string;\n usefulInformation: string;\n contact: string;\n email: string;\n website: string;\n category: string;\n services: string;\n}\n\ninterface AvailableTranslations {\n fr: Translation;\n en: Translation;\n}\n\nexport const translate: AvailableTranslations = {\n fr: {\n filter: 'Filtrer',\n practice: 'Pratique',\n difficulty: 'Difficulté',\n duration: 'Durée',\n length: 'Longueur',\n treks: 'itinéraires',\n trek: 'itinéraire',\n showList: 'Voir la liste',\n showMap: 'Voir la carte',\n showRoute: \"Voir l'itinéraire\",\n showDetails: 'Voir la fiche',\n download: 'Téléchargement',\n downloads: 'Téléchargements',\n description: 'Description',\n departure: 'Départ',\n arrival: 'Arrivée',\n elevationProfile: 'Profil altimétrique',\n roadAccess: 'Accès routier',\n transport: 'Transport',\n recommendations: 'Recommandations',\n recommendedParking: 'Parking conseillé',\n equipments: 'Équipements',\n environmentalSensitiveAreas: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n accessibility: 'Accessibilité',\n accessibilityLevel: \"Niveau d'accessibilité\",\n accessibilitySlope: 'Pente',\n accessibilityWidth: 'Largeur',\n accessibilitySignage: 'Signalisation',\n accessibilityCovering: 'Revêtement',\n accessibilityExposure: 'Exposition',\n accessibilityAdvices: 'Conseils',\n pois: (poisLength: number) => `Les ${poisLength} patrimoines à découvrir`,\n touristicContents: (touristicContentsLength: number) => `À proximité (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Événements (${touristicEventsLength})`,\n sources: 'Sources',\n city: 'Commune',\n crossedCities: 'Communes',\n placeholderCrossedCities: 'Sélectionner une ou plusieurs communes',\n home: {\n segment: {\n treks: 'Itinéraires',\n touristicContents: 'Services',\n },\n touristicContents: 'à proximité',\n touristicContent: 'à proximité',\n },\n options: {\n presentation: 'Présentation',\n description: 'Description',\n recommendations: 'Recommandations',\n environmentalSensitiveAreas: 'Zones sensibles',\n informationPlaces: \"Lieux d'informations\",\n pois: 'Patrimoines',\n steps: 'Étapes',\n touristicContents: 'À proximité',\n touristicEvents: 'Événements',\n },\n layers: {\n referencePoints: 'Points de référence',\n parking: 'Parking conseillé',\n sensitiveArea: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n pois: 'Patrimoines',\n steps: 'Étapes',\n touristicContents: 'À proximité',\n touristicEvents: 'Événements',\n },\n themes: 'Thèmes',\n placeholderThemes: 'Sélectionner un ou plusieurs thèmes',\n placeholderPractices: 'Sélectionner une ou plusieurs pratiques',\n routes: 'Type de parcours',\n elevation: 'Denivelé positif',\n activities: 'Activités',\n districts: 'Secteurs',\n erase: 'Effacer',\n ok: 'Ok',\n location: 'Localisation',\n steps: 'étapes',\n usefulInformation: 'Informations pratiques',\n contact: 'Contact',\n email: 'Email',\n website: 'Site web',\n category: 'Catégorie',\n services: 'Services',\n },\n en: {\n filter: 'Filter',\n practice: 'Practice',\n difficulty: 'Difficulty',\n duration: 'Duration',\n length: 'Length',\n treks: 'routes',\n trek: 'route',\n showList: 'Show the list',\n showMap: 'Show the map',\n showRoute: 'Show the route',\n showDetails: 'Show the details',\n download: 'Download',\n downloads: 'Downloads',\n description: 'Description',\n departure: 'Departure',\n arrival: 'Arrival',\n elevationProfile: 'Elevation profile',\n roadAccess: 'Road acess',\n transport: 'Transport',\n recommendations: 'Recommendations',\n recommendedParking: 'Parking recommended',\n equipments: 'Equipements',\n environmentalSensitiveAreas: 'Areas of environmental sensitivity',\n informationPlaces: 'Information places',\n accessibility: 'Accessibility',\n accessibilityLevel: 'Accessibility level',\n accessibilitySlope: 'Slope',\n accessibilityWidth: 'Width',\n accessibilitySignage: 'Signage',\n accessibilityCovering: 'Covering',\n accessibilityExposure: 'Exposure',\n accessibilityAdvices: 'Advices',\n pois: (poisLength: number) => `${poisLength} points of interest`,\n touristicContents: (touristicContentsLength: number) => `Near (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Events (${touristicEventsLength})`,\n sources: 'Sources',\n city: 'City',\n crossedCities: 'Cities',\n placeholderCrossedCities: 'Select one or more municipalities',\n home: {\n segment: {\n treks: 'Routes',\n touristicContents: 'Services',\n },\n touristicContents: 'near',\n touristicContent: 'near',\n },\n options: {\n presentation: 'Presentation',\n description: 'Description',\n recommendations: 'Recommendations',\n environmentalSensitiveAreas: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n steps: 'Steps',\n touristicContents: 'Near',\n touristicEvents: 'Events',\n },\n layers: {\n referencePoints: 'Reference points',\n parking: 'Parking',\n sensitiveArea: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n steps: 'Steps',\n touristicContents: 'Near',\n touristicEvents: 'Events',\n },\n themes: 'Themes',\n placeholderThemes: 'Select one or more themes',\n placeholderPractices: 'Select one or more practices',\n routes: 'Type of course',\n elevation: 'Positive elevation',\n activities: 'Activities',\n districts: 'Districts',\n erase: 'Erase',\n ok: 'Ok',\n location: 'Location',\n usefulInformation: 'Useful information',\n steps: 'steps',\n contact: 'Contact',\n email: 'Email',\n website: 'Website',\n category: 'Category',\n services: 'Services',\n },\n};\n"],"mappings":"2EA6FaA,EAASC,EAAA,IAA0B,CAC9CC,GAAI,CACFC,OAAQ,UACRC,SAAU,WACVC,WAAY,aACZC,SAAU,QACVC,OAAQ,WACRC,MAAO,cACPC,KAAM,aACNC,SAAU,gBACVC,QAAS,gBACTC,UAAW,oBACXC,YAAa,gBACbC,SAAU,iBACVC,UAAW,kBACXC,YAAa,cACbC,UAAW,SACXC,QAAS,UACTC,iBAAkB,sBAClBC,WAAY,gBACZC,UAAW,YACXC,gBAAiB,kBACjBC,mBAAoB,oBACpBC,WAAY,cACZC,4BAA6B,wCAC7BC,kBAAmB,yBACnBC,cAAe,gBACfC,mBAAoB,yBACpBC,mBAAoB,QACpBC,mBAAoB,UACpBC,qBAAsB,gBACtBC,sBAAuB,aACvBC,sBAAuB,aACvBC,qBAAsB,WACtBC,KAAM,SAACC,GAAuB,aAAAC,OAAOD,EAAU,2BAAjB,EAC9BE,kBAAmB,SAACC,GAAoC,sBAAA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U,sBAAb,EAC9BE,kBAAmB,SAACC,GAAoC,eAAAF,OAASE,EAAuB,IAAhC,EACxDC,gBAAiB,SAACC,GAAkC,iBAAAJ,OAAWI,EAAqB,IAAhC,EACpDC,QAAS,UACTC,KAAM,OACNC,cAAe,SACfC,yBAA0B,oCAC1BC,KAAM,CACJC,QAAS,CACPvC,MAAO,SACP8B,kBAAmB,YAErBA,kBAAmB,OACnBU,iBAAkB,QAEpBC,QAAS,CACPC,aAAc,eACdlC,YAAa,cACbM,gBAAiB,kBACjBG,4BAA6B,kBAC7BC,kBAAmB,qBACnBS,KAAM,qBACNgB,MAAO,QACPb,kBAAmB,OACnBE,gBAAiB,UAEnBY,OAAQ,CACNC,gBAAiB,mBACjBC,QAAS,UACTC,cAAe,kBACf7B,kBAAmB,qBACnBS,KAAM,qBACNgB,MAAO,QACPb,kBAAmB,OACnBE,gBAAiB,UAEnBgB,OAAQ,SACRC,kBAAmB,4BACnBC,qBAAsB,+BACtBC,OAAQ,iBACRC,UAAW,qBACXC,WAAY,aACZC,UAAW,YACXC,MAAO,QACPC,GAAI,KACJC,SAAU,WACVC,kBAAmB,qBACnBf,MAAO,QACPgB,QAAS,UACTC,MAAO,QACPC,QAAS,UACTC,SAAU,WACVC,SAAU,a"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["formatDuration","duration","formattedDuration","concat","Math","floor","round","formatLength","length","formatAscent","ascent","treksFilters","exports","property","trekProperty","trekPropertyIsArray","type","segment","touristicContentsFilters","touristicContentProperty","touristicContentPropertyIsArray","handleTreksFiltersAndSearch","isUsingFilter","filtersTreks","filter","currentFiltersId","state","currentFilter","selected","map","id","__spreadArray","trek","some","includes","currentFilterId","find","minValue","maxValue","_i","currentFiltersId_2","treks","minValue_1","maxValue_1","isNaN","_a","currentFiltersId_1","treksFilters_1","searchTreks","Boolean","searchValue","currentTrek","name","toLowerCase","handleTouristicContentsFiltersAndSearch","filtersTouristicContents","touristicContent","currentFiltersId_4","touristicContents","minValue_2","maxValue_2","currentFiltersId_3","touristicContentsFilters_1","searchTouristicContents","currentTouristicContents"],"sources":["src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { TouristicContents, TouristicContentsFilters, TrekFilters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport const treksFilters: TrekFilters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include', segment: 'selectedThemesFilters' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', trekProperty: 'districts', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport const touristicContentsFilters: TouristicContentsFilters = [\n { property: 'touristicContentCategories', touristicContentProperty: 'category', touristicContentPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'cities', touristicContentProperty: 'cities', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', touristicContentProperty: 'districts', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport function handleTreksFiltersAndSearch(): Treks {\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of treksFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...filtersTreks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n\nexport function handleTouristicContentsFiltersAndSearch(): TouristicContents {\n let isUsingFilter = false;\n let filtersTouristicContents = [];\n for (const filter of touristicContentsFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTouristicContents.length > 0) {\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...filtersTouristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (touristicContent[filter.touristicContentProperty] >= currentFilter.minValue && touristicContent[filter.touristicContentProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...state.touristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...state.touristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTouristicContents = [\n ...state.touristicContents.filter(\n touristicContent => touristicContent[filter.touristicContentProperty] >= minValue && touristicContent[filter.touristicContentProperty] <= maxValue,\n ),\n ];\n }\n }\n }\n }\n\n const searchTouristicContents = isUsingFilter ? filtersTouristicContents : state.touristicContents;\n return Boolean(state.searchValue)\n ? searchTouristicContents.filter(currentTouristicContents => currentTouristicContents.name.toLowerCase().includes(state.searchValue.toLowerCase()))\n : searchTouristicContents;\n}\n"],"mappings":"sZAGgBA,EAAeC,GAC7B,IAAIC,EACJ,GAAID,EAAW,GAAI,CACjBC,EAAoB,GAAAC,OAAGC,KAAKC,MAAMJ,GAAS,KAC3C,GAAIA,EAAW,EAAI,EAAG,CACpBC,GAAqB,GAAAC,OAAGC,KAAKE,MAAM,IAAML,EAAW,IAAG,M,MAEpD,CACLC,EAAoB,GAAAC,OAAGF,EAAW,GAAE,I,CAEtC,OAAOC,CACT,C,SAEgBK,EAAaC,GAC3B,MAAO,GAAAL,OAAGC,KAAKE,MAAME,EAAS,KAAK,KACrC,C,SAEgBC,EAAaC,GAC3B,MAAO,GAAAP,OAAGO,EAAM,IAClB,C,IAEaC,EAAYC,EAAA,IAAgB,CACvC,CAAEC,SAAU,YAAaC,aAAc,WAAYC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BACzG,CAAEJ,SAAU,eAAgBC,aAAc,aAAcC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BAC9G,CAAEJ,SAAU,YAAaC,aAAc,WAAYC,oBAAqB,MAAOC,KAAM,WAA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WsB,EAAU,CACxDA,EAAWhC,EAAcU,Q,CAE3B,GAAIO,MAAMgB,IAAajC,EAAcW,SAAWsB,EAAU,CACxDA,EAAWjC,EAAcW,Q,GAN7B,IAA8B,IAAAO,EAAA,EAAAgB,EAAApC,EAAAoB,EAAAgB,EAAArD,OAAAqC,IAAgB,CAAzC,IAAMV,EAAe0B,EAAAhB,G,EAAfV,E,CASXoB,EAAwBxB,cAAA,GACnBL,EAAMgC,kBAAkBlC,QACzB,SAAAgC,GAAoB,OAAAA,EAAiBhC,EAAOL,2BAA6BwC,GAAYH,EAAiBhC,EAAOL,2BAA6ByC,CAAtH,IACrB,K,KAxDX,IAAqB,IAAArB,EAAA,EAAAuB,EAAA5C,EAAAqB,EAAAuB,EAAAtD,OAAA+B,IAAwB,CAAxC,IAAMf,EAAMsC,EAAAvB,G,EAANf,E,CA+DX,IAAMuC,EAA0BzC,EAAgBiC,EAA2B7B,EAAMgC,kBACjF,OAAOT,QAAQvB,EAAMwB,aACjBa,EAAwBvC,QAAO,SAAAwC,GAA4B,OAAAA,EAAyBZ,KAAKC,cAAcnB,SAASR,EAAMwB,YAAYG,cAAvE,IAC3DU,CACN,C"}
|
|
1
|
+
{"version":3,"names":["formatDuration","duration","formattedDuration","concat","Math","floor","round","formatLength","length","formatAscent","ascent","treksFilters","exports","property","trekProperty","trekPropertyIsArray","type","segment","touristicContentsFilters","touristicContentProperty","touristicContentPropertyIsArray","handleTreksFiltersAndSearch","isUsingFilter","filtersTreks","filter","currentFiltersId","state","currentFilter","selected","map","id","__spreadArray","trek","some","includes","currentFilterId","find","minValue","maxValue","_i","currentFiltersId_2","treks","minValue_1","maxValue_1","isNaN","_a","currentFiltersId_1","treksFilters_1","searchTreks","Boolean","searchValue","currentTrek","name","toLowerCase","handleTouristicContentsFiltersAndSearch","filtersTouristicContents","touristicContent","currentFiltersId_4","touristicContents","minValue_2","maxValue_2","currentFiltersId_3","touristicContentsFilters_1","searchTouristicContents","currentTouristicContents"],"sources":["src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { TouristicContents, TouristicContentsFilters, TrekFilters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport const treksFilters: TrekFilters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include', segment: 'selectedThemesFilters' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', trekProperty: 'districts', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport const touristicContentsFilters: TouristicContentsFilters = [\n { property: 'touristicContentCategories', touristicContentProperty: 'category', touristicContentPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'cities', touristicContentProperty: 'cities', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', touristicContentProperty: 'districts', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport function handleTreksFiltersAndSearch(): Treks {\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of treksFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...filtersTreks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n\nexport function handleTouristicContentsFiltersAndSearch(): TouristicContents {\n let isUsingFilter = false;\n let filtersTouristicContents = [];\n for (const filter of touristicContentsFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n\n if (currentFiltersId.length > 0) {\n if (filtersTouristicContents.length > 0) {\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...filtersTouristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (touristicContent[filter.touristicContentProperty] >= currentFilter.minValue && touristicContent[filter.touristicContentProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...state.touristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...state.touristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTouristicContents = [\n ...state.touristicContents.filter(\n touristicContent => touristicContent[filter.touristicContentProperty] >= minValue && touristicContent[filter.touristicContentProperty] <= maxValue,\n ),\n ];\n }\n }\n }\n }\n const searchTouristicContents = isUsingFilter ? filtersTouristicContents : state.touristicContents;\n\n return Boolean(state.searchValue)\n ? searchTouristicContents.filter(currentTouristicContents => currentTouristicContents.name.toLowerCase().includes(state.searchValue.toLowerCase()))\n : searchTouristicContents;\n}\n"],"mappings":"sZAGgBA,EAAeC,GAC7B,IAAIC,EACJ,GAAID,EAAW,GAAI,CACjBC,EAAoB,GAAAC,OAAGC,KAAKC,MAAMJ,GAAS,KAC3C,GAAIA,EAAW,EAAI,EAAG,CACpBC,GAAqB,GAAAC,OAAGC,KAAKE,MAAM,IAAML,EAAW,IAAG,M,MAEpD,CACLC,EAAoB,GAAAC,OAAGF,EAAW,GAAE,I,CAEtC,OAAOC,CACT,C,SAEgBK,EAAaC,GAC3B,MAAO,GAAAL,OAAGC,KAAKE,MAAME,EAAS,KAAK,KACrC,C,SAEgBC,EAAaC,GAC3B,MAAO,GAAAP,OAAGO,EAAM,IAClB,C,IAEaC,EAAYC,EAAA,IAAgB,CACvC,CAAEC,SAAU,YAAaC,aAAc,WAAYC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BACzG,CAAEJ,SAAU,eAAgBC,aAAc,aAAcC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BAC9G,CAAEJ,SAAU,YAAaC,aAAc,WAAYC,oBAAqB,MAAOC,KAAM,WAAYC,QAAS,6BAC1G,CAAEJ,SAAU,UAAWC,aAAc,YAAaC,oBAAqB,MAAOC,KAA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W,SAAWsB,EAAU,CACxDA,EAAWjC,EAAcW,Q,GAN7B,IAA8B,IAAAO,EAAA,EAAAgB,EAAApC,EAAAoB,EAAAgB,EAAArD,OAAAqC,IAAgB,CAAzC,IAAMV,EAAe0B,EAAAhB,G,EAAfV,E,CASXoB,EAAwBxB,cAAA,GACnBL,EAAMgC,kBAAkBlC,QACzB,SAAAgC,GAAoB,OAAAA,EAAiBhC,EAAOL,2BAA6BwC,GAAYH,EAAiBhC,EAAOL,2BAA6ByC,CAAtH,IACrB,K,KAzDX,IAAqB,IAAArB,EAAA,EAAAuB,EAAA5C,EAAAqB,EAAAuB,EAAAtD,OAAA+B,IAAwB,CAAxC,IAAMf,EAAMsC,EAAAvB,G,EAANf,E,CA+DX,IAAMuC,EAA0BzC,EAAgBiC,EAA2B7B,EAAMgC,kBAEjF,OAAOT,QAAQvB,EAAMwB,aACjBa,EAAwBvC,QAAO,SAAAwC,GAA4B,OAAAA,EAAyBZ,KAAKC,cAAcnB,SAASR,EAAMwB,YAAYG,cAAvE,IAC3DU,CACN,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./p-d2c035bc.system.js"],(function(r,o){"use strict";var e,n,t,i,c,a;return{setters:[function(o){e=o.p;n=o.w;t=o.d;i=o.N;c=o.a;a=o.b;r("setNonce",o.s)}],execute:function(){function r(r){var o,e,n;return(n=(e=(o=r.head)===null||o===void 0?void 0:o.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&n!==void 0?n:undefined}var s=function(r){return"__sc_import_".concat(r.replace(/\s|-/g,"_"))};var l=function(){{e.$cssShim$=n.__cssshim}var r=Array.from(t.querySelectorAll("script")).find((function(r){return new RegExp("/".concat(i,"(\\.esm)?\\.js($|\\?|#)")).test(r.src)||r.getAttribute("data-stencil-namespace")===i}));var a=(r||{})["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{a.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,n.location.href)).href;{u(a.resourcesUrl,r)}if(!n.customElements){return o.import("./p-fe22d872.system.js").then((function(){return a}))}}return c(a)};var u=function(o,c){var a=s(i);try{n[a]=new Function("w","return import(w);//".concat(Math.random()))}catch(u){var l=new Map;n[a]=function(i){var s;var u=new URL(i,o).href;var p=l.get(u);if(!p){var d=t.createElement("script");d.type="module";d.crossOrigin=c.crossOrigin;d.src=URL.createObjectURL(new Blob(["import * as m from '".concat(u,"'; window.").concat(a,".m = m;")],{type:"application/javascript"}));var y=(s=e.$nonce$)!==null&&s!==void 0?s:r(t);if(y!=null){d.setAttribute("nonce",y)}p=new Promise((function(r){d.onload=function(){r(n[a].m);d.remove()}}));l.set(u,p);t.head.appendChild(d)}return p}}};l().then((function(r){return a([["p-
|
|
1
|
+
System.register(["./p-d2c035bc.system.js"],(function(r,o){"use strict";var e,n,t,i,c,a;return{setters:[function(o){e=o.p;n=o.w;t=o.d;i=o.N;c=o.a;a=o.b;r("setNonce",o.s)}],execute:function(){function r(r){var o,e,n;return(n=(e=(o=r.head)===null||o===void 0?void 0:o.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&n!==void 0?n:undefined}var s=function(r){return"__sc_import_".concat(r.replace(/\s|-/g,"_"))};var l=function(){{e.$cssShim$=n.__cssshim}var r=Array.from(t.querySelectorAll("script")).find((function(r){return new RegExp("/".concat(i,"(\\.esm)?\\.js($|\\?|#)")).test(r.src)||r.getAttribute("data-stencil-namespace")===i}));var a=(r||{})["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{a.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,n.location.href)).href;{u(a.resourcesUrl,r)}if(!n.customElements){return o.import("./p-fe22d872.system.js").then((function(){return a}))}}return c(a)};var u=function(o,c){var a=s(i);try{n[a]=new Function("w","return import(w);//".concat(Math.random()))}catch(u){var l=new Map;n[a]=function(i){var s;var u=new URL(i,o).href;var p=l.get(u);if(!p){var d=t.createElement("script");d.type="module";d.crossOrigin=c.crossOrigin;d.src=URL.createObjectURL(new Blob(["import * as m from '".concat(u,"'; window.").concat(a,".m = m;")],{type:"application/javascript"}));var y=(s=e.$nonce$)!==null&&s!==void 0?s:r(t);if(y!=null){d.setAttribute("nonce",y)}p=new Promise((function(r){d.onload=function(){r(n[a].m);d.remove()}}));l.set(u,p);t.head.appendChild(d)}return p}}};l().then((function(r){return a([["p-2545bc2a.system",[[0,"grw-app",{appWidth:[1,"app-width"],appHeight:[1,"app-height"],api:[1],languages:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1],center:[1],zoom:[2],nameLayer:[1,"name-layer"],urlLayer:[1,"url-layer"],attributionLayer:[1,"attribution-layer"],weather:[4],colorPrimaryApp:[1,"color-primary-app"],colorOnPrimary:[1,"color-on-primary"],colorSurface:[1,"color-surface"],colorOnSurface:[1,"color-on-surface"],colorSurfaceVariant:[1,"color-surface-variant"],colorOnSurfaceVariant:[1,"color-on-surface-variant"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],colorSurfaceContainerHigh:[1,"color-surface-container-high"],colorSurfaceContainerLow:[1,"color-surface-container-low"],fabBackgroundColor:[1,"fab-background-color"],fabColor:[1,"fab-color"],colorTrekLine:[1,"color-trek-line"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],treks:[4],touristicContents:[4,"touristic-contents"],touristicEvents:[4,"touristic-events"],showTrek:[32],showTouristicContent:[32],showTouristicEvent:[32],showHomeMap:[32],showTrekMap:[32],showTouristicContentMap:[32],showTouristicEventMap:[32],showFilters:[32],isLargeView:[32],currentTrekId:[32],currentTouristicContentId:[32],currentTouristicEventId:[32]},[[8,"trekCardPress","onTrekCardPress"],[8,"parentTrekPress","onParentTrekPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]],["p-9d562b29.system",[[1,"grw-select-language"]]],["p-ea78e5f0.system",[[1,"grw-touristic-event-card-provider",{languages:[1],api:[1],touristicEventId:[1,"touristic-event-id"],portals:[1]}]]],["p-bf8d8171.system",[[1,"grw-filter",{filterType:[1,"filter-type"],filterName:[1,"filter-name"],filterPlaceholder:[1,"filter-placeholder"],filterNameProperty:[1,"filter-name-property"],segment:[1]},[[8,"resetFilter","onResetFilter"]]]]],["p-638b7451.system",[[1,"grw-information-desk",{informationDesk:[16],displayShortDescription:[32]}],[1,"grw-poi",{poi:[16],displayShortDescription:[32],displayFullscreen:[32]}],[1,"grw-sensitive-area-detail",{sensitiveArea:[16]}],[1,"grw-touristic-event-card",{touristicEvent:[16],displayFullscreen:[32]}],[1,"grw-touristic-content-card",{touristicContent:[16],isLargeView:[4,"is-large-view"],isInsideHorizontalList:[4,"is-inside-horizontal-list"],displayFullscreen:[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-trek-card",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isStep:[4,"is-step"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],departureCity:[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-4d2be020.system",[[1,"grw-trek-detail",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],colorBackground:[1,"color-background"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],weather:[4],isLargeView:[4,"is-large-view"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],labels:[32],sources:[32],accessibilities:[32],accessibilityLevel:[32],displayFullscreen:[32],cities:[32],options:[32]}],[1,"grw-filters",{handleFilters:[16],selectedSegment:[32]}],[1,"grw-touristic-contents-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],touristicContentsToDisplay:[32]}],[1,"grw-treks-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],treksToDisplay:[32]}],[1,"grw-map",{nameLayer:[1,"name-layer"],urlLayer:[1,"url-layer"],attributionLayer:[1,"attribution-layer"],center:[1],zoom:[2],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorBackground:[1,"color-background"],colorTrekLine:[1,"color-trek-line"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isLargeView:[4,"is-large-view"],mapIsReady:[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"stepsIsInViewport","stepsIsInViewport"],[8,"descriptionIsInViewport","descriptionIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"],[8,"touristicContentsIsInViewport","touristicContentsIsInViewport"],[8,"touristicEventsIsInViewport","touristicEventsIsInViewport"],[8,"cardTrekMouseOver","onCardTrekMouseOver"],[8,"cardTrekMouseLeave","onCardTrekMouseLeave"],[8,"cardTouristicContentMouseOver","onTouristicContentMouseOver"],[8,"cardTouristicContentMouseLeave","onTouristicContentMouseLeave"]]],[1,"grw-search"],[1,"grw-touristic-content-detail",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],colorBackground:[1,"color-background"],isLargeView:[4,"is-large-view"],displayFullscreen:[32]}],[1,"grw-touristic-content-provider",{languages:[1],api:[1],touristicContentId:[1,"touristic-content-id"],portals:[1]}],[1,"grw-touristic-contents-provider",{languages:[1],api:[1],touristicContentId:[1,"touristic-content-id"],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1]}],[1,"grw-touristic-event-detail",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],colorBackground:[1,"color-background"],isLargeView:[4,"is-large-view"],displayFullscreen:[32]}],[1,"grw-trek-provider",{languages:[1],api:[1],trekId:[1,"trek-id"],portals:[1]}],[1,"grw-treks-provider",{languages:[1],api:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1]}]]]],r)}))}}}));
|
|
2
2
|
//# sourceMappingURL=p-cc8a7df2.system.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["queryNonceMetaTagContent","doc","_a","_b","_c","head","querySelector","getAttribute","undefined","getDynamicImportFunction","namespace","concat","replace","patchBrowser","plt","$cssShim$","win","__cssshim","scriptElm","Array","from","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","opts","history","scrollRestoration","then","resourcesUrl","URL","location","href","patchDynamicImport","customElements","module","import","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap_1","Map","url","mod","get","script_1","createElement","type","crossOrigin","createObjectURL","Blob","nonce","$nonce$","setAttribute","Promise","resolve","onload","m","remove","set","appendChild","options","bootstrapLazy","appWidth","appHeight","api","languages","inBbox","cities","districts","structures","themes","portals","routes","practices","center","zoom","nameLayer","urlLayer","attributionLayer","weather","colorPrimaryApp","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","colorTrekLine","colorSensitiveArea","colorPoiIcon","useGradient","treks","touristicContents","touristicEvents","showTrek","showTouristicContent","showTouristicEvent","showHomeMap","showTrekMap","showTouristicContentMap","showTouristicEventMap","showFilters","isLargeView","currentTrekId","currentTouristicContentId","currentTouristicEventId","touristicEventId","filterType","filterName","filterPlaceholder","filterNameProperty","segment","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","touristicEvent","touristicContent","isInsideHorizontalList","trek","resetStoreOnDisconnected","isStep","currentTrek","difficulty","route","practice","departureCity","labels","sources","accessibilities","accessibilityLevel","handleFilters","selectedSegment","touristicContentsToDisplay","treksToDisplay","mapIsReady","touristicContentId","trekId"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"8LAaA,SAASA,EAAyBC,GAC9B,IAAIC,EAAIC,EAAIC,EACZ,OAAQA,GAAMD,GAAMD,EAAKD,EAAII,QAAU,MAAQH,SAAY,OAAS,EAAIA,EAAGI,cAAc,6BAA+B,MAAQH,SAAY,OAAS,EAAIA,EAAGI,aAAa,cAAgB,MAAQH,SAAY,EAAIA,EAAKI,SAC1N,CAEA,IAAMC,EAA2B,SAACC,GAAc,qBAAAC,OAAeD,EAAUE,QAAQ,QAAS,KAA1C,EAChD,IAAMC,EAAe,WAMK,CAGlBC,EAAIC,UAAYC,EAAIC,S,CAkBxB,IAAMC,EAIAC,MAAMC,KAAKnB,EAAIoB,iBAAiB,WAAWC,MAAK,SAACC,GAAM,WAAIC,OAAO,IAAAb,OAAKc,EAAS,4BAA2BC,KAAKH,EAAEI,MAChHJ,EAAEhB,aAAa,4BAA8BkB,CADQ,IAI7D,IAAMG,GAA+BV,GAAa,IAAI,cAAgB,GAEtE,GAAsB,iBAAkBA,IAAcW,QAAQC,kBAAsC,CAQhG,MAAO,CACHC,KAAI,WAEhB,E,CASwD,CAChDH,EAAKI,aAAe,IAAIC,IAAI,IAAK,IAAIA,IAAIf,EAAUX,aAAa,uBAAyBW,EAAUS,IAAKX,EAAIkB,SAASC,OAAOA,KAE/F,CACzBC,EAAmBR,EAAKI,aAAcd,E,CAG1C,IAAgCF,EAAIqB,eAAgB,CAGhD,OAAOC,EAAAC,OAA+C,0BAAYR,MAAK,WAAM,OAAAH,CAAA,G,EAGrF,OAAOY,EAAe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,OAAA,IAAAC,UAAA,IAAAC,WAAA,IAAAC,OAAA,IAAAC,QAAA,IAAAC,OAAA,IAAAC,UAAA,SAAAb,EAC9D,G"}
|
|
1
|
+
{"version":3,"names":["queryNonceMetaTagContent","doc","_a","_b","_c","head","querySelector","getAttribute","undefined","getDynamicImportFunction","namespace","concat","replace","patchBrowser","plt","$cssShim$","win","__cssshim","scriptElm","Array","from","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","opts","history","scrollRestoration","then","resourcesUrl","URL","location","href","patchDynamicImport","customElements","module","import","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap_1","Map","url","mod","get","script_1","createElement","type","crossOrigin","createObjectURL","Blob","nonce","$nonce$","setAttribute","Promise","resolve","onload","m","remove","set","appendChild","options","bootstrapLazy","appWidth","appHeight","api","languages","inBbox","cities","districts","structures","themes","portals","routes","practices","center","zoom","nameLayer","urlLayer","attributionLayer","weather","colorPrimaryApp","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","colorTrekLine","colorSensitiveArea","colorPoiIcon","useGradient","treks","touristicContents","touristicEvents","showTrek","showTouristicContent","showTouristicEvent","showHomeMap","showTrekMap","showTouristicContentMap","showTouristicEventMap","showFilters","isLargeView","currentTrekId","currentTouristicContentId","currentTouristicEventId","touristicEventId","filterType","filterName","filterPlaceholder","filterNameProperty","segment","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","touristicEvent","touristicContent","isInsideHorizontalList","trek","resetStoreOnDisconnected","isStep","currentTrek","difficulty","route","practice","departureCity","labels","sources","accessibilities","accessibilityLevel","handleFilters","selectedSegment","touristicContentsToDisplay","treksToDisplay","mapIsReady","touristicContentId","trekId"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"8LAaA,SAASA,EAAyBC,GAC9B,IAAIC,EAAIC,EAAIC,EACZ,OAAQA,GAAMD,GAAMD,EAAKD,EAAII,QAAU,MAAQH,SAAY,OAAS,EAAIA,EAAGI,cAAc,6BAA+B,MAAQH,SAAY,OAAS,EAAIA,EAAGI,aAAa,cAAgB,MAAQH,SAAY,EAAIA,EAAKI,SAC1N,CAEA,IAAMC,EAA2B,SAACC,GAAc,qBAAAC,OAAeD,EAAUE,QAAQ,QAAS,KAA1C,EAChD,IAAMC,EAAe,WAMK,CAGlBC,EAAIC,UAAYC,EAAIC,S,CAkBxB,IAAMC,EAIAC,MAAMC,KAAKnB,EAAIoB,iBAAiB,WAAWC,MAAK,SAACC,GAAM,WAAIC,OAAO,IAAAb,OAAKc,EAAS,4BAA2BC,KAAKH,EAAEI,MAChHJ,EAAEhB,aAAa,4BAA8BkB,CADQ,IAI7D,IAAMG,GAA+BV,GAAa,IAAI,cAAgB,GAEtE,GAAsB,iBAAkBA,IAAcW,QAAQC,kBAAsC,CAQhG,MAAO,CACHC,KAAI,WAEhB,E,CASwD,CAChDH,EAAKI,aAAe,IAAIC,IAAI,IAAK,IAAIA,IAAIf,EAAUX,aAAa,uBAAyBW,EAAUS,IAAKX,EAAIkB,SAASC,OAAOA,KAE/F,CACzBC,EAAmBR,EAAKI,aAAcd,E,CAG1C,IAAgCF,EAAIqB,eAAgB,CAGhD,OAAOC,EAAAC,OAA+C,0BAAYR,MAAK,WAAM,OAAAH,CAAA,G,EAGrF,OAAOY,EAAeZ,EAC1B,EAEA,IAAMQ,EAAqB,SAACK,EAAMC,GAC9B,IAAMC,EAAqBlC,EAAyBgB,GACpD,IAKIT,EAAI2B,GAAsB,IAAIC,SAAS,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AC,UAAA,SAAAb,EAC9D,G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};System.register(["./p-d2c035bc.system.js","./p-10ee2e5e.system.js"],(function(t){"use strict";var e,i,n,r;return{setters:[function(t){e=t.r;i=t.h;n=t.H},function(t){r=t.s}],execute:function(){var s=t("grw_touristic_event_card_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!r.api){r.api=this.api;r.languages=this.languages.split(",");r.language=r.languages[0]}this.handleTouristicEvent()};t.prototype.handleTouristicEvent=function(){var t=[];t.push(!r.cities?fetch("".concat(r.api,"city/?language=").concat(r.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!r.touristicEventTypes?fetch("".concat(r.api,"touristicevent_type/?language=").concat(r.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(r.api,"touristicevent/").concat(this.touristicEventId,"/?language=").concat(r.language,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website&published=true"),this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2];r.trekNetworkError=false;if(e){r.cities=e.results}if(i){r.touristicEventTypes=i.results}r.currentTouristicEvent=n})).catch((function(){r.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();r.trekNetworkError=false};t.prototype.render=function(){return i(n,null)};return t}())}}}));
|
|
2
|
+
//# sourceMappingURL=p-ea78e5f0.system.entry.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GrwTouristicEventProvider","exports","this","controller","AbortController","signal","init","cache","class_1","prototype","connectedCallback","state","api","languages","split","language","handleTouristicEvent","requests","push","cities","fetch","concat","Response","touristicEventTypes","portals","Promise","all","__spreadArray","touristicEventId","then","responses","map","response","json","_a","touristicEvent","trekNetworkError","results","currentTouristicEvent","catch","disconnectedCallback","abort","render","h","Host"],"sources":["src/store/grw-touristic-event-provider.tsx"],"sourcesContent":["import { Build, Component, h, Host, Prop } from '@stencil/core';\nimport state from 'store/store';\n\n@Component({\n tag: 'grw-touristic-event-card-provider',\n shadow: true,\n})\nexport class GrwTouristicEventProvider {\n @Prop() languages = 'fr';\n @Prop() api: string;\n @Prop() touristicEventId: string;\n @Prop() portals: string;\n\n controller = new AbortController();\n signal = this.controller.signal;\n init: RequestInit = { cache: Build.isDev ? 'force-cache' : 'default', signal: this.signal };\n\n connectedCallback() {\n if (!state.api) {\n state.api = this.api;\n state.languages = this.languages.split(',');\n state.language = state.languages[0];\n }\n this.handleTouristicEvent();\n }\n\n handleTouristicEvent() {\n const requests = [];\n requests.push(!state.cities ? fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));\n requests.push(\n !state.touristicEventTypes\n ? fetch(\n `${state.api}touristicevent_type/?language=${state.language}${\n this.portals ? '&portals='.concat(this.portals) : ''\n }&published=true&fields=id,type,pictogram&page_size=999`,\n this.init,\n )\n : new Response('null'),\n );\n\n Promise.all([\n ...requests,\n fetch(\n `${state.api}touristicevent/${this.touristicEventId}/?language=${state.language}&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website&published=true`,\n this.init,\n ),\n ])\n .then(responses => Promise.all(responses.map(response => response.json())))\n .then(([cities, touristicEventTypes, touristicEvent]) => {\n state.trekNetworkError = false;\n\n if (cities) {\n state.cities = cities.results;\n }\n if (touristicEventTypes) {\n state.touristicEventTypes = touristicEventTypes.results;\n }\n state.currentTouristicEvent = touristicEvent;\n })\n .catch(() => {\n state.trekNetworkError = true;\n });\n }\n\n disconnectedCallback() {\n this.controller.abort();\n state.trekNetworkError = false;\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"],"mappings":"sbAOaA,EAAyBC,EAAA,+C,wBAMpCC,KAAAC,WAAa,IAAIC,gBACjBF,KAAAG,OAASH,KAAKC,WAAWE,OACzBH,KAAAI,KAAoB,CAAEC,MAAqC,UAAWF,OAAQH,KAAKG,Q,eAP/D,K,0EASpBG,EAAAC,UAAAC,kBAAA,WACE,IAAKC,EAAMC,IAAK,CACdD,EAAMC,IAAMV,KAAKU,IACjBD,EAAME,UAAYX,KAAKW,UAAUC,MAAM,KACvCH,EAAMI,SAAWJ,EAAME,UAAU,E,CAEnCX,KAAKc,sB,EAGPR,EAAAC,UAAAO,qBAAA,WACE,IAAMC,EAAW,GACjBA,EAASC,MAAMP,EAAMQ,OAASC,MAAM,GAAAC,OAAGV,EAAMC,IAAG,mBAAAS,OAAkBV,EAAMI,SAAQ,gDAAgDb,KAAKI,MAAQ,IAAIgB,SAAS,SAC1JL,EAASC,MACNP,EAAMY,oBACHH,MACE,GAAAC,OAAGV,EAAMC,IAAG,kCAAAS,OAAiCV,EAAMI,UAAQM,OACzDnB,KAAKsB,QAAU,YAAYH,OAAOnB,KAAKsB,SAAW,GACpD,0DACAtB,KAAKI,MAEP,IAAIgB,SAAS,SAGnBG,QAAQC,IAAGC,4BAAA,GACNV,EAAQ,OACXG,MACE,GAAAC,OAAGV,EAAMC,IAAG,mBAAAS,OAAkBnB,KAAK0B,iBAAgB,eAAAP,OAAcV,EAAMI,SAAQ,2IAC/Eb,KAAKI,O,QAGNuB,MAAK,SAAAC,GAAa,OAAAL,QAAQC,IAAII,EAAUC,KAAI,SAAAC,GAAY,OAAAA,EAASC,MAAT,IAAtC,IAClBJ,MAAK,SAACK,G,IAACf,EAAMe,EAAA,GAA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