@geotrekce/geotrek-rando-widget 0.3.6 → 0.4.0

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 (605) hide show
  1. package/dist/cjs/{css-shim-541cb78a.js → css-shim-68410b74.js} +2 -2
  2. package/dist/cjs/css-shim-68410b74.js.br +0 -0
  3. package/dist/cjs/css-shim-68410b74.js.gz +0 -0
  4. package/dist/cjs/{css-shim-541cb78a.js.map → css-shim-68410b74.js.map} +1 -1
  5. package/dist/cjs/{dom-7f26de17.js → dom-225fc508.js} +2 -2
  6. package/dist/cjs/dom-225fc508.js.br +0 -0
  7. package/dist/cjs/dom-225fc508.js.gz +0 -0
  8. package/dist/cjs/{dom-7f26de17.js.map → dom-225fc508.js.map} +1 -1
  9. package/dist/cjs/geotrek-rando-widget.cjs.js +4 -4
  10. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  11. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  12. package/dist/cjs/geotrek-rando-widget.cjs.js.map +1 -1
  13. package/dist/cjs/grw-app.cjs.entry.js +178 -31
  14. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  15. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  16. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  17. package/dist/cjs/grw-filter.cjs.entry.js +60 -11
  18. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  19. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/grw-filter.cjs.entry.js.map +1 -1
  21. package/dist/cjs/{grw-filters_7.cjs.entry.js → grw-filters_12.cjs.entry.js} +836 -54
  22. package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
  23. package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/grw-filters_12.cjs.entry.js.map +1 -0
  25. package/dist/cjs/grw-information-desk_6.cjs.entry.js +294 -0
  26. package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
  27. package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
  28. package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -0
  29. package/dist/cjs/grw-select-language.cjs.entry.js +2 -2
  30. package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
  31. package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +62 -0
  33. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
  34. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
  35. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +1 -0
  36. package/dist/cjs/{i18n-691abc83.js → i18n-cfc000c9.js} +51 -9
  37. package/dist/cjs/i18n-cfc000c9.js.br +0 -0
  38. package/dist/cjs/i18n-cfc000c9.js.gz +0 -0
  39. package/dist/cjs/i18n-cfc000c9.js.map +1 -0
  40. package/dist/cjs/{index-37f5c77b.js → index-9e4fe3f0.js} +2 -2
  41. package/dist/cjs/index-9e4fe3f0.js.br +0 -0
  42. package/dist/cjs/index-9e4fe3f0.js.gz +0 -0
  43. package/dist/cjs/{index-37f5c77b.js.map → index-9e4fe3f0.js.map} +1 -1
  44. package/dist/cjs/loader.cjs.js +4 -4
  45. package/dist/cjs/loader.cjs.js.br +0 -0
  46. package/dist/cjs/loader.cjs.js.gz +0 -0
  47. package/dist/cjs/loader.cjs.js.map +1 -1
  48. package/dist/cjs/{shadow-css-2e025b8c.js → shadow-css-3c339190.js} +2 -2
  49. package/dist/cjs/shadow-css-3c339190.js.br +0 -0
  50. package/dist/cjs/shadow-css-3c339190.js.gz +0 -0
  51. package/dist/cjs/{shadow-css-2e025b8c.js.map → shadow-css-3c339190.js.map} +1 -1
  52. package/dist/cjs/{store-a36efc0f.js → store-d20ae78f.js} +12 -3
  53. package/dist/cjs/store-d20ae78f.js.br +0 -0
  54. package/dist/cjs/store-d20ae78f.js.gz +0 -0
  55. package/dist/cjs/store-d20ae78f.js.map +1 -0
  56. package/dist/cjs/{utils-151d3b05.js → utils-332e41b3.js} +83 -7
  57. package/dist/cjs/utils-332e41b3.js.br +0 -0
  58. package/dist/cjs/utils-332e41b3.js.gz +0 -0
  59. package/dist/cjs/utils-332e41b3.js.map +1 -0
  60. package/dist/collection/collection-manifest.json +9 -2
  61. package/dist/collection/components/grw-app/grw-app.css +61 -7
  62. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  63. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  64. package/dist/collection/components/grw-app/grw-app.js +248 -29
  65. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  66. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  67. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  68. package/dist/collection/components/grw-filter/grw-filter.css +75 -0
  69. package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
  70. package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
  71. package/dist/collection/components/grw-filter/grw-filter.js +73 -8
  72. package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
  73. package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
  74. package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
  75. package/dist/collection/components/grw-filters/grw-filters.css +12 -4
  76. package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
  77. package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
  78. package/dist/collection/components/grw-filters/grw-filters.js +24 -7
  79. package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
  80. package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
  81. package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
  82. package/dist/collection/components/grw-map/grw-map.css +142 -14
  83. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  84. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  85. package/dist/collection/components/grw-map/grw-map.js +474 -30
  86. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  87. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  88. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  89. package/dist/collection/components/grw-search/grw-search.js +7 -2
  90. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  91. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  92. package/dist/collection/components/grw-search/grw-search.js.map +1 -1
  93. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css +671 -0
  94. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.br +0 -0
  95. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.gz +0 -0
  96. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js +201 -0
  97. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js.br +0 -0
  98. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js.gz +0 -0
  99. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js.map +1 -0
  100. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css +691 -0
  101. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css.br +0 -0
  102. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css.gz +0 -0
  103. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +244 -0
  104. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  105. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  106. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -0
  107. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css +43 -0
  108. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css.br +0 -0
  109. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css.gz +0 -0
  110. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js +220 -0
  111. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.br +0 -0
  112. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.gz +0 -0
  113. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.map +1 -0
  114. package/dist/collection/components/{grw-touristic-content/grw-touristic-content.css → grw-touristic-event/grw-touristic-event-card.css} +43 -12
  115. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.br +0 -0
  116. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.gz +0 -0
  117. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js +102 -0
  118. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.br +0 -0
  119. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.gz +0 -0
  120. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.map +1 -0
  121. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css +691 -0
  122. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.br +0 -0
  123. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.gz +0 -0
  124. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +242 -0
  125. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  126. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  127. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -0
  128. package/dist/collection/components/grw-trek-card/grw-trek-card.css +1 -0
  129. package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
  130. package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
  131. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +20 -6
  132. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  133. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  134. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +50 -5
  135. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  136. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  137. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  138. package/dist/collection/components/grw-treks-list/grw-treks-list.css +7 -0
  139. package/dist/collection/components/grw-treks-list/grw-treks-list.css.br +0 -0
  140. package/dist/collection/components/grw-treks-list/grw-treks-list.css.gz +0 -0
  141. package/dist/collection/components/grw-treks-list/grw-treks-list.js +1 -1
  142. package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
  143. package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
  144. package/dist/collection/components/grw-treks-list/grw-treks-list.js.map +1 -1
  145. package/dist/collection/i18n/i18n.js +50 -8
  146. package/dist/collection/i18n/i18n.js.br +0 -0
  147. package/dist/collection/i18n/i18n.js.gz +0 -0
  148. package/dist/collection/i18n/i18n.js.map +1 -1
  149. package/dist/collection/store/grw-touristic-content-provider.js +111 -0
  150. package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
  151. package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
  152. package/dist/collection/store/grw-touristic-content-provider.js.map +1 -0
  153. package/dist/collection/store/grw-touristic-contents-provider.js +117 -0
  154. package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
  155. package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
  156. package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -0
  157. package/dist/collection/store/grw-touristic-event-provider.js +111 -0
  158. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  159. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  160. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -0
  161. package/dist/collection/store/grw-trek-provider.js +11 -3
  162. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  163. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  164. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  165. package/dist/collection/store/store.js +10 -1
  166. package/dist/collection/store/store.js.br +0 -0
  167. package/dist/collection/store/store.js.gz +0 -0
  168. package/dist/collection/store/store.js.map +1 -1
  169. package/dist/collection/stories/App.js +2 -2
  170. package/dist/collection/stories/App.js.br +0 -0
  171. package/dist/collection/stories/App.js.gz +0 -0
  172. package/dist/collection/stories/App.stories.js +1 -1
  173. package/dist/collection/stories/App.stories.js.br +0 -0
  174. package/dist/collection/stories/App.stories.js.gz +0 -0
  175. package/dist/collection/stories/TrekCard.js +2 -2
  176. package/dist/collection/stories/TrekCard.js.br +0 -0
  177. package/dist/collection/stories/TrekCard.js.gz +0 -0
  178. package/dist/collection/stories/TrekCard.stories.js +1 -1
  179. package/dist/collection/stories/TrekCard.stories.js.br +0 -0
  180. package/dist/collection/stories/TrekCard.stories.js.gz +0 -0
  181. package/dist/collection/stories/TrekDetail.js +2 -2
  182. package/dist/collection/stories/TrekDetail.js.br +0 -0
  183. package/dist/collection/stories/TrekDetail.js.gz +0 -0
  184. package/dist/collection/stories/TrekDetail.stories.js +1 -1
  185. package/dist/collection/stories/TrekDetail.stories.js.br +0 -0
  186. package/dist/collection/stories/TrekDetail.stories.js.gz +0 -0
  187. package/dist/collection/stories/TreksList.js +2 -2
  188. package/dist/collection/stories/TreksList.js.br +0 -0
  189. package/dist/collection/stories/TreksList.js.gz +0 -0
  190. package/dist/collection/stories/TreksList.stories.js +1 -1
  191. package/dist/collection/stories/TreksList.stories.js.br +0 -0
  192. package/dist/collection/stories/TreksList.stories.js.gz +0 -0
  193. package/dist/collection/types/types.js.map +1 -1
  194. package/dist/collection/utils/utils.js +77 -3
  195. package/dist/collection/utils/utils.js.br +0 -0
  196. package/dist/collection/utils/utils.js.gz +0 -0
  197. package/dist/collection/utils/utils.js.map +1 -1
  198. package/dist/esm/{css-shim-8cc70a22.js → css-shim-fa54d62f.js} +2 -2
  199. package/dist/esm/css-shim-fa54d62f.js.br +0 -0
  200. package/dist/esm/css-shim-fa54d62f.js.gz +0 -0
  201. package/dist/esm/{css-shim-8cc70a22.js.map → css-shim-fa54d62f.js.map} +1 -1
  202. package/dist/esm/{dom-60e3e2ad.js → dom-8de30773.js} +2 -2
  203. package/dist/esm/dom-8de30773.js.br +0 -0
  204. package/dist/esm/dom-8de30773.js.gz +0 -0
  205. package/dist/esm/{dom-60e3e2ad.js.map → dom-8de30773.js.map} +1 -1
  206. package/dist/esm/geotrek-rando-widget.js +5 -5
  207. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  208. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  209. package/dist/esm/geotrek-rando-widget.js.map +1 -1
  210. package/dist/esm/grw-app.entry.js +178 -31
  211. package/dist/esm/grw-app.entry.js.br +0 -0
  212. package/dist/esm/grw-app.entry.js.gz +0 -0
  213. package/dist/esm/grw-app.entry.js.map +1 -1
  214. package/dist/esm/grw-filter.entry.js +60 -11
  215. package/dist/esm/grw-filter.entry.js.br +0 -0
  216. package/dist/esm/grw-filter.entry.js.gz +0 -0
  217. package/dist/esm/grw-filter.entry.js.map +1 -1
  218. package/dist/esm/{grw-filters_7.entry.js → grw-filters_12.entry.js} +832 -55
  219. package/dist/esm/grw-filters_12.entry.js.br +0 -0
  220. package/dist/esm/grw-filters_12.entry.js.gz +0 -0
  221. package/dist/esm/grw-filters_12.entry.js.map +1 -0
  222. package/dist/esm/grw-information-desk_6.entry.js +285 -0
  223. package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
  224. package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
  225. package/dist/esm/grw-information-desk_6.entry.js.map +1 -0
  226. package/dist/esm/grw-select-language.entry.js +2 -2
  227. package/dist/esm/grw-select-language.entry.js.br +0 -0
  228. package/dist/esm/grw-select-language.entry.js.gz +0 -0
  229. package/dist/esm/grw-touristic-event-card-provider.entry.js +58 -0
  230. package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
  231. package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
  232. package/dist/esm/grw-touristic-event-card-provider.entry.js.map +1 -0
  233. package/dist/esm/{i18n-16a29f6f.js → i18n-60e9fdd3.js} +51 -9
  234. package/dist/esm/i18n-60e9fdd3.js.br +0 -0
  235. package/dist/esm/i18n-60e9fdd3.js.gz +0 -0
  236. package/dist/esm/i18n-60e9fdd3.js.map +1 -0
  237. package/dist/esm/{index-3bfebaa2.js → index-d5cacae4.js} +2 -2
  238. package/dist/esm/index-d5cacae4.js.br +0 -0
  239. package/dist/esm/{index-3bfebaa2.js.gz → index-d5cacae4.js.gz} +0 -0
  240. package/dist/esm/{index-3bfebaa2.js.map → index-d5cacae4.js.map} +1 -1
  241. package/dist/esm/loader.js +5 -5
  242. package/dist/esm/loader.js.br +0 -0
  243. package/dist/esm/loader.js.gz +0 -0
  244. package/dist/esm/loader.js.map +1 -1
  245. package/dist/esm/{shadow-css-19be24ee.js → shadow-css-af2290df.js} +2 -2
  246. package/dist/esm/shadow-css-af2290df.js.br +0 -0
  247. package/dist/esm/shadow-css-af2290df.js.gz +0 -0
  248. package/dist/esm/{shadow-css-19be24ee.js.map → shadow-css-af2290df.js.map} +1 -1
  249. package/dist/esm/{store-890ce35c.js → store-032ab1f5.js} +12 -3
  250. package/dist/esm/store-032ab1f5.js.br +0 -0
  251. package/dist/esm/store-032ab1f5.js.gz +0 -0
  252. package/dist/esm/store-032ab1f5.js.map +1 -0
  253. package/dist/esm/{utils-ffae4b0b.js → utils-b09ac7c9.js} +80 -6
  254. package/dist/esm/utils-b09ac7c9.js.br +0 -0
  255. package/dist/esm/utils-b09ac7c9.js.gz +0 -0
  256. package/dist/esm/utils-b09ac7c9.js.map +1 -0
  257. package/dist/esm-es5/{css-shim-8cc70a22.js → css-shim-fa54d62f.js} +1 -1
  258. package/dist/esm-es5/css-shim-fa54d62f.js.br +0 -0
  259. package/dist/esm-es5/css-shim-fa54d62f.js.gz +0 -0
  260. package/dist/esm-es5/{css-shim-8cc70a22.js.map → css-shim-fa54d62f.js.map} +1 -1
  261. package/dist/esm-es5/{dom-60e3e2ad.js → dom-8de30773.js} +1 -1
  262. package/dist/esm-es5/dom-8de30773.js.br +0 -0
  263. package/dist/esm-es5/dom-8de30773.js.gz +0 -0
  264. package/dist/esm-es5/{dom-60e3e2ad.js.map → dom-8de30773.js.map} +1 -1
  265. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  266. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  267. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  268. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  269. package/dist/esm-es5/grw-app.entry.js +1 -1
  270. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  271. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  272. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  273. package/dist/esm-es5/grw-filter.entry.js +2 -1
  274. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  275. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  276. package/dist/esm-es5/grw-filter.entry.js.map +1 -1
  277. package/dist/esm-es5/{grw-filters_7.entry.js → grw-filters_12.entry.js} +4 -4
  278. package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
  279. package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
  280. package/dist/esm-es5/grw-filters_12.entry.js.map +1 -0
  281. package/dist/esm-es5/grw-information-desk_6.entry.js +2 -0
  282. package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
  283. package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
  284. package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -0
  285. package/dist/esm-es5/grw-select-language.entry.js +1 -1
  286. package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
  287. package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
  288. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +2 -0
  289. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
  290. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
  291. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +1 -0
  292. package/dist/esm-es5/i18n-60e9fdd3.js +2 -0
  293. package/dist/esm-es5/i18n-60e9fdd3.js.br +0 -0
  294. package/dist/esm-es5/i18n-60e9fdd3.js.gz +0 -0
  295. package/dist/esm-es5/i18n-60e9fdd3.js.map +1 -0
  296. package/dist/esm-es5/{index-3bfebaa2.js → index-d5cacae4.js} +2 -2
  297. package/dist/esm-es5/index-d5cacae4.js.br +0 -0
  298. package/dist/esm-es5/{index-3bfebaa2.js.gz → index-d5cacae4.js.gz} +0 -0
  299. package/dist/esm-es5/{index-3bfebaa2.js.map → index-d5cacae4.js.map} +1 -1
  300. package/dist/esm-es5/loader.js +1 -1
  301. package/dist/esm-es5/loader.js.br +0 -0
  302. package/dist/esm-es5/loader.js.gz +0 -0
  303. package/dist/esm-es5/loader.js.map +1 -1
  304. package/dist/esm-es5/{shadow-css-19be24ee.js → shadow-css-af2290df.js} +1 -1
  305. package/dist/esm-es5/shadow-css-af2290df.js.br +0 -0
  306. package/dist/esm-es5/shadow-css-af2290df.js.gz +0 -0
  307. package/dist/esm-es5/{shadow-css-19be24ee.js.map → shadow-css-af2290df.js.map} +1 -1
  308. package/dist/esm-es5/store-032ab1f5.js +2 -0
  309. package/dist/esm-es5/store-032ab1f5.js.br +0 -0
  310. package/dist/esm-es5/store-032ab1f5.js.gz +0 -0
  311. package/dist/esm-es5/store-032ab1f5.js.map +1 -0
  312. package/dist/esm-es5/utils-b09ac7c9.js +2 -0
  313. package/dist/esm-es5/utils-b09ac7c9.js.br +0 -0
  314. package/dist/esm-es5/utils-b09ac7c9.js.gz +0 -0
  315. package/dist/esm-es5/utils-b09ac7c9.js.map +1 -0
  316. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  317. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  318. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  319. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  320. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
  321. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
  322. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
  323. package/dist/geotrek-rando-widget/{p-b5fc5b41.js → p-00cfef9b.js} +1 -1
  324. package/dist/geotrek-rando-widget/p-00cfef9b.js.br +0 -0
  325. package/dist/geotrek-rando-widget/p-00cfef9b.js.gz +0 -0
  326. package/dist/geotrek-rando-widget/{p-b5fc5b41.js.map → p-00cfef9b.js.map} +1 -1
  327. package/dist/geotrek-rando-widget/p-048b3a1e.js +2 -0
  328. package/dist/geotrek-rando-widget/p-048b3a1e.js.br +0 -0
  329. package/dist/geotrek-rando-widget/p-048b3a1e.js.gz +0 -0
  330. package/dist/geotrek-rando-widget/p-048b3a1e.js.map +1 -0
  331. package/dist/geotrek-rando-widget/{p-16f28b0e.js → p-0c07a3f0.js} +3 -3
  332. package/dist/geotrek-rando-widget/p-0c07a3f0.js.br +0 -0
  333. package/dist/geotrek-rando-widget/p-0c07a3f0.js.gz +0 -0
  334. package/dist/geotrek-rando-widget/{p-16f28b0e.js.map → p-0c07a3f0.js.map} +1 -1
  335. package/dist/geotrek-rando-widget/{p-7be13480.system.js → p-10ee2e5e.system.js} +2 -2
  336. package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.br +0 -0
  337. package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.gz +0 -0
  338. package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.map +1 -0
  339. package/dist/geotrek-rando-widget/{p-6f514bac.entry.js → p-1a0c7f72.entry.js} +2 -2
  340. package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.br +0 -0
  341. package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.gz +0 -0
  342. package/dist/geotrek-rando-widget/p-1f8e7e57.js +2 -0
  343. package/dist/geotrek-rando-widget/p-1f8e7e57.js.br +0 -0
  344. package/dist/geotrek-rando-widget/p-1f8e7e57.js.gz +0 -0
  345. package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +1 -0
  346. package/dist/geotrek-rando-widget/{p-15fed795.js → p-298a51a3.js} +1 -1
  347. package/dist/geotrek-rando-widget/p-298a51a3.js.br +0 -0
  348. package/dist/geotrek-rando-widget/p-298a51a3.js.gz +0 -0
  349. package/dist/geotrek-rando-widget/{p-15fed795.js.map → p-298a51a3.js.map} +1 -1
  350. package/dist/geotrek-rando-widget/p-388ecec9.entry.js +14 -0
  351. package/dist/geotrek-rando-widget/p-388ecec9.entry.js.br +0 -0
  352. package/dist/geotrek-rando-widget/p-388ecec9.entry.js.gz +0 -0
  353. package/dist/geotrek-rando-widget/p-388ecec9.entry.js.map +1 -0
  354. package/dist/geotrek-rando-widget/{p-0f28420f.js → p-50daca95.js} +1 -1
  355. package/dist/geotrek-rando-widget/p-50daca95.js.br +0 -0
  356. package/dist/geotrek-rando-widget/p-50daca95.js.gz +0 -0
  357. package/dist/geotrek-rando-widget/{p-0f28420f.js.map → p-50daca95.js.map} +1 -1
  358. package/dist/geotrek-rando-widget/p-790f5a62.entry.js +2 -0
  359. package/dist/geotrek-rando-widget/p-790f5a62.entry.js.br +0 -0
  360. package/dist/geotrek-rando-widget/p-790f5a62.entry.js.gz +0 -0
  361. package/dist/geotrek-rando-widget/p-790f5a62.entry.js.map +1 -0
  362. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js +2 -0
  363. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.br +0 -0
  364. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.gz +0 -0
  365. package/dist/geotrek-rando-widget/p-7ce01b3c.entry.js.map +1 -0
  366. package/dist/geotrek-rando-widget/p-7eca502d.js +2 -0
  367. package/dist/geotrek-rando-widget/p-7eca502d.js.br +0 -0
  368. package/dist/geotrek-rando-widget/p-7eca502d.js.gz +0 -0
  369. package/dist/geotrek-rando-widget/p-7eca502d.js.map +1 -0
  370. package/dist/geotrek-rando-widget/{p-d2da9a2e.system.entry.js → p-8d2cad32.system.entry.js} +2 -2
  371. package/dist/geotrek-rando-widget/p-8d2cad32.system.entry.js.br +0 -0
  372. package/dist/geotrek-rando-widget/p-8d2cad32.system.entry.js.gz +0 -0
  373. package/dist/geotrek-rando-widget/p-8d2cad32.system.entry.js.map +1 -0
  374. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js +2 -0
  375. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.br +0 -0
  376. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.gz +0 -0
  377. package/dist/geotrek-rando-widget/p-9bc873ce.system.entry.js.map +1 -0
  378. package/dist/geotrek-rando-widget/{p-7d5414a1.system.entry.js → p-9d562b29.system.entry.js} +2 -2
  379. package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.br +0 -0
  380. package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.gz +0 -0
  381. package/dist/geotrek-rando-widget/{p-634eaa8f.system.js → p-9f1ebb62.system.js} +1 -1
  382. package/dist/geotrek-rando-widget/p-9f1ebb62.system.js.br +0 -0
  383. package/dist/geotrek-rando-widget/p-9f1ebb62.system.js.gz +0 -0
  384. package/dist/geotrek-rando-widget/{p-634eaa8f.system.js.map → p-9f1ebb62.system.js.map} +1 -1
  385. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js +2 -0
  386. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.br +0 -0
  387. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.gz +0 -0
  388. package/dist/geotrek-rando-widget/p-b92fdd4e.system.js.map +1 -0
  389. package/dist/geotrek-rando-widget/p-b94b6924.system.entry.js +14 -0
  390. package/dist/geotrek-rando-widget/p-b94b6924.system.entry.js.br +0 -0
  391. package/dist/geotrek-rando-widget/p-b94b6924.system.entry.js.gz +0 -0
  392. package/dist/geotrek-rando-widget/p-b94b6924.system.entry.js.map +1 -0
  393. package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js +4 -0
  394. package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.br +0 -0
  395. package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.gz +0 -0
  396. package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.map +1 -0
  397. package/dist/geotrek-rando-widget/p-c63228e8.system.js +2 -0
  398. package/dist/geotrek-rando-widget/p-c63228e8.system.js.br +0 -0
  399. package/dist/geotrek-rando-widget/p-c63228e8.system.js.gz +0 -0
  400. package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +1 -0
  401. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +2 -0
  402. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
  403. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
  404. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -0
  405. package/dist/geotrek-rando-widget/{p-737a036f.entry.js → p-ccf92c36.entry.js} +2 -2
  406. package/dist/geotrek-rando-widget/p-ccf92c36.entry.js.br +0 -0
  407. package/dist/geotrek-rando-widget/p-ccf92c36.entry.js.gz +0 -0
  408. package/dist/geotrek-rando-widget/p-ccf92c36.entry.js.map +1 -0
  409. package/dist/geotrek-rando-widget/{p-3eaed9f9.system.js → p-d2c035bc.system.js} +2 -2
  410. package/dist/geotrek-rando-widget/p-d2c035bc.system.js.br +0 -0
  411. package/dist/geotrek-rando-widget/p-d2c035bc.system.js.gz +0 -0
  412. package/dist/geotrek-rando-widget/{p-3eaed9f9.system.js.map → p-d2c035bc.system.js.map} +1 -1
  413. package/dist/geotrek-rando-widget/p-da75716b.system.entry.js +2 -0
  414. package/dist/geotrek-rando-widget/p-da75716b.system.entry.js.br +0 -0
  415. package/dist/geotrek-rando-widget/p-da75716b.system.entry.js.gz +0 -0
  416. package/dist/geotrek-rando-widget/p-da75716b.system.entry.js.map +1 -0
  417. package/dist/geotrek-rando-widget/{p-63e651bf.system.js → p-f949c1ba.system.js} +1 -1
  418. package/dist/geotrek-rando-widget/p-f949c1ba.system.js.br +0 -0
  419. package/dist/geotrek-rando-widget/p-f949c1ba.system.js.gz +0 -0
  420. package/dist/geotrek-rando-widget/{p-63e651bf.system.js.map → p-f949c1ba.system.js.map} +1 -1
  421. package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js +3 -0
  422. package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.br +0 -0
  423. package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.gz +0 -0
  424. package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.map +1 -0
  425. package/dist/geotrek-rando-widget/{p-2a99981a.system.js → p-fe22d872.system.js} +1 -1
  426. package/dist/geotrek-rando-widget/p-fe22d872.system.js.br +0 -0
  427. package/dist/geotrek-rando-widget/p-fe22d872.system.js.gz +0 -0
  428. package/dist/geotrek-rando-widget/{p-2a99981a.system.js.map → p-fe22d872.system.js.map} +1 -1
  429. package/dist/types/components/grw-app/grw-app.d.ts +17 -2
  430. package/dist/types/components/grw-filter/grw-filter.d.ts +6 -0
  431. package/dist/types/components/grw-filters/grw-filters.d.ts +4 -2
  432. package/dist/types/components/grw-map/grw-map.d.ts +24 -2
  433. package/dist/types/components/grw-touristic-content/{grw-touristic-content.d.ts → grw-touristic-content-card.d.ts} +9 -1
  434. package/dist/types/components/grw-touristic-content-detail/grw-touristic-content-detail.d.ts +24 -0
  435. package/dist/types/components/grw-touristic-contents-list/grw-touristic-contents-list.d.ts +20 -0
  436. package/dist/types/components/grw-touristic-event/grw-touristic-event-card.d.ts +16 -0
  437. package/dist/types/components/grw-touristic-event-detail/grw-touristic-event-detail.d.ts +24 -0
  438. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +10 -1
  439. package/dist/types/components.d.ts +198 -11
  440. package/dist/types/i18n/i18n.d.ts +23 -2
  441. package/dist/types/store/grw-touristic-content-provider.d.ts +12 -0
  442. package/dist/types/store/grw-touristic-contents-provider.d.ts +12 -0
  443. package/dist/types/store/grw-touristic-event-provider.d.ts +12 -0
  444. package/dist/types/store/store.d.ts +21 -3
  445. package/dist/types/types/types.d.ts +50 -9
  446. package/dist/types/utils/utils.d.ts +5 -3
  447. package/package.json +2 -1
  448. package/dist/cjs/css-shim-541cb78a.js.br +0 -0
  449. package/dist/cjs/css-shim-541cb78a.js.gz +0 -0
  450. package/dist/cjs/dom-7f26de17.js.br +0 -0
  451. package/dist/cjs/dom-7f26de17.js.gz +0 -0
  452. package/dist/cjs/grw-filters_7.cjs.entry.js.br +0 -0
  453. package/dist/cjs/grw-filters_7.cjs.entry.js.gz +0 -0
  454. package/dist/cjs/grw-filters_7.cjs.entry.js.map +0 -1
  455. package/dist/cjs/grw-information-desk_5.cjs.entry.js +0 -227
  456. package/dist/cjs/grw-information-desk_5.cjs.entry.js.br +0 -0
  457. package/dist/cjs/grw-information-desk_5.cjs.entry.js.gz +0 -0
  458. package/dist/cjs/grw-information-desk_5.cjs.entry.js.map +0 -1
  459. package/dist/cjs/i18n-691abc83.js.br +0 -0
  460. package/dist/cjs/i18n-691abc83.js.gz +0 -0
  461. package/dist/cjs/i18n-691abc83.js.map +0 -1
  462. package/dist/cjs/index-37f5c77b.js.br +0 -0
  463. package/dist/cjs/index-37f5c77b.js.gz +0 -0
  464. package/dist/cjs/shadow-css-2e025b8c.js.br +0 -0
  465. package/dist/cjs/shadow-css-2e025b8c.js.gz +0 -0
  466. package/dist/cjs/store-a36efc0f.js.br +0 -0
  467. package/dist/cjs/store-a36efc0f.js.gz +0 -0
  468. package/dist/cjs/store-a36efc0f.js.map +0 -1
  469. package/dist/cjs/utils-151d3b05.js.br +0 -0
  470. package/dist/cjs/utils-151d3b05.js.gz +0 -0
  471. package/dist/cjs/utils-151d3b05.js.map +0 -1
  472. package/dist/collection/components/grw-touristic-content/grw-touristic-content.css.br +0 -0
  473. package/dist/collection/components/grw-touristic-content/grw-touristic-content.css.gz +0 -0
  474. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js +0 -84
  475. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.br +0 -0
  476. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.gz +0 -0
  477. package/dist/collection/components/grw-touristic-content/grw-touristic-content.js.map +0 -1
  478. package/dist/esm/css-shim-8cc70a22.js.br +0 -0
  479. package/dist/esm/css-shim-8cc70a22.js.gz +0 -0
  480. package/dist/esm/dom-60e3e2ad.js.br +0 -0
  481. package/dist/esm/dom-60e3e2ad.js.gz +0 -0
  482. package/dist/esm/grw-filters_7.entry.js.br +0 -0
  483. package/dist/esm/grw-filters_7.entry.js.gz +0 -0
  484. package/dist/esm/grw-filters_7.entry.js.map +0 -1
  485. package/dist/esm/grw-information-desk_5.entry.js +0 -219
  486. package/dist/esm/grw-information-desk_5.entry.js.br +0 -0
  487. package/dist/esm/grw-information-desk_5.entry.js.gz +0 -0
  488. package/dist/esm/grw-information-desk_5.entry.js.map +0 -1
  489. package/dist/esm/i18n-16a29f6f.js.br +0 -0
  490. package/dist/esm/i18n-16a29f6f.js.gz +0 -0
  491. package/dist/esm/i18n-16a29f6f.js.map +0 -1
  492. package/dist/esm/index-3bfebaa2.js.br +0 -0
  493. package/dist/esm/shadow-css-19be24ee.js.br +0 -0
  494. package/dist/esm/shadow-css-19be24ee.js.gz +0 -0
  495. package/dist/esm/store-890ce35c.js.br +0 -0
  496. package/dist/esm/store-890ce35c.js.gz +0 -0
  497. package/dist/esm/store-890ce35c.js.map +0 -1
  498. package/dist/esm/utils-ffae4b0b.js.br +0 -0
  499. package/dist/esm/utils-ffae4b0b.js.gz +0 -0
  500. package/dist/esm/utils-ffae4b0b.js.map +0 -1
  501. package/dist/esm-es5/css-shim-8cc70a22.js.br +0 -0
  502. package/dist/esm-es5/css-shim-8cc70a22.js.gz +0 -0
  503. package/dist/esm-es5/dom-60e3e2ad.js.br +0 -0
  504. package/dist/esm-es5/dom-60e3e2ad.js.gz +0 -0
  505. package/dist/esm-es5/grw-filters_7.entry.js.br +0 -0
  506. package/dist/esm-es5/grw-filters_7.entry.js.gz +0 -0
  507. package/dist/esm-es5/grw-filters_7.entry.js.map +0 -1
  508. package/dist/esm-es5/grw-information-desk_5.entry.js +0 -2
  509. package/dist/esm-es5/grw-information-desk_5.entry.js.br +0 -0
  510. package/dist/esm-es5/grw-information-desk_5.entry.js.gz +0 -0
  511. package/dist/esm-es5/grw-information-desk_5.entry.js.map +0 -1
  512. package/dist/esm-es5/i18n-16a29f6f.js +0 -2
  513. package/dist/esm-es5/i18n-16a29f6f.js.br +0 -0
  514. package/dist/esm-es5/i18n-16a29f6f.js.gz +0 -0
  515. package/dist/esm-es5/i18n-16a29f6f.js.map +0 -1
  516. package/dist/esm-es5/index-3bfebaa2.js.br +0 -0
  517. package/dist/esm-es5/shadow-css-19be24ee.js.br +0 -0
  518. package/dist/esm-es5/shadow-css-19be24ee.js.gz +0 -0
  519. package/dist/esm-es5/store-890ce35c.js +0 -2
  520. package/dist/esm-es5/store-890ce35c.js.br +0 -0
  521. package/dist/esm-es5/store-890ce35c.js.gz +0 -0
  522. package/dist/esm-es5/store-890ce35c.js.map +0 -1
  523. package/dist/esm-es5/utils-ffae4b0b.js +0 -2
  524. package/dist/esm-es5/utils-ffae4b0b.js.br +0 -0
  525. package/dist/esm-es5/utils-ffae4b0b.js.gz +0 -0
  526. package/dist/esm-es5/utils-ffae4b0b.js.map +0 -1
  527. package/dist/geotrek-rando-widget/p-0f28420f.js.br +0 -0
  528. package/dist/geotrek-rando-widget/p-0f28420f.js.gz +0 -0
  529. package/dist/geotrek-rando-widget/p-15fed795.js.br +0 -0
  530. package/dist/geotrek-rando-widget/p-15fed795.js.gz +0 -0
  531. package/dist/geotrek-rando-widget/p-16f28b0e.js.br +0 -0
  532. package/dist/geotrek-rando-widget/p-16f28b0e.js.gz +0 -0
  533. package/dist/geotrek-rando-widget/p-1db133d4.js +0 -2
  534. package/dist/geotrek-rando-widget/p-1db133d4.js.br +0 -0
  535. package/dist/geotrek-rando-widget/p-1db133d4.js.gz +0 -0
  536. package/dist/geotrek-rando-widget/p-1db133d4.js.map +0 -1
  537. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js +0 -14
  538. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js.br +0 -0
  539. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js.gz +0 -0
  540. package/dist/geotrek-rando-widget/p-265b4eea.system.entry.js.map +0 -1
  541. package/dist/geotrek-rando-widget/p-291b7192.system.js +0 -2
  542. package/dist/geotrek-rando-widget/p-291b7192.system.js.br +0 -0
  543. package/dist/geotrek-rando-widget/p-291b7192.system.js.gz +0 -0
  544. package/dist/geotrek-rando-widget/p-291b7192.system.js.map +0 -1
  545. package/dist/geotrek-rando-widget/p-2a99981a.system.js.br +0 -0
  546. package/dist/geotrek-rando-widget/p-2a99981a.system.js.gz +0 -0
  547. package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.br +0 -0
  548. package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.gz +0 -0
  549. package/dist/geotrek-rando-widget/p-47ba2866.js +0 -2
  550. package/dist/geotrek-rando-widget/p-47ba2866.js.br +0 -0
  551. package/dist/geotrek-rando-widget/p-47ba2866.js.gz +0 -0
  552. package/dist/geotrek-rando-widget/p-47ba2866.js.map +0 -1
  553. package/dist/geotrek-rando-widget/p-634eaa8f.system.js.br +0 -0
  554. package/dist/geotrek-rando-widget/p-634eaa8f.system.js.gz +0 -0
  555. package/dist/geotrek-rando-widget/p-63e651bf.system.js.br +0 -0
  556. package/dist/geotrek-rando-widget/p-63e651bf.system.js.gz +0 -0
  557. package/dist/geotrek-rando-widget/p-6f514bac.entry.js.br +0 -0
  558. package/dist/geotrek-rando-widget/p-6f514bac.entry.js.gz +0 -0
  559. package/dist/geotrek-rando-widget/p-737a036f.entry.js.br +0 -0
  560. package/dist/geotrek-rando-widget/p-737a036f.entry.js.gz +0 -0
  561. package/dist/geotrek-rando-widget/p-737a036f.entry.js.map +0 -1
  562. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js +0 -2
  563. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js.br +0 -0
  564. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js.gz +0 -0
  565. package/dist/geotrek-rando-widget/p-73bf5fea.entry.js.map +0 -1
  566. package/dist/geotrek-rando-widget/p-7be13480.system.js.br +0 -0
  567. package/dist/geotrek-rando-widget/p-7be13480.system.js.gz +0 -0
  568. package/dist/geotrek-rando-widget/p-7be13480.system.js.map +0 -1
  569. package/dist/geotrek-rando-widget/p-7d5414a1.system.entry.js.br +0 -0
  570. package/dist/geotrek-rando-widget/p-7d5414a1.system.entry.js.gz +0 -0
  571. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js +0 -2
  572. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js.br +0 -0
  573. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js.gz +0 -0
  574. package/dist/geotrek-rando-widget/p-953f1353.system.entry.js.map +0 -1
  575. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js +0 -2
  576. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js.br +0 -0
  577. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js.gz +0 -0
  578. package/dist/geotrek-rando-widget/p-a5cdfd75.system.entry.js.map +0 -1
  579. package/dist/geotrek-rando-widget/p-a7fa6233.system.js +0 -2
  580. package/dist/geotrek-rando-widget/p-a7fa6233.system.js.br +0 -0
  581. package/dist/geotrek-rando-widget/p-a7fa6233.system.js.gz +0 -0
  582. package/dist/geotrek-rando-widget/p-a7fa6233.system.js.map +0 -1
  583. package/dist/geotrek-rando-widget/p-b5fc5b41.js.br +0 -0
  584. package/dist/geotrek-rando-widget/p-b5fc5b41.js.gz +0 -0
  585. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js +0 -2
  586. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js.br +0 -0
  587. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js.gz +0 -0
  588. package/dist/geotrek-rando-widget/p-bdaae91a.entry.js.map +0 -1
  589. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js +0 -2
  590. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.br +0 -0
  591. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.gz +0 -0
  592. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.map +0 -1
  593. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js +0 -14
  594. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js.br +0 -0
  595. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js.gz +0 -0
  596. package/dist/geotrek-rando-widget/p-cdf7523f.entry.js.map +0 -1
  597. package/dist/geotrek-rando-widget/p-d2da9a2e.system.entry.js.br +0 -0
  598. package/dist/geotrek-rando-widget/p-d2da9a2e.system.entry.js.gz +0 -0
  599. package/dist/geotrek-rando-widget/p-d2da9a2e.system.entry.js.map +0 -1
  600. package/dist/geotrek-rando-widget/p-e653caed.js +0 -2
  601. package/dist/geotrek-rando-widget/p-e653caed.js.br +0 -0
  602. package/dist/geotrek-rando-widget/p-e653caed.js.gz +0 -0
  603. package/dist/geotrek-rando-widget/p-e653caed.js.map +0 -1
  604. /package/dist/geotrek-rando-widget/{p-6f514bac.entry.js.map → p-1a0c7f72.entry.js.map} +0 -0
  605. /package/dist/geotrek-rando-widget/{p-7d5414a1.system.entry.js.map → p-9d562b29.system.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- System.register([],(function(e){"use strict";return{execute:function(){var i=e("t",{fr:{filter:"Filtrer",practice:"Pratique",difficulty:"Difficulté",duration:"Durée",length:"Longueur",treks:"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")},touristicContents:function(e){return"À proximité (".concat(e,")")},sources:"Sources",cities:"Communes traversées",options:{presentation:"Présentation",description:"Description",recommendations:"Recommandations",environmentalSensitiveAreas:"Zones sensibles",informationPlaces:"Lieux d'informations",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité"},layers:{pointsReference:"Points de référence",parking:"Parking conseillé",sensitiveArea:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité"},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")},touristicContents:function(e){return"Near (".concat(e,")")},sources:"Sources",cities:"Cities crossed",options:{presentation:"Presentation",description:"Description",recommendations:"Recommendations",environmentalSensitiveAreas:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near"},layers:{pointsReference:"Reference points",parking:"Parking",sensitiveArea:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near"},themes:"Themes",routes:"Type of course",elevation:"Positive elevation",activities:"Activities",districts:"Districts",erase:"Erase",ok:"Ok",location:"Location",steps:"steps"}})}}}));
2
- //# sourceMappingURL=p-291b7192.system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["translate","exports","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","touristicContents","touristicContentsLength","sources","cities","options","presentation","steps","layers","pointsReference","parking","sensitiveArea","themes","routes","elevation","activities","districts","erase","ok","location","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 touristicContents: 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 steps: string;\n touristicContents: string;\n };\n layers: {\n pointsReference: string;\n parking: string;\n sensitiveArea: string;\n informationPlaces: string;\n pois: string;\n steps: string;\n touristicContents: 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 touristicContents: (touristicContentsLength: number) => `À proximité (${touristicContentsLength})`,\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 steps: 'Étapes',\n touristicContents: 'À proximité',\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 steps: 'Étapes',\n touristicContents: 'À proximité',\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 touristicContents: (touristicContentsLength: number) => `Near (${touristicContentsLength})`,\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 steps: 'Steps',\n touristicContents: 'Near',\n },\n layers: {\n pointsReference: 'Reference points',\n parking: 'Parking',\n sensitiveArea: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n steps: 'Steps',\n touristicContents: 'Near',\n },\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: 'ste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ZC,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,kBAAmB,SAACC,GAAoC,eAAAF,OAASE,EAAuB,IAAhC,EACxDC,QAAS,UACTC,OAAQ,iBACRC,QAAS,CACPC,aAAc,eACd3B,YAAa,cACbM,gBAAiB,kBACjBG,4BAA6B,kBAC7BC,kBAAmB,qBACnBS,KAAM,qBACNS,MAAO,QACPN,kBAAmB,QAErBO,OAAQ,CACNC,gBAAiB,mBACjBC,QAAS,UACTC,cAAe,kBACftB,kBAAmB,qBACnBS,KAAM,qBACNS,MAAO,QACPN,kBAAmB,QAErBW,OAAQ,SACRC,OAAQ,iBACRC,UAAW,qBACXC,WAAY,aACZC,UAAW,YACXC,MAAO,QACPC,GAAI,KACJC,SAAU,WACVZ,MAAO,U"}
@@ -1,2 +0,0 @@
1
- import{c as e,f as t}from"./p-16f28b0e.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,selectedStepId:null,touristicContents:null,touristicContentCategories:null});export{p as o,d as r,f as s};
2
- //# sourceMappingURL=p-47ba2866.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","clearTimeout","setTimeout","isConnected","maybeElement","cleanupElements","key","keys","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","length","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","selectedStepId","touristicContents","touristicContentCategories"],"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 TouristicContents,\n TouristicContentCategories,\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 selectedStepId: number;\n touristicContents: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\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 selectedStepId: null,\n touristicContents: null,\n touristicContentCategories: null,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"2CAEA,MAAMA,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,UAAW,KACXC,OAAQ,KACRC,OAAQ,KACRC,UAAW,KACXC,QAAS,KACTC,WAAY,KACZC,sBAAuB,KACvBC,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,KAClBC,eAAgB,KAChBC,kBAAmB,KACnBC,2BAA4B,c"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwInformationDeskCss","GrwInformationDeskDetail","handleInformationDeskDescription","this","displayShortDescription","handleCenterOnMap","centerOnMap","emit","latitude","informationDesk","longitude","render","h","Host","photo_url","class","src","loading","name","onClick","translate","postal_code","municipality","street","phone","href","email","website","description","innerHTML","grwPoiCss","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","grwTouristicContentCss","GrwTouristicContent","swiperTouristicContent","swiperTouristicContentRef","prevElTouristicContentRef","nextElTouristicContentRef","paginationElTouristicContentRef","touristicContent","touristicContentCategory","touristicContentCategories","category","label","grwTrekCardCss","GrwTrekCard","connectedCallback","currentTrek","trek","difficulty","difficulties","route","routes","themes","theme","includes","departureCity","cities","city","departure_city","onChange","disconnectedCallback","resetStoreOnDisconnected","reset","handleMouseOver","cardTrekMouseOver","handleMouseLeave","cardTrekMouseLeave","style","width","isLargeView","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isStep","selectedStepId","selectedTrekId","trekCardPress","_b","_c","formatDuration","duration","formatLength","length_2d","formatAscent","ascent","_d","_e","_f","_g"],"sources":["./src/components/grw-information-desk/grw-information-desk.scss?tag=grw-information-desk&encapsulation=shadow","./src/components/grw-information-desk/grw-information-desk.tsx","./src/components/grw-poi-detail/grw-poi.scss?tag=grw-poi&encapsulation=shadow","./src/components/grw-poi-detail/grw-poi.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-touristic-content/grw-touristic-content.scss?tag=grw-touristic-content&encapsulation=shadow","./src/components/grw-touristic-content/grw-touristic-content.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',\n styleUrl: 'grw-information-desk.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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n location_searching\n </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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n call\n </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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n mail\n </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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n link\n </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',\n styleUrl: 'grw-poi.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","@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.touristic-content-type-img-container {\n position: relative;\n .touristic-content-img,\n .default-touristic-content-img {\n width: 100%;\n height: 100%;\n max-height: 200px;\n object-fit: cover;\n }\n .touristic-content-img {\n cursor: pointer;\n object-fit: cover;\n }\n .default-touristic-content-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 .touristic-content-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.touristic-content-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n .touristic-content-category-container {\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n .touristic-content-category-name {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n }\n img {\n font-size: 24px;\n width: 24px;\n height: 24px;\n margin-right: 8px;\n background-color: var(--color-primary-app);\n }\n }\n .touristic-content-name {\n font-size: 16px;\n line-height: 24px;\n }\n}\n","import { Build, Component, Host, Prop, State, getAssetPath, h } from '@stencil/core';\nimport state from 'store/store';\nimport Swiper, { Keyboard, Navigation, Pagination } from 'swiper';\nimport { TouristicContent } from 'types/types';\n\n@Component({\n tag: 'grw-touristic-content',\n styleUrl: 'grw-touristic-content.scss',\n shadow: true,\n})\nexport class GrwTouristicContent {\n swiperTouristicContent?: Swiper;\n swiperTouristicContentRef?: HTMLDivElement;\n prevElTouristicContentRef?: HTMLDivElement;\n nextElTouristicContentRef?: HTMLDivElement;\n paginationElTouristicContentRef?: HTMLDivElement;\n @Prop() touristicContent: TouristicContent;\n @State() displayFullscreen = false;\n\n componentDidLoad() {\n this.swiperTouristicContent = new Swiper(this.swiperTouristicContentRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElTouristicContentRef,\n nextEl: this.nextElTouristicContentRef,\n },\n pagination: { el: this.paginationElTouristicContentRef },\n allowTouchMove: false,\n keyboard: false,\n });\n this.swiperTouristicContentRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n if (this.displayFullscreen) {\n this.swiperTouristicContent.keyboard.enable();\n } else {\n this.swiperTouristicContent.keyboard.disable();\n }\n };\n }\n\n handleFullscreen() {\n if (this.touristicContent.attachments && this.touristicContent.attachments[0] && this.touristicContent.attachments[0].url) {\n this.swiperTouristicContentRef.requestFullscreen();\n }\n }\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicContentCategory = state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === this.touristicContent.category);\n return (\n <Host>\n <div class=\"touristic-content-type-img-container\">\n {/* <img class=\"touristic-content-type\" src={`${state.poiTypes.find(poiType => poiType.id === this.poi.type)?.pictogram}`} /> */}\n <div class=\"swiper\" ref={el => (this.swiperTouristicContentRef = el)}>\n <div class=\"swiper-wrapper\">\n {this.touristicContent.attachments.length > 0 ? (\n this.touristicContent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div class=\"swiper-slide\">\n <img\n class={`touristic-content-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-touristic-content-img\" src={defaultImageSrc} loading=\"lazy\" />\n </div>\n )}\n </div>\n <div class=\"swiper-pagination\" ref={el => (this.paginationElTouristicContentRef = el)}></div>\n <div class=\"swiper-button-prev\" ref={el => (this.prevElTouristicContentRef = el)}></div>\n <div class=\"swiper-button-next\" ref={el => (this.nextElTouristicContentRef = el)}></div>\n </div>\n </div>\n <div class=\"touristic-content-sub-container\">\n <div class=\"touristic-content-category-container\">\n <img src={touristicContentCategory.pictogram} />\n <div class=\"touristic-content-category-name\">{touristicContentCategory.label}</div>\n </div>\n <div class=\"touristic-content-name\">{this.touristicContent.name}</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: 24px;\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.cardTrekMouseOver.emit(this.currentTrek.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n 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${state.selectedStepId === this.currentTrek.id ? ' selected-trek-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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n timelapse\n </span>\n {formatDuration(this.currentTrek.duration)}\n </div>\n </div>\n <div class=\"row\">\n <div class=\"icon-label length\">\n {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n open_in_full\n </span>\n {formatLength(this.currentTrek.length_2d)}\n </div>\n <div class=\"icon-label ascent\">\n {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n moving\n </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 </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"wNAAA,MAAMA,EAAwB,g+D,MCQjBC,EAAwB,M,+FAEA,K,+BAGnCC,mCACEC,KAAKC,yBAA2BD,KAAKC,uB,CAGvCC,oBACEF,KAAKG,YAAYC,KAAK,CAAEC,SAAUL,KAAKM,gBAAgBD,SAAUE,UAAWP,KAAKM,gBAAgBC,W,CAGnGC,SACE,OACEC,EAACC,EAAI,KACFV,KAAKM,gBAAgBK,WACpBF,EAAA,OAAKG,MAAM,wBACTH,EAAA,OAAKI,IAAKb,KAAKM,gBAAgBK,UAAWG,QAAQ,UAGtDL,EAAA,OAAKG,MAAM,kCACRZ,KAAKM,gBAAgBS,MAAQN,EAAA,OAAKG,MAAM,yBAAyBZ,KAAKM,gBAAgBS,MACtFf,KAAKM,gBAAgBD,UAAYL,KAAKM,gBAAgBC,WACrDE,EAAA,UAAQG,MAAM,uBAAuBI,QAAS,IAAMhB,KAAKE,qBAEvDO,EAAA,QAAMQ,UAAW,MAAOL,MAAM,8CAA4C,sBAEnE,yBAITZ,KAAKM,gBAAgBY,aAAelB,KAAKM,gBAAgBa,cAAgBnB,KAAKM,gBAAgBc,SAC9FX,EAAA,WACGT,K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Aa5I,KAAKuG,YAAYsC,YAEjCpI,EAAA,OAAKG,MAAM,qBAETH,EAAA,QAAMQ,UAAW,MAAOL,MAAM,8CAA4C,UAGzEkI,EAAa9I,KAAKuG,YAAYwC,WAGjC/I,KAAKoI,QACL3H,EAAA,OAAKG,MAAM,OACTH,EAAA,OAAKG,MAAM,sBACRoI,EAAAhJ,KAAK2G,SAAK,MAAAqC,SAAA,SAAAA,EAAE9E,YAAazD,EAAA,OAAKI,IAAKb,KAAK2G,MAAMzC,aAC9C+E,EAAAjJ,KAAK2G,SAAK,MAAAsC,SAAA,S,EAAEtC,OAEflG,EAAA,OAAKG,MAAM,yBACRsI,EAAAlJ,KAAK+E,YAAQ,MAAAmE,SAAA,SAAAA,EAAEhF,YAAazD,EAAA,OAAKI,IAAKb,KAAK+E,SAASb,aACpDiF,EAAAnJ,KAAK+E,YAAQ,MAAAoE,SAAA,S,EAAEpI,U"}
@@ -1,2 +0,0 @@
1
- import{r as t,f as e,h as o,H as i}from"./p-16f28b0e.js";import{s as n}from"./p-47ba2866.js";import{f as r,h as s}from"./p-1db133d4.js";const a='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto"}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .filter-button,.filter-button-container .selected-filter-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-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:8px;-webkit-tap-highlight-color:transparent;line-height:20px;-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;min-width:100px;white-space:nowrap}.filter-button-container .filter-button:hover,.filter-button-container .selected-filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button span{font-size:24px;margin-right:8px;color:var(--color-on-secondary-container)}';const l=class{constructor(e){t(this,e);this.filterType=undefined;this.filterName=undefined;this.filterNameProperty=undefined;this.segment=undefined}onResetFilter(){this.resetFilter()}handleFilter(t,e){const o=[...n[this.filterType]];o.find((t=>t.id===e.id)).selected=!o.find((t=>t.id===e.id)).selected;n[this.filterType]=o;n[this.segment]=0;r.filter((t=>t.segment===this.segment)).forEach((t=>{n[this.segment]+=n[t.property].filter((t=>t.selected)).length}));n.currentTreks=s()}resetFilter(){e(this.filterRef)}render(){return o(i,{ref:t=>this.filterRef=t},o("div",{class:"filter-name display-large"},this.filterName),o("div",{class:"filter-button-container"},n[this.filterType].map((t=>o("button",{onClick:e=>this.handleFilter(e,t),class:t.selected?"selected-filter-button":"filter-button"},t.selected&&o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"check"),t[this.filterNameProperty])))))}};l.style=a;export{l as grw_filter};
2
- //# sourceMappingURL=p-73bf5fea.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwFilterCss","GrwFilter","onResetFilter","this","resetFilter","handleFilter","_event","filterToHandle","filterFromState","state","filterType","find","currentFilter","id","selected","segment","filters","filter","forEach","property","length","currentTreks","handleFiltersAndSearch","forceUpdate","filterRef","render","h","Host","ref","el","class","filterName","map","onClick","event","translate","filterNameProperty"],"sources":["./src/components/grw-filter/grw-filter.scss?tag=grw-filter&encapsulation=shadow","./src/components/grw-filter/grw-filter.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 font-family: 'Roboto';\n}\n\n.filter-name {\n margin-left: 8px;\n color: var(--color-on-surface);\n line-height: 32px;\n letter-spacing: 0px;\n font-size: 24px;\n font-weight: 400;\n}\n.filter-button-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin-right: 16px;\n .filter-button,\n .selected-filter-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-1);\n border: 1px solid var(--color-outline);\n border-radius: 8px;\n -webkit-tap-highlight-color: transparent;\n line-height: 20px;\n transition: box-shadow 0.2s ease-in-out 0s;\n min-width: 100px;\n white-space: nowrap;\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n .filter-button {\n color: var(--color-on-surface-variant);\n background-color: transparent;\n }\n .selected-filter-button {\n color: var(--color-on-secondary-container);\n background-color: var(--color-secondary-container);\n span {\n font-size: 24px;\n margin-right: 8px;\n color: var(--color-on-secondary-container);\n }\n }\n}\n","import { Component, Host, h, Prop, Listen, forceUpdate } from '@stencil/core';\nimport state from 'store/store';\nimport { filters, handleFiltersAndSearch } from 'utils/utils';\n\n@Component({\n tag: 'grw-filter',\n styleUrl: 'grw-filter.scss',\n shadow: true,\n})\nexport class GrwFilter {\n filterRef: HTMLElement;\n @Prop() filterType: string;\n @Prop() filterName: string;\n @Prop() filterNameProperty: string;\n @Prop() segment: string;\n @Listen('resetFilter', { target: 'window' })\n onResetFilter() {\n this.resetFilter();\n }\n\n handleFilter(_event: MouseEvent, filterToHandle: any) {\n const filterFromState = [...state[this.filterType]];\n filterFromState.find(currentFilter => currentFilter.id === filterToHandle.id).selected = !filterFromState.find(currentFilter => currentFilter.id === filterToHandle.id)\n .selected;\n state[this.filterType] = filterFromState;\n\n state[this.segment] = 0;\n filters\n .filter(filter => filter.segment === this.segment)\n .forEach(filter => {\n state[this.segment] += state[filter.property].filter(filter => filter.selected).length;\n });\n\n state.currentTreks = handleFiltersAndSearch();\n }\n\n resetFilter() {\n forceUpdate(this.filterRef);\n }\n\n render() {\n return (\n <Host ref={el => (this.filterRef = el)}>\n <div class=\"filter-name display-large\">{this.filterName}</div>\n <div class=\"filter-button-container\">\n {state[this.filterType].map(currentFilter => (\n <button onClick={event => this.handleFilter(event, currentFilter)} class={currentFilter.selected ? 'selected-filter-button' : 'filter-button'}>\n {/* @ts-ignore */}\n {currentFilter.selected && <span translate={false} class=\"material-symbols material-symbols-outlined\">check</span>}\n {currentFilter[this.filterNameProperty]}\n </button>\n ))}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"wIAAA,MAAMA,EAAe,kzD,MCSRC,EAAS,M,sIAOpBC,gBACEC,KAAKC,a,CAGPC,aAAaC,EAAoBC,GAC/B,MAAMC,EAAkB,IAAIC,EAAMN,KAAKO,aACvCF,EAAgBG,MAAKC,GAAiBA,EAAcC,KAAON,EAAeM,KAAIC,UAAYN,EAAgBG,MAAKC,GAAiBA,EAAcC,KAAON,EAAeM,KACjKC,SACHL,EAAMN,KAAKO,YAAcF,EAEzBC,EAAMN,KAAKY,SAAW,EACtBC,EACGC,QAAOA,GAAUA,EAAOF,UAAYZ,KAAKY,UACzCG,SAAQD,IACPR,EAAMN,KAAKY,UAAYN,EAAMQ,EAAOE,UAAUF,QAAOA,GAAUA,EAAOH,WAAUM,MAAM,IAG1FX,EAAMY,aAAeC,G,CAGvBlB,cACEmB,EAAYpB,KAAKqB,U,CAGnBC,SACE,OACEC,EAACC,EAAI,CAACC,IAAKC,GAAO1B,KAAKqB,UAAYK,GACjCH,EAAA,OAAKI,MAAM,6BAA6B3B,KAAK4B,YAC7CL,EAAA,OAAKI,MAAM,2BACRrB,EAAMN,KAAKO,YAAYsB,KAAIpB,GAC1Bc,EAAA,UAAQO,QAASC,GAAS/B,KAAKE,aAAa6B,EAAOtB,GAAgBkB,MAAOlB,EAAcE,SAAW,yBAA2B,iBAE3HF,EAAcE,UAAYY,EAAA,QAAMS,UAAW,MAAOL,MAAM,8CAA4C,SACpGlB,EAAcT,KAAKiC,wB"}
@@ -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","selectedStepId","touristicContents","touristicContentCategories","exports","s","o","r"],"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 TouristicContents,\n TouristicContentCategories,\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 selectedStepId: number;\n touristicContents: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\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 selectedStepId: null,\n touristicContents: null,\n touristicContentCategories: null,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"0IAEA,IAAMA,EAAc,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,EAAW,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,EAAc,SAACC,GAAiB,QAAE,gBAAiBA,IAAiBA,EAAaD,WAAjD,EACtC,IAAME,EAAkBb,GAAS,SAACR,GAC9B,IAAgB,IAAAa,EAAA,EAAAS,EAAAtB,EAAIuB,OAAJV,EAAAS,EAAAP,OAAAF,IAAY,CAAvB,IAAIW,EAAGF,EAAAT,GACRb,EAAIK,IAAImB,EAAKxB,EAAII,IAAIoB,GAAKC,OAAON,G,CAEzC,GAAG,KACH,IAAMO,EAAsB,WACxB,UAAWC,IAAoB,WAAY,CAGvC,MAAO,E,CAEX,IAAMC,EAAe,IAAIC,IACzB,MAAO,CACHC,QAAS,WAAM,OAAAF,EAAaG,OAAb,EACf3B,IAAK,SAACH,GACF,IAAM+B,EAAML,IACZ,GAAIK,EAAK,CACLjC,EAAY6B,EAAc3B,EAAU+B,E,CAEpD,EACQ3B,IAAK,SAACJ,GACF,IAAMgC,EAAWL,EAAaxB,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,EAAA+B,MAAEc,EAAQ7C,EAAA6C,SAAEhC,EAAKb,EAAAa,MA8E7BqF,EAAA,CAAAC,EAAApE,EAAAqE,EAAAvD,EAAAwD,EAAAxF,G"}
@@ -1,2 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-3eaed9f9.system.js","./p-7be13480.system.js","./p-a7fa6233.system.js"],(function(e){"use strict";var t,r,n,i,o,s,a;return{setters:[function(e){t=e.r;r=e.f;n=e.h;i=e.H},function(e){o=e.s},function(e){s=e.f;a=e.h}],execute:function(){var l='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{font-family:"Roboto"}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .filter-button,.filter-button-container .selected-filter-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-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:8px;-webkit-tap-highlight-color:transparent;line-height:20px;-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;min-width:100px;white-space:nowrap}.filter-button-container .filter-button:hover,.filter-button-container .selected-filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button span{font-size:24px;margin-right:8px;color:var(--color-on-secondary-container)}';var f=e("grw_filter",function(){function e(e){t(this,e);this.filterType=undefined;this.filterName=undefined;this.filterNameProperty=undefined;this.segment=undefined}e.prototype.onResetFilter=function(){this.resetFilter()};e.prototype.handleFilter=function(e,t){var r=this;var n=__spreadArray([],o[this.filterType],true);n.find((function(e){return e.id===t.id})).selected=!n.find((function(e){return e.id===t.id})).selected;o[this.filterType]=n;o[this.segment]=0;s.filter((function(e){return e.segment===r.segment})).forEach((function(e){o[r.segment]+=o[e.property].filter((function(e){return e.selected})).length}));o.currentTreks=a()};e.prototype.resetFilter=function(){r(this.filterRef)};e.prototype.render=function(){var e=this;return n(i,{ref:function(t){return e.filterRef=t}},n("div",{class:"filter-name display-large"},this.filterName),n("div",{class:"filter-button-container"},o[this.filterType].map((function(t){return n("button",{onClick:function(r){return e.handleFilter(r,t)},class:t.selected?"selected-filter-button":"filter-button"},t.selected&&n("span",{translate:false,class:"material-symbols material-symbols-outlined"},"check"),t[e.filterNameProperty])}))))};return e}());f.style=l}}}));
2
- //# sourceMappingURL=p-953f1353.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwFilterCss","GrwFilter","exports","class_1","prototype","onResetFilter","this","resetFilter","handleFilter","_event","filterToHandle","_this","filterFromState","__spreadArray","state","filterType","find","currentFilter","id","selected","segment","filters","filter","forEach","property","length","currentTreks","handleFiltersAndSearch","forceUpdate","filterRef","render","h","Host","ref","el","class","filterName","map","onClick","event","translate","filterNameProperty"],"sources":["src/components/grw-filter/grw-filter.scss?tag=grw-filter&encapsulation=shadow","src/components/grw-filter/grw-filter.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 font-family: 'Roboto';\n}\n\n.filter-name {\n margin-left: 8px;\n color: var(--color-on-surface);\n line-height: 32px;\n letter-spacing: 0px;\n font-size: 24px;\n font-weight: 400;\n}\n.filter-button-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin-right: 16px;\n .filter-button,\n .selected-filter-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-1);\n border: 1px solid var(--color-outline);\n border-radius: 8px;\n -webkit-tap-highlight-color: transparent;\n line-height: 20px;\n transition: box-shadow 0.2s ease-in-out 0s;\n min-width: 100px;\n white-space: nowrap;\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n .filter-button {\n color: var(--color-on-surface-variant);\n background-color: transparent;\n }\n .selected-filter-button {\n color: var(--color-on-secondary-container);\n background-color: var(--color-secondary-container);\n span {\n font-size: 24px;\n margin-right: 8px;\n color: var(--color-on-secondary-container);\n }\n }\n}\n","import { Component, Host, h, Prop, Listen, forceUpdate } from '@stencil/core';\nimport state from 'store/store';\nimport { filters, handleFiltersAndSearch } from 'utils/utils';\n\n@Component({\n tag: 'grw-filter',\n styleUrl: 'grw-filter.scss',\n shadow: true,\n})\nexport class GrwFilter {\n filterRef: HTMLElement;\n @Prop() filterType: string;\n @Prop() filterName: string;\n @Prop() filterNameProperty: string;\n @Prop() segment: string;\n @Listen('resetFilter', { target: 'window' })\n onResetFilter() {\n this.resetFilter();\n }\n\n handleFilter(_event: MouseEvent, filterToHandle: any) {\n const filterFromState = [...state[this.filterType]];\n filterFromState.find(currentFilter => currentFilter.id === filterToHandle.id).selected = !filterFromState.find(currentFilter => currentFilter.id === filterToHandle.id)\n .selected;\n state[this.filterType] = filterFromState;\n\n state[this.segment] = 0;\n filters\n .filter(filter => filter.segment === this.segment)\n .forEach(filter => {\n state[this.segment] += state[filter.property].filter(filter => filter.selected).length;\n });\n\n state.currentTreks = handleFiltersAndSearch();\n }\n\n resetFilter() {\n forceUpdate(this.filterRef);\n }\n\n render() {\n return (\n <Host ref={el => (this.filterRef = el)}>\n <div class=\"filter-name display-large\">{this.filterName}</div>\n <div class=\"filter-button-container\">\n {state[this.filterType].map(currentFilter => (\n <button onClick={event => this.handleFilter(event, currentFilter)} class={currentFilter.selected ? 'selected-filter-button' : 'filter-button'}>\n {/* @ts-ignore */}\n {currentFilter.selected && <span translate={false} class=\"material-symbols material-symbols-outlined\">check</span>}\n {currentFilter[this.filterNameProperty]}\n </button>\n ))}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"gfAAA,IAAMA,EAAe,kzD,ICSRC,EAASC,EAAA,wB,qIAOpBC,EAAAC,UAAAC,cAAA,WACEC,KAAKC,a,EAGPJ,EAAAC,UAAAI,aAAA,SAAaC,EAAoBC,GAAjC,IAAAC,EAAAL,KACE,IAAMM,EAAeC,cAAA,GAAOC,EAAMR,KAAKS,YAAW,MAClDH,EAAgBI,MAAK,SAAAC,GAAiB,OAAAA,EAAcC,KAAOR,EAAeQ,EAApC,IAAwCC,UAAYP,EAAgBI,MAAK,SAAAC,GAAiB,OAAAA,EAAcC,KAAOR,EAAeQ,EAApC,IAC7HC,SACHL,EAAMR,KAAKS,YAAcH,EAEzBE,EAAMR,KAAKc,SAAW,EACtBC,EACGC,QAAO,SAAAA,GAAU,OAAAA,EAAOF,UAAYT,EAAKS,OAAxB,IACjBG,SAAQ,SAAAD,GACPR,EAAMH,EAAKS,UAAYN,EAAMQ,EAAOE,UAAUF,QAAO,SAAAA,GAAU,OAAAA,EAAOH,QAAP,IAAiBM,M,IAGpFX,EAAMY,aAAeC,G,EAGvBxB,EAAAC,UAAAG,YAAA,WACEqB,EAAYtB,KAAKuB,U,EAGnB1B,EAAAC,UAAA0B,OAAA,eAAAnB,EAAAL,KACE,OACEyB,EAACC,EAAI,CAACC,IAAK,SAAAC,GAAE,OAAKvB,EAAKkB,UAAYK,CAAtB,GACXH,EAAA,OAAKI,MAAM,6BAA6B7B,KAAK8B,YAC7CL,EAAA,OAAKI,MAAM,2BACRrB,EAAMR,KAAKS,YAAYsB,KAAI,SAAApB,GAAa,OACvCc,EAAA,UAAQO,QAAS,SAAAC,GAAS,OAAA5B,EAAKH,aAAa+B,EAAOtB,EAAzB,EAAyCkB,MAAOlB,EAAcE,SAAW,yBAA2B,iBAE3HF,EAAcE,UAAYY,EAAA,QAAMS,UAAW,MAAOL,MAAM,8CAA4C,SACpGlB,EAAcN,EAAK8B,oBAJiB,K,WApC7B,I"}
@@ -1,2 +0,0 @@
1
- System.register(["./p-3eaed9f9.system.js","./p-291b7192.system.js","./p-7be13480.system.js"],(function(e){"use strict";var r,t,i,o,a,n,s,l;return{setters:[function(e){r=e.r;t=e.h;i=e.H;o=e.g},function(e){a=e.t},function(e){n=e.s;s=e.o;l=e.r}],execute:function(){var c='.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:100dvw;max-height:100dvh}.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}.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}.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%}';var h=e("grw_app",function(){function e(e){r(this,e);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.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 r=n.parentTrekId?n.parentTrekId:n.currentTrekSteps?this.currentTrekId:null;n.currentTrek=null;this.currentTrekId=e.detail;this.showTrek=true;this.showTrekMap=false;var t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString());if(n.currentTrekSteps){t.searchParams.set("parentTrek",r.toString())}window.history.pushState({},"",t)};e.prototype.onParentTrekPress=function(e){n.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());r.searchParams.delete("parentTrek");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 r=e.searchParams.get("trek");var t=e.searchParams.get("parentTrek");if(r){window.history.replaceState({isInitialHistoryWithTrek:true},"",e);n.parentTrekId=t?Number(t):null;this.currentTrekId=Number(r);this.showTrek=!this.showTrek}};e.prototype.componentDidLoad=function(){var e=this;s("trekNetworkError",(function(){if(n.trekNetworkError){var r=new URL(window.location.toString());r.searchParams.delete("trek");r.searchParams.delete("parentTrek");window.history.replaceState({},"",r);e.onTrekDetailsClose()}}));window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};e.prototype.onTrekDetailsClose=function(){n.currentTrek=null;n.currentTrekSteps=null;n.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 r=Number(e.searchParams.get("trek"));if(r&&this.currentTrekId!==r){n.currentTrek=null;this.currentTrekId=r;this.showTrek=true}else if(!r){this.onTrekDetailsClose()}};e.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else{this.showTreksMap=!this.showTreksMap}};e.prototype.disconnectedCallback=function(){l();window.removeEventListener("popstate",this.handlePopStateBind)};e.prototype.render=function(){var e=this;return t(i,{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}},!n.currentTreks&&!n.currentTrek&&t("div",{class:"init-loader-container"},t("span",{class:"loader"})),!this.showTrek&&!n.treks&&t("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&&!n.currentTrek&&t("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId}),(n.currentTreks||n.currentTrek)&&t("div",{class:"app-container"},t("div",{class:this.isLargeView?"large-view-header-container":"header-container"},!this.showTrek?t("div",{class:"handle-search-filters-container"},t("div",{class:"handle-search-container"},t("grw-search",null)),t("div",{class:"handle-filters-container"},t("button",{onClick:function(){return e.handleFilters()},class:"handle-filters-button"},t("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"filter_list"),a[n.language].filter))):t("div",{class:"arrow-back-container"},t("button",{onClick:function(){return e.handleBackButton()},class:"arrow-back-icon"},t("span",{translate:false,class:"material-symbols material-symbols-outlined"},"arrow_back")))),t("div",{class:"content-container ".concat(this.showTrek?"content-trek":"content-treks")},t("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"}},t("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&&!n.currentTrek&&t("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},t("span",{class:"loader"})),n.currentTrek&&t("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},t("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})),t("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&&n.currentTrek)&&t("div",{class:"map-visibility-button-container"},t("button",{onClick:function(){return e.handleShowMap()},class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},t("span",{translate:false,class:"material-symbols material-symbols-outlined"},this.showTrek?this.showTrekMap?"summarize":"map":this.showTreksMap?"list":"map"),this.showTrek?this.showTrekMap?a[n.language].showDetails:a[n.language].showRoute:this.showTreksMap?a[n.language].showList:a[n.language].showMap))),!this.showTrek&&this.showFilters&&t("grw-filters",{handleFilters:function(){return e.handleFilters()}}))};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}());h.style=c}}}));
2
- //# sourceMappingURL=p-a5cdfd75.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","onParentTrekPress","delete","onWindowResize","handleView","onCenterOnMap","isLargeView","watchPropHandler","dispatchEvent","Event","componentWillLoad","trekParam","get","replaceState","isInitialHistoryWithTrek","Number","componentDidLoad","_this","onChange","trekNetworkError","urlRedirect","onTrekDetailsClose","addEventListener","appElement","getBoundingClientRect","width","showTreksMap","handleFilters","showFilters","handleBackButton","back","handleShowMap","disconnectedCallback","reset","removeEventListener","render","h","Host","style","colorPrimaryApp","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","appWidth","appHeight","currentTreks","class","treks","api","languages","inBbox","cities","districts","structures","themes","portals","routes","practices","onClick","translate","language","filter","concat","display","position","visibility","zIndex","weather","center","zoom","nameLayer","urlLayer","attributionLayer","colorTrekLine","colorSensitiveArea","colorPoiIcon","useGradient","showDetails","showRoute","showList","showMap"],"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: 100dvw;\n max-height: 100dvh;\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.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.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","import { Component, Host, h, Listen, State, Prop, Element, Watch } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state, { onChange, reset } from 'store/store';\n\n@Component({\n tag: 'grw-app',\n styleUrls: ['grw-app.scss'],\n shadow: false,\n})\nexport class GrwApp {\n @Element() appElement: HTMLElement;\n @State() showTrek = false;\n @State() showTreksMap = false;\n @State() showTrekMap = false;\n @State() showFilters = false;\n @State() isLargeView = false;\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('parentTrekPress', { target: 'window' })\n onParentTrekPress(event: CustomEvent<number>) {\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 url.searchParams.delete('parentTrek');\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 disconnectedCallback() {\n reset();\n window.removeEventListener('popstate', this.handlePopStateBind);\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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined margin-right-icon\">\n filter_list\n </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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n arrow_back\n </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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined\">\n {this.showTrek ? (this.showTrekMap ? 'summarize' : 'map') : this.showTreksMap ? 'list' : 'map'}\n </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 && <grw-filters handleFilters={() => this.handleFilters()}></grw-filters>}\n </Host>\n );\n }\n}\n"],"mappings":"sQAAA,IAAMA,EAAY,s2K,ICSLC,EAAMC,EAAA,qB,wBAgDjBC,KAAAC,cAAgB,KAChBD,KAAAE,mBAA2CF,KAAKG,eAAeC,KA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AW,eACjBhC,KAAKiH,iBAGpBjH,KAAKgB,UAAahB,KAAKgB,UAAYN,EAAMI,cAC1CgD,EAAA,OAAKqB,MAAM,mCACTrB,EAAA,UAAQiC,QAAS,WAAM,OAAApD,EAAKc,eAAL,EAAsB0B,MAAM,wBAAwBnB,MAAO,CAAEoC,QAASpG,KAAKgC,YAAc,OAAS,SAEvH8B,EAAA,QAAMkC,UAAW,MAAOb,MAAM,8CAC3BnF,KAAKgB,SAAYhB,KAAKiB,YAAc,YAAc,MAASjB,KAAKoD,aAAe,OAAS,OAE1FpD,KAAKgB,SACFhB,KAAKiB,YACH+E,EAAUtF,EAAMuF,UAAUiB,YAC1BlB,EAAUtF,EAAMuF,UAAUkB,UAC5BnH,KAAKoD,aACL4C,EAAUtF,EAAMuF,UAAUmB,SAC1BpB,EAAUtF,EAAMuF,UAAUoB,YAMtCrH,KAAKgB,UAAYhB,KAAKsD,aAAeQ,EAAA,eAAaT,cAAe,WAAM,OAAAV,EAAKU,eAAL,I,iQA9U9D,I"}
@@ -1,2 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var i=0,n=r.length,s;i<n;i++){if(s||!(i in r)){if(!s)s=Array.prototype.slice.call(r,0,i);s[i]=r[i]}}return e.concat(s||Array.prototype.slice.call(r))};System.register(["./p-7be13480.system.js"],(function(e){"use strict";var r;return{setters:[function(e){r=e.s}],execute:function(){e({a:t,b:i,c:n,h:a});function t(e){var r;if(e<24){r="".concat(Math.floor(e),"h");if(e%1>0){r+="".concat(Math.round(60*(e%1)),"min")}}else{r="".concat(e/24,"j")}return r}function i(e){return"".concat(Math.round(e/1e3),"km")}function n(e){return"".concat(e,"m")}var s=e("f",[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}]);function a(){var e=false;var t=[];var i=function(i){var n=r[i.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(i.type==="include"){if(i.trekPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[i.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[i.trekProperty])})),true)}}else if(i.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=r[i.property].find((function(e){return e.id===t}));if(e[i.trekProperty]>=n.minValue&&e[i.trekProperty]<=n.maxValue){return{value:true}}};for(var s=0,a=n;s<a.length;s++){var o=a[s];var l=t(o);if(typeof l==="object")return l.value}return false})),true)}}else{if(!e){e=true}if(i.type==="include"){if(i.trekPropertyIsArray){t=__spreadArray([],r.treks.filter((function(e){return e[i.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],r.treks.filter((function(e){return n.includes(e[i.trekProperty])})),true)}}else if(i.type==="interval"){var s;var a;var o=function(e){var t=r[i.property].find((function(r){return r.id===e}));if(isNaN(s)||t.minValue<s){s=t.minValue}if(isNaN(a)||t.maxValue>a){a=t.maxValue}};for(var l=0,c=n;l<c.length;l++){var u=c[l];o(u)}t=__spreadArray([],r.treks.filter((function(e){return e[i.trekProperty]>=s&&e[i.trekProperty]<=a})),true)}}}};for(var n=0,a=s;n<a.length;n++){var o=a[n];i(o)}var l=e?t:r.treks;return Boolean(r.searchValue)?l.filter((function(e){return e.name.toLowerCase().includes(r.searchValue.toLowerCase())})):l}}}}));
2
- //# sourceMappingURL=p-a7fa6233.system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["formatDuration","duration","formattedDuration","concat","Math","floor","round","formatLength","length","formatAscent","ascent","filters","exports","property","trekProperty","trekPropertyIsArray","type","segment","handleFiltersAndSearch","isUsingFilter","filtersTreks","filter","currentFiltersId","state","currentFilter","selected","map","id","__spreadArray","trek","some","includes","currentFilterId","find","minValue","maxValue","_i","currentFiltersId_2","treks","minValue_1","maxValue_1","isNaN","_a","currentFiltersId_1","filters_1","searchTreks","Boolean","searchValue","currentTrek","name","toLowerCase"],"sources":["src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { Filters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport const filters: Filters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include', segment: 'selectedThemesFilters' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', trekProperty: 'districts', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport function handleFiltersAndSearch(): Treks {\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of filters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...filtersTreks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n"],"mappings":"kZAGgBA,EAAeC,GAC7B,IAAIC,EACJ,GAAID,EAAW,GAAI,CACjBC,EAAoB,GAAAC,OAAGC,KAAKC,MAAMJ,GAAS,KAC3C,GAAIA,EAAW,EAAI,EAAG,CACpBC,GAAqB,GAAAC,OAAGC,KAAKE,MAAM,IAAML,EAAW,IAAG,M,MAEpD,CACLC,EAAoB,GAAAC,OAAGF,EAAW,GAAE,I,CAEtC,OAAOC,CACT,C,SAEgBK,EAAaC,GAC3B,MAAO,GAAAL,OAAGC,KAAKE,MAAME,EAAS,KAAK,KACrC,C,SAEgBC,EAAaC,GAC3B,MAAO,GAAAP,OAAGO,EAAM,IAClB,C,IAEaC,EAAOC,EAAA,IAAY,CAC9B,CAAEC,SAAU,YAAaC,aAAc,WAAYC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BACzG,CAAEJ,SAAU,eAAgBC,aAAc,aAAcC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BAC9G,CAAEJ,SAAU,YAAaC,aAAc,WAAYC,oBAAqB,MAAOC,KAAM,WAAYC,QAAS,6BAC1G,C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ASXZ,EAAYQ,cAAA,GAAOL,EAAMe,MAAMjB,QAAO,SAAAQ,GAAQ,OAAAA,EAAKR,EAAOP,eAAiByB,GAAYV,EAAKR,EAAOP,eAAiB0B,CAAtE,IAA+E,K,KA7CrI,IAAqB,IAAAJ,EAAA,EAAAQ,EAAAjC,EAAAyB,EAAAQ,EAAApC,OAAA4B,IAAO,CAAvB,IAAMf,EAAMuB,EAAAR,G,EAANf,E,CAmDX,IAAMwB,EAAc1B,EAAgBC,EAAeG,EAAMe,MACzD,OAAOQ,QAAQvB,EAAMwB,aAAeF,EAAYxB,QAAO,SAAA2B,GAAe,OAAAA,EAAYC,KAAKC,cAAcnB,SAASR,EAAMwB,YAAYG,cAA1D,IAA4EL,CACpJ,C"}
@@ -1,2 +0,0 @@
1
- import{r as i,h as e,H as t,g as r}from"./p-16f28b0e.js";import{t as a}from"./p-e653caed.js";import{s as o,o as n,r as s}from"./p-47ba2866.js";const l='.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:100dvw;max-height:100dvh}.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}.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}.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%}';const c=class{constructor(e){i(this,e);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.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}onTrekCardPress(i){const e=o.parentTrekId?o.parentTrekId:o.currentTrekSteps?this.currentTrekId:null;o.currentTrek=null;this.currentTrekId=i.detail;this.showTrek=true;this.showTrekMap=false;const t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString());if(o.currentTrekSteps){t.searchParams.set("parentTrek",e.toString())}window.history.pushState({},"",t)}onParentTrekPress(i){o.currentTrek=null;this.currentTrekId=i.detail;this.showTrek=true;this.showTrekMap=false;const e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());e.searchParams.delete("parentTrek");window.history.pushState({},"",e)}onWindowResize(){this.handleView()}onCenterOnMap(){if(!this.isLargeView){this.showTrekMap=true}}watchPropHandler(){window.dispatchEvent(new window.Event("resize"))}componentWillLoad(){const i=new URL(window.location.toString());const e=i.searchParams.get("trek");const t=i.searchParams.get("parentTrek");if(e){window.history.replaceState({isInitialHistoryWithTrek:true},"",i);o.parentTrekId=t?Number(t):null;this.currentTrekId=Number(e);this.showTrek=!this.showTrek}}componentDidLoad(){n("trekNetworkError",(()=>{if(o.trekNetworkError){const i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.delete("parentTrek");window.history.replaceState({},"",i);this.onTrekDetailsClose()}}));window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()}onTrekDetailsClose(){o.currentTrek=null;o.currentTrekSteps=null;o.parentTrekId=null;this.currentTrekId=null;this.showTrek=!this.showTrek}handleView(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showTreksMap=this.isLargeView;this.showTrekMap=this.isLargeView}handleFilters(){this.showFilters=!this.showFilters}handleBackButton(){if(window.history.state&&window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();const i=new URL(window.location.toString());i.searchParams.delete("trek");window.history.pushState({},"",i)}else{window.history.back()}}handlePopState(){const i=new URL(window.location.toString());const e=Number(i.searchParams.get("trek"));if(e&&this.currentTrekId!==e){o.currentTrek=null;this.currentTrekId=e;this.showTrek=true}else if(!e){this.onTrekDetailsClose()}}handleShowMap(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else{this.showTreksMap=!this.showTreksMap}}disconnectedCallback(){s();window.removeEventListener("popstate",this.handlePopStateBind)}render(){return e(t,{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}},!o.currentTreks&&!o.currentTrek&&e("div",{class:"init-loader-container"},e("span",{class:"loader"})),!this.showTrek&&!o.treks&&e("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&&!o.currentTrek&&e("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId}),(o.currentTreks||o.currentTrek)&&e("div",{class:"app-container"},e("div",{class:this.isLargeView?"large-view-header-container":"header-container"},!this.showTrek?e("div",{class:"handle-search-filters-container"},e("div",{class:"handle-search-container"},e("grw-search",null)),e("div",{class:"handle-filters-container"},e("button",{onClick:()=>this.handleFilters(),class:"handle-filters-button"},e("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"filter_list"),a[o.language].filter))):e("div",{class:"arrow-back-container"},e("button",{onClick:()=>this.handleBackButton(),class:"arrow-back-icon"},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},"arrow_back")))),e("div",{class:`content-container ${this.showTrek?"content-trek":"content-treks"}`},e("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"}},e("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&&!o.currentTrek&&e("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},e("span",{class:"loader"})),o.currentTrek&&e("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},e("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})),e("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&&o.currentTrek)&&e("div",{class:"map-visibility-button-container"},e("button",{onClick:()=>this.handleShowMap(),class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},e("span",{translate:false,class:"material-symbols material-symbols-outlined"},this.showTrek?this.showTrekMap?"summarize":"map":this.showTreksMap?"list":"map"),this.showTrek?this.showTrekMap?a[o.language].showDetails:a[o.language].showRoute:this.showTreksMap?a[o.language].showList:a[o.language].showMap))),!this.showTrek&&this.showFilters&&e("grw-filters",{handleFilters:()=>this.handleFilters()}))}get appElement(){return r(this)}static get watchers(){return{isLargeView:["watchPropHandler"]}}};c.style=l;export{c as grw_app};
2
- //# sourceMappingURL=p-bdaae91a.entry.js.map