@geotrekce/geotrek-rando-widget 0.4.2 → 0.4.4

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.
Files changed (212) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  3. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  4. package/dist/cjs/grw-app.cjs.entry.js +2 -2
  5. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/grw-filters_12.cjs.entry.js +46 -38
  9. package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filters_12.cjs.entry.js.map +1 -1
  12. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +6 -5
  13. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +1 -1
  16. package/dist/cjs/{i18n-cfc000c9.js → i18n-a5ad3083.js} +15 -13
  17. package/dist/cjs/i18n-a5ad3083.js.br +0 -0
  18. package/dist/cjs/i18n-a5ad3083.js.gz +0 -0
  19. package/dist/cjs/i18n-a5ad3083.js.map +1 -0
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/loader.cjs.js.br +0 -0
  22. package/dist/cjs/loader.cjs.js.gz +0 -0
  23. package/dist/cjs/utils-332e41b3.js.map +1 -1
  24. package/dist/collection/components/grw-app/grw-app.js +1 -1
  25. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  26. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  27. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  28. package/dist/collection/components/grw-filters/grw-filters.js +1 -1
  29. package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
  30. package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
  31. package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
  32. package/dist/collection/components/grw-map/grw-map.js +16 -20
  33. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  34. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  35. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  36. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +1 -1
  37. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  38. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  39. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
  40. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
  41. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  42. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  43. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
  44. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
  45. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  46. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  47. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  48. package/dist/collection/i18n/i18n.js +14 -12
  49. package/dist/collection/i18n/i18n.js.br +0 -0
  50. package/dist/collection/i18n/i18n.js.gz +0 -0
  51. package/dist/collection/i18n/i18n.js.map +1 -1
  52. package/dist/collection/store/grw-touristic-content-provider.js +19 -1
  53. package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
  54. package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
  55. package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
  56. package/dist/collection/store/grw-touristic-contents-provider.js +1 -1
  57. package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
  58. package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
  59. package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -1
  60. package/dist/collection/store/grw-touristic-event-provider.js +23 -5
  61. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  62. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  63. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
  64. package/dist/collection/store/grw-trek-provider.js +33 -5
  65. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  66. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  67. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  68. package/dist/collection/store/grw-treks-provider.js +6 -6
  69. package/dist/collection/store/grw-treks-provider.js.br +0 -0
  70. package/dist/collection/store/grw-treks-provider.js.gz +0 -0
  71. package/dist/collection/store/grw-treks-provider.js.map +1 -1
  72. package/dist/collection/stories/App.js +6 -0
  73. package/dist/collection/stories/App.js.br +0 -0
  74. package/dist/collection/stories/App.js.gz +0 -0
  75. package/dist/collection/stories/App.stories.js +3 -0
  76. package/dist/collection/stories/App.stories.js.br +0 -0
  77. package/dist/collection/stories/App.stories.js.gz +0 -0
  78. package/dist/collection/utils/utils.js.map +1 -1
  79. package/dist/esm/geotrek-rando-widget.js +1 -1
  80. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  81. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  82. package/dist/esm/grw-app.entry.js +2 -2
  83. package/dist/esm/grw-app.entry.js.br +0 -0
  84. package/dist/esm/grw-app.entry.js.gz +0 -0
  85. package/dist/esm/grw-app.entry.js.map +1 -1
  86. package/dist/esm/grw-filters_12.entry.js +46 -38
  87. package/dist/esm/grw-filters_12.entry.js.br +0 -0
  88. package/dist/esm/grw-filters_12.entry.js.gz +0 -0
  89. package/dist/esm/grw-filters_12.entry.js.map +1 -1
  90. package/dist/esm/grw-touristic-event-card-provider.entry.js +6 -5
  91. package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
  92. package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
  93. package/dist/esm/grw-touristic-event-card-provider.entry.js.map +1 -1
  94. package/dist/esm/{i18n-60e9fdd3.js → i18n-e6325e81.js} +15 -13
  95. package/dist/esm/i18n-e6325e81.js.br +0 -0
  96. package/dist/esm/i18n-e6325e81.js.gz +0 -0
  97. package/dist/esm/i18n-e6325e81.js.map +1 -0
  98. package/dist/esm/loader.js +1 -1
  99. package/dist/esm/loader.js.br +0 -0
  100. package/dist/esm/loader.js.gz +0 -0
  101. package/dist/esm/utils-b09ac7c9.js.map +1 -1
  102. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  103. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  104. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  105. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  106. package/dist/esm-es5/grw-app.entry.js +1 -1
  107. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  108. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  109. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  110. package/dist/esm-es5/grw-filters_12.entry.js +3 -3
  111. package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
  112. package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
  113. package/dist/esm-es5/grw-filters_12.entry.js.map +1 -1
  114. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +1 -1
  115. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
  116. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
  117. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +1 -1
  118. package/dist/esm-es5/i18n-e6325e81.js +2 -0
  119. package/dist/esm-es5/i18n-e6325e81.js.br +0 -0
  120. package/dist/esm-es5/i18n-e6325e81.js.gz +0 -0
  121. package/dist/esm-es5/i18n-e6325e81.js.map +1 -0
  122. package/dist/esm-es5/loader.js +1 -1
  123. package/dist/esm-es5/loader.js.br +0 -0
  124. package/dist/esm-es5/loader.js.gz +0 -0
  125. package/dist/esm-es5/loader.js.map +1 -1
  126. package/dist/esm-es5/utils-b09ac7c9.js.map +1 -1
  127. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  128. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  129. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  130. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  131. package/dist/geotrek-rando-widget/p-0f47847d.system.js +2 -0
  132. package/dist/geotrek-rando-widget/p-0f47847d.system.js.br +0 -0
  133. package/dist/geotrek-rando-widget/p-0f47847d.system.js.gz +0 -0
  134. package/dist/geotrek-rando-widget/p-0f47847d.system.js.map +1 -0
  135. package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +1 -1
  136. package/dist/geotrek-rando-widget/{p-3c32c109.system.entry.js → p-2c4abcd9.system.entry.js} +2 -2
  137. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.br +0 -0
  138. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.gz +0 -0
  139. package/dist/geotrek-rando-widget/{p-3c32c109.system.entry.js.map → p-2c4abcd9.system.entry.js.map} +1 -1
  140. package/dist/geotrek-rando-widget/{p-bcd87b5c.entry.js → p-3bbe169c.entry.js} +3 -3
  141. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.br +0 -0
  142. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.gz +0 -0
  143. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.map +1 -0
  144. package/dist/geotrek-rando-widget/p-42ee320d.entry.js +2 -0
  145. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.br +0 -0
  146. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.gz +0 -0
  147. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.map +1 -0
  148. package/dist/geotrek-rando-widget/p-5e7ed046.js +2 -0
  149. package/dist/geotrek-rando-widget/p-5e7ed046.js.br +0 -0
  150. package/dist/geotrek-rando-widget/p-5e7ed046.js.gz +0 -0
  151. package/dist/geotrek-rando-widget/p-5e7ed046.js.map +1 -0
  152. package/dist/geotrek-rando-widget/{p-feeb03a9.system.entry.js → p-b40c2ea8.system.entry.js} +3 -3
  153. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.br +0 -0
  154. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.gz +0 -0
  155. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.map +1 -0
  156. package/dist/geotrek-rando-widget/p-ba971c93.entry.js +2 -0
  157. package/dist/geotrek-rando-widget/p-ba971c93.entry.js.br +0 -0
  158. package/dist/geotrek-rando-widget/p-ba971c93.entry.js.gz +0 -0
  159. package/dist/geotrek-rando-widget/{p-d5584258.entry.js.map → p-ba971c93.entry.js.map} +1 -1
  160. package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +1 -1
  161. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +1 -1
  162. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
  163. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
  164. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -1
  165. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js +2 -0
  166. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.br +0 -0
  167. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.gz +0 -0
  168. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.map +1 -0
  169. package/dist/types/components/grw-map/grw-map.d.ts +2 -2
  170. package/dist/types/components.d.ts +6 -0
  171. package/dist/types/i18n/i18n.d.ts +1 -0
  172. package/dist/types/store/grw-touristic-content-provider.d.ts +1 -0
  173. package/dist/types/store/grw-touristic-event-provider.d.ts +1 -0
  174. package/dist/types/store/grw-trek-provider.d.ts +1 -0
  175. package/package.json +1 -1
  176. package/dist/cjs/i18n-cfc000c9.js.br +0 -0
  177. package/dist/cjs/i18n-cfc000c9.js.gz +0 -0
  178. package/dist/cjs/i18n-cfc000c9.js.map +0 -1
  179. package/dist/esm/i18n-60e9fdd3.js.br +0 -0
  180. package/dist/esm/i18n-60e9fdd3.js.gz +0 -0
  181. package/dist/esm/i18n-60e9fdd3.js.map +0 -1
  182. package/dist/esm-es5/i18n-60e9fdd3.js +0 -2
  183. package/dist/esm-es5/i18n-60e9fdd3.js.br +0 -0
  184. package/dist/esm-es5/i18n-60e9fdd3.js.gz +0 -0
  185. package/dist/esm-es5/i18n-60e9fdd3.js.map +0 -1
  186. package/dist/geotrek-rando-widget/p-3c32c109.system.entry.js.br +0 -0
  187. package/dist/geotrek-rando-widget/p-3c32c109.system.entry.js.gz +0 -0
  188. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js +0 -2
  189. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.br +0 -0
  190. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.gz +0 -0
  191. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.map +0 -1
  192. package/dist/geotrek-rando-widget/p-7eca502d.js +0 -2
  193. package/dist/geotrek-rando-widget/p-7eca502d.js.br +0 -0
  194. package/dist/geotrek-rando-widget/p-7eca502d.js.gz +0 -0
  195. package/dist/geotrek-rando-widget/p-7eca502d.js.map +0 -1
  196. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js +0 -2
  197. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.br +0 -0
  198. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.gz +0 -0
  199. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.map +0 -1
  200. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js +0 -2
  201. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.br +0 -0
  202. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.gz +0 -0
  203. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.map +0 -1
  204. package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.br +0 -0
  205. package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.gz +0 -0
  206. package/dist/geotrek-rando-widget/p-bcd87b5c.entry.js.map +0 -1
  207. package/dist/geotrek-rando-widget/p-d5584258.entry.js +0 -2
  208. package/dist/geotrek-rando-widget/p-d5584258.entry.js.br +0 -0
  209. package/dist/geotrek-rando-widget/p-d5584258.entry.js.gz +0 -0
  210. package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.br +0 -0
  211. package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.gz +0 -0
  212. package/dist/geotrek-rando-widget/p-feeb03a9.system.entry.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, e as createEvent, h, H as Host, i as getAssetPath, g as getElement } from './index-d5cacae4.js';
2
- import { t as translate } from './i18n-60e9fdd3.js';
2
+ import { t as translate } from './i18n-e6325e81.js';
3
3
  import { s as state, o as onChange, r as reset } from './store-032ab1f5.js';
4
4
  import { t as treksFilters, h as handleTreksFiltersAndSearch, a as touristicContentsFilters, b as handleTouristicContentsFiltersAndSearch, f as formatDuration, c as formatLength, d as formatAscent } from './utils-b09ac7c9.js';
5
5
  import { g as getWindow, n as nextTick, a as now, e as elementTransitionEnd, S as Swiper, N as Navigation, P as Pagination, K as Keyboard } from './pagination-24051620.js';
@@ -50,7 +50,7 @@ const GrwFilters = class {
50
50
  this.handleFilters();
51
51
  }
52
52
  render() {
53
- return (h(Host, null, h("div", { class: "options-container" }, h("div", { class: "filters-container" }, state.mode === 'treks' && (h("div", { class: "filters-treks-container" }, h("div", { class: "filters-options-container" }, state.treksWithinBounds && (h("div", { class: "current-treks-within-bounds-length" }, `${state.treksWithinBounds.length} ${state.treksWithinBounds.length > 1 ? translate[state.language].treks : translate[state.language].trek}`)), h("div", { class: "filters-options-buttons-container" }, h("button", { class: "filter-option-button", onClick: () => this.handleEraseTreksFilters() }, translate[state.language].erase), h("button", { class: "filter-option-button", onClick: () => this.handleOkTreksFilters() }, translate[state.language].ok))), h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, translate[state.language].activities, " ", state.selectedActivitiesFilters !== 0 && `(${state.selectedActivitiesFilters})`)), this.handleSegment('selectedThemesFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedThemesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedThemesFilters') }, translate[state.language].themes, " ", state.selectedThemesFilters !== 0 && `(${state.selectedThemesFilters})`)), this.handleSegment('selectedLocationFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, translate[state.language].location, " ", state.selectedLocationFilters !== 0 && `(${state.selectedLocationFilters})`))), h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (h("div", { key: "treks-activities-segment-container", class: "segment-container" }, state['practices'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].practice, filterType: "practices", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['difficulties'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].difficulty, filterType: "difficulties", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))), state['durations'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].duration, filterType: "durations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['lengths'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].length, filterType: "lengths", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['elevations'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].elevation, filterType: "elevations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['routes'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].routes, filterType: "routes", filterNameProperty: "route", segment: "selectedActivitiesFilters" }))), state['accessibilities'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].accessibility, filterType: "accessibilities", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['labels'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].activities, filterType: "labels", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedThemesFilters' && (h("div", { key: "treks-themes-segment-container", class: "segment-container" }, state['themes'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].themes, filterPlaceholder: translate[state.language].placeholderThemes, filterType: "themes", filterNameProperty: "label", segment: "selectedThemesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (h("div", { key: "treks-location-segment-container", class: "segment-container" }, state['districts'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), state['cities'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].crossedCities, filterPlaceholder: translate[state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), state.mode === 'touristicContents' && (h("div", { class: "filters-touristic-contents-container" }, h("div", { class: "filters-options-container" }, state.touristicContentsWithinBounds && (h("div", { class: "current-treks-within-bounds-length" }, `${state.touristicContentsWithinBounds.length} ${state.touristicContentsWithinBounds.length > 1 ? translate[state.language].home.touristicContents : translate[state.language].home.touristicContent}`)), h("div", { class: "filters-options-buttons-container" }, h("button", { class: "filter-option-button", onClick: () => this.handleEraseTouristicContentsFilters() }, translate[state.language].erase), h("button", { class: "filter-option-button", onClick: () => this.handleOkTouristicContentsFilters() }, translate[state.language].ok))), h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, translate[state.language].services, " ", state.selectedActivitiesFilters !== 0 && `(${state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, translate[state.language].location, " ", state.selectedLocationFilters !== 0 && `(${state.selectedLocationFilters})`))), h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (h("div", { key: "touristic-contents-activities-segment-container", class: "segment-container" }, state['touristicContentCategories'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].category, filterType: "touristicContentCategories", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (h("div", { key: "touristic-contents-location-segment-container", class: "segment-container" }, state['districts'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), state['cities'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].crossedCities, filterPlaceholder: translate[state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" }))))))))), h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" }))));
53
+ return (h(Host, null, h("div", { class: "options-container" }, h("div", { class: "filters-container" }, state.mode === 'treks' && (h("div", { class: "filters-treks-container" }, h("div", { class: "filters-options-container" }, state.treksWithinBounds && (h("div", { class: "current-treks-within-bounds-length" }, `${state.treksWithinBounds.length} ${state.treksWithinBounds.length > 1 ? translate[state.language].treks : translate[state.language].trek}`)), h("div", { class: "filters-options-buttons-container" }, h("button", { class: "filter-option-button", onClick: () => this.handleEraseTreksFilters() }, translate[state.language].erase), h("button", { class: "filter-option-button", onClick: () => this.handleOkTreksFilters() }, translate[state.language].ok))), h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, translate[state.language].activities, " ", state.selectedActivitiesFilters !== 0 && `(${state.selectedActivitiesFilters})`)), this.handleSegment('selectedThemesFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedThemesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedThemesFilters') }, translate[state.language].themes, " ", state.selectedThemesFilters !== 0 && `(${state.selectedThemesFilters})`)), this.handleSegment('selectedLocationFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, translate[state.language].location, " ", state.selectedLocationFilters !== 0 && `(${state.selectedLocationFilters})`))), h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (h("div", { key: "treks-activities-segment-container", class: "segment-container" }, state['practices'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].practice, filterType: "practices", filterNameProperty: "name", segment: "selectedActivitiesFilters", filterPlaceholder: translate[state.language].placeholderPractices }))), state['difficulties'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].difficulty, filterType: "difficulties", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))), state['durations'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].duration, filterType: "durations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['lengths'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].length, filterType: "lengths", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['elevations'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].elevation, filterType: "elevations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['routes'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].routes, filterType: "routes", filterNameProperty: "route", segment: "selectedActivitiesFilters" }))), state['accessibilities'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].accessibility, filterType: "accessibilities", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), state['labels'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].activities, filterType: "labels", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedThemesFilters' && (h("div", { key: "treks-themes-segment-container", class: "segment-container" }, state['themes'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].themes, filterPlaceholder: translate[state.language].placeholderThemes, filterType: "themes", filterNameProperty: "label", segment: "selectedThemesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (h("div", { key: "treks-location-segment-container", class: "segment-container" }, state['districts'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), state['cities'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].crossedCities, filterPlaceholder: translate[state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), state.mode === 'touristicContents' && (h("div", { class: "filters-touristic-contents-container" }, h("div", { class: "filters-options-container" }, state.touristicContentsWithinBounds && (h("div", { class: "current-treks-within-bounds-length" }, `${state.touristicContentsWithinBounds.length} ${state.touristicContentsWithinBounds.length > 1 ? translate[state.language].home.touristicContents : translate[state.language].home.touristicContent}`)), h("div", { class: "filters-options-buttons-container" }, h("button", { class: "filter-option-button", onClick: () => this.handleEraseTouristicContentsFilters() }, translate[state.language].erase), h("button", { class: "filter-option-button", onClick: () => this.handleOkTouristicContentsFilters() }, translate[state.language].ok))), h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, translate[state.language].services, " ", state.selectedActivitiesFilters !== 0 && `(${state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, translate[state.language].location, " ", state.selectedLocationFilters !== 0 && `(${state.selectedLocationFilters})`))), h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (h("div", { key: "touristic-contents-activities-segment-container", class: "segment-container" }, state['touristicContentCategories'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].category, filterType: "touristicContentCategories", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (h("div", { key: "touristic-contents-location-segment-container", class: "segment-container" }, state['districts'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), state['cities'].length > 0 && (h("div", { class: "filter-container" }, h("grw-filter", { filterName: translate[state.language].crossedCities, filterPlaceholder: translate[state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" }))))))))), h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" }))));
54
54
  }
55
55
  };
56
56
  GrwFilters.style = grwFiltersCss;
@@ -19016,7 +19016,7 @@ const GrwMap = class {
19016
19016
  this.removeTrek();
19017
19017
  this.removeTouristicContent();
19018
19018
  this.removeTouristicEvent();
19019
- this.addTreks();
19019
+ this.addTreks(true);
19020
19020
  }
19021
19021
  });
19022
19022
  onChange('currentTrek', () => {
@@ -19071,17 +19071,21 @@ const GrwMap = class {
19071
19071
  }
19072
19072
  else if (state.currentTouristicContents) {
19073
19073
  this.removeTouristicContent();
19074
- this.addTouristicContents();
19074
+ this.addTouristicContents(true);
19075
19075
  }
19076
19076
  });
19077
19077
  onChange('mode', () => {
19078
19078
  if (state.mode === 'treks') {
19079
- this.removeTouristicContents();
19080
- this.addTreks();
19079
+ if (state.treks) {
19080
+ this.removeTouristicContents();
19081
+ this.addTreks(true);
19082
+ }
19081
19083
  }
19082
19084
  else if (state.mode === 'touristicContents') {
19083
- this.removeTreks();
19084
- this.addTouristicContents();
19085
+ if (state.touristicContents) {
19086
+ this.removeTreks();
19087
+ this.addTouristicContents(true);
19088
+ }
19085
19089
  }
19086
19090
  });
19087
19091
  }
@@ -19094,7 +19098,7 @@ const GrwMap = class {
19094
19098
  }
19095
19099
  this.handleLayersControlEvent();
19096
19100
  }
19097
- addTreks() {
19101
+ addTreks(resetBounds = false) {
19098
19102
  var _a;
19099
19103
  state.treksWithinBounds = state.currentTreks;
19100
19104
  const treksCurrentDepartureCoordinates = [];
@@ -19118,7 +19122,7 @@ const GrwMap = class {
19118
19122
  }
19119
19123
  }
19120
19124
  if (!this.treksLayer) {
19121
- if (treksCurrentDepartureCoordinates.length > 0 && !state.currentMapBounds) {
19125
+ if ((treksCurrentDepartureCoordinates.length > 0 && !state.currentMapBounds) || resetBounds) {
19122
19126
  this.bounds = leafletSrc.latLngBounds(treksCurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
19123
19127
  }
19124
19128
  else {
@@ -19882,22 +19886,14 @@ const GrwMap = class {
19882
19886
  this.currentToutisticContentLayer = null;
19883
19887
  }
19884
19888
  }
19885
- addTouristicContents() {
19886
- state.touristicContentsWithinBounds = state.touristicContents;
19889
+ addTouristicContents(resetBounds = false) {
19890
+ state.touristicContentsWithinBounds = state.currentTouristicContents;
19887
19891
  const touristicContentsCurrentCoordinates = [];
19888
19892
  const touristicContentsFeatureCollection = {
19889
19893
  type: 'FeatureCollection',
19890
19894
  features: [],
19891
19895
  };
19892
- if (state.touristicContents) {
19893
- if (touristicContentsCurrentCoordinates.length > 0 && !state.currentMapBounds) {
19894
- this.bounds = leafletSrc.latLngBounds(touristicContentsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
19895
- }
19896
- else {
19897
- if (state.currentMapBounds) {
19898
- this.bounds = state.currentMapBounds;
19899
- }
19900
- }
19896
+ if (state.currentTouristicContents) {
19901
19897
  for (const currentTouristicContent of state.currentTouristicContents) {
19902
19898
  touristicContentsCurrentCoordinates.push(currentTouristicContent.geometry.coordinates);
19903
19899
  touristicContentsFeatureCollection.features.push({
@@ -19912,7 +19908,7 @@ const GrwMap = class {
19912
19908
  }
19913
19909
  }
19914
19910
  if (!this.toutisticContentsLayer) {
19915
- if (touristicContentsCurrentCoordinates.length > 0 && !state.currentMapBounds) {
19911
+ if ((touristicContentsCurrentCoordinates.length > 0 && !state.currentMapBounds) || resetBounds) {
19916
19912
  this.bounds = leafletSrc.latLngBounds(touristicContentsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
19917
19913
  }
19918
19914
  else {
@@ -20829,7 +20825,7 @@ const GrwTouristicContentDetail = class {
20829
20825
  '--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
20830
20826
  } }, state.currentTouristicContent && (h("div", { class: "touristic-content-detail-container", ref: el => (this.touristicContentDetailContainerRef = el) }, h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentTouristicContent.attachments.length > 0 ? (state.currentTouristicContent.attachments
20831
20827
  .filter(attachment => attachment.type === 'image')
20832
- .map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), h("div", { class: "touristic-content-category-container" }, h("img", { src: touristicContentCategory.pictogram }), h("div", { class: "touristic-content-category-name" }, touristicContentCategory.label)), h("div", { class: "name" }, state.currentTouristicContent.name), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].download), h("div", { class: "links-container" }, h("a", { href: `${state.currentTouristicContent.pdf}` }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), state.currentTouristicContent.description_teaser && (h("div", null, h("div", { class: "divider" }), h("div", { class: "description-teaser", innerHTML: state.currentTouristicContent.description_teaser }))), h("div", { class: "divider" }), state.currentTouristicContent.practical_info && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: state.currentTouristicContent.description }))), cities && cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].city, " :\u00A0"), h("div", { innerHTML: cities.join(', ') }))), state.currentTouristicContent.practical_info && (h("div", null, h("div", { class: "divider" }), h("div", { class: "useful-information-container" }, h("div", { class: "useful-information-title" }, translate[state.language].usefulInformation, " :\u00A0"), h("div", { innerHTML: state.currentTouristicContent.practical_info })))), (state.currentTouristicContent.contact || state.currentTouristicContent.email || state.currentTouristicContent.website) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "contact-container" }, h("div", { class: "contact-title" }, translate[state.language].contact, " :\u00A0"), state.currentTouristicContent.contact && h("div", { innerHTML: state.currentTouristicContent.contact }), state.currentTouristicContent.email && (h("div", { class: "email-container" }, h("div", null, translate[state.language].email, " :\u00A0"), h("div", { innerHTML: state.currentTouristicContent.email }))), state.currentTouristicContent.website && (h("div", { class: "website-container" }, h("div", null, translate[state.language].website, " :\u00A0"), h("div", { innerHTML: state.currentTouristicContent.website })))))), h("div", { class: "detail-bottom-space" })))));
20828
+ .map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), h("div", { class: "touristic-content-category-container" }, h("img", { src: touristicContentCategory.pictogram }), h("div", { class: "touristic-content-category-name" }, touristicContentCategory.label)), h("div", { class: "name" }, state.currentTouristicContent.name), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].download), h("div", { class: "links-container" }, h("a", { href: `${state.currentTouristicContent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), state.currentTouristicContent.description_teaser && (h("div", null, h("div", { class: "divider" }), h("div", { class: "description-teaser", innerHTML: state.currentTouristicContent.description_teaser }))), h("div", { class: "divider" }), state.currentTouristicContent.practical_info && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: state.currentTouristicContent.description }))), cities && cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].city, " :\u00A0"), h("div", { innerHTML: cities.join(', ') }))), state.currentTouristicContent.practical_info && (h("div", null, h("div", { class: "divider" }), h("div", { class: "useful-information-container" }, h("div", { class: "useful-information-title" }, translate[state.language].usefulInformation, " :\u00A0"), h("div", { innerHTML: state.currentTouristicContent.practical_info })))), (state.currentTouristicContent.contact || state.currentTouristicContent.email || state.currentTouristicContent.website) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "contact-container" }, h("div", { class: "contact-title" }, translate[state.language].contact, " :\u00A0"), state.currentTouristicContent.contact && h("div", { innerHTML: state.currentTouristicContent.contact }), state.currentTouristicContent.email && (h("div", { class: "email-container" }, h("div", null, translate[state.language].email, " :\u00A0"), h("div", { innerHTML: state.currentTouristicContent.email }))), state.currentTouristicContent.website && (h("div", { class: "website-container" }, h("div", null, translate[state.language].website, " :\u00A0"), h("div", { innerHTML: state.currentTouristicContent.website })))))), h("div", { class: "detail-bottom-space" })))));
20833
20829
  }
20834
20830
  };
20835
20831
  GrwTouristicContentDetail.style = grwTouristicContentDetailCss;
@@ -20843,6 +20839,7 @@ const GrwTouristicContentProvider = class {
20843
20839
  this.languages = 'fr';
20844
20840
  this.api = undefined;
20845
20841
  this.touristicContentId = undefined;
20842
+ this.portals = undefined;
20846
20843
  }
20847
20844
  connectedCallback() {
20848
20845
  if (!state.api) {
@@ -20856,7 +20853,7 @@ const GrwTouristicContentProvider = class {
20856
20853
  const requests = [];
20857
20854
  requests.push(!state.cities ? fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
20858
20855
  requests.push(!state.touristicContentCategories
20859
- ? fetch(`${state.api}touristiccontent_category/?language=${state.language}&published=true&fields=id,label,pictogram&page_size=999`, this.init)
20856
+ ? fetch(`${state.api}touristiccontent_category/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&published=true&fields=id,label,pictogram&page_size=999`, this.init)
20860
20857
  : new Response('null'));
20861
20858
  Promise.all([
20862
20859
  ...requests,
@@ -20997,7 +20994,7 @@ const GrwTouristicContentsProvider = class {
20997
20994
  requests.push(!state.cities ? fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
20998
20995
  requests.push(!state.districts ? fetch(`${state.api}district/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null')),
20999
20996
  requests.push(!state.touristicContentCategories
21000
- ? fetch(`${state.api}touristiccontent_category/?language=${state.language}&published=true&fields=id,label,pictogram&page_size=999`, this.init)
20997
+ ? fetch(`${state.api}touristiccontent_category/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&published=true&fields=id,label,pictogram&page_size=999`, this.init)
21001
20998
  : new Response('null'));
21002
20999
  Promise.all([...requests, fetch(touristicContentsRequest, this.init)])
21003
21000
  .then(responses => Promise.all(responses.map(response => response.json())))
@@ -21082,7 +21079,7 @@ const GrwTouristicEventDetail = class {
21082
21079
  '--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
21083
21080
  } }, state.currentTouristicEvent && (h("div", { class: "touristic-event-detail-container", ref: el => (this.touristicEventDetailContainerRef = el) }, h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentTouristicEvent.attachments.length > 0 ? (state.currentTouristicEvent.attachments
21084
21081
  .filter(attachment => attachment.type === 'image')
21085
- .map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), h("div", { class: "touristic-event-category-container" }, h("img", { src: touristicEventType.pictogram }), h("div", { class: "touristic-event-category-name" }, touristicEventType.type)), h("div", { class: "name" }, state.currentTouristicEvent.name), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].download), h("div", { class: "links-container" }, h("a", { href: `${state.currentTouristicEvent.pdf}` }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), state.currentTouristicEvent.description_teaser && (h("div", null, h("div", { class: "divider" }), h("div", { class: "description-teaser", innerHTML: state.currentTouristicEvent.description_teaser }))), h("div", { class: "divider" }), state.currentTouristicEvent.practical_info && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: state.currentTouristicEvent.description }))), cities && cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].city, " :\u00A0"), h("div", { innerHTML: cities.join(', ') }))), state.currentTouristicEvent.practical_info && (h("div", null, h("div", { class: "divider" }), h("div", { class: "useful-information-container" }, h("div", { class: "useful-information-title" }, translate[state.language].usefulInformation, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.practical_info })))), (state.currentTouristicEvent.contact || state.currentTouristicEvent.email || state.currentTouristicEvent.website) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "contact-container" }, h("div", { class: "contact-title" }, translate[state.language].contact, " :\u00A0"), state.currentTouristicEvent.contact && h("div", { innerHTML: state.currentTouristicEvent.contact }), state.currentTouristicEvent.email && (h("div", { class: "email-container" }, h("div", null, translate[state.language].email, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.email }))), state.currentTouristicEvent.website && (h("div", { class: "website-container" }, h("div", null, translate[state.language].website, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.website })))))), h("div", { class: "detail-bottom-space" })))));
21082
+ .map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))) : (h("div", { class: "swiper-slide" }, h("img", { class: "default-poi-img", src: defaultImageSrc, loading: "lazy" })))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), h("div", { class: "touristic-event-category-container" }, h("img", { src: touristicEventType.pictogram }), h("div", { class: "touristic-event-category-name" }, touristicEventType.type)), h("div", { class: "name" }, state.currentTouristicEvent.name), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].download), h("div", { class: "links-container" }, h("a", { href: `${state.currentTouristicEvent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), state.currentTouristicEvent.description_teaser && (h("div", null, h("div", { class: "divider" }), h("div", { class: "description-teaser", innerHTML: state.currentTouristicEvent.description_teaser }))), h("div", { class: "divider" }), state.currentTouristicEvent.practical_info && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: state.currentTouristicEvent.description }))), cities && cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].city, " :\u00A0"), h("div", { innerHTML: cities.join(', ') }))), state.currentTouristicEvent.practical_info && (h("div", null, h("div", { class: "divider" }), h("div", { class: "useful-information-container" }, h("div", { class: "useful-information-title" }, translate[state.language].usefulInformation, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.practical_info })))), (state.currentTouristicEvent.contact || state.currentTouristicEvent.email || state.currentTouristicEvent.website) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "contact-container" }, h("div", { class: "contact-title" }, translate[state.language].contact, " :\u00A0"), state.currentTouristicEvent.contact && h("div", { innerHTML: state.currentTouristicEvent.contact }), state.currentTouristicEvent.email && (h("div", { class: "email-container" }, h("div", null, translate[state.language].email, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.email }))), state.currentTouristicEvent.website && (h("div", { class: "website-container" }, h("div", null, translate[state.language].website, " :\u00A0"), h("div", { innerHTML: state.currentTouristicEvent.website })))))), h("div", { class: "detail-bottom-space" })))));
21086
21083
  }
21087
21084
  };
21088
21085
  GrwTouristicEventDetail.style = grwTouristicEventDetailCss;
@@ -21454,7 +21451,7 @@ const GrwTrekDetail = class {
21454
21451
  .map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), h("div", { class: "name" }, this.currentTrek.name), this.themes.length > 0 && (h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label))))), h("div", { class: "sub-container" }, h("div", { class: "icons-labels-container" }, h("div", { class: "row" }, h("div", { class: "icon-label difficulty" }, ((_a = this.difficulty) === null || _a === void 0 ? void 0 : _a.pictogram) && h("img", { src: this.difficulty.pictogram }), (_b = this.difficulty) === null || _b === void 0 ? void 0 :
21455
21452
  _b.label), h("div", { class: "icon-label duration" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "timelapse"), formatDuration((_c = this.currentTrek) === null || _c === void 0 ? void 0 : _c.duration)), h("div", { class: "icon-label route" }, ((_d = this.route) === null || _d === void 0 ? void 0 : _d.pictogram) && h("img", { src: this.route.pictogram }), (_e = this.route) === null || _e === void 0 ? void 0 :
21456
21453
  _e.route)), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "moving"), formatAscent(this.currentTrek.ascent)), h("div", { class: "icon-label practice" }, ((_f = this.practice) === null || _f === void 0 ? void 0 : _f.pictogram) && h("img", { src: this.practice.pictogram }), (_g = this.practice) === null || _g === void 0 ? void 0 :
21457
- _g.name)))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}` }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}` }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}` }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), state.parentTrekId && state.parentTrek && this.currentTrek.id !== state.parentTrekId && (h("div", null, h("div", { class: "divider" }), h("div", { class: "parent-trek-container" }, h("button", { class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(state.parentTrekId) }, h("div", null, "<"), state.parentTrek.name)))), state.currentTrekSteps && (h("div", { class: "step-container", ref: el => (this.stepsRef = el) }, h("div", { class: "step-title" }, `${state.currentTrekSteps.length} ${translate[state.language].steps}`), h("div", { class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentTrekSteps &&
21454
+ _g.name)))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), state.parentTrekId && state.parentTrek && this.currentTrek.id !== state.parentTrekId && (h("div", null, h("div", { class: "divider" }), h("div", { class: "parent-trek-container" }, h("button", { class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(state.parentTrekId) }, h("div", null, "<"), state.parentTrek.name)))), state.currentTrekSteps && (h("div", { class: "step-container", ref: el => (this.stepsRef = el) }, h("div", { class: "step-title" }, `${state.currentTrekSteps.length} ${translate[state.language].steps}`), h("div", { class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentTrekSteps &&
21458
21455
  state.currentTrekSteps.map(trek => {
21459
21456
  return (h("div", { class: "swiper-slide" }, 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 })));
21460
21457
  }))))), h("div", { class: "divider" }), this.currentTrek.description && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (h("div", { class: "departure-container" }, h("div", { class: "departure-title" }, translate[state.language].departure, " :\u00A0"), h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (h("div", { class: "arrival-container" }, h("div", { class: "arrival-title" }, translate[state.language].arrival, " :\u00A0"), h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && this.currentTrek.cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].crossedCities, " :\u00A0"), h("div", { innerHTML: this.cities.join(', ') }))), this.weather && this.currentTrek.departure_city && (h("div", { class: "weather-container" }, h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` }))), this.currentTrek.access && (h("div", null, h("div", { class: "divider" }), h("div", { class: "access-container" }, h("div", { class: "access-title" }, translate[state.language].roadAccess), h("div", { class: "access", innerHTML: this.currentTrek.access })))), this.currentTrek.public_transport && (h("div", null, h("div", { class: "divider" }), h("div", { class: "public-transport-container" }, h("div", { class: "public-transport-title" }, translate[state.language].transport), h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.labels.length > 0) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advice-container", ref: el => (this.recommendationRef = el) }, h("div", { class: "advice-title" }, translate[state.language].recommendations), this.currentTrek.advice && (h("div", { class: "current-advice-container" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "warning"), h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.labels.map(label => (h("div", { class: "label-container" }, h("div", { class: "label-sub-container" }, label.pictogram && h("img", { src: label.pictogram }), h("div", { class: "label-name", innerHTML: label.name })), h("div", { class: "label-advice", innerHTML: label.advice }))))))), this.currentTrek.advised_parking && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advised-parking-container", ref: el => (this.parkingRef = el) }, h("div", { class: "advised-parking-title" }, translate[state.language].recommendedParking), h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))), this.currentTrek.gear && (h("div", null, h("div", { class: "divider" }), h("div", { class: "gear-container" }, h("div", { class: "gear-title" }, translate[state.language].equipments), h("div", { class: "gear", innerHTML: this.currentTrek.gear })))), state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "sensitive-areas-container", ref: el => (this.sensitiveAreaRef = el) }, h("div", { class: "sensitive-areas-title" }, translate[state.language].environmentalSensitiveAreas), state.currentSensitiveAreas.map(sensitiveArea => (h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), state.currentInformationDesks &&
@@ -21482,6 +21479,7 @@ const GrwTrekProvider = class {
21482
21479
  this.languages = 'fr';
21483
21480
  this.api = undefined;
21484
21481
  this.trekId = undefined;
21482
+ this.portals = undefined;
21485
21483
  }
21486
21484
  connectedCallback() {
21487
21485
  if (!state.api) {
@@ -21493,12 +21491,22 @@ const GrwTrekProvider = class {
21493
21491
  }
21494
21492
  handleTrek() {
21495
21493
  const requests = [];
21496
- requests.push(!state.difficulties ? fetch(`${state.api}trek_difficulty/?language=${state.language}&fields=id,label,pictogram`, this.init) : new Response('null'));
21497
- requests.push(!state.routes ? fetch(`${state.api}trek_route/?language=${state.language}&fields=id,route,pictogram`, this.init) : new Response('null'));
21498
- requests.push(!state.practices ? fetch(`${state.api}trek_practice/?language=${state.language}&fields=id,name,pictogram`, this.init) : new Response('null'));
21499
- requests.push(!state.themes ? fetch(`${state.api}theme/?language=${state.language}&fields=id,label,pictogram`, this.init) : new Response('null'));
21494
+ requests.push(!state.difficulties
21495
+ ? fetch(`${state.api}trek_difficulty/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init)
21496
+ : new Response('null'));
21497
+ requests.push(!state.routes
21498
+ ? fetch(`${state.api}trek_route/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,route,pictogram`, this.init)
21499
+ : new Response('null'));
21500
+ requests.push(!state.practices
21501
+ ? fetch(`${state.api}trek_practice/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram`, this.init)
21502
+ : new Response('null'));
21503
+ requests.push(!state.themes
21504
+ ? fetch(`${state.api}theme/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init)
21505
+ : new Response('null'));
21500
21506
  requests.push(!state.cities ? fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));
21501
- requests.push(!state.accessibilities ? fetch(`${state.api}trek_accessibility/?language=${state.language}&fields=id,name,pictogram`, this.init) : new Response('null'));
21507
+ requests.push(!state.accessibilities
21508
+ ? fetch(`${state.api}trek_accessibility/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram`, this.init)
21509
+ : new Response('null'));
21502
21510
  Promise.all([
21503
21511
  ...requests,
21504
21512
  fetch(`${this.api}sensitivearea/?language=${state.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`, this.init)
@@ -21715,13 +21723,13 @@ const GrwTreksProvider = class {
21715
21723
  this.practices && (treksRequest += `&practices=${this.practices}`);
21716
21724
  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`;
21717
21725
  Promise.all([
21718
- fetch(`${state.api}trek_difficulty/?language=${state.language}&fields=id,label,pictogram`, this.init),
21719
- fetch(`${state.api}trek_route/?language=${state.language}&fields=id,route,pictogram`, this.init),
21720
- fetch(`${state.api}trek_practice/?language=${state.language}&fields=id,name,pictogram`, this.init),
21721
- fetch(`${state.api}theme/?language=${state.language}&fields=id,label,pictogram`, this.init),
21726
+ fetch(`${state.api}trek_difficulty/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init),
21727
+ fetch(`${state.api}trek_route/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,route,pictogram`, this.init),
21728
+ fetch(`${state.api}trek_practice/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram`, this.init),
21729
+ fetch(`${state.api}theme/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,label,pictogram`, this.init),
21722
21730
  fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init),
21723
- fetch(`${state.api}trek_accessibility/?language=${state.language}&fields=id,name,pictogram&published=true&page_size=999`, this.init),
21724
- fetch(`${state.api}label/?language=${state.language}&fields=id,name,advice,pictogram&published=true&page_size=999`, this.init),
21731
+ fetch(`${state.api}trek_accessibility/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,pictogram&published=true&page_size=999`, this.init),
21732
+ fetch(`${state.api}label/?language=${state.language}${this.portals ? '&portals='.concat(this.portals) : ''}&fields=id,name,advice,pictogram&published=true&page_size=999`, this.init),
21725
21733
  fetch(`${state.api}district/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init),
21726
21734
  fetch(treksRequest, this.init),
21727
21735
  ])
Binary file
Binary file