@geotrekce/geotrek-rando-widget 0.18.0 → 0.18.2
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/grw-app.cjs.entry.js +5 -5
- 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-common-button_27.cjs.entry.js +496 -374
- package/dist/cjs/grw-common-button_27.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_27.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_27.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-information-desk_3.cjs.entry.js +1 -1
- package/dist/cjs/grw-information-desk_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js +58 -38
- package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-2df02bcf.js → i18n-736691e8.js} +5 -1
- package/dist/cjs/i18n-736691e8.js.br +0 -0
- package/dist/cjs/i18n-736691e8.js.gz +0 -0
- package/dist/cjs/i18n-736691e8.js.map +1 -0
- package/dist/collection/components/grw-app/grw-app.js +4 -4
- 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-common-button/grw-common-button.css +1 -0
- package/dist/collection/components/grw-common-button/grw-common-button.css.br +0 -0
- package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js +104 -77
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.br +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.gz +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.map +1 -1
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +185 -143
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.map +1 -1
- package/dist/collection/components/grw-poi-detail/grw-poi.js +31 -23
- package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +13 -7
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +24 -16
- 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-card/grw-touristic-event-card.js +13 -7
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +24 -16
- 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 +157 -120
- 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 +4 -0
- 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/stories/App.js +2 -1
- package/dist/collection/stories/App.js.br +0 -0
- package/dist/collection/stories/App.js.gz +0 -0
- package/dist/collection/stories/App.stories.js +1 -0
- package/dist/collection/stories/App.stories.js.br +0 -0
- package/dist/collection/stories/App.stories.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +5 -5
- 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-common-button_27.entry.js +496 -374
- package/dist/esm/grw-common-button_27.entry.js.br +0 -0
- package/dist/esm/grw-common-button_27.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_27.entry.js.map +1 -1
- package/dist/esm/grw-information-desk_3.entry.js +1 -1
- package/dist/esm/grw-information-desk_3.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_3.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js +58 -38
- package/dist/esm/grw-poi_3.entry.js.br +0 -0
- package/dist/esm/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js.map +1 -1
- package/dist/esm/{i18n-9a7ac609.js → i18n-84192695.js} +5 -1
- package/dist/esm/i18n-84192695.js.br +0 -0
- package/dist/esm/i18n-84192695.js.gz +0 -0
- package/dist/esm/i18n-84192695.js.map +1 -0
- 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-common-button_27.entry.js +3 -3
- package/dist/esm-es5/grw-common-button_27.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_27.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_27.entry.js.map +1 -1
- package/dist/esm-es5/grw-information-desk_3.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js +1 -1
- package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.map +1 -1
- package/dist/esm-es5/i18n-84192695.js +2 -0
- package/dist/esm-es5/i18n-84192695.js.br +0 -0
- package/dist/esm-es5/i18n-84192695.js.gz +0 -0
- package/dist/esm-es5/i18n-84192695.js.map +1 -0
- 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/{p-989276bc.entry.js → p-2ed1025e.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js → p-3ea6b596.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js +10 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js +2 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js +2 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.map +1 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js +1 -1
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6ac9b3f1.entry.js → p-9d7b3f9a.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js +10 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-01061bf4.system.entry.js → p-f3a9a20f.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.map +1 -0
- package/dist/types/components/grw-outdoor-course-detail/grw-outdoor-course-detail.d.ts +3 -0
- package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +3 -0
- package/dist/types/components/grw-poi-detail/grw-poi.d.ts +2 -0
- package/dist/types/components/grw-touristic-content-card/grw-touristic-content-card.d.ts +2 -0
- package/dist/types/components/grw-touristic-content-detail/grw-touristic-content-detail.d.ts +2 -0
- package/dist/types/components/grw-touristic-event-card/grw-touristic-event-card.d.ts +2 -0
- package/dist/types/components/grw-touristic-event-detail/grw-touristic-event-detail.d.ts +2 -0
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +1 -0
- package/dist/types/i18n/i18n.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/i18n-2df02bcf.js.br +0 -0
- package/dist/cjs/i18n-2df02bcf.js.gz +0 -0
- package/dist/cjs/i18n-2df02bcf.js.map +0 -1
- package/dist/esm/i18n-9a7ac609.js.br +0 -0
- package/dist/esm/i18n-9a7ac609.js.gz +0 -0
- package/dist/esm/i18n-9a7ac609.js.map +0 -1
- package/dist/esm-es5/i18n-9a7ac609.js +0 -2
- package/dist/esm-es5/i18n-9a7ac609.js.br +0 -0
- package/dist/esm-es5/i18n-9a7ac609.js.gz +0 -0
- package/dist/esm-es5/i18n-9a7ac609.js.map +0 -1
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-105ea0c8.js +0 -2
- package/dist/geotrek-rando-widget/p-105ea0c8.js.br +0 -0
- package/dist/geotrek-rando-widget/p-105ea0c8.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-105ea0c8.js.map +0 -1
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js +0 -10
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-989276bc.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-989276bc.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js +0 -10
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b4942f58.system.js +0 -2
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.map +0 -1
- /package/dist/geotrek-rando-widget/{p-989276bc.entry.js.map → p-2ed1025e.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js.map → p-3ea6b596.system.entry.js.map} +0 -0
|
@@ -118,6 +118,8 @@ const defaultTranslate = {
|
|
|
118
118
|
placeholderActivities: 'Sélectionner une ou plusieurs activités',
|
|
119
119
|
placeholderDistricts: 'Sélectionner un ou plusieurs secteurs',
|
|
120
120
|
placeholderCategories: 'Sélectionner une ou plusieurs catégories',
|
|
121
|
+
onlyOfflineTreks: 'Afficher uniquement les itinéraires hors ligne',
|
|
122
|
+
onlyOfflineOutdoor: 'Afficher uniquement les outdoor hors ligne',
|
|
121
123
|
},
|
|
122
124
|
en: {
|
|
123
125
|
filter: 'Filter',
|
|
@@ -238,6 +240,8 @@ const defaultTranslate = {
|
|
|
238
240
|
placeholderActivities: 'Select one or more activities',
|
|
239
241
|
placeholderDistricts: 'Select one or more districts',
|
|
240
242
|
placeholderCategories: 'Select one or more categories',
|
|
243
|
+
onlyOfflineTreks: 'Only display offline treks',
|
|
244
|
+
onlyOfflineOutdoor: 'Only display offline outdoor',
|
|
241
245
|
},
|
|
242
246
|
};
|
|
243
247
|
let translate = Object.assign({}, defaultTranslate);
|
|
@@ -260,4 +264,4 @@ if (window.grwTranslate) {
|
|
|
260
264
|
|
|
261
265
|
export { translate as t };
|
|
262
266
|
|
|
263
|
-
//# sourceMappingURL=i18n-
|
|
267
|
+
//# sourceMappingURL=i18n-84192695.js.map
|
|
Binary file
|
|
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Ac,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,IAAK,MAAc,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,GAAI,MAAc,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,GAAG,EAAE,EAC7I,CAAC;QACF,SAAS,CAAC,EAAE,CAAC,OAAO,mCAAQ,gBAAgB,CAAC,EAAE,CAAC,OAAO,IAAO,MAAc,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,GAAI,MAAc,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,GAAG,EAAE,EAAG,CAAC;QACvJ,SAAS,CAAC,EAAE,CAAC,MAAM,mCAAQ,gBAAgB,CAAC,EAAE,CAAC,MAAM,IAAO,MAAc,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,GAAI,MAAc,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,EAAG,CAAC;KACpJ;AACH;;;;","names":[],"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 roadAccessAndParking: string;\n transport: string;\n recommendations: string;\n recommendedParking: 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 touristicEvents: string;\n outdoorSites: string;\n };\n touristicContents: string;\n touristicContent: string;\n touristicEvents: string;\n touristicEvent: string;\n outdoorSites: string;\n outdoorSite: 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 accessibility: 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 sites: string;\n courses: 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 type: string;\n placeholderType: string;\n centerOnMap: string;\n readMore: string;\n readLess: string;\n sensitiveAreasDescription: string;\n emergencyNumber: string;\n learnMore: string;\n date: string;\n startDate: string;\n endDate: string;\n outdoorSites: string;\n outdoorSite: string;\n relatedOutdoorSites: Function;\n relatedOutdoorCourses: Function;\n cardinalPoints: { n: string; ne: string; e: string; se: string; s?: string; sw: string; w: string; nw: string };\n placeholderDifficulties: string;\n placeholderDurations: string;\n placeholderLengths: string;\n placeholderElevations: string;\n placeholderRoutes: string;\n placeholderAccessibilities: string;\n placeholderActivities: string;\n placeholderDistricts: string;\n placeholderCategories: string;\n onlyOfflineTreks: string;\n onlyOfflineOutdoor: string;\n}\n\ninterface AvailableTranslations {\n fr: Translation;\n en: Translation;\n}\n\nconst defaultTranslate: 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 roadAccessAndParking: 'Accès routier et parking',\n transport: 'Transport',\n recommendations: 'Recommandations',\n recommendedParking: 'Stationnement',\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: 'Signalétique',\n accessibilityCovering: 'Revêtement',\n accessibilityExposure: 'Exposition',\n accessibilityAdvices: 'Conseils',\n pois: (poisLength: number) => (poisLength > 1 ? `Les ${poisLength} patrimoines à découvrir` : `${poisLength} patrimoine à découvrir`),\n touristicContents: (touristicContentsLength: number) => `Services à proximité (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Événements à proximité (${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 touristicEvents: 'Événements',\n outdoorSites: 'Outdoor',\n },\n touristicContents: 'Services',\n touristicContent: 'Service',\n touristicEvents: 'Événements',\n touristicEvent: 'Événement',\n outdoorSites: 'Outdoor',\n outdoorSite: 'Outdoor',\n },\n options: {\n presentation: 'Présentation',\n description: 'Description',\n recommendations: 'Recommandations',\n environmentalSensitiveAreas: 'Zones sensibles',\n informationPlaces: 'Lieux de renseignement',\n pois: 'Patrimoines',\n steps: 'Étapes',\n touristicContents: 'À proximité',\n touristicEvents: 'Événements',\n accessibility: 'Accessibilité',\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 sites: 'Sites',\n courses: 'Parcours',\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: 'Autres',\n districts: 'Secteurs',\n erase: 'EFFACER',\n ok: 'VALIDER',\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 type: 'Types',\n placeholderType: 'Sélectionner un ou plusieurs types',\n centerOnMap: 'Centrer sur la carte',\n readMore: 'Lire plus',\n readLess: 'Lire moins',\n sensitiveAreasDescription:\n 'Le long de votre itinéraire, vous allez traverser des zones de sensibilité liées à la présence d’une espèce ou d’un milieu particulier. Dans ces zones, un comportement adapté permet de contribuer à leur préservation. Pour plus d’informations détaillées, des fiches spécifiques sont accessibles pour chaque zone.',\n emergencyNumber: 'Numéro de secours',\n learnMore: 'En savoir plus',\n date: 'Date',\n startDate: 'Date de début',\n endDate: 'Date de fin',\n outdoorSites: 'Sites',\n outdoorSite: 'Site',\n relatedOutdoorSites: (relatedOutdoorSitesLength: number) => `Sites (${relatedOutdoorSitesLength})`,\n relatedOutdoorCourses: (relatedOutdoorCoursesLength: number) => `Parcours (${relatedOutdoorCoursesLength})`,\n cardinalPoints: { n: 'Nord', ne: 'Nord-est', e: 'Est', se: 'Sud-est', s: 'Sud', sw: 'Sud-ouest', w: 'Ouest', nw: 'Nord-ouest' },\n placeholderDifficulties: 'Sélectionner une ou plusieurs difficultés',\n placeholderDurations: 'Sélectionner une ou plusieurs durées',\n placeholderLengths: 'Sélectionner une ou plusieurs longueurs',\n placeholderElevations: 'Sélectionner une ou plusieurs dénivelés',\n placeholderRoutes: 'Sélectionner un ou plusieurs type de parcours',\n placeholderAccessibilities: 'Sélectionner une ou plusieurs accessibilités',\n placeholderActivities: 'Sélectionner une ou plusieurs activités',\n placeholderDistricts: 'Sélectionner un ou plusieurs secteurs',\n placeholderCategories: 'Sélectionner une ou plusieurs catégories',\n onlyOfflineTreks: 'Afficher uniquement les itinéraires hors ligne',\n onlyOfflineOutdoor: 'Afficher uniquement les outdoor hors ligne',\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 roadAccessAndParking: 'Road access and parking',\n transport: 'Transport',\n recommendations: 'Recommendations',\n recommendedParking: 'Parking',\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 > 1 ? `${poisLength} points of interest` : `${poisLength} point of interest`),\n touristicContents: (touristicContentsLength: number) => `Near services (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Near 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 touristicEvents: 'Events',\n outdoorSites: 'Outdoor',\n },\n touristicContents: 'Services',\n touristicContent: 'Service',\n touristicEvents: 'Events',\n touristicEvent: 'Event',\n outdoorSites: 'Outdoor',\n outdoorSite: 'Outdoor',\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 accessibility: 'Accessibility',\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 sites: 'sites',\n courses: 'Courses',\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: 'Others',\n districts: 'Districts',\n erase: 'ERASE',\n ok: 'VALIDATE',\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 type: 'Types',\n placeholderType: 'Select one or more types',\n centerOnMap: 'Center on map',\n readMore: 'Read more',\n readLess: 'Read less',\n sensitiveAreasDescription:\n 'Along your trek, you will go through sensitive areas related to the presence of a specific species or environment. In these areas, an appropriate behaviour allows to contribute to their preservation. For detailed information, specific forms are accessible for each area.',\n emergencyNumber: 'Emergency number',\n learnMore: 'Learn more',\n date: 'Date',\n startDate: 'Start date',\n endDate: 'End date',\n outdoorSites: 'Sites',\n outdoorSite: 'Site',\n relatedOutdoorSites: (relatedOutdoorSitesLength: number) => `Sites (${relatedOutdoorSitesLength})`,\n relatedOutdoorCourses: (relatedOutdoorCoursesLength: number) => `Courses (${relatedOutdoorCoursesLength})`,\n cardinalPoints: { n: 'North', ne: 'North-east', e: 'East', se: 'South-east', s: 'South', sw: 'South-west', w: 'West', nw: 'North-west' },\n placeholderDifficulties: 'Select one or more difficulties',\n placeholderDurations: 'Select one or more durations',\n placeholderLengths: 'Select one or more lengths',\n placeholderElevations: 'Select one or more elevations',\n placeholderRoutes: 'Select one or more courses',\n placeholderAccessibilities: 'Select one or more accssibilities',\n placeholderActivities: 'Select one or more activities',\n placeholderDistricts: 'Select one or more districts',\n placeholderCategories: 'Select one or more categories',\n onlyOfflineTreks: 'Only display offline treks',\n onlyOfflineOutdoor: 'Only display offline outdoor',\n },\n};\n\nlet translate: AvailableTranslations = { ...defaultTranslate };\n\nif ((window as any).grwTranslate) {\n if ((window as any).grwTranslate.fr) {\n translate.fr = { ...defaultTranslate.fr, ...(window as any).grwTranslate.fr };\n translate.fr.home = { ...defaultTranslate.fr.home, ...((window as any).grwTranslate.fr.home ? (window as any).grwTranslate.fr.home : {}) };\n translate.fr.home.segment = {\n ...defaultTranslate.fr.home.segment,\n ...((window as any).grwTranslate.fr.home && (window as any).grwTranslate.fr.home.segment ? (window as any).grwTranslate.fr.home.segment : {}),\n };\n translate.fr.options = { ...defaultTranslate.fr.options, ...((window as any).grwTranslate.fr.options ? (window as any).grwTranslate.fr.options : {}) };\n translate.fr.layers = { ...defaultTranslate.fr.layers, ...((window as any).grwTranslate.fr.layers ? (window as any).grwTranslate.fr.layers : {}) };\n }\n\n if ((window as any).grwTranslate.en) {\n translate.en = { ...defaultTranslate.en, ...(window as any).grwTranslate.en };\n translate.en.home = { ...defaultTranslate.en.home, ...((window as any).grwTranslate.en.home ? (window as any).grwTranslate.en.home : {}) };\n translate.en.home.segment = {\n ...defaultTranslate.en.home.segment,\n ...((window as any).grwTranslate.en.home && (window as any).grwTranslate.en.home.segment ? (window as any).grwTranslate.en.home.segment : {}),\n };\n translate.en.options = { ...defaultTranslate.en.options, ...((window as any).grwTranslate.en.options ? (window as any).grwTranslate.en.options : {}) };\n translate.en.layers = { ...defaultTranslate.en.layers, ...((window as any).grwTranslate.en.layers ? (window as any).grwTranslate.en.layers : {}) };\n }\n}\n\nexport { translate };\n"],"version":3}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-43403c4f.js";import{s as state,C as Capacitor,r as revokeObjectURL,a as reset,h as handleTreksFiltersAndSearch,b as handleOutdoorSitesFiltersAndSearch,i as imagesRegExp}from"./utils-b50c4f28.js";import{t as translate}from"./i18n-9a7ac609.js";var ArrowBackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/></svg>';var grwAppCss="grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);overflow:hidden;max-width:100dvw;max-height:100dvh}.grw-app-container{position:relative;background-color:var(--color-background);width:100%;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.grw-languages-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;margin:16px 16px 0px 0px}.grw-header-container,.grw-large-view-header-container{height:var(--header-height)}.grw-header-container .grw-arrow-back-container,.grw-large-view-header-container .grw-arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.grw-header-container .grw-arrow-back-container .grw-arrow-back-icon,.grw-large-view-header-container .grw-arrow-back-container .grw-arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:var(--border-radius, 50%);height:48px;width:48px;padding:0px;text-align:left}.grw-handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.grw-handle-search-filters-container .grw-handle-search-container{width:calc(50% + 48px);max-width:220px}.grw-handle-search-filters-container .grw-handle-filters-container{margin-left:16px}.grw-header-detail{min-height:64px;height:64px}.grw-large-view-header-container .grw-handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.grw-init-loader-container,.grw-loader-container,.grw-large-view-loader-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.grw-content-container{position:relative;display:-ms-flexbox;display:flex}.grw-content-treks{height:calc(100% - var(--header-height) - var(--header-with-languages))}.grw-content-trek{height:100%}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:100%;height:100%}.grw-app-map-container,.grw-large-view-app-map-container{width:100%;height:100%}.grw-map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.grw-init-loader-container,.grw-loader-container{width:100%}.grw-app-list-container,.grw-app-trek-detail-container,.grw-app-touristic-content-detail-container,.grw-app-touristic-event-detail-container,.grw-app-outdoor-site-detail-container,.grw-app-outdoor-course-detail-container{width:100%}grw-treks-list,grw-touristic-contents-list,grw-touristic-events-list,grw-outdoor-sites-list{max-height:calc(100vh - var(--header-height))}grw-trek-detail{position:relative;max-height:calc(100vh - 64px - 48px)}grw-touristic-content-detail,grw-touristic-event-detail,grw-outdoor-site-detail{position:relative;max-height:calc(100vh - 64px)}.grw-app-map-container{width:100%;position:absolute}.grw-large-view-loader-container{position:relative;width:50%}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{width:50%}.grw-large-view-app-map-container{position:relative;width:50%}.grw-error-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%;margin-top:16px;font-family:var(--font-family);font-size:16px}.grw-error-container grw-common-button{margin-top:16px}.modal-container{z-index:40000;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:-64px;left:0px;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;margin-right:16px}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}.grw-offline-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 0px 0px 16px;height:48px}.grw-offline-container .grw-offline-label{display:-ms-flexbox;display:flex}.grw-offline-container grw-switch{margin-top:-10px}";var GrwAppStyle0=grwAppCss;var GrwApp=function(){function t(t){registerInstance(this,t);this.downloadPress=createEvent(this,"downloadPress",7);this.deletePress=createEvent(this,"deletePress",7);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTouristicContent=false;this.showTouristicEvent=false;this.showOutdoorSite=false;this.showOutdoorCourse=false;this.showOutdoorSiteMap=false;this.showOutdoorCourseMap=false;this.showHomeMap=false;this.showTrekMap=false;this.showTouristicContentMap=false;this.showTouristicEventMap=false;this.showFilters=false;this.isLargeView=false;this.currentTrekId=undefined;this.currentTouristicContentId=undefined;this.currentTouristicEventId=undefined;this.currentOutdoorSiteId=undefined;this.currentOutdoorCourseId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.weather=false;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6750a4";this.colorPrimary="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.rounded=true;this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.useGradient=false;this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}t.prototype.onTrekCardPress=function(t){this.currentTouristicContentId=null;this.showTouristicContent=false;state.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;state.currentTouristicEvent=null;var i=state.parentTrekId?state.parentTrekId:state.currentTrekSteps?this.currentTrekId:null;state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());if(state.currentTrekSteps){e.searchParams.set("parenttrek",i.toString())}window.history.pushState({},"",e)};t.prototype.onParentTrekPress=function(t){state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());i.searchParams.delete("parenttrek");window.history.pushState({},"",i)};t.prototype.onTouristicContentCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;state.mode="touristicContents";this.showTouristicContent=true;this.showTouristicContentMap=false;var i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",i)};t.prototype.onTouristiceEventCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;state.mode="touristicEvents";this.showTouristicEvent=true;this.showTouristicEventMap=false;var i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",i)};t.prototype.onOutdoorSiteCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=t.detail;this.showOutdoorSite=true;this.showOutdoorSiteMap=false;var i=new URL(window.location.toString());i.searchParams.set("outdoorsite",this.currentOutdoorSiteId.toString());window.history.pushState({},"",i)};t.prototype.onOutdoorCourseCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentOutdoorCourse=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=null;this.currentOutdoorCourseId=t.detail;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;this.showOutdoorCourse=true;this.showOutdoorSiteMap=false;var i=new URL(window.location.toString());i.searchParams.delete("outdoorsite");i.searchParams.set("outdoorcourse",this.currentOutdoorCourseId.toString());window.history.pushState({},"",i)};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};t.prototype.onDownloadConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;this.showOfflineModal=true;this.showConfirmModal=true};t.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};t.prototype.onDeleteConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true};t.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};t.prototype.componentWillLoad=function(){if(this.treks){state.mode="treks"}else if(this.touristicContents){state.mode="touristicContents"}else if(this.touristicEvents){state.mode="touristicEvents"}else if(this.outdoor){state.mode="outdoor"}var t=new URL(window.location.toString());var i=t.searchParams.get("trek");var e=t.searchParams.get("parenttrek");var s=t.searchParams.get("touristiccontent");var r=t.searchParams.get("touristicevent");var a=t.searchParams.get("outdoorsite");var o=t.searchParams.get("outdoorcourse");if(i){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);state.parentTrekId=e?Number(e):null;this.currentTrekId=Number(i);state.mode="treks";this.showTrek=true}else if(s){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(s);state.mode="touristicContents";this.showTouristicContent=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(r);state.mode="touristicEvents";this.showTouristicEvent=true}else if(a){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorSiteId=Number(a);state.mode="outdoor";this.showOutdoorSite=true}else if(o){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorCourseId=Number(o);state.mode="outdoor";this.showOutdoorCourse=true}};t.prototype.componentDidLoad=function(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};t.prototype.onDetailsClose=function(){if(state.mode==="treks"){this.showTrek=false;this.showTrekMap=false;state.currentTrek=null;state.currentTrekSteps=null;state.parentTrekId=null;this.currentTrekId=null}else if(state.mode==="touristicContents"){state.currentTouristicContent=null;this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false}else if(state.mode==="touristicEvents"){state.currentTouristicEvent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;this.showTouristicEventMap=false}else if(state.mode==="outdoor"){state.currentOutdoorSite=null;this.currentOutdoorSiteId=null;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;state.currentOutdoorCourse=null;this.currentOutdoorCourseId=null;this.showOutdoorCourse=false;this.showOutdoorCourseMap=false}};t.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView};t.prototype.handleFilters=function(){this.showFilters=!this.showFilters};t.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){if(state.currentTrek&&state.currentTrek.offline&&!Capacitor.isNativePlatform()){revokeObjectURL(state.currentPois,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicEvents,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicContents,imagesRegExp,["url"]);revokeObjectURL(state.currentInformationDesks,imagesRegExp);revokeObjectURL(state.currentTrek,imagesRegExp,["url"])}this.onDetailsClose();var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");t.searchParams.delete("outdoorsite");t.searchParams.delete("outdoorcourse");window.history.pushState({},"",t)}else{window.history.back()}};t.prototype.handlePopState=function(){var t=new URL(window.location.toString());var i=Number(t.searchParams.get("trek"));var e=t.searchParams.get("touristiccontent");var s=t.searchParams.get("touristicevent");var r=Number(t.searchParams.get("outdoorsite"));if(i&&this.currentTrekId!==i){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;state.currentTouristicContent=null;state.currentTouristicEvent=null;state.currentTrek=null;this.currentTrekId=i;state.mode="treks";this.showTrek=true}else if(r&&this.currentOutdoorSiteId!==r){this.currentOutdoorSiteId=r;state.currentOutdoorSite=null;this.showOutdoorCourse=false;this.showOutdoorSite=true}else if(!i&&!e&&!s&&!r){this.onDetailsClose()}};t.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else if(this.showTouristicContent){this.showTouristicContentMap=!this.showTouristicContentMap}else if(this.showTouristicEvent){this.showTouristicEventMap=!this.showTouristicEventMap}else if(this.showOutdoorSite){this.showOutdoorSiteMap=!this.showOutdoorSiteMap}else{this.showHomeMap=!this.showHomeMap}};t.prototype.getMapVisibilityIconButton=function(){var t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap||this.showOutdoorCourseMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t};t.prototype.getMapVisibilityLabelButton=function(){var t;if(state.language){if(this.showTrek){t=this.showTrekMap?translate[state.language].showDetails:translate[state.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap?translate[state.language].showDetails:translate[state.language].showMap}else{t=this.showHomeMap?translate[state.language].showList:translate[state.language].showMap}}return t};t.prototype.reload=function(){window.location.reload()};t.prototype.disconnectedCallback=function(){reset();window.removeEventListener("popstate",this.handlePopStateBind)};t.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};t.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};t.prototype.handleCancelModal=function(){this.showOfflineModal=false};t.prototype.handleOffline=function(){if(state.mode==="treks"){state.offlineTreks=!state.offlineTreks;state.currentTreks=handleTreksFiltersAndSearch()}else{state.offlineOutdoorSites=!state.offlineOutdoorSites;state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.getFiltersName=function(){var t=state.selectedActivitiesFilters+state.selectedLocationFilters+state.selectedThemesFilters;return"".concat(translate[state.language].filter).concat(t>0?" ("+t+")":"")};t.prototype.render=function(){var t=this;return h(Host,{key:"169886b406f2fd83aa73881a201985fd1e276ebc",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-primary":this.colorPrimary,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--color-sensitive-area":this.colorSensitiveArea,"--app-width":this.appWidth,"--app-height":this.appHeight,"--header-height":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1?this.enableOffline?"188px":"136px":this.enableOffline?"116px":"64px","--header-with-languages":this.languages.split(",").length>1?"38px":"0px","--border-radius":this.rounded?"":"0px"}},!state.currentTreks&&!state.currentTrek&&!state.currentTouristicContent&&!state.currentTouristicEvent&&!state.currentTouristicContents&&!state.currentTouristicEvents&&!state.currentOutdoorSites&&!state.currentOutdoorSite&&!state.currentOutdoorCourses&&!state.currentOutdoorCourse&&h("div",{class:"grw-init-loader-container"},h("grw-loader",{exportparts:"loader","color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&state.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.currentTreks&&h("grw-treks-provider",{api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels}),this.showTrek&&this.currentTrekId&&!state.currentTrek&&h("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels}),this.showTouristicContent&&this.currentTouristicContentId&&h("grw-touristic-content-provider",{api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&h("grw-touristic-event-provider",{api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.showOutdoorSite&&this.currentOutdoorSiteId&&!state.currentOutdoorSite&&h("grw-outdoor-site-provider",{api:this.api,languages:this.languages,"outdoor-site-id":this.currentOutdoorSiteId,portals:this.portals}),this.showOutdoorCourse&&this.currentOutdoorCourseId&&!state.currentOutdoorCourse&&h("grw-outdoor-course-provider",{api:this.api,languages:this.languages,"outdoor-course-id":this.currentOutdoorCourseId,portals:this.portals}),this.touristicContents&&state.mode==="touristicContents"&&!state.currentTouristicContents&&!this.showTouristicContent&&h("grw-touristic-contents-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.touristicEvents&&state.mode==="touristicEvents"&&!state.currentTouristicEvents&&!this.showTouristicEvent&&h("grw-touristic-events-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.outdoor&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.outdoorSites&&h("grw-outdoor-sites-provider",{api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes}),(state.currentTreks||state.currentTrek||state.touristicContents||state.touristicEvents||state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSites||state.currentOutdoorSite||state.currentOutdoorCourses||state.currentOutdoorCourse||state.networkError)&&h("div",{class:"grw-app-container"},state.languages&&state.languages.length>1&&h("div",{class:"grw-languages-container"},h("grw-select-language",null)),h("div",{class:"".concat(this.isLargeView?"grw-large-view-header-container":"grw-header-container").concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?" grw-header-detail":"")},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse&&h("grw-segmented-segment",{"font-family":this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents,outdoor:this.outdoor}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse?h(Fragment,null,h("div",{class:"grw-handle-search-filters-container"},h("div",{class:"grw-handle-search-container"},h("grw-search",{"font-family":this.fontFamily})),h("div",{class:"grw-handle-filters-container"},h("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleFilters()},icon:"filter_list",name:this.getFiltersName()}))),this.enableOffline&&h("div",{part:"grw-offline-container",class:"grw-offline-container"},h("div",{class:"grw-offline-label"},state.mode==="treks"?"Afficher uniquement les itinéraires hors ligne":"Afficher uniquement les outdoor hors ligne"),h("grw-switch",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleOffline()},checked:state.mode==="treks"?state.offlineTreks:state.offlineOutdoorSites}))):h("div",{class:"grw-arrow-back-container"},h("button",{onClick:function(){return t.handleBackButton()},class:"grw-arrow-back-icon"},h("span",{part:"icon",class:"icon",innerHTML:ArrowBackIcon})))),h("div",{class:"grw-content-container ".concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"grw-content-trek":"grw-content-treks")},state.networkError&&h("div",{class:"grw-error-container"},"Une erreur est survenue.",h("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label",icon:"refresh",name:"Recharger la page",action:function(){return t.reload()}})),(state.mode==="treks"&&this.treks||state.mode==="touristicContents"&&this.touristicContents||state.mode==="touristicEvents"&&this.touristicEvents||state.mode==="outdoor"&&this.outdoor)&&h("div",{class:this.isLargeView?"grw-large-view-app-list-container":"grw-app-list-container",style:{display:this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"none":"flex",position:this.showTrek?"absolute":"relative"}},state.mode==="treks"&&this.treks&&state.treks&&h("grw-treks-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="touristicContents"&&this.touristicContents&&state.touristicContents&&h("grw-touristic-contents-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="touristicEvents"&&this.touristicEvents&&state.touristicEvents&&h("grw-touristic-events-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="outdoor"&&this.outdoor&&state.outdoorSites&&h("grw-outdoor-sites-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),(this.showTrek&&!state.currentTrek||this.showTouristicContent&&!state.currentTouristicContent||this.showTouristicEvent&&!state.currentTouristicEvent||this.showOutdoorSite&&!state.currentOutdoorSite||this.showOutdoorCourse&&!state.currentOutdoorCourse||!state.treks&&state.mode==="treks"&&!this.showTrek||!state.touristicContents&&state.mode==="touristicContents"&&!this.showTouristicContent||!state.touristicEvents&&state.mode==="touristicEvents"&&!this.showTouristicEvent||!state.outdoorSites&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse)&&h("div",{class:this.isLargeView?"grw-large-view-loader-container":"grw-loader-container"},h("grw-loader",{exportparts:"loader","color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),this.showTrek&&state.currentTrek&&h("div",{class:this.isLargeView?"grw-large-view-app-trek-detail-container":"grw-app-trek-detail-container"},h("grw-trek-detail",{style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView,"emergency-number":this.emergencyNumber,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,i){return i===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline,"global-tiles-min-zoom-offline":this.globalTilesMinZoomOffline,"global-tiles-max-zoom-offline":this.globalTilesMaxZoomOffline,"tiles-min-zoom-offline":this.tilesMinZoomOffline,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true}),this.showOfflineModal&&h("div",{class:"modal-container"},h("div",{class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"".concat(this.showTrek?"Êtes-vous sûr de vouloir rendre cet itinéraire disponible hors ligne ?":this.showOutdoorSite?"Êtes-vous sûr de vouloir rendre cet outdoor disponible hors ligne ?":"")),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},"OK"))),this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"Êtes-vous sûr de vouloir supprimer cet itinéraire du hors ligne ?"),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},"OK"))),this.showLoaderModal&&h(Fragment,null,h("div",{class:"modal-message-container"},h("div",{class:"modal-loader"}),this.showDeletingMessage?"Suppression en cours":"Téléchargement en cours")),this.showSuccessModal&&h(Fragment,null,h("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?"L'itinéraire est supprimé du hors ligne":"L'itinéraire est disponible hors ligne"),h("div",{class:"modal-button-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"OK")))))),this.showTouristicContent&&state.currentTouristicContent&&h("div",{class:this.isLargeView?"grw-large-view-app-touristic-content-detail-container":"grw-app-touristic-content-detail-container"},h("grw-touristic-content-detail",{style:{visibility:!this.showTouristicContentMap&&this.showTouristicContent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicContentMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),this.showTouristicEvent&&state.currentTouristicEvent&&h("div",{class:this.isLargeView?"grw-large-view-app-touristic-event-detail-container":"grw-app-touristic-event-detail-container"},h("grw-touristic-event-detail",{style:{visibility:!this.showTouristicEventMap&&this.showTouristicEvent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicEventMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),this.showOutdoorSite&&state.currentOutdoorSite&&h("div",{class:this.isLargeView?"grw-large-view-app-outdoor-site-detail-container":"grw-app-outdoor-site-detail-container"},h("grw-outdoor-site-detail",{style:{visibility:!this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorSiteMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,weather:this.weather,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,i){return i===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline}),this.showOfflineModal&&h("div",{class:"modal-container"},h("div",{class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"".concat(this.showTrek?"Êtes-vous sûr de vouloir rendre cet itinéraire disponible hors ligne ?":this.showOutdoorSite?"Êtes-vous sûr de vouloir rendre cet outdoor disponible hors ligne ?":"")),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},"OK"))),this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"Êtes-vous sûr de vouloir supprimer cet itinéraire du hors ligne ?"),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},"OK"))),this.showLoaderModal&&h(Fragment,null,h("div",{class:"modal-message-container"},h("div",{class:"modal-loader"}),this.showDeletingMessage?"Suppression en cours":"Téléchargement en cours")),this.showSuccessModal&&h(Fragment,null,h("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?"L'itinéraire est supprimé du hors ligne":"L'itinéraire est disponible hors ligne"),h("div",{class:"modal-button-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"OK")))))),this.showOutdoorCourse&&state.currentOutdoorCourse&&h("div",{class:this.isLargeView?"grw-large-view-app-outdoor-course-detail-container":"grw-app-outdoor-course-detail-container"},h("grw-outdoor-course-detail",{style:{visibility:!this.showOutdoorCourseMap&&this.showOutdoorCourse||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorCourseMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),!state.networkError&&h("grw-map",{exportparts:"map,elevation,map-bottom-space,map-loader-container,loader",class:this.isLargeView?"grw-large-view-app-map-container":"grw-app-map-container",style:{visibility:this.showHomeMap&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrekMap&&this.showTrek||this.showTouristicContentMap&&this.showTouristicContent||this.showTouristicEventMap&&this.showTouristicEvent||this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:this.showHomeMap||this.showTrekMap||this.showTouristicContentMap||this.showTouristicEventMap||this.showOutdoorSiteMap?"1":"0"},"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-background":this.colorBackground,"color-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"is-large-view":this.isLargeView,"use-gradient":this.useGradient,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true})),(!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrek&&state.currentTrek||this.showTouristicContent&&state.currentTouristicContent||this.showTouristicEvent&&state.currentTouristicEvent||this.showOutdoorSite&&state.currentOutdoorSite)&&h("div",{class:"grw-map-visibility-button-container"},h("grw-extended-fab",{exportparts:"map-visibility-button,map-visibility-button-icon,map-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleShowMap()},icon:function(){return t.getMapVisibilityIconButton()},name:function(){return t.getMapVisibilityLabelButton()},display:this.isLargeView?"none":"flex"}))),!this.showTrek&&this.showFilters&&h("grw-filters",{"font-family":this.fontFamily,handleFilters:function(){return t.handleFilters()}}))};Object.defineProperty(t.prototype,"appElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return t}();GrwApp.style=GrwAppStyle0;export{GrwApp as grw_app};
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-43403c4f.js";import{s as state,C as Capacitor,r as revokeObjectURL,a as reset,h as handleTreksFiltersAndSearch,b as handleOutdoorSitesFiltersAndSearch,i as imagesRegExp}from"./utils-b50c4f28.js";import{t as translate}from"./i18n-84192695.js";var ArrowBackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/></svg>';var grwAppCss="grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);overflow:hidden;max-width:100dvw;max-height:100dvh}.grw-app-container{position:relative;background-color:var(--color-background);width:100%;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.grw-languages-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;margin:16px 16px 0px 0px}.grw-header-container,.grw-large-view-header-container{height:var(--header-height)}.grw-header-container .grw-arrow-back-container,.grw-large-view-header-container .grw-arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.grw-header-container .grw-arrow-back-container .grw-arrow-back-icon,.grw-large-view-header-container .grw-arrow-back-container .grw-arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:var(--border-radius, 50%);height:48px;width:48px;padding:0px;text-align:left}.grw-handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.grw-handle-search-filters-container .grw-handle-search-container{width:calc(50% + 48px);max-width:220px}.grw-handle-search-filters-container .grw-handle-filters-container{margin-left:16px}.grw-header-detail{min-height:64px;height:64px}.grw-large-view-header-container .grw-handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.grw-init-loader-container,.grw-loader-container,.grw-large-view-loader-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.grw-content-container{position:relative;display:-ms-flexbox;display:flex}.grw-content-treks{height:calc(100% - var(--header-height) - var(--header-with-languages))}.grw-content-trek{height:100%}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:100%;height:100%}.grw-app-map-container,.grw-large-view-app-map-container{width:100%;height:100%}.grw-map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.grw-init-loader-container,.grw-loader-container{width:100%}.grw-app-list-container,.grw-app-trek-detail-container,.grw-app-touristic-content-detail-container,.grw-app-touristic-event-detail-container,.grw-app-outdoor-site-detail-container,.grw-app-outdoor-course-detail-container{width:100%}grw-treks-list,grw-touristic-contents-list,grw-touristic-events-list,grw-outdoor-sites-list{max-height:calc(100vh - var(--header-height))}grw-trek-detail{position:relative;max-height:calc(100vh - 64px - 48px)}grw-touristic-content-detail,grw-touristic-event-detail,grw-outdoor-site-detail{position:relative;max-height:calc(100vh - 64px)}.grw-app-map-container{width:100%;position:absolute}.grw-large-view-loader-container{position:relative;width:50%}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{width:50%}.grw-large-view-app-map-container{position:relative;width:50%}.grw-error-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%;margin-top:16px;font-family:var(--font-family);font-size:16px}.grw-error-container grw-common-button{margin-top:16px}.modal-container{z-index:40000;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:-64px;left:0px;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;margin-right:16px}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}.grw-offline-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 0px 0px 16px;height:48px}.grw-offline-container .grw-offline-label{display:-ms-flexbox;display:flex}.grw-offline-container grw-switch{margin-top:-10px}";var GrwAppStyle0=grwAppCss;var GrwApp=function(){function t(t){registerInstance(this,t);this.downloadPress=createEvent(this,"downloadPress",7);this.deletePress=createEvent(this,"deletePress",7);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTouristicContent=false;this.showTouristicEvent=false;this.showOutdoorSite=false;this.showOutdoorCourse=false;this.showOutdoorSiteMap=false;this.showOutdoorCourseMap=false;this.showHomeMap=false;this.showTrekMap=false;this.showTouristicContentMap=false;this.showTouristicEventMap=false;this.showFilters=false;this.isLargeView=false;this.currentTrekId=undefined;this.currentTouristicContentId=undefined;this.currentTouristicEventId=undefined;this.currentOutdoorSiteId=undefined;this.currentOutdoorCourseId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.weather=false;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6750a4";this.colorPrimary="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.rounded=true;this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.useGradient=false;this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}t.prototype.onTrekCardPress=function(t){this.currentTouristicContentId=null;this.showTouristicContent=false;state.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;state.currentTouristicEvent=null;var i=state.parentTrekId?state.parentTrekId:state.currentTrekSteps?this.currentTrekId:null;state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());if(state.currentTrekSteps){e.searchParams.set("parenttrek",i.toString())}window.history.pushState({},"",e)};t.prototype.onParentTrekPress=function(t){state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());i.searchParams.delete("parenttrek");window.history.pushState({},"",i)};t.prototype.onTouristicContentCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;state.mode="touristicContents";this.showTouristicContent=true;this.showTouristicContentMap=false;var i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",i)};t.prototype.onTouristiceEventCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;state.mode="touristicEvents";this.showTouristicEvent=true;this.showTouristicEventMap=false;var i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",i)};t.prototype.onOutdoorSiteCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=t.detail;this.showOutdoorSite=true;this.showOutdoorSiteMap=false;var i=new URL(window.location.toString());i.searchParams.set("outdoorsite",this.currentOutdoorSiteId.toString());window.history.pushState({},"",i)};t.prototype.onOutdoorCourseCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentOutdoorCourse=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=null;this.currentOutdoorCourseId=t.detail;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;this.showOutdoorCourse=true;this.showOutdoorSiteMap=false;var i=new URL(window.location.toString());i.searchParams.delete("outdoorsite");i.searchParams.set("outdoorcourse",this.currentOutdoorCourseId.toString());window.history.pushState({},"",i)};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};t.prototype.onDownloadConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;this.showOfflineModal=true;this.showConfirmModal=true};t.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};t.prototype.onDeleteConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true};t.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};t.prototype.componentWillLoad=function(){if(this.treks){state.mode="treks"}else if(this.touristicContents){state.mode="touristicContents"}else if(this.touristicEvents){state.mode="touristicEvents"}else if(this.outdoor){state.mode="outdoor"}var t=new URL(window.location.toString());var i=t.searchParams.get("trek");var e=t.searchParams.get("parenttrek");var s=t.searchParams.get("touristiccontent");var r=t.searchParams.get("touristicevent");var a=t.searchParams.get("outdoorsite");var o=t.searchParams.get("outdoorcourse");if(i){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);state.parentTrekId=e?Number(e):null;this.currentTrekId=Number(i);state.mode="treks";this.showTrek=true}else if(s){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(s);state.mode="touristicContents";this.showTouristicContent=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(r);state.mode="touristicEvents";this.showTouristicEvent=true}else if(a){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorSiteId=Number(a);state.mode="outdoor";this.showOutdoorSite=true}else if(o){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorCourseId=Number(o);state.mode="outdoor";this.showOutdoorCourse=true}};t.prototype.componentDidLoad=function(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};t.prototype.onDetailsClose=function(){if(state.mode==="treks"){this.showTrek=false;this.showTrekMap=false;state.currentTrek=null;state.currentTrekSteps=null;state.parentTrekId=null;this.currentTrekId=null}else if(state.mode==="touristicContents"){state.currentTouristicContent=null;this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false}else if(state.mode==="touristicEvents"){state.currentTouristicEvent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;this.showTouristicEventMap=false}else if(state.mode==="outdoor"){state.currentOutdoorSite=null;this.currentOutdoorSiteId=null;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;state.currentOutdoorCourse=null;this.currentOutdoorCourseId=null;this.showOutdoorCourse=false;this.showOutdoorCourseMap=false}};t.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView};t.prototype.handleFilters=function(){this.showFilters=!this.showFilters};t.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){if(state.currentTrek&&state.currentTrek.offline&&!Capacitor.isNativePlatform()){revokeObjectURL(state.currentPois,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicEvents,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicContents,imagesRegExp,["url"]);revokeObjectURL(state.currentInformationDesks,imagesRegExp);revokeObjectURL(state.currentTrek,imagesRegExp,["url"])}this.onDetailsClose();var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");t.searchParams.delete("outdoorsite");t.searchParams.delete("outdoorcourse");window.history.pushState({},"",t)}else{window.history.back()}};t.prototype.handlePopState=function(){var t=new URL(window.location.toString());var i=Number(t.searchParams.get("trek"));var e=t.searchParams.get("touristiccontent");var s=t.searchParams.get("touristicevent");var r=Number(t.searchParams.get("outdoorsite"));if(i&&this.currentTrekId!==i){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;state.currentTouristicContent=null;state.currentTouristicEvent=null;state.currentTrek=null;this.currentTrekId=i;state.mode="treks";this.showTrek=true}else if(r&&this.currentOutdoorSiteId!==r){this.currentOutdoorSiteId=r;state.currentOutdoorSite=null;this.showOutdoorCourse=false;this.showOutdoorSite=true}else if(!i&&!e&&!s&&!r){this.onDetailsClose()}};t.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else if(this.showTouristicContent){this.showTouristicContentMap=!this.showTouristicContentMap}else if(this.showTouristicEvent){this.showTouristicEventMap=!this.showTouristicEventMap}else if(this.showOutdoorSite){this.showOutdoorSiteMap=!this.showOutdoorSiteMap}else{this.showHomeMap=!this.showHomeMap}};t.prototype.getMapVisibilityIconButton=function(){var t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap||this.showOutdoorCourseMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t};t.prototype.getMapVisibilityLabelButton=function(){var t;if(state.language){if(this.showTrek){t=this.showTrekMap?translate[state.language].showDetails:translate[state.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap?translate[state.language].showDetails:translate[state.language].showMap}else{t=this.showHomeMap?translate[state.language].showList:translate[state.language].showMap}}return t};t.prototype.reload=function(){window.location.reload()};t.prototype.disconnectedCallback=function(){reset();window.removeEventListener("popstate",this.handlePopStateBind)};t.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};t.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};t.prototype.handleCancelModal=function(){this.showOfflineModal=false};t.prototype.handleOffline=function(){if(state.mode==="treks"){state.offlineTreks=!state.offlineTreks;state.currentTreks=handleTreksFiltersAndSearch()}else{state.offlineOutdoorSites=!state.offlineOutdoorSites;state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.getFiltersName=function(){var t=state.selectedActivitiesFilters+state.selectedLocationFilters+state.selectedThemesFilters;return"".concat(translate[state.language].filter).concat(t>0?" ("+t+")":"")};t.prototype.render=function(){var t=this;return h(Host,{key:"169886b406f2fd83aa73881a201985fd1e276ebc",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-primary":this.colorPrimary,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--color-sensitive-area":this.colorSensitiveArea,"--app-width":this.appWidth,"--app-height":this.appHeight,"--header-height":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1?this.enableOffline?"188px":"136px":this.enableOffline?"116px":"64px","--header-with-languages":this.languages.split(",").length>1?"38px":"0px","--border-radius":this.rounded?"":"0px"}},!state.currentTreks&&!state.currentTrek&&!state.currentTouristicContent&&!state.currentTouristicEvent&&!state.currentTouristicContents&&!state.currentTouristicEvents&&!state.currentOutdoorSites&&!state.currentOutdoorSite&&!state.currentOutdoorCourses&&!state.currentOutdoorCourse&&h("div",{class:"grw-init-loader-container"},h("grw-loader",{exportparts:"loader","color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&state.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.currentTreks&&h("grw-treks-provider",{api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels}),this.showTrek&&this.currentTrekId&&!state.currentTrek&&h("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels}),this.showTouristicContent&&this.currentTouristicContentId&&h("grw-touristic-content-provider",{api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&h("grw-touristic-event-provider",{api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.showOutdoorSite&&this.currentOutdoorSiteId&&!state.currentOutdoorSite&&h("grw-outdoor-site-provider",{api:this.api,languages:this.languages,"outdoor-site-id":this.currentOutdoorSiteId,portals:this.portals}),this.showOutdoorCourse&&this.currentOutdoorCourseId&&!state.currentOutdoorCourse&&h("grw-outdoor-course-provider",{api:this.api,languages:this.languages,"outdoor-course-id":this.currentOutdoorCourseId,portals:this.portals}),this.touristicContents&&state.mode==="touristicContents"&&!state.currentTouristicContents&&!this.showTouristicContent&&h("grw-touristic-contents-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.touristicEvents&&state.mode==="touristicEvents"&&!state.currentTouristicEvents&&!this.showTouristicEvent&&h("grw-touristic-events-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.outdoor&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.outdoorSites&&h("grw-outdoor-sites-provider",{api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes}),(state.currentTreks||state.currentTrek||state.touristicContents||state.touristicEvents||state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSites||state.currentOutdoorSite||state.currentOutdoorCourses||state.currentOutdoorCourse||state.networkError)&&h("div",{class:"grw-app-container"},state.languages&&state.languages.length>1&&h("div",{class:"grw-languages-container"},h("grw-select-language",null)),h("div",{class:"".concat(this.isLargeView?"grw-large-view-header-container":"grw-header-container").concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?" grw-header-detail":"")},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse&&h("grw-segmented-segment",{"font-family":this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents,outdoor:this.outdoor}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse?h(Fragment,null,h("div",{class:"grw-handle-search-filters-container"},h("div",{class:"grw-handle-search-container"},h("grw-search",{"font-family":this.fontFamily})),h("div",{class:"grw-handle-filters-container"},h("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleFilters()},icon:"filter_list",name:this.getFiltersName()}))),this.enableOffline&&(state.mode==="treks"||state.mode==="outdoor")&&h("div",{part:"grw-offline-container",class:"grw-offline-container"},h("div",{class:"grw-offline-label"},state.mode==="treks"?translate[state.language].onlyOfflineTreks:translate[state.language].onlyOfflineOutdoor),h("grw-switch",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleOffline()},checked:state.mode==="treks"?state.offlineTreks:state.offlineOutdoorSites}))):h("div",{class:"grw-arrow-back-container"},h("button",{onClick:function(){return t.handleBackButton()},class:"grw-arrow-back-icon"},h("span",{part:"icon",class:"icon",innerHTML:ArrowBackIcon})))),h("div",{class:"grw-content-container ".concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"grw-content-trek":"grw-content-treks")},state.networkError&&h("div",{class:"grw-error-container"},"Une erreur est survenue.",h("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label",icon:"refresh",name:"Recharger la page",action:function(){return t.reload()}})),(state.mode==="treks"&&this.treks&&state.treks||state.mode==="touristicContents"&&this.touristicContents&&state.touristicContents||state.mode==="touristicEvents"&&this.touristicEvents&&state.touristicEvents||state.mode==="outdoor"&&this.outdoor&&state.outdoorSites)&&h("div",{class:this.isLargeView?"grw-large-view-app-list-container":"grw-app-list-container",style:{display:this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"none":"flex",position:this.showTrek?"absolute":"relative"}},state.mode==="treks"&&this.treks&&state.treks&&h("grw-treks-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="touristicContents"&&this.touristicContents&&state.touristicContents&&h("grw-touristic-contents-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="touristicEvents"&&this.touristicEvents&&state.touristicEvents&&h("grw-touristic-events-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="outdoor"&&this.outdoor&&state.outdoorSites&&h("grw-outdoor-sites-list",{"is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),(this.showTrek&&!state.currentTrek||this.showTouristicContent&&!state.currentTouristicContent||this.showTouristicEvent&&!state.currentTouristicEvent||this.showOutdoorSite&&!state.currentOutdoorSite||this.showOutdoorCourse&&!state.currentOutdoorCourse||!state.treks&&state.mode==="treks"&&!this.showTrek||!state.touristicContents&&state.mode==="touristicContents"&&!this.showTouristicContent||!state.touristicEvents&&state.mode==="touristicEvents"&&!this.showTouristicEvent||!state.outdoorSites&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse)&&h("div",{class:this.isLargeView?"grw-large-view-loader-container":"grw-loader-container"},h("grw-loader",{exportparts:"loader","color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),this.showTrek&&state.currentTrek&&h("div",{class:this.isLargeView?"grw-large-view-app-trek-detail-container":"grw-app-trek-detail-container"},h("grw-trek-detail",{style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView,"emergency-number":this.emergencyNumber,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,i){return i===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline,"global-tiles-min-zoom-offline":this.globalTilesMinZoomOffline,"global-tiles-max-zoom-offline":this.globalTilesMaxZoomOffline,"tiles-min-zoom-offline":this.tilesMinZoomOffline,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true}),this.showOfflineModal&&h("div",{class:"modal-container"},h("div",{class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"".concat(this.showTrek?"Êtes-vous sûr de vouloir rendre cet itinéraire disponible hors ligne ?":this.showOutdoorSite?"Êtes-vous sûr de vouloir rendre cet outdoor disponible hors ligne ?":"")),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},"OK"))),this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"Êtes-vous sûr de vouloir supprimer cet itinéraire du hors ligne ?"),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},"OK"))),this.showLoaderModal&&h(Fragment,null,h("div",{class:"modal-message-container"},h("div",{class:"modal-loader"}),this.showDeletingMessage?"Suppression en cours":"Téléchargement en cours")),this.showSuccessModal&&h(Fragment,null,h("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?"L'itinéraire est supprimé du hors ligne":"L'itinéraire est disponible hors ligne"),h("div",{class:"modal-button-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"OK")))))),this.showTouristicContent&&state.currentTouristicContent&&h("div",{class:this.isLargeView?"grw-large-view-app-touristic-content-detail-container":"grw-app-touristic-content-detail-container"},h("grw-touristic-content-detail",{style:{visibility:!this.showTouristicContentMap&&this.showTouristicContent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicContentMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),this.showTouristicEvent&&state.currentTouristicEvent&&h("div",{class:this.isLargeView?"grw-large-view-app-touristic-event-detail-container":"grw-app-touristic-event-detail-container"},h("grw-touristic-event-detail",{style:{visibility:!this.showTouristicEventMap&&this.showTouristicEvent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicEventMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),this.showOutdoorSite&&state.currentOutdoorSite&&h("div",{class:this.isLargeView?"grw-large-view-app-outdoor-site-detail-container":"grw-app-outdoor-site-detail-container"},h("grw-outdoor-site-detail",{style:{visibility:!this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorSiteMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,weather:this.weather,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,i){return i===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline}),this.showOfflineModal&&h("div",{class:"modal-container"},h("div",{class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"".concat(this.showTrek?"Êtes-vous sûr de vouloir rendre cet itinéraire disponible hors ligne ?":this.showOutdoorSite?"Êtes-vous sûr de vouloir rendre cet outdoor disponible hors ligne ?":"")),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},"OK"))),this.showConfirmDeleteModal&&h(Fragment,null,h("div",{class:"modal-message-container"},"Êtes-vous sûr de vouloir supprimer cet itinéraire du hors ligne ?"),h("div",{class:"modal-buttons-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"ANNULER"),h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},"OK"))),this.showLoaderModal&&h(Fragment,null,h("div",{class:"modal-message-container"},h("div",{class:"modal-loader"}),this.showDeletingMessage?"Suppression en cours":"Téléchargement en cours")),this.showSuccessModal&&h(Fragment,null,h("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?"L'itinéraire est supprimé du hors ligne":"L'itinéraire est disponible hors ligne"),h("div",{class:"modal-button-container"},h("button",{part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},"OK")))))),this.showOutdoorCourse&&state.currentOutdoorCourse&&h("div",{class:this.isLargeView?"grw-large-view-app-outdoor-course-detail-container":"grw-app-outdoor-course-detail-container"},h("grw-outdoor-course-detail",{style:{visibility:!this.showOutdoorCourseMap&&this.showOutdoorCourse||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorCourseMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),!state.networkError&&h("grw-map",{exportparts:"map,elevation,map-bottom-space,map-loader-container,loader",class:this.isLargeView?"grw-large-view-app-map-container":"grw-app-map-container",style:{visibility:this.showHomeMap&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrekMap&&this.showTrek||this.showTouristicContentMap&&this.showTouristicContent||this.showTouristicEventMap&&this.showTouristicEvent||this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:this.showHomeMap||this.showTrekMap||this.showTouristicContentMap||this.showTouristicEventMap||this.showOutdoorSiteMap?"1":"0"},"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-background":this.colorBackground,"color-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"is-large-view":this.isLargeView,"use-gradient":this.useGradient,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true})),(!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrek&&state.currentTrek||this.showTouristicContent&&state.currentTouristicContent||this.showTouristicEvent&&state.currentTouristicEvent||this.showOutdoorSite&&state.currentOutdoorSite)&&h("div",{class:"grw-map-visibility-button-container"},h("grw-extended-fab",{exportparts:"map-visibility-button,map-visibility-button-icon,map-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleShowMap()},icon:function(){return t.getMapVisibilityIconButton()},name:function(){return t.getMapVisibilityLabelButton()},display:this.isLargeView?"none":"flex"}))),!this.showTrek&&this.showFilters&&h("grw-filters",{"font-family":this.fontFamily,handleFilters:function(){return t.handleFilters()}}))};Object.defineProperty(t.prototype,"appElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return t}();GrwApp.style=GrwAppStyle0;export{GrwApp as grw_app};
|
|
2
2
|
//# sourceMappingURL=grw-app.entry.js.map
|
|
Binary file
|
|
Binary file
|