@geotrekce/geotrek-rando-widget 0.2.13 → 0.2.15

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 (349) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  3. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  4. package/dist/cjs/grw-app.cjs.entry.js +6 -8
  5. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/grw-filter_8.cjs.entry.js +30 -27
  9. package/dist/cjs/grw-filter_8.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filter_8.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filter_8.cjs.entry.js.map +1 -1
  12. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +4 -4
  13. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/grw-trek-card.cjs.entry.js +4 -4
  17. package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
  18. package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/grw-trek-card.cjs.entry.js.map +1 -1
  20. package/dist/cjs/{i18n-c0a655bf.js → i18n-210f453b.js} +3 -1
  21. package/dist/cjs/i18n-210f453b.js.br +0 -0
  22. package/dist/cjs/i18n-210f453b.js.gz +0 -0
  23. package/dist/cjs/i18n-210f453b.js.map +1 -0
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/cjs/loader.cjs.js.br +0 -0
  26. package/dist/cjs/loader.cjs.js.gz +0 -0
  27. package/dist/cjs/{store-8489a70a.js → store-b6d5fcad.js} +2 -1
  28. package/dist/cjs/store-b6d5fcad.js.br +0 -0
  29. package/dist/cjs/store-b6d5fcad.js.gz +0 -0
  30. package/dist/cjs/store-b6d5fcad.js.map +1 -0
  31. package/dist/cjs/{utils-51ed599a.js → utils-1dd4bcbd.js} +3 -2
  32. package/dist/cjs/utils-1dd4bcbd.js.br +0 -0
  33. package/dist/cjs/utils-1dd4bcbd.js.gz +0 -0
  34. package/dist/cjs/utils-1dd4bcbd.js.map +1 -0
  35. package/dist/collection/components/grw-app/grw-app.css +4 -2
  36. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  37. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  38. package/dist/collection/components/grw-app/grw-app.js +3 -41
  39. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  40. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  41. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  42. package/dist/collection/components/grw-filter/grw-filter.css +4 -1
  43. package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
  44. package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
  45. package/dist/collection/components/grw-filter/grw-filter.js +1 -1
  46. package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
  47. package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
  48. package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
  49. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css +4 -2
  50. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css.br +0 -0
  51. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.css.gz +0 -0
  52. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +1 -1
  53. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.br +0 -0
  54. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.gz +0 -0
  55. package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js.map +1 -1
  56. package/dist/collection/components/grw-map/grw-map.js +0 -40
  57. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  58. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  59. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  60. package/dist/collection/components/grw-poi-detail/grw-poi-detail.css +16 -2
  61. package/dist/collection/components/grw-poi-detail/grw-poi-detail.css.br +0 -0
  62. package/dist/collection/components/grw-poi-detail/grw-poi-detail.css.gz +0 -0
  63. package/dist/collection/components/grw-search/grw-search.css +4 -1
  64. package/dist/collection/components/grw-search/grw-search.css.br +0 -0
  65. package/dist/collection/components/grw-search/grw-search.css.gz +0 -0
  66. package/dist/collection/components/grw-search/grw-search.js +1 -1
  67. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  68. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  69. package/dist/collection/components/grw-search/grw-search.js.map +1 -1
  70. package/dist/collection/components/grw-select-language/grw-select-language.css +4 -1
  71. package/dist/collection/components/grw-select-language/grw-select-language.css.br +0 -0
  72. package/dist/collection/components/grw-select-language/grw-select-language.css.gz +0 -0
  73. package/dist/collection/components/grw-select-language/grw-select-language.js +1 -1
  74. package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
  75. package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
  76. package/dist/collection/components/grw-select-language/grw-select-language.js.map +1 -1
  77. package/dist/collection/components/grw-trek-card/grw-trek-card.css +4 -1
  78. package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
  79. package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
  80. package/dist/collection/components/grw-trek-card/grw-trek-card.js +1 -1
  81. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  82. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  83. package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
  84. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +24 -6
  85. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  86. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  87. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +3 -3
  88. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  89. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  90. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  91. package/dist/collection/i18n/i18n.js +2 -0
  92. package/dist/collection/i18n/i18n.js.br +0 -0
  93. package/dist/collection/i18n/i18n.js.gz +0 -0
  94. package/dist/collection/i18n/i18n.js.map +1 -1
  95. package/dist/collection/store/grw-trek-provider.js +13 -8
  96. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  97. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  98. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  99. package/dist/collection/store/grw-treks-provider.js +4 -2
  100. package/dist/collection/store/grw-treks-provider.js.br +0 -0
  101. package/dist/collection/store/grw-treks-provider.js.gz +0 -0
  102. package/dist/collection/store/grw-treks-provider.js.map +1 -1
  103. package/dist/collection/store/store.js +1 -0
  104. package/dist/collection/store/store.js.br +0 -0
  105. package/dist/collection/store/store.js.gz +0 -0
  106. package/dist/collection/store/store.js.map +1 -1
  107. package/dist/collection/stories/App.js +0 -4
  108. package/dist/collection/stories/App.js.br +0 -0
  109. package/dist/collection/stories/App.js.gz +0 -0
  110. package/dist/collection/stories/App.stories.js +0 -2
  111. package/dist/collection/stories/App.stories.js.br +0 -0
  112. package/dist/collection/stories/App.stories.js.gz +0 -0
  113. package/dist/collection/stories/TrekMap.js +0 -4
  114. package/dist/collection/stories/TrekMap.js.br +0 -0
  115. package/dist/collection/stories/TrekMap.js.gz +0 -0
  116. package/dist/collection/stories/TrekMap.stories.js +0 -2
  117. package/dist/collection/stories/TrekMap.stories.js.br +0 -0
  118. package/dist/collection/stories/TrekMap.stories.js.gz +0 -0
  119. package/dist/collection/types/types.js.map +1 -1
  120. package/dist/collection/utils/utils.js +1 -0
  121. package/dist/collection/utils/utils.js.br +0 -0
  122. package/dist/collection/utils/utils.js.gz +0 -0
  123. package/dist/collection/utils/utils.js.map +1 -1
  124. package/dist/esm/geotrek-rando-widget.js +1 -1
  125. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  126. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  127. package/dist/esm/grw-app.entry.js +6 -8
  128. package/dist/esm/grw-app.entry.js.br +0 -0
  129. package/dist/esm/grw-app.entry.js.gz +0 -0
  130. package/dist/esm/grw-app.entry.js.map +1 -1
  131. package/dist/esm/grw-filter_8.entry.js +30 -27
  132. package/dist/esm/grw-filter_8.entry.js.br +0 -0
  133. package/dist/esm/grw-filter_8.entry.js.gz +0 -0
  134. package/dist/esm/grw-filter_8.entry.js.map +1 -1
  135. package/dist/esm/grw-information-desk-detail_3.entry.js +4 -4
  136. package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
  137. package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
  138. package/dist/esm/grw-information-desk-detail_3.entry.js.map +1 -1
  139. package/dist/esm/grw-trek-card.entry.js +4 -4
  140. package/dist/esm/grw-trek-card.entry.js.br +0 -0
  141. package/dist/esm/grw-trek-card.entry.js.gz +0 -0
  142. package/dist/esm/grw-trek-card.entry.js.map +1 -1
  143. package/dist/esm/{i18n-22f5fa38.js → i18n-301409fd.js} +3 -1
  144. package/dist/esm/i18n-301409fd.js.br +0 -0
  145. package/dist/esm/i18n-301409fd.js.gz +0 -0
  146. package/dist/esm/i18n-301409fd.js.map +1 -0
  147. package/dist/esm/loader.js +1 -1
  148. package/dist/esm/loader.js.br +0 -0
  149. package/dist/esm/loader.js.gz +0 -0
  150. package/dist/esm/{store-af9549c8.js → store-2a612007.js} +2 -1
  151. package/dist/esm/store-2a612007.js.br +0 -0
  152. package/dist/esm/store-2a612007.js.gz +0 -0
  153. package/dist/esm/store-2a612007.js.map +1 -0
  154. package/dist/esm/{utils-85317c68.js → utils-4b2144e3.js} +3 -2
  155. package/dist/esm/utils-4b2144e3.js.br +0 -0
  156. package/dist/esm/utils-4b2144e3.js.gz +0 -0
  157. package/dist/esm/utils-4b2144e3.js.map +1 -0
  158. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  159. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  160. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  161. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  162. package/dist/esm-es5/grw-app.entry.js +1 -1
  163. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  164. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  165. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  166. package/dist/esm-es5/grw-filter_8.entry.js +2 -2
  167. package/dist/esm-es5/grw-filter_8.entry.js.br +0 -0
  168. package/dist/esm-es5/grw-filter_8.entry.js.gz +0 -0
  169. package/dist/esm-es5/grw-filter_8.entry.js.map +1 -1
  170. package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
  171. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
  172. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
  173. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.map +1 -1
  174. package/dist/esm-es5/grw-trek-card.entry.js +1 -1
  175. package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
  176. package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
  177. package/dist/esm-es5/grw-trek-card.entry.js.map +1 -1
  178. package/dist/esm-es5/{i18n-22f5fa38.js → i18n-301409fd.js} +2 -2
  179. package/dist/esm-es5/i18n-301409fd.js.br +0 -0
  180. package/dist/esm-es5/i18n-301409fd.js.gz +0 -0
  181. package/dist/esm-es5/i18n-301409fd.js.map +1 -0
  182. package/dist/esm-es5/loader.js +1 -1
  183. package/dist/esm-es5/loader.js.br +0 -0
  184. package/dist/esm-es5/loader.js.gz +0 -0
  185. package/dist/esm-es5/loader.js.map +1 -1
  186. package/dist/esm-es5/{store-af9549c8.js → store-2a612007.js} +2 -2
  187. package/dist/esm-es5/store-2a612007.js.br +0 -0
  188. package/dist/esm-es5/store-2a612007.js.gz +0 -0
  189. package/dist/esm-es5/store-2a612007.js.map +1 -0
  190. package/dist/esm-es5/utils-4b2144e3.js +2 -0
  191. package/dist/esm-es5/utils-4b2144e3.js.br +0 -0
  192. package/dist/esm-es5/utils-4b2144e3.js.gz +0 -0
  193. package/dist/esm-es5/utils-4b2144e3.js.map +1 -0
  194. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  195. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  196. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  197. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  198. package/dist/geotrek-rando-widget/p-0218dbae.js +2 -0
  199. package/dist/geotrek-rando-widget/p-0218dbae.js.br +0 -0
  200. package/dist/geotrek-rando-widget/p-0218dbae.js.gz +0 -0
  201. package/dist/geotrek-rando-widget/p-0218dbae.js.map +1 -0
  202. package/dist/geotrek-rando-widget/{p-764c52b8.js → p-06df20f8.js} +2 -2
  203. package/dist/geotrek-rando-widget/p-06df20f8.js.br +0 -0
  204. package/dist/geotrek-rando-widget/p-06df20f8.js.gz +0 -0
  205. package/dist/geotrek-rando-widget/p-06df20f8.js.map +1 -0
  206. package/dist/geotrek-rando-widget/p-148f5f1d.system.js +1 -1
  207. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.br +0 -0
  208. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.gz +0 -0
  209. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.map +1 -1
  210. package/dist/geotrek-rando-widget/p-165684be.entry.js +2 -0
  211. package/dist/geotrek-rando-widget/p-165684be.entry.js.br +0 -0
  212. package/dist/geotrek-rando-widget/p-165684be.entry.js.gz +0 -0
  213. package/dist/geotrek-rando-widget/p-165684be.entry.js.map +1 -0
  214. package/dist/geotrek-rando-widget/p-4d95a8f3.entry.js +2 -0
  215. package/dist/geotrek-rando-widget/p-4d95a8f3.entry.js.br +0 -0
  216. package/dist/geotrek-rando-widget/p-4d95a8f3.entry.js.gz +0 -0
  217. package/dist/geotrek-rando-widget/p-4d95a8f3.entry.js.map +1 -0
  218. package/dist/geotrek-rando-widget/p-5194053a.system.entry.js +2 -0
  219. package/dist/geotrek-rando-widget/p-5194053a.system.entry.js.br +0 -0
  220. package/dist/geotrek-rando-widget/p-5194053a.system.entry.js.gz +0 -0
  221. package/dist/geotrek-rando-widget/p-5194053a.system.entry.js.map +1 -0
  222. package/dist/geotrek-rando-widget/p-55569971.system.js +2 -0
  223. package/dist/geotrek-rando-widget/p-55569971.system.js.br +0 -0
  224. package/dist/geotrek-rando-widget/p-55569971.system.js.gz +0 -0
  225. package/dist/geotrek-rando-widget/p-55569971.system.js.map +1 -0
  226. package/dist/geotrek-rando-widget/{p-4aaf071e.system.entry.js → p-896227f5.system.entry.js} +3 -3
  227. package/dist/geotrek-rando-widget/p-896227f5.system.entry.js.br +0 -0
  228. package/dist/geotrek-rando-widget/p-896227f5.system.entry.js.gz +0 -0
  229. package/dist/geotrek-rando-widget/p-896227f5.system.entry.js.map +1 -0
  230. package/dist/geotrek-rando-widget/{p-93dc4557.system.js → p-a1c76660.system.js} +2 -2
  231. package/dist/geotrek-rando-widget/p-a1c76660.system.js.br +0 -0
  232. package/dist/geotrek-rando-widget/p-a1c76660.system.js.gz +0 -0
  233. package/dist/geotrek-rando-widget/p-a1c76660.system.js.map +1 -0
  234. package/dist/geotrek-rando-widget/p-a2575e40.js +2 -0
  235. package/dist/geotrek-rando-widget/p-a2575e40.js.br +0 -0
  236. package/dist/geotrek-rando-widget/p-a2575e40.js.gz +0 -0
  237. package/dist/geotrek-rando-widget/p-a2575e40.js.map +1 -0
  238. package/dist/geotrek-rando-widget/{p-458ec23b.system.js → p-a9b9dd2a.system.js} +2 -2
  239. package/dist/geotrek-rando-widget/p-a9b9dd2a.system.js.br +0 -0
  240. package/dist/geotrek-rando-widget/p-a9b9dd2a.system.js.gz +0 -0
  241. package/dist/geotrek-rando-widget/p-a9b9dd2a.system.js.map +1 -0
  242. package/dist/geotrek-rando-widget/p-c7bb2715.system.entry.js +2 -0
  243. package/dist/geotrek-rando-widget/p-c7bb2715.system.entry.js.br +0 -0
  244. package/dist/geotrek-rando-widget/p-c7bb2715.system.entry.js.gz +0 -0
  245. package/dist/geotrek-rando-widget/p-c7bb2715.system.entry.js.map +1 -0
  246. package/dist/geotrek-rando-widget/{p-02514aa7.entry.js → p-d92c9342.entry.js} +4 -4
  247. package/dist/geotrek-rando-widget/p-d92c9342.entry.js.br +0 -0
  248. package/dist/geotrek-rando-widget/p-d92c9342.entry.js.gz +0 -0
  249. package/dist/geotrek-rando-widget/p-d92c9342.entry.js.map +1 -0
  250. package/dist/geotrek-rando-widget/p-e4dba310.system.entry.js +2 -0
  251. package/dist/geotrek-rando-widget/p-e4dba310.system.entry.js.br +0 -0
  252. package/dist/geotrek-rando-widget/p-e4dba310.system.entry.js.gz +0 -0
  253. package/dist/geotrek-rando-widget/p-e4dba310.system.entry.js.map +1 -0
  254. package/dist/geotrek-rando-widget/p-fa9a840a.entry.js +2 -0
  255. package/dist/geotrek-rando-widget/p-fa9a840a.entry.js.br +0 -0
  256. package/dist/geotrek-rando-widget/p-fa9a840a.entry.js.gz +0 -0
  257. package/dist/geotrek-rando-widget/p-fa9a840a.entry.js.map +1 -0
  258. package/dist/types/components/grw-app/grw-app.d.ts +0 -2
  259. package/dist/types/components/grw-map/grw-map.d.ts +0 -2
  260. package/dist/types/components.d.ts +0 -8
  261. package/dist/types/i18n/i18n.d.ts +1 -0
  262. package/dist/types/store/store.d.ts +3 -1
  263. package/dist/types/types/types.d.ts +7 -0
  264. package/package.json +1 -1
  265. package/dist/cjs/i18n-c0a655bf.js.br +0 -0
  266. package/dist/cjs/i18n-c0a655bf.js.gz +0 -0
  267. package/dist/cjs/i18n-c0a655bf.js.map +0 -1
  268. package/dist/cjs/store-8489a70a.js.br +0 -0
  269. package/dist/cjs/store-8489a70a.js.gz +0 -0
  270. package/dist/cjs/store-8489a70a.js.map +0 -1
  271. package/dist/cjs/utils-51ed599a.js.br +0 -0
  272. package/dist/cjs/utils-51ed599a.js.gz +0 -0
  273. package/dist/cjs/utils-51ed599a.js.map +0 -1
  274. package/dist/collection/assets/departure-arrival.svg +0 -1
  275. package/dist/collection/assets/departure-arrival.svg.br +0 -0
  276. package/dist/collection/assets/departure-arrival.svg.gz +0 -0
  277. package/dist/esm/i18n-22f5fa38.js.br +0 -0
  278. package/dist/esm/i18n-22f5fa38.js.gz +0 -0
  279. package/dist/esm/i18n-22f5fa38.js.map +0 -1
  280. package/dist/esm/store-af9549c8.js.br +0 -0
  281. package/dist/esm/store-af9549c8.js.gz +0 -0
  282. package/dist/esm/store-af9549c8.js.map +0 -1
  283. package/dist/esm/utils-85317c68.js.br +0 -0
  284. package/dist/esm/utils-85317c68.js.gz +0 -0
  285. package/dist/esm/utils-85317c68.js.map +0 -1
  286. package/dist/esm-es5/i18n-22f5fa38.js.br +0 -0
  287. package/dist/esm-es5/i18n-22f5fa38.js.gz +0 -0
  288. package/dist/esm-es5/i18n-22f5fa38.js.map +0 -1
  289. package/dist/esm-es5/store-af9549c8.js.br +0 -0
  290. package/dist/esm-es5/store-af9549c8.js.gz +0 -0
  291. package/dist/esm-es5/store-af9549c8.js.map +0 -1
  292. package/dist/esm-es5/utils-85317c68.js +0 -2
  293. package/dist/esm-es5/utils-85317c68.js.br +0 -0
  294. package/dist/esm-es5/utils-85317c68.js.gz +0 -0
  295. package/dist/esm-es5/utils-85317c68.js.map +0 -1
  296. package/dist/geotrek-rando-widget/assets/departure-arrival.svg +0 -1
  297. package/dist/geotrek-rando-widget/assets/departure-arrival.svg.br +0 -0
  298. package/dist/geotrek-rando-widget/assets/departure-arrival.svg.gz +0 -0
  299. package/dist/geotrek-rando-widget/p-00f05696.js +0 -2
  300. package/dist/geotrek-rando-widget/p-00f05696.js.br +0 -0
  301. package/dist/geotrek-rando-widget/p-00f05696.js.gz +0 -0
  302. package/dist/geotrek-rando-widget/p-00f05696.js.map +0 -1
  303. package/dist/geotrek-rando-widget/p-02514aa7.entry.js.br +0 -0
  304. package/dist/geotrek-rando-widget/p-02514aa7.entry.js.gz +0 -0
  305. package/dist/geotrek-rando-widget/p-02514aa7.entry.js.map +0 -1
  306. package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js +0 -2
  307. package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js.br +0 -0
  308. package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js.gz +0 -0
  309. package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js.map +0 -1
  310. package/dist/geotrek-rando-widget/p-458ec23b.system.js.br +0 -0
  311. package/dist/geotrek-rando-widget/p-458ec23b.system.js.gz +0 -0
  312. package/dist/geotrek-rando-widget/p-458ec23b.system.js.map +0 -1
  313. package/dist/geotrek-rando-widget/p-4aaf071e.system.entry.js.br +0 -0
  314. package/dist/geotrek-rando-widget/p-4aaf071e.system.entry.js.gz +0 -0
  315. package/dist/geotrek-rando-widget/p-4aaf071e.system.entry.js.map +0 -1
  316. package/dist/geotrek-rando-widget/p-764c52b8.js.br +0 -0
  317. package/dist/geotrek-rando-widget/p-764c52b8.js.gz +0 -0
  318. package/dist/geotrek-rando-widget/p-764c52b8.js.map +0 -1
  319. package/dist/geotrek-rando-widget/p-93dc4557.system.js.br +0 -0
  320. package/dist/geotrek-rando-widget/p-93dc4557.system.js.gz +0 -0
  321. package/dist/geotrek-rando-widget/p-93dc4557.system.js.map +0 -1
  322. package/dist/geotrek-rando-widget/p-a1530528.js +0 -2
  323. package/dist/geotrek-rando-widget/p-a1530528.js.br +0 -0
  324. package/dist/geotrek-rando-widget/p-a1530528.js.gz +0 -0
  325. package/dist/geotrek-rando-widget/p-a1530528.js.map +0 -1
  326. package/dist/geotrek-rando-widget/p-a7477417.system.entry.js +0 -2
  327. package/dist/geotrek-rando-widget/p-a7477417.system.entry.js.br +0 -0
  328. package/dist/geotrek-rando-widget/p-a7477417.system.entry.js.gz +0 -0
  329. package/dist/geotrek-rando-widget/p-a7477417.system.entry.js.map +0 -1
  330. package/dist/geotrek-rando-widget/p-d7444266.entry.js +0 -2
  331. package/dist/geotrek-rando-widget/p-d7444266.entry.js.br +0 -0
  332. package/dist/geotrek-rando-widget/p-d7444266.entry.js.gz +0 -0
  333. package/dist/geotrek-rando-widget/p-d7444266.entry.js.map +0 -1
  334. package/dist/geotrek-rando-widget/p-d7e384ea.entry.js +0 -2
  335. package/dist/geotrek-rando-widget/p-d7e384ea.entry.js.br +0 -0
  336. package/dist/geotrek-rando-widget/p-d7e384ea.entry.js.gz +0 -0
  337. package/dist/geotrek-rando-widget/p-d7e384ea.entry.js.map +0 -1
  338. package/dist/geotrek-rando-widget/p-dae5ab8a.system.js +0 -2
  339. package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.br +0 -0
  340. package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.gz +0 -0
  341. package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.map +0 -1
  342. package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js +0 -2
  343. package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js.br +0 -0
  344. package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js.gz +0 -0
  345. package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js.map +0 -1
  346. package/dist/geotrek-rando-widget/p-fd346455.system.entry.js +0 -2
  347. package/dist/geotrek-rando-widget/p-fd346455.system.entry.js.br +0 -0
  348. package/dist/geotrek-rando-widget/p-fd346455.system.entry.js.gz +0 -0
  349. package/dist/geotrek-rando-widget/p-fd346455.system.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"grw-map.js","sourceRoot":"","s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AAQ,GAAQ,CACxB,CACP,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Event, EventEmitter, getAssetPath, Build, Listen } from '@stencil/core';\nimport { Feature, FeatureCollection } from 'geojson';\nimport L from 'leaflet';\nimport 'leaflet-rotate';\nimport 'leaflet.locatecontrol';\nimport '@raruto/leaflet-elevation/dist/leaflet-elevation.min.js';\nimport state, { onChange, reset } from 'store/store';\nimport { translate } from 'i18n/i18n';\n\n@Component({\n tag: 'grw-map',\n styleUrl: 'grw-map.scss',\n})\nexport class GrwMap {\n mapRef: HTMLElement;\n elevationRef: HTMLElement;\n @Event() trekCardPress: EventEmitter<number>;\n @State() mapIsReady = false;\n @Prop() urlLayer: string;\n @Prop() attribution: string;\n @Prop() center = '1, 1';\n @Prop() zoom = 10;\n\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorBackground = '#fef7ff';\n\n @Prop() colorTrekLine = '#6b0030';\n @Prop() colorDepartureIcon = '#006b3b';\n @Prop() colorArrivalIcon = '#85003b';\n @Prop() colorSensitiveArea = '\t#4974a5';\n @Prop() colorPoiIcon = '#974c6e';\n @Prop() useGradient = false;\n\n @Prop() resetStoreOnDisconnected = true;\n @Prop() isLargeView = false;\n map: L.Map;\n resizeObserver: ResizeObserver;\n bounds;\n treksLayer: L.GeoJSON<any>;\n currentTrekLayer: L.GeoJSON<any>;\n currentPointsReferenceLayer: L.GeoJSON<any>;\n currentParkingLayer: L.GeoJSON<any>;\n currentSensitiveAreasLayer: L.GeoJSON<any>;\n currentPoisLayer: L.GeoJSON<any>;\n currentInformationDesksLayer: L.GeoJSON<any>;\n elevationControl: L.Control.Layers;\n layersControl: L.Control.Layers;\n userLayersState: {\n [key: number]: boolean;\n } = {};\n\n handleTreksWithinBoundsBind: (event: any) => void = this.handleTreksWithinBounds.bind(this);\n\n @Listen('centerOnMap', { target: 'window' })\n onCenterOnMap(event: CustomEvent<{ latitude: number; longitude: number }>) {\n this.map.setView(new L.LatLng(event.detail.latitude, event.detail.longitude), 17, { animate: false });\n }\n\n @Listen('descriptionReferenceIsInViewport', { target: 'window' })\n descriptionReferenceIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPointsReferenceLayer) {\n this.handleLayerVisibility(event.detail, this.currentPointsReferenceLayer);\n }\n }\n\n @Listen('parkingIsInViewport', { target: 'window' })\n parkingIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentParkingLayer) {\n this.handleLayerVisibility(event.detail, this.currentParkingLayer);\n }\n }\n\n @Listen('informationDeskIsInViewport', { target: 'window' })\n onInformationDesksIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentInformationDesksLayer) {\n this.handleLayerVisibility(event.detail, this.currentInformationDesksLayer);\n }\n }\n\n @Listen('sensitiveAreaIsInViewport', { target: 'window' })\n sensitiveAreaIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentSensitiveAreasLayer) {\n this.handleLayerVisibility(event.detail, this.currentSensitiveAreasLayer);\n }\n }\n\n @Listen('poiIsInViewport', { target: 'window' })\n poiIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPoisLayer) {\n this.handleLayerVisibility(event.detail, this.currentPoisLayer);\n }\n }\n\n componentDidLoad() {\n this.map = L.map(this.mapRef, {\n center: this.center.split(',').map(Number) as L.LatLngExpression,\n zoom: this.zoom,\n });\n\n L.control.scale({ metric: true, imperial: false }).addTo(this.map);\n (L.control as any).locate({ showPopup: false }).addTo(this.map);\n\n L.tileLayer(this.urlLayer, {\n maxZoom: 19,\n attribution: this.attribution,\n }).addTo(this.map);\n\n if (state.currentTrek) {\n this.addTrek();\n } else if (state.currentTreks) {\n this.addTreks();\n }\n\n onChange('currentTreks', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else if (state.currentTreks) {\n this.removeTrek();\n this.addTreks();\n }\n });\n\n onChange('currentTrek', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else {\n this.removeTrek();\n this.addTreks();\n }\n });\n }\n\n handleLayerVisibility(visible: boolean, layer: L.GeoJSON) {\n if (visible && !this.map.hasLayer(layer)) {\n layer.addTo(this.map);\n } else if (this.map.hasLayer(layer) && !this.userLayersState[(layer as any)._leaflet_id]) {\n this.map.removeLayer(layer);\n }\n this.handleLayersControlEvent();\n }\n\n addTreks() {\n const trekscurrentDepartureCoordinates = [];\n const treksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n if (state.currentTreks) {\n for (const trek of state.currentTreks) {\n trekscurrentDepartureCoordinates.push(trek.departure_geom);\n treksFeatureCollection.features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: trek.departure_geom },\n properties: {\n id: trek.id,\n name: trek.name,\n practice: state.practices.find(practice => practice.id === trek.practice)?.pictogram,\n imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,\n },\n });\n }\n }\n\n if (!this.treksLayer) {\n if (trekscurrentDepartureCoordinates.length > 0 && !state.currentMapTreksBounds) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n if (state.currentMapTreksBounds) {\n this.bounds = state.currentMapTreksBounds;\n }\n }\n this.treksLayer = L.geoJSON(treksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.practice ? `<img src=${geoJsonPoint.properties.practice} />` : `<img />`,\n className: 'trek-marker',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('click', () => {\n const trekDeparturePopup = L.DomUtil.create('div');\n trekDeparturePopup.className = 'trek-departure-popup';\n trekDeparturePopup.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);\n const trekName = L.DomUtil.create('div');\n trekName.innerHTML = geoJsonPoint.properties.name;\n trekName.className = 'trek-name';\n if (geoJsonPoint.properties.imgSrc) {\n trekName.className += ' trek-name-margin-top';\n const trekImg = L.DomUtil.create('img');\n trekImg.src = geoJsonPoint.properties.imgSrc;\n trekDeparturePopup.appendChild(trekImg);\n }\n trekDeparturePopup.appendChild(trekName);\n layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false } as any).openPopup();\n });\n },\n }).addTo(this.map);\n } else {\n if (trekscurrentDepartureCoordinates.length > 0) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n this.map.fire('moveend');\n }\n this.treksLayer.clearLayers();\n this.treksLayer.addData(treksFeatureCollection);\n }\n\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n\n this.map.on('moveend', this.handleTreksWithinBoundsBind);\n }\n\n removeTreks() {\n if (this.treksLayer) {\n state.currentMapTreksBounds = this.map.getBounds();\n this.map.removeLayer(this.treksLayer);\n this.treksLayer = null;\n this.map.off('moveend', this.handleTreksWithinBoundsBind);\n }\n }\n\n handleTreksWithinBounds() {\n if (\n (state.currentTreks && !state.currentMapTreksBounds) ||\n (state.currentTreks && state.currentMapTreksBounds && state.currentMapTreksBounds.toBBoxString() !== this.map.getBounds().toBBoxString())\n ) {\n state.treksWithinBounds = state.currentTreks.filter(trek => this.map.getBounds().contains(L.latLng(trek.departure_geom[1], trek.departure_geom[0])));\n }\n }\n\n addTrek() {\n const currentTrekFeature: Feature = {\n type: 'Feature',\n geometry: state.currentTrek.geometry,\n properties: {},\n };\n\n this.currentTrekLayer = L.geoJSON(currentTrekFeature, {\n style: () => ({\n color: 'transparent',\n }),\n interactive: false,\n }).addTo(this.map);\n\n if (state.currentTrek.parking_location) {\n const currentParking: Feature = {\n type: 'Feature',\n properties: {},\n geometry: { type: 'Point', coordinates: state.currentTrek.parking_location },\n };\n this.currentParkingLayer = L.geoJSON(currentParking, {\n pointToLayer: (_geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: '<div>P</div>',\n className: 'parking-icon',\n iconSize: 48,\n iconAnchor: [0, 48],\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any),\n });\n }\n\n if (state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0) {\n const currentSensitiveAreasFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const sensitiveArea of state.currentSensitiveAreas) {\n currentSensitiveAreasFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: sensitiveArea.name },\n geometry: sensitiveArea.geometry,\n });\n }\n\n this.currentSensitiveAreasLayer = L.geoJSON(currentSensitiveAreasFeatureCollection, {\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const sensitiveAreaTooltip = L.DomUtil.create('div');\n sensitiveAreaTooltip.className = 'sensitive-area-tooltip';\n const sensitiveAreaName = L.DomUtil.create('div');\n sensitiveAreaName.innerHTML = geoJsonPoint.properties.name;\n sensitiveAreaName.className = 'sensitive-area-name';\n sensitiveAreaTooltip.appendChild(sensitiveAreaName);\n layer.bindTooltip(sensitiveAreaTooltip).openTooltip();\n });\n },\n style: () => ({ color: this.colorSensitiveArea }),\n });\n }\n\n if (state.currentPois && state.currentPois.length > 0) {\n const currentPoisFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentPoi of state.currentPois) {\n currentPoisFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentPoi.name, type_pictogram: state.poiTypes.find(poiType => poiType.id === currentPoi.type)?.pictogram },\n geometry: currentPoi.geometry,\n });\n }\n\n this.currentPoisLayer = L.geoJSON(currentPoisFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'poi-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const poiTooltip = L.DomUtil.create('div');\n poiTooltip.className = 'poi-tooltip';\n const poiName = L.DomUtil.create('div');\n poiName.innerHTML = geoJsonPoint.properties.name;\n poiName.className = 'poi-name';\n poiTooltip.appendChild(poiName);\n layer.bindTooltip(poiTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentInformationDesks && state.currentInformationDesks.length > 0) {\n const currentInformationDesksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentInformationDesk of state.currentInformationDesks.filter(currentInformationDesks =>\n state.currentTrek.information_desks.includes(currentInformationDesks.id),\n )) {\n if (currentInformationDesk.latitude && currentInformationDesk.longitude) {\n currentInformationDesksFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentInformationDesk.name, type_pictogram: currentInformationDesk.type.pictogram },\n geometry: { type: 'Point', coordinates: [Number(currentInformationDesk.longitude), Number(currentInformationDesk.latitude)] },\n });\n }\n }\n\n this.currentInformationDesksLayer = L.geoJSON(currentInformationDesksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'information-desks-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const informationDesksTooltip = L.DomUtil.create('div');\n informationDesksTooltip.className = 'information-desks-tooltip';\n const informationDesksName = L.DomUtil.create('div');\n informationDesksName.innerHTML = geoJsonPoint.properties.name;\n informationDesksName.className = 'information-desks-name';\n informationDesksTooltip.appendChild(informationDesksName);\n layer.bindTooltip(informationDesksTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentTrek.points_reference) {\n const currentPointsReferenceFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n currentPointsReferenceFeatureCollection.features.push({\n type: 'Feature',\n properties: {},\n geometry: state.currentTrek.points_reference,\n });\n\n let index = 0;\n this.currentPointsReferenceLayer = L.geoJSON(currentPointsReferenceFeatureCollection, {\n pointToLayer: (_geoJsonPoint, latlng) => {\n index += 1;\n return L.marker(latlng, {\n icon: L.divIcon({\n html: index,\n className: 'point-reference-icon',\n iconSize: 24,\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any);\n },\n });\n }\n const elevationOptions = {\n srcFolder: 'https://unpkg.com/@raruto/leaflet-elevation/src/',\n elevationDiv: `#elevation`,\n theme: `custom-theme${!this.useGradient ? ' use-theme-color' : ''}`,\n detached: true,\n height: 250,\n wptIcons: true,\n wptLabels: true,\n collapsed: false,\n autohide: false,\n distanceMarkers: { distance: false, direction: true },\n hotline: this.useGradient,\n closeBtn: false,\n summary: false,\n time: false,\n timestamps: false,\n legend: false,\n downloadLink: false,\n autofitBounds: false,\n ruler: false,\n edgeScale: false,\n waypoints: false,\n almostOver: false,\n speed: false,\n slope: false,\n acceleration: false,\n reverseCoords: false,\n imperial: false,\n dragging: false,\n zooming: false,\n handlers: ['Altitude', 'Distance', 'Slope', 'LinearGradient'],\n linearGradient: {\n attr: 'z',\n path: 'altitude',\n range: { 0.0: '#008800', 0.5: '#ffff00', 1.0: '#ff0000' },\n min: 'elevation_min',\n max: 'elevation_max',\n },\n };\n this.elevationControl = (L.control as any).elevation({ ...elevationOptions }).addTo(this.map);\n const elevation = JSON.stringify({\n name: `${state.currentTrek.name}`,\n type: 'FeatureCollection',\n features: [{ type: 'Feature', geometry: { type: 'LineString', coordinates: state.currentTrek.geometry.coordinates }, properties: null }],\n });\n (this.elevationControl as any).load(elevation);\n\n const overlays = {};\n if (this.currentPointsReferenceLayer) {\n overlays[translate[state.language].layers.pointsReference] = this.currentPointsReferenceLayer;\n }\n if (this.currentParkingLayer) {\n overlays[translate[state.language].layers.parking] = this.currentParkingLayer;\n }\n if (this.currentSensitiveAreasLayer) {\n overlays[translate[state.language].layers.sensitiveArea] = this.currentSensitiveAreasLayer;\n }\n if (this.currentInformationDesksLayer) {\n overlays[translate[state.language].layers.informationPlaces] = this.currentInformationDesksLayer;\n }\n if (this.currentPoisLayer) {\n overlays[translate[state.language].layers.pois] = this.currentPoisLayer;\n }\n this.layersControl = L.control.layers(null, overlays, { collapsed: true }).addTo(this.map);\n this.handleLayersControlEvent();\n\n this.bounds = L.latLngBounds(state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n }\n\n handleLayersControlEvent() {\n const userLayersState: HTMLInputElement[] = (this.layersControl as any)._layerControlInputs;\n userLayersState.forEach((userLayerState: any) => {\n userLayerState.onchange = event => {\n this.userLayersState[userLayerState.layerId] = (event.target as any).checked;\n };\n });\n }\n\n removeTrek() {\n if (this.layersControl) {\n this.map.removeControl(this.layersControl);\n this.layersControl = null;\n }\n\n if (this.elevationControl) {\n (this.elevationControl as any).clear();\n this.map.removeControl(this.elevationControl);\n this.elevationControl = null;\n }\n\n if (this.currentTrekLayer) {\n this.map.removeLayer(this.currentTrekLayer);\n this.currentTrekLayer = null;\n }\n\n if (this.currentParkingLayer) {\n this.map.removeLayer(this.currentParkingLayer);\n this.currentParkingLayer = null;\n }\n\n if (this.currentSensitiveAreasLayer) {\n this.map.removeLayer(this.currentSensitiveAreasLayer);\n this.currentSensitiveAreasLayer = null;\n }\n\n if (this.currentPoisLayer) {\n this.map.removeLayer(this.currentPoisLayer);\n this.currentPoisLayer = null;\n }\n\n if (this.currentInformationDesksLayer) {\n this.map.removeLayer(this.currentInformationDesksLayer);\n this.currentInformationDesksLayer = null;\n }\n\n if (this.currentPointsReferenceLayer) {\n this.map.removeLayer(this.currentPointsReferenceLayer);\n this.currentPointsReferenceLayer = null;\n }\n }\n\n disconnectedCallback() {\n if (this.resetStoreOnDisconnected) {\n reset();\n }\n }\n\n render() {\n const layersImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/layers.svg`);\n return (\n <Host\n style={{\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-departure-icon': this.colorDepartureIcon,\n '--color-arrival-icon': this.colorArrivalIcon,\n '--color-poi-icon': this.colorPoiIcon,\n '--color-trek-line': this.colorTrekLine,\n '--layers-image-src': `url(${layersImageSrc})`,\n '--map-bottom-space-height': this.isLargeView ? '0px' : '70px',\n }}\n >\n <div id=\"map\" style={{}} class={state.currentTrek ? 'trek-map' : 'treks-map'} ref={el => (this.mapRef = el)}></div>\n {state.currentTrek && (\n <div>\n <div id=\"elevation\" ref={el => (this.elevationRef = el)}></div>\n <div class=\"map-bottom-space\"></div>\n </div>\n )}\n\n {!this.mapIsReady && (\n <div class=\"map-loader-container\">\n <span class=\"loader\"></span>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"grw-map.js","sourceRoot":"","sources":["../../../src/components/grw-map/grw-map.tsx"],"names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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Event, EventEmitter, getAssetPath, Build, Listen } from '@stencil/core';\nimport { Feature, FeatureCollection } from 'geojson';\nimport L from 'leaflet';\nimport 'leaflet-rotate';\nimport 'leaflet.locatecontrol';\nimport '@raruto/leaflet-elevation/dist/leaflet-elevation.min.js';\nimport state, { onChange, reset } from 'store/store';\nimport { translate } from 'i18n/i18n';\n\n@Component({\n tag: 'grw-map',\n styleUrl: 'grw-map.scss',\n})\nexport class GrwMap {\n mapRef: HTMLElement;\n elevationRef: HTMLElement;\n @Event() trekCardPress: EventEmitter<number>;\n @State() mapIsReady = false;\n @Prop() urlLayer: string;\n @Prop() attribution: string;\n @Prop() center = '1, 1';\n @Prop() zoom = 10;\n\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorBackground = '#fef7ff';\n\n @Prop() colorTrekLine = '#6b0030';\n @Prop() colorSensitiveArea = '\t#4974a5';\n @Prop() colorPoiIcon = '#974c6e';\n @Prop() useGradient = false;\n\n @Prop() resetStoreOnDisconnected = true;\n @Prop() isLargeView = false;\n map: L.Map;\n resizeObserver: ResizeObserver;\n bounds;\n treksLayer: L.GeoJSON<any>;\n currentTrekLayer: L.GeoJSON<any>;\n currentPointsReferenceLayer: L.GeoJSON<any>;\n currentParkingLayer: L.GeoJSON<any>;\n currentSensitiveAreasLayer: L.GeoJSON<any>;\n currentPoisLayer: L.GeoJSON<any>;\n currentInformationDesksLayer: L.GeoJSON<any>;\n elevationControl: L.Control.Layers;\n layersControl: L.Control.Layers;\n userLayersState: {\n [key: number]: boolean;\n } = {};\n\n handleTreksWithinBoundsBind: (event: any) => void = this.handleTreksWithinBounds.bind(this);\n\n @Listen('centerOnMap', { target: 'window' })\n onCenterOnMap(event: CustomEvent<{ latitude: number; longitude: number }>) {\n this.map.setView(new L.LatLng(event.detail.latitude, event.detail.longitude), 17, { animate: false });\n }\n\n @Listen('descriptionReferenceIsInViewport', { target: 'window' })\n descriptionReferenceIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPointsReferenceLayer) {\n this.handleLayerVisibility(event.detail, this.currentPointsReferenceLayer);\n }\n }\n\n @Listen('parkingIsInViewport', { target: 'window' })\n parkingIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentParkingLayer) {\n this.handleLayerVisibility(event.detail, this.currentParkingLayer);\n }\n }\n\n @Listen('informationDeskIsInViewport', { target: 'window' })\n onInformationDesksIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentInformationDesksLayer) {\n this.handleLayerVisibility(event.detail, this.currentInformationDesksLayer);\n }\n }\n\n @Listen('sensitiveAreaIsInViewport', { target: 'window' })\n sensitiveAreaIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentSensitiveAreasLayer) {\n this.handleLayerVisibility(event.detail, this.currentSensitiveAreasLayer);\n }\n }\n\n @Listen('poiIsInViewport', { target: 'window' })\n poiIsInViewport(event: CustomEvent<boolean>) {\n if (this.currentPoisLayer) {\n this.handleLayerVisibility(event.detail, this.currentPoisLayer);\n }\n }\n\n componentDidLoad() {\n this.map = L.map(this.mapRef, {\n center: this.center.split(',').map(Number) as L.LatLngExpression,\n zoom: this.zoom,\n });\n\n L.control.scale({ metric: true, imperial: false }).addTo(this.map);\n (L.control as any).locate({ showPopup: false }).addTo(this.map);\n\n L.tileLayer(this.urlLayer, {\n maxZoom: 19,\n attribution: this.attribution,\n }).addTo(this.map);\n\n if (state.currentTrek) {\n this.addTrek();\n } else if (state.currentTreks) {\n this.addTreks();\n }\n\n onChange('currentTreks', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else if (state.currentTreks) {\n this.removeTrek();\n this.addTreks();\n }\n });\n\n onChange('currentTrek', () => {\n if (state.currentTrek) {\n this.removeTreks();\n this.addTrek();\n } else {\n this.removeTrek();\n this.addTreks();\n }\n });\n }\n\n handleLayerVisibility(visible: boolean, layer: L.GeoJSON) {\n if (visible && !this.map.hasLayer(layer)) {\n layer.addTo(this.map);\n } else if (this.map.hasLayer(layer) && !this.userLayersState[(layer as any)._leaflet_id]) {\n this.map.removeLayer(layer);\n }\n this.handleLayersControlEvent();\n }\n\n addTreks() {\n const trekscurrentDepartureCoordinates = [];\n const treksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n if (state.currentTreks) {\n for (const trek of state.currentTreks) {\n trekscurrentDepartureCoordinates.push(trek.departure_geom);\n treksFeatureCollection.features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: trek.departure_geom },\n properties: {\n id: trek.id,\n name: trek.name,\n practice: state.practices.find(practice => practice.id === trek.practice)?.pictogram,\n imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,\n },\n });\n }\n }\n\n if (!this.treksLayer) {\n if (trekscurrentDepartureCoordinates.length > 0 && !state.currentMapTreksBounds) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n if (state.currentMapTreksBounds) {\n this.bounds = state.currentMapTreksBounds;\n }\n }\n this.treksLayer = L.geoJSON(treksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.practice ? `<img src=${geoJsonPoint.properties.practice} />` : `<img />`,\n className: 'trek-marker',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('click', () => {\n const trekDeparturePopup = L.DomUtil.create('div');\n trekDeparturePopup.className = 'trek-departure-popup';\n trekDeparturePopup.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);\n const trekName = L.DomUtil.create('div');\n trekName.innerHTML = geoJsonPoint.properties.name;\n trekName.className = 'trek-name';\n if (geoJsonPoint.properties.imgSrc) {\n trekName.className += ' trek-name-margin-top';\n const trekImg = L.DomUtil.create('img');\n trekImg.src = geoJsonPoint.properties.imgSrc;\n trekDeparturePopup.appendChild(trekImg);\n }\n trekDeparturePopup.appendChild(trekName);\n layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false } as any).openPopup();\n });\n },\n }).addTo(this.map);\n } else {\n if (trekscurrentDepartureCoordinates.length > 0) {\n this.bounds = L.latLngBounds(trekscurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n } else {\n this.map.fire('moveend');\n }\n this.treksLayer.clearLayers();\n this.treksLayer.addData(treksFeatureCollection);\n }\n\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n\n this.map.on('moveend', this.handleTreksWithinBoundsBind);\n }\n\n removeTreks() {\n if (this.treksLayer) {\n state.currentMapTreksBounds = this.map.getBounds();\n this.map.removeLayer(this.treksLayer);\n this.treksLayer = null;\n this.map.off('moveend', this.handleTreksWithinBoundsBind);\n }\n }\n\n handleTreksWithinBounds() {\n if (\n (state.currentTreks && !state.currentMapTreksBounds) ||\n (state.currentTreks && state.currentMapTreksBounds && state.currentMapTreksBounds.toBBoxString() !== this.map.getBounds().toBBoxString())\n ) {\n state.treksWithinBounds = state.currentTreks.filter(trek => this.map.getBounds().contains(L.latLng(trek.departure_geom[1], trek.departure_geom[0])));\n }\n }\n\n addTrek() {\n const currentTrekFeature: Feature = {\n type: 'Feature',\n geometry: state.currentTrek.geometry,\n properties: {},\n };\n\n this.currentTrekLayer = L.geoJSON(currentTrekFeature, {\n style: () => ({\n color: 'transparent',\n }),\n interactive: false,\n }).addTo(this.map);\n\n if (state.currentTrek.parking_location) {\n const currentParking: Feature = {\n type: 'Feature',\n properties: {},\n geometry: { type: 'Point', coordinates: state.currentTrek.parking_location },\n };\n this.currentParkingLayer = L.geoJSON(currentParking, {\n pointToLayer: (_geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: '<div>P</div>',\n className: 'parking-icon',\n iconSize: 48,\n iconAnchor: [0, 48],\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any),\n });\n }\n\n if (state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0) {\n const currentSensitiveAreasFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const sensitiveArea of state.currentSensitiveAreas) {\n currentSensitiveAreasFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: sensitiveArea.name },\n geometry: sensitiveArea.geometry,\n });\n }\n\n this.currentSensitiveAreasLayer = L.geoJSON(currentSensitiveAreasFeatureCollection, {\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const sensitiveAreaTooltip = L.DomUtil.create('div');\n sensitiveAreaTooltip.className = 'sensitive-area-tooltip';\n const sensitiveAreaName = L.DomUtil.create('div');\n sensitiveAreaName.innerHTML = geoJsonPoint.properties.name;\n sensitiveAreaName.className = 'sensitive-area-name';\n sensitiveAreaTooltip.appendChild(sensitiveAreaName);\n layer.bindTooltip(sensitiveAreaTooltip).openTooltip();\n });\n },\n style: () => ({ color: this.colorSensitiveArea }),\n });\n }\n\n if (state.currentPois && state.currentPois.length > 0) {\n const currentPoisFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentPoi of state.currentPois) {\n currentPoisFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentPoi.name, type_pictogram: state.poiTypes.find(poiType => poiType.id === currentPoi.type)?.pictogram },\n geometry: currentPoi.geometry,\n });\n }\n\n this.currentPoisLayer = L.geoJSON(currentPoisFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'poi-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const poiTooltip = L.DomUtil.create('div');\n poiTooltip.className = 'poi-tooltip';\n const poiName = L.DomUtil.create('div');\n poiName.innerHTML = geoJsonPoint.properties.name;\n poiName.className = 'poi-name';\n poiTooltip.appendChild(poiName);\n layer.bindTooltip(poiTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentInformationDesks && state.currentInformationDesks.length > 0) {\n const currentInformationDesksFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n for (const currentInformationDesk of state.currentInformationDesks.filter(currentInformationDesks =>\n state.currentTrek.information_desks.includes(currentInformationDesks.id),\n )) {\n if (currentInformationDesk.latitude && currentInformationDesk.longitude) {\n currentInformationDesksFeatureCollection.features.push({\n type: 'Feature',\n properties: { name: currentInformationDesk.name, type_pictogram: currentInformationDesk.type.pictogram },\n geometry: { type: 'Point', coordinates: [Number(currentInformationDesk.longitude), Number(currentInformationDesk.latitude)] },\n });\n }\n }\n\n this.currentInformationDesksLayer = L.geoJSON(currentInformationDesksFeatureCollection, {\n pointToLayer: (geoJsonPoint, latlng) =>\n L.marker(latlng, {\n icon: L.divIcon({\n html: geoJsonPoint.properties.type_pictogram ? `<img src=${geoJsonPoint.properties.type_pictogram} />` : `<img />`,\n className: 'information-desks-icon',\n iconSize: 48,\n } as any),\n autoPanOnFocus: false,\n } as any),\n onEachFeature: (geoJsonPoint, layer) => {\n layer.once('mouseover', () => {\n const informationDesksTooltip = L.DomUtil.create('div');\n informationDesksTooltip.className = 'information-desks-tooltip';\n const informationDesksName = L.DomUtil.create('div');\n informationDesksName.innerHTML = geoJsonPoint.properties.name;\n informationDesksName.className = 'information-desks-name';\n informationDesksTooltip.appendChild(informationDesksName);\n layer.bindTooltip(informationDesksTooltip).openTooltip();\n });\n },\n });\n }\n\n if (state.currentTrek.points_reference) {\n const currentPointsReferenceFeatureCollection: FeatureCollection = {\n type: 'FeatureCollection',\n features: [],\n };\n\n currentPointsReferenceFeatureCollection.features.push({\n type: 'Feature',\n properties: {},\n geometry: state.currentTrek.points_reference,\n });\n\n let index = 0;\n this.currentPointsReferenceLayer = L.geoJSON(currentPointsReferenceFeatureCollection, {\n pointToLayer: (_geoJsonPoint, latlng) => {\n index += 1;\n return L.marker(latlng, {\n icon: L.divIcon({\n html: index,\n className: 'point-reference-icon',\n iconSize: 24,\n } as any),\n autoPanOnFocus: false,\n interactive: false,\n } as any);\n },\n });\n }\n const elevationOptions = {\n srcFolder: 'https://unpkg.com/@raruto/leaflet-elevation/src/',\n elevationDiv: `#elevation`,\n theme: `custom-theme${!this.useGradient ? ' use-theme-color' : ''}`,\n detached: true,\n height: 250,\n wptIcons: true,\n wptLabels: true,\n collapsed: false,\n autohide: false,\n distanceMarkers: { distance: false, direction: true },\n hotline: this.useGradient,\n closeBtn: false,\n summary: false,\n time: false,\n timestamps: false,\n legend: false,\n downloadLink: false,\n autofitBounds: false,\n ruler: false,\n edgeScale: false,\n waypoints: false,\n almostOver: false,\n speed: false,\n slope: false,\n acceleration: false,\n reverseCoords: false,\n imperial: false,\n dragging: false,\n zooming: false,\n handlers: ['Altitude', 'Distance', 'Slope', 'LinearGradient'],\n linearGradient: {\n attr: 'z',\n path: 'altitude',\n range: { 0.0: '#008800', 0.5: '#ffff00', 1.0: '#ff0000' },\n min: 'elevation_min',\n max: 'elevation_max',\n },\n };\n this.elevationControl = (L.control as any).elevation({ ...elevationOptions }).addTo(this.map);\n const elevation = JSON.stringify({\n name: `${state.currentTrek.name}`,\n type: 'FeatureCollection',\n features: [{ type: 'Feature', geometry: { type: 'LineString', coordinates: state.currentTrek.geometry.coordinates }, properties: null }],\n });\n (this.elevationControl as any).load(elevation);\n\n const overlays = {};\n if (this.currentPointsReferenceLayer) {\n overlays[translate[state.language].layers.pointsReference] = this.currentPointsReferenceLayer;\n }\n if (this.currentParkingLayer) {\n overlays[translate[state.language].layers.parking] = this.currentParkingLayer;\n }\n if (this.currentSensitiveAreasLayer) {\n overlays[translate[state.language].layers.sensitiveArea] = this.currentSensitiveAreasLayer;\n }\n if (this.currentInformationDesksLayer) {\n overlays[translate[state.language].layers.informationPlaces] = this.currentInformationDesksLayer;\n }\n if (this.currentPoisLayer) {\n overlays[translate[state.language].layers.pois] = this.currentPoisLayer;\n }\n this.layersControl = L.control.layers(null, overlays, { collapsed: true }).addTo(this.map);\n this.handleLayersControlEvent();\n\n this.bounds = L.latLngBounds(state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));\n this.bounds && this.map.fitBounds(this.bounds);\n\n !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);\n }\n\n handleLayersControlEvent() {\n const userLayersState: HTMLInputElement[] = (this.layersControl as any)._layerControlInputs;\n userLayersState.forEach((userLayerState: any) => {\n userLayerState.onchange = event => {\n this.userLayersState[userLayerState.layerId] = (event.target as any).checked;\n };\n });\n }\n\n removeTrek() {\n if (this.layersControl) {\n this.map.removeControl(this.layersControl);\n this.layersControl = null;\n }\n\n if (this.elevationControl) {\n (this.elevationControl as any).clear();\n this.map.removeControl(this.elevationControl);\n this.elevationControl = null;\n }\n\n if (this.currentTrekLayer) {\n this.map.removeLayer(this.currentTrekLayer);\n this.currentTrekLayer = null;\n }\n\n if (this.currentParkingLayer) {\n this.map.removeLayer(this.currentParkingLayer);\n this.currentParkingLayer = null;\n }\n\n if (this.currentSensitiveAreasLayer) {\n this.map.removeLayer(this.currentSensitiveAreasLayer);\n this.currentSensitiveAreasLayer = null;\n }\n\n if (this.currentPoisLayer) {\n this.map.removeLayer(this.currentPoisLayer);\n this.currentPoisLayer = null;\n }\n\n if (this.currentInformationDesksLayer) {\n this.map.removeLayer(this.currentInformationDesksLayer);\n this.currentInformationDesksLayer = null;\n }\n\n if (this.currentPointsReferenceLayer) {\n this.map.removeLayer(this.currentPointsReferenceLayer);\n this.currentPointsReferenceLayer = null;\n }\n }\n\n disconnectedCallback() {\n if (this.resetStoreOnDisconnected) {\n reset();\n }\n }\n\n render() {\n const layersImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/layers.svg`);\n return (\n <Host\n style={{\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-poi-icon': this.colorPoiIcon,\n '--color-trek-line': this.colorTrekLine,\n '--layers-image-src': `url(${layersImageSrc})`,\n '--map-bottom-space-height': this.isLargeView ? '0px' : '70px',\n }}\n >\n <div id=\"map\" style={{}} class={state.currentTrek ? 'trek-map' : 'treks-map'} ref={el => (this.mapRef = el)}></div>\n {state.currentTrek && (\n <div>\n <div id=\"elevation\" ref={el => (this.elevationRef = el)}></div>\n <div class=\"map-bottom-space\"></div>\n </div>\n )}\n\n {!this.mapIsReady && (\n <div class=\"map-loader-container\">\n <span class=\"loader\"></span>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -515,13 +515,27 @@ button.swiper-pagination-bullet {
515
515
  border-radius: 12px;
516
516
  background-color: var(--color-surface-container-low);
517
517
  color: var(--color-on-surface);
518
- --swiper-navigation-size: 32px;
519
- --swiper-navigation-color: var(--color-primary-app);
518
+ --swiper-navigation-size: 24px;
519
+ --swiper-navigation-color: var(--color-on-primary-container);
520
+ --swiper-pagination-color: var(--color-primary-container);
520
521
  --swiper-pagination-bullet-size: 12px;
521
522
  }
522
523
  :host a {
523
524
  color: var(--color-primary-app);
524
525
  }
526
+ :host .swiper-button-prev,
527
+ :host .swiper-button-next {
528
+ background-color: var(--color-primary-container);
529
+ padding: 4px;
530
+ width: 32px;
531
+ height: 32px;
532
+ border-radius: 32px;
533
+ box-shadow: var(--elevation-1);
534
+ }
535
+ :host .swiper-button-prev:hover,
536
+ :host .swiper-button-next:hover {
537
+ box-shadow: var(--elevation-2);
538
+ }
525
539
 
526
540
  .poi-type-img-container {
527
541
  position: relative;
@@ -1,3 +1,7 @@
1
+ .material-symbols {
2
+ font-family: "Material Symbols Outlined";
3
+ }
4
+
1
5
  .material-symbols-outlined {
2
6
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
3
7
  }
@@ -8,7 +12,6 @@
8
12
  align-items: center;
9
13
  }
10
14
  :host span {
11
- font-family: "Material Symbols Outlined";
12
15
  font-size: 24px;
13
16
  position: absolute;
14
17
  left: 32px;
@@ -7,7 +7,7 @@ export class GrwSearch {
7
7
  state.currentTreks = handleFiltersAndSearch();
8
8
  }
9
9
  render() {
10
- return (h(Host, null, h("span", { class: "material-symbols-outlined" }, "search"), h("input", { onInput: e => this.onSearchChange(e), class: "search-input", type: "search", placeholder: "Rechercher", value: state.searchValue })));
10
+ return (h(Host, null, h("span", { class: "material-symbols material-symbols-outlined" }, "search"), h("input", { onInput: e => this.onSearchChange(e), class: "search-input", type: "search", placeholder: "Rechercher", value: state.searchValue })));
11
11
  }
12
12
  static get is() { return "grw-search"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"grw-search.js","sourceRoot":"","sources":["../../../src/components/grw-search/grw-search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAOrD,MAAM,OAAO,SAAS;EACpB,cAAc,CAAC,KAAiB;IAC9B,KAAK,CAAC,WAAW,GAAI,KAAK,CAAC,MAAc,CAAC,KAAK,CAAC;IAChD,KAAK,CAAC,YAAY,GAAG,sBAAsB,EAAE,CAAC;EAChD,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,YAAM,KAAK,EAAC,2BAA2B,aAAc;MACrD,aAAO,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,CAAC,WAAW,GAAU,CACtI,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\nimport state from 'store/store';\nimport { handleFiltersAndSearch } from 'utils/utils';\n\n@Component({\n tag: 'grw-search',\n styleUrl: 'grw-search.scss',\n shadow: true,\n})\nexport class GrwSearch {\n onSearchChange(event: InputEvent) {\n state.searchValue = (event.target as any).value;\n state.currentTreks = handleFiltersAndSearch();\n }\n\n render() {\n return (\n <Host>\n <span class=\"material-symbols-outlined\">search</span>\n <input onInput={e => this.onSearchChange(e)} class=\"search-input\" type=\"search\" placeholder=\"Rechercher\" value={state.searchValue}></input>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"grw-search.js","sourceRoot":"","sources":["../../../src/components/grw-search/grw-search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAOrD,MAAM,OAAO,SAAS;EACpB,cAAc,CAAC,KAAiB;IAC9B,KAAK,CAAC,WAAW,GAAI,KAAK,CAAC,MAAc,CAAC,KAAK,CAAC;IAChD,KAAK,CAAC,YAAY,GAAG,sBAAsB,EAAE,CAAC;EAChD,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,YAAM,KAAK,EAAC,4CAA4C,aAAc;MACtE,aAAO,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,YAAY,EAAC,KAAK,EAAE,KAAK,CAAC,WAAW,GAAU,CACtI,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\nimport state from 'store/store';\nimport { handleFiltersAndSearch } from 'utils/utils';\n\n@Component({\n tag: 'grw-search',\n styleUrl: 'grw-search.scss',\n shadow: true,\n})\nexport class GrwSearch {\n onSearchChange(event: InputEvent) {\n state.searchValue = (event.target as any).value;\n state.currentTreks = handleFiltersAndSearch();\n }\n\n render() {\n return (\n <Host>\n <span class=\"material-symbols material-symbols-outlined\">search</span>\n <input onInput={e => this.onSearchChange(e)} class=\"search-input\" type=\"search\" placeholder=\"Rechercher\" value={state.searchValue}></input>\n </Host>\n );\n }\n}\n"]}
@@ -1,3 +1,7 @@
1
+ .material-symbols {
2
+ font-family: "Material Symbols Outlined";
3
+ }
4
+
1
5
  .material-symbols-outlined {
2
6
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
3
7
  }
@@ -7,7 +11,6 @@
7
11
  align-items: center;
8
12
  }
9
13
  :host span {
10
- font-family: "Material Symbols Outlined";
11
14
  font-size: 18px;
12
15
  }
13
16
  :host #language-select {
@@ -8,7 +8,7 @@ export class GrwSelectLanguage {
8
8
  state.language = event.target.value;
9
9
  }
10
10
  render() {
11
- return (h(Host, null, h("span", { class: "material-symbols-outlined margin-right-icon" }, "translate"), h("select", { onInput: event => this.handleSelect(event), name: "languages", id: "language-select" }, state.languages.map(language => (h("option", { selected: language === state.language, value: language.toLocaleLowerCase() }, language.toLocaleUpperCase()))))));
11
+ return (h(Host, null, h("span", { class: "material-symbols material-symbols-outlined margin-right-icon" }, "translate"), h("select", { onInput: event => this.handleSelect(event), name: "languages", id: "language-select" }, state.languages.map(language => (h("option", { selected: language === state.language, value: language.toLocaleLowerCase() }, language.toLocaleUpperCase()))))));
12
12
  }
13
13
  static get is() { return "grw-select-language"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"grw-select-language.js","sourceRoot":"","sources":["../../../src/components/grw-select-language/grw-select-language.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,MAAM,aAAa,CAAC;AAOhC,MAAM,OAAO,iBAAiB;EAC5B,YAAY,CAAC,KAAK;IAChB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;EACtC,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,YAAM,KAAK,EAAC,6CAA6C,gBAAiB;MAC1E,cAAQ,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,WAAW,EAAC,EAAE,EAAC,iBAAiB,IACtF,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAC/B,cAAQ,QAAQ,EAAE,QAAQ,KAAK,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,iBAAiB,EAAE,IAC/E,QAAQ,CAAC,iBAAiB,EAAE,CACtB,CACV,CAAC,CACK,CACJ,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\nimport state from 'store/store';\n\n@Component({\n tag: 'grw-select-language',\n styleUrl: 'grw-select-language.scss',\n shadow: true,\n})\nexport class GrwSelectLanguage {\n handleSelect(event) {\n state.treks = null;\n state.currentTreks = null;\n state.currentTrek = null;\n state.language = event.target.value;\n }\n\n render() {\n return (\n <Host>\n <span class=\"material-symbols-outlined margin-right-icon\">translate</span>\n <select onInput={event => this.handleSelect(event)} name=\"languages\" id=\"language-select\">\n {state.languages.map(language => (\n <option selected={language === state.language} value={language.toLocaleLowerCase()}>\n {language.toLocaleUpperCase()}\n </option>\n ))}\n </select>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"grw-select-language.js","sourceRoot":"","sources":["../../../src/components/grw-select-language/grw-select-language.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,MAAM,aAAa,CAAC;AAOhC,MAAM,OAAO,iBAAiB;EAC5B,YAAY,CAAC,KAAK;IAChB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;EACtC,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,YAAM,KAAK,EAAC,8DAA8D,gBAAiB;MAC3F,cAAQ,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,WAAW,EAAC,EAAE,EAAC,iBAAiB,IACtF,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAC/B,cAAQ,QAAQ,EAAE,QAAQ,KAAK,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,iBAAiB,EAAE,IAC/E,QAAQ,CAAC,iBAAiB,EAAE,CACtB,CACV,CAAC,CACK,CACJ,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\nimport state from 'store/store';\n\n@Component({\n tag: 'grw-select-language',\n styleUrl: 'grw-select-language.scss',\n shadow: true,\n})\nexport class GrwSelectLanguage {\n handleSelect(event) {\n state.treks = null;\n state.currentTreks = null;\n state.currentTrek = null;\n state.language = event.target.value;\n }\n\n render() {\n return (\n <Host>\n <span class=\"material-symbols material-symbols-outlined margin-right-icon\">translate</span>\n <select onInput={event => this.handleSelect(event)} name=\"languages\" id=\"language-select\">\n {state.languages.map(language => (\n <option selected={language === state.language} value={language.toLocaleLowerCase()}>\n {language.toLocaleUpperCase()}\n </option>\n ))}\n </select>\n </Host>\n );\n }\n}\n"]}
@@ -1,3 +1,7 @@
1
+ .material-symbols {
2
+ font-family: "Material Symbols Outlined";
3
+ }
4
+
1
5
  .material-symbols-outlined {
2
6
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
3
7
  }
@@ -102,7 +106,6 @@
102
106
  .trek-card-container .sub-container .icons-labels-container .row .icon-label span,
103
107
  .trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,
104
108
  .trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span {
105
- font-family: "Material Symbols Outlined";
106
109
  font-size: 24px;
107
110
  width: 24px;
108
111
  height: auto;
@@ -53,7 +53,7 @@ export class GrwTrekCard {
53
53
  '--color-on-secondary-container': this.colorOnSecondaryContainer,
54
54
  '--color-surface-container-low': this.colorSurfaceContainerLow,
55
55
  } }, this.currentTrek && (h("div", { class: this.isLargeView ? 'trek-card-large-view-container' : 'trek-card-container', onClick: () => this.trekCardPress.emit(this.currentTrek.id) }, this.currentTrek.attachments.filter(attachment => attachment.type === 'image').length > 0 && (h("img", { class: "image", src: `${this.currentTrek.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`, loading: "lazy" })), h("div", { class: "sub-container" }, this.departureCity && h("div", { class: "departure" }, this.departureCity.name), h("div", { class: "name" }, (_a = this.currentTrek) === null || _a === void 0 ? void 0 : _a.name), h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label)))), h("div", { class: "icons-labels-container" }, h("div", { class: "row" }, h("div", { class: "icon-label difficulty" }, ((_b = this.difficulty) === null || _b === void 0 ? void 0 : _b.pictogram) && h("img", { src: this.difficulty.pictogram }), (_c = this.difficulty) === null || _c === void 0 ? void 0 :
56
- _c.label), h("div", { class: "icon-label duration" }, h("span", { class: "material-symbols-outlined" }, "timelapse"), formatDuration(this.currentTrek.duration))), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { class: "material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { class: "material-symbols-outlined" }, "moving"), formatAscent(this.currentTrek.ascent))), h("div", { class: "row" }, h("div", { class: "icon-label route" }, ((_d = this.route) === null || _d === void 0 ? void 0 : _d.pictogram) && h("img", { src: this.route.pictogram }), (_e = this.route) === null || _e === void 0 ? void 0 :
56
+ _c.label), h("div", { class: "icon-label duration" }, h("span", { class: "material-symbols material-symbols-outlined" }, "timelapse"), formatDuration(this.currentTrek.duration))), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { class: "material-symbols material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { class: "material-symbols material-symbols-outlined" }, "moving"), formatAscent(this.currentTrek.ascent))), h("div", { class: "row" }, h("div", { class: "icon-label route" }, ((_d = this.route) === null || _d === void 0 ? void 0 : _d.pictogram) && h("img", { src: this.route.pictogram }), (_e = this.route) === null || _e === void 0 ? void 0 :
57
57
  _e.route), h("div", { class: "icon-label practice" }, ((_f = this.practice) === null || _f === void 0 ? void 0 : _f.pictogram) && h("img", { src: this.practice.pictogram }), (_g = this.practice) === null || _g === void 0 ? void 0 :
58
58
  _g.name))))))));
59
59
  }
@@ -1 +1 @@
1
- {"version":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AQ,0CAAE,SAAS,KAAI,WAAK,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAI,EACjE,MAAA,IAAI,CAAC,QAAQ;iBAAE,IAAI,CAChB,CACF,CACF,CACF,CACF,CACP,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter, State } 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\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 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 class={this.isLargeView ? 'trek-card-large-view-container' : 'trek-card-container'} onClick={() => this.trekCardPress.emit(this.currentTrek.id)}>\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 <div class=\"themes-container\">\n {this.themes.map(theme => (\n <div class=\"theme\">{theme.label}</div>\n ))}\n </div>\n <div class=\"icons-labels-container\">\n <div class=\"row\">\n <div class=\"icon-label difficulty\">\n {this.difficulty?.pictogram && <img src={this.difficulty.pictogram} />}\n {this.difficulty?.label}\n </div>\n <div class=\"icon-label duration\">\n <span class=\"material-symbols-outlined\">timelapse</span>\n {formatDuration(this.currentTrek.duration)}\n </div>\n </div>\n <div class=\"row\">\n <div class=\"icon-label length\">\n <span class=\"material-symbols-outlined\">open_in_full</span>\n {formatLength(this.currentTrek.length_2d)}\n </div>\n <div class=\"icon-label ascent\">\n <span class=\"material-symbols-outlined\">moving</span>\n {formatAscent(this.currentTrek.ascent)}\n </div>\n </div>\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 </div>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"grw-trek-card.js","sourceRoot":"","sources":["../../../src/components/grw-trek-card/grw-trek-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOzE,MAAM,OAAO,WAAW;;;;;;;;;2BASI,SAAS;0BACV,SAAS;mCACA,SAAS;qCACP,SAAS;oCACV,SAAS;uBACtB,KAAK;oCACQ,IAAI;;EAEvC,iBAAiB;IACf,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;IAC7D,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;MACvG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE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AAc;cACrE,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAClC,CACF;UACN,WAAK,KAAK,EAAC,KAAK;YACd,WAAK,KAAK,EAAC,kBAAkB;cAC1B,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,SAAS,KAAI,WAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,GAAI,EAC3D,MAAA,IAAI,CAAC,KAAK;iBAAE,KAAK,CACd;YACN,WAAK,KAAK,EAAC,qBAAqB;cAC7B,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,SAAS,KAAI,WAAK,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAI,EACjE,MAAA,IAAI,CAAC,QAAQ;iBAAE,IAAI,CAChB,CACF,CACF,CACF,CACF,CACP,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter, State } 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\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 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 class={this.isLargeView ? 'trek-card-large-view-container' : 'trek-card-container'} onClick={() => this.trekCardPress.emit(this.currentTrek.id)}>\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 <div class=\"themes-container\">\n {this.themes.map(theme => (\n <div class=\"theme\">{theme.label}</div>\n ))}\n </div>\n <div class=\"icons-labels-container\">\n <div class=\"row\">\n <div class=\"icon-label difficulty\">\n {this.difficulty?.pictogram && <img src={this.difficulty.pictogram} />}\n {this.difficulty?.label}\n </div>\n <div class=\"icon-label duration\">\n <span class=\"material-symbols material-symbols-outlined\">timelapse</span>\n {formatDuration(this.currentTrek.duration)}\n </div>\n </div>\n <div class=\"row\">\n <div class=\"icon-label length\">\n <span class=\"material-symbols material-symbols-outlined\">open_in_full</span>\n {formatLength(this.currentTrek.length_2d)}\n </div>\n <div class=\"icon-label ascent\">\n <span class=\"material-symbols material-symbols-outlined\">moving</span>\n {formatAscent(this.currentTrek.ascent)}\n </div>\n </div>\n <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 </div>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -511,15 +511,35 @@ button.swiper-pagination-bullet {
511
511
  width: calc(100% - 64px);
512
512
  }
513
513
 
514
+ .material-symbols {
515
+ font-family: "Material Symbols Outlined";
516
+ }
517
+
514
518
  .material-symbols-outlined {
515
519
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
516
520
  }
517
521
 
518
- grw-trek-detail {
519
- --swiper-navigation-size: 32px;
520
- --swiper-navigation-color: var(--color-primary-app);
521
- --swiper-pagination-color: var(--color-primary-app);
522
+ :host {
523
+ --swiper-navigation-size: 24px;
524
+ --swiper-navigation-color: var(--color-on-primary-container);
525
+ --swiper-pagination-color: var(--color-primary-container);
522
526
  --swiper-pagination-bullet-size: 12px;
527
+ }
528
+ :host .swiper-button-prev,
529
+ :host .swiper-button-next {
530
+ background-color: var(--color-primary-container);
531
+ padding: 4px;
532
+ width: 32px;
533
+ height: 32px;
534
+ border-radius: 32px;
535
+ box-shadow: var(--elevation-1);
536
+ }
537
+ :host .swiper-button-prev:hover,
538
+ :host .swiper-button-next:hover {
539
+ box-shadow: var(--elevation-2);
540
+ }
541
+
542
+ grw-trek-detail {
523
543
  overflow: hidden;
524
544
  }
525
545
 
@@ -676,7 +696,6 @@ grw-trek-detail {
676
696
  }
677
697
  .trek-detail-container .sub-container .icons-labels-container .row .icon-label img,
678
698
  .trek-detail-container .sub-container .icons-labels-container .row .icon-label span {
679
- font-family: "Material Symbols Outlined";
680
699
  font-size: 24px;
681
700
  width: 24px;
682
701
  height: auto;
@@ -876,7 +895,6 @@ grw-trek-detail {
876
895
  border-radius: 12px;
877
896
  }
878
897
  .current-advice-container span {
879
- font-family: "Material Symbols Outlined";
880
898
  font-size: 24px;
881
899
  width: 26px;
882
900
  margin-right: 8px;
@@ -263,9 +263,9 @@ export class GrwTrekDetail {
263
263
  } }, this.currentTrek && (h("div", { class: "trek-options" }, h("a", { onClick: () => this.handleScrollTo(this.presentationRef), class: `presentation trek-option${this.options.presentation.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.presentation), this.options.description.visible && (h("a", { onClick: () => this.handleScrollTo(this.descriptionRef), class: `description trek-option${this.options.description.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.description)), this.options.recommendations.visible && (h("a", { onClick: () => this.handleScrollTo(this.recommendationRef), class: `recommendations trek-option${this.options.recommendations.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.recommendations)), this.options.sensitiveArea.visible && (h("a", { onClick: () => this.handleScrollTo(this.sensitiveAreaRef), class: `sensitive-areas trek-option${this.options.sensitiveArea.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.environmentalSensitiveAreas)), this.options.informationPlaces.visible && (h("a", { onClick: () => this.handleScrollTo(this.informationDeskRef), class: `information-places trek-option${this.options.informationPlaces.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.informationPlaces)), this.options.pois.visible && (h("a", { onClick: () => this.handleScrollTo(this.poiRef), class: `pois trek-option${this.options.pois.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.pois)), h("span", { class: "indicator-selected-trek-option", style: { transform: `translateX(${this.handleIndicatorSelectedTrekOption()})` } }))), this.currentTrek && (h("div", { class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, h("div", { class: "swiper-wrapper" }, this.currentTrek.attachments
264
264
  .filter(attachment => attachment.type === 'image')
265
265
  .map(attachment => (h("div", { class: "swiper-slide" }, h("img", { class: "image", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() }))))), h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), h("div", { class: "name" }, this.currentTrek.name), this.themes.length > 0 && (h("div", { class: "themes-container" }, this.themes.map(theme => (h("div", { class: "theme" }, theme.label))))), h("div", { class: "sub-container" }, h("div", { class: "icons-labels-container" }, h("div", { class: "row" }, h("div", { class: "icon-label difficulty" }, ((_a = this.difficulty) === null || _a === void 0 ? void 0 : _a.pictogram) && h("img", { src: this.difficulty.pictogram }), (_b = this.difficulty) === null || _b === void 0 ? void 0 :
266
- _b.label), h("div", { class: "icon-label duration" }, h("span", { class: "material-symbols-outlined" }, "timelapse"), formatDuration((_c = this.currentTrek) === null || _c === void 0 ? void 0 : _c.duration)), h("div", { class: "icon-label route" }, ((_d = this.route) === null || _d === void 0 ? void 0 : _d.pictogram) && h("img", { src: this.route.pictogram }), (_e = this.route) === null || _e === void 0 ? void 0 :
267
- _e.route)), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { class: "material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { class: "material-symbols-outlined" }, "moving"), formatAscent(this.currentTrek.ascent)), h("div", { class: "icon-label practice" }, ((_f = this.practice) === null || _f === void 0 ? void 0 : _f.pictogram) && h("img", { src: this.practice.pictogram }), (_g = this.practice) === null || _g === void 0 ? void 0 :
268
- _g.name)))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}` }, h("span", { class: "material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}` }, h("span", { class: "material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}` }, h("span", { class: "material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), h("div", { class: "divider" }), this.currentTrek.description && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (h("div", { class: "departure-container" }, h("div", { class: "departure-title" }, translate[state.language].departure, " :\u00A0"), h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (h("div", { class: "arrival-container" }, h("div", { class: "arrival-title" }, translate[state.language].arrival, " :\u00A0"), h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].cities, " :\u00A0"), h("div", { innerHTML: this.cities.join(', ') }))), this.weather && this.currentTrek.departure_city && (h("div", { class: "weather-container" }, h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` }))), this.currentTrek.access && (h("div", null, h("div", { class: "divider" }), h("div", { class: "access-container" }, h("div", { class: "access-title" }, translate[state.language].roadAccess), h("div", { class: "access", innerHTML: this.currentTrek.access })))), this.currentTrek.public_transport && (h("div", null, h("div", { class: "divider" }), h("div", { class: "public-transport-container" }, h("div", { class: "public-transport-title" }, translate[state.language].transport), h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.labels.length > 0) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advice-container", ref: el => (this.recommendationRef = el) }, h("div", { class: "advice-title" }, translate[state.language].recommendations), this.currentTrek.advice && (h("div", { class: "current-advice-container" }, h("span", { class: "material-symbols-outlined" }, "warning"), h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.labels.map(label => (h("div", { class: "label-container" }, h("div", { class: "label-sub-container" }, label.pictogram && h("img", { src: label.pictogram }), h("div", { class: "label-name", innerHTML: label.name })), h("div", { class: "label-advice", innerHTML: label.advice }))))))), this.currentTrek.advised_parking && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advised-parking-container", ref: el => (this.parkingRef = el) }, h("div", { class: "advised-parking-title" }, translate[state.language].recommendedParking), h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))), this.currentTrek.gear && (h("div", null, h("div", { class: "divider" }), h("div", { class: "gear-container" }, h("div", { class: "gear-title" }, translate[state.language].equipments), h("div", { class: "gear", innerHTML: this.currentTrek.gear })))), state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "sensitive-areas-container", ref: el => (this.sensitiveAreaRef = el) }, h("div", { class: "sensitive-areas-title" }, translate[state.language].environmentalSensitiveAreas), state.currentSensitiveAreas.map(sensitiveArea => (h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), state.currentInformationDesks &&
266
+ _b.label), h("div", { class: "icon-label duration" }, h("span", { class: "material-symbols material-symbols-outlined" }, "timelapse"), formatDuration((_c = this.currentTrek) === null || _c === void 0 ? void 0 : _c.duration)), h("div", { class: "icon-label route" }, ((_d = this.route) === null || _d === void 0 ? void 0 : _d.pictogram) && h("img", { src: this.route.pictogram }), (_e = this.route) === null || _e === void 0 ? void 0 :
267
+ _e.route)), h("div", { class: "row" }, h("div", { class: "icon-label length" }, h("span", { class: "material-symbols material-symbols-outlined" }, "open_in_full"), formatLength(this.currentTrek.length_2d)), h("div", { class: "icon-label ascent" }, h("span", { class: "material-symbols material-symbols-outlined" }, "moving"), formatAscent(this.currentTrek.ascent)), h("div", { class: "icon-label practice" }, ((_f = this.practice) === null || _f === void 0 ? void 0 : _f.pictogram) && h("img", { src: this.practice.pictogram }), (_g = this.practice) === null || _g === void 0 ? void 0 :
268
+ _g.name)))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}` }, h("span", { class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), h("div", { class: "divider" }), this.currentTrek.description && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (h("div", { class: "departure-container" }, h("div", { class: "departure-title" }, translate[state.language].departure, " :\u00A0"), h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (h("div", { class: "arrival-container" }, h("div", { class: "arrival-title" }, translate[state.language].arrival, " :\u00A0"), h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].cities, " :\u00A0"), h("div", { innerHTML: this.cities.join(', ') }))), this.weather && this.currentTrek.departure_city && (h("div", { class: "weather-container" }, h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` }))), this.currentTrek.access && (h("div", null, h("div", { class: "divider" }), h("div", { class: "access-container" }, h("div", { class: "access-title" }, translate[state.language].roadAccess), h("div", { class: "access", innerHTML: this.currentTrek.access })))), this.currentTrek.public_transport && (h("div", null, h("div", { class: "divider" }), h("div", { class: "public-transport-container" }, h("div", { class: "public-transport-title" }, translate[state.language].transport), h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.labels.length > 0) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advice-container", ref: el => (this.recommendationRef = el) }, h("div", { class: "advice-title" }, translate[state.language].recommendations), this.currentTrek.advice && (h("div", { class: "current-advice-container" }, h("span", { class: "material-symbols material-symbols-outlined" }, "warning"), h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.labels.map(label => (h("div", { class: "label-container" }, h("div", { class: "label-sub-container" }, label.pictogram && h("img", { src: label.pictogram }), h("div", { class: "label-name", innerHTML: label.name })), h("div", { class: "label-advice", innerHTML: label.advice }))))))), this.currentTrek.advised_parking && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advised-parking-container", ref: el => (this.parkingRef = el) }, h("div", { class: "advised-parking-title" }, translate[state.language].recommendedParking), h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))), this.currentTrek.gear && (h("div", null, h("div", { class: "divider" }), h("div", { class: "gear-container" }, h("div", { class: "gear-title" }, translate[state.language].equipments), h("div", { class: "gear", innerHTML: this.currentTrek.gear })))), state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "sensitive-areas-container", ref: el => (this.sensitiveAreaRef = el) }, h("div", { class: "sensitive-areas-title" }, translate[state.language].environmentalSensitiveAreas), state.currentSensitiveAreas.map(sensitiveArea => (h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), state.currentInformationDesks &&
269
269
  state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "information-desks-container", ref: el => (this.informationDeskRef = el) }, h("div", { class: "information-desks-title" }, translate[state.language].informationPlaces), h("div", { class: "swiper swiper-information-desks", ref: el => (this.swiperInformationDesksRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentInformationDesks
270
270
  .filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id))
271
271
  .map(informationDesk => (h("div", { class: "swiper-slide" }, h("grw-information-desk-detail", { informationDesk: informationDesk }))))))))), (this.currentTrek.disabled_infrastructure ||