@geotrekce/geotrek-rando-widget 0.3.4 → 0.3.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.
Files changed (418) 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 +16 -28
  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-filter.cjs.entry.js +46 -0
  9. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filter.cjs.entry.js.map +1 -0
  12. package/dist/cjs/{grw-filter_7.cjs.entry.js → grw-filters_7.cjs.entry.js} +318 -51
  13. package/dist/cjs/grw-filters_7.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-filters_7.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-filters_7.cjs.entry.js.map +1 -0
  16. package/dist/cjs/grw-information-desk_5.cjs.entry.js +227 -0
  17. package/dist/cjs/grw-information-desk_5.cjs.entry.js.br +0 -0
  18. package/dist/cjs/grw-information-desk_5.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/grw-information-desk_5.cjs.entry.js.map +1 -0
  20. package/dist/cjs/grw-select-language.cjs.entry.js +2 -2
  21. package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
  22. package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
  23. package/dist/cjs/grw-select-language.cjs.entry.js.map +1 -1
  24. package/dist/cjs/{i18n-cb39db65.js → i18n-691abc83.js} +11 -1
  25. package/dist/cjs/i18n-691abc83.js.br +0 -0
  26. package/dist/cjs/i18n-691abc83.js.gz +0 -0
  27. package/dist/cjs/i18n-691abc83.js.map +1 -0
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/loader.cjs.js.br +0 -0
  30. package/dist/cjs/loader.cjs.js.gz +0 -0
  31. package/dist/cjs/{store-73c3042b.js → store-a36efc0f.js} +4 -1
  32. package/dist/cjs/store-a36efc0f.js.br +0 -0
  33. package/dist/cjs/store-a36efc0f.js.gz +0 -0
  34. package/dist/cjs/store-a36efc0f.js.map +1 -0
  35. package/dist/cjs/{utils-66fdd395.js → utils-151d3b05.js} +2 -2
  36. package/dist/cjs/utils-151d3b05.js.br +0 -0
  37. package/dist/cjs/utils-151d3b05.js.gz +0 -0
  38. package/dist/cjs/{utils-66fdd395.js.map → utils-151d3b05.js.map} +1 -1
  39. package/dist/collection/collection-manifest.json +4 -2
  40. package/dist/collection/components/grw-app/grw-app.css +2 -118
  41. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  42. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  43. package/dist/collection/components/grw-app/grw-app.js +19 -43
  44. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  45. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  46. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  47. package/dist/collection/components/grw-filter/grw-filter.js +1 -1
  48. package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
  49. package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
  50. package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
  51. package/dist/collection/components/grw-filters/grw-filters.css +115 -0
  52. package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
  53. package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
  54. package/dist/collection/components/grw-filters/grw-filters.js +91 -0
  55. package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
  56. package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
  57. package/dist/collection/components/grw-filters/grw-filters.js.map +1 -0
  58. package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.js → grw-information-desk/grw-information-desk.js} +5 -5
  59. package/dist/collection/components/grw-information-desk/grw-information-desk.js.br +0 -0
  60. package/dist/collection/components/grw-information-desk/grw-information-desk.js.gz +0 -0
  61. package/dist/collection/components/grw-information-desk/grw-information-desk.js.map +1 -0
  62. package/dist/collection/components/grw-map/grw-map.css +64 -10
  63. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  64. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  65. package/dist/collection/components/grw-map/grw-map.js +231 -8
  66. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  67. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  68. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  69. package/dist/collection/components/grw-poi-detail/{grw-poi-detail.js → grw-poi.js} +4 -4
  70. package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
  71. package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
  72. package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -0
  73. package/dist/collection/components/grw-search/grw-search.js +1 -1
  74. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  75. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  76. package/dist/collection/components/grw-search/grw-search.js.map +1 -1
  77. package/dist/collection/components/grw-select-language/grw-select-language.js +1 -1
  78. package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
  79. package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
  80. package/dist/collection/components/grw-select-language/grw-select-language.js.map +1 -1
  81. package/dist/collection/components/grw-touristic-content/grw-touristic-content.css +601 -0
  82. package/dist/collection/components/grw-touristic-content/grw-touristic-content.css.br +0 -0
  83. package/dist/collection/components/grw-touristic-content/grw-touristic-content.css.gz +0 -0
  84. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js +84 -0
  85. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.br +0 -0
  86. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.gz +0 -0
  87. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.map +1 -0
  88. package/dist/collection/components/grw-trek-card/grw-trek-card.css +1 -1
  89. package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
  90. package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
  91. package/dist/collection/components/grw-trek-card/grw-trek-card.js +4 -4
  92. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  93. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  94. package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
  95. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +81 -5
  96. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  97. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  98. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +105 -14
  99. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  100. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  101. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  102. package/dist/collection/i18n/i18n.js +10 -0
  103. package/dist/collection/i18n/i18n.js.br +0 -0
  104. package/dist/collection/i18n/i18n.js.gz +0 -0
  105. package/dist/collection/i18n/i18n.js.map +1 -1
  106. package/dist/collection/store/grw-trek-provider.js +9 -1
  107. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  108. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  109. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  110. package/dist/collection/store/store.js +3 -0
  111. package/dist/collection/store/store.js.br +0 -0
  112. package/dist/collection/store/store.js.gz +0 -0
  113. package/dist/collection/store/store.js.map +1 -1
  114. package/dist/collection/types/types.js.map +1 -1
  115. package/dist/esm/geotrek-rando-widget.js +3 -3
  116. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  117. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  118. package/dist/esm/grw-app.entry.js +17 -29
  119. package/dist/esm/grw-app.entry.js.br +0 -0
  120. package/dist/esm/grw-app.entry.js.gz +0 -0
  121. package/dist/esm/grw-app.entry.js.map +1 -1
  122. package/dist/esm/grw-filter.entry.js +42 -0
  123. package/dist/esm/grw-filter.entry.js.br +0 -0
  124. package/dist/esm/grw-filter.entry.js.gz +0 -0
  125. package/dist/esm/grw-filter.entry.js.map +1 -0
  126. package/dist/esm/{grw-filter_7.entry.js → grw-filters_7.entry.js} +319 -52
  127. package/dist/esm/grw-filters_7.entry.js.br +0 -0
  128. package/dist/esm/grw-filters_7.entry.js.gz +0 -0
  129. package/dist/esm/grw-filters_7.entry.js.map +1 -0
  130. package/dist/esm/grw-information-desk_5.entry.js +219 -0
  131. package/dist/esm/grw-information-desk_5.entry.js.br +0 -0
  132. package/dist/esm/grw-information-desk_5.entry.js.gz +0 -0
  133. package/dist/esm/grw-information-desk_5.entry.js.map +1 -0
  134. package/dist/esm/grw-select-language.entry.js +3 -3
  135. package/dist/esm/grw-select-language.entry.js.br +0 -0
  136. package/dist/esm/grw-select-language.entry.js.gz +0 -0
  137. package/dist/esm/grw-select-language.entry.js.map +1 -1
  138. package/dist/esm/{i18n-a9d6ba05.js → i18n-16a29f6f.js} +11 -1
  139. package/dist/esm/i18n-16a29f6f.js.br +0 -0
  140. package/dist/esm/i18n-16a29f6f.js.gz +0 -0
  141. package/dist/esm/i18n-16a29f6f.js.map +1 -0
  142. package/dist/esm/{index-82644551.js → index-3bfebaa2.js} +2 -2
  143. package/dist/esm/index-3bfebaa2.js.br +0 -0
  144. package/dist/esm/index-3bfebaa2.js.gz +0 -0
  145. package/dist/esm/{index-82644551.js.map → index-3bfebaa2.js.map} +1 -1
  146. package/dist/esm/loader.js +3 -3
  147. package/dist/esm/loader.js.br +0 -0
  148. package/dist/esm/loader.js.gz +0 -0
  149. package/dist/esm/{store-1a33237a.js → store-890ce35c.js} +5 -2
  150. package/dist/esm/store-890ce35c.js.br +0 -0
  151. package/dist/esm/store-890ce35c.js.gz +0 -0
  152. package/dist/esm/store-890ce35c.js.map +1 -0
  153. package/dist/esm/{utils-040e8a86.js → utils-ffae4b0b.js} +2 -2
  154. package/dist/esm/utils-ffae4b0b.js.br +0 -0
  155. package/dist/esm/utils-ffae4b0b.js.gz +0 -0
  156. package/dist/esm/{utils-040e8a86.js.map → utils-ffae4b0b.js.map} +1 -1
  157. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  158. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  159. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  160. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  161. package/dist/esm-es5/grw-app.entry.js +1 -1
  162. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  163. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  164. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  165. package/dist/esm-es5/grw-filter.entry.js +2 -0
  166. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  167. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  168. package/dist/esm-es5/grw-filter.entry.js.map +1 -0
  169. package/dist/esm-es5/{grw-filter_7.entry.js → grw-filters_7.entry.js} +4 -4
  170. package/dist/esm-es5/grw-filters_7.entry.js.br +0 -0
  171. package/dist/esm-es5/grw-filters_7.entry.js.gz +0 -0
  172. package/dist/esm-es5/grw-filters_7.entry.js.map +1 -0
  173. package/dist/esm-es5/grw-information-desk_5.entry.js +2 -0
  174. package/dist/esm-es5/grw-information-desk_5.entry.js.br +0 -0
  175. package/dist/esm-es5/grw-information-desk_5.entry.js.gz +0 -0
  176. package/dist/esm-es5/grw-information-desk_5.entry.js.map +1 -0
  177. package/dist/esm-es5/grw-select-language.entry.js +1 -1
  178. package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
  179. package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
  180. package/dist/esm-es5/grw-select-language.entry.js.map +1 -1
  181. package/dist/esm-es5/i18n-16a29f6f.js +2 -0
  182. package/dist/esm-es5/i18n-16a29f6f.js.br +0 -0
  183. package/dist/esm-es5/i18n-16a29f6f.js.gz +0 -0
  184. package/dist/esm-es5/i18n-16a29f6f.js.map +1 -0
  185. package/dist/esm-es5/{index-82644551.js → index-3bfebaa2.js} +2 -2
  186. package/dist/esm-es5/index-3bfebaa2.js.br +0 -0
  187. package/dist/esm-es5/index-3bfebaa2.js.gz +0 -0
  188. package/dist/esm-es5/loader.js +1 -1
  189. package/dist/esm-es5/loader.js.br +0 -0
  190. package/dist/esm-es5/loader.js.gz +0 -0
  191. package/dist/esm-es5/loader.js.map +1 -1
  192. package/dist/esm-es5/{store-1a33237a.js → store-890ce35c.js} +2 -2
  193. package/dist/esm-es5/store-890ce35c.js.br +0 -0
  194. package/dist/esm-es5/store-890ce35c.js.gz +0 -0
  195. package/dist/esm-es5/store-890ce35c.js.map +1 -0
  196. package/dist/esm-es5/{utils-040e8a86.js → utils-ffae4b0b.js} +2 -2
  197. package/dist/esm-es5/utils-ffae4b0b.js.br +0 -0
  198. package/dist/esm-es5/utils-ffae4b0b.js.gz +0 -0
  199. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  200. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  201. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  202. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  203. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
  204. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
  205. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
  206. package/dist/geotrek-rando-widget/{p-b4e1f9ae.js → p-16f28b0e.js} +2 -2
  207. package/dist/geotrek-rando-widget/p-16f28b0e.js.br +0 -0
  208. package/dist/geotrek-rando-widget/p-16f28b0e.js.gz +0 -0
  209. package/dist/geotrek-rando-widget/{p-f83fba64.js → p-1db133d4.js} +2 -2
  210. package/dist/geotrek-rando-widget/p-1db133d4.js.br +0 -0
  211. package/dist/geotrek-rando-widget/p-1db133d4.js.gz +0 -0
  212. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js +14 -0
  213. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js.br +0 -0
  214. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js.gz +0 -0
  215. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js.map +1 -0
  216. package/dist/geotrek-rando-widget/p-291b7192.system.js +2 -0
  217. package/dist/geotrek-rando-widget/p-291b7192.system.js.br +0 -0
  218. package/dist/geotrek-rando-widget/p-291b7192.system.js.gz +0 -0
  219. package/dist/geotrek-rando-widget/p-291b7192.system.js.map +1 -0
  220. package/dist/geotrek-rando-widget/{p-266b2cee.system.js → p-3eaed9f9.system.js} +2 -2
  221. package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.br +0 -0
  222. package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.gz +0 -0
  223. package/dist/geotrek-rando-widget/p-47ba2866.js +2 -0
  224. package/dist/geotrek-rando-widget/p-47ba2866.js.br +0 -0
  225. package/dist/geotrek-rando-widget/p-47ba2866.js.gz +0 -0
  226. package/dist/geotrek-rando-widget/p-47ba2866.js.map +1 -0
  227. package/dist/geotrek-rando-widget/p-6f514bac.entry.js +2 -0
  228. package/dist/geotrek-rando-widget/p-6f514bac.entry.js.br +0 -0
  229. package/dist/geotrek-rando-widget/p-6f514bac.entry.js.gz +0 -0
  230. package/dist/geotrek-rando-widget/p-6f514bac.entry.js.map +1 -0
  231. package/dist/geotrek-rando-widget/p-737a036f.entry.js +2 -0
  232. package/dist/geotrek-rando-widget/p-737a036f.entry.js.br +0 -0
  233. package/dist/geotrek-rando-widget/p-737a036f.entry.js.gz +0 -0
  234. package/dist/geotrek-rando-widget/p-737a036f.entry.js.map +1 -0
  235. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js +2 -0
  236. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js.br +0 -0
  237. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js.gz +0 -0
  238. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js.map +1 -0
  239. package/dist/geotrek-rando-widget/p-7be13480.system.js +2 -0
  240. package/dist/geotrek-rando-widget/p-7be13480.system.js.br +0 -0
  241. package/dist/geotrek-rando-widget/p-7be13480.system.js.gz +0 -0
  242. package/dist/geotrek-rando-widget/p-7be13480.system.js.map +1 -0
  243. package/dist/geotrek-rando-widget/p-7d5414a1.system.entry.js +2 -0
  244. package/dist/geotrek-rando-widget/p-7d5414a1.system.entry.js.br +0 -0
  245. package/dist/geotrek-rando-widget/p-7d5414a1.system.entry.js.gz +0 -0
  246. package/dist/geotrek-rando-widget/p-7d5414a1.system.entry.js.map +1 -0
  247. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js +2 -0
  248. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js.br +0 -0
  249. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js.gz +0 -0
  250. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js.map +1 -0
  251. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js +2 -0
  252. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js.br +0 -0
  253. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js.gz +0 -0
  254. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js.map +1 -0
  255. package/dist/geotrek-rando-widget/{p-1d5148b1.system.js → p-a7fa6233.system.js} +2 -2
  256. package/dist/geotrek-rando-widget/p-a7fa6233.system.js.br +0 -0
  257. package/dist/geotrek-rando-widget/p-a7fa6233.system.js.gz +0 -0
  258. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js +2 -0
  259. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js.br +0 -0
  260. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js.gz +0 -0
  261. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js.map +1 -0
  262. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js +2 -0
  263. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.br +0 -0
  264. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.gz +0 -0
  265. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.map +1 -0
  266. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js +14 -0
  267. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js.br +0 -0
  268. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js.gz +0 -0
  269. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js.map +1 -0
  270. package/dist/geotrek-rando-widget/p-d2da9a2e.system.entry.js +2 -0
  271. package/dist/geotrek-rando-widget/p-d2da9a2e.system.entry.js.br +0 -0
  272. package/dist/geotrek-rando-widget/p-d2da9a2e.system.entry.js.gz +0 -0
  273. package/dist/geotrek-rando-widget/p-d2da9a2e.system.entry.js.map +1 -0
  274. package/dist/geotrek-rando-widget/p-e653caed.js +2 -0
  275. package/dist/geotrek-rando-widget/p-e653caed.js.br +0 -0
  276. package/dist/geotrek-rando-widget/p-e653caed.js.gz +0 -0
  277. package/dist/geotrek-rando-widget/p-e653caed.js.map +1 -0
  278. package/dist/types/components/grw-app/grw-app.d.ts +1 -7
  279. package/dist/types/components/grw-filters/grw-filters.d.ts +11 -0
  280. package/dist/types/components/grw-map/grw-map.d.ts +9 -2
  281. package/dist/types/components/grw-touristic-content/grw-touristic-content.d.ts +14 -0
  282. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +18 -1
  283. package/dist/types/components.d.ts +60 -27
  284. package/dist/types/i18n/i18n.d.ts +5 -0
  285. package/dist/types/store/store.d.ts +7 -1
  286. package/dist/types/types/types.d.ts +17 -0
  287. package/package.json +3 -2
  288. package/readme.md +14 -6
  289. package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
  290. package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
  291. package/dist/cjs/grw-filter_7.cjs.entry.js.map +0 -1
  292. package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js +0 -182
  293. package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js.br +0 -0
  294. package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js.gz +0 -0
  295. package/dist/cjs/grw-information-desk-detail_4.cjs.entry.js.map +0 -1
  296. package/dist/cjs/i18n-cb39db65.js.br +0 -0
  297. package/dist/cjs/i18n-cb39db65.js.gz +0 -0
  298. package/dist/cjs/i18n-cb39db65.js.map +0 -1
  299. package/dist/cjs/store-73c3042b.js.br +0 -0
  300. package/dist/cjs/store-73c3042b.js.gz +0 -0
  301. package/dist/cjs/store-73c3042b.js.map +0 -1
  302. package/dist/cjs/utils-66fdd395.js.br +0 -0
  303. package/dist/cjs/utils-66fdd395.js.gz +0 -0
  304. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.br +0 -0
  305. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.gz +0 -0
  306. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.map +0 -1
  307. package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.br +0 -0
  308. package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.gz +0 -0
  309. package/dist/collection/components/grw-poi-detail/grw-poi-detail.js.map +0 -1
  310. package/dist/esm/grw-filter_7.entry.js.br +0 -0
  311. package/dist/esm/grw-filter_7.entry.js.gz +0 -0
  312. package/dist/esm/grw-filter_7.entry.js.map +0 -1
  313. package/dist/esm/grw-information-desk-detail_4.entry.js +0 -175
  314. package/dist/esm/grw-information-desk-detail_4.entry.js.br +0 -0
  315. package/dist/esm/grw-information-desk-detail_4.entry.js.gz +0 -0
  316. package/dist/esm/grw-information-desk-detail_4.entry.js.map +0 -1
  317. package/dist/esm/i18n-a9d6ba05.js.br +0 -0
  318. package/dist/esm/i18n-a9d6ba05.js.gz +0 -0
  319. package/dist/esm/i18n-a9d6ba05.js.map +0 -1
  320. package/dist/esm/index-82644551.js.br +0 -0
  321. package/dist/esm/index-82644551.js.gz +0 -0
  322. package/dist/esm/store-1a33237a.js.br +0 -0
  323. package/dist/esm/store-1a33237a.js.gz +0 -0
  324. package/dist/esm/store-1a33237a.js.map +0 -1
  325. package/dist/esm/utils-040e8a86.js.br +0 -0
  326. package/dist/esm/utils-040e8a86.js.gz +0 -0
  327. package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
  328. package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
  329. package/dist/esm-es5/grw-filter_7.entry.js.map +0 -1
  330. package/dist/esm-es5/grw-information-desk-detail_4.entry.js +0 -2
  331. package/dist/esm-es5/grw-information-desk-detail_4.entry.js.br +0 -0
  332. package/dist/esm-es5/grw-information-desk-detail_4.entry.js.gz +0 -0
  333. package/dist/esm-es5/grw-information-desk-detail_4.entry.js.map +0 -1
  334. package/dist/esm-es5/i18n-a9d6ba05.js +0 -2
  335. package/dist/esm-es5/i18n-a9d6ba05.js.br +0 -0
  336. package/dist/esm-es5/i18n-a9d6ba05.js.gz +0 -0
  337. package/dist/esm-es5/i18n-a9d6ba05.js.map +0 -1
  338. package/dist/esm-es5/index-82644551.js.br +0 -0
  339. package/dist/esm-es5/index-82644551.js.gz +0 -0
  340. package/dist/esm-es5/store-1a33237a.js.br +0 -0
  341. package/dist/esm-es5/store-1a33237a.js.gz +0 -0
  342. package/dist/esm-es5/store-1a33237a.js.map +0 -1
  343. package/dist/esm-es5/utils-040e8a86.js.br +0 -0
  344. package/dist/esm-es5/utils-040e8a86.js.gz +0 -0
  345. package/dist/geotrek-rando-widget/p-148f5f1d.system.js +0 -2
  346. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.br +0 -0
  347. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.gz +0 -0
  348. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.map +0 -1
  349. package/dist/geotrek-rando-widget/p-1af71f11.system.entry.js +0 -2
  350. package/dist/geotrek-rando-widget/p-1af71f11.system.entry.js.br +0 -0
  351. package/dist/geotrek-rando-widget/p-1af71f11.system.entry.js.gz +0 -0
  352. package/dist/geotrek-rando-widget/p-1af71f11.system.entry.js.map +0 -1
  353. package/dist/geotrek-rando-widget/p-1d5148b1.system.js.br +0 -0
  354. package/dist/geotrek-rando-widget/p-1d5148b1.system.js.gz +0 -0
  355. package/dist/geotrek-rando-widget/p-24e866b5.js +0 -2
  356. package/dist/geotrek-rando-widget/p-24e866b5.js.br +0 -0
  357. package/dist/geotrek-rando-widget/p-24e866b5.js.gz +0 -0
  358. package/dist/geotrek-rando-widget/p-24e866b5.js.map +0 -1
  359. package/dist/geotrek-rando-widget/p-266b2cee.system.js.br +0 -0
  360. package/dist/geotrek-rando-widget/p-266b2cee.system.js.gz +0 -0
  361. package/dist/geotrek-rando-widget/p-5d5f6ab5.js +0 -2
  362. package/dist/geotrek-rando-widget/p-5d5f6ab5.js.br +0 -0
  363. package/dist/geotrek-rando-widget/p-5d5f6ab5.js.gz +0 -0
  364. package/dist/geotrek-rando-widget/p-5d5f6ab5.js.map +0 -1
  365. package/dist/geotrek-rando-widget/p-72c0f5b2.system.js +0 -2
  366. package/dist/geotrek-rando-widget/p-72c0f5b2.system.js.br +0 -0
  367. package/dist/geotrek-rando-widget/p-72c0f5b2.system.js.gz +0 -0
  368. package/dist/geotrek-rando-widget/p-72c0f5b2.system.js.map +0 -1
  369. package/dist/geotrek-rando-widget/p-731e7ba6.entry.js +0 -2
  370. package/dist/geotrek-rando-widget/p-731e7ba6.entry.js.br +0 -0
  371. package/dist/geotrek-rando-widget/p-731e7ba6.entry.js.gz +0 -0
  372. package/dist/geotrek-rando-widget/p-731e7ba6.entry.js.map +0 -1
  373. package/dist/geotrek-rando-widget/p-78ff4400.system.entry.js +0 -2
  374. package/dist/geotrek-rando-widget/p-78ff4400.system.entry.js.br +0 -0
  375. package/dist/geotrek-rando-widget/p-78ff4400.system.entry.js.gz +0 -0
  376. package/dist/geotrek-rando-widget/p-78ff4400.system.entry.js.map +0 -1
  377. package/dist/geotrek-rando-widget/p-92a1370c.system.entry.js +0 -14
  378. package/dist/geotrek-rando-widget/p-92a1370c.system.entry.js.br +0 -0
  379. package/dist/geotrek-rando-widget/p-92a1370c.system.entry.js.gz +0 -0
  380. package/dist/geotrek-rando-widget/p-92a1370c.system.entry.js.map +0 -1
  381. package/dist/geotrek-rando-widget/p-93f67955.system.js +0 -2
  382. package/dist/geotrek-rando-widget/p-93f67955.system.js.br +0 -0
  383. package/dist/geotrek-rando-widget/p-93f67955.system.js.gz +0 -0
  384. package/dist/geotrek-rando-widget/p-93f67955.system.js.map +0 -1
  385. package/dist/geotrek-rando-widget/p-ac94a30c.system.entry.js +0 -2
  386. package/dist/geotrek-rando-widget/p-ac94a30c.system.entry.js.br +0 -0
  387. package/dist/geotrek-rando-widget/p-ac94a30c.system.entry.js.gz +0 -0
  388. package/dist/geotrek-rando-widget/p-ac94a30c.system.entry.js.map +0 -1
  389. package/dist/geotrek-rando-widget/p-b4e1f9ae.js.br +0 -0
  390. package/dist/geotrek-rando-widget/p-b4e1f9ae.js.gz +0 -0
  391. package/dist/geotrek-rando-widget/p-dc691883.entry.js +0 -14
  392. package/dist/geotrek-rando-widget/p-dc691883.entry.js.br +0 -0
  393. package/dist/geotrek-rando-widget/p-dc691883.entry.js.gz +0 -0
  394. package/dist/geotrek-rando-widget/p-dc691883.entry.js.map +0 -1
  395. package/dist/geotrek-rando-widget/p-e09d1fb4.entry.js +0 -2
  396. package/dist/geotrek-rando-widget/p-e09d1fb4.entry.js.br +0 -0
  397. package/dist/geotrek-rando-widget/p-e09d1fb4.entry.js.gz +0 -0
  398. package/dist/geotrek-rando-widget/p-e09d1fb4.entry.js.map +0 -1
  399. package/dist/geotrek-rando-widget/p-f68b2287.entry.js +0 -2
  400. package/dist/geotrek-rando-widget/p-f68b2287.entry.js.br +0 -0
  401. package/dist/geotrek-rando-widget/p-f68b2287.entry.js.gz +0 -0
  402. package/dist/geotrek-rando-widget/p-f68b2287.entry.js.map +0 -1
  403. package/dist/geotrek-rando-widget/p-f83fba64.js.br +0 -0
  404. package/dist/geotrek-rando-widget/p-f83fba64.js.gz +0 -0
  405. /package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.css → grw-information-desk/grw-information-desk.css} +0 -0
  406. /package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.css.br → grw-information-desk/grw-information-desk.css.br} +0 -0
  407. /package/dist/collection/components/{grw-information-desk-detail/grw-information-desk-detail.css.gz → grw-information-desk/grw-information-desk.css.gz} +0 -0
  408. /package/dist/collection/components/grw-poi-detail/{grw-poi-detail.css → grw-poi.css} +0 -0
  409. /package/dist/collection/components/grw-poi-detail/{grw-poi-detail.css.br → grw-poi.css.br} +0 -0
  410. /package/dist/collection/components/grw-poi-detail/{grw-poi-detail.css.gz → grw-poi.css.gz} +0 -0
  411. /package/dist/esm-es5/{index-82644551.js.map → index-3bfebaa2.js.map} +0 -0
  412. /package/dist/esm-es5/{utils-040e8a86.js.map → utils-ffae4b0b.js.map} +0 -0
  413. /package/dist/geotrek-rando-widget/{p-b4e1f9ae.js.map → p-16f28b0e.js.map} +0 -0
  414. /package/dist/geotrek-rando-widget/{p-f83fba64.js.map → p-1db133d4.js.map} +0 -0
  415. /package/dist/geotrek-rando-widget/{p-266b2cee.system.js.map → p-3eaed9f9.system.js.map} +0 -0
  416. /package/dist/geotrek-rando-widget/{p-1d5148b1.system.js.map → p-a7fa6233.system.js.map} +0 -0
  417. /package/dist/types/components/{grw-information-desk-detail/grw-information-desk-detail.d.ts → grw-information-desk/grw-information-desk.d.ts} +0 -0
  418. /package/dist/types/components/grw-poi-detail/{grw-poi-detail.d.ts → grw-poi.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,i as getAssetPath}from"./index-82644551.js";import{S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-24051620.js";import{s as state,o as onChange,r as reset}from"./store-1a33237a.js";import{a as formatDuration,b as formatLength,c as formatAscent}from"./utils-040e8a86.js";var grwInformationDeskDetailCss='.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-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:12px;background-color:var(--color-surface-container-low);color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.information-desk-img{position:relative}.information-desk-img img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.information-desk-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.information-desk-name{font-size:16px;line-height:24px;font-weight:500}.information-desk-description{font-size:14px;line-height:20px}.information-desk-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-information-desk-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}.phone-container,.mail-container,.link-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.phone-container span,.mail-container span,.link-container span{font-size:16px;margin-right:8px}.center-on-map-button{cursor:pointer;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;border:none;font-size:14px;margin:12px 0px}.center-on-map-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.center-on-map-button span{font-size:18px}';var GrwInformationDeskDetail=function(){function e(e){registerInstance(this,e);this.centerOnMap=createEvent(this,"centerOnMap",7);this.displayShortDescription=true;this.informationDesk=undefined}e.prototype.handleInformationDeskDescription=function(){this.displayShortDescription=!this.displayShortDescription};e.prototype.handleCenterOnMap=function(){this.centerOnMap.emit({latitude:this.informationDesk.latitude,longitude:this.informationDesk.longitude})};e.prototype.render=function(){var e=this;return h(Host,null,this.informationDesk.photo_url&&h("div",{class:"information-desk-img"},h("img",{src:this.informationDesk.photo_url,loading:"lazy"})),h("div",{class:"information-desk-sub-container"},this.informationDesk.name&&h("div",{class:"information-desk-name"},this.informationDesk.name),this.informationDesk.latitude&&this.informationDesk.longitude&&h("button",{class:"center-on-map-button",onClick:function(){return e.handleCenterOnMap()}},h("span",{class:"material-symbols material-symbols-outlined"},"location_searching"),"Centrer sur la carte"),(this.informationDesk.postal_code||this.informationDesk.municipality||this.informationDesk.street)&&h("div",null,this.informationDesk.postal_code&&this.informationDesk.postal_code,this.informationDesk.municipality&&" ".concat(this.informationDesk.municipality),this.informationDesk.street&&" ".concat(this.informationDesk.street)),this.informationDesk.phone&&h("div",{class:"phone-container"},h("span",{class:"material-symbols material-symbols-outlined"},"call"),h("a",{href:"tel:".concat(this.informationDesk.phone)},this.informationDesk.phone)),this.informationDesk.email&&h("div",{class:"mail-container"},h("span",{class:"material-symbols material-symbols-outlined"},"mail"),h("a",{href:"mailto:".concat(this.informationDesk.email)},this.informationDesk.email)),this.informationDesk.website&&h("div",{class:"link-container"},h("span",{class:"material-symbols material-symbols-outlined"},"link"),h("a",{href:"".concat(this.informationDesk.website)},this.informationDesk.website)),this.informationDesk.description&&h("div",{class:"information-desk-description-container"},h("div",{class:this.displayShortDescription?"information-desk-description-short":"information-desk-description",innerHTML:this.informationDesk.description}),h("div",{class:"handle-information-desk-description",onClick:function(){return e.handleInformationDeskDescription()}},this.displayShortDescription?"Lire plus":"Lire moins"))))};return e}();GrwInformationDeskDetail.style=grwInformationDeskDetailCss;var grwPoiDetailCss='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base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n0hGA0AO8EFTQAA") 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-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:12px;background-color:var(--color-surface-container-low);color:var(--color-on-surface);--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 a{color:var(--color-primary-app)}: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)}.poi-type-img-container{position:relative}.poi-type-img-container .poi-img,.poi-type-img-container .default-poi-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .poi-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.poi-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.poi-type-img-container .poi-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:50%;background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.poi-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.poi-name{font-size:16px;line-height:24px}.poi-description{font-size:14px;line-height:20px}.poi-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-poi-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}';var GrwPoiDetail=function(){function e(e){registerInstance(this,e);this.poi=undefined;this.displayShortDescription=true;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperPoi=new Swiper(this.swiperPoiRef,{modules:[Navigation,Pagination,Keyboard],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperPoi.keyboard.enable()}else{e.swiperPoi.keyboard.disable()}}};e.prototype.handlePoiDescription=function(){this.displayShortDescription=!this.displayShortDescription};e.prototype.handleFullscreen=function(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var i;var t=getAssetPath("".concat("","assets/default-image.svg"));return h(Host,null,h("div",{class:"poi-type-img-container"},h("img",{class:"poi-type",src:"".concat((i=state.poiTypes.find((function(i){return i.id===e.poi.type})))===null||i===void 0?void 0:i.pictogram)}),h("div",{class:"swiper",ref:function(i){return e.swiperPoiRef=i}},h("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((function(e){return e.type==="image"})).map((function(i){return h("div",{class:"swiper-slide"},h("img",{class:"poi-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?i.url:i.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):h("div",{class:"swiper-slide"},h("img",{class:"default-poi-img",src:t,loading:"lazy"}))),h("div",{class:"swiper-pagination",ref:function(i){return e.paginationElPoiRef=i}}),h("div",{class:"swiper-button-prev",ref:function(i){return e.prevElPoiRef=i}}),h("div",{class:"swiper-button-next",ref:function(i){return e.nextElPoiRef=i}}))),h("div",{class:"poi-sub-container"},h("div",{class:"poi-name"},this.poi.name),h("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description}),h("div",{class:"handle-poi-description",onClick:function(){return e.handlePoiDescription()}},this.displayShortDescription?"Lire plus":"Lire moins")))};return e}();GrwPoiDetail.style=grwPoiDetailCss;var grwSensitiveAreaDetailCss=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.sensitive-area-title{font-size:22px;line-height:28px;padding:12px 0px;font-weight:400}.sensitive-area-description{font-size:16px;line-height:24px}.sensitive-area-period-container .sensitive-area-period-title,.sensitive-area-period-container .sensitive-area-practice-title,.sensitive-area-period-container .sensitive-area-contact-title,.sensitive-area-practice-container .sensitive-area-period-title,.sensitive-area-practice-container .sensitive-area-practice-title,.sensitive-area-practice-container .sensitive-area-contact-title,.sensitive-area-contact-container .sensitive-area-period-title,.sensitive-area-contact-container .sensitive-area-practice-title,.sensitive-area-contact-container .sensitive-area-contact-title{font-size:16px;line-height:24px;padding:12px 0px}.sensitive-area-period-container .sensitive-area-period-values,.sensitive-area-period-container .sensitive-area-practice-values,.sensitive-area-practice-container .sensitive-area-period-values,.sensitive-area-practice-container .sensitive-area-practice-values,.sensitive-area-contact-container .sensitive-area-period-values,.sensitive-area-contact-container .sensitive-area-practice-values{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";var GrwSensitiveAreaDetail=function(){function e(e){registerInstance(this,e);this.sensitiveArea=undefined}e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"sensitive-area-title"},this.sensitiveArea.name),h("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&h("div",{class:"sensitive-area-practice-container"},h("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),h("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map((function(i,t){var r=state.practices.find((function(e){return e.id===i}));if(r){return h("div",{innerHTML:"".concat(r.name.toUpperCase()).concat(t+1!==e.sensitiveArea.practices.length?" - ":"")})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&h("div",{class:"sensitive-area-period-container"},h("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),h("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map((function(i,t){if(i){return h("div",{innerHTML:"".concat(new Date(0,t+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()).concat(e.sensitiveArea.period.slice(t+1).find((function(e){return e}))?" - ":"")})}})))),h("div",{class:"sensitive-area-contact-container"},h("div",{class:"sensitive-area-contact-title"},"Contact"),h("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))};return e}();GrwSensitiveAreaDetail.style=grwSensitiveAreaDetailCss;var grwTrekCardCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:"Roboto";border-radius:12px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover;border-top-left-radius:12px;border-top-right-radius:12px}.trek-card-container .sub-container,.trek-card-large-view-container .sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .sub-container .themes-container,.trek-card-large-view-container .sub-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}.trek-card-container .sub-container .themes-container .theme,.trek-card-large-view-container .sub-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;text-wrap:nowrap}.trek-card-container .sub-container .icons-labels-container,.trek-card-large-view-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;color:var(--color-on-surface);font-size:14px;line-height:20px;font-weight:500}.trek-card-container .sub-container .icons-labels-container .row,.trek-card-large-view-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-card-container .sub-container .icons-labels-container .row:not(:last-child),.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:12px}.trek-card-container .sub-container .icons-labels-container .row .icon-label,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:50%}.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 4px}.trek-card-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-container .sub-container .icons-labels-container .row .icon-label span,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-card-container .sub-container .icons-labels-container .row .practice img,.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.selected-trek-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-card-container{width:100%;max-width:350px}.trek-card-container .image{width:100%;max-height:200px}.trek-card-large-view-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}.trek-step-card{width:auto}';var GrwTrekCard=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.cardTrekMouseOver=createEvent(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=createEvent(this,"cardTrekMouseLeave",7);this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.departureCity=undefined;this.trek=undefined;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true;this.isStep=undefined}e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.difficulty=state.difficulties.find((function(i){return i.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(i){return i.id===e.currentTrek.route}));this.practice=state.practices.find((function(i){return i.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(i){return e.currentTrek.themes.includes(i.id)}));this.departureCity=state.cities.find((function(i){return i.id===e.currentTrek.departure_city}))}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.difficulty=state.difficulties.find((function(i){return i.id===e.currentTrek.difficulty}));e.route=state.routes.find((function(i){return i.id===e.currentTrek.route}));e.practice=state.practices.find((function(i){return i.id===e.currentTrek.practice}));e.themes=state.themes.filter((function(i){return e.currentTrek.themes.includes(i.id)}));e.departureCity=state.cities.find((function(i){return i.id===e.currentTrek.departure_city}))}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.handleMouseOver=function(){!this.isStep&&this.cardTrekMouseOver.emit(this.currentTrek.id)};e.prototype.handleMouseLeave=function(){!this.isStep&&this.cardTrekMouseLeave.emit()};e.prototype.render=function(){var e=this;var i,t,r,a,n,o,s;return h(Host,{style:{width:this.isLargeView?"100%":"auto","--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.currentTrek&&h("div",{class:this.isStep?"trek-card-container trek-step-card":this.isLargeView?"trek-card-large-view-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""):"trek-card-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""),onClick:function(){return e.trekCardPress.emit(e.currentTrek.id)}},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0&&h("img",{class:"image",src:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}),h("div",{class:"sub-container"},this.departureCity&&h("div",{class:"departure"},this.departureCity.name),h("div",{class:"name"},(i=this.currentTrek)===null||i===void 0?void 0:i.name),!this.isStep&&h("div",{class:"themes-container"},this.themes.map((function(e){return h("div",{class:"theme"},e.label)}))),h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&h("img",{src:this.difficulty.pictogram}),(r=this.difficulty)===null||r===void 0?void 0:r.label),h("div",{class:"icon-label duration"},h("span",{class:"material-symbols material-symbols-outlined"},"timelapse"),formatDuration(this.currentTrek.duration))),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{class:"material-symbols material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{class:"material-symbols material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent))),!this.isStep&&h("div",{class:"row"},h("div",{class:"icon-label route"},((a=this.route)===null||a===void 0?void 0:a.pictogram)&&h("img",{src:this.route.pictogram}),(n=this.route)===null||n===void 0?void 0:n.route),h("div",{class:"icon-label practice"},((o=this.practice)===null||o===void 0?void 0:o.pictogram)&&h("img",{src:this.practice.pictogram}),(s=this.practice)===null||s===void 0?void 0:s.name))))))};return e}();GrwTrekCard.style=grwTrekCardCss;export{GrwInformationDeskDetail as grw_information_desk_detail,GrwPoiDetail as grw_poi_detail,GrwSensitiveAreaDetail as grw_sensitive_area_detail,GrwTrekCard as grw_trek_card};
2
- //# sourceMappingURL=grw-information-desk-detail_4.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwInformationDeskDetailCss","GrwInformationDeskDetail","prototype","handleInformationDeskDescription","this","displayShortDescription","handleCenterOnMap","centerOnMap","emit","latitude","informationDesk","longitude","render","_this","h","Host","photo_url","class","src","loading","name","onClick","postal_code","municipality","street","concat","phone","href","email","website","description","innerHTML","grwPoiDetailCss","GrwPoiDetail","componentDidLoad","swiperPoi","Swiper","swiperPoiRef","modules","Navigation","Pagination","Keyboard","navigation","prevEl","prevElPoiRef","nextEl","nextElPoiRef","pagination","el","paginationElPoiRef","allowTouchMove","keyboard","onfullscreenchange","displayFullscreen","enable","disable","handlePoiDescription","handleFullscreen","poi","attachments","url","requestFullscreen","defaultImageSrc","getAssetPath","_a","state","poiTypes","find","poiType","id","type","pictogram","ref","length","filter","attachment","map","thumbnail","grwSensitiveAreaDetailCss","GrwSensitiveAreaDetail","sensitiveArea","practices","sensitiveAreaPractice","index","practice","statePractice","toUpperCase","period","month","Date","toLocaleDateString","slice","contact","grwTrekCardCss","GrwTrekCard","connectedCallback","currentTrek","trek","difficulty","difficulties","route","routes","themes","theme","includes","departureCity","cities","city","departure_city","onChange","disconnectedCallback","resetStoreOnDisconnected","reset","handleMouseOver","isStep","cardTrekMouseOver","handleMouseLeave","cardTrekMouseLeave","style","width","isLargeView","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","selectedTrekId","trekCardPress","label","_b","_c","formatDuration","duration","formatLength","length_2d","formatAscent","ascent","_d","_e","_f","_g"],"sources":["src/components/grw-information-desk-detail/grw-information-desk-detail.scss?tag=grw-information-desk-detail&encapsulation=shadow","src/components/grw-information-desk-detail/grw-information-desk-detail.tsx","src/components/grw-poi-detail/grw-poi-detail.scss?tag=grw-poi-detail&encapsulation=shadow","src/components/grw-poi-detail/grw-poi-detail.tsx","src/components/grw-sensitive-area-detail/grw-sensitive-area-detail.scss?tag=grw-sensitive-area-detail&encapsulation=shadow","src/components/grw-sensitive-area-detail/grw-sensitive-area-detail.tsx","src/components/grw-trek-card/grw-trek-card.scss?tag=grw-trek-card&encapsulation=shadow","src/components/grw-trek-card/grw-trek-card.tsx"],"sourcesContent":[".material-symbols {\n font-family: 'Material Symbols Outlined';\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border: 1px solid gray;\n border-radius: 12px;\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n a {\n color: var(--color-primary-app);\n }\n}\n\n.information-desk-img {\n position: relative;\n img {\n width: 100%;\n height: 100%;\n max-height: 200px;\n object-fit: cover;\n }\n}\n\n.information-desk-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n}\n\n.information-desk-name {\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n}\n\n.information-desk-description {\n font-size: 14px;\n line-height: 20px;\n}\n\n.information-desk-description-short {\n font-size: 14px;\n line-height: 20px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 4;\n overflow: hidden;\n}\n\n.handle-information-desk-description {\n cursor: pointer;\n color: var(--color-primary-app);\n text-decoration: underline;\n margin-top: 12px;\n}\n\n.phone-container,\n.mail-container,\n.link-container {\n display: flex;\n align-items: center;\n span {\n font-size: 16px;\n margin-right: 8px;\n }\n}\n\n.center-on-map-button {\n cursor: pointer;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: 8px;\n padding: 8px 16px;\n box-shadow: var(--elevation-1);\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n border: none;\n font-size: 14px;\n margin: 12px 0px;\n &:hover {\n box-shadow: var(--elevation-2);\n }\n span {\n font-size: 18px;\n }\n}\n","import { Component, Host, h, Prop, State, Event, EventEmitter } from '@stencil/core';\nimport { InformationDesk } from 'types/types';\n\n@Component({\n tag: 'grw-information-desk-detail',\n styleUrl: 'grw-information-desk-detail.scss',\n shadow: true,\n})\nexport class GrwInformationDeskDetail {\n @Event() centerOnMap: EventEmitter<{ latitude: number; longitude: number }>;\n @State() displayShortDescription = true;\n @Prop() informationDesk: InformationDesk;\n\n handleInformationDeskDescription() {\n this.displayShortDescription = !this.displayShortDescription;\n }\n\n handleCenterOnMap() {\n this.centerOnMap.emit({ latitude: this.informationDesk.latitude, longitude: this.informationDesk.longitude });\n }\n\n render() {\n return (\n <Host>\n {this.informationDesk.photo_url && (\n <div class=\"information-desk-img\">\n <img src={this.informationDesk.photo_url} loading=\"lazy\" />\n </div>\n )}\n <div class=\"information-desk-sub-container\">\n {this.informationDesk.name && <div class=\"information-desk-name\">{this.informationDesk.name}</div>}\n {this.informationDesk.latitude && this.informationDesk.longitude && (\n <button class=\"center-on-map-button\" onClick={() => this.handleCenterOnMap()}>\n <span class=\"material-symbols material-symbols-outlined\">location_searching</span>\n Centrer sur la carte\n </button>\n )}\n {(this.informationDesk.postal_code || this.informationDesk.municipality || this.informationDesk.street) && (\n <div>\n {this.informationDesk.postal_code && this.informationDesk.postal_code}\n {this.informationDesk.municipality && ` ${this.informationDesk.municipality}`}\n {this.informationDesk.street && ` ${this.informationDesk.street}`}\n </div>\n )}\n {this.informationDesk.phone && (\n <div class=\"phone-container\">\n <span class=\"material-symbols material-symbols-outlined\">call</span>\n <a href={`tel:${this.informationDesk.phone}`}>{this.informationDesk.phone}</a>\n </div>\n )}\n {this.informationDesk.email && (\n <div class=\"mail-container\">\n <span class=\"material-symbols material-symbols-outlined\">mail</span>\n <a href={`mailto:${this.informationDesk.email}`}>{this.informationDesk.email}</a>\n </div>\n )}\n {this.informationDesk.website && (\n <div class=\"link-container\">\n <span class=\"material-symbols material-symbols-outlined\">link</span>\n <a href={`${this.informationDesk.website}`}>{this.informationDesk.website}</a>\n </div>\n )}\n {this.informationDesk.description && (\n <div class=\"information-desk-description-container\">\n <div class={this.displayShortDescription ? 'information-desk-description-short' : 'information-desk-description'} innerHTML={this.informationDesk.description}></div>\n <div class=\"handle-information-desk-description\" onClick={() => this.handleInformationDeskDescription()}>\n {this.displayShortDescription ? 'Lire plus' : 'Lire moins'}\n </div>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n","@use '~swiper/swiper.scss';\n@use '~swiper/modules/navigation/navigation.scss';\n@use '~swiper/modules/pagination/pagination.scss';\n\n.swiper {\n z-index: 0;\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border: 1px solid gray;\n border-radius: 12px;\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n a {\n color: var(--color-primary-app);\n }\n --swiper-navigation-size: 24px;\n --swiper-navigation-color: var(--color-on-primary-container);\n --swiper-pagination-color: var(--color-primary-container);\n --swiper-pagination-bullet-size: 12px;\n .swiper-button-prev,\n .swiper-button-next {\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: 32px;\n box-shadow: var(--elevation-1);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n}\n\n.poi-type-img-container {\n position: relative;\n .poi-img,\n .default-poi-img {\n width: 100%;\n height: 100%;\n max-height: 200px;\n object-fit: cover;\n }\n .poi-img {\n cursor: pointer;\n object-fit: cover;\n }\n .default-poi-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .img-fullscreen {\n max-height: none;\n object-fit: contain;\n }\n .poi-type {\n width: 24px;\n height: 24px;\n padding: 4px;\n border: 2px solid #ffffff;\n border-radius: 50%;\n background-color: var(--color-on-surface);\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 200;\n }\n}\n\n.poi-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n}\n\n.poi-name {\n font-size: 16px;\n line-height: 24px;\n}\n\n.poi-description {\n font-size: 14px;\n line-height: 20px;\n}\n\n.poi-description-short {\n font-size: 14px;\n line-height: 20px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 4;\n overflow: hidden;\n}\n\n.handle-poi-description {\n cursor: pointer;\n color: var(--color-primary-app);\n text-decoration: underline;\n margin-top: 12px;\n}\n","import { Component, Host, h, Prop, State, Build, getAssetPath } from '@stencil/core';\nimport Swiper, { Navigation, Pagination, Keyboard } from 'swiper';\nimport state from 'store/store';\nimport { Poi } from 'types/types';\n\n@Component({\n tag: 'grw-poi-detail',\n styleUrl: 'grw-poi-detail.scss',\n shadow: true,\n})\nexport class GrwPoiDetail {\n swiperPoi?: Swiper;\n swiperPoiRef?: HTMLDivElement;\n prevElPoiRef?: HTMLDivElement;\n nextElPoiRef?: HTMLDivElement;\n paginationElPoiRef?: HTMLDivElement;\n @Prop() poi: Poi;\n @State() displayShortDescription = true;\n @State() displayFullscreen = false;\n\n componentDidLoad() {\n this.swiperPoi = new Swiper(this.swiperPoiRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElPoiRef,\n nextEl: this.nextElPoiRef,\n },\n pagination: { el: this.paginationElPoiRef },\n allowTouchMove: false,\n keyboard: false,\n });\n this.swiperPoiRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n if (this.displayFullscreen) {\n this.swiperPoi.keyboard.enable();\n } else {\n this.swiperPoi.keyboard.disable();\n }\n };\n }\n\n handlePoiDescription() {\n this.displayShortDescription = !this.displayShortDescription;\n }\n\n handleFullscreen() {\n if (this.poi.attachments && this.poi.attachments[0] && this.poi.attachments[0].url) {\n this.swiperPoiRef.requestFullscreen();\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n return (\n <Host>\n <div class=\"poi-type-img-container\">\n <img class=\"poi-type\" src={`${state.poiTypes.find(poiType => poiType.id === this.poi.type)?.pictogram}`} />\n <div class=\"swiper\" ref={el => (this.swiperPoiRef = el)}>\n <div class=\"swiper-wrapper\">\n {this.poi.attachments.length > 0 ? (\n this.poi.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div class=\"swiper-slide\">\n <img\n class={`poi-img${this.displayFullscreen ? ' img-fullscreen' : ''}`}\n src={this.displayFullscreen ? attachment.url : attachment.thumbnail}\n loading=\"lazy\"\n onClick={() => this.handleFullscreen()}\n />\n </div>\n ))\n ) : (\n <div class=\"swiper-slide\">\n <img class=\"default-poi-img\" src={defaultImageSrc} loading=\"lazy\" />\n </div>\n )}\n </div>\n <div class=\"swiper-pagination\" ref={el => (this.paginationElPoiRef = el)}></div>\n <div class=\"swiper-button-prev\" ref={el => (this.prevElPoiRef = el)}></div>\n <div class=\"swiper-button-next\" ref={el => (this.nextElPoiRef = el)}></div>\n </div>\n </div>\n <div class=\"poi-sub-container\">\n <div class=\"poi-name\">{this.poi.name}</div>\n <div class={this.displayShortDescription ? 'poi-description-short' : 'poi-description'} innerHTML={this.poi.description}></div>\n <div class=\"handle-poi-description\" onClick={() => this.handlePoiDescription()}>\n {this.displayShortDescription ? 'Lire plus' : 'Lire moins'}\n </div>\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: flex;\n flex-direction: column;\n color: var(--color-on-surface);\n a {\n color: var(--color-primary-app);\n }\n}\n\n.sensitive-area-title {\n font-size: 22px;\n line-height: 28px;\n padding: 12px 0px;\n font-weight: 400;\n}\n\n.sensitive-area-description {\n font-size: 16px;\n line-height: 24px;\n}\n\n.sensitive-area-period-container,\n.sensitive-area-practice-container,\n.sensitive-area-contact-container {\n .sensitive-area-period-title,\n .sensitive-area-practice-title,\n .sensitive-area-contact-title {\n font-size: 16px;\n line-height: 24px;\n padding: 12px 0px;\n }\n .sensitive-area-period-values,\n .sensitive-area-practice-values {\n display: flex;\n flex-wrap: wrap;\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\nimport state from 'store/store';\nimport { SensitiveArea } from 'types/types';\n\n@Component({\n tag: 'grw-sensitive-area-detail',\n styleUrl: 'grw-sensitive-area-detail.scss',\n shadow: true,\n})\nexport class GrwSensitiveAreaDetail {\n @Prop() sensitiveArea: SensitiveArea;\n\n render() {\n return (\n <Host>\n <div class=\"sensitive-area-title\">{this.sensitiveArea.name}</div>\n <div class=\"sensitive-area-description\" innerHTML={this.sensitiveArea.description}></div>\n {this.sensitiveArea.practices && this.sensitiveArea.practices.length > 0 && (\n <div class=\"sensitive-area-practice-container\">\n <div class=\"sensitive-area-practice-title\">Domaines d'activités concernés :</div>\n <div class=\"sensitive-area-practice-values\">\n {this.sensitiveArea.practices.map((sensitiveAreaPractice, index) => {\n const practice = state.practices.find(statePractice => statePractice.id === sensitiveAreaPractice);\n if (practice) {\n return <div innerHTML={`${practice.name.toUpperCase()}${index + 1 !== this.sensitiveArea.practices.length ? ' -&nbsp;' : ''}`}></div>;\n }\n })}\n </div>\n </div>\n )}\n {this.sensitiveArea.period && this.sensitiveArea.period.length > 0 && (\n <div class=\"sensitive-area-period-container\">\n <div class=\"sensitive-area-period-title\">Périodes de sensibilité</div>\n <div class=\"sensitive-area-period-values\">\n {this.sensitiveArea.period.map((month, index) => {\n if (month) {\n return (\n <div\n innerHTML={`${new Date(0, index + 1, 0).toLocaleDateString('fr', { month: 'long' }).toUpperCase()}${\n this.sensitiveArea.period.slice(index + 1).find(month => month) ? ' -&nbsp;' : ''\n }`}\n ></div>\n );\n }\n })}\n </div>\n </div>\n )}\n <div class=\"sensitive-area-contact-container\">\n <div class=\"sensitive-area-contact-title\">Contact</div>\n <div innerHTML={this.sensitiveArea.contact} class=\"sensitive-area-contact-value\"></div>\n </div>\n </Host>\n );\n }\n}\n",".material-symbols {\n font-family: 'Material Symbols Outlined';\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n.trek-card-container,\n.trek-card-large-view-container {\n cursor: pointer;\n font-family: 'Roboto';\n border-radius: 12px;\n box-shadow: var(--elevation-1);\n background-color: var(--color-surface-container-low);\n .image {\n object-fit: cover;\n border-top-left-radius: 12px;\n border-top-right-radius: 12px;\n }\n .sub-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 8px 16px;\n .name {\n color: var(--color-on-surface);\n font-size: 22px;\n line-height: 28px;\n font-weight: 400;\n margin-bottom: 8px;\n }\n .departure {\n color: var(--color-on-surface);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n margin-bottom: 4px;\n }\n .themes-container {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n .theme {\n background-color: var(--color-secondary-container);\n color: var(--color-on-secondary-container);\n border-radius: 8px;\n padding: 8px 16px;\n margin: 0px 8px 8px 0px;\n box-shadow: var(--elevation-0);\n border: 1px solid var(--color-outline);\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n text-wrap: nowrap;\n }\n }\n .icons-labels-container {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n color: var(--color-on-surface);\n font-size: 14px;\n line-height: 20px;\n font-weight: 500;\n .row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n .icon-label {\n &:nth-child(2) {\n margin: 0px 4px;\n }\n display: flex;\n align-items: center;\n width: 50%;\n img,\n span {\n font-size: 24px;\n width: 24px;\n height: auto;\n margin-right: 8px;\n }\n }\n .practice {\n img {\n background-color: var(--color-primary-app);\n }\n }\n }\n }\n }\n}\n\n.selected-trek-card {\n box-shadow: var(--elevation-2);\n}\n\n.trek-card-container {\n width: 100%;\n max-width: 350px;\n .image {\n width: 100%;\n max-height: 200px;\n }\n}\n\n.trek-card-large-view-container {\n display: flex;\n flex-direction: row;\n .image {\n width: 250px;\n }\n}\n\n.trek-step-card {\n width: auto;\n}\n","import { Component, Host, h, Prop, Event, EventEmitter, State, Listen } from '@stencil/core';\nimport state, { onChange, reset } from 'store/store';\nimport { City, Difficulty, Practice, Route, Themes, Trek } from 'types/types';\nimport { formatDuration, formatLength, formatAscent } from 'utils/utils';\n\n@Component({\n tag: 'grw-trek-card',\n styleUrl: 'grw-trek-card.scss',\n shadow: true,\n})\nexport class GrwTrekCard {\n @Event() trekCardPress: EventEmitter<number>;\n @State() currentTrek: Trek;\n @State() difficulty: Difficulty;\n @State() route: Route;\n @State() practice: Practice;\n @State() themes: Themes;\n @State() departureCity: City;\n @Prop() trek: Trek;\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() isLargeView = false;\n @Prop() resetStoreOnDisconnected = true;\n @Prop() isStep: false;\n\n @Event() cardTrekMouseOver: EventEmitter<number>;\n @Event() cardTrekMouseLeave: EventEmitter;\n\n connectedCallback() {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);\n this.route = state.routes.find(route => route.id === this.currentTrek.route);\n this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);\n this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));\n this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);\n }\n onChange('currentTrek', () => {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);\n this.route = state.routes.find(route => route.id === this.currentTrek.route);\n this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);\n this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));\n this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);\n }\n });\n }\n\n disconnectedCallback() {\n if (this.resetStoreOnDisconnected) {\n reset();\n }\n }\n\n @Listen('mouseover')\n handleMouseOver() {\n !this.isStep && this.cardTrekMouseOver.emit(this.currentTrek.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n !this.isStep && this.cardTrekMouseLeave.emit();\n }\n\n render() {\n return (\n <Host\n style={{\n 'width': this.isLargeView ? '100%' : 'auto',\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-surface-container-low': this.colorSurfaceContainerLow,\n }}\n >\n {this.currentTrek && (\n <div\n class={\n this.isStep\n ? 'trek-card-container trek-step-card'\n : this.isLargeView\n ? `trek-card-large-view-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n : `trek-card-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n }\n onClick={() => this.trekCardPress.emit(this.currentTrek.id)}\n >\n {this.currentTrek.attachments.filter(attachment => attachment.type === 'image').length > 0 && (\n <img class=\"image\" src={`${this.currentTrek.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`} loading=\"lazy\" />\n )}\n <div class=\"sub-container\">\n {this.departureCity && <div class=\"departure\">{this.departureCity.name}</div>}\n <div class=\"name\">{this.currentTrek?.name}</div>\n {!this.isStep && (\n <div class=\"themes-container\">\n {this.themes.map(theme => (\n <div class=\"theme\">{theme.label}</div>\n ))}\n </div>\n )}\n <div class=\"icons-labels-container\">\n <div class=\"row\">\n <div class=\"icon-label difficulty\">\n {this.difficulty?.pictogram && <img src={this.difficulty.pictogram} />}\n {this.difficulty?.label}\n </div>\n <div class=\"icon-label duration\">\n <span class=\"material-symbols material-symbols-outlined\">timelapse</span>\n {formatDuration(this.currentTrek.duration)}\n </div>\n </div>\n <div class=\"row\">\n <div class=\"icon-label length\">\n <span class=\"material-symbols material-symbols-outlined\">open_in_full</span>\n {formatLength(this.currentTrek.length_2d)}\n </div>\n <div class=\"icon-label ascent\">\n <span class=\"material-symbols material-symbols-outlined\">moving</span>\n {formatAscent(this.currentTrek.ascent)}\n </div>\n </div>\n {!this.isStep && (\n <div class=\"row\">\n <div class=\"icon-label route\">\n {this.route?.pictogram && <img src={this.route.pictogram} />}\n {this.route?.route}\n </div>\n <div class=\"icon-label practice\">\n {this.practice?.pictogram && <img src={this.practice.pictogram} />}\n {this.practice?.name}\n </div>\n </div>\n )}\n </div>\n </div>\n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GjCpI,KAAK8G,QACLpG,EAAA,OAAKG,MAAM,OACTH,EAAA,OAAKG,MAAM,sBACRwH,EAAArI,KAAKgG,SAAK,MAAAqC,SAAA,SAAAA,EAAElE,YAAazD,EAAA,OAAKI,IAAKd,KAAKgG,MAAM7B,aAC9CmE,EAAAtI,KAAKgG,SAAK,MAAAsC,SAAA,S,EAAEtC,OAEftF,EAAA,OAAKG,MAAM,yBACR0H,EAAAvI,KAAKgF,YAAQ,MAAAuD,SAAA,SAAAA,EAAEpE,YAAazD,EAAA,OAAKI,IAAKd,KAAKgF,SAASb,aACpDqE,EAAAxI,KAAKgF,YAAQ,MAAAwD,SAAA,S,EAAExH,U,WA3Hd,G"}
@@ -1,2 +0,0 @@
1
- var translate={fr:{filter:"Filtrer",practice:"Pratique",difficulty:"Difficulté",duration:"Durée",length:"Longueur",treks:"randonnées",trek:"randonnée",showList:"Voir la liste",showMap:"Voir la carte",showRoute:"Voir l'itinéraire",showDetails:"Voir la fiche",downloads:"Téléchargements",description:"Description",departure:"Départ",arrival:"Arrivée",elevationProfile:"Profil altimétrique",roadAccess:"Accès routier",transport:"Transport",recommendations:"Recommandations",recommendedParking:"Parking conseillé",equipments:"Équipements",environmentalSensitiveAreas:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",accessibility:"Accessibilité",accessibilityLevel:"Niveau d'accessibilité",accessibilitySlope:"Pente",accessibilityWidth:"Largeur",accessibilitySignage:"Signalisation",accessibilityCovering:"Revêtement",accessibilityExposure:"Exposition",accessibilityAdvices:"Conseils",pois:function(e){return"Les ".concat(e," patrimoines à découvrir")},sources:"Sources",cities:"Communes traversées",options:{presentation:"Présentation",description:"Description",recommendations:"Recommandations",environmentalSensitiveAreas:"Zones sensibles",informationPlaces:"Lieux d'informations",pois:"Patrimoines"},layers:{pointsReference:"Points de référence",parking:"Parking conseillé",sensitiveArea:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",pois:"Patrimoines"},themes:"Thèmes",routes:"Type de parcours",elevation:"Denivelé positif",activities:"Activités",districts:"Secteurs",erase:"Effacer",ok:"Ok",location:"Localisation",steps:"étapes"},en:{filter:"Filter",practice:"Practice",difficulty:"Difficulty",duration:"Duration",length:"Length",treks:"Hikes",trek:"Hike",showList:"Show the list",showMap:"Show the map",showRoute:"Show the route",showDetails:"Show the details",downloads:"Downloads",description:"Description",departure:"Departure",arrival:"Arrival",elevationProfile:"Elevation profile",roadAccess:"Road acess",transport:"Transport",recommendations:"Recommendations",recommendedParking:"Parking recommended",equipments:"Equipements",environmentalSensitiveAreas:"Areas of environmental sensitivity",informationPlaces:"Information places",accessibility:"Accessibility",accessibilityLevel:"Accessibility level",accessibilitySlope:"Slope",accessibilityWidth:"Width",accessibilitySignage:"Signage",accessibilityCovering:"Covering",accessibilityExposure:"Exposure",accessibilityAdvices:"Advices",pois:function(e){return"".concat(e," points of interest")},sources:"Sources",cities:"Cities crossed",options:{presentation:"Presentation",description:"Description",recommendations:"Recommendations",environmentalSensitiveAreas:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest"},layers:{pointsReference:"Reference points",parking:"Parking",sensitiveArea:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest"},themes:"Themes",routes:"Type of course",elevation:"Positive elevation",activities:"Activities",districts:"Districts",erase:"Erase",ok:"Ok",location:"Location",steps:"steps"}};export{translate as t};
2
- //# sourceMappingURL=i18n-a9d6ba05.js.map
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"version":3,"names":["translate","fr","filter","practice","difficulty","duration","length","treks","trek","showList","showMap","showRoute","showDetails","downloads","description","departure","arrival","elevationProfile","roadAccess","transport","recommendations","recommendedParking","equipments","environmentalSensitiveAreas","informationPlaces","accessibility","accessibilityLevel","accessibilitySlope","accessibilityWidth","accessibilitySignage","accessibilityCovering","accessibilityExposure","accessibilityAdvices","pois","poisLength","concat","sources","cities","options","presentation","layers","pointsReference","parking","sensitiveArea","themes","routes","elevation","activities","districts","erase","ok","location","steps","en"],"sources":["src/i18n/i18n.ts"],"sourcesContent":["interface Translation {\n filter: string;\n practice: string;\n difficulty: string;\n duration: string;\n length: string;\n treks: string;\n trek: string;\n showList: string;\n showMap: string;\n showRoute: string;\n showDetails: string;\n downloads: string;\n description: string;\n departure: string;\n arrival: string;\n elevationProfile: string;\n roadAccess: string;\n transport: string;\n recommendations: string;\n recommendedParking: string;\n equipments: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n accessibility: string;\n accessibilityLevel: string;\n accessibilitySlope: string;\n accessibilityWidth: string;\n accessibilitySignage: string;\n accessibilityCovering: string;\n accessibilityExposure: string;\n accessibilityAdvices: string;\n pois: Function;\n sources: string;\n cities: string;\n options: {\n presentation: string;\n description: string;\n recommendations: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n pois: string;\n };\n layers: {\n pointsReference: string;\n parking: string;\n sensitiveArea: string;\n informationPlaces: string;\n pois: string;\n };\n themes: string;\n routes: string;\n elevation: string;\n activities: string;\n districts: string;\n erase: string;\n ok: string;\n location: string;\n steps: string;\n}\n\ninterface AvailableTranslations {\n fr: Translation;\n en: Translation;\n}\n\nexport const translate: AvailableTranslations = {\n fr: {\n filter: 'Filtrer',\n practice: 'Pratique',\n difficulty: 'Difficulté',\n duration: 'Durée',\n length: 'Longueur',\n treks: 'randonnées',\n trek: 'randonnée',\n showList: 'Voir la liste',\n showMap: 'Voir la carte',\n showRoute: \"Voir l'itinéraire\",\n showDetails: 'Voir la fiche',\n downloads: 'Téléchargements',\n description: 'Description',\n departure: 'Départ',\n arrival: 'Arrivée',\n elevationProfile: 'Profil altimétrique',\n roadAccess: 'Accès routier',\n transport: 'Transport',\n recommendations: 'Recommandations',\n recommendedParking: 'Parking conseillé',\n equipments: 'Équipements',\n environmentalSensitiveAreas: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n accessibility: 'Accessibilité',\n accessibilityLevel: \"Niveau d'accessibilité\",\n accessibilitySlope: 'Pente',\n accessibilityWidth: 'Largeur',\n accessibilitySignage: 'Signalisation',\n accessibilityCovering: 'Revêtement',\n accessibilityExposure: 'Exposition',\n accessibilityAdvices: 'Conseils',\n pois: (poisLength: number) => `Les ${poisLength} patrimoines à découvrir`,\n sources: 'Sources',\n cities: 'Communes traversées',\n options: {\n presentation: 'Présentation',\n description: 'Description',\n recommendations: 'Recommandations',\n environmentalSensitiveAreas: 'Zones sensibles',\n informationPlaces: \"Lieux d'informations\",\n pois: 'Patrimoines',\n },\n layers: {\n pointsReference: 'Points de référence',\n parking: 'Parking conseillé',\n sensitiveArea: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n pois: 'Patrimoines',\n },\n themes: 'Thèmes',\n routes: 'Type de parcours',\n elevation: 'Denivelé positif',\n activities: 'Activités',\n districts: 'Secteurs',\n erase: 'Effacer',\n ok: 'Ok',\n location: 'Localisation',\n steps: 'étapes',\n },\n en: {\n filter: 'Filter',\n practice: 'Practice',\n difficulty: 'Difficulty',\n duration: 'Duration',\n length: 'Length',\n treks: 'Hikes',\n trek: 'Hike',\n showList: 'Show the list',\n showMap: 'Show the map',\n showRoute: 'Show the route',\n showDetails: 'Show the details',\n downloads: 'Downloads',\n description: 'Description',\n departure: 'Departure',\n arrival: 'Arrival',\n elevationProfile: 'Elevation profile',\n roadAccess: 'Road acess',\n transport: 'Transport',\n recommendations: 'Recommendations',\n recommendedParking: 'Parking recommended',\n equipments: 'Equipements',\n environmentalSensitiveAreas: 'Areas of environmental sensitivity',\n informationPlaces: 'Information places',\n accessibility: 'Accessibility',\n accessibilityLevel: 'Accessibility level',\n accessibilitySlope: 'Slope',\n accessibilityWidth: 'Width',\n accessibilitySignage: 'Signage',\n accessibilityCovering: 'Covering',\n accessibilityExposure: 'Exposure',\n accessibilityAdvices: 'Advices',\n pois: (poisLength: number) => `${poisLength} points of interest`,\n sources: 'Sources',\n cities: 'Cities crossed',\n options: {\n presentation: 'Presentation',\n description: 'Description',\n recommendations: 'Recommendations',\n environmentalSensitiveAreas: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n },\n layers: {\n pointsReference: 'Reference points',\n parking: 'Parking',\n sensitiveArea: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n },\n themes: 'Themes',\n routes: 'Type of course',\n elevation: 'Positive elevation',\n activities: 'Activities',\n districts: 'Districts',\n erase: 'Erase',\n ok: 'Ok',\n location: 'Location',\n steps: 'steps',\n },\n};\n"],"mappings":"IAkEaA,UAAmC,CAC9CC,GAAI,CACFC,OAAQ,UACRC,SAAU,WACVC,WAAY,aACZC,SAAU,QACVC,OAAQ,WACRC,MAAO,aACPC,KAAM,YACNC,SAAU,gBACVC,QAAS,gBACTC,UAAW,oBACXC,YAAa,gBACbC,UAAW,kBACXC,YAAa,cACbC,UAAW,SACXC,QAAS,UACTC,iBAAkB,sBAClBC,WAAY,gBACZC,UAAW,YACXC,gBAAiB,kBACjBC,mBAAoB,oBACpBC,WAAY,cACZC,4BAA6B,wCAC7BC,kBAAmB,yBACnBC,cAAe,gBACfC,mBAAoB,yBACpBC,mBAAoB,QACpBC,mBAAoB,UACpBC,qBAAsB,gBACtBC,sBAAuB,aACvBC,sBAAuB,aACvBC,qBAAsB,WACtBC,KAAM,SAACC,GAAuB,aAAAC,OAAOD,EAAU,2BAAjB,EAC9BE,QAAS,UACTC,OAAQ,sBACRC,QAAS,CACPC,aAAc,eACdzB,YAAa,cACbM,gBAAiB,kBACjBG,4BAA6B,kBAC7BC,kBAAmB,uBACnBS,KAAM,eAERO,OAAQ,CACNC,gBAAiB,sBACjBC,QAAS,oBACTC,cAAe,wCACfnB,kBAAmB,yBACnBS,KAAM,eAERW,OAAQ,SACRC,OAAQ,mBACRC,UAAW,mBACXC,WAAY,YACZC,UAAW,WACXC,MAAO,UACPC,GAAI,KACJC,SAAU,eACVC,MAAO,UAETC,GAAI,CACFnD,OAAQ,SACRC,SAAU,WACVC,WAAY,aACZC,SAAU,WACVC,OAAQ,SACRC,MAAO,QACPC,KAAM,OACNC,SAAU,gBACVC,QAAS,eACTC,UAAW,iBACXC,YAAa,mBACbC,UAAW,YACXC,YAAa,cACbC,UAAW,YACXC,QAAS,UACTC,iBAAkB,oBAClBC,WAAY,aACZC,UAAW,YACXC,gBAAiB,kBACjBC,mBAAoB,sBACpBC,WAAY,cACZC,4BAA6B,qCAC7BC,kBAAmB,qBACnBC,cAAe,gBACfC,mBAAoB,sBACpBC,mBAAoB,QACpBC,mBAAoB,QACpBC,qBAAsB,UACtBC,sBAAuB,WACvBC,sBAAuB,WACvBC,qBAAsB,UACtBC,KAAM,SAACC,GAAuB,SAAAC,OAAGD,EAAU,sBAAb,EAC9BE,QAAS,UACTC,OAAQ,iBACRC,QAAS,CACPC,aAAc,eACdzB,YAAa,cACbM,gBAAiB,kBACjBG,4BAA6B,kBAC7BC,kBAAmB,qBACnBS,KAAM,sBAERO,OAAQ,CACNC,gBAAiB,mBACjBC,QAAS,UACTC,cAAe,kBACfnB,kBAAmB,qBACnBS,KAAM,sBAERW,OAAQ,SACRC,OAAQ,iBACRC,UAAW,qBACXC,WAAY,aACZC,UAAW,YACXC,MAAO,QACPC,GAAI,KACJC,SAAU,WACVC,MAAO,iB"}
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_b","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapTreksBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","treksNetworkError","trekNetworkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps"],"sources":["node_modules/@stencil/store/dist/index.mjs","src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n accessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapTreksBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n accessibilities: Accessibilities;\n accessibilitiesLevel: accessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n treksNetworkError: boolean;\n trekNetworkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n}>({\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapTreksBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n treksNetworkError: false,\n trekNetworkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"uEAEA,IAAMA,YAAc,SAACC,EAAKC,EAAUC,GAChC,IAAMC,EAAQH,EAAII,IAAIH,GACtB,IAAKE,EAAO,CACRH,EAAIK,IAAIJ,EAAU,CAACC,G,MAElB,IAAKC,EAAMG,SAASJ,GAAQ,CAC7BC,EAAMI,KAAKL,E,CAEnB,EACA,IAAMM,SAAW,SAACC,EAAIC,GAClB,IAAIC,EACJ,OAAO,WAAC,IAAAC,EAAA,G,IAAA,IAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAO,CAAPD,EAAAC,GAAAC,UAAAD,E,CACJ,GAAIF,EAAW,CACXK,aAAaL,E,CAEjBA,EAAYM,YAAW,WACnBN,EAAY,EACZF,EAAES,WAAA,EAAIN,EAClB,GAAWF,EACX,CACA,EAWA,IAAMS,YAAc,SAACC,GAAiB,QAAE,gBAAiBA,IAAiBA,EAAaD,WAAjD,EACtC,IAAME,gBAAkBb,UAAS,SAACR,GAC9B,IAAgB,IAAAa,EAAA,EAAAS,EAAAtB,EAAIuB,OAAJV,EAAAS,EAAAP,OAAAF,IAAY,CAAvB,IAAIW,EAAGF,EAAAT,GACRb,EAAIK,IAAImB,EAAKxB,EAAII,IAAIoB,GA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vBC,OAAQ,KACRC,UAAW,KACXC,QAAS,KACTC,gBAAiB,KACjBC,qBAAsB,KACtBC,SAAU,KACVC,YAAa,KACbC,YAAa,KACbC,wBAAyB,KACzBC,kBAAmB,MACnBC,iBAAkB,MAClBC,YAAa,KACbC,0BAA2B,EAC3BC,sBAAuB,EACvBC,wBAAyB,EACzBC,eAAgB,KAChBC,aAAc,KACdC,WAAY,KACZC,iBAAkB,OAvEZ/D,MAAK/B,GAAA+B,MAAEc,SAAQ7C,GAAA6C,SAAEhC,MAAKb,GAAAa,a"}
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- System.register(["./p-266b2cee.system.js"],(function(r,e){"use strict";var o,n,a,t,i,c;return{setters:[function(e){o=e.p;n=e.w;a=e.d;t=e.N;i=e.a;c=e.b;r("setNonce",e.s)}],execute:function(){function r(r){var e,o,n;return(n=(o=(e=r.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&n!==void 0?n:undefined}var s=function(r){return"__sc_import_".concat(r.replace(/\s|-/g,"_"))};var l=function(){{o.$cssShim$=n.__cssshim}var r=Array.from(a.querySelectorAll("script")).find((function(r){return new RegExp("/".concat(t,"(\\.esm)?\\.js($|\\?|#)")).test(r.src)||r.getAttribute("data-stencil-namespace")===t}));var c=(r||{})["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{c.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,n.location.href)).href;{p(c.resourcesUrl,r)}if(!n.customElements){return e.import("./p-2a99981a.system.js").then((function(){return c}))}}return i(c)};var p=function(e,i){var c=s(t);try{n[c]=new Function("w","return import(w);//".concat(Math.random()))}catch(p){var l=new Map;n[c]=function(t){var s;var p=new URL(t,e).href;var u=l.get(p);if(!u){var d=a.createElement("script");d.type="module";d.crossOrigin=i.crossOrigin;d.src=URL.createObjectURL(new Blob(["import * as m from '".concat(p,"'; window.").concat(c,".m = m;")],{type:"application/javascript"}));var y=(s=o.$nonce$)!==null&&s!==void 0?s:r(a);if(y!=null){d.setAttribute("nonce",y)}u=new Promise((function(r){d.onload=function(){r(n[c].m);d.remove()}}));l.set(p,u);a.head.appendChild(d)}return u}}};l().then((function(r){return c([["p-1af71f11.system",[[0,"grw-app",{appWidth:[1,"app-width"],appHeight:[1,"app-height"],api:[1],languages:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1],center:[1],zoom:[2],nameLayer:[1,"name-layer"],urlLayer:[1,"url-layer"],attributionLayer:[1,"attribution-layer"],weather:[4],colorPrimaryApp:[1,"color-primary-app"],colorOnPrimary:[1,"color-on-primary"],colorSurface:[1,"color-surface"],colorOnSurface:[1,"color-on-surface"],colorSurfaceVariant:[1,"color-surface-variant"],colorOnSurfaceVariant:[1,"color-on-surface-variant"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],colorSurfaceContainerHigh:[1,"color-surface-container-high"],colorSurfaceContainerLow:[1,"color-surface-container-low"],fabBackgroundColor:[1,"fab-background-color"],fabColor:[1,"fab-color"],colorTrekLine:[1,"color-trek-line"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],showTrek:[32],showTreksMap:[32],showTrekMap:[32],showFilters:[32],isLargeView:[32],selectedSegment:[32],currentTrekId:[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]],["p-ac94a30c.system",[[1,"grw-select-language"]]],["p-78ff4400.system",[[1,"grw-information-desk-detail",{informationDesk:[16],displayShortDescription:[32]}],[1,"grw-poi-detail",{poi:[16],displayShortDescription:[32],displayFullscreen:[32]}],[1,"grw-sensitive-area-detail",{sensitiveArea:[16]}],[1,"grw-trek-card",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isStep:[4,"is-step"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],departureCity:[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-92a1370c.system",[[1,"grw-trek-detail",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],colorBackground:[1,"color-background"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],weather:[4],isLargeView:[4,"is-large-view"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],labels:[32],sources:[32],accessibilities:[32],accessibilityLevel:[32],displayFullscreen:[32],cities:[32],options:[32]}],[1,"grw-treks-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],treksToDisplay:[32]}],[1,"grw-filter",{filterType:[1,"filter-type"],filterName:[1,"filter-name"],filterNameProperty:[1,"filter-name-property"],segment:[1]},[[8,"resetFilter","onResetFilter"]]],[1,"grw-map",{nameLayer:[1,"name-layer"],urlLayer:[1,"url-layer"],attributionLayer:[1,"attribution-layer"],center:[1],zoom:[2],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorBackground:[1,"color-background"],colorTrekLine:[1,"color-trek-line"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isLargeView:[4,"is-large-view"],mapIsReady:[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"],[8,"cardTrekMouseOver","onCardTrekMouseOver"],[8,"cardTrekMouseLeave","oncardTrekMouseLeave"]]],[1,"grw-search"],[1,"grw-trek-provider",{languages:[1],api:[1],trekId:[1,"trek-id"]}],[1,"grw-treks-provider",{languages:[1],api:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1]}]]]],r)}))}}}));
2
- //# sourceMappingURL=p-148f5f1d.system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["queryNonceMetaTagContent","doc","_a","_b","_c","head","querySelector","getAttribute","undefined","getDynamicImportFunction","namespace","concat","replace","patchBrowser","plt","$cssShim$","win","__cssshim","scriptElm","Array","from","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","opts","history","scrollRestoration","then","resourcesUrl","URL","location","href","patchDynamicImport","customElements","module","import","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap_1","Map","url","mod","get","script_1","createElement","type","crossOrigin","createObjectURL","Blob","nonce","$nonce$","setAttribute","Promise","resolve","onload","m","remove","set","appendChild","options","bootstrapLazy","appWidth","appHeight","api","languages","inBbox","cities","districts","structures","themes","portals","routes","practices","center","zoom","nameLayer","urlLayer","attributionLayer","weather","colorPrimaryApp","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","colorTrekLine","colorSensitiveArea","colorPoiIcon","useGradient","showTrek","showTreksMap","showTrekMap","showFilters","isLargeView","selectedSegment","currentTrekId","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","trek","resetStoreOnDisconnected","isStep","currentTrek","difficulty","route","practice","departureCity","labels","sources","accessibilities","accessibilityLevel","treksToDisplay","filterType","filterName","filterNameProperty","segment","mapIsReady","trekId"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"8LAaA,SAASA,EAAyBC,GAC9B,IAAIC,EAAIC,EAAIC,EACZ,OAAQA,GAAMD,GAAMD,EAAKD,EAAII,QAAU,MAAQH,SAAY,OAAS,EAAIA,EAAGI,cAAc,6BAA+B,MAAQH,SAAY,OAAS,EAAIA,EAAGI,aAAa,cAAgB,MAAQH,SAAY,EAAIA,EAAKI,SAC1N,CAEA,IAAMC,EAA2B,SAACC,GAAc,qBAAAC,OAAeD,EAAUE,QAAQ,QAAS,KAA1C,EAChD,IAAMC,EAAe,WAMK,CAGlBC,EAAIC,UAAYC,EAAIC,S,CAkBxB,IAAMC,EAIAC,MAAMC,KAAKnB,EAAIoB,iBAAiB,WAAWC,MAAK,SAACC,GAAM,WAAIC,OAAO,IAAAb,OAAKc,EAAS,4BAA2BC,KAAKH,EAAEI,MAChHJ,EAAEhB,aAAa,4BAA8BkB,CADQ,IAI7D,IAAMG,GA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BAAAW,YAAA,KAAAC,WAAA,KAAAC,MAAA,KAAAC,SAAA,KAAA/C,OAAA,KAAAiD,OAAA,KAAAC,QAAA,KAAAC,gBAAA,KAAAC,mBAAA,KAAAb,kBAAA,KAAA1C,OAAA,KAAAP,QAAA,4BAAAoB,gBAAA,wBAAAG,eAAA,uBAAAK,wBAAA,gCAAAC,0BAAA,mCAAAG,yBAAA,kCAAAW,YAAA,oBAAAS,yBAAA,kCAAAW,eAAA,wBAAAC,WAAA,kBAAAC,WAAA,kBAAAC,mBAAA,2BAAAC,QAAA,wDAAAnD,UAAA,iBAAAC,SAAA,gBAAAC,iBAAA,wBAAAJ,OAAA,IAAAC,KAAA,IAAAK,gBAAA,wBAAAG,eAAA,uBAAAG,sBAAA,8BAAAC,wBAAA,iCAAAG,gBAAA,uBAAAK,cAAA,sBAAAC,mBAAA,2BAAAC,aAAA,qBAAAC,YAAA,mBAAAc,yBAAA,kCAAAT,YAAA,oBAAAyB,WAAA,mdAAA/D,UAAA,IAAAD,IAAA,IAAAiE,OAAA,yCAAAhE,UAAA,IAAAD,IAAA,IAAAE,OAAA,cAAAC,OAAA,IAAAC,UAAA,IAAAC,WAAA,IAAAC,OAAA,IAAAC,QAAA,IAAAC,OAAA,IAAAC,UAAA,SAAAb,EAC9D,G"}
@@ -1,2 +0,0 @@
1
- System.register(["./p-266b2cee.system.js","./p-93f67955.system.js","./p-72c0f5b2.system.js","./p-1d5148b1.system.js"],(function(e){"use strict";var t,r,i,n,o,s,a,l,c,h,d;return{setters:[function(e){t=e.r;r=e.c;i=e.h;n=e.H;o=e.g},function(e){s=e.t},function(e){a=e.s;l=e.o;c=e.r},function(e){h=e.f;d=e.h}],execute:function(){var p='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);font-family:"Roboto";color:var(--color-on-surface);overflow:hidden;line-height:initial;max-width:100vw;max-height:100vh}.app-container{position:relative;width:100%;height:100%;overflow:hidden}.header-container,.large-view-header-container{background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);height:64px}.header-container .arrow-back-container,.large-view-header-container .arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.header-container .arrow-back-container .arrow-back-icon,.large-view-header-container .arrow-back-container .arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:50%;height:48px;width:48px;padding:0px;text-align:left}.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.handle-search-filters-container .handle-search-container{width:calc(50% + 48px);max-width:220px}.handle-search-filters-container .handle-filters-button{margin-left:16px;-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}.handle-search-filters-container .handle-filters-button span{font-size:18px}.large-view-header-container .handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.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:scroll;padding-bottom:32px;max-height:calc(100% - 64px - 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)}.init-loader-container,.loader-container,.large-view-loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.init-loader-container .loader,.loader-container .loader,.large-view-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)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - 64px);background-color:var(--color-background)}.content-treks{height:calc(100% - 64px)}.content-trek{height:100%}.app-treks-list-container,.app-trek-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.map-visibility-button-container .map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:12px;height:56px;font-size:16px;width:unset}.map-visibility-button-container .map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button-container .map-visibility-button span{font-size:24px;margin-right:8px;color:var(--color-on-primary-container)}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}grw-treks-list{max-height:calc(100vh - 64px)}grw-trek-detail{max-height:calc(100vh - 64px - 48px)}.app-map-container{width:100%;position:absolute}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}.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{margin-bottom:64px}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}';var f=e("grw_app",function(){function e(e){t(this,e);this.resetFilter=r(this,"resetFilter",7);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTreksMap=false;this.showTrekMap=false;this.showFilters=false;this.isLargeView=false;this.selectedSegment="selectedActivitiesFilters";this.currentTrekId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.center=undefined;this.zoom=undefined;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.weather=false;this.colorPrimaryApp="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false}e.prototype.onTrekCardPress=function(e){var t=a.parentTrekId?a.parentTrekId:a.currentTrekSteps?this.currentTrekId:null;a.currentTrek=null;this.currentTrekId=e.detail;this.showTrek=true;this.showTrekMap=false;var r=new URL(window.location.toString());r.searchParams.set("trek",this.currentTrekId.toString());if(a.currentTrekSteps){r.searchParams.set("parentTrek",t.toString())}window.history.pushState({},"",r)};e.prototype.onWindowResize=function(){this.handleView()};e.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};e.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};e.prototype.componentWillLoad=function(){var e=new URL(window.location.toString());var t=e.searchParams.get("trek");var r=e.searchParams.get("parentTrek");if(t){window.history.replaceState({isInitialHistoryWithTrek:true},"",e);a.parentTrekId=r?Number(r):null;this.currentTrekId=Number(t);this.showTrek=!this.showTrek}};e.prototype.componentDidLoad=function(){var e=this;l("trekNetworkError",(function(){if(a.trekNetworkError){var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("parentTrek");window.history.replaceState({},"",t);e.onTrekDetailsClose()}}));window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};e.prototype.onTrekDetailsClose=function(){a.currentTrek=null;a.currentTrekSteps=null;a.parentTrekId=null;this.currentTrekId=null;this.showTrek=!this.showTrek};e.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showTreksMap=this.isLargeView;this.showTrekMap=this.isLargeView};e.prototype.handleFilters=function(){this.showFilters=!this.showFilters};e.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();var e=new URL(window.location.toString());e.searchParams.delete("trek");window.history.pushState({},"",e)}else{window.history.back()}};e.prototype.handlePopState=function(){var e=new URL(window.location.toString());var t=Number(e.searchParams.get("trek"));if(t&&this.currentTrekId!==t){a.currentTrek=null;this.currentTrekId=t;this.showTrek=true}else if(!t){this.onTrekDetailsClose()}};e.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else{this.showTreksMap=!this.showTreksMap}};e.prototype.handleEraseFilters=function(){h.forEach((function(e){a[e.property].forEach((function(e){return e.selected=false}))}));a.selectedActivitiesFilters=0;a.selectedThemesFilters=0;a.selectedLocationFilters=0;a.currentTreks=d();this.resetFilter.emit()};e.prototype.handleOkFilters=function(){this.handleFilters()};e.prototype.disconnectedCallback=function(){c();window.removeEventListener("popstate",this.handlePopStateBind)};e.prototype.handleSelectedSegment=function(e){this.selectedSegment=e};e.prototype.handleSegment=function(e){return h.filter((function(t){return t.segment===e})).some((function(e){return a[e.property]&&a[e.property].length>0}))};e.prototype.render=function(){var e=this;return i(n,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--app-width":this.appWidth,"--app-height":this.appHeight}},!a.currentTreks&&!a.currentTrek&&i("div",{class:"init-loader-container"},i("span",{class:"loader"})),!this.showTrek&&!a.treks&&i("grw-treks-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals,routes:this.routes,practices:this.practices}),this.showTrek&&this.currentTrekId&&!a.currentTrek&&i("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId}),(a.currentTreks||a.currentTrek)&&i("div",{class:"app-container"},i("div",{class:this.isLargeView?"large-view-header-container":"header-container"},!this.showTrek?i("div",{class:"handle-search-filters-container"},i("div",{class:"handle-search-container"},i("grw-search",null)),i("div",{class:"handle-filters-container"},i("button",{onClick:function(){return e.handleFilters()},class:"handle-filters-button"},i("span",{class:"material-symbols material-symbols-outlined margin-right-icon"},"filter_list"),s[a.language].filter))):i("div",{class:"arrow-back-container"},i("button",{onClick:function(){return e.handleBackButton()},class:"arrow-back-icon"},i("span",{class:"material-symbols material-symbols-outlined"},"arrow_back")))),i("div",{class:"content-container ".concat(this.showTrek?"content-trek":"content-treks")},i("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek?"none":"flex",position:this.showTrek?"absolute":"relative"}},i("grw-treks-list",{"reset-store-on-disconnected":"false","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.showTrek&&!a.currentTrek&&i("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},i("span",{class:"loader"})),a.currentTrek&&i("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},i("grw-trek-detail",{style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},"reset-store-on-disconnected":"false","color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView})),i("grw-map",{"reset-store-on-disconnected":"false",class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showTreksMap&&!this.showTrek||this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:this.showTrekMap?"1":"0"},center:this.center,zoom:this.zoom,"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-background":this.colorBackground,"color-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon,"is-large-view":this.isLargeView,"use-gradient":this.useGradient})),(!this.showTrek||this.showTrek&&a.currentTrek)&&i("div",{class:"map-visibility-button-container"},i("button",{onClick:function(){return e.handleShowMap()},class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},i("span",{class:"material-symbols material-symbols-outlined"},this.showTrek?this.showTrekMap?"summarize":"map":this.showTreksMap?"list":"map"),this.showTrek?this.showTrekMap?s[a.language].showDetails:s[a.language].showRoute:this.showTreksMap?s[a.language].showList:s[a.language].showMap))),!this.showTrek&&this.showFilters&&i("div",{class:"options-container"},i("div",{class:"filters-container"},i("div",{class:"filters-options-container"},a.treksWithinBounds&&i("div",{class:"current-treks-within-bounds-length"},"".concat(a.treksWithinBounds.length," ").concat(a.treksWithinBounds.length>1?s[a.language].treks:s[a.language].trek)),i("div",{class:"filters-options-buttons-container"},i("button",{class:"filter-option-button",onClick:function(){return e.handleEraseFilters()}},s[a.language].erase),i("button",{class:"filter-option-button",onClick:function(){return e.handleOkFilters()}},s[a.language].ok))),i("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},s[a.language].activities," ",a.selectedActivitiesFilters!==0&&"(".concat(a.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedThemesFilters")}},s[a.language].themes," ",a.selectedThemesFilters!==0&&"(".concat(a.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},s[a.language].location," ",a.selectedLocationFilters!==0&&"(".concat(a.selectedLocationFilters,")"))),i("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{class:"segment-container"},a["practices"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),a["difficulties"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),a["durations"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),a["lengths"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),a["elevations"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),a["routes"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),a["accessibilities"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),a["labels"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{class:"segment-container"},a["themes"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].themes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{class:"segment-container"},a["districts"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),a["cities"].length>0&&i("div",{class:"filter-container"},i("grw-filter",{filterName:s[a.language].cities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),i("div",{onClick:function(){return e.handleFilters()},class:"back-filters-container"})))};Object.defineProperty(e.prototype,"appElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return e}());f.style=p}}}));
2
- //# sourceMappingURL=p-1af71f11.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwAppCss","GrwApp","exports","this","largeViewSize","handlePopStateBind","handlePopState","bind","class_1","prototype","onTrekCardPress","event","parentTrek","state","parentTrekId","currentTrekSteps","currentTrekId","currentTrek","detail","showTrek","showTrekMap","url","URL","window","location","toString","searchParams","set","history","pushState","onWindowResize","handleView","onCenterOnMap","isLargeView","watchPropHandler","dispatchEvent","Event","componentWillLoad","trekParam","get","replaceState","isInitialHistoryWithTrek","Number","componentDidLoad","_this","onChange","trekNetworkError","urlRedirect","delete","onTrekDetailsClose","addEventListener","appElement","getBoundingClientRect","width","showTreksMap","handleFilters","showFilters","handleBackButton","back","handleShowMap","handleEraseFilters","filters","forEach","filter","property","currentFilter","selected","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","currentTreks","handleFiltersAndSearch","resetFilter","emit","handleOkFilters","disconnectedCallback","reset","removeEventListener","handleSelectedSegment","selectedSegment","handleSegment","segment","some","length","render","h","Host","style","colorPrimaryApp","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","appWidth","appHeight","class","treks","api","languages","inBbox","cities","districts","structures","themes","portals","routes","practices","onClick","translate","language","concat","display","position","visibility","zIndex","weather","center","zoom","nameLayer","urlLayer","attributionLayer","colorTrekLine","colorSensitiveArea","colorPoiIcon","useGradient","showDetails","showRoute","showList","showMap","treksWithinBounds","trek","erase","ok","activities","filterName","practice","filterType","filterNameProperty","difficulty","duration","elevation","accessibility"],"sources":["src/components/grw-app/grw-app.scss?tag=grw-app","src/components/grw-app/grw-app.tsx"],"sourcesContent":[".material-symbols {\n font-family: 'Material Symbols Outlined';\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\ngrw-app {\n display: block;\n position: relative;\n width: var(--app-width);\n height: var(--app-height);\n font-family: 'Roboto';\n color: var(--color-on-surface);\n overflow: hidden;\n line-height: initial;\n max-width: 100vw;\n max-height: 100vh;\n}\n\n.app-container {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.header-container,\n.large-view-header-container {\n background-color: var(--color-background);\n box-shadow: var(--elevation-2);\n height: 64px;\n .arrow-back-container {\n display: flex;\n align-items: center;\n height: 100%;\n margin: 0px 16px;\n .arrow-back-icon {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n color: var(--color-on-surface);\n border: none;\n background-color: var(--color-background);\n border-radius: 50%;\n height: 48px;\n width: 48px;\n padding: 0px;\n text-align: left;\n }\n }\n}\n\n.options-container {\n height: 100%;\n position: absolute;\n width: 100%;\n z-index: 1100;\n top: 0px;\n}\n\n.handle-search-filters-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0px 16px;\n height: 64px;\n\n .handle-search-container {\n width: calc(50% + 48px);\n max-width: 220px;\n }\n\n .handle-filters-button {\n margin-left: 16px;\n user-select: none;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border: none;\n background-color: var(--color-background);\n color: var(--color-on-surface);\n padding: 12px 24px;\n border-radius: 20px;\n box-sizing: border-box;\n position: relative;\n gap: 8px;\n white-space: nowrap;\n line-height: 20px;\n letter-spacing: 0.10000000149011612px;\n font-size: 14px;\n font-weight: 500;\n box-shadow: var(--elevation-1);\n transition: box-shadow 0.2s ease-in-out 0s;\n span {\n font-size: 18px;\n }\n }\n}\n\n.large-view-header-container {\n .handle-search-filters-container {\n justify-content: flex-start;\n }\n}\n\n.filters-container {\n background-color: var(--color-background);\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1100;\n .segmented-buttons-container {\n display: flex;\n justify-content: center;\n width: calc(100% - 32px);\n height: 40px;\n margin: 16px;\n border: 1px solid var(--color-outline);\n border-radius: 20px;\n line-height: 20px;\n .segment {\n cursor: pointer;\n user-select: none;\n font-size: 14px;\n font-weight: 500;\n -webkit-tap-highlight-color: transparent;\n color: var(--color-on-surface-variant);\n background-color: transparent;\n border-radius: 0px;\n min-width: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n &:first-child {\n border-top-left-radius: 20px;\n border-bottom-left-radius: 20px;\n }\n &:not(:last-child) {\n border-right: 1px solid var(--color-outline);\n }\n &:last-child {\n border-top-right-radius: 20px;\n border-bottom-right-radius: 20px;\n }\n }\n .selected-segment {\n color: var(--color-on-secondary-container);\n background-color: var(--color-secondary-container);\n }\n }\n}\n\n.filters-segment-container {\n overflow-y: scroll;\n padding-bottom: 32px;\n max-height: calc(100% - 64px - 32px);\n}\n\n.back-filters-container {\n background-color: rgba(0, 0, 0, 0.5);\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 1099;\n}\n\n.divider {\n margin: 16px;\n border-top: 1px solid var(--color-outline);\n}\n\n.init-loader-container,\n.loader-container,\n.large-view-loader-container {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n background-color: var(--color-background);\n .loader {\n width: 48px;\n height: 48px;\n border: 5px solid var(--color-primary-container);\n border-bottom-color: var(--color-on-primary-container);\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: rotation 1s linear infinite;\n }\n\n @keyframes rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n}\n\n.content-container {\n position: relative;\n display: flex;\n height: calc(100% - 64px);\n background-color: var(--color-background);\n}\n\n.content-treks {\n height: calc(100% - 64px);\n}\n\n.content-trek {\n height: 100%;\n}\n\n.app-treks-list-container,\n.app-trek-detail-container,\n.large-view-app-treks-list-container,\n.large-view-app-trek-detail-container {\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.app-map-container,\n.large-view-app-map-container {\n width: 100%;\n height: 100%;\n}\n\n.map-visibility-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n position: absolute;\n bottom: 24px;\n z-index: 4;\n .map-visibility-button {\n cursor: pointer;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border: none;\n text-decoration: none;\n padding: 16px;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n box-shadow: var(--elevation-1);\n border-radius: 12px;\n height: 56px;\n font-size: 16px;\n width: unset;\n &:hover {\n box-shadow: var(--elevation-4);\n }\n span {\n font-size: 24px;\n margin-right: 8px;\n color: var(--color-on-primary-container);\n }\n }\n}\n\n.init-loader-container,\n.loader-container {\n width: 100%;\n}\n\n.app-treks-list-container,\n.app-trek-detail-container {\n width: 100%;\n}\n\ngrw-treks-list {\n max-height: calc(100vh - 64px);\n}\n\ngrw-trek-detail {\n max-height: calc(100vh - 64px - 48px);\n}\n\n.app-map-container {\n width: 100%;\n position: absolute;\n}\n\n.large-view-loader-container {\n width: 50%;\n}\n\n.large-view-app-treks-list-container,\n.large-view-app-trek-detail-container {\n width: 50%;\n}\n\n.large-view-app-map-container {\n position: relative;\n width: 50%;\n}\n\n.filters-options-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 64px;\n margin: 0px 16px;\n .filters-options-buttons-container {\n display: flex;\n .filter-option-button {\n cursor: pointer;\n user-select: none;\n font-size: 14px;\n font-weight: 500;\n margin: 8px 0px 0px 8px;\n padding: 8px 16px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: var(--elevation-0);\n border: none;\n -webkit-tap-highlight-color: transparent;\n line-height: 20px;\n color: var(--color-primary);\n background-color: transparent;\n }\n }\n}\n\n.segment-container {\n margin-bottom: 64px;\n}\n\n.filter-container {\n &:not(:last-child) {\n &::after {\n content: '';\n display: block;\n margin: 16px;\n border-top: 1px solid var(--color-outline);\n }\n }\n}\n","import { Component, Host, h, Listen, State, Prop, Element, Watch, Event, EventEmitter } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state, { onChange, reset } from 'store/store';\nimport { filters, handleFiltersAndSearch } from 'utils/utils';\n\n@Component({\n tag: 'grw-app',\n styleUrls: ['grw-app.scss'],\n shadow: false,\n})\nexport class GrwApp {\n @Element() appElement: HTMLElement;\n @Event() resetFilter: EventEmitter;\n @State() showTrek = false;\n @State() showTreksMap = false;\n @State() showTrekMap = false;\n @State() showFilters = false;\n @State() isLargeView = false;\n @State() selectedSegment = 'selectedActivitiesFilters';\n @State() currentTrekId: number;\n @Prop() appWidth: string = '100%';\n @Prop() appHeight: string = '100vh';\n @Prop() api: string;\n @Prop() languages = 'fr';\n @Prop() inBbox: string;\n @Prop() cities: string;\n @Prop() districts: string;\n @Prop() structures: string;\n @Prop() themes: string;\n @Prop() portals: string;\n @Prop() routes: string;\n @Prop() practices: string;\n @Prop() center: string;\n @Prop() zoom: number;\n @Prop() nameLayer: string;\n @Prop() urlLayer: string;\n @Prop() attributionLayer: string;\n @Prop() weather = false;\n\n @Prop() colorPrimaryApp = '#6750a4';\n @Prop() colorOnPrimary = '#ffffff';\n @Prop() colorSurface = '#1c1b1f';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSurfaceVariant = '#fef7ff';\n @Prop() colorOnSurfaceVariant = '#1c1b1f';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorBackground = '#fef7ff';\n @Prop() colorSurfaceContainerHigh = '#ece6f0';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() fabBackgroundColor = '#eaddff';\n @Prop() fabColor = '#21005d';\n\n @Prop() colorTrekLine = '#6b0030';\n @Prop() colorSensitiveArea = '#4974a5';\n @Prop() colorPoiIcon = '#974c6e';\n @Prop() useGradient = false;\n\n largeViewSize = 1024;\n handlePopStateBind: (event: any) => void = this.handlePopState.bind(this);\n\n @Listen('trekCardPress', { target: 'window' })\n onTrekCardPress(event: CustomEvent<number>) {\n const parentTrek = state.parentTrekId ? state.parentTrekId : state.currentTrekSteps ? this.currentTrekId : null;\n state.currentTrek = null;\n this.currentTrekId = event.detail;\n this.showTrek = true;\n this.showTrekMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.set('trek', this.currentTrekId.toString());\n if (state.currentTrekSteps) {\n url.searchParams.set('parentTrek', parentTrek.toString());\n }\n window.history.pushState({}, '', url);\n }\n\n @Listen('resize', { target: 'window' })\n onWindowResize() {\n this.handleView();\n }\n\n @Listen('centerOnMap', { target: 'window' })\n onCenterOnMap() {\n if (!this.isLargeView) {\n this.showTrekMap = true;\n }\n }\n\n @Watch('isLargeView')\n watchPropHandler() {\n window.dispatchEvent(new window.Event('resize'));\n }\n\n componentWillLoad() {\n const url = new URL(window.location.toString());\n const trekParam = url.searchParams.get('trek');\n const parentTrekId = url.searchParams.get('parentTrek');\n if (trekParam) {\n window.history.replaceState({ isInitialHistoryWithTrek: true }, '', url);\n state.parentTrekId = parentTrekId ? Number(parentTrekId) : null;\n this.currentTrekId = Number(trekParam);\n this.showTrek = !this.showTrek;\n }\n }\n\n componentDidLoad() {\n onChange('trekNetworkError', () => {\n if (state.trekNetworkError) {\n const urlRedirect = new URL(window.location.toString());\n urlRedirect.searchParams.delete('trek');\n urlRedirect.searchParams.delete('parentTrek');\n window.history.replaceState({}, '', urlRedirect);\n this.onTrekDetailsClose();\n }\n });\n window.addEventListener('popstate', this.handlePopStateBind, false);\n this.handleView();\n }\n\n onTrekDetailsClose() {\n state.currentTrek = null;\n state.currentTrekSteps = null;\n state.parentTrekId = null;\n this.currentTrekId = null;\n this.showTrek = !this.showTrek;\n }\n\n handleView() {\n this.isLargeView = this.appElement.getBoundingClientRect().width >= this.largeViewSize;\n this.showTreksMap = this.isLargeView;\n this.showTrekMap = this.isLargeView;\n }\n\n handleFilters() {\n this.showFilters = !this.showFilters;\n }\n\n handleBackButton() {\n if (window.history.state && window.history.state.isInitialHistoryWithTrek) {\n this.onTrekDetailsClose();\n const url = new URL(window.location.toString());\n url.searchParams.delete('trek');\n window.history.pushState({}, '', url);\n } else {\n window.history.back();\n }\n }\n\n handlePopState() {\n const url = new URL(window.location.toString());\n const trekParam = Number(url.searchParams.get('trek'));\n if (trekParam && this.currentTrekId !== trekParam) {\n state.currentTrek = null;\n this.currentTrekId = trekParam;\n this.showTrek = true;\n } else if (!trekParam) {\n this.onTrekDetailsClose();\n }\n }\n\n handleShowMap() {\n if (this.currentTrekId) {\n this.showTrekMap = !this.showTrekMap;\n } else {\n this.showTreksMap = !this.showTreksMap;\n }\n }\n\n handleEraseFilters() {\n filters.forEach(filter => {\n state[filter.property].forEach(currentFilter => (currentFilter.selected = false));\n });\n state.selectedActivitiesFilters = 0;\n state.selectedThemesFilters = 0;\n state.selectedLocationFilters = 0;\n state.currentTreks = handleFiltersAndSearch();\n this.resetFilter.emit();\n }\n\n handleOkFilters() {\n this.handleFilters();\n }\n\n disconnectedCallback() {\n reset();\n window.removeEventListener('popstate', this.handlePopStateBind);\n }\n\n handleSelectedSegment(selectedSegment) {\n this.selectedSegment = selectedSegment;\n }\n\n handleSegment(segment) {\n return filters.filter(filter => filter.segment === segment).some(filter => state[filter.property] && state[filter.property].length > 0);\n }\n\n render() {\n return (\n <Host\n style={{\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-primary': this.colorOnPrimary,\n '--color-surface': this.colorSurface,\n '--color-on-surface': this.colorOnSurface,\n '--color-surface-variant': this.colorSurfaceVariant,\n '--color-on-surface-variant': this.colorOnSurfaceVariant,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-background': this.colorBackground,\n '--color-surface-container-high': this.colorSurfaceContainerHigh,\n '--color-surface-container-low': this.colorSurfaceContainerLow,\n '--fab-background-color': this.fabBackgroundColor,\n '--fab-color': this.fabColor,\n '--app-width': this.appWidth,\n '--app-height': this.appHeight,\n }}\n >\n {!state.currentTreks && !state.currentTrek && (\n <div class=\"init-loader-container\">\n <span class=\"loader\"></span>\n </div>\n )}\n {!this.showTrek && !state.treks && (\n <grw-treks-provider\n api={this.api}\n languages={this.languages}\n in-bbox={this.inBbox}\n cities={this.cities}\n districts={this.districts}\n structures={this.structures}\n themes={this.themes}\n portals={this.portals}\n routes={this.routes}\n practices={this.practices}\n ></grw-treks-provider>\n )}\n {this.showTrek && this.currentTrekId && !state.currentTrek && (\n <grw-trek-provider api={this.api} languages={this.languages} trek-id={this.currentTrekId}></grw-trek-provider>\n )}\n {(state.currentTreks || state.currentTrek) && (\n <div class=\"app-container\">\n <div class={this.isLargeView ? 'large-view-header-container' : 'header-container'}>\n {!this.showTrek ? (\n <div class=\"handle-search-filters-container\">\n <div class=\"handle-search-container\">\n <grw-search></grw-search>\n </div>\n <div class=\"handle-filters-container\">\n <button onClick={() => this.handleFilters()} class=\"handle-filters-button\">\n <span class=\"material-symbols material-symbols-outlined margin-right-icon\">filter_list</span>\n {translate[state.language].filter}\n </button>\n </div>\n </div>\n ) : (\n <div class=\"arrow-back-container\">\n <button onClick={() => this.handleBackButton()} class=\"arrow-back-icon\">\n <span class=\"material-symbols material-symbols-outlined\">arrow_back</span>\n </button>\n </div>\n )}\n </div>\n\n <div class={`content-container ${this.showTrek ? 'content-trek' : 'content-treks'}`}>\n <div\n class={this.isLargeView ? 'large-view-app-treks-list-container' : 'app-treks-list-container'}\n style={{ display: this.showTrek ? 'none' : 'flex', position: this.showTrek ? 'absolute' : 'relative' }}\n >\n <grw-treks-list\n reset-store-on-disconnected=\"false\"\n is-large-view={this.isLargeView}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n ></grw-treks-list>\n </div>\n {this.showTrek && !state.currentTrek && (\n <div class={this.isLargeView ? 'large-view-loader-container' : 'loader-container'}>\n <span class=\"loader\"></span>\n </div>\n )}\n {state.currentTrek && (\n <div class={this.isLargeView ? 'large-view-app-trek-detail-container' : 'app-trek-detail-container'}>\n <grw-trek-detail\n style={{\n visibility: (!this.showTrekMap && this.showTrek) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTrekMap ? '1' : '0',\n }}\n reset-store-on-disconnected=\"false\"\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n weather={this.weather}\n is-large-view={this.isLargeView}\n ></grw-trek-detail>\n </div>\n )}\n <grw-map\n reset-store-on-disconnected=\"false\"\n class={this.isLargeView ? 'large-view-app-map-container' : 'app-map-container'}\n style={{\n visibility: (this.showTreksMap && !this.showTrek) || (this.showTrekMap && this.showTrek) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: this.showTrekMap ? '1' : '0',\n }}\n center={this.center}\n zoom={this.zoom}\n name-layer={this.nameLayer}\n url-layer={this.urlLayer}\n attribution-layer={this.attributionLayer}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-background={this.colorBackground}\n color-trek-line={this.colorTrekLine}\n color-sensitive-area={this.colorSensitiveArea}\n color-poi-icon={this.colorPoiIcon}\n is-large-view={this.isLargeView}\n use-gradient={this.useGradient}\n ></grw-map>\n </div>\n {(!this.showTrek || (this.showTrek && state.currentTrek)) && (\n <div class=\"map-visibility-button-container\">\n <button onClick={() => this.handleShowMap()} class=\"map-visibility-button\" style={{ display: this.isLargeView ? 'none' : 'flex' }}>\n <span class=\"material-symbols material-symbols-outlined\">{this.showTrek ? (this.showTrekMap ? 'summarize' : 'map') : this.showTreksMap ? 'list' : 'map'}</span>\n {this.showTrek\n ? this.showTrekMap\n ? translate[state.language].showDetails\n : translate[state.language].showRoute\n : this.showTreksMap\n ? translate[state.language].showList\n : translate[state.language].showMap}\n </button>\n </div>\n )}\n </div>\n )}\n {!this.showTrek && this.showFilters && (\n <div class=\"options-container\">\n <div class=\"filters-container\">\n <div class=\"filters-options-container\">\n {state.treksWithinBounds && (\n <div class=\"current-treks-within-bounds-length\">{`${state.treksWithinBounds.length} ${\n state.treksWithinBounds.length > 1 ? translate[state.language].treks : translate[state.language].trek\n }`}</div>\n )}\n <div class=\"filters-options-buttons-container\">\n <button class=\"filter-option-button\" onClick={() => this.handleEraseFilters()}>\n {translate[state.language].erase}\n </button>\n <button class=\"filter-option-button\" onClick={() => this.handleOkFilters()}>\n {translate[state.language].ok}\n </button>\n </div>\n </div>\n <div class=\"segmented-buttons-container\">\n {this.handleSegment('selectedActivitiesFilters') && (\n <label\n class={`segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`}\n onClick={() => this.handleSelectedSegment('selectedActivitiesFilters')}\n >\n {translate[state.language].activities} {state.selectedActivitiesFilters !== 0 && `(${state.selectedActivitiesFilters})`}\n </label>\n )}\n {this.handleSegment('selectedThemesFilters') && (\n <label\n class={`segment${this.selectedSegment === 'selectedThemesFilters' ? ' selected-segment' : ''}`}\n onClick={() => this.handleSelectedSegment('selectedThemesFilters')}\n >\n {translate[state.language].themes} {state.selectedThemesFilters !== 0 && `(${state.selectedThemesFilters})`}\n </label>\n )}\n {this.handleSegment('selectedLocationFilters') && (\n <label\n class={`segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`}\n onClick={() => this.handleSelectedSegment('selectedLocationFilters')}\n >\n {translate[state.language].location} {state.selectedLocationFilters !== 0 && `(${state.selectedLocationFilters})`}\n </label>\n )}\n </div>\n <div class=\"filters-segment-container\">\n {this.selectedSegment === 'selectedActivitiesFilters' && (\n <div class=\"segment-container\">\n {state['practices'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter\n filterName={translate[state.language].practice}\n filterType=\"practices\"\n filterNameProperty=\"name\"\n segment=\"selectedActivitiesFilters\"\n ></grw-filter>\n </div>\n )}\n {state['difficulties'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter\n filterName={translate[state.language].difficulty}\n filterType=\"difficulties\"\n filterNameProperty=\"label\"\n segment=\"selectedActivitiesFilters\"\n ></grw-filter>\n </div>\n )}\n {state['durations'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter\n filterName={translate[state.language].duration}\n filterType=\"durations\"\n filterNameProperty=\"name\"\n segment=\"selectedActivitiesFilters\"\n ></grw-filter>\n </div>\n )}\n {state['lengths'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter filterName={translate[state.language].length} filterType=\"lengths\" filterNameProperty=\"name\" segment=\"selectedActivitiesFilters\"></grw-filter>\n </div>\n )}\n {state['elevations'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter\n filterName={translate[state.language].elevation}\n filterType=\"elevations\"\n filterNameProperty=\"name\"\n segment=\"selectedActivitiesFilters\"\n ></grw-filter>\n </div>\n )}\n {state['routes'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter filterName={translate[state.language].routes} filterType=\"routes\" filterNameProperty=\"route\" segment=\"selectedActivitiesFilters\"></grw-filter>\n </div>\n )}\n {state['accessibilities'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter\n filterName={translate[state.language].accessibility}\n filterType=\"accessibilities\"\n filterNameProperty=\"name\"\n segment=\"selectedActivitiesFilters\"\n ></grw-filter>\n </div>\n )}\n {state['labels'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter\n filterName={translate[state.language].activities}\n filterType=\"labels\"\n filterNameProperty=\"name\"\n segment=\"selectedActivitiesFilters\"\n ></grw-filter>\n </div>\n )}\n </div>\n )}\n {this.selectedSegment === 'selectedThemesFilters' && (\n <div class=\"segment-container\">\n {state['themes'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter filterName={translate[state.language].themes} filterType=\"themes\" filterNameProperty=\"label\" segment=\"selectedThemesFilters\"></grw-filter>\n </div>\n )}\n </div>\n )}\n {this.selectedSegment === 'selectedLocationFilters' && (\n <div class=\"segment-container\">\n {state['districts'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter\n filterName={translate[state.language].districts}\n filterType=\"districts\"\n filterNameProperty=\"name\"\n segment=\"selectedLocationFilters\"\n ></grw-filter>\n </div>\n )}\n {state['cities'].length > 0 && (\n <div class=\"filter-container\">\n <grw-filter filterName={translate[state.language].cities} filterType=\"cities\" filterNameProperty=\"name\" segment=\"selectedLocationFilters\"></grw-filter>\n </div>\n )}\n </div>\n )}\n </div>\n </div>\n <div onClick={() => this.handleFilters()} class=\"back-filters-container\"></div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"oUAAA,IAAMA,EAAY,mhQ,ICULC,EAAMC,EAAA,qB,iEAkDjBC,KAAAC,cAAgB,KAChBD,KAAAE,mBAA2CF,KAAKG,eAAeC,KAAKJ,M,cAhDhD,M,kBACI,M,iBACD,M,iBACA,M,iBACA,M,qBACI,4B,2CAEA,O,eACC,Q,kCAER,K,mUAcF,M,qBAEQ,U,oBACD,U,kBACF,U,oBACE,U,yBACK,U,2BACE,U,2BACA,U,6BACE,U,6BACA,U,+BACE,U,qBACV,U,+BACU,U,8BACD,U,wBACN,U,c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UACtCmC,WAAW,YACXC,mBAAmB,OACnBlE,QAAQ,6BAIbpE,EAAM,UAAUsE,OAAS,GACxBE,EAAA,OAAKoB,MAAM,oBACTpB,EAAA,cAAY2D,WAAY1B,EAAUzG,EAAM0G,UAAUT,OAAQoC,WAAW,SAASC,mBAAmB,OAAOlE,QAAQ,gCAO5HI,EAAA,OAAKgC,QAAS,WAAM,OAAAzE,EAAKW,eAAL,EAAsBkD,MAAM,4B,iQAvezC,I"}
@@ -1,2 +0,0 @@
1
- import{e,f as t}from"./p-b4e1f9ae.js";const n=(e,t,n)=>{const s=e.get(t);if(!s){e.set(t,[n])}else if(!s.includes(n)){s.push(n)}};const s=(e,t)=>{let n;return(...s)=>{if(n){clearTimeout(n)}n=setTimeout((()=>{n=0;e(...s)}),t)}};const r=e=>!("isConnected"in e)||e.isConnected;const l=s((e=>{for(let t of e.keys()){e.set(t,e.get(t).filter(r))}}),2e3);const o=()=>{if(typeof e!=="function"){return{}}const s=new Map;return{dispose:()=>s.clear(),get:t=>{const r=e();if(r){n(s,t,r)}},set:e=>{const n=s.get(e);if(n){s.set(e,n.filter(t))}l(s)},reset:()=>{s.forEach((e=>e.forEach(t)));l(s)}}};const u=e=>typeof e==="function"?e():e;const c=(e,t=((e,t)=>e!==t))=>{const n=u(e);let s=new Map(Object.entries(n!==null&&n!==void 0?n:{}));const r={dispose:[],get:[],set:[],reset:[]};const l=()=>{var t;s=new Map(Object.entries((t=u(e))!==null&&t!==void 0?t:{}));r.reset.forEach((e=>e()))};const o=()=>{r.dispose.forEach((e=>e()));l()};const c=e=>{r.get.forEach((t=>t(e)));return s.get(e)};const a=(e,n)=>{const l=s.get(e);if(t(n,l,e)){s.set(e,n);r.set.forEach((t=>t(e,n,l)))}};const f=typeof Proxy==="undefined"?{}:new Proxy(n,{get(e,t){return c(t)},ownKeys(e){return Array.from(s.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(e,t){return s.has(t)},set(e,t,n){a(t,n);return true}});const p=(e,t)=>{r[e].push(t);return()=>{i(r[e],t)}};const d=(t,n)=>{const s=p("set",((e,s)=>{if(e===t){n(s)}}));const r=p("reset",(()=>n(u(e)[t])));return()=>{s();r()}};const g=(...e)=>{const t=e.reduce(((e,t)=>{if(t.set){e.push(p("set",t.set))}if(t.get){e.push(p("get",t.get))}if(t.reset){e.push(p("reset",t.reset))}if(t.dispose){e.push(p("dispose",t.dispose))}return e}),[]);return()=>t.forEach((e=>e()))};const k=e=>{const t=s.get(e);r.set.forEach((n=>n(e,t,t)))};return{state:f,get:c,set:a,on:p,onChange:d,use:g,dispose:o,reset:l,forceUpdate:k}};const i=(e,t)=>{const n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};const a=(e,t)=>{const n=c(e,t);n.use(o());return n};const{state:f,onChange:p,reset:d}=a({api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapTreksBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:null,durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,treksNetworkError:false,trekNetworkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null});export{p as o,d as r,f as s};
2
- //# sourceMappingURL=p-24e866b5.js.map