@geotrekce/geotrek-rando-widget 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js +77 -53
- 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-filter.cjs.entry.js +21 -14
- package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/{grw-filters_12.cjs.entry.js → grw-filters_16.cjs.entry.js} +867 -376
- package/dist/cjs/grw-filters_16.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filters_16.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filters_16.cjs.entry.js.map +1 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js +66 -47
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-a5ad3083.js → i18n-25e8e038.js} +13 -3
- package/dist/cjs/i18n-25e8e038.js.br +0 -0
- package/dist/cjs/i18n-25e8e038.js.gz +0 -0
- package/dist/cjs/i18n-25e8e038.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/utils-aafb9447.js +505 -0
- package/dist/cjs/utils-aafb9447.js.br +0 -0
- package/dist/cjs/utils-aafb9447.js.gz +0 -0
- package/dist/cjs/utils-aafb9447.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/grw-app/grw-app.css +8 -1
- package/dist/collection/components/grw-app/grw-app.css.br +0 -0
- package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js +29 -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-filter/grw-filter.js +9 -1
- package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
- package/dist/collection/components/grw-filters/grw-filters.css +2 -1
- package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js +17 -2
- package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.css +61 -16
- package/dist/collection/components/grw-map/grw-map.css.br +0 -0
- package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js +297 -18
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-search/grw-search.js +4 -1
- package/dist/collection/components/grw-search/grw-search.js.br +0 -0
- package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
- package/dist/collection/components/grw-search/grw-search.js.map +1 -1
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css +48 -5
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.br +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.gz +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js +122 -23
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css +8 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css +43 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +220 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.map +1 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +7 -7
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +8 -3
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +2 -2
- 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 +12 -2
- package/dist/collection/i18n/i18n.js.br +0 -0
- package/dist/collection/i18n/i18n.js.gz +0 -0
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/store/grw-touristic-contents-provider.js +0 -18
- package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-event-provider.js +2 -2
- package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-events-provider.js +211 -0
- package/dist/collection/store/grw-touristic-events-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-events-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-events-provider.js.map +1 -0
- package/dist/collection/store/grw-trek-provider.js +8 -2
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/store.js +4 -0
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/collection/types/types.js.map +1 -1
- package/dist/collection/utils/utils.js +74 -0
- package/dist/collection/utils/utils.js.br +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +31 -7
- 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-filter.entry.js +9 -2
- package/dist/esm/grw-filter.entry.js.br +0 -0
- package/dist/esm/grw-filter.entry.js.gz +0 -0
- package/dist/esm/grw-filter.entry.js.map +1 -1
- package/dist/esm/{grw-filters_12.entry.js → grw-filters_16.entry.js} +522 -35
- package/dist/esm/grw-filters_16.entry.js.br +0 -0
- package/dist/esm/grw-filters_16.entry.js.gz +0 -0
- package/dist/esm/grw-filters_16.entry.js.map +1 -0
- package/dist/esm/grw-information-desk_6.entry.js +50 -31
- package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.map +1 -1
- package/dist/esm/{i18n-e6325e81.js → i18n-c18b35f3.js} +13 -3
- package/dist/esm/i18n-c18b35f3.js.br +0 -0
- package/dist/esm/i18n-c18b35f3.js.gz +0 -0
- package/dist/esm/i18n-c18b35f3.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/utils-6441a08a.js +492 -0
- package/dist/esm/utils-6441a08a.js.br +0 -0
- package/dist/esm/utils-6441a08a.js.gz +0 -0
- package/dist/esm/utils-6441a08a.js.map +1 -0
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter.entry.js +2 -2
- package/dist/esm-es5/grw-filter.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter.entry.js.map +1 -1
- package/dist/esm-es5/{grw-filters_12.entry.js → grw-filters_16.entry.js} +4 -4
- package/dist/esm-es5/grw-filters_16.entry.js.br +0 -0
- package/dist/esm-es5/grw-filters_16.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filters_16.entry.js.map +1 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -1
- package/dist/esm-es5/i18n-c18b35f3.js +2 -0
- package/dist/esm-es5/i18n-c18b35f3.js.br +0 -0
- package/dist/esm-es5/i18n-c18b35f3.js.gz +0 -0
- package/dist/esm-es5/i18n-c18b35f3.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/utils-6441a08a.js +2 -0
- package/dist/esm-es5/utils-6441a08a.js.br +0 -0
- package/dist/esm-es5/utils-6441a08a.js.gz +0 -0
- package/dist/esm-es5/utils-6441a08a.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/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js → p-06412985.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-06412985.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-06412985.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-06412985.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js +2 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0955858f.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js +2 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6f7916db.system.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js → p-73278096.system.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-73278096.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js.gz → p-73278096.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js.map → p-73278096.system.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-bcac98e0.js +2 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bcac98e0.js.map +1 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +1 -1
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -1
- package/dist/geotrek-rando-widget/p-e16d970b.js +2 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e16d970b.js.map +1 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js +14 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e9caba62.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.map +1 -0
- package/dist/types/components/grw-filters/grw-filters.d.ts +2 -0
- package/dist/types/components/grw-map/grw-map.d.ts +13 -0
- package/dist/types/components/grw-touristic-event/grw-touristic-event-card.d.ts +6 -0
- package/dist/types/components/grw-touristic-events-list/grw-touristic-events-list.d.ts +20 -0
- package/dist/types/components.d.ts +82 -21
- package/dist/types/i18n/i18n.d.ts +5 -0
- package/dist/types/store/grw-touristic-contents-provider.d.ts +0 -1
- package/dist/types/store/grw-touristic-events-provider.d.ts +17 -0
- package/dist/types/store/store.d.ts +9 -1
- package/dist/types/types/types.d.ts +18 -1
- package/dist/types/utils/utils.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filters_12.cjs.entry.js.map +0 -1
- package/dist/cjs/grw-select-language.cjs.entry.js +0 -28
- package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-select-language.cjs.entry.js.map +0 -1
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +0 -63
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +0 -1
- package/dist/cjs/i18n-a5ad3083.js.br +0 -0
- package/dist/cjs/i18n-a5ad3083.js.gz +0 -0
- package/dist/cjs/i18n-a5ad3083.js.map +0 -1
- package/dist/cjs/store-d20ae78f.js +0 -250
- package/dist/cjs/store-d20ae78f.js.br +0 -0
- package/dist/cjs/store-d20ae78f.js.gz +0 -0
- package/dist/cjs/store-d20ae78f.js.map +0 -1
- package/dist/cjs/utils-332e41b3.js +0 -181
- package/dist/cjs/utils-332e41b3.js.br +0 -0
- package/dist/cjs/utils-332e41b3.js.gz +0 -0
- package/dist/cjs/utils-332e41b3.js.map +0 -1
- package/dist/esm/grw-filters_12.entry.js.br +0 -0
- package/dist/esm/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm/grw-filters_12.entry.js.map +0 -1
- package/dist/esm/grw-select-language.entry.js +0 -24
- package/dist/esm/grw-select-language.entry.js.br +0 -0
- package/dist/esm/grw-select-language.entry.js.gz +0 -0
- package/dist/esm/grw-select-language.entry.js.map +0 -1
- package/dist/esm/grw-touristic-event-card-provider.entry.js +0 -59
- package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm/grw-touristic-event-card-provider.entry.js.map +0 -1
- package/dist/esm/i18n-e6325e81.js.br +0 -0
- package/dist/esm/i18n-e6325e81.js.gz +0 -0
- package/dist/esm/i18n-e6325e81.js.map +0 -1
- package/dist/esm/store-032ab1f5.js +0 -246
- package/dist/esm/store-032ab1f5.js.br +0 -0
- package/dist/esm/store-032ab1f5.js.gz +0 -0
- package/dist/esm/store-032ab1f5.js.map +0 -1
- package/dist/esm/utils-b09ac7c9.js +0 -173
- package/dist/esm/utils-b09ac7c9.js.br +0 -0
- package/dist/esm/utils-b09ac7c9.js.gz +0 -0
- package/dist/esm/utils-b09ac7c9.js.map +0 -1
- package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filters_12.entry.js.map +0 -1
- package/dist/esm-es5/grw-select-language.entry.js +0 -2
- package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
- package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
- package/dist/esm-es5/grw-select-language.entry.js.map +0 -1
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +0 -2
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +0 -1
- package/dist/esm-es5/i18n-e6325e81.js +0 -2
- package/dist/esm-es5/i18n-e6325e81.js.br +0 -0
- package/dist/esm-es5/i18n-e6325e81.js.gz +0 -0
- package/dist/esm-es5/i18n-e6325e81.js.map +0 -1
- package/dist/esm-es5/store-032ab1f5.js +0 -2
- package/dist/esm-es5/store-032ab1f5.js.br +0 -0
- package/dist/esm-es5/store-032ab1f5.js.gz +0 -0
- package/dist/esm-es5/store-032ab1f5.js.map +0 -1
- package/dist/esm-es5/utils-b09ac7c9.js +0 -2
- package/dist/esm-es5/utils-b09ac7c9.js.br +0 -0
- package/dist/esm-es5/utils-b09ac7c9.js.gz +0 -0
- package/dist/esm-es5/utils-b09ac7c9.js.map +0 -1
- package/dist/geotrek-rando-widget/p-048b3a1e.js +0 -2
- package/dist/geotrek-rando-widget/p-048b3a1e.js.br +0 -0
- package/dist/geotrek-rando-widget/p-048b3a1e.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-048b3a1e.js.map +0 -1
- package/dist/geotrek-rando-widget/p-0f47847d.system.js +0 -2
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0f47847d.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js +0 -2
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-1f8e7e57.js +0 -2
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.br +0 -0
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +0 -1
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-42ee320d.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-5e7ed046.js +0 -2
- package/dist/geotrek-rando-widget/p-5e7ed046.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5e7ed046.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5e7ed046.js.map +0 -1
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-689557e0.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-689557e0.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ba971c93.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c63228e8.system.js +0 -2
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.gz +0 -0
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-9e4fe3f0.js');
|
|
6
|
-
const i18n = require('./i18n-
|
|
7
|
-
const
|
|
8
|
-
const utils$1 = require('./utils-332e41b3.js');
|
|
6
|
+
const i18n = require('./i18n-25e8e038.js');
|
|
7
|
+
const utils$1 = require('./utils-aafb9447.js');
|
|
9
8
|
const pagination = require('./pagination-149c2052.js');
|
|
10
9
|
|
|
11
10
|
function _interopNamespace(e) {
|
|
@@ -28,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
28
27
|
return Object.freeze(n);
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
const grwFiltersCss = ".options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:20px;line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:20px;border-bottom-left-radius:20px}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:20px;border-bottom-right-radius:20px}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-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);background-color:transparent}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:\"\";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}";
|
|
30
|
+
const grwFiltersCss = ".options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:20px;line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:20px;border-bottom-left-radius:20px}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:20px;border-bottom-right-radius:20px}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-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);background-color:transparent}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:\"\";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}";
|
|
32
31
|
|
|
33
32
|
const GrwFilters = class {
|
|
34
33
|
constructor(hostRef) {
|
|
@@ -39,12 +38,12 @@ const GrwFilters = class {
|
|
|
39
38
|
}
|
|
40
39
|
handleEraseTreksFilters() {
|
|
41
40
|
utils$1.treksFilters.forEach(filter => {
|
|
42
|
-
|
|
41
|
+
utils$1.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
43
42
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
utils$1.state.selectedActivitiesFilters = 0;
|
|
44
|
+
utils$1.state.selectedThemesFilters = 0;
|
|
45
|
+
utils$1.state.selectedLocationFilters = 0;
|
|
46
|
+
utils$1.state.currentTreks = utils$1.handleTreksFiltersAndSearch();
|
|
48
47
|
this.resetFilter.emit();
|
|
49
48
|
}
|
|
50
49
|
handleOkTreksFilters() {
|
|
@@ -54,27 +53,42 @@ const GrwFilters = class {
|
|
|
54
53
|
this.selectedSegment = selectedSegment;
|
|
55
54
|
}
|
|
56
55
|
handleSegment(segment) {
|
|
57
|
-
if (
|
|
58
|
-
return utils$1.treksFilters.filter(filter => filter.segment === segment).some(filter =>
|
|
56
|
+
if (utils$1.state.mode === 'treks') {
|
|
57
|
+
return utils$1.treksFilters.filter(filter => filter.segment === segment).some(filter => utils$1.state[filter.property] && utils$1.state[filter.property].length > 0);
|
|
59
58
|
}
|
|
60
|
-
else if (
|
|
61
|
-
return utils$1.touristicContentsFilters.filter(filter => filter.segment === segment).some(filter =>
|
|
59
|
+
else if (utils$1.state.mode === 'touristicContents') {
|
|
60
|
+
return utils$1.touristicContentsFilters.filter(filter => filter.segment === segment).some(filter => utils$1.state[filter.property] && utils$1.state[filter.property].length > 0);
|
|
61
|
+
}
|
|
62
|
+
else if (utils$1.state.mode === 'touristicEvents') {
|
|
63
|
+
return utils$1.touristicEventsFilters.filter(filter => filter.segment === segment).some(filter => utils$1.state[filter.property] && utils$1.state[filter.property].length > 0);
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
handleEraseTouristicContentsFilters() {
|
|
65
67
|
utils$1.touristicContentsFilters.forEach(filter => {
|
|
66
|
-
|
|
68
|
+
utils$1.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
67
69
|
});
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
utils$1.state.selectedActivitiesFilters = 0;
|
|
71
|
+
utils$1.state.selectedLocationFilters = 0;
|
|
72
|
+
utils$1.state.currentTouristicContents = utils$1.handleTouristicContentsFiltersAndSearch();
|
|
71
73
|
this.resetFilter.emit();
|
|
72
74
|
}
|
|
73
75
|
handleOkTouristicContentsFilters() {
|
|
74
76
|
this.handleFilters();
|
|
75
77
|
}
|
|
78
|
+
handleEraseTouristicEventsFilters() {
|
|
79
|
+
utils$1.touristicEventsFilters.forEach(filter => {
|
|
80
|
+
utils$1.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
81
|
+
});
|
|
82
|
+
utils$1.state.selectedActivitiesFilters = 0;
|
|
83
|
+
utils$1.state.selectedLocationFilters = 0;
|
|
84
|
+
utils$1.state.currentTouristicEvents = utils$1.handleTouristicEventsFiltersAndSearch();
|
|
85
|
+
this.resetFilter.emit();
|
|
86
|
+
}
|
|
87
|
+
handleOkTouristicEventsFilters() {
|
|
88
|
+
this.handleFilters();
|
|
89
|
+
}
|
|
76
90
|
render() {
|
|
77
|
-
return (index.h(index.Host, null, index.h("div", { class: "options-container" }, index.h("div", { class: "filters-container" }, store.state.mode === 'treks' && (index.h("div", { class: "filters-treks-container" }, index.h("div", { class: "filters-options-container" }, store.state.treksWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${store.state.treksWithinBounds.length} ${store.state.treksWithinBounds.length > 1 ? i18n.translate[store.state.language].treks : i18n.translate[store.state.language].trek}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTreksFilters() }, i18n.translate[store.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTreksFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].activities, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedThemesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedThemesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedThemesFilters') }, i18n.translate[store.state.language].themes, " ", store.state.selectedThemesFilters !== 0 && `(${store.state.selectedThemesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "treks-activities-segment-container", class: "segment-container" }, store.state['practices'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].practice, filterType: "practices", filterNameProperty: "name", segment: "selectedActivitiesFilters", filterPlaceholder: i18n.translate[store.state.language].placeholderPractices }))), store.state['difficulties'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].difficulty, filterType: "difficulties", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))), store.state['durations'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].duration, filterType: "durations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['lengths'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].length, filterType: "lengths", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['elevations'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].elevation, filterType: "elevations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['routes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].routes, filterType: "routes", filterNameProperty: "route", segment: "selectedActivitiesFilters" }))), store.state['accessibilities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].accessibility, filterType: "accessibilities", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['labels'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].activities, filterType: "labels", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedThemesFilters' && (index.h("div", { key: "treks-themes-segment-container", class: "segment-container" }, store.state['themes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].themes, filterPlaceholder: i18n.translate[store.state.language].placeholderThemes, filterType: "themes", filterNameProperty: "label", segment: "selectedThemesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "treks-location-segment-container", class: "segment-container" }, store.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), store.state.mode === 'touristicContents' && (index.h("div", { class: "filters-touristic-contents-container" }, index.h("div", { class: "filters-options-container" }, store.state.touristicContentsWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${store.state.touristicContentsWithinBounds.length} ${store.state.touristicContentsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicContents : i18n.translate[store.state.language].home.touristicContent}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTouristicContentsFilters() }, i18n.translate[store.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTouristicContentsFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].services, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "touristic-contents-activities-segment-container", class: "segment-container" }, store.state['touristicContentCategories'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].category, filterType: "touristicContentCategories", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "touristic-contents-location-segment-container", class: "segment-container" }, store.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" }))))))))), index.h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" }))));
|
|
91
|
+
return (index.h(index.Host, null, index.h("div", { class: "options-container" }, index.h("div", { class: "filters-container" }, utils$1.state.mode === 'treks' && (index.h("div", { class: "filters-treks-container" }, index.h("div", { class: "filters-options-container" }, utils$1.state.treksWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${utils$1.state.treksWithinBounds.length} ${utils$1.state.treksWithinBounds.length > 1 ? i18n.translate[utils$1.state.language].treks : i18n.translate[utils$1.state.language].trek}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTreksFilters() }, i18n.translate[utils$1.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTreksFilters() }, i18n.translate[utils$1.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[utils$1.state.language].activities, " ", utils$1.state.selectedActivitiesFilters !== 0 && `(${utils$1.state.selectedActivitiesFilters})`)), this.handleSegment('selectedThemesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedThemesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedThemesFilters') }, i18n.translate[utils$1.state.language].themes, " ", utils$1.state.selectedThemesFilters !== 0 && `(${utils$1.state.selectedThemesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[utils$1.state.language].location, " ", utils$1.state.selectedLocationFilters !== 0 && `(${utils$1.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "treks-activities-segment-container", class: "segment-container" }, utils$1.state['practices'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].practice, filterType: "practices", filterNameProperty: "name", segment: "selectedActivitiesFilters", filterPlaceholder: i18n.translate[utils$1.state.language].placeholderPractices }))), utils$1.state['difficulties'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].difficulty, filterType: "difficulties", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))), utils$1.state['durations'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].duration, filterType: "durations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), utils$1.state['lengths'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].length, filterType: "lengths", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), utils$1.state['elevations'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].elevation, filterType: "elevations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), utils$1.state['routes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].routes, filterType: "routes", filterNameProperty: "route", segment: "selectedActivitiesFilters" }))), utils$1.state['accessibilities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].accessibility, filterType: "accessibilities", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), utils$1.state['labels'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].activities, filterType: "labels", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedThemesFilters' && (index.h("div", { key: "treks-themes-segment-container", class: "segment-container" }, utils$1.state['themes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].themes, filterPlaceholder: i18n.translate[utils$1.state.language].placeholderThemes, filterType: "themes", filterNameProperty: "label", segment: "selectedThemesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "treks-location-segment-container", class: "segment-container" }, utils$1.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), utils$1.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].crossedCities, filterPlaceholder: i18n.translate[utils$1.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), utils$1.state.mode === 'touristicContents' && (index.h("div", { class: "filters-touristic-contents-container" }, index.h("div", { class: "filters-options-container" }, utils$1.state.touristicContentsWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${utils$1.state.touristicContentsWithinBounds.length} ${utils$1.state.touristicContentsWithinBounds.length > 1 ? i18n.translate[utils$1.state.language].home.touristicContents : i18n.translate[utils$1.state.language].home.touristicContent}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTouristicContentsFilters() }, i18n.translate[utils$1.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTouristicContentsFilters() }, i18n.translate[utils$1.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[utils$1.state.language].services, " ", utils$1.state.selectedActivitiesFilters !== 0 && `(${utils$1.state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[utils$1.state.language].location, " ", utils$1.state.selectedLocationFilters !== 0 && `(${utils$1.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "touristic-contents-activities-segment-container", class: "segment-container" }, utils$1.state['touristicContentCategories'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].category, filterType: "touristicContentCategories", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "touristic-contents-location-segment-container", class: "segment-container" }, utils$1.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), utils$1.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].crossedCities, filterPlaceholder: i18n.translate[utils$1.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), utils$1.state.mode === 'touristicEvents' && (index.h("div", { class: "filters-touristic-events-container" }, index.h("div", { class: "filters-options-container" }, utils$1.state.touristicEventsWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${utils$1.state.touristicEventsWithinBounds.length} ${utils$1.state.touristicEventsWithinBounds.length > 1 ? i18n.translate[utils$1.state.language].home.touristicEvents : i18n.translate[utils$1.state.language].home.touristicEvent}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTouristicEventsFilters() }, i18n.translate[utils$1.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTouristicEventsFilters() }, i18n.translate[utils$1.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[utils$1.state.language].services, " ", utils$1.state.selectedActivitiesFilters !== 0 && `(${utils$1.state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[utils$1.state.language].location, " ", utils$1.state.selectedLocationFilters !== 0 && `(${utils$1.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "touristic-contents-activities-segment-container", class: "segment-container" }, utils$1.state['touristicEventTypes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].type, filterPlaceholder: i18n.translate[utils$1.state.language].placeholderType, filterType: "touristicEventTypes", filterNameProperty: "type", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "touristic-events-location-segment-container", class: "segment-container" }, utils$1.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), utils$1.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { filterName: i18n.translate[utils$1.state.language].crossedCities, filterPlaceholder: i18n.translate[utils$1.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" }))))))))), index.h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" }))));
|
|
78
92
|
}
|
|
79
93
|
};
|
|
80
94
|
GrwFilters.style = grwFiltersCss;
|
|
@@ -18863,21 +18877,23 @@ createCommonjsModule(function (module, exports) {
|
|
|
18863
18877
|
});
|
|
18864
18878
|
|
|
18865
18879
|
function getTrekGeometry(id) {
|
|
18866
|
-
return fetch(`${
|
|
18880
|
+
return fetch(`${utils$1.state.api}trek/${id}/?language=${utils$1.state.language}&published=true&fields=geometry`, { cache: 'default' }).then(response => response.json());
|
|
18867
18881
|
}
|
|
18868
18882
|
|
|
18869
|
-
const grwMapCss = "@charset \"UTF-8\";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:\"Helvetica Neue\", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \"Lucida Console\", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:\"\"}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z\"/></svg>');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(32, 116, 182)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(252, 132, 40)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, \"\")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:\"✖\";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:\"\";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:\" — \"}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}#map{position:relative;font-family:\"Roboto\";display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container{background-color:var(--color-surface-variant)}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container{width:64px;height:64px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number{width:48px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px 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}@-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)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup,.touristic-content-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img{border-top-left-radius:8px;border-top-right-radius:8px}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:20px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}";
|
|
18883
|
+
const grwMapCss = "@charset \"UTF-8\";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:\"Helvetica Neue\", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \"Lucida Console\", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:\"\"}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z\"/></svg>');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(32, 116, 182)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(252, 132, 40)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, \"\")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:\"✖\";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:\"\";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:\" — \"}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}#map{position:relative;font-family:\"Roboto\";display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container{background-color:var(--color-surface-variant)}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:64px;height:64px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:48px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px 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}@-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)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:8px;border-top-right-radius:8px}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:20px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:64px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}";
|
|
18870
18884
|
|
|
18871
18885
|
const GrwMap = class {
|
|
18872
18886
|
constructor(hostRef) {
|
|
18873
18887
|
index.registerInstance(this, hostRef);
|
|
18874
18888
|
this.trekCardPress = index.createEvent(this, "trekCardPress", 7);
|
|
18875
18889
|
this.touristicContentCardPress = index.createEvent(this, "touristicContentCardPress", 7);
|
|
18890
|
+
this.touristicEventCardPress = index.createEvent(this, "touristicEventCardPress", 7);
|
|
18876
18891
|
this.maxZoom = 19;
|
|
18877
18892
|
this.userLayersState = {};
|
|
18878
18893
|
this.tileLayer = [];
|
|
18879
18894
|
this.handleTreksWithinBoundsBind = this.handleTreksWithinBounds.bind(this);
|
|
18880
18895
|
this.handleTouristicContentsWithinBoundsBind = this.handleTouristicContentsWithinBounds.bind(this);
|
|
18896
|
+
this.handleTouristicEventsWithinBoundsBind = this.handleTouristicEventsWithinBounds.bind(this);
|
|
18881
18897
|
this.mapIsReady = false;
|
|
18882
18898
|
this.nameLayer = undefined;
|
|
18883
18899
|
this.urlLayer = undefined;
|
|
@@ -18940,39 +18956,48 @@ const GrwMap = class {
|
|
|
18940
18956
|
}
|
|
18941
18957
|
}
|
|
18942
18958
|
onCardTrekMouseOver(event) {
|
|
18943
|
-
if (!
|
|
18944
|
-
|
|
18959
|
+
if (!utils$1.state.parentTrek && (!utils$1.state.selectedTrekId || utils$1.state.selectedTrekId !== event.detail)) {
|
|
18960
|
+
utils$1.state.selectedTrekId = event.detail;
|
|
18945
18961
|
this.hideTrekLine();
|
|
18946
18962
|
this.showTrekLine(event.detail);
|
|
18947
18963
|
this.addSelectedCurrentTrek(event.detail);
|
|
18948
18964
|
}
|
|
18949
|
-
else if (
|
|
18965
|
+
else if (utils$1.state.parentTrek) {
|
|
18950
18966
|
this.stepPopupIsOpen = false;
|
|
18951
|
-
|
|
18967
|
+
utils$1.state.selectedStepId = null;
|
|
18952
18968
|
this.addSelectedCurrentStep(event.detail);
|
|
18953
18969
|
}
|
|
18954
18970
|
}
|
|
18955
18971
|
onCardTrekMouseLeave() {
|
|
18956
|
-
if (!this.trekPopupIsOpen &&
|
|
18972
|
+
if (!this.trekPopupIsOpen && utils$1.state.selectedTrekId) {
|
|
18957
18973
|
this.trekPopupIsOpen = false;
|
|
18958
|
-
|
|
18974
|
+
utils$1.state.selectedTrekId = null;
|
|
18959
18975
|
this.hideTrekLine();
|
|
18960
18976
|
this.removeSelectedCurrentTrek();
|
|
18961
18977
|
}
|
|
18962
18978
|
else if (this.currentStepsLayer) {
|
|
18963
|
-
|
|
18979
|
+
utils$1.state.selectedStepId = null;
|
|
18964
18980
|
this.removeSelectedCurrentStep();
|
|
18965
18981
|
}
|
|
18966
18982
|
}
|
|
18967
18983
|
onTouristicContentMouseOver(event) {
|
|
18968
18984
|
this.touristicContentPopupIsOpen = false;
|
|
18969
|
-
|
|
18985
|
+
utils$1.state.selectedTouristicContentId = null;
|
|
18970
18986
|
this.addSelectedTouristicContent(event.detail);
|
|
18971
18987
|
}
|
|
18972
18988
|
onTouristicContentMouseLeave() {
|
|
18973
|
-
|
|
18989
|
+
utils$1.state.selectedTouristicContentId = null;
|
|
18974
18990
|
this.removeSelectedTouristicContent();
|
|
18975
18991
|
}
|
|
18992
|
+
onTouristicEventMouseOver(event) {
|
|
18993
|
+
this.touristicEventPopupIsOpen = false;
|
|
18994
|
+
utils$1.state.selectedTouristicEventId = null;
|
|
18995
|
+
this.addSelectedTouristicEvent(event.detail);
|
|
18996
|
+
}
|
|
18997
|
+
onTouristicEventMouseLeave() {
|
|
18998
|
+
utils$1.state.selectedTouristicEventId = null;
|
|
18999
|
+
this.removeSelectedTouristicEvent();
|
|
19000
|
+
}
|
|
18976
19001
|
componentDidLoad() {
|
|
18977
19002
|
this.map = leafletSrc.map(this.mapRef, {
|
|
18978
19003
|
center: this.center.split(',').map(Number),
|
|
@@ -19016,101 +19041,147 @@ const GrwMap = class {
|
|
|
19016
19041
|
};
|
|
19017
19042
|
leafletSrc.control.contract({ position: 'topleft' }).addTo(this.map);
|
|
19018
19043
|
}
|
|
19019
|
-
if (
|
|
19044
|
+
if (utils$1.state.currentTrek) {
|
|
19020
19045
|
this.addTrek();
|
|
19021
19046
|
}
|
|
19022
|
-
else if (
|
|
19047
|
+
else if (utils$1.state.currentTreks) {
|
|
19023
19048
|
this.addTreks();
|
|
19024
19049
|
}
|
|
19025
|
-
else if (
|
|
19050
|
+
else if (utils$1.state.currentTouristicContent) {
|
|
19026
19051
|
this.addTouristicContent();
|
|
19027
19052
|
}
|
|
19028
|
-
else if (
|
|
19053
|
+
else if (utils$1.state.currentTouristicEvent) {
|
|
19029
19054
|
this.addTouristicEvent();
|
|
19030
19055
|
}
|
|
19031
|
-
else if (
|
|
19056
|
+
else if (utils$1.state.touristicContents) {
|
|
19032
19057
|
this.addTouristicContents();
|
|
19033
19058
|
}
|
|
19034
|
-
|
|
19035
|
-
|
|
19059
|
+
else if (utils$1.state.touristicEvents) {
|
|
19060
|
+
this.addTouristicEvents();
|
|
19061
|
+
}
|
|
19062
|
+
utils$1.onChange('currentTreks', () => {
|
|
19063
|
+
this.hideTrekLine();
|
|
19064
|
+
this.removeSelectedCurrentTrek();
|
|
19065
|
+
this.removeSelectedTouristicContent();
|
|
19066
|
+
this.removeSelectedTouristicEvent();
|
|
19067
|
+
if (utils$1.state.currentTrek) {
|
|
19036
19068
|
this.removeTreks();
|
|
19037
19069
|
this.addTrek();
|
|
19038
19070
|
}
|
|
19039
|
-
else if (
|
|
19071
|
+
else if (utils$1.state.currentTreks) {
|
|
19072
|
+
this.removeTreks();
|
|
19073
|
+
this.removeTouristicContents();
|
|
19074
|
+
this.removeTouristicEvents();
|
|
19040
19075
|
this.removeTrek();
|
|
19041
19076
|
this.removeTouristicContent();
|
|
19042
19077
|
this.removeTouristicEvent();
|
|
19043
19078
|
this.addTreks(true);
|
|
19044
19079
|
}
|
|
19045
19080
|
});
|
|
19046
|
-
|
|
19047
|
-
if (
|
|
19081
|
+
utils$1.onChange('currentTrek', () => {
|
|
19082
|
+
if (utils$1.state.currentTrek) {
|
|
19048
19083
|
this.removeTreks();
|
|
19049
19084
|
this.addTrek();
|
|
19050
19085
|
}
|
|
19051
|
-
else if (
|
|
19086
|
+
else if (utils$1.state.currentTreks) {
|
|
19052
19087
|
this.removeTrek();
|
|
19053
19088
|
this.removeTouristicContent();
|
|
19054
19089
|
this.removeTouristicEvent();
|
|
19055
19090
|
this.addTreks();
|
|
19056
19091
|
}
|
|
19057
19092
|
});
|
|
19058
|
-
|
|
19059
|
-
if (
|
|
19093
|
+
utils$1.onChange('currentTouristicContent', () => {
|
|
19094
|
+
if (utils$1.state.currentTouristicContent) {
|
|
19060
19095
|
this.removeTrek();
|
|
19061
19096
|
this.removeTouristicContents();
|
|
19062
19097
|
this.addTouristicContent();
|
|
19063
19098
|
}
|
|
19064
|
-
else if (
|
|
19099
|
+
else if (utils$1.state.touristicContents) {
|
|
19065
19100
|
this.removeTouristicContent();
|
|
19066
19101
|
this.addTouristicContents();
|
|
19067
19102
|
}
|
|
19068
|
-
else if (
|
|
19103
|
+
else if (utils$1.state.currentTrek) {
|
|
19069
19104
|
this.removeTouristicContent();
|
|
19070
19105
|
this.addTrek();
|
|
19071
19106
|
}
|
|
19072
|
-
else if (
|
|
19107
|
+
else if (utils$1.state.currentTreks) {
|
|
19073
19108
|
this.removeTouristicContent();
|
|
19074
19109
|
this.addTreks();
|
|
19075
19110
|
}
|
|
19076
19111
|
});
|
|
19077
|
-
|
|
19078
|
-
if (
|
|
19112
|
+
utils$1.onChange('currentTouristicEvent', () => {
|
|
19113
|
+
if (utils$1.state.currentTouristicEvent) {
|
|
19079
19114
|
this.removeTrek();
|
|
19115
|
+
this.removeTouristicEvents();
|
|
19080
19116
|
this.addTouristicEvent();
|
|
19081
19117
|
}
|
|
19082
|
-
else if (
|
|
19118
|
+
else if (utils$1.state.currentTrek) {
|
|
19083
19119
|
this.removeTouristicEvent();
|
|
19084
19120
|
this.addTrek();
|
|
19085
19121
|
}
|
|
19086
|
-
else if (
|
|
19122
|
+
else if (utils$1.state.currentTreks) {
|
|
19087
19123
|
this.removeTouristicEvent();
|
|
19088
19124
|
this.addTreks();
|
|
19089
19125
|
}
|
|
19090
19126
|
});
|
|
19091
|
-
|
|
19092
|
-
|
|
19127
|
+
utils$1.onChange('currentTouristicContents', () => {
|
|
19128
|
+
this.hideTrekLine();
|
|
19129
|
+
this.removeSelectedCurrentTrek();
|
|
19130
|
+
this.removeSelectedTouristicContent();
|
|
19131
|
+
this.removeSelectedTouristicEvent();
|
|
19132
|
+
if (utils$1.state.currentTouristicContent) {
|
|
19093
19133
|
this.removeTouristicContents();
|
|
19094
19134
|
this.addTouristicContent();
|
|
19095
19135
|
}
|
|
19096
|
-
else if (
|
|
19136
|
+
else if (utils$1.state.currentTouristicContents) {
|
|
19137
|
+
this.removeTreks();
|
|
19138
|
+
this.removeTouristicEvents();
|
|
19097
19139
|
this.removeTouristicContent();
|
|
19098
19140
|
this.addTouristicContents(true);
|
|
19099
19141
|
}
|
|
19100
19142
|
});
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19143
|
+
utils$1.onChange('currentTouristicEvents', () => {
|
|
19144
|
+
this.hideTrekLine();
|
|
19145
|
+
this.removeSelectedCurrentTrek();
|
|
19146
|
+
this.removeSelectedTouristicContent();
|
|
19147
|
+
this.removeSelectedTouristicEvent();
|
|
19148
|
+
if (utils$1.state.currentTouristicEvent) {
|
|
19149
|
+
this.removeTouristicEvents();
|
|
19150
|
+
this.addTouristicEvent();
|
|
19151
|
+
}
|
|
19152
|
+
else if (utils$1.state.currentTouristicEvents) {
|
|
19153
|
+
this.removeTreks();
|
|
19154
|
+
this.removeTouristicContents();
|
|
19155
|
+
this.removeTouristicEvent();
|
|
19156
|
+
this.addTouristicEvents(true);
|
|
19157
|
+
}
|
|
19158
|
+
});
|
|
19159
|
+
utils$1.onChange('mode', () => {
|
|
19160
|
+
this.hideTrekLine();
|
|
19161
|
+
this.removeSelectedCurrentTrek();
|
|
19162
|
+
this.removeSelectedTouristicContent();
|
|
19163
|
+
this.removeSelectedTouristicEvent();
|
|
19164
|
+
if (utils$1.state.mode === 'treks') {
|
|
19165
|
+
if (utils$1.state.treks) {
|
|
19104
19166
|
this.removeTouristicContents();
|
|
19167
|
+
this.removeTouristicEvents();
|
|
19105
19168
|
this.addTreks(true);
|
|
19106
19169
|
}
|
|
19107
19170
|
}
|
|
19108
|
-
else if (
|
|
19109
|
-
if (
|
|
19171
|
+
else if (utils$1.state.mode === 'touristicContents') {
|
|
19172
|
+
if (utils$1.state.touristicContents) {
|
|
19110
19173
|
this.removeTreks();
|
|
19174
|
+
this.removeTouristicEvents();
|
|
19111
19175
|
this.addTouristicContents(true);
|
|
19112
19176
|
}
|
|
19113
19177
|
}
|
|
19178
|
+
else if (utils$1.state.mode === 'touristicEvents') {
|
|
19179
|
+
if (utils$1.state.touristicEvents) {
|
|
19180
|
+
this.removeTreks();
|
|
19181
|
+
this.removeTouristicContents();
|
|
19182
|
+
this.addTouristicEvents(true);
|
|
19183
|
+
}
|
|
19184
|
+
}
|
|
19114
19185
|
});
|
|
19115
19186
|
}
|
|
19116
19187
|
handleLayerVisibility(visible, layer) {
|
|
@@ -19124,14 +19195,14 @@ const GrwMap = class {
|
|
|
19124
19195
|
}
|
|
19125
19196
|
addTreks(resetBounds = false) {
|
|
19126
19197
|
var _a;
|
|
19127
|
-
|
|
19198
|
+
utils$1.state.treksWithinBounds = utils$1.state.currentTreks;
|
|
19128
19199
|
const treksCurrentDepartureCoordinates = [];
|
|
19129
19200
|
const treksFeatureCollection = {
|
|
19130
19201
|
type: 'FeatureCollection',
|
|
19131
19202
|
features: [],
|
|
19132
19203
|
};
|
|
19133
|
-
if (
|
|
19134
|
-
for (const trek of
|
|
19204
|
+
if (utils$1.state.currentTreks) {
|
|
19205
|
+
for (const trek of utils$1.state.currentTreks) {
|
|
19135
19206
|
treksCurrentDepartureCoordinates.push(trek.departure_geom);
|
|
19136
19207
|
treksFeatureCollection.features.push({
|
|
19137
19208
|
type: 'Feature',
|
|
@@ -19139,19 +19210,19 @@ const GrwMap = class {
|
|
|
19139
19210
|
properties: {
|
|
19140
19211
|
id: trek.id,
|
|
19141
19212
|
name: trek.name,
|
|
19142
|
-
practice: (_a =
|
|
19213
|
+
practice: (_a = utils$1.state.practices.find(practice => practice.id === trek.practice)) === null || _a === void 0 ? void 0 : _a.pictogram,
|
|
19143
19214
|
imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,
|
|
19144
19215
|
},
|
|
19145
19216
|
});
|
|
19146
19217
|
}
|
|
19147
19218
|
}
|
|
19148
19219
|
if (!this.treksLayer) {
|
|
19149
|
-
if ((treksCurrentDepartureCoordinates.length > 0 && !
|
|
19220
|
+
if ((treksCurrentDepartureCoordinates.length > 0 && !utils$1.state.currentMapBounds) || resetBounds) {
|
|
19150
19221
|
this.bounds = leafletSrc.latLngBounds(treksCurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
|
|
19151
19222
|
}
|
|
19152
19223
|
else {
|
|
19153
|
-
if (
|
|
19154
|
-
this.bounds =
|
|
19224
|
+
if (utils$1.state.currentMapBounds) {
|
|
19225
|
+
this.bounds = utils$1.state.currentMapBounds;
|
|
19155
19226
|
}
|
|
19156
19227
|
}
|
|
19157
19228
|
this.treksLayer = leafletSrc.geoJSON(treksFeatureCollection, {
|
|
@@ -19162,7 +19233,7 @@ const GrwMap = class {
|
|
|
19162
19233
|
: `<div class="trek-marker-container"></div>`,
|
|
19163
19234
|
className: 'trek-marker',
|
|
19164
19235
|
iconSize: 32,
|
|
19165
|
-
iconAnchor: [
|
|
19236
|
+
iconAnchor: [16, 32],
|
|
19166
19237
|
}),
|
|
19167
19238
|
autoPanOnFocus: false,
|
|
19168
19239
|
}),
|
|
@@ -19197,7 +19268,7 @@ const GrwMap = class {
|
|
|
19197
19268
|
showCoverageOnHover: false,
|
|
19198
19269
|
removeOutsideVisibleBounds: false,
|
|
19199
19270
|
iconCreateFunction: cluster => {
|
|
19200
|
-
return leafletSrc.divIcon({ html: '<div>' + cluster.getChildCount() + '</div>', className: 'treks-marker-cluster-group-icon', iconSize: 48, iconAnchor: [24,
|
|
19271
|
+
return leafletSrc.divIcon({ html: '<div>' + cluster.getChildCount() + '</div>', className: 'treks-marker-cluster-group-icon', iconSize: 48, iconAnchor: [24, 48] });
|
|
19201
19272
|
},
|
|
19202
19273
|
});
|
|
19203
19274
|
this.treksMarkerClusterGroup.addLayer(this.treksLayer);
|
|
@@ -19221,7 +19292,7 @@ const GrwMap = class {
|
|
|
19221
19292
|
}
|
|
19222
19293
|
removeTreks() {
|
|
19223
19294
|
if (this.treksLayer) {
|
|
19224
|
-
|
|
19295
|
+
utils$1.state.currentMapBounds = this.map.getBounds();
|
|
19225
19296
|
this.map.removeLayer(this.treksMarkerClusterGroup);
|
|
19226
19297
|
this.treksLayer = null;
|
|
19227
19298
|
this.treksMarkerClusterGroup = null;
|
|
@@ -19229,26 +19300,32 @@ const GrwMap = class {
|
|
|
19229
19300
|
}
|
|
19230
19301
|
}
|
|
19231
19302
|
handleTreksWithinBounds() {
|
|
19232
|
-
if ((
|
|
19233
|
-
(
|
|
19234
|
-
|
|
19303
|
+
if ((utils$1.state.currentTreks && !utils$1.state.currentMapBounds) ||
|
|
19304
|
+
(utils$1.state.currentTreks && utils$1.state.currentMapBounds && utils$1.state.currentMapBounds.toBBoxString() !== this.map.getBounds().toBBoxString())) {
|
|
19305
|
+
utils$1.state.treksWithinBounds = utils$1.state.currentTreks.filter(trek => this.map.getBounds().contains(leafletSrc.latLng(trek.departure_geom[1], trek.departure_geom[0])));
|
|
19235
19306
|
}
|
|
19236
19307
|
}
|
|
19237
19308
|
handleTouristicContentsWithinBounds() {
|
|
19238
|
-
if ((
|
|
19239
|
-
(
|
|
19240
|
-
|
|
19309
|
+
if ((utils$1.state.currentTouristicContents && !utils$1.state.currentMapBounds) ||
|
|
19310
|
+
(utils$1.state.currentTouristicContents && utils$1.state.currentMapBounds && utils$1.state.currentMapBounds.toBBoxString() !== this.map.getBounds().toBBoxString())) {
|
|
19311
|
+
utils$1.state.touristicContentsWithinBounds = utils$1.state.currentTouristicContents.filter(touristicContent => this.map.getBounds().contains(leafletSrc.latLng(touristicContent.geometry.coordinates[1], touristicContent.geometry.coordinates[0])));
|
|
19312
|
+
}
|
|
19313
|
+
}
|
|
19314
|
+
handleTouristicEventsWithinBounds() {
|
|
19315
|
+
if ((utils$1.state.currentTouristicEvents && !utils$1.state.currentMapBounds) ||
|
|
19316
|
+
(utils$1.state.currentTouristicEvents && utils$1.state.currentMapBounds && utils$1.state.currentMapBounds.toBBoxString() !== this.map.getBounds().toBBoxString())) {
|
|
19317
|
+
utils$1.state.touristicEventsWithinBounds = utils$1.state.currentTouristicEvents.filter(touristicEvent => this.map.getBounds().contains(leafletSrc.latLng(touristicEvent.geometry.coordinates[1], touristicEvent.geometry.coordinates[0])));
|
|
19241
19318
|
}
|
|
19242
19319
|
}
|
|
19243
19320
|
addTrek() {
|
|
19244
19321
|
var _a, _b, _c, _d;
|
|
19245
19322
|
this.trekPopupIsOpen = false;
|
|
19246
|
-
|
|
19323
|
+
utils$1.state.selectedTrekId = null;
|
|
19247
19324
|
this.hideTrekLine();
|
|
19248
19325
|
this.removeSelectedCurrentTrek();
|
|
19249
19326
|
const currentTrekFeature = {
|
|
19250
19327
|
type: 'Feature',
|
|
19251
|
-
geometry:
|
|
19328
|
+
geometry: utils$1.state.currentTrek.geometry,
|
|
19252
19329
|
properties: {},
|
|
19253
19330
|
};
|
|
19254
19331
|
this.currentTrekLayer = leafletSrc.geoJSON(currentTrekFeature, {
|
|
@@ -19257,11 +19334,11 @@ const GrwMap = class {
|
|
|
19257
19334
|
}),
|
|
19258
19335
|
interactive: false,
|
|
19259
19336
|
}).addTo(this.map);
|
|
19260
|
-
if (
|
|
19337
|
+
if (utils$1.state.currentTrek.parking_location) {
|
|
19261
19338
|
const currentParking = {
|
|
19262
19339
|
type: 'Feature',
|
|
19263
19340
|
properties: {},
|
|
19264
|
-
geometry: { type: 'Point', coordinates:
|
|
19341
|
+
geometry: { type: 'Point', coordinates: utils$1.state.currentTrek.parking_location },
|
|
19265
19342
|
};
|
|
19266
19343
|
this.currentParkingLayer = leafletSrc.geoJSON(currentParking, {
|
|
19267
19344
|
pointToLayer: (_geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
|
|
@@ -19269,19 +19346,19 @@ const GrwMap = class {
|
|
|
19269
19346
|
html: '<div>P</div>',
|
|
19270
19347
|
className: 'parking-icon',
|
|
19271
19348
|
iconSize: 48,
|
|
19272
|
-
iconAnchor: [
|
|
19349
|
+
iconAnchor: [24, 48],
|
|
19273
19350
|
}),
|
|
19274
19351
|
autoPanOnFocus: false,
|
|
19275
19352
|
interactive: false,
|
|
19276
19353
|
}),
|
|
19277
19354
|
});
|
|
19278
19355
|
}
|
|
19279
|
-
if (
|
|
19356
|
+
if (utils$1.state.currentSensitiveAreas && utils$1.state.currentSensitiveAreas.length > 0) {
|
|
19280
19357
|
const currentSensitiveAreasFeatureCollection = {
|
|
19281
19358
|
type: 'FeatureCollection',
|
|
19282
19359
|
features: [],
|
|
19283
19360
|
};
|
|
19284
|
-
for (const sensitiveArea of
|
|
19361
|
+
for (const sensitiveArea of utils$1.state.currentSensitiveAreas) {
|
|
19285
19362
|
currentSensitiveAreasFeatureCollection.features.push({
|
|
19286
19363
|
type: 'Feature',
|
|
19287
19364
|
properties: { name: sensitiveArea.name },
|
|
@@ -19303,15 +19380,15 @@ const GrwMap = class {
|
|
|
19303
19380
|
style: () => ({ color: this.colorSensitiveArea }),
|
|
19304
19381
|
});
|
|
19305
19382
|
}
|
|
19306
|
-
if (
|
|
19383
|
+
if (utils$1.state.currentPois && utils$1.state.currentPois.length > 0) {
|
|
19307
19384
|
const currentPoisFeatureCollection = {
|
|
19308
19385
|
type: 'FeatureCollection',
|
|
19309
19386
|
features: [],
|
|
19310
19387
|
};
|
|
19311
|
-
for (const currentPoi of
|
|
19388
|
+
for (const currentPoi of utils$1.state.currentPois) {
|
|
19312
19389
|
currentPoisFeatureCollection.features.push({
|
|
19313
19390
|
type: 'Feature',
|
|
19314
|
-
properties: { name: currentPoi.name, type_pictogram: (_a =
|
|
19391
|
+
properties: { name: currentPoi.name, type_pictogram: (_a = utils$1.state.poiTypes.find(poiType => poiType.id === currentPoi.type)) === null || _a === void 0 ? void 0 : _a.pictogram },
|
|
19315
19392
|
geometry: currentPoi.geometry,
|
|
19316
19393
|
});
|
|
19317
19394
|
}
|
|
@@ -19337,17 +19414,17 @@ const GrwMap = class {
|
|
|
19337
19414
|
},
|
|
19338
19415
|
});
|
|
19339
19416
|
}
|
|
19340
|
-
if (
|
|
19417
|
+
if (utils$1.state.trekTouristicContents && utils$1.state.trekTouristicContents.length > 0) {
|
|
19341
19418
|
const currentTouristicContentsFeatureCollection = {
|
|
19342
19419
|
type: 'FeatureCollection',
|
|
19343
19420
|
features: [],
|
|
19344
19421
|
};
|
|
19345
|
-
for (const touristicContent of
|
|
19422
|
+
for (const touristicContent of utils$1.state.trekTouristicContents) {
|
|
19346
19423
|
currentTouristicContentsFeatureCollection.features.push({
|
|
19347
19424
|
type: 'Feature',
|
|
19348
19425
|
properties: {
|
|
19349
19426
|
name: touristicContent.name,
|
|
19350
|
-
category_pictogram: (_b =
|
|
19427
|
+
category_pictogram: (_b = utils$1.state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === touristicContent.category)) === null || _b === void 0 ? void 0 : _b.pictogram,
|
|
19351
19428
|
},
|
|
19352
19429
|
geometry: touristicContent.geometry,
|
|
19353
19430
|
});
|
|
@@ -19374,17 +19451,17 @@ const GrwMap = class {
|
|
|
19374
19451
|
},
|
|
19375
19452
|
});
|
|
19376
19453
|
}
|
|
19377
|
-
if (
|
|
19454
|
+
if (utils$1.state.touristicEvents && utils$1.state.touristicEvents.length > 0) {
|
|
19378
19455
|
const currentTouristicEventsFeatureCollection = {
|
|
19379
19456
|
type: 'FeatureCollection',
|
|
19380
19457
|
features: [],
|
|
19381
19458
|
};
|
|
19382
|
-
for (const touristicEvent of
|
|
19459
|
+
for (const touristicEvent of utils$1.state.touristicEvents) {
|
|
19383
19460
|
currentTouristicEventsFeatureCollection.features.push({
|
|
19384
19461
|
type: 'Feature',
|
|
19385
19462
|
properties: {
|
|
19386
19463
|
name: touristicEvent.name,
|
|
19387
|
-
type_pictogram: (_c =
|
|
19464
|
+
type_pictogram: (_c = utils$1.state.touristicEventTypes.find(touristicEventType => touristicEventType.id === touristicEvent.type)) === null || _c === void 0 ? void 0 : _c.pictogram,
|
|
19388
19465
|
},
|
|
19389
19466
|
geometry: touristicEvent.geometry,
|
|
19390
19467
|
});
|
|
@@ -19411,12 +19488,12 @@ const GrwMap = class {
|
|
|
19411
19488
|
},
|
|
19412
19489
|
});
|
|
19413
19490
|
}
|
|
19414
|
-
if (
|
|
19491
|
+
if (utils$1.state.currentInformationDesks && utils$1.state.currentInformationDesks.length > 0) {
|
|
19415
19492
|
const currentInformationDesksFeatureCollection = {
|
|
19416
19493
|
type: 'FeatureCollection',
|
|
19417
19494
|
features: [],
|
|
19418
19495
|
};
|
|
19419
|
-
for (const currentInformationDesk of
|
|
19496
|
+
for (const currentInformationDesk of utils$1.state.currentInformationDesks.filter(currentInformationDesks => utils$1.state.currentTrek.information_desks.includes(currentInformationDesks.id))) {
|
|
19420
19497
|
if (currentInformationDesk.latitude && currentInformationDesk.longitude) {
|
|
19421
19498
|
currentInformationDesksFeatureCollection.features.push({
|
|
19422
19499
|
type: 'Feature',
|
|
@@ -19447,7 +19524,7 @@ const GrwMap = class {
|
|
|
19447
19524
|
},
|
|
19448
19525
|
});
|
|
19449
19526
|
}
|
|
19450
|
-
if (
|
|
19527
|
+
if (utils$1.state.currentTrek.points_reference) {
|
|
19451
19528
|
const currentReferencePointsFeatureCollection = {
|
|
19452
19529
|
type: 'FeatureCollection',
|
|
19453
19530
|
features: [],
|
|
@@ -19455,7 +19532,7 @@ const GrwMap = class {
|
|
|
19455
19532
|
currentReferencePointsFeatureCollection.features.push({
|
|
19456
19533
|
type: 'Feature',
|
|
19457
19534
|
properties: {},
|
|
19458
|
-
geometry:
|
|
19535
|
+
geometry: utils$1.state.currentTrek.points_reference,
|
|
19459
19536
|
});
|
|
19460
19537
|
let index = 0;
|
|
19461
19538
|
this.currentReferencePointsLayer = leafletSrc.geoJSON(currentReferencePointsFeatureCollection, {
|
|
@@ -19473,20 +19550,20 @@ const GrwMap = class {
|
|
|
19473
19550
|
},
|
|
19474
19551
|
});
|
|
19475
19552
|
}
|
|
19476
|
-
if (!this.currentStepsLayer &&
|
|
19553
|
+
if (!this.currentStepsLayer && utils$1.state.parentTrekId && utils$1.state.parentTrek && utils$1.state.currentTrek.id === utils$1.state.parentTrekId) {
|
|
19477
19554
|
const stepsFeatureCollection = {
|
|
19478
19555
|
type: 'FeatureCollection',
|
|
19479
19556
|
features: [],
|
|
19480
19557
|
};
|
|
19481
|
-
if (
|
|
19482
|
-
for (const trek of
|
|
19558
|
+
if (utils$1.state.currentTrekSteps) {
|
|
19559
|
+
for (const trek of utils$1.state.currentTrekSteps) {
|
|
19483
19560
|
stepsFeatureCollection.features.push({
|
|
19484
19561
|
type: 'Feature',
|
|
19485
19562
|
geometry: { type: 'Point', coordinates: trek.departure_geom },
|
|
19486
19563
|
properties: {
|
|
19487
19564
|
id: trek.id,
|
|
19488
19565
|
name: trek.name,
|
|
19489
|
-
practice: (_d =
|
|
19566
|
+
practice: (_d = utils$1.state.practices.find(practice => practice.id === trek.practice)) === null || _d === void 0 ? void 0 : _d.pictogram,
|
|
19490
19567
|
imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,
|
|
19491
19568
|
},
|
|
19492
19569
|
});
|
|
@@ -19502,7 +19579,7 @@ const GrwMap = class {
|
|
|
19502
19579
|
html: `<div class="step-marker-container"><div class="step-number">${stepIndex}</div></div>`,
|
|
19503
19580
|
className: 'step-marker',
|
|
19504
19581
|
iconSize: 32,
|
|
19505
|
-
iconAnchor: [
|
|
19582
|
+
iconAnchor: [16, 32],
|
|
19506
19583
|
}),
|
|
19507
19584
|
autoPanOnFocus: false,
|
|
19508
19585
|
});
|
|
@@ -19574,35 +19651,35 @@ const GrwMap = class {
|
|
|
19574
19651
|
};
|
|
19575
19652
|
this.elevationControl = leafletSrc.control.elevation(Object.assign({}, elevationOptions)).addTo(this.map);
|
|
19576
19653
|
const elevation = JSON.stringify({
|
|
19577
|
-
name: `${
|
|
19654
|
+
name: `${utils$1.state.currentTrek.name}`,
|
|
19578
19655
|
type: 'FeatureCollection',
|
|
19579
|
-
features: [{ type: 'Feature', geometry: { type: 'LineString', coordinates:
|
|
19656
|
+
features: [{ type: 'Feature', geometry: { type: 'LineString', coordinates: utils$1.state.currentTrek.geometry.coordinates }, properties: null }],
|
|
19580
19657
|
});
|
|
19581
19658
|
this.elevationControl.load(elevation);
|
|
19582
19659
|
const overlays = {};
|
|
19583
19660
|
if (this.currentStepsLayer) {
|
|
19584
|
-
overlays[i18n.translate[
|
|
19661
|
+
overlays[i18n.translate[utils$1.state.language].layers.steps] = this.currentStepsLayer;
|
|
19585
19662
|
}
|
|
19586
19663
|
if (this.currentReferencePointsLayer) {
|
|
19587
|
-
overlays[i18n.translate[
|
|
19664
|
+
overlays[i18n.translate[utils$1.state.language].layers.referencePoints] = this.currentReferencePointsLayer;
|
|
19588
19665
|
}
|
|
19589
19666
|
if (this.currentParkingLayer) {
|
|
19590
|
-
overlays[i18n.translate[
|
|
19667
|
+
overlays[i18n.translate[utils$1.state.language].layers.parking] = this.currentParkingLayer;
|
|
19591
19668
|
}
|
|
19592
19669
|
if (this.currentSensitiveAreasLayer) {
|
|
19593
|
-
overlays[i18n.translate[
|
|
19670
|
+
overlays[i18n.translate[utils$1.state.language].layers.sensitiveArea] = this.currentSensitiveAreasLayer;
|
|
19594
19671
|
}
|
|
19595
19672
|
if (this.currentInformationDesksLayer) {
|
|
19596
|
-
overlays[i18n.translate[
|
|
19673
|
+
overlays[i18n.translate[utils$1.state.language].layers.informationPlaces] = this.currentInformationDesksLayer;
|
|
19597
19674
|
}
|
|
19598
19675
|
if (this.currentPoisLayer) {
|
|
19599
|
-
overlays[i18n.translate[
|
|
19676
|
+
overlays[i18n.translate[utils$1.state.language].layers.pois] = this.currentPoisLayer;
|
|
19600
19677
|
}
|
|
19601
19678
|
if (this.currentToutisticContentsLayer) {
|
|
19602
|
-
overlays[i18n.translate[
|
|
19679
|
+
overlays[i18n.translate[utils$1.state.language].layers.touristicContents] = this.currentToutisticContentsLayer;
|
|
19603
19680
|
}
|
|
19604
19681
|
if (this.currentToutisticEventsLayer) {
|
|
19605
|
-
overlays[i18n.translate[
|
|
19682
|
+
overlays[i18n.translate[utils$1.state.language].layers.touristicEvents] = this.currentToutisticEventsLayer;
|
|
19606
19683
|
}
|
|
19607
19684
|
if (this.layersControl) {
|
|
19608
19685
|
Object.keys(overlays).forEach(key => {
|
|
@@ -19613,7 +19690,7 @@ const GrwMap = class {
|
|
|
19613
19690
|
this.layersControl = leafletSrc.control.layers({}, overlays, { collapsed: true }).addTo(this.map);
|
|
19614
19691
|
}
|
|
19615
19692
|
this.handleLayersControlEvent();
|
|
19616
|
-
this.bounds = leafletSrc.latLngBounds(
|
|
19693
|
+
this.bounds = leafletSrc.latLngBounds(utils$1.state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));
|
|
19617
19694
|
this.bounds && this.map.fitBounds(this.bounds);
|
|
19618
19695
|
!this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
|
|
19619
19696
|
}
|
|
@@ -19623,21 +19700,21 @@ const GrwMap = class {
|
|
|
19623
19700
|
type: 'FeatureCollection',
|
|
19624
19701
|
features: [],
|
|
19625
19702
|
};
|
|
19626
|
-
if (
|
|
19627
|
-
const trek =
|
|
19703
|
+
if (utils$1.state.currentTreks) {
|
|
19704
|
+
const trek = utils$1.state.currentTreks.find(trek => trek.id === id);
|
|
19628
19705
|
treksFeatureCollection.features.push({
|
|
19629
19706
|
type: 'Feature',
|
|
19630
19707
|
geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] : trek.departure_geom },
|
|
19631
19708
|
properties: {
|
|
19632
19709
|
id: trek.id,
|
|
19633
19710
|
name: trek.name,
|
|
19634
|
-
practice: (_a =
|
|
19711
|
+
practice: (_a = utils$1.state.practices.find(practice => practice.id === trek.practice)) === null || _a === void 0 ? void 0 : _a.pictogram,
|
|
19635
19712
|
imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,
|
|
19636
19713
|
},
|
|
19637
19714
|
});
|
|
19638
19715
|
}
|
|
19639
19716
|
this.removeSelectedCurrentTrek();
|
|
19640
|
-
|
|
19717
|
+
utils$1.state.selectedTrekId = id;
|
|
19641
19718
|
this.selectedCurrentTrekLayer = leafletSrc.geoJSON(treksFeatureCollection, {
|
|
19642
19719
|
pointToLayer: (geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
|
|
19643
19720
|
zIndexOffset: 4000000,
|
|
@@ -19647,7 +19724,7 @@ const GrwMap = class {
|
|
|
19647
19724
|
: `<div class="trek-marker-container"></div>`,
|
|
19648
19725
|
className: 'selected-trek-marker',
|
|
19649
19726
|
iconSize: 64,
|
|
19650
|
-
iconAnchor: [
|
|
19727
|
+
iconAnchor: [32, 64],
|
|
19651
19728
|
}),
|
|
19652
19729
|
autoPanOnFocus: false,
|
|
19653
19730
|
}),
|
|
@@ -19673,18 +19750,18 @@ const GrwMap = class {
|
|
|
19673
19750
|
});
|
|
19674
19751
|
layer.on('mouseout', () => {
|
|
19675
19752
|
if (!this.trekPopupIsOpen) {
|
|
19676
|
-
|
|
19753
|
+
utils$1.state.selectedTrekId = null;
|
|
19677
19754
|
this.hideTrekLine();
|
|
19678
19755
|
this.removeSelectedCurrentTrek();
|
|
19679
19756
|
}
|
|
19680
19757
|
});
|
|
19681
19758
|
layer.on('popupopen', () => {
|
|
19682
|
-
this.trekPopupIsOpen = Boolean(
|
|
19759
|
+
this.trekPopupIsOpen = Boolean(utils$1.state.selectedTrekId);
|
|
19683
19760
|
});
|
|
19684
19761
|
layer.on('popupclose', () => {
|
|
19685
|
-
if (
|
|
19762
|
+
if (utils$1.state.selectedTrekId) {
|
|
19686
19763
|
this.trekPopupIsOpen = false;
|
|
19687
|
-
|
|
19764
|
+
utils$1.state.selectedTrekId = null;
|
|
19688
19765
|
this.hideTrekLine();
|
|
19689
19766
|
this.removeSelectedCurrentTrek();
|
|
19690
19767
|
}
|
|
@@ -19693,7 +19770,7 @@ const GrwMap = class {
|
|
|
19693
19770
|
}).addTo(this.map);
|
|
19694
19771
|
}
|
|
19695
19772
|
removeSelectedCurrentTrek() {
|
|
19696
|
-
|
|
19773
|
+
utils$1.state.selectedTrekId = null;
|
|
19697
19774
|
this.selectedCurrentTrekLayer && this.map.removeLayer(this.selectedCurrentTrekLayer);
|
|
19698
19775
|
this.selectedCurrentTrekLayer = null;
|
|
19699
19776
|
}
|
|
@@ -19703,22 +19780,22 @@ const GrwMap = class {
|
|
|
19703
19780
|
type: 'FeatureCollection',
|
|
19704
19781
|
features: [],
|
|
19705
19782
|
};
|
|
19706
|
-
if (
|
|
19707
|
-
const stepIndex =
|
|
19783
|
+
if (utils$1.state.currentTrekSteps) {
|
|
19784
|
+
const stepIndex = utils$1.state.currentTrekSteps.findIndex(trek => trek.id === id);
|
|
19708
19785
|
stepsFeatureCollection.features.push({
|
|
19709
19786
|
type: 'Feature',
|
|
19710
|
-
geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] :
|
|
19787
|
+
geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] : utils$1.state.currentTrekSteps[stepIndex].departure_geom },
|
|
19711
19788
|
properties: {
|
|
19712
|
-
id:
|
|
19713
|
-
name:
|
|
19714
|
-
practice: (_a =
|
|
19715
|
-
imgSrc:
|
|
19789
|
+
id: utils$1.state.currentTrekSteps[stepIndex].id,
|
|
19790
|
+
name: utils$1.state.currentTrekSteps[stepIndex].name,
|
|
19791
|
+
practice: (_a = utils$1.state.practices.find(practice => practice.id === utils$1.state.currentTrekSteps[stepIndex].practice)) === null || _a === void 0 ? void 0 : _a.pictogram,
|
|
19792
|
+
imgSrc: utils$1.state.currentTrekSteps[stepIndex].attachments && utils$1.state.currentTrekSteps[stepIndex].attachments.length > 0 && utils$1.state.currentTrekSteps[stepIndex].attachments[0].thumbnail,
|
|
19716
19793
|
index: stepIndex + 1,
|
|
19717
19794
|
},
|
|
19718
19795
|
});
|
|
19719
19796
|
}
|
|
19720
19797
|
this.removeSelectedCurrentStep();
|
|
19721
|
-
|
|
19798
|
+
utils$1.state.selectedStepId = id;
|
|
19722
19799
|
this.selectedCurrentStepLayer = leafletSrc.geoJSON(stepsFeatureCollection, {
|
|
19723
19800
|
pointToLayer: (geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
|
|
19724
19801
|
zIndexOffset: 4000000,
|
|
@@ -19726,7 +19803,7 @@ const GrwMap = class {
|
|
|
19726
19803
|
html: `<div class="step-marker-container"><div class="step-number">${geoJsonPoint.properties.index}</div></div>`,
|
|
19727
19804
|
className: 'selected-step-marker',
|
|
19728
19805
|
iconSize: 64,
|
|
19729
|
-
iconAnchor: [
|
|
19806
|
+
iconAnchor: [32, 64],
|
|
19730
19807
|
}),
|
|
19731
19808
|
autoPanOnFocus: false,
|
|
19732
19809
|
}),
|
|
@@ -19752,17 +19829,17 @@ const GrwMap = class {
|
|
|
19752
19829
|
});
|
|
19753
19830
|
layer.on('mouseout', () => {
|
|
19754
19831
|
if (!this.stepPopupIsOpen) {
|
|
19755
|
-
|
|
19832
|
+
utils$1.state.selectedTrekId = null;
|
|
19756
19833
|
this.removeSelectedCurrentStep();
|
|
19757
19834
|
}
|
|
19758
19835
|
});
|
|
19759
19836
|
layer.on('popupopen', () => {
|
|
19760
|
-
this.stepPopupIsOpen = Boolean(
|
|
19837
|
+
this.stepPopupIsOpen = Boolean(utils$1.state.selectedStepId);
|
|
19761
19838
|
});
|
|
19762
19839
|
layer.on('popupclose', () => {
|
|
19763
|
-
if (
|
|
19840
|
+
if (utils$1.state.selectedStepId) {
|
|
19764
19841
|
this.stepPopupIsOpen = false;
|
|
19765
|
-
|
|
19842
|
+
utils$1.state.selectedStepId = null;
|
|
19766
19843
|
this.removeSelectedCurrentStep();
|
|
19767
19844
|
}
|
|
19768
19845
|
});
|
|
@@ -19770,9 +19847,11 @@ const GrwMap = class {
|
|
|
19770
19847
|
}).addTo(this.map);
|
|
19771
19848
|
}
|
|
19772
19849
|
removeSelectedCurrentStep() {
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
|
|
19850
|
+
if (utils$1.state.selectedStepId) {
|
|
19851
|
+
utils$1.state.selectedStepId = null;
|
|
19852
|
+
this.selectedCurrentStepLayer && this.map.removeLayer(this.selectedCurrentStepLayer);
|
|
19853
|
+
this.selectedCurrentStepLayer = null;
|
|
19854
|
+
}
|
|
19776
19855
|
}
|
|
19777
19856
|
handleLayersControlEvent() {
|
|
19778
19857
|
const userLayersState = this.layersControl._layerControlInputs;
|
|
@@ -19842,7 +19921,7 @@ const GrwMap = class {
|
|
|
19842
19921
|
}
|
|
19843
19922
|
disconnectedCallback() {
|
|
19844
19923
|
if (this.resetStoreOnDisconnected) {
|
|
19845
|
-
|
|
19924
|
+
utils$1.reset();
|
|
19846
19925
|
}
|
|
19847
19926
|
}
|
|
19848
19927
|
showTrekLine(id) {
|
|
@@ -19868,20 +19947,20 @@ const GrwMap = class {
|
|
|
19868
19947
|
}
|
|
19869
19948
|
addTouristicContent() {
|
|
19870
19949
|
this.touristicContentPopupIsOpen = false;
|
|
19871
|
-
|
|
19950
|
+
utils$1.state.selectedTouristicContentId = null;
|
|
19872
19951
|
this.removeSelectedTouristicContent();
|
|
19873
19952
|
const touristicContentsFeatureCollection = {
|
|
19874
19953
|
type: 'FeatureCollection',
|
|
19875
19954
|
features: [],
|
|
19876
19955
|
};
|
|
19877
|
-
if (
|
|
19956
|
+
if (utils$1.state.currentTouristicContent) {
|
|
19878
19957
|
touristicContentsFeatureCollection.features.push({
|
|
19879
19958
|
type: 'Feature',
|
|
19880
|
-
geometry: { type: 'Point', coordinates:
|
|
19959
|
+
geometry: { type: 'Point', coordinates: utils$1.state.currentTouristicContent.geometry.coordinates },
|
|
19881
19960
|
properties: {
|
|
19882
|
-
id:
|
|
19883
|
-
name:
|
|
19884
|
-
practice:
|
|
19961
|
+
id: utils$1.state.currentTouristicContent.id,
|
|
19962
|
+
name: utils$1.state.currentTouristicContent.name,
|
|
19963
|
+
practice: utils$1.state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === utils$1.state.currentTouristicContent.category).pictogram,
|
|
19885
19964
|
},
|
|
19886
19965
|
});
|
|
19887
19966
|
}
|
|
@@ -19894,14 +19973,14 @@ const GrwMap = class {
|
|
|
19894
19973
|
: `<div class="touristic-content-marker-container"></div>`,
|
|
19895
19974
|
className: 'touristic-content-marker',
|
|
19896
19975
|
iconSize: 32,
|
|
19897
|
-
iconAnchor: [
|
|
19976
|
+
iconAnchor: [16, 64],
|
|
19898
19977
|
}),
|
|
19899
19978
|
autoPanOnFocus: false,
|
|
19900
19979
|
}),
|
|
19901
19980
|
});
|
|
19902
19981
|
this.map.addLayer(this.currentToutisticContentLayer);
|
|
19903
19982
|
}
|
|
19904
|
-
this.map.setView([
|
|
19983
|
+
this.map.setView([utils$1.state.currentTouristicContent.geometry.coordinates[1], utils$1.state.currentTouristicContent.geometry.coordinates[0]], this.maxZoom);
|
|
19905
19984
|
!this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
|
|
19906
19985
|
}
|
|
19907
19986
|
removeTouristicContent() {
|
|
@@ -19911,14 +19990,14 @@ const GrwMap = class {
|
|
|
19911
19990
|
}
|
|
19912
19991
|
}
|
|
19913
19992
|
addTouristicContents(resetBounds = false) {
|
|
19914
|
-
|
|
19993
|
+
utils$1.state.touristicContentsWithinBounds = utils$1.state.currentTouristicContents;
|
|
19915
19994
|
const touristicContentsCurrentCoordinates = [];
|
|
19916
19995
|
const touristicContentsFeatureCollection = {
|
|
19917
19996
|
type: 'FeatureCollection',
|
|
19918
19997
|
features: [],
|
|
19919
19998
|
};
|
|
19920
|
-
if (
|
|
19921
|
-
for (const currentTouristicContent of
|
|
19999
|
+
if (utils$1.state.currentTouristicContents) {
|
|
20000
|
+
for (const currentTouristicContent of utils$1.state.currentTouristicContents) {
|
|
19922
20001
|
touristicContentsCurrentCoordinates.push(currentTouristicContent.geometry.coordinates);
|
|
19923
20002
|
touristicContentsFeatureCollection.features.push({
|
|
19924
20003
|
type: 'Feature',
|
|
@@ -19926,18 +20005,19 @@ const GrwMap = class {
|
|
|
19926
20005
|
properties: {
|
|
19927
20006
|
id: currentTouristicContent.id,
|
|
19928
20007
|
name: currentTouristicContent.name,
|
|
19929
|
-
practice:
|
|
20008
|
+
practice: utils$1.state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === currentTouristicContent.category).pictogram,
|
|
20009
|
+
imgSrc: currentTouristicContent.attachments && currentTouristicContent.attachments.length > 0 && currentTouristicContent.attachments[0].thumbnail,
|
|
19930
20010
|
},
|
|
19931
20011
|
});
|
|
19932
20012
|
}
|
|
19933
20013
|
}
|
|
19934
20014
|
if (!this.toutisticContentsLayer) {
|
|
19935
|
-
if ((touristicContentsCurrentCoordinates.length > 0 && !
|
|
20015
|
+
if ((touristicContentsCurrentCoordinates.length > 0 && !utils$1.state.currentMapBounds) || resetBounds) {
|
|
19936
20016
|
this.bounds = leafletSrc.latLngBounds(touristicContentsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
|
|
19937
20017
|
}
|
|
19938
20018
|
else {
|
|
19939
|
-
if (
|
|
19940
|
-
this.bounds =
|
|
20019
|
+
if (utils$1.state.currentMapBounds) {
|
|
20020
|
+
this.bounds = utils$1.state.currentMapBounds;
|
|
19941
20021
|
}
|
|
19942
20022
|
}
|
|
19943
20023
|
this.toutisticContentsLayer = leafletSrc.geoJSON(touristicContentsFeatureCollection, {
|
|
@@ -19948,7 +20028,7 @@ const GrwMap = class {
|
|
|
19948
20028
|
: `<div class="touristic-content-marker-container"></div>`,
|
|
19949
20029
|
className: 'touristic-content-marker',
|
|
19950
20030
|
iconSize: 32,
|
|
19951
|
-
iconAnchor: [
|
|
20031
|
+
iconAnchor: [16, 64],
|
|
19952
20032
|
}),
|
|
19953
20033
|
autoPanOnFocus: false,
|
|
19954
20034
|
}),
|
|
@@ -19957,9 +20037,9 @@ const GrwMap = class {
|
|
|
19957
20037
|
const touristicContentCoordinatesPopup = leafletSrc.DomUtil.create('div');
|
|
19958
20038
|
touristicContentCoordinatesPopup.className = 'touristic-content-coordinates-popup';
|
|
19959
20039
|
if (geoJsonPoint.properties.imgSrc) {
|
|
19960
|
-
const
|
|
19961
|
-
|
|
19962
|
-
touristicContentCoordinatesPopup.appendChild(
|
|
20040
|
+
const touristicContentImg = leafletSrc.DomUtil.create('img');
|
|
20041
|
+
touristicContentImg.src = geoJsonPoint.properties.imgSrc;
|
|
20042
|
+
touristicContentCoordinatesPopup.appendChild(touristicContentImg);
|
|
19963
20043
|
}
|
|
19964
20044
|
const touristicContentName = leafletSrc.DomUtil.create('div');
|
|
19965
20045
|
touristicContentName.innerHTML = geoJsonPoint.properties.name;
|
|
@@ -19985,7 +20065,7 @@ const GrwMap = class {
|
|
|
19985
20065
|
html: '<div>' + cluster.getChildCount() + '</div>',
|
|
19986
20066
|
className: 'touristic-content-marker-cluster-group-icon',
|
|
19987
20067
|
iconSize: 48,
|
|
19988
|
-
iconAnchor: [24,
|
|
20068
|
+
iconAnchor: [24, 64],
|
|
19989
20069
|
});
|
|
19990
20070
|
},
|
|
19991
20071
|
});
|
|
@@ -20010,7 +20090,7 @@ const GrwMap = class {
|
|
|
20010
20090
|
}
|
|
20011
20091
|
removeTouristicContents() {
|
|
20012
20092
|
if (this.toutisticContentsLayer) {
|
|
20013
|
-
|
|
20093
|
+
utils$1.state.currentMapBounds = this.map.getBounds();
|
|
20014
20094
|
this.map.removeLayer(this.touristicContentsMarkerClusterGroup);
|
|
20015
20095
|
this.toutisticContentsLayer = null;
|
|
20016
20096
|
this.touristicContentsMarkerClusterGroup = null;
|
|
@@ -20022,14 +20102,14 @@ const GrwMap = class {
|
|
|
20022
20102
|
type: 'FeatureCollection',
|
|
20023
20103
|
features: [],
|
|
20024
20104
|
};
|
|
20025
|
-
if (
|
|
20105
|
+
if (utils$1.state.currentTouristicEvent) {
|
|
20026
20106
|
touristicEventsFeatureCollection.features.push({
|
|
20027
20107
|
type: 'Feature',
|
|
20028
|
-
geometry: { type: 'Point', coordinates:
|
|
20108
|
+
geometry: { type: 'Point', coordinates: utils$1.state.currentTouristicEvent.geometry.coordinates },
|
|
20029
20109
|
properties: {
|
|
20030
|
-
id:
|
|
20031
|
-
name:
|
|
20032
|
-
type:
|
|
20110
|
+
id: utils$1.state.currentTouristicEvent.id,
|
|
20111
|
+
name: utils$1.state.currentTouristicEvent.name,
|
|
20112
|
+
type: utils$1.state.touristicEventTypes.find(touristicEventType => touristicEventType.id === utils$1.state.currentTouristicEvent.type).pictogram,
|
|
20033
20113
|
},
|
|
20034
20114
|
});
|
|
20035
20115
|
}
|
|
@@ -20042,14 +20122,14 @@ const GrwMap = class {
|
|
|
20042
20122
|
: `<div class="touristic-event-marker-container"></div>`,
|
|
20043
20123
|
className: 'touristic-event-marker',
|
|
20044
20124
|
iconSize: 32,
|
|
20045
|
-
iconAnchor: [
|
|
20125
|
+
iconAnchor: [16, 64],
|
|
20046
20126
|
}),
|
|
20047
20127
|
autoPanOnFocus: false,
|
|
20048
20128
|
}),
|
|
20049
20129
|
});
|
|
20050
20130
|
this.map.addLayer(this.currentToutisticEventLayer);
|
|
20051
20131
|
}
|
|
20052
|
-
this.map.setView([
|
|
20132
|
+
this.map.setView([utils$1.state.currentTouristicEvent.geometry.coordinates[1], utils$1.state.currentTouristicEvent.geometry.coordinates[0]], this.maxZoom);
|
|
20053
20133
|
!this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
|
|
20054
20134
|
}
|
|
20055
20135
|
removeTouristicEvent() {
|
|
@@ -20064,31 +20144,31 @@ const GrwMap = class {
|
|
|
20064
20144
|
type: 'FeatureCollection',
|
|
20065
20145
|
features: [],
|
|
20066
20146
|
};
|
|
20067
|
-
if (
|
|
20068
|
-
const touristicContent =
|
|
20147
|
+
if (utils$1.state.touristicContents) {
|
|
20148
|
+
const touristicContent = utils$1.state.touristicContents.find(touristicContent => touristicContent.id === id);
|
|
20069
20149
|
touristicContentFeatureCollection.features.push({
|
|
20070
20150
|
type: 'Feature',
|
|
20071
20151
|
geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] : touristicContent.geometry.coordinates },
|
|
20072
20152
|
properties: {
|
|
20073
20153
|
id: touristicContent.id,
|
|
20074
20154
|
name: touristicContent.name,
|
|
20075
|
-
category: (_a =
|
|
20155
|
+
category: (_a = utils$1.state.touristicContentCategories.find(practice => practice.id === touristicContent.category)) === null || _a === void 0 ? void 0 : _a.pictogram,
|
|
20076
20156
|
imgSrc: touristicContent.attachments && touristicContent.attachments.length > 0 && touristicContent.attachments[0].thumbnail,
|
|
20077
20157
|
},
|
|
20078
20158
|
});
|
|
20079
20159
|
}
|
|
20080
20160
|
this.removeSelectedTouristicContent();
|
|
20081
|
-
|
|
20161
|
+
utils$1.state.selectedTouristicContentId = id;
|
|
20082
20162
|
this.selectedTouristicContentLayer = leafletSrc.geoJSON(touristicContentFeatureCollection, {
|
|
20083
20163
|
pointToLayer: (geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
|
|
20084
20164
|
zIndexOffset: 4000000,
|
|
20085
20165
|
icon: leafletSrc.divIcon({
|
|
20086
20166
|
html: geoJsonPoint.properties.category
|
|
20087
20167
|
? `<div class="touristic-content-marker-container"><img src=${geoJsonPoint.properties.category} /></div>`
|
|
20088
|
-
: `<div class="touristic-content-
|
|
20168
|
+
: `<div class="touristic-content-marker-container"></div>`,
|
|
20089
20169
|
className: 'selected-touristic-content-marker',
|
|
20090
20170
|
iconSize: 64,
|
|
20091
|
-
iconAnchor: [
|
|
20171
|
+
iconAnchor: [32, 64],
|
|
20092
20172
|
}),
|
|
20093
20173
|
autoPanOnFocus: false,
|
|
20094
20174
|
}),
|
|
@@ -20114,17 +20194,17 @@ const GrwMap = class {
|
|
|
20114
20194
|
});
|
|
20115
20195
|
layer.on('mouseout', () => {
|
|
20116
20196
|
if (!this.touristicContentPopupIsOpen) {
|
|
20117
|
-
|
|
20197
|
+
utils$1.state.selectedTouristicContentId = null;
|
|
20118
20198
|
this.removeSelectedTouristicContent();
|
|
20119
20199
|
}
|
|
20120
20200
|
});
|
|
20121
20201
|
layer.on('popupopen', () => {
|
|
20122
|
-
this.touristicContentPopupIsOpen = Boolean(
|
|
20202
|
+
this.touristicContentPopupIsOpen = Boolean(utils$1.state.selectedTouristicContentId);
|
|
20123
20203
|
});
|
|
20124
20204
|
layer.on('popupclose', () => {
|
|
20125
|
-
if (
|
|
20205
|
+
if (utils$1.state.selectedTouristicContentId) {
|
|
20126
20206
|
this.touristicContentPopupIsOpen = false;
|
|
20127
|
-
|
|
20207
|
+
utils$1.state.selectedTouristicContentId = null;
|
|
20128
20208
|
this.removeSelectedTouristicContent();
|
|
20129
20209
|
}
|
|
20130
20210
|
});
|
|
@@ -20132,10 +20212,197 @@ const GrwMap = class {
|
|
|
20132
20212
|
}).addTo(this.map);
|
|
20133
20213
|
}
|
|
20134
20214
|
removeSelectedTouristicContent() {
|
|
20135
|
-
|
|
20215
|
+
utils$1.state.selectedTouristicContentId = null;
|
|
20136
20216
|
this.selectedTouristicContentLayer && this.map.removeLayer(this.selectedTouristicContentLayer);
|
|
20137
20217
|
this.selectedTouristicContentLayer = null;
|
|
20138
20218
|
}
|
|
20219
|
+
addTouristicEvents(resetBounds = false) {
|
|
20220
|
+
var _a;
|
|
20221
|
+
utils$1.state.touristicEventsWithinBounds = utils$1.state.currentTouristicEvents;
|
|
20222
|
+
const touristicEventsCurrentCoordinates = [];
|
|
20223
|
+
const touristicEventsFeatureCollection = {
|
|
20224
|
+
type: 'FeatureCollection',
|
|
20225
|
+
features: [],
|
|
20226
|
+
};
|
|
20227
|
+
if (utils$1.state.currentTouristicEvents) {
|
|
20228
|
+
for (const currentTouristicEvent of utils$1.state.currentTouristicEvents) {
|
|
20229
|
+
touristicEventsCurrentCoordinates.push(currentTouristicEvent.geometry.coordinates);
|
|
20230
|
+
touristicEventsFeatureCollection.features.push({
|
|
20231
|
+
type: 'Feature',
|
|
20232
|
+
geometry: { type: 'Point', coordinates: currentTouristicEvent.geometry.coordinates },
|
|
20233
|
+
properties: {
|
|
20234
|
+
id: currentTouristicEvent.id,
|
|
20235
|
+
name: currentTouristicEvent.name,
|
|
20236
|
+
type: (_a = utils$1.state.touristicEventTypes.find(touristicEventType => touristicEventType.id === currentTouristicEvent.type)) === null || _a === void 0 ? void 0 : _a.pictogram,
|
|
20237
|
+
imgSrc: currentTouristicEvent.attachments && currentTouristicEvent.attachments.length > 0 && currentTouristicEvent.attachments[0].thumbnail,
|
|
20238
|
+
},
|
|
20239
|
+
});
|
|
20240
|
+
}
|
|
20241
|
+
}
|
|
20242
|
+
if (!this.toutisticEventsLayer) {
|
|
20243
|
+
if ((touristicEventsCurrentCoordinates.length > 0 && !utils$1.state.currentMapBounds) || resetBounds) {
|
|
20244
|
+
this.bounds = leafletSrc.latLngBounds(touristicEventsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
|
|
20245
|
+
}
|
|
20246
|
+
else {
|
|
20247
|
+
if (utils$1.state.currentMapBounds) {
|
|
20248
|
+
this.bounds = utils$1.state.currentMapBounds;
|
|
20249
|
+
}
|
|
20250
|
+
}
|
|
20251
|
+
this.toutisticEventsLayer = leafletSrc.geoJSON(touristicEventsFeatureCollection, {
|
|
20252
|
+
pointToLayer: (geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
|
|
20253
|
+
icon: leafletSrc.divIcon({
|
|
20254
|
+
html: geoJsonPoint.properties.type
|
|
20255
|
+
? `<div class="touristic-event-marker-container"><img src=${geoJsonPoint.properties.type} /></div>`
|
|
20256
|
+
: `<div class="touristic-event-marker-container"></div>`,
|
|
20257
|
+
className: 'touristic-event-marker',
|
|
20258
|
+
iconSize: 32,
|
|
20259
|
+
iconAnchor: [16, 64],
|
|
20260
|
+
}),
|
|
20261
|
+
autoPanOnFocus: false,
|
|
20262
|
+
}),
|
|
20263
|
+
onEachFeature: (geoJsonPoint, layer) => {
|
|
20264
|
+
layer.once('click', () => {
|
|
20265
|
+
const touristicEventCoordinatesPopup = leafletSrc.DomUtil.create('div');
|
|
20266
|
+
touristicEventCoordinatesPopup.className = 'touristic-event-coordinates-popup';
|
|
20267
|
+
if (geoJsonPoint.properties.imgSrc) {
|
|
20268
|
+
const touristicEventImg = leafletSrc.DomUtil.create('img');
|
|
20269
|
+
touristicEventImg.src = geoJsonPoint.properties.imgSrc;
|
|
20270
|
+
touristicEventCoordinatesPopup.appendChild(touristicEventImg);
|
|
20271
|
+
}
|
|
20272
|
+
const touristicEventName = leafletSrc.DomUtil.create('div');
|
|
20273
|
+
touristicEventName.innerHTML = geoJsonPoint.properties.name;
|
|
20274
|
+
touristicEventName.className = 'touristic-event-name';
|
|
20275
|
+
touristicEventCoordinatesPopup.appendChild(touristicEventName);
|
|
20276
|
+
const touristicEventButton = leafletSrc.DomUtil.create('button');
|
|
20277
|
+
touristicEventButton.innerHTML = 'Afficher le détail';
|
|
20278
|
+
touristicEventButton.className = 'touristic-event-button';
|
|
20279
|
+
touristicEventButton.onclick = () => this.touristicEventCardPress.emit(geoJsonPoint.properties.id);
|
|
20280
|
+
touristicEventCoordinatesPopup.appendChild(touristicEventButton);
|
|
20281
|
+
layer.bindPopup(touristicEventCoordinatesPopup, { interactive: true, autoPan: false, closeButton: false }).openPopup();
|
|
20282
|
+
});
|
|
20283
|
+
layer.on('mouseover', e => {
|
|
20284
|
+
this.addSelectedTouristicEvent(geoJsonPoint.properties.id, e.latlng);
|
|
20285
|
+
});
|
|
20286
|
+
},
|
|
20287
|
+
});
|
|
20288
|
+
this.touristicEventsMarkerClusterGroup = leafletSrc.markerClusterGroup({
|
|
20289
|
+
showCoverageOnHover: false,
|
|
20290
|
+
removeOutsideVisibleBounds: false,
|
|
20291
|
+
iconCreateFunction: cluster => {
|
|
20292
|
+
return leafletSrc.divIcon({
|
|
20293
|
+
html: '<div>' + cluster.getChildCount() + '</div>',
|
|
20294
|
+
className: 'touristic-event-marker-cluster-group-icon',
|
|
20295
|
+
iconSize: 48,
|
|
20296
|
+
iconAnchor: [24, 64],
|
|
20297
|
+
});
|
|
20298
|
+
},
|
|
20299
|
+
});
|
|
20300
|
+
this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer);
|
|
20301
|
+
this.map.addLayer(this.touristicEventsMarkerClusterGroup);
|
|
20302
|
+
}
|
|
20303
|
+
else {
|
|
20304
|
+
if (touristicEventsCurrentCoordinates.length > 0) {
|
|
20305
|
+
this.bounds = leafletSrc.latLngBounds(touristicEventsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
|
|
20306
|
+
}
|
|
20307
|
+
else {
|
|
20308
|
+
this.map.fire('moveend');
|
|
20309
|
+
}
|
|
20310
|
+
this.toutisticEventsLayer.clearLayers();
|
|
20311
|
+
this.toutisticEventsLayer.addData(touristicEventsFeatureCollection);
|
|
20312
|
+
this.touristicEventsMarkerClusterGroup.clearLayers();
|
|
20313
|
+
this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer);
|
|
20314
|
+
}
|
|
20315
|
+
this.bounds && this.map.fitBounds(this.bounds);
|
|
20316
|
+
!this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
|
|
20317
|
+
this.map.on('moveend', this.handleTouristicEventsWithinBoundsBind);
|
|
20318
|
+
}
|
|
20319
|
+
removeTouristicEvents() {
|
|
20320
|
+
if (this.toutisticEventsLayer) {
|
|
20321
|
+
utils$1.state.currentMapBounds = this.map.getBounds();
|
|
20322
|
+
this.map.removeLayer(this.touristicEventsMarkerClusterGroup);
|
|
20323
|
+
this.toutisticEventsLayer = null;
|
|
20324
|
+
this.touristicEventsMarkerClusterGroup = null;
|
|
20325
|
+
this.map.off('moveend', this.handleTouristicEventsWithinBoundsBind);
|
|
20326
|
+
}
|
|
20327
|
+
}
|
|
20328
|
+
addSelectedTouristicEvent(id, customCoordinates) {
|
|
20329
|
+
var _a;
|
|
20330
|
+
const touristicEventFeatureCollection = {
|
|
20331
|
+
type: 'FeatureCollection',
|
|
20332
|
+
features: [],
|
|
20333
|
+
};
|
|
20334
|
+
if (utils$1.state.touristicEvents) {
|
|
20335
|
+
const touristicEvent = utils$1.state.touristicEvents.find(touristicEvent => touristicEvent.id === id);
|
|
20336
|
+
touristicEventFeatureCollection.features.push({
|
|
20337
|
+
type: 'Feature',
|
|
20338
|
+
geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] : touristicEvent.geometry.coordinates },
|
|
20339
|
+
properties: {
|
|
20340
|
+
id: touristicEvent.id,
|
|
20341
|
+
name: touristicEvent.name,
|
|
20342
|
+
category: (_a = utils$1.state.touristicEventTypes.find(type => type.id === touristicEvent.type)) === null || _a === void 0 ? void 0 : _a.pictogram,
|
|
20343
|
+
imgSrc: touristicEvent.attachments && touristicEvent.attachments.length > 0 && touristicEvent.attachments[0].thumbnail,
|
|
20344
|
+
},
|
|
20345
|
+
});
|
|
20346
|
+
}
|
|
20347
|
+
this.removeSelectedTouristicEvent();
|
|
20348
|
+
utils$1.state.selectedTouristicEventId = id;
|
|
20349
|
+
this.selectedTouristicEventLayer = leafletSrc.geoJSON(touristicEventFeatureCollection, {
|
|
20350
|
+
pointToLayer: (geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
|
|
20351
|
+
zIndexOffset: 4000000,
|
|
20352
|
+
icon: leafletSrc.divIcon({
|
|
20353
|
+
html: geoJsonPoint.properties.category
|
|
20354
|
+
? `<div class="touristic-event-marker-container"><img src=${geoJsonPoint.properties.category} /></div>`
|
|
20355
|
+
: `<div class="touristic-event-marker-container"></div>`,
|
|
20356
|
+
className: 'selected-touristic-event-marker',
|
|
20357
|
+
iconSize: 64,
|
|
20358
|
+
iconAnchor: [32, 64],
|
|
20359
|
+
}),
|
|
20360
|
+
autoPanOnFocus: false,
|
|
20361
|
+
}),
|
|
20362
|
+
onEachFeature: (geoJsonPoint, layer) => {
|
|
20363
|
+
layer.once('click', () => {
|
|
20364
|
+
const touristicEventDeparturePopup = leafletSrc.DomUtil.create('div');
|
|
20365
|
+
touristicEventDeparturePopup.className = 'touristic-event-coordinates-popup';
|
|
20366
|
+
if (geoJsonPoint.properties.imgSrc) {
|
|
20367
|
+
const touristicEventImg = leafletSrc.DomUtil.create('img');
|
|
20368
|
+
touristicEventImg.src = geoJsonPoint.properties.imgSrc;
|
|
20369
|
+
touristicEventDeparturePopup.appendChild(touristicEventImg);
|
|
20370
|
+
}
|
|
20371
|
+
const touristicEventName = leafletSrc.DomUtil.create('div');
|
|
20372
|
+
touristicEventName.innerHTML = geoJsonPoint.properties.name;
|
|
20373
|
+
touristicEventName.className = 'touristic-event-name';
|
|
20374
|
+
touristicEventDeparturePopup.appendChild(touristicEventName);
|
|
20375
|
+
const touristicEventButton = leafletSrc.DomUtil.create('button');
|
|
20376
|
+
touristicEventButton.innerHTML = 'Afficher le détail';
|
|
20377
|
+
touristicEventButton.className = 'touristic-event-button';
|
|
20378
|
+
touristicEventButton.onclick = () => this.touristicEventCardPress.emit(geoJsonPoint.properties.id);
|
|
20379
|
+
touristicEventDeparturePopup.appendChild(touristicEventButton);
|
|
20380
|
+
layer.bindPopup(touristicEventDeparturePopup, { interactive: true, autoPan: false, closeButton: false }).openPopup();
|
|
20381
|
+
});
|
|
20382
|
+
layer.on('mouseout', () => {
|
|
20383
|
+
if (!this.touristicEventPopupIsOpen) {
|
|
20384
|
+
utils$1.state.selectedTouristicEventId = null;
|
|
20385
|
+
this.removeSelectedTouristicEvent();
|
|
20386
|
+
}
|
|
20387
|
+
});
|
|
20388
|
+
layer.on('popupopen', () => {
|
|
20389
|
+
this.touristicEventPopupIsOpen = Boolean(utils$1.state.selectedTouristicEventId);
|
|
20390
|
+
});
|
|
20391
|
+
layer.on('popupclose', () => {
|
|
20392
|
+
if (utils$1.state.selectedTouristicEventId) {
|
|
20393
|
+
this.touristicEventPopupIsOpen = false;
|
|
20394
|
+
utils$1.state.selectedTouristicEventId = null;
|
|
20395
|
+
this.removeSelectedTouristicEvent();
|
|
20396
|
+
}
|
|
20397
|
+
});
|
|
20398
|
+
},
|
|
20399
|
+
}).addTo(this.map);
|
|
20400
|
+
}
|
|
20401
|
+
removeSelectedTouristicEvent() {
|
|
20402
|
+
utils$1.state.selectedTouristicEventId = null;
|
|
20403
|
+
this.selectedTouristicEventLayer && this.map.removeLayer(this.selectedTouristicEventLayer);
|
|
20404
|
+
this.selectedTouristicEventLayer = null;
|
|
20405
|
+
}
|
|
20139
20406
|
render() {
|
|
20140
20407
|
const layersImageSrc = index.getAssetPath(`${''}assets/layers.svg`);
|
|
20141
20408
|
const contractImageSrc = index.getAssetPath(`${''}assets/contract.svg`);
|
|
@@ -20150,7 +20417,7 @@ const GrwMap = class {
|
|
|
20150
20417
|
'--layers-image-src': `url(${layersImageSrc})`,
|
|
20151
20418
|
'--contract-image-src': `url(${contractImageSrc})`,
|
|
20152
20419
|
'--map-bottom-space-height': this.isLargeView ? '0px' : '70px',
|
|
20153
|
-
} }, index.h("div", { id: "map", style: {}, class:
|
|
20420
|
+
} }, index.h("div", { id: "map", style: {}, class: utils$1.state.currentTrek ? 'trek-map' : 'treks-map', ref: el => (this.mapRef = el) }), utils$1.state.currentTrek && (index.h("div", null, index.h("div", { id: "elevation", ref: el => (this.elevationRef = el) }), index.h("div", { class: "map-bottom-space" }))), !this.mapIsReady && (index.h("div", { class: "map-loader-container" }, index.h("span", { class: "loader" })))));
|
|
20154
20421
|
}
|
|
20155
20422
|
};
|
|
20156
20423
|
GrwMap.style = grwMapCss;
|
|
@@ -20162,20 +20429,41 @@ const GrwSearch = class {
|
|
|
20162
20429
|
index.registerInstance(this, hostRef);
|
|
20163
20430
|
}
|
|
20164
20431
|
onSearchChange(event) {
|
|
20165
|
-
|
|
20166
|
-
if (
|
|
20167
|
-
|
|
20432
|
+
utils$1.state.searchValue = event.target.value;
|
|
20433
|
+
if (utils$1.state.mode === 'treks') {
|
|
20434
|
+
utils$1.state.currentTreks = utils$1.handleTreksFiltersAndSearch();
|
|
20168
20435
|
}
|
|
20169
|
-
else if (
|
|
20170
|
-
|
|
20436
|
+
else if (utils$1.state.mode === 'touristicContents') {
|
|
20437
|
+
utils$1.state.currentTouristicContents = utils$1.handleTouristicContentsFiltersAndSearch();
|
|
20438
|
+
}
|
|
20439
|
+
else if (utils$1.state.mode === 'touristicEvents') {
|
|
20440
|
+
utils$1.state.currentTouristicEvents = utils$1.handleTouristicEventsFiltersAndSearch();
|
|
20171
20441
|
}
|
|
20172
20442
|
}
|
|
20173
20443
|
render() {
|
|
20174
|
-
return (index.h(index.Host, null, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "search"), index.h("input", { onInput: e => this.onSearchChange(e), class: "search-input", type: "search", placeholder: "Rechercher", value:
|
|
20444
|
+
return (index.h(index.Host, null, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "search"), index.h("input", { onInput: e => this.onSearchChange(e), class: "search-input", type: "search", placeholder: "Rechercher", value: utils$1.state.searchValue })));
|
|
20175
20445
|
}
|
|
20176
20446
|
};
|
|
20177
20447
|
GrwSearch.style = grwSearchCss;
|
|
20178
20448
|
|
|
20449
|
+
const grwSelectLanguageCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}";
|
|
20450
|
+
|
|
20451
|
+
const GrwSelectLanguage = class {
|
|
20452
|
+
constructor(hostRef) {
|
|
20453
|
+
index.registerInstance(this, hostRef);
|
|
20454
|
+
}
|
|
20455
|
+
handleSelect(event) {
|
|
20456
|
+
utils$1.state.treks = null;
|
|
20457
|
+
utils$1.state.currentTreks = null;
|
|
20458
|
+
utils$1.state.currentTrek = null;
|
|
20459
|
+
utils$1.state.language = event.target.value;
|
|
20460
|
+
}
|
|
20461
|
+
render() {
|
|
20462
|
+
return (index.h(index.Host, null, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined margin-right-icon" }, "translate"), index.h("select", { onInput: event => this.handleSelect(event), name: "languages", id: "language-select" }, utils$1.state.languages.map(language => (index.h("option", { selected: language === utils$1.state.language, value: language.toLocaleLowerCase() }, language.toLocaleUpperCase()))))));
|
|
20463
|
+
}
|
|
20464
|
+
};
|
|
20465
|
+
GrwSelectLanguage.style = grwSelectLanguageCss;
|
|
20466
|
+
|
|
20179
20467
|
/* eslint-disable consistent-return */
|
|
20180
20468
|
function Mousewheel({
|
|
20181
20469
|
swiper,
|
|
@@ -20828,16 +21116,16 @@ const GrwTouristicContentDetail = class {
|
|
|
20828
21116
|
}
|
|
20829
21117
|
}
|
|
20830
21118
|
handleFullscreen() {
|
|
20831
|
-
if (
|
|
21119
|
+
if (utils$1.state.currentTouristicContent.attachments && utils$1.state.currentTouristicContent.attachments[0] && utils$1.state.currentTouristicContent.attachments[0].url) {
|
|
20832
21120
|
this.swiperImagesRef.requestFullscreen();
|
|
20833
21121
|
}
|
|
20834
21122
|
}
|
|
20835
21123
|
render() {
|
|
20836
21124
|
const defaultImageSrc = index.getAssetPath(`${''}assets/default-image.svg`);
|
|
20837
|
-
const touristicContentCategory =
|
|
20838
|
-
|
|
20839
|
-
|
|
20840
|
-
const cities =
|
|
21125
|
+
const touristicContentCategory = utils$1.state.touristicContentCategories &&
|
|
21126
|
+
utils$1.state.currentTouristicContent &&
|
|
21127
|
+
utils$1.state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === utils$1.state.currentTouristicContent.category);
|
|
21128
|
+
const cities = utils$1.state.currentTouristicContent && utils$1.state.currentTouristicContent.cities.map(currentCity => { var _a; return (_a = utils$1.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
|
|
20841
21129
|
return (index.h(index.Host, { style: {
|
|
20842
21130
|
'--color-primary-app': this.colorPrimaryApp,
|
|
20843
21131
|
'--color-on-surface': this.colorOnSurface,
|
|
@@ -20847,9 +21135,9 @@ const GrwTouristicContentDetail = class {
|
|
|
20847
21135
|
'--color-on-secondary-container': this.colorOnSecondaryContainer,
|
|
20848
21136
|
'--color-background': this.colorBackground,
|
|
20849
21137
|
'--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
|
|
20850
|
-
} },
|
|
21138
|
+
} }, utils$1.state.currentTouristicContent && (index.h("div", { class: "touristic-content-detail-container", ref: el => (this.touristicContentDetailContainerRef = el) }, index.h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { class: "swiper-wrapper" }, utils$1.state.currentTouristicContent.attachments.length > 0 ? (utils$1.state.currentTouristicContent.attachments
|
|
20851
21139
|
.filter(attachment => attachment.type === 'image')
|
|
20852
|
-
.map(attachment => (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "touristic-content-category-container" }, index.h("img", { src: touristicContentCategory.pictogram }), index.h("div", { class: "touristic-content-category-name" }, touristicContentCategory.label)), index.h("div", { class: "name" },
|
|
21140
|
+
.map(attachment => (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "touristic-content-category-container" }, index.h("img", { src: touristicContentCategory.pictogram }), index.h("div", { class: "touristic-content-category-name" }, touristicContentCategory.label)), index.h("div", { class: "name" }, utils$1.state.currentTouristicContent.name), index.h("div", { class: "divider" }), index.h("div", { class: "downloads-container" }, index.h("div", { class: "download-title" }, i18n.translate[utils$1.state.language].download), index.h("div", { class: "links-container" }, index.h("a", { href: `${utils$1.state.currentTouristicContent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), utils$1.state.currentTouristicContent.description_teaser && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "description-teaser", innerHTML: utils$1.state.currentTouristicContent.description_teaser }))), index.h("div", { class: "divider" }), utils$1.state.currentTouristicContent.practical_info && (index.h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { class: "description-title" }, i18n.translate[utils$1.state.language].description), index.h("div", { class: "description", innerHTML: utils$1.state.currentTouristicContent.description }))), cities && cities.length > 0 && (index.h("div", { class: "cities-container" }, index.h("div", { class: "cities-title" }, i18n.translate[utils$1.state.language].city, " :\u00A0"), index.h("div", { innerHTML: cities.join(', ') }))), utils$1.state.currentTouristicContent.practical_info && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "useful-information-container" }, index.h("div", { class: "useful-information-title" }, i18n.translate[utils$1.state.language].usefulInformation, " :\u00A0"), index.h("div", { innerHTML: utils$1.state.currentTouristicContent.practical_info })))), (utils$1.state.currentTouristicContent.contact || utils$1.state.currentTouristicContent.email || utils$1.state.currentTouristicContent.website) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "contact-container" }, index.h("div", { class: "contact-title" }, i18n.translate[utils$1.state.language].contact, " :\u00A0"), utils$1.state.currentTouristicContent.contact && index.h("div", { innerHTML: utils$1.state.currentTouristicContent.contact }), utils$1.state.currentTouristicContent.email && (index.h("div", { class: "email-container" }, index.h("div", null, i18n.translate[utils$1.state.language].email, " :\u00A0"), index.h("div", { innerHTML: utils$1.state.currentTouristicContent.email }))), utils$1.state.currentTouristicContent.website && (index.h("div", { class: "website-container" }, index.h("div", null, i18n.translate[utils$1.state.language].website, " :\u00A0"), index.h("div", { innerHTML: utils$1.state.currentTouristicContent.website })))))), index.h("div", { class: "detail-bottom-space" })))));
|
|
20853
21141
|
}
|
|
20854
21142
|
};
|
|
20855
21143
|
GrwTouristicContentDetail.style = grwTouristicContentDetailCss;
|
|
@@ -20866,41 +21154,41 @@ const GrwTouristicContentProvider = class {
|
|
|
20866
21154
|
this.portals = undefined;
|
|
20867
21155
|
}
|
|
20868
21156
|
connectedCallback() {
|
|
20869
|
-
if (!
|
|
20870
|
-
|
|
20871
|
-
|
|
20872
|
-
|
|
21157
|
+
if (!utils$1.state.api) {
|
|
21158
|
+
utils$1.state.api = this.api;
|
|
21159
|
+
utils$1.state.languages = this.languages.split(',');
|
|
21160
|
+
utils$1.state.language = utils$1.state.languages[0];
|
|
20873
21161
|
}
|
|
20874
21162
|
this.handleTouristicContent();
|
|
20875
21163
|
}
|
|
20876
21164
|
handleTouristicContent() {
|
|
20877
21165
|
const requests = [];
|
|
20878
|
-
requests.push(!
|
|
20879
|
-
requests.push(!
|
|
20880
|
-
? fetch(`${
|
|
21166
|
+
requests.push(!utils$1.state.cities ? fetch(`${utils$1.state.api}city/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
|
|
21167
|
+
requests.push(!utils$1.state.touristicContentCategories
|
|
21168
|
+
? fetch(`${utils$1.state.api}touristiccontent_category/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&published=true&fields=id,label,pictogram&page_size=999`, this.init)
|
|
20881
21169
|
: new Response('null'));
|
|
20882
21170
|
Promise.all([
|
|
20883
21171
|
...requests,
|
|
20884
|
-
fetch(`${
|
|
21172
|
+
fetch(`${utils$1.state.api}touristiccontent/${this.touristicContentId}/?language=${utils$1.state.language}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website`, this.init),
|
|
20885
21173
|
])
|
|
20886
21174
|
.then(responses => Promise.all(responses.map(response => response.json())))
|
|
20887
21175
|
.then(([cities, touristicContentCategory, touristicContent]) => {
|
|
20888
|
-
|
|
21176
|
+
utils$1.state.trekNetworkError = false;
|
|
20889
21177
|
if (cities) {
|
|
20890
|
-
|
|
21178
|
+
utils$1.state.cities = cities.results;
|
|
20891
21179
|
}
|
|
20892
21180
|
if (touristicContentCategory) {
|
|
20893
|
-
|
|
21181
|
+
utils$1.state.touristicContentCategories = touristicContentCategory.results;
|
|
20894
21182
|
}
|
|
20895
|
-
|
|
21183
|
+
utils$1.state.currentTouristicContent = touristicContent;
|
|
20896
21184
|
})
|
|
20897
21185
|
.catch(() => {
|
|
20898
|
-
|
|
21186
|
+
utils$1.state.trekNetworkError = true;
|
|
20899
21187
|
});
|
|
20900
21188
|
}
|
|
20901
21189
|
disconnectedCallback() {
|
|
20902
21190
|
this.controller.abort();
|
|
20903
|
-
|
|
21191
|
+
utils$1.state.trekNetworkError = false;
|
|
20904
21192
|
}
|
|
20905
21193
|
render() {
|
|
20906
21194
|
return index.h(index.Host, null);
|
|
@@ -20909,7 +21197,7 @@ const GrwTouristicContentProvider = class {
|
|
|
20909
21197
|
|
|
20910
21198
|
const grwTouristicContentsListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{font-family:\"Roboto\";width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-content-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";
|
|
20911
21199
|
|
|
20912
|
-
const GrwTouristicContentsList = class {
|
|
21200
|
+
const GrwTouristicContentsList$1 = class {
|
|
20913
21201
|
constructor(hostRef) {
|
|
20914
21202
|
index.registerInstance(this, hostRef);
|
|
20915
21203
|
this.step = 10;
|
|
@@ -20926,29 +21214,29 @@ const GrwTouristicContentsList = class {
|
|
|
20926
21214
|
}
|
|
20927
21215
|
connectedCallback() {
|
|
20928
21216
|
this.handleInfiniteScrollEvent(true);
|
|
20929
|
-
if (
|
|
20930
|
-
this.touristicContentsToDisplay = [...
|
|
21217
|
+
if (utils$1.state.currentTouristicContents) {
|
|
21218
|
+
this.touristicContentsToDisplay = [...utils$1.state.currentTouristicContents.slice(0, this.step)];
|
|
20931
21219
|
}
|
|
20932
|
-
|
|
21220
|
+
utils$1.onChange('currentTouristicContents', () => {
|
|
20933
21221
|
this.handleInfiniteScrollEvent(true);
|
|
20934
21222
|
this.element.scroll({ top: 0 });
|
|
20935
|
-
if (
|
|
20936
|
-
this.touristicContentsToDisplay = [...
|
|
21223
|
+
if (utils$1.state.currentTouristicContents) {
|
|
21224
|
+
this.touristicContentsToDisplay = [...utils$1.state.currentTouristicContents.slice(0, this.step)];
|
|
20937
21225
|
}
|
|
20938
21226
|
});
|
|
20939
|
-
|
|
21227
|
+
utils$1.onChange('touristicContentsWithinBounds', () => {
|
|
20940
21228
|
this.handleInfiniteScrollEvent(true);
|
|
20941
21229
|
this.element.scroll({ top: 0 });
|
|
20942
|
-
if (
|
|
20943
|
-
this.touristicContentsToDisplay = [...
|
|
21230
|
+
if (utils$1.state.touristicContentsWithinBounds) {
|
|
21231
|
+
this.touristicContentsToDisplay = [...utils$1.state.touristicContentsWithinBounds.slice(0, this.step)];
|
|
20944
21232
|
}
|
|
20945
21233
|
});
|
|
20946
21234
|
}
|
|
20947
21235
|
handleInfiniteScroll(event) {
|
|
20948
21236
|
if (event.composedPath()[0].scrollTop + event.composedPath()[0].scrollHeight / 2 >= event.composedPath()[0].scrollHeight) {
|
|
20949
|
-
if (this.touristicContentsToDisplay.length <
|
|
20950
|
-
this.touristicContentsToDisplay =
|
|
20951
|
-
?
|
|
21237
|
+
if (this.touristicContentsToDisplay.length < utils$1.state.touristicContentsWithinBounds.length) {
|
|
21238
|
+
this.touristicContentsToDisplay = utils$1.state.touristicContentsWithinBounds.slice(0, this.touristicContentsToDisplay.length + this.step >= utils$1.state.touristicContentsWithinBounds.length
|
|
21239
|
+
? utils$1.state.touristicContentsWithinBounds.length
|
|
20952
21240
|
: this.touristicContentsToDisplay.length + this.step);
|
|
20953
21241
|
}
|
|
20954
21242
|
else {
|
|
@@ -20970,16 +21258,16 @@ const GrwTouristicContentsList = class {
|
|
|
20970
21258
|
}
|
|
20971
21259
|
disconnectedCallback() {
|
|
20972
21260
|
if (this.resetStoreOnDisconnected) {
|
|
20973
|
-
|
|
21261
|
+
utils$1.reset();
|
|
20974
21262
|
}
|
|
20975
21263
|
this.handleInfiniteScrollEvent(false);
|
|
20976
21264
|
}
|
|
20977
21265
|
render() {
|
|
20978
|
-
return (index.h(index.Host, { style: { '--color-primary-app': this.colorPrimaryApp } },
|
|
21266
|
+
return (index.h(index.Host, { style: { '--color-primary-app': this.colorPrimaryApp } }, utils$1.state.touristicContentsWithinBounds && (index.h("div", { class: "current-touristic-contents-within-bounds-length" }, `${utils$1.state.touristicContentsWithinBounds.length} ${utils$1.state.touristicContentsWithinBounds.length > 1 ? i18n.translate[utils$1.state.language].home.touristicContents : i18n.translate[utils$1.state.language].home.touristicContent}`)), index.h("div", { class: "touristic-contents-list-container" }, this.touristicContentsToDisplay.map(touristicContent => (index.h("grw-touristic-content-card", { "reset-store-on-disconnected": "false", key: `touristic-content-${touristicContent.id}`, touristicContent: touristicContent, "is-large-view": this.isLargeView, "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.isLargeView && index.h("div", { class: "list-bottom-space" })));
|
|
20979
21267
|
}
|
|
20980
21268
|
get element() { return index.getElement(this); }
|
|
20981
21269
|
};
|
|
20982
|
-
GrwTouristicContentsList.style = grwTouristicContentsListCss;
|
|
21270
|
+
GrwTouristicContentsList$1.style = grwTouristicContentsListCss;
|
|
20983
21271
|
|
|
20984
21272
|
const GrwTouristicContentsProvider = class {
|
|
20985
21273
|
constructor(hostRef) {
|
|
@@ -20989,7 +21277,6 @@ const GrwTouristicContentsProvider = class {
|
|
|
20989
21277
|
this.init = { cache: 'default', signal: this.signal };
|
|
20990
21278
|
this.languages = 'fr';
|
|
20991
21279
|
this.api = undefined;
|
|
20992
|
-
this.touristicContentId = undefined;
|
|
20993
21280
|
this.inBbox = undefined;
|
|
20994
21281
|
this.cities = undefined;
|
|
20995
21282
|
this.districts = undefined;
|
|
@@ -20998,15 +21285,15 @@ const GrwTouristicContentsProvider = class {
|
|
|
20998
21285
|
this.portals = undefined;
|
|
20999
21286
|
}
|
|
21000
21287
|
connectedCallback() {
|
|
21001
|
-
if (!
|
|
21002
|
-
|
|
21003
|
-
|
|
21004
|
-
|
|
21288
|
+
if (!utils$1.state.api) {
|
|
21289
|
+
utils$1.state.api = this.api;
|
|
21290
|
+
utils$1.state.languages = this.languages.split(',');
|
|
21291
|
+
utils$1.state.language = utils$1.state.languages[0];
|
|
21005
21292
|
}
|
|
21006
21293
|
this.handleTouristicContents();
|
|
21007
21294
|
}
|
|
21008
21295
|
handleTouristicContents() {
|
|
21009
|
-
let touristicContentsRequest = `${
|
|
21296
|
+
let touristicContentsRequest = `${utils$1.state.api}touristiccontent/?language=${utils$1.state.language}&published=true`;
|
|
21010
21297
|
this.inBbox && (touristicContentsRequest += `&in_bbox=${this.inBbox}`);
|
|
21011
21298
|
this.cities && (touristicContentsRequest += `&cities=${this.cities}`);
|
|
21012
21299
|
this.districts && (touristicContentsRequest += `&districts=${this.districts}`);
|
|
@@ -21015,41 +21302,41 @@ const GrwTouristicContentsProvider = class {
|
|
|
21015
21302
|
this.portals && (touristicContentsRequest += `&portals=${this.portals}`);
|
|
21016
21303
|
touristicContentsRequest += `&fields=id,name,attachments,category,geometry,cities,districts&page_size=999`;
|
|
21017
21304
|
const requests = [];
|
|
21018
|
-
requests.push(!
|
|
21019
|
-
requests.push(!
|
|
21020
|
-
requests.push(!
|
|
21021
|
-
? fetch(`${
|
|
21305
|
+
requests.push(!utils$1.state.cities ? fetch(`${utils$1.state.api}city/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
|
|
21306
|
+
requests.push(!utils$1.state.districts ? fetch(`${utils$1.state.api}district/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null')),
|
|
21307
|
+
requests.push(!utils$1.state.touristicContentCategories
|
|
21308
|
+
? fetch(`${utils$1.state.api}touristiccontent_category/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&published=true&fields=id,label,pictogram&page_size=999`, this.init)
|
|
21022
21309
|
: new Response('null'));
|
|
21023
21310
|
Promise.all([...requests, fetch(touristicContentsRequest, this.init)])
|
|
21024
21311
|
.then(responses => Promise.all(responses.map(response => response.json())))
|
|
21025
21312
|
.then(([cities, districts, touristicContentCategory, touristicContents]) => {
|
|
21026
|
-
|
|
21313
|
+
utils$1.state.trekNetworkError = false;
|
|
21027
21314
|
if (cities) {
|
|
21028
|
-
|
|
21315
|
+
utils$1.state.cities = cities.results;
|
|
21029
21316
|
}
|
|
21030
21317
|
if (districts) {
|
|
21031
|
-
|
|
21318
|
+
utils$1.state.districts = districts.results;
|
|
21032
21319
|
}
|
|
21033
21320
|
if (touristicContentCategory) {
|
|
21034
|
-
|
|
21321
|
+
utils$1.state.touristicContentCategories = touristicContentCategory.results;
|
|
21035
21322
|
}
|
|
21036
|
-
|
|
21037
|
-
|
|
21323
|
+
utils$1.state.touristicContents = touristicContents.results;
|
|
21324
|
+
utils$1.state.currentTouristicContents = touristicContents.results;
|
|
21038
21325
|
})
|
|
21039
21326
|
.catch(() => {
|
|
21040
|
-
|
|
21327
|
+
utils$1.state.trekNetworkError = true;
|
|
21041
21328
|
});
|
|
21042
21329
|
}
|
|
21043
21330
|
disconnectedCallback() {
|
|
21044
21331
|
this.controller.abort();
|
|
21045
|
-
|
|
21332
|
+
utils$1.state.trekNetworkError = false;
|
|
21046
21333
|
}
|
|
21047
21334
|
render() {
|
|
21048
21335
|
return index.h(index.Host, null);
|
|
21049
21336
|
}
|
|
21050
21337
|
};
|
|
21051
21338
|
|
|
21052
|
-
const grwTouristicEventDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:\"Roboto\";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
21339
|
+
const grwTouristicEventDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:\"Roboto\";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
21053
21340
|
|
|
21054
21341
|
const GrwTouristicEventDetail = class {
|
|
21055
21342
|
constructor(hostRef) {
|
|
@@ -21082,16 +21369,16 @@ const GrwTouristicEventDetail = class {
|
|
|
21082
21369
|
};
|
|
21083
21370
|
}
|
|
21084
21371
|
handleFullscreen() {
|
|
21085
|
-
if (
|
|
21372
|
+
if (utils$1.state.currentTouristicEvent.attachments && utils$1.state.currentTouristicEvent.attachments[0] && utils$1.state.currentTouristicEvent.attachments[0].url) {
|
|
21086
21373
|
this.swiperImagesRef.requestFullscreen();
|
|
21087
21374
|
}
|
|
21088
21375
|
}
|
|
21089
21376
|
render() {
|
|
21090
21377
|
const defaultImageSrc = index.getAssetPath(`${''}assets/default-image.svg`);
|
|
21091
|
-
const touristicEventType =
|
|
21092
|
-
|
|
21093
|
-
|
|
21094
|
-
const cities =
|
|
21378
|
+
const touristicEventType = utils$1.state.touristicEventTypes &&
|
|
21379
|
+
utils$1.state.currentTouristicEvent &&
|
|
21380
|
+
utils$1.state.touristicEventTypes.find(touristicEventCategory => touristicEventCategory.id === utils$1.state.currentTouristicEvent.type);
|
|
21381
|
+
const cities = utils$1.state.currentTouristicEvent && utils$1.state.currentTouristicEvent.cities.map(currentCity => { var _a; return (_a = utils$1.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
|
|
21095
21382
|
return (index.h(index.Host, { style: {
|
|
21096
21383
|
'--color-primary-app': this.colorPrimaryApp,
|
|
21097
21384
|
'--color-on-surface': this.colorOnSurface,
|
|
@@ -21101,14 +21388,208 @@ const GrwTouristicEventDetail = class {
|
|
|
21101
21388
|
'--color-on-secondary-container': this.colorOnSecondaryContainer,
|
|
21102
21389
|
'--color-background': this.colorBackground,
|
|
21103
21390
|
'--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
|
|
21104
|
-
} },
|
|
21391
|
+
} }, utils$1.state.currentTouristicEvent && (index.h("div", { class: "touristic-event-detail-container", ref: el => (this.touristicEventDetailContainerRef = el) }, index.h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { class: "swiper-wrapper" }, utils$1.state.currentTouristicEvent.attachments.length > 0 ? (utils$1.state.currentTouristicEvent.attachments
|
|
21105
21392
|
.filter(attachment => attachment.type === 'image')
|
|
21106
|
-
.map(attachment => (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "touristic-event-category-container" }, index.h("img", { src: touristicEventType.pictogram }), index.h("div", { class: "touristic-event-category-name" }, touristicEventType.type)), index.h("div", { class: "name" },
|
|
21393
|
+
.map(attachment => (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "touristic-event-category-container" }, index.h("img", { src: touristicEventType.pictogram }), index.h("div", { class: "touristic-event-category-name" }, touristicEventType.type)), index.h("div", { class: "name" }, utils$1.state.currentTouristicEvent.name), (utils$1.state.currentTouristicEvent.begin_date || utils$1.state.currentTouristicEvent.end_date) && (index.h("div", { class: "touristic-event-date-container" }, utils$1.state.currentTouristicEvent.begin_date && index.h("div", { class: "touristic-event-date" }, "Date de d\u00E9but : ", utils$1.state.currentTouristicEvent.begin_date), utils$1.state.currentTouristicEvent.end_date && index.h("div", { class: "touristic-event-date" }, "Date de fin : ", utils$1.state.currentTouristicEvent.end_date))), index.h("div", { class: "divider" }), index.h("div", { class: "downloads-container" }, index.h("div", { class: "download-title" }, i18n.translate[utils$1.state.language].download), index.h("div", { class: "links-container" }, index.h("a", { href: `${utils$1.state.currentTouristicEvent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), utils$1.state.currentTouristicEvent.description_teaser && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "description-teaser", innerHTML: utils$1.state.currentTouristicEvent.description_teaser }))), index.h("div", { class: "divider" }), utils$1.state.currentTouristicEvent.practical_info && (index.h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { class: "description-title" }, i18n.translate[utils$1.state.language].description), index.h("div", { class: "description", innerHTML: utils$1.state.currentTouristicEvent.description }))), cities && cities.length > 0 && (index.h("div", { class: "cities-container" }, index.h("div", { class: "cities-title" }, i18n.translate[utils$1.state.language].city, " :\u00A0"), index.h("div", { innerHTML: cities.join(', ') }))), utils$1.state.currentTouristicEvent.practical_info && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "useful-information-container" }, index.h("div", { class: "useful-information-title" }, i18n.translate[utils$1.state.language].usefulInformation, " :\u00A0"), index.h("div", { innerHTML: utils$1.state.currentTouristicEvent.practical_info })))), (utils$1.state.currentTouristicEvent.contact || utils$1.state.currentTouristicEvent.email || utils$1.state.currentTouristicEvent.website) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "contact-container" }, index.h("div", { class: "contact-title" }, i18n.translate[utils$1.state.language].contact, " :\u00A0"), utils$1.state.currentTouristicEvent.contact && index.h("div", { innerHTML: utils$1.state.currentTouristicEvent.contact }), utils$1.state.currentTouristicEvent.email && (index.h("div", { class: "email-container" }, index.h("div", null, i18n.translate[utils$1.state.language].email, " :\u00A0"), index.h("div", { innerHTML: utils$1.state.currentTouristicEvent.email }))), utils$1.state.currentTouristicEvent.website && (index.h("div", { class: "website-container" }, index.h("div", null, i18n.translate[utils$1.state.language].website, " :\u00A0"), index.h("div", { innerHTML: utils$1.state.currentTouristicEvent.website })))))), index.h("div", { class: "detail-bottom-space" })))));
|
|
21107
21394
|
}
|
|
21108
21395
|
};
|
|
21109
21396
|
GrwTouristicEventDetail.style = grwTouristicEventDetailCss;
|
|
21110
21397
|
|
|
21111
|
-
const grwTrekDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-options .presentation.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .steps.selected-trek-option~.indicator-selected-trek-option{width:160px;background-size:80px 100%}.trek-options .description.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .recommendations.selected-trek-option~.indicator-selected-trek-option{width:380px;background-size:190px 100%}.trek-options .sensitive-areas.selected-trek-option~.indicator-selected-trek-option{width:320px;background-size:160px 100%}.trek-options .information-places.selected-trek-option~.indicator-selected-trek-option{width:400px;background-size:200px 100%}.trek-options .pois.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-content.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-event.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .presentation{min-width:120px;width:120px}.trek-options .steps{min-width:80px;width:80px}.trek-options .description{min-width:120px;width:120px}.trek-options .recommendations{min-width:190px;width:190px}.trek-options .sensitive-areas{min-width:160px;width:160px}.trek-options .information-places{min-width:200px;width:200px}.trek-options .pois{min-width:120px;width:120px}.trek-options .touristic-content{min-width:120px;width:120px}.trek-options .touristic-event{min-width:120px;width:120px}.trek-detail-container{font-family:\"Roboto\";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a{color:var(--color-primary-app)}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-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);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:\"\";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:8px;border-bottom-left-radius:8px}.swiper-step .swiper-wrapper .swiper-slide:before{content:\"\";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}";
|
|
21398
|
+
const GrwTouristicEventProvider = class {
|
|
21399
|
+
constructor(hostRef) {
|
|
21400
|
+
index.registerInstance(this, hostRef);
|
|
21401
|
+
this.controller = new AbortController();
|
|
21402
|
+
this.signal = this.controller.signal;
|
|
21403
|
+
this.init = { cache: 'default', signal: this.signal };
|
|
21404
|
+
this.languages = 'fr';
|
|
21405
|
+
this.api = undefined;
|
|
21406
|
+
this.touristicEventId = undefined;
|
|
21407
|
+
this.portals = undefined;
|
|
21408
|
+
}
|
|
21409
|
+
connectedCallback() {
|
|
21410
|
+
if (!utils$1.state.api) {
|
|
21411
|
+
utils$1.state.api = this.api;
|
|
21412
|
+
utils$1.state.languages = this.languages.split(',');
|
|
21413
|
+
utils$1.state.language = utils$1.state.languages[0];
|
|
21414
|
+
}
|
|
21415
|
+
this.handleTouristicEvent();
|
|
21416
|
+
}
|
|
21417
|
+
handleTouristicEvent() {
|
|
21418
|
+
const requests = [];
|
|
21419
|
+
requests.push(!utils$1.state.cities ? fetch(`${utils$1.state.api}city/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
|
|
21420
|
+
requests.push(!utils$1.state.touristicEventTypes
|
|
21421
|
+
? fetch(`${utils$1.state.api}touristicevent_type/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&published=true&fields=id,type,pictogram&page_size=999`, this.init)
|
|
21422
|
+
: new Response('null'));
|
|
21423
|
+
Promise.all([
|
|
21424
|
+
...requests,
|
|
21425
|
+
fetch(`${utils$1.state.api}touristicevent/${this.touristicEventId}/?language=${utils$1.state.language}&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true`, this.init),
|
|
21426
|
+
])
|
|
21427
|
+
.then(responses => Promise.all(responses.map(response => response.json())))
|
|
21428
|
+
.then(([cities, touristicEventTypes, touristicEvent]) => {
|
|
21429
|
+
utils$1.state.trekNetworkError = false;
|
|
21430
|
+
if (cities) {
|
|
21431
|
+
utils$1.state.cities = cities.results;
|
|
21432
|
+
}
|
|
21433
|
+
if (touristicEventTypes) {
|
|
21434
|
+
utils$1.state.touristicEventTypes = touristicEventTypes.results;
|
|
21435
|
+
}
|
|
21436
|
+
utils$1.state.currentTouristicEvent = touristicEvent;
|
|
21437
|
+
})
|
|
21438
|
+
.catch(() => {
|
|
21439
|
+
utils$1.state.trekNetworkError = true;
|
|
21440
|
+
});
|
|
21441
|
+
}
|
|
21442
|
+
disconnectedCallback() {
|
|
21443
|
+
this.controller.abort();
|
|
21444
|
+
utils$1.state.trekNetworkError = false;
|
|
21445
|
+
}
|
|
21446
|
+
render() {
|
|
21447
|
+
return index.h(index.Host, null);
|
|
21448
|
+
}
|
|
21449
|
+
};
|
|
21450
|
+
|
|
21451
|
+
const grwTouristicEventsListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{font-family:\"Roboto\";width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-event-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";
|
|
21452
|
+
|
|
21453
|
+
const GrwTouristicContentsList = class {
|
|
21454
|
+
constructor(hostRef) {
|
|
21455
|
+
index.registerInstance(this, hostRef);
|
|
21456
|
+
this.step = 10;
|
|
21457
|
+
this.shouldAddInfiniteScrollEvent = true;
|
|
21458
|
+
this.handleInfiniteScrollBind = this.handleInfiniteScroll.bind(this);
|
|
21459
|
+
this.touristicEventsToDisplay = [];
|
|
21460
|
+
this.colorPrimaryApp = '#6b0030';
|
|
21461
|
+
this.colorOnSurface = '#49454e';
|
|
21462
|
+
this.colorSecondaryContainer = '#e8def8';
|
|
21463
|
+
this.colorOnSecondaryContainer = '#1d192b';
|
|
21464
|
+
this.colorSurfaceContainerLow = '#f7f2fa';
|
|
21465
|
+
this.isLargeView = false;
|
|
21466
|
+
this.resetStoreOnDisconnected = true;
|
|
21467
|
+
}
|
|
21468
|
+
connectedCallback() {
|
|
21469
|
+
this.handleInfiniteScrollEvent(true);
|
|
21470
|
+
if (utils$1.state.currentTouristicEvents) {
|
|
21471
|
+
this.touristicEventsToDisplay = [...utils$1.state.currentTouristicEvents.slice(0, this.step)];
|
|
21472
|
+
}
|
|
21473
|
+
utils$1.onChange('currentTouristicEvents', () => {
|
|
21474
|
+
this.handleInfiniteScrollEvent(true);
|
|
21475
|
+
this.element.scroll({ top: 0 });
|
|
21476
|
+
if (utils$1.state.currentTouristicContents) {
|
|
21477
|
+
this.touristicEventsToDisplay = [...utils$1.state.currentTouristicEvents.slice(0, this.step)];
|
|
21478
|
+
}
|
|
21479
|
+
});
|
|
21480
|
+
utils$1.onChange('touristicEventsWithinBounds', () => {
|
|
21481
|
+
this.handleInfiniteScrollEvent(true);
|
|
21482
|
+
this.element.scroll({ top: 0 });
|
|
21483
|
+
if (utils$1.state.touristicEventsWithinBounds) {
|
|
21484
|
+
this.touristicEventsToDisplay = [...utils$1.state.touristicEventsWithinBounds.slice(0, this.step)];
|
|
21485
|
+
}
|
|
21486
|
+
});
|
|
21487
|
+
}
|
|
21488
|
+
handleInfiniteScroll(event) {
|
|
21489
|
+
if (event.composedPath()[0].scrollTop + event.composedPath()[0].scrollHeight / 2 >= event.composedPath()[0].scrollHeight) {
|
|
21490
|
+
if (this.touristicEventsToDisplay.length < utils$1.state.touristicEventsWithinBounds.length) {
|
|
21491
|
+
this.touristicEventsToDisplay = utils$1.state.touristicEventsWithinBounds.slice(0, this.touristicEventsToDisplay.length + this.step >= utils$1.state.touristicEventsWithinBounds.length
|
|
21492
|
+
? utils$1.state.touristicEventsWithinBounds.length
|
|
21493
|
+
: this.touristicEventsToDisplay.length + this.step);
|
|
21494
|
+
}
|
|
21495
|
+
else {
|
|
21496
|
+
this.handleInfiniteScrollEvent(false);
|
|
21497
|
+
}
|
|
21498
|
+
}
|
|
21499
|
+
}
|
|
21500
|
+
handleInfiniteScrollEvent(shouldAddInfiniteScrollEvent) {
|
|
21501
|
+
if (shouldAddInfiniteScrollEvent) {
|
|
21502
|
+
if (this.shouldAddInfiniteScrollEvent) {
|
|
21503
|
+
this.element.addEventListener('scroll', this.handleInfiniteScrollBind);
|
|
21504
|
+
this.shouldAddInfiniteScrollEvent = !shouldAddInfiniteScrollEvent;
|
|
21505
|
+
}
|
|
21506
|
+
}
|
|
21507
|
+
else {
|
|
21508
|
+
this.element.removeEventListener('scroll', this.handleInfiniteScrollBind);
|
|
21509
|
+
this.shouldAddInfiniteScrollEvent = !shouldAddInfiniteScrollEvent;
|
|
21510
|
+
}
|
|
21511
|
+
}
|
|
21512
|
+
disconnectedCallback() {
|
|
21513
|
+
if (this.resetStoreOnDisconnected) {
|
|
21514
|
+
utils$1.reset();
|
|
21515
|
+
}
|
|
21516
|
+
this.handleInfiniteScrollEvent(false);
|
|
21517
|
+
}
|
|
21518
|
+
render() {
|
|
21519
|
+
return (index.h(index.Host, { style: { '--color-primary-app': this.colorPrimaryApp } }, utils$1.state.touristicEventsWithinBounds && (index.h("div", { class: "current-touristic-events-within-bounds-length" }, `${utils$1.state.touristicEventsWithinBounds.length} ${utils$1.state.touristicEventsWithinBounds.length > 1 ? i18n.translate[utils$1.state.language].home.touristicEvents : i18n.translate[utils$1.state.language].home.touristicEvent}`)), index.h("div", { class: "touristic-events-list-container" }, this.touristicEventsToDisplay.map(touristicEvent => (index.h("grw-touristic-event-card", { "reset-store-on-disconnected": "false", key: `touristic-event-${touristicEvent.id}`, touristicEvent: touristicEvent, "is-large-view": this.isLargeView, "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.isLargeView && index.h("div", { class: "list-bottom-space" })));
|
|
21520
|
+
}
|
|
21521
|
+
get element() { return index.getElement(this); }
|
|
21522
|
+
};
|
|
21523
|
+
GrwTouristicContentsList.style = grwTouristicEventsListCss;
|
|
21524
|
+
|
|
21525
|
+
const GrwTouristicEventsProvider = class {
|
|
21526
|
+
constructor(hostRef) {
|
|
21527
|
+
index.registerInstance(this, hostRef);
|
|
21528
|
+
this.controller = new AbortController();
|
|
21529
|
+
this.signal = this.controller.signal;
|
|
21530
|
+
this.init = { cache: 'default', signal: this.signal };
|
|
21531
|
+
this.languages = 'fr';
|
|
21532
|
+
this.api = undefined;
|
|
21533
|
+
this.inBbox = undefined;
|
|
21534
|
+
this.cities = undefined;
|
|
21535
|
+
this.districts = undefined;
|
|
21536
|
+
this.structures = undefined;
|
|
21537
|
+
this.themes = undefined;
|
|
21538
|
+
this.portals = undefined;
|
|
21539
|
+
}
|
|
21540
|
+
connectedCallback() {
|
|
21541
|
+
if (!utils$1.state.api) {
|
|
21542
|
+
utils$1.state.api = this.api;
|
|
21543
|
+
utils$1.state.languages = this.languages.split(',');
|
|
21544
|
+
utils$1.state.language = utils$1.state.languages[0];
|
|
21545
|
+
}
|
|
21546
|
+
this.handleTouristicEvents();
|
|
21547
|
+
}
|
|
21548
|
+
handleTouristicEvents() {
|
|
21549
|
+
let touristicEventsRequest = `${utils$1.state.api}touristicevent/?language=${utils$1.state.language}&published=true`;
|
|
21550
|
+
this.inBbox && (touristicEventsRequest += `&in_bbox=${this.inBbox}`);
|
|
21551
|
+
this.cities && (touristicEventsRequest += `&cities=${this.cities}`);
|
|
21552
|
+
this.districts && (touristicEventsRequest += `&districts=${this.districts}`);
|
|
21553
|
+
this.structures && (touristicEventsRequest += `&structures=${this.structures}`);
|
|
21554
|
+
this.themes && (touristicEventsRequest += `&themes=${this.themes}`);
|
|
21555
|
+
this.portals && (touristicEventsRequest += `&portals=${this.portals}`);
|
|
21556
|
+
touristicEventsRequest += `&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999`;
|
|
21557
|
+
const requests = [];
|
|
21558
|
+
requests.push(!utils$1.state.cities ? fetch(`${utils$1.state.api}city/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
|
|
21559
|
+
requests.push(!utils$1.state.districts ? fetch(`${utils$1.state.api}district/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null')),
|
|
21560
|
+
requests.push(!utils$1.state.touristicEventTypes
|
|
21561
|
+
? fetch(`${utils$1.state.api}touristicevent_type/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&published=true&fields=id,type,pictogram&page_size=999`, this.init)
|
|
21562
|
+
: new Response('null'));
|
|
21563
|
+
Promise.all([...requests, fetch(touristicEventsRequest, this.init)])
|
|
21564
|
+
.then(responses => Promise.all(responses.map(response => response.json())))
|
|
21565
|
+
.then(([cities, districts, touristicEventTypes, touristicEvents]) => {
|
|
21566
|
+
utils$1.state.trekNetworkError = false;
|
|
21567
|
+
if (cities) {
|
|
21568
|
+
utils$1.state.cities = cities.results;
|
|
21569
|
+
}
|
|
21570
|
+
if (districts) {
|
|
21571
|
+
utils$1.state.districts = districts.results;
|
|
21572
|
+
}
|
|
21573
|
+
if (touristicEventTypes) {
|
|
21574
|
+
utils$1.state.touristicEventTypes = touristicEventTypes.results;
|
|
21575
|
+
}
|
|
21576
|
+
utils$1.state.touristicEvents = touristicEvents.results;
|
|
21577
|
+
utils$1.state.currentTouristicEvents = touristicEvents.results;
|
|
21578
|
+
})
|
|
21579
|
+
.catch(() => {
|
|
21580
|
+
utils$1.state.trekNetworkError = true;
|
|
21581
|
+
});
|
|
21582
|
+
}
|
|
21583
|
+
disconnectedCallback() {
|
|
21584
|
+
this.controller.abort();
|
|
21585
|
+
utils$1.state.trekNetworkError = false;
|
|
21586
|
+
}
|
|
21587
|
+
render() {
|
|
21588
|
+
return index.h(index.Host, null);
|
|
21589
|
+
}
|
|
21590
|
+
};
|
|
21591
|
+
|
|
21592
|
+
const grwTrekDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:32px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-options .presentation.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .steps.selected-trek-option~.indicator-selected-trek-option{width:160px;background-size:80px 100%}.trek-options .description.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .recommendations.selected-trek-option~.indicator-selected-trek-option{width:380px;background-size:190px 100%}.trek-options .sensitive-areas.selected-trek-option~.indicator-selected-trek-option{width:320px;background-size:160px 100%}.trek-options .information-places.selected-trek-option~.indicator-selected-trek-option{width:400px;background-size:200px 100%}.trek-options .pois.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-content.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .touristic-event.selected-trek-option~.indicator-selected-trek-option{width:240px;background-size:120px 100%}.trek-options .presentation{min-width:120px;width:120px}.trek-options .steps{min-width:80px;width:80px}.trek-options .description{min-width:120px;width:120px}.trek-options .recommendations{min-width:190px;width:190px}.trek-options .sensitive-areas{min-width:160px;width:160px}.trek-options .information-places{min-width:200px;width:200px}.trek-options .pois{min-width:120px;width:120px}.trek-options .touristic-content{min-width:120px;width:120px}.trek-options .touristic-event{min-width:120px;width:120px}.trek-detail-container{font-family:\"Roboto\";color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-on-surface);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-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);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:\"\";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:8px;border-bottom-left-radius:8px}.swiper-step .swiper-wrapper .swiper-slide:before{content:\"\";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}";
|
|
21112
21593
|
|
|
21113
21594
|
const presentation = {
|
|
21114
21595
|
visible: true,
|
|
@@ -21385,51 +21866,51 @@ const GrwTrekDetail = class {
|
|
|
21385
21866
|
}
|
|
21386
21867
|
}
|
|
21387
21868
|
connectedCallback() {
|
|
21388
|
-
this.currentTrek = this.trek ? this.trek :
|
|
21869
|
+
this.currentTrek = this.trek ? this.trek : utils$1.state.currentTrek;
|
|
21389
21870
|
if (this.currentTrek) {
|
|
21390
21871
|
this.defaultOptions = this.handleOptions();
|
|
21391
21872
|
this.options = Object.assign(Object.assign({}, this.defaultOptions), { presentation: Object.assign(Object.assign({}, this.defaultOptions.presentation), { indicator: true }) });
|
|
21392
|
-
this.difficulty =
|
|
21393
|
-
this.route =
|
|
21394
|
-
this.practice =
|
|
21395
|
-
this.themes =
|
|
21396
|
-
this.labels =
|
|
21397
|
-
this.sources =
|
|
21398
|
-
this.accessibilities =
|
|
21399
|
-
if (
|
|
21400
|
-
this.accessibilityLevel =
|
|
21873
|
+
this.difficulty = utils$1.state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
|
|
21874
|
+
this.route = utils$1.state.routes.find(route => route.id === this.currentTrek.route);
|
|
21875
|
+
this.practice = utils$1.state.practices.find(practice => practice.id === this.currentTrek.practice);
|
|
21876
|
+
this.themes = utils$1.state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
|
|
21877
|
+
this.labels = utils$1.state.labels.filter(label => this.currentTrek.labels.includes(label.id));
|
|
21878
|
+
this.sources = utils$1.state.sources.filter(source => this.currentTrek.source.includes(source.id));
|
|
21879
|
+
this.accessibilities = utils$1.state.accessibilities.filter(accessibility => this.currentTrek.accessibilities.includes(accessibility.id));
|
|
21880
|
+
if (utils$1.state.accessibilitiesLevel) {
|
|
21881
|
+
this.accessibilityLevel = utils$1.state.accessibilitiesLevel.find(accessibilityLevel => this.currentTrek.accessibility_level === accessibilityLevel.id);
|
|
21401
21882
|
}
|
|
21402
|
-
this.cities = this.currentTrek.cities.map(currentCity => { var _a; return (_a =
|
|
21883
|
+
this.cities = this.currentTrek.cities.map(currentCity => { var _a; return (_a = utils$1.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
|
|
21403
21884
|
this.hasStep = this.currentTrek.children.length > 0;
|
|
21404
21885
|
}
|
|
21405
|
-
|
|
21406
|
-
this.currentTrek = this.trek ? this.trek :
|
|
21886
|
+
utils$1.onChange('currentTrek', () => {
|
|
21887
|
+
this.currentTrek = this.trek ? this.trek : utils$1.state.currentTrek;
|
|
21407
21888
|
if (this.currentTrek) {
|
|
21408
21889
|
this.defaultOptions = this.handleOptions();
|
|
21409
21890
|
this.options = Object.assign(Object.assign({}, this.defaultOptions), { presentation: Object.assign(Object.assign({}, this.defaultOptions.presentation), { indicator: true }) });
|
|
21410
|
-
this.difficulty =
|
|
21411
|
-
this.route =
|
|
21412
|
-
this.practice =
|
|
21413
|
-
this.themes =
|
|
21414
|
-
this.labels =
|
|
21415
|
-
this.sources =
|
|
21416
|
-
this.accessibilities =
|
|
21417
|
-
if (
|
|
21418
|
-
this.accessibilityLevel =
|
|
21891
|
+
this.difficulty = utils$1.state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
|
|
21892
|
+
this.route = utils$1.state.routes.find(route => route.id === this.currentTrek.route);
|
|
21893
|
+
this.practice = utils$1.state.practices.find(practice => practice.id === this.currentTrek.practice);
|
|
21894
|
+
this.themes = utils$1.state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
|
|
21895
|
+
this.labels = utils$1.state.labels.filter(label => this.currentTrek.labels.includes(label.id));
|
|
21896
|
+
this.sources = utils$1.state.sources.filter(source => this.currentTrek.source.includes(source.id));
|
|
21897
|
+
this.accessibilities = utils$1.state.accessibilities.filter(accessibility => this.currentTrek.accessibilities.includes(accessibility.id));
|
|
21898
|
+
if (utils$1.state.accessibilitiesLevel) {
|
|
21899
|
+
this.accessibilityLevel = utils$1.state.accessibilitiesLevel.find(accessibilityLevel => this.currentTrek.accessibility_level === accessibilityLevel.id);
|
|
21419
21900
|
}
|
|
21420
|
-
this.cities = this.currentTrek.cities.map(currentCity => { var _a; return (_a =
|
|
21901
|
+
this.cities = this.currentTrek.cities.map(currentCity => { var _a; return (_a = utils$1.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
|
|
21421
21902
|
this.hasStep = this.currentTrek.children.length > 0;
|
|
21422
21903
|
}
|
|
21423
21904
|
});
|
|
21424
21905
|
}
|
|
21425
21906
|
disconnectedCallback() {
|
|
21426
21907
|
if (this.resetStoreOnDisconnected) {
|
|
21427
|
-
|
|
21908
|
+
utils$1.reset();
|
|
21428
21909
|
}
|
|
21429
21910
|
}
|
|
21430
21911
|
handleOptions() {
|
|
21431
|
-
return Object.assign(Object.assign({}, options), { presentation: Object.assign({}, presentation), steps: Object.assign(Object.assign({}, steps), { visible: Boolean(
|
|
21432
|
-
|
|
21912
|
+
return Object.assign(Object.assign({}, options), { presentation: Object.assign({}, presentation), steps: Object.assign(Object.assign({}, steps), { visible: Boolean(utils$1.state.parentTrek) }), description: Object.assign(Object.assign({}, description), { visible: Boolean(this.currentTrek.description) }), recommendations: Object.assign(Object.assign({}, recommendations), { visible: Boolean(this.currentTrek.advice || (this.labels && this.labels.length > 0)) }), sensitiveArea: Object.assign(Object.assign({}, sensitiveArea), { visible: Boolean(utils$1.state.currentSensitiveAreas && utils$1.state.currentSensitiveAreas.length > 0) }), informationPlaces: Object.assign(Object.assign({}, informationPlaces), { visible: Boolean(utils$1.state.currentInformationDesks &&
|
|
21913
|
+
utils$1.state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0) }), pois: Object.assign(Object.assign({}, pois), { visible: Boolean(utils$1.state.currentPois && utils$1.state.currentPois.length > 0) }), touristicContents: Object.assign(Object.assign({}, touristicContents), { visible: Boolean(utils$1.state.trekTouristicContents && utils$1.state.trekTouristicContents.length > 0) }), touristicEvents: Object.assign(Object.assign({}, touristicEvents), { visible: Boolean(utils$1.state.touristicEvents && utils$1.state.touristicEvents.length > 0) }) });
|
|
21433
21914
|
}
|
|
21434
21915
|
handleFullscreen() {
|
|
21435
21916
|
if (this.currentTrek.attachments && this.currentTrek.attachments[0] && this.currentTrek.attachments[0].url) {
|
|
@@ -21470,16 +21951,16 @@ const GrwTrekDetail = class {
|
|
|
21470
21951
|
'--color-on-secondary-container': this.colorOnSecondaryContainer,
|
|
21471
21952
|
'--color-background': this.colorBackground,
|
|
21472
21953
|
'--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
|
|
21473
|
-
} }, this.currentTrek && (index.h("div", { class: "trek-options" }, index.h("a", { onClick: () => this.handleScrollTo(this.presentationRef), class: `presentation trek-option${this.options.presentation.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[
|
|
21954
|
+
} }, this.currentTrek && (index.h("div", { class: "trek-options" }, index.h("a", { onClick: () => this.handleScrollTo(this.presentationRef), class: `presentation trek-option${this.options.presentation.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.presentation), this.options.steps.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.stepsRef), class: `steps trek-option${this.options.steps.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.steps)), this.options.description.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.descriptionRef), class: `description trek-option${this.options.description.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.description)), this.options.recommendations.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.recommendationRef), class: `recommendations trek-option${this.options.recommendations.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.recommendations)), this.options.sensitiveArea.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.sensitiveAreaRef), class: `sensitive-areas trek-option${this.options.sensitiveArea.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.environmentalSensitiveAreas)), this.options.informationPlaces.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.informationDeskRef), class: `information-places trek-option${this.options.informationPlaces.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.informationPlaces)), this.options.pois.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.poiRef), class: `pois trek-option${this.options.pois.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.pois)), this.options.touristicContents.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.touristicContentsRef), class: `touristic-content trek-option${this.options.touristicContents.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.touristicContents)), this.options.touristicEvents.visible && (index.h("a", { onClick: () => this.handleScrollTo(this.touristicEventsRef), class: `touristic-event trek-option${this.options.touristicEvents.indicator ? ' selected-trek-option' : ''}` }, i18n.translate[utils$1.state.language].options.touristicEvents)), index.h("span", { class: "indicator-selected-trek-option", style: { transform: `translateX(${this.handleIndicatorSelectedTrekOption()})` } }))), this.currentTrek && (index.h("div", { class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, index.h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { class: "swiper-wrapper" }, this.currentTrek.attachments
|
|
21474
21955
|
.filter(attachment => attachment.type === 'image')
|
|
21475
21956
|
.map(attachment => (index.h("div", { class: "swiper-slide" }, index.h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "name" }, this.currentTrek.name), this.themes.length > 0 && (index.h("div", { class: "themes-container" }, this.themes.map(theme => (index.h("div", { class: "theme" }, theme.label))))), index.h("div", { class: "sub-container" }, index.h("div", { class: "icons-labels-container" }, index.h("div", { class: "row" }, index.h("div", { class: "icon-label difficulty" }, ((_a = this.difficulty) === null || _a === void 0 ? void 0 : _a.pictogram) && index.h("img", { src: this.difficulty.pictogram }), (_b = this.difficulty) === null || _b === void 0 ? void 0 :
|
|
21476
21957
|
_b.label), index.h("div", { class: "icon-label duration" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "timelapse"), utils$1.formatDuration((_c = this.currentTrek) === null || _c === void 0 ? void 0 : _c.duration)), index.h("div", { class: "icon-label route" }, ((_d = this.route) === null || _d === void 0 ? void 0 : _d.pictogram) && index.h("img", { src: this.route.pictogram }), (_e = this.route) === null || _e === void 0 ? void 0 :
|
|
21477
21958
|
_e.route)), index.h("div", { class: "row" }, index.h("div", { class: "icon-label length" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "open_in_full"), utils$1.formatLength(this.currentTrek.length_2d)), index.h("div", { class: "icon-label ascent" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "moving"), utils$1.formatAscent(this.currentTrek.ascent)), index.h("div", { class: "icon-label practice" }, ((_f = this.practice) === null || _f === void 0 ? void 0 : _f.pictogram) && index.h("img", { src: this.practice.pictogram }), (_g = this.practice) === null || _g === void 0 ? void 0 :
|
|
21478
|
-
_g.name)))), index.h("div", { class: "divider" }), index.h("div", { class: "downloads-container" }, index.h("div", { class: "download-title" }, i18n.translate[
|
|
21479
|
-
|
|
21959
|
+
_g.name)), this.currentTrek.ratings.map(trekRating => (index.h("div", { class: "row" }, utils$1.state.ratings.find(rating => rating.id === trekRating).name))), this.currentTrek.ratings_description && this.currentTrek.ratings_description !== '' && index.h("div", { class: "row" }, this.currentTrek.ratings_description))), index.h("div", { class: "divider" }), index.h("div", { class: "downloads-container" }, index.h("div", { class: "download-title" }, i18n.translate[utils$1.state.language].downloads), index.h("div", { class: "links-container" }, index.h("a", { href: `${this.currentTrek.gpx}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), index.h("a", { href: `${this.currentTrek.kml}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "KML"), index.h("a", { href: `${this.currentTrek.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), index.h("div", { class: "divider" }), this.currentTrek.description_teaser && index.h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && index.h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), utils$1.state.parentTrekId && utils$1.state.parentTrek && this.currentTrek.id !== utils$1.state.parentTrekId && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "parent-trek-container" }, index.h("button", { class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(utils$1.state.parentTrekId) }, index.h("div", null, "<"), utils$1.state.parentTrek.name)))), utils$1.state.currentTrekSteps && (index.h("div", { class: "step-container", ref: el => (this.stepsRef = el) }, index.h("div", { class: "step-title" }, `${utils$1.state.currentTrekSteps.length} ${i18n.translate[utils$1.state.language].steps}`), index.h("div", { class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, index.h("div", { class: "swiper-wrapper" }, utils$1.state.currentTrekSteps &&
|
|
21960
|
+
utils$1.state.currentTrekSteps.map(trek => {
|
|
21480
21961
|
return (index.h("div", { class: "swiper-slide" }, index.h("grw-trek-card", { "reset-store-on-disconnected": "false", key: `trek-${trek.id}`, trek: trek, "is-large-view": false, "is-step": true, "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 })));
|
|
21481
|
-
}))))), index.h("div", { class: "divider" }), this.currentTrek.description && (index.h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { class: "description-title" }, i18n.translate[
|
|
21482
|
-
|
|
21962
|
+
}))))), index.h("div", { class: "divider" }), this.currentTrek.description && (index.h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { class: "description-title" }, i18n.translate[utils$1.state.language].description), index.h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (index.h("div", { class: "departure-container" }, index.h("div", { class: "departure-title" }, i18n.translate[utils$1.state.language].departure, " :\u00A0"), index.h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (index.h("div", { class: "arrival-container" }, index.h("div", { class: "arrival-title" }, i18n.translate[utils$1.state.language].arrival, " :\u00A0"), index.h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && this.currentTrek.cities.length > 0 && (index.h("div", { class: "cities-container" }, index.h("div", { class: "cities-title" }, i18n.translate[utils$1.state.language].crossedCities, " :\u00A0"), index.h("div", { innerHTML: this.cities.join(', ') }))), this.weather && this.currentTrek.departure_city && (index.h("div", { class: "weather-container" }, index.h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` }))), this.currentTrek.access && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "access-container" }, index.h("div", { class: "access-title" }, i18n.translate[utils$1.state.language].roadAccess), index.h("div", { class: "access", innerHTML: this.currentTrek.access })))), this.currentTrek.public_transport && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "public-transport-container" }, index.h("div", { class: "public-transport-title" }, i18n.translate[utils$1.state.language].transport), index.h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.labels.length > 0) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "advice-container", ref: el => (this.recommendationRef = el) }, index.h("div", { class: "advice-title" }, i18n.translate[utils$1.state.language].recommendations), this.currentTrek.advice && (index.h("div", { class: "current-advice-container" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "warning"), index.h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.labels.map(label => (index.h("div", { class: "label-container" }, index.h("div", { class: "label-sub-container" }, label.pictogram && index.h("img", { src: label.pictogram }), index.h("div", { class: "label-name", innerHTML: label.name })), index.h("div", { class: "label-advice", innerHTML: label.advice }))))))), this.currentTrek.advised_parking && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "advised-parking-container", ref: el => (this.parkingRef = el) }, index.h("div", { class: "advised-parking-title" }, i18n.translate[utils$1.state.language].recommendedParking), index.h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))), this.currentTrek.gear && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "gear-container" }, index.h("div", { class: "gear-title" }, i18n.translate[utils$1.state.language].equipments), index.h("div", { class: "gear", innerHTML: this.currentTrek.gear })))), utils$1.state.currentSensitiveAreas && utils$1.state.currentSensitiveAreas.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "sensitive-areas-container", ref: el => (this.sensitiveAreaRef = el) }, index.h("div", { class: "sensitive-areas-title" }, i18n.translate[utils$1.state.language].environmentalSensitiveAreas), utils$1.state.currentSensitiveAreas.map(sensitiveArea => (index.h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), utils$1.state.currentInformationDesks &&
|
|
21963
|
+
utils$1.state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "information-desks-container", ref: el => (this.informationDeskRef = el) }, index.h("div", { class: "information-desks-title" }, i18n.translate[utils$1.state.language].informationPlaces), index.h("div", { class: "swiper swiper-information-desks", ref: el => (this.swiperInformationDesksRef = el) }, index.h("div", { class: "swiper-wrapper" }, utils$1.state.currentInformationDesks
|
|
21483
21964
|
.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id))
|
|
21484
21965
|
.map(informationDesk => (index.h("div", { class: "swiper-slide" }, index.h("grw-information-desk", { informationDesk: informationDesk }))))))))), (this.currentTrek.disabled_infrastructure ||
|
|
21485
21966
|
(this.accessibilities && this.accessibilities.length > 0) ||
|
|
@@ -21489,7 +21970,7 @@ const GrwTrekDetail = class {
|
|
|
21489
21970
|
this.currentTrek.accessibility_signage ||
|
|
21490
21971
|
this.currentTrek.accessibility_covering ||
|
|
21491
21972
|
this.currentTrek.accessibility_exposure ||
|
|
21492
|
-
this.currentTrek.accessibility_advice) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "accessibilities-container" }, index.h("div", { class: "accessibilities-title" }, i18n.translate[
|
|
21973
|
+
this.currentTrek.accessibility_advice) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "accessibilities-container" }, index.h("div", { class: "accessibilities-title" }, i18n.translate[utils$1.state.language].accessibility), this.currentTrek.disabled_infrastructure && index.h("div", { innerHTML: this.currentTrek.disabled_infrastructure }), index.h("div", { class: "accessibilities-content-container" }, this.accessibilities.map(accessibility => (index.h("div", { class: "accessibility-content-container" }, index.h("img", { src: accessibility.pictogram }), index.h("div", { innerHTML: accessibility.name }))))), this.currentTrek.accessibility_level && (index.h("div", { class: "accessibility-level-container" }, index.h("div", { class: "accessibility-level-title" }, i18n.translate[utils$1.state.language].accessibilityLevel), index.h("div", { innerHTML: this.accessibilityLevel.name }))), this.currentTrek.accessibility_slope && (index.h("div", { class: "accessibility-slope-container" }, index.h("div", { class: "accessibility-slope-title" }, i18n.translate[utils$1.state.language].accessibilitySlope), index.h("div", { innerHTML: this.currentTrek.accessibility_slope }))), this.currentTrek.accessibility_width && (index.h("div", { class: "accessibility-width-container" }, index.h("div", { class: "accessibility-width-title" }, i18n.translate[utils$1.state.language].accessibilityWidth), index.h("div", { innerHTML: this.currentTrek.accessibility_width }))), this.currentTrek.accessibility_signage && (index.h("div", { class: "accessibility-signage-container" }, index.h("div", { class: "accessibility-signage-title" }, i18n.translate[utils$1.state.language].accessibilitySignage), index.h("div", { innerHTML: this.currentTrek.accessibility_signage }))), this.currentTrek.accessibility_covering && (index.h("div", { class: "accessibility-covering-container" }, index.h("div", { class: "accessibility-covering-title" }, i18n.translate[utils$1.state.language].accessibilityCovering), index.h("div", { innerHTML: this.currentTrek.accessibility_covering }))), this.currentTrek.accessibility_exposure && (index.h("div", { class: "accessibility-exposure-container" }, index.h("div", { class: "accessibility-exposure-title" }, i18n.translate[utils$1.state.language].accessibilityExposure), index.h("div", { innerHTML: this.currentTrek.accessibility_exposure }))), this.currentTrek.accessibility_advice && (index.h("div", { class: "accessibility-advice-container" }, index.h("div", { class: "accessibility-advice-title" }, i18n.translate[utils$1.state.language].accessibilityAdvices), index.h("div", { innerHTML: this.currentTrek.accessibility_advice })))))), utils$1.state.currentPois && utils$1.state.currentPois.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "pois-container", ref: el => (this.poiRef = el) }, index.h("div", { class: "pois-title" }, i18n.translate[utils$1.state.language].pois(utils$1.state.currentPois.length)), index.h("div", { class: "swiper swiper-pois", ref: el => (this.swiperPoisRef = el) }, index.h("div", { class: "swiper-wrapper" }, utils$1.state.currentPois.map(poi => (index.h("div", { class: "swiper-slide" }, index.h("grw-poi", { poi: poi }))))))))), utils$1.state.trekTouristicContents && utils$1.state.trekTouristicContents.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "touristic-content-container", ref: el => (this.touristicContentsRef = el) }, index.h("div", { class: "touristic-content-title" }, i18n.translate[utils$1.state.language].touristicContents(utils$1.state.trekTouristicContents.length)), index.h("div", { class: "swiper swiper-touristic-content", ref: el => (this.swiperTouristicContentsRef = el) }, index.h("div", { class: "swiper-wrapper" }, utils$1.state.trekTouristicContents.map(touristicContent => (index.h("div", { class: "swiper-slide" }, index.h("grw-touristic-content-card", { touristicContent: touristicContent, isInsideHorizontalList: true }))))))))), utils$1.state.touristicEvents && utils$1.state.touristicEvents.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "touristic-event-container", ref: el => (this.touristicEventsRef = el) }, index.h("div", { class: "touristic-event-title" }, i18n.translate[utils$1.state.language].touristicEvents(utils$1.state.touristicEvents.length)), index.h("div", { class: "swiper swiper-touristic-event", ref: el => (this.swiperTouristicEventsRef = el) }, index.h("div", { class: "swiper-wrapper" }, utils$1.state.touristicEvents.map(touristicEvent => (index.h("div", { class: "swiper-slide" }, index.h("grw-touristic-event-card", { touristicEvent: touristicEvent }))))))))), this.currentTrek.source && this.currentTrek.source.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "source-container" }, index.h("div", { class: "source-title" }, i18n.translate[utils$1.state.language].sources), this.sources.map(source => (index.h("div", { class: "source-sub-container" }, source.pictogram && index.h("img", { src: source.pictogram }), index.h("div", null, index.h("div", { class: "source-name", innerHTML: source.name }), index.h("a", { class: "source-advice", href: source.website, innerHTML: source.website })))))))), index.h("div", { class: "detail-bottom-space" })))));
|
|
21493
21974
|
}
|
|
21494
21975
|
};
|
|
21495
21976
|
GrwTrekDetail.style = grwTrekDetailCss;
|
|
@@ -21506,34 +21987,37 @@ const GrwTrekProvider = class {
|
|
|
21506
21987
|
this.portals = undefined;
|
|
21507
21988
|
}
|
|
21508
21989
|
connectedCallback() {
|
|
21509
|
-
if (!
|
|
21510
|
-
|
|
21511
|
-
|
|
21512
|
-
|
|
21990
|
+
if (!utils$1.state.api) {
|
|
21991
|
+
utils$1.state.api = this.api;
|
|
21992
|
+
utils$1.state.languages = this.languages.split(',');
|
|
21993
|
+
utils$1.state.language = utils$1.state.languages[0];
|
|
21513
21994
|
}
|
|
21514
21995
|
this.handleTrek();
|
|
21515
21996
|
}
|
|
21516
21997
|
handleTrek() {
|
|
21517
21998
|
const requests = [];
|
|
21518
|
-
requests.push(!
|
|
21519
|
-
? fetch(`${
|
|
21999
|
+
requests.push(!utils$1.state.difficulties
|
|
22000
|
+
? fetch(`${utils$1.state.api}trek_difficulty/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init)
|
|
21520
22001
|
: new Response('null'));
|
|
21521
|
-
requests.push(!
|
|
21522
|
-
? fetch(`${
|
|
22002
|
+
requests.push(!utils$1.state.routes
|
|
22003
|
+
? fetch(`${utils$1.state.api}trek_route/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,route,pictogram`, this.init)
|
|
21523
22004
|
: new Response('null'));
|
|
21524
|
-
requests.push(!
|
|
21525
|
-
? fetch(`${
|
|
22005
|
+
requests.push(!utils$1.state.practices
|
|
22006
|
+
? fetch(`${utils$1.state.api}trek_practice/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram`, this.init)
|
|
21526
22007
|
: new Response('null'));
|
|
21527
|
-
requests.push(!
|
|
21528
|
-
? fetch(`${
|
|
22008
|
+
requests.push(!utils$1.state.themes
|
|
22009
|
+
? fetch(`${utils$1.state.api}theme/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init)
|
|
21529
22010
|
: new Response('null'));
|
|
21530
|
-
requests.push(!
|
|
21531
|
-
requests.push(!
|
|
21532
|
-
? fetch(`${
|
|
22011
|
+
requests.push(!utils$1.state.cities ? fetch(`${utils$1.state.api}city/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
|
|
22012
|
+
requests.push(!utils$1.state.accessibilities
|
|
22013
|
+
? fetch(`${utils$1.state.api}trek_accessibility/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram`, this.init)
|
|
22014
|
+
: new Response('null'));
|
|
22015
|
+
requests.push(!utils$1.state.ratings
|
|
22016
|
+
? fetch(`${utils$1.state.api}trek_rating/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name`, this.init)
|
|
21533
22017
|
: new Response('null'));
|
|
21534
22018
|
Promise.all([
|
|
21535
22019
|
...requests,
|
|
21536
|
-
fetch(`${this.api}sensitivearea/?language=${
|
|
22020
|
+
fetch(`${this.api}sensitivearea/?language=${utils$1.state.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`, this.init)
|
|
21537
22021
|
.then(response => {
|
|
21538
22022
|
if (response.ok) {
|
|
21539
22023
|
return response;
|
|
@@ -21545,89 +22029,92 @@ const GrwTrekProvider = class {
|
|
|
21545
22029
|
.catch(() => {
|
|
21546
22030
|
return new Response('null');
|
|
21547
22031
|
}),
|
|
21548
|
-
fetch(`${
|
|
21549
|
-
fetch(`${
|
|
21550
|
-
fetch(`${
|
|
21551
|
-
fetch(`${
|
|
21552
|
-
fetch(`${
|
|
21553
|
-
fetch(`${
|
|
21554
|
-
fetch(`${
|
|
21555
|
-
fetch(`${
|
|
21556
|
-
fetch(`${
|
|
21557
|
-
fetch(`${
|
|
21558
|
-
fetch(`${
|
|
22032
|
+
fetch(`${utils$1.state.api}label/?language=${utils$1.state.language}&fields=id,name,advice,pictogram`, this.init),
|
|
22033
|
+
fetch(`${utils$1.state.api}source/?language=${utils$1.state.language}&fields=id,name,website,pictogram`, this.init),
|
|
22034
|
+
fetch(`${utils$1.state.api}trek_accessibility_level/?language=${utils$1.state.language}&fields=id,name`, this.init).catch(() => new Response('null')),
|
|
22035
|
+
fetch(`${utils$1.state.api}poi/?language=${utils$1.state.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`, this.init),
|
|
22036
|
+
fetch(`${utils$1.state.api}poi_type/?language=${utils$1.state.language}&fields=id,pictogram`, this.init),
|
|
22037
|
+
fetch(`${utils$1.state.api}informationdesk/?language=${utils$1.state.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`, this.init),
|
|
22038
|
+
fetch(`${utils$1.state.api}touristiccontent/?language=${utils$1.state.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,category,geometry&page_size=999`, this.init),
|
|
22039
|
+
fetch(`${utils$1.state.api}touristiccontent_category/?language=${utils$1.state.language}&published=true&fields=id,label,pictogram&page_size=999`, this.init),
|
|
22040
|
+
fetch(`${utils$1.state.api}touristicevent/?language=${utils$1.state.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,type,geometry&page_size=999`, this.init),
|
|
22041
|
+
fetch(`${utils$1.state.api}touristicevent_type/?language=${utils$1.state.language}&published=true&fields=id,type,pictogram&page_size=999`, this.init),
|
|
22042
|
+
fetch(`${utils$1.state.api}trek/${this.trekId}/?language=${utils$1.state.language}&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,ratings,ratings_description,information_desks,children`, this.init),
|
|
21559
22043
|
])
|
|
21560
22044
|
.then(responses => Promise.all(responses.map(response => response.json())))
|
|
21561
|
-
.then(async ([difficulties, routes, practices, themes, cities, accessibilities, sensitiveAreas, labels, sources, accessibilitiesLevel, pois, poiTypes, informationDesks, touristicContent, touristicContentCategory, touristicEvent, touristicEventType, trek,]) => {
|
|
21562
|
-
|
|
21563
|
-
if (trek.children.length > 0 ||
|
|
22045
|
+
.then(async ([difficulties, routes, practices, themes, cities, accessibilities, ratings, sensitiveAreas, labels, sources, accessibilitiesLevel, pois, poiTypes, informationDesks, touristicContent, touristicContentCategory, touristicEvent, touristicEventType, trek,]) => {
|
|
22046
|
+
utils$1.state.trekNetworkError = false;
|
|
22047
|
+
if (trek.children.length > 0 || utils$1.state.parentTrekId) {
|
|
21564
22048
|
const steps = [];
|
|
21565
22049
|
if (trek.children.length > 0) {
|
|
21566
|
-
|
|
21567
|
-
|
|
22050
|
+
utils$1.state.parentTrekId = trek.id;
|
|
22051
|
+
utils$1.state.parentTrek = trek;
|
|
21568
22052
|
steps.push(...trek.children);
|
|
21569
22053
|
}
|
|
21570
22054
|
else {
|
|
21571
|
-
const parentTrek = await fetch(`${
|
|
21572
|
-
|
|
22055
|
+
const parentTrek = await fetch(`${utils$1.state.api}trek/${utils$1.state.parentTrekId}/?language=${utils$1.state.language}&published=true&fields=name,children`).then(response => response.json());
|
|
22056
|
+
utils$1.state.parentTrek = parentTrek;
|
|
21573
22057
|
steps.push(...parentTrek.children);
|
|
21574
22058
|
}
|
|
21575
22059
|
const stepRequests = [];
|
|
21576
22060
|
steps.forEach(stepId => {
|
|
21577
|
-
stepRequests.push(fetch(`${
|
|
22061
|
+
stepRequests.push(fetch(`${utils$1.state.api}trek/${stepId}/?language=${utils$1.state.language}&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts`));
|
|
21578
22062
|
});
|
|
21579
|
-
|
|
22063
|
+
utils$1.state.currentTrekSteps = await Promise.all([...stepRequests]).then(responses => Promise.all(responses.map(response => response.json())));
|
|
21580
22064
|
}
|
|
21581
22065
|
if (difficulties) {
|
|
21582
|
-
|
|
22066
|
+
utils$1.state.difficulties = difficulties.results;
|
|
21583
22067
|
}
|
|
21584
22068
|
if (routes) {
|
|
21585
|
-
|
|
22069
|
+
utils$1.state.routes = routes.results;
|
|
21586
22070
|
}
|
|
21587
22071
|
if (practices) {
|
|
21588
|
-
|
|
22072
|
+
utils$1.state.practices = practices.results.map(practice => (Object.assign(Object.assign({}, practice), { selected: false })));
|
|
21589
22073
|
}
|
|
21590
22074
|
if (themes) {
|
|
21591
|
-
|
|
22075
|
+
utils$1.state.themes = themes.results;
|
|
21592
22076
|
}
|
|
21593
22077
|
if (cities) {
|
|
21594
|
-
|
|
22078
|
+
utils$1.state.cities = cities.results;
|
|
21595
22079
|
}
|
|
21596
22080
|
if (accessibilities) {
|
|
21597
|
-
|
|
22081
|
+
utils$1.state.accessibilities = accessibilities.results;
|
|
22082
|
+
}
|
|
22083
|
+
if (ratings) {
|
|
22084
|
+
utils$1.state.ratings = ratings.results;
|
|
21598
22085
|
}
|
|
21599
22086
|
if (sensitiveAreas) {
|
|
21600
|
-
|
|
22087
|
+
utils$1.state.currentSensitiveAreas = sensitiveAreas.results;
|
|
21601
22088
|
}
|
|
21602
|
-
|
|
21603
|
-
|
|
22089
|
+
utils$1.state.labels = labels.results;
|
|
22090
|
+
utils$1.state.sources = sources.results;
|
|
21604
22091
|
if (accessibilitiesLevel) {
|
|
21605
|
-
|
|
22092
|
+
utils$1.state.accessibilitiesLevel = accessibilitiesLevel.results;
|
|
21606
22093
|
}
|
|
21607
22094
|
if (touristicContent) {
|
|
21608
|
-
|
|
22095
|
+
utils$1.state.trekTouristicContents = touristicContent.results;
|
|
21609
22096
|
}
|
|
21610
22097
|
if (touristicContentCategory) {
|
|
21611
|
-
|
|
22098
|
+
utils$1.state.touristicContentCategories = touristicContentCategory.results;
|
|
21612
22099
|
}
|
|
21613
22100
|
if (touristicEvent) {
|
|
21614
|
-
|
|
22101
|
+
utils$1.state.touristicEvents = touristicEvent.results;
|
|
21615
22102
|
}
|
|
21616
22103
|
if (touristicEventType) {
|
|
21617
|
-
|
|
22104
|
+
utils$1.state.touristicEventTypes = touristicEventType.results;
|
|
21618
22105
|
}
|
|
21619
|
-
|
|
21620
|
-
|
|
21621
|
-
|
|
21622
|
-
|
|
22106
|
+
utils$1.state.currentPois = pois.results;
|
|
22107
|
+
utils$1.state.poiTypes = poiTypes.results;
|
|
22108
|
+
utils$1.state.currentInformationDesks = informationDesks.results;
|
|
22109
|
+
utils$1.state.currentTrek = trek;
|
|
21623
22110
|
})
|
|
21624
22111
|
.catch(() => {
|
|
21625
|
-
|
|
22112
|
+
utils$1.state.trekNetworkError = true;
|
|
21626
22113
|
});
|
|
21627
22114
|
}
|
|
21628
22115
|
disconnectedCallback() {
|
|
21629
22116
|
this.controller.abort();
|
|
21630
|
-
|
|
22117
|
+
utils$1.state.trekNetworkError = false;
|
|
21631
22118
|
}
|
|
21632
22119
|
render() {
|
|
21633
22120
|
return index.h(index.Host, null);
|
|
@@ -21653,28 +22140,28 @@ const GrwTreksList = class {
|
|
|
21653
22140
|
}
|
|
21654
22141
|
connectedCallback() {
|
|
21655
22142
|
this.handleInfiniteScrollEvent(true);
|
|
21656
|
-
if (
|
|
21657
|
-
this.treksToDisplay = [...
|
|
22143
|
+
if (utils$1.state.currentTreks) {
|
|
22144
|
+
this.treksToDisplay = [...utils$1.state.currentTreks.slice(0, this.step)];
|
|
21658
22145
|
}
|
|
21659
|
-
|
|
22146
|
+
utils$1.onChange('currentTreks', () => {
|
|
21660
22147
|
this.handleInfiniteScrollEvent(true);
|
|
21661
22148
|
this.element.scroll({ top: 0 });
|
|
21662
|
-
if (
|
|
21663
|
-
this.treksToDisplay = [...
|
|
22149
|
+
if (utils$1.state.currentTreks) {
|
|
22150
|
+
this.treksToDisplay = [...utils$1.state.currentTreks.slice(0, this.step)];
|
|
21664
22151
|
}
|
|
21665
22152
|
});
|
|
21666
|
-
|
|
22153
|
+
utils$1.onChange('treksWithinBounds', () => {
|
|
21667
22154
|
this.handleInfiniteScrollEvent(true);
|
|
21668
22155
|
this.element.scroll({ top: 0 });
|
|
21669
|
-
if (
|
|
21670
|
-
this.treksToDisplay = [...
|
|
22156
|
+
if (utils$1.state.treksWithinBounds) {
|
|
22157
|
+
this.treksToDisplay = [...utils$1.state.treksWithinBounds.slice(0, this.step)];
|
|
21671
22158
|
}
|
|
21672
22159
|
});
|
|
21673
22160
|
}
|
|
21674
22161
|
handleInfiniteScroll(event) {
|
|
21675
22162
|
if (event.composedPath()[0].scrollTop + event.composedPath()[0].scrollHeight / 2 >= event.composedPath()[0].scrollHeight) {
|
|
21676
|
-
if (this.treksToDisplay.length <
|
|
21677
|
-
this.treksToDisplay =
|
|
22163
|
+
if (this.treksToDisplay.length < utils$1.state.treksWithinBounds.length) {
|
|
22164
|
+
this.treksToDisplay = utils$1.state.treksWithinBounds.slice(0, this.treksToDisplay.length + this.step >= utils$1.state.treksWithinBounds.length ? utils$1.state.treksWithinBounds.length : this.treksToDisplay.length + this.step);
|
|
21678
22165
|
}
|
|
21679
22166
|
else {
|
|
21680
22167
|
this.handleInfiniteScrollEvent(false);
|
|
@@ -21695,12 +22182,12 @@ const GrwTreksList = class {
|
|
|
21695
22182
|
}
|
|
21696
22183
|
disconnectedCallback() {
|
|
21697
22184
|
if (this.resetStoreOnDisconnected) {
|
|
21698
|
-
|
|
22185
|
+
utils$1.reset();
|
|
21699
22186
|
}
|
|
21700
22187
|
this.handleInfiniteScrollEvent(false);
|
|
21701
22188
|
}
|
|
21702
22189
|
render() {
|
|
21703
|
-
return (index.h(index.Host, { style: { '--color-primary-app': this.colorPrimaryApp } },
|
|
22190
|
+
return (index.h(index.Host, { style: { '--color-primary-app': this.colorPrimaryApp } }, utils$1.state.treksWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${utils$1.state.treksWithinBounds.length} ${utils$1.state.treksWithinBounds.length > 1 ? i18n.translate[utils$1.state.language].treks : i18n.translate[utils$1.state.language].trek}`)), index.h("div", { class: "treks-list-container" }, this.treksToDisplay.map(trek => (index.h("grw-trek-card", { "reset-store-on-disconnected": "false", key: `trek-${trek.id}`, trek: trek, "is-large-view": this.isLargeView, "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.isLargeView && index.h("div", { class: "list-bottom-space" })));
|
|
21704
22191
|
}
|
|
21705
22192
|
get element() { return index.getElement(this); }
|
|
21706
22193
|
};
|
|
@@ -21724,19 +22211,19 @@ const GrwTreksProvider = class {
|
|
|
21724
22211
|
this.practices = undefined;
|
|
21725
22212
|
}
|
|
21726
22213
|
connectedCallback() {
|
|
21727
|
-
if (!
|
|
21728
|
-
|
|
21729
|
-
|
|
21730
|
-
|
|
22214
|
+
if (!utils$1.state.api) {
|
|
22215
|
+
utils$1.state.api = this.api;
|
|
22216
|
+
utils$1.state.languages = this.languages.split(',');
|
|
22217
|
+
utils$1.state.language = utils$1.state.languages[0];
|
|
21731
22218
|
}
|
|
21732
22219
|
this.handleTreks();
|
|
21733
22220
|
}
|
|
21734
22221
|
disconnectedCallback() {
|
|
21735
22222
|
this.controller.abort();
|
|
21736
|
-
|
|
22223
|
+
utils$1.state.treksNetworkError = false;
|
|
21737
22224
|
}
|
|
21738
22225
|
handleTreks() {
|
|
21739
|
-
let treksRequest = `${this.api}trek/?language=${
|
|
22226
|
+
let treksRequest = `${this.api}trek/?language=${utils$1.state.language}&published=true`;
|
|
21740
22227
|
this.inBbox && (treksRequest += `&in_bbox=${this.inBbox}`);
|
|
21741
22228
|
this.cities && (treksRequest += `&cities=${this.cities}`);
|
|
21742
22229
|
this.districts && (treksRequest += `&districts=${this.districts}`);
|
|
@@ -21747,47 +22234,47 @@ const GrwTreksProvider = class {
|
|
|
21747
22234
|
this.practices && (treksRequest += `&practices=${this.practices}`);
|
|
21748
22235
|
treksRequest += `&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts&page_size=999`;
|
|
21749
22236
|
Promise.all([
|
|
21750
|
-
fetch(`${
|
|
21751
|
-
fetch(`${
|
|
21752
|
-
fetch(`${
|
|
21753
|
-
fetch(`${
|
|
21754
|
-
fetch(`${
|
|
21755
|
-
fetch(`${
|
|
21756
|
-
fetch(`${
|
|
21757
|
-
fetch(`${
|
|
22237
|
+
fetch(`${utils$1.state.api}trek_difficulty/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init),
|
|
22238
|
+
fetch(`${utils$1.state.api}trek_route/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,route,pictogram`, this.init),
|
|
22239
|
+
fetch(`${utils$1.state.api}trek_practice/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram`, this.init),
|
|
22240
|
+
fetch(`${utils$1.state.api}theme/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init),
|
|
22241
|
+
fetch(`${utils$1.state.api}city/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init),
|
|
22242
|
+
fetch(`${utils$1.state.api}trek_accessibility/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram&published=true&page_size=999`, this.init),
|
|
22243
|
+
fetch(`${utils$1.state.api}label/?language=${utils$1.state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,advice,pictogram&published=true&page_size=999`, this.init),
|
|
22244
|
+
fetch(`${utils$1.state.api}district/?language=${utils$1.state.language}&fields=id,name&published=true&page_size=999`, this.init),
|
|
21758
22245
|
fetch(treksRequest, this.init),
|
|
21759
22246
|
])
|
|
21760
22247
|
.then(responses => Promise.all(responses.map(response => response.json())))
|
|
21761
22248
|
.then(([difficulties, routes, practices, themes, cities, accessibility, labels, districts, treks]) => {
|
|
21762
|
-
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
22249
|
+
utils$1.state.treksNetworkError = false;
|
|
22250
|
+
utils$1.state.difficulties = difficulties.results;
|
|
22251
|
+
utils$1.state.routes = routes.results;
|
|
22252
|
+
utils$1.state.practices = practices.results.map(practice => (Object.assign(Object.assign({}, practice), { selected: false })));
|
|
22253
|
+
utils$1.state.themes = themes.results;
|
|
22254
|
+
utils$1.state.cities = cities.results;
|
|
22255
|
+
utils$1.state.accessibilities = accessibility.results;
|
|
22256
|
+
utils$1.state.durations = [
|
|
21770
22257
|
{ id: 1, name: '0 - 1h', minValue: 0, maxValue: 1, selected: false },
|
|
21771
22258
|
{ id: 2, name: '1 - 2h', minValue: 1, maxValue: 2, selected: false },
|
|
21772
22259
|
{ id: 3, name: '2 - 5h', minValue: 2, maxValue: 5, selected: false },
|
|
21773
22260
|
{ id: 4, name: '5 - 10h', minValue: 5, maxValue: 10, selected: false },
|
|
21774
22261
|
];
|
|
21775
|
-
|
|
22262
|
+
utils$1.state.lengths = [
|
|
21776
22263
|
{ id: 1, name: '0 - 5km', minValue: 0, maxValue: 5000, selected: false },
|
|
21777
22264
|
{ id: 2, name: '5 - 10km', minValue: 5000, maxValue: 10000, selected: false },
|
|
21778
22265
|
{ id: 3, name: '10 - 15km', minValue: 10000, maxValue: 15000, selected: false },
|
|
21779
22266
|
{ id: 4, name: '15 - 50km', minValue: 15000, maxValue: 50000, selected: false },
|
|
21780
22267
|
];
|
|
21781
|
-
|
|
22268
|
+
utils$1.state.elevations = [
|
|
21782
22269
|
{ id: 1, name: '0 - 500m', minValue: 0, maxValue: 500, selected: false },
|
|
21783
22270
|
{ id: 2, name: '500m - 1km', minValue: 500, maxValue: 1000, selected: false },
|
|
21784
22271
|
];
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
22272
|
+
utils$1.state.labels = labels.results;
|
|
22273
|
+
utils$1.state.districts = districts.results;
|
|
22274
|
+
utils$1.state.treks = treks.results;
|
|
22275
|
+
utils$1.state.currentTreks = treks.results;
|
|
21789
22276
|
})
|
|
21790
|
-
.catch(() => (
|
|
22277
|
+
.catch(() => (utils$1.state.treksNetworkError = true));
|
|
21791
22278
|
}
|
|
21792
22279
|
render() {
|
|
21793
22280
|
return index.h(index.Host, null);
|
|
@@ -21797,14 +22284,18 @@ const GrwTreksProvider = class {
|
|
|
21797
22284
|
exports.grw_filters = GrwFilters;
|
|
21798
22285
|
exports.grw_map = GrwMap;
|
|
21799
22286
|
exports.grw_search = GrwSearch;
|
|
22287
|
+
exports.grw_select_language = GrwSelectLanguage;
|
|
21800
22288
|
exports.grw_touristic_content_detail = GrwTouristicContentDetail;
|
|
21801
22289
|
exports.grw_touristic_content_provider = GrwTouristicContentProvider;
|
|
21802
|
-
exports.grw_touristic_contents_list = GrwTouristicContentsList;
|
|
22290
|
+
exports.grw_touristic_contents_list = GrwTouristicContentsList$1;
|
|
21803
22291
|
exports.grw_touristic_contents_provider = GrwTouristicContentsProvider;
|
|
21804
22292
|
exports.grw_touristic_event_detail = GrwTouristicEventDetail;
|
|
22293
|
+
exports.grw_touristic_event_provider = GrwTouristicEventProvider;
|
|
22294
|
+
exports.grw_touristic_events_list = GrwTouristicContentsList;
|
|
22295
|
+
exports.grw_touristic_events_provider = GrwTouristicEventsProvider;
|
|
21805
22296
|
exports.grw_trek_detail = GrwTrekDetail;
|
|
21806
22297
|
exports.grw_trek_provider = GrwTrekProvider;
|
|
21807
22298
|
exports.grw_treks_list = GrwTreksList;
|
|
21808
22299
|
exports.grw_treks_provider = GrwTreksProvider;
|
|
21809
22300
|
|
|
21810
|
-
//# sourceMappingURL=grw-
|
|
22301
|
+
//# sourceMappingURL=grw-filters_16.cjs.entry.js.map
|