@geotrekce/geotrek-rando-widget 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) 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 +77 -53
  5. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/grw-filter.cjs.entry.js +21 -14
  9. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filter.cjs.entry.js.map +1 -1
  12. package/dist/cjs/{grw-filters_12.cjs.entry.js → grw-filters_16.cjs.entry.js} +867 -376
  13. package/dist/cjs/grw-filters_16.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-filters_16.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-filters_16.cjs.entry.js.map +1 -0
  16. package/dist/cjs/grw-information-desk_6.cjs.entry.js +66 -47
  17. package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
  18. package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
  20. package/dist/cjs/{i18n-a5ad3083.js → i18n-25e8e038.js} +13 -3
  21. package/dist/cjs/i18n-25e8e038.js.br +0 -0
  22. package/dist/cjs/i18n-25e8e038.js.gz +0 -0
  23. package/dist/cjs/i18n-25e8e038.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/utils-aafb9447.js +505 -0
  28. package/dist/cjs/utils-aafb9447.js.br +0 -0
  29. package/dist/cjs/utils-aafb9447.js.gz +0 -0
  30. package/dist/cjs/utils-aafb9447.js.map +1 -0
  31. package/dist/collection/collection-manifest.json +2 -0
  32. package/dist/collection/components/grw-app/grw-app.css +8 -1
  33. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  34. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  35. package/dist/collection/components/grw-app/grw-app.js +29 -4
  36. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  37. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  38. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  39. package/dist/collection/components/grw-filter/grw-filter.js +9 -1
  40. package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
  41. package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
  42. package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
  43. package/dist/collection/components/grw-filters/grw-filters.css +2 -1
  44. package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
  45. package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
  46. package/dist/collection/components/grw-filters/grw-filters.js +17 -2
  47. package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
  48. package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
  49. package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
  50. package/dist/collection/components/grw-map/grw-map.css +61 -16
  51. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  52. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  53. package/dist/collection/components/grw-map/grw-map.js +297 -18
  54. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  55. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  56. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  57. package/dist/collection/components/grw-search/grw-search.js +4 -1
  58. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  59. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  60. package/dist/collection/components/grw-search/grw-search.js.map +1 -1
  61. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css +48 -5
  62. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.br +0 -0
  63. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.gz +0 -0
  64. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js +122 -23
  65. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.br +0 -0
  66. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.gz +0 -0
  67. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.map +1 -1
  68. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css +8 -0
  69. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.br +0 -0
  70. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.gz +0 -0
  71. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
  72. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  73. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  74. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
  75. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css +43 -0
  76. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.br +0 -0
  77. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.gz +0 -0
  78. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +220 -0
  79. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
  80. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
  81. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.map +1 -0
  82. package/dist/collection/components/grw-trek-card/grw-trek-card.js +7 -7
  83. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  84. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  85. package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
  86. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +8 -3
  87. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  88. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  89. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +2 -2
  90. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  91. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  92. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  93. package/dist/collection/i18n/i18n.js +12 -2
  94. package/dist/collection/i18n/i18n.js.br +0 -0
  95. package/dist/collection/i18n/i18n.js.gz +0 -0
  96. package/dist/collection/i18n/i18n.js.map +1 -1
  97. package/dist/collection/store/grw-touristic-contents-provider.js +0 -18
  98. package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
  99. package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
  100. package/dist/collection/store/grw-touristic-contents-provider.js.map +1 -1
  101. package/dist/collection/store/grw-touristic-event-provider.js +2 -2
  102. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  103. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  104. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
  105. package/dist/collection/store/grw-touristic-events-provider.js +211 -0
  106. package/dist/collection/store/grw-touristic-events-provider.js.br +0 -0
  107. package/dist/collection/store/grw-touristic-events-provider.js.gz +0 -0
  108. package/dist/collection/store/grw-touristic-events-provider.js.map +1 -0
  109. package/dist/collection/store/grw-trek-provider.js +8 -2
  110. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  111. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  112. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  113. package/dist/collection/store/store.js +4 -0
  114. package/dist/collection/store/store.js.br +0 -0
  115. package/dist/collection/store/store.js.gz +0 -0
  116. package/dist/collection/store/store.js.map +1 -1
  117. package/dist/collection/types/types.js.map +1 -1
  118. package/dist/collection/utils/utils.js +74 -0
  119. package/dist/collection/utils/utils.js.br +0 -0
  120. package/dist/collection/utils/utils.js.gz +0 -0
  121. package/dist/collection/utils/utils.js.map +1 -1
  122. package/dist/esm/geotrek-rando-widget.js +1 -1
  123. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  124. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  125. package/dist/esm/grw-app.entry.js +31 -7
  126. package/dist/esm/grw-app.entry.js.br +0 -0
  127. package/dist/esm/grw-app.entry.js.gz +0 -0
  128. package/dist/esm/grw-app.entry.js.map +1 -1
  129. package/dist/esm/grw-filter.entry.js +9 -2
  130. package/dist/esm/grw-filter.entry.js.br +0 -0
  131. package/dist/esm/grw-filter.entry.js.gz +0 -0
  132. package/dist/esm/grw-filter.entry.js.map +1 -1
  133. package/dist/esm/{grw-filters_12.entry.js → grw-filters_16.entry.js} +522 -35
  134. package/dist/esm/grw-filters_16.entry.js.br +0 -0
  135. package/dist/esm/grw-filters_16.entry.js.gz +0 -0
  136. package/dist/esm/grw-filters_16.entry.js.map +1 -0
  137. package/dist/esm/grw-information-desk_6.entry.js +50 -31
  138. package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
  139. package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
  140. package/dist/esm/grw-information-desk_6.entry.js.map +1 -1
  141. package/dist/esm/{i18n-e6325e81.js → i18n-c18b35f3.js} +13 -3
  142. package/dist/esm/i18n-c18b35f3.js.br +0 -0
  143. package/dist/esm/i18n-c18b35f3.js.gz +0 -0
  144. package/dist/esm/i18n-c18b35f3.js.map +1 -0
  145. package/dist/esm/loader.js +1 -1
  146. package/dist/esm/loader.js.br +0 -0
  147. package/dist/esm/loader.js.gz +0 -0
  148. package/dist/esm/utils-6441a08a.js +492 -0
  149. package/dist/esm/utils-6441a08a.js.br +0 -0
  150. package/dist/esm/utils-6441a08a.js.gz +0 -0
  151. package/dist/esm/utils-6441a08a.js.map +1 -0
  152. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  153. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  154. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  155. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  156. package/dist/esm-es5/grw-app.entry.js +1 -1
  157. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  158. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  159. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  160. package/dist/esm-es5/grw-filter.entry.js +2 -2
  161. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  162. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  163. package/dist/esm-es5/grw-filter.entry.js.map +1 -1
  164. package/dist/esm-es5/{grw-filters_12.entry.js → grw-filters_16.entry.js} +4 -4
  165. package/dist/esm-es5/grw-filters_16.entry.js.br +0 -0
  166. package/dist/esm-es5/grw-filters_16.entry.js.gz +0 -0
  167. package/dist/esm-es5/grw-filters_16.entry.js.map +1 -0
  168. package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
  169. package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
  170. package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
  171. package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -1
  172. package/dist/esm-es5/i18n-c18b35f3.js +2 -0
  173. package/dist/esm-es5/i18n-c18b35f3.js.br +0 -0
  174. package/dist/esm-es5/i18n-c18b35f3.js.gz +0 -0
  175. package/dist/esm-es5/i18n-c18b35f3.js.map +1 -0
  176. package/dist/esm-es5/loader.js +1 -1
  177. package/dist/esm-es5/loader.js.br +0 -0
  178. package/dist/esm-es5/loader.js.gz +0 -0
  179. package/dist/esm-es5/loader.js.map +1 -1
  180. package/dist/esm-es5/utils-6441a08a.js +2 -0
  181. package/dist/esm-es5/utils-6441a08a.js.br +0 -0
  182. package/dist/esm-es5/utils-6441a08a.js.gz +0 -0
  183. package/dist/esm-es5/utils-6441a08a.js.map +1 -0
  184. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  185. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  186. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  187. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  188. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js +14 -0
  189. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.br +0 -0
  190. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.gz +0 -0
  191. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.map +1 -0
  192. package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js → p-06412985.entry.js} +3 -3
  193. package/dist/geotrek-rando-widget/p-06412985.entry.js.br +0 -0
  194. package/dist/geotrek-rando-widget/p-06412985.entry.js.gz +0 -0
  195. package/dist/geotrek-rando-widget/p-06412985.entry.js.map +1 -0
  196. package/dist/geotrek-rando-widget/p-0955858f.system.js +2 -0
  197. package/dist/geotrek-rando-widget/p-0955858f.system.js.br +0 -0
  198. package/dist/geotrek-rando-widget/p-0955858f.system.js.gz +0 -0
  199. package/dist/geotrek-rando-widget/p-0955858f.system.js.map +1 -0
  200. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js +2 -0
  201. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.br +0 -0
  202. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.gz +0 -0
  203. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.map +1 -0
  204. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js +2 -0
  205. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.br +0 -0
  206. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.gz +0 -0
  207. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.map +1 -0
  208. package/dist/geotrek-rando-widget/p-6f7916db.system.js +2 -0
  209. package/dist/geotrek-rando-widget/p-6f7916db.system.js.br +0 -0
  210. package/dist/geotrek-rando-widget/p-6f7916db.system.js.gz +0 -0
  211. package/dist/geotrek-rando-widget/p-6f7916db.system.js.map +1 -0
  212. package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js → p-73278096.system.entry.js} +3 -3
  213. package/dist/geotrek-rando-widget/p-73278096.system.entry.js.br +0 -0
  214. package/dist/geotrek-rando-widget/{p-bf8d8171.system.entry.js.gz → p-73278096.system.entry.js.gz} +0 -0
  215. package/dist/geotrek-rando-widget/{p-fccc2cf2.entry.js.map → p-73278096.system.entry.js.map} +1 -1
  216. package/dist/geotrek-rando-widget/p-bcac98e0.js +2 -0
  217. package/dist/geotrek-rando-widget/p-bcac98e0.js.br +0 -0
  218. package/dist/geotrek-rando-widget/p-bcac98e0.js.gz +0 -0
  219. package/dist/geotrek-rando-widget/p-bcac98e0.js.map +1 -0
  220. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +1 -1
  221. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
  222. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
  223. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +1 -1
  224. package/dist/geotrek-rando-widget/p-e16d970b.js +2 -0
  225. package/dist/geotrek-rando-widget/p-e16d970b.js.br +0 -0
  226. package/dist/geotrek-rando-widget/p-e16d970b.js.gz +0 -0
  227. package/dist/geotrek-rando-widget/p-e16d970b.js.map +1 -0
  228. package/dist/geotrek-rando-widget/p-e9caba62.entry.js +14 -0
  229. package/dist/geotrek-rando-widget/p-e9caba62.entry.js.br +0 -0
  230. package/dist/geotrek-rando-widget/p-e9caba62.entry.js.gz +0 -0
  231. package/dist/geotrek-rando-widget/p-e9caba62.entry.js.map +1 -0
  232. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js +2 -0
  233. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.br +0 -0
  234. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.gz +0 -0
  235. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.map +1 -0
  236. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js +2 -0
  237. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.br +0 -0
  238. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.gz +0 -0
  239. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.map +1 -0
  240. package/dist/types/components/grw-filters/grw-filters.d.ts +2 -0
  241. package/dist/types/components/grw-map/grw-map.d.ts +13 -0
  242. package/dist/types/components/grw-touristic-event/grw-touristic-event-card.d.ts +6 -0
  243. package/dist/types/components/grw-touristic-events-list/grw-touristic-events-list.d.ts +20 -0
  244. package/dist/types/components.d.ts +82 -21
  245. package/dist/types/i18n/i18n.d.ts +5 -0
  246. package/dist/types/store/grw-touristic-contents-provider.d.ts +0 -1
  247. package/dist/types/store/grw-touristic-events-provider.d.ts +17 -0
  248. package/dist/types/store/store.d.ts +9 -1
  249. package/dist/types/types/types.d.ts +18 -1
  250. package/dist/types/utils/utils.d.ts +3 -1
  251. package/package.json +1 -1
  252. package/dist/cjs/grw-filters_12.cjs.entry.js.br +0 -0
  253. package/dist/cjs/grw-filters_12.cjs.entry.js.gz +0 -0
  254. package/dist/cjs/grw-filters_12.cjs.entry.js.map +0 -1
  255. package/dist/cjs/grw-select-language.cjs.entry.js +0 -28
  256. package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
  257. package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
  258. package/dist/cjs/grw-select-language.cjs.entry.js.map +0 -1
  259. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js +0 -63
  260. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.br +0 -0
  261. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.gz +0 -0
  262. package/dist/cjs/grw-touristic-event-card-provider.cjs.entry.js.map +0 -1
  263. package/dist/cjs/i18n-a5ad3083.js.br +0 -0
  264. package/dist/cjs/i18n-a5ad3083.js.gz +0 -0
  265. package/dist/cjs/i18n-a5ad3083.js.map +0 -1
  266. package/dist/cjs/store-d20ae78f.js +0 -250
  267. package/dist/cjs/store-d20ae78f.js.br +0 -0
  268. package/dist/cjs/store-d20ae78f.js.gz +0 -0
  269. package/dist/cjs/store-d20ae78f.js.map +0 -1
  270. package/dist/cjs/utils-332e41b3.js +0 -181
  271. package/dist/cjs/utils-332e41b3.js.br +0 -0
  272. package/dist/cjs/utils-332e41b3.js.gz +0 -0
  273. package/dist/cjs/utils-332e41b3.js.map +0 -1
  274. package/dist/esm/grw-filters_12.entry.js.br +0 -0
  275. package/dist/esm/grw-filters_12.entry.js.gz +0 -0
  276. package/dist/esm/grw-filters_12.entry.js.map +0 -1
  277. package/dist/esm/grw-select-language.entry.js +0 -24
  278. package/dist/esm/grw-select-language.entry.js.br +0 -0
  279. package/dist/esm/grw-select-language.entry.js.gz +0 -0
  280. package/dist/esm/grw-select-language.entry.js.map +0 -1
  281. package/dist/esm/grw-touristic-event-card-provider.entry.js +0 -59
  282. package/dist/esm/grw-touristic-event-card-provider.entry.js.br +0 -0
  283. package/dist/esm/grw-touristic-event-card-provider.entry.js.gz +0 -0
  284. package/dist/esm/grw-touristic-event-card-provider.entry.js.map +0 -1
  285. package/dist/esm/i18n-e6325e81.js.br +0 -0
  286. package/dist/esm/i18n-e6325e81.js.gz +0 -0
  287. package/dist/esm/i18n-e6325e81.js.map +0 -1
  288. package/dist/esm/store-032ab1f5.js +0 -246
  289. package/dist/esm/store-032ab1f5.js.br +0 -0
  290. package/dist/esm/store-032ab1f5.js.gz +0 -0
  291. package/dist/esm/store-032ab1f5.js.map +0 -1
  292. package/dist/esm/utils-b09ac7c9.js +0 -173
  293. package/dist/esm/utils-b09ac7c9.js.br +0 -0
  294. package/dist/esm/utils-b09ac7c9.js.gz +0 -0
  295. package/dist/esm/utils-b09ac7c9.js.map +0 -1
  296. package/dist/esm-es5/grw-filters_12.entry.js.br +0 -0
  297. package/dist/esm-es5/grw-filters_12.entry.js.gz +0 -0
  298. package/dist/esm-es5/grw-filters_12.entry.js.map +0 -1
  299. package/dist/esm-es5/grw-select-language.entry.js +0 -2
  300. package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
  301. package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
  302. package/dist/esm-es5/grw-select-language.entry.js.map +0 -1
  303. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js +0 -2
  304. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.br +0 -0
  305. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.gz +0 -0
  306. package/dist/esm-es5/grw-touristic-event-card-provider.entry.js.map +0 -1
  307. package/dist/esm-es5/i18n-e6325e81.js +0 -2
  308. package/dist/esm-es5/i18n-e6325e81.js.br +0 -0
  309. package/dist/esm-es5/i18n-e6325e81.js.gz +0 -0
  310. package/dist/esm-es5/i18n-e6325e81.js.map +0 -1
  311. package/dist/esm-es5/store-032ab1f5.js +0 -2
  312. package/dist/esm-es5/store-032ab1f5.js.br +0 -0
  313. package/dist/esm-es5/store-032ab1f5.js.gz +0 -0
  314. package/dist/esm-es5/store-032ab1f5.js.map +0 -1
  315. package/dist/esm-es5/utils-b09ac7c9.js +0 -2
  316. package/dist/esm-es5/utils-b09ac7c9.js.br +0 -0
  317. package/dist/esm-es5/utils-b09ac7c9.js.gz +0 -0
  318. package/dist/esm-es5/utils-b09ac7c9.js.map +0 -1
  319. package/dist/geotrek-rando-widget/p-048b3a1e.js +0 -2
  320. package/dist/geotrek-rando-widget/p-048b3a1e.js.br +0 -0
  321. package/dist/geotrek-rando-widget/p-048b3a1e.js.gz +0 -0
  322. package/dist/geotrek-rando-widget/p-048b3a1e.js.map +0 -1
  323. package/dist/geotrek-rando-widget/p-0f47847d.system.js +0 -2
  324. package/dist/geotrek-rando-widget/p-0f47847d.system.js.br +0 -0
  325. package/dist/geotrek-rando-widget/p-0f47847d.system.js.gz +0 -0
  326. package/dist/geotrek-rando-widget/p-0f47847d.system.js.map +0 -1
  327. package/dist/geotrek-rando-widget/p-10ee2e5e.system.js +0 -2
  328. package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.br +0 -0
  329. package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.gz +0 -0
  330. package/dist/geotrek-rando-widget/p-10ee2e5e.system.js.map +0 -1
  331. package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js +0 -2
  332. package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.br +0 -0
  333. package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.gz +0 -0
  334. package/dist/geotrek-rando-widget/p-1a0c7f72.entry.js.map +0 -1
  335. package/dist/geotrek-rando-widget/p-1f8e7e57.js +0 -2
  336. package/dist/geotrek-rando-widget/p-1f8e7e57.js.br +0 -0
  337. package/dist/geotrek-rando-widget/p-1f8e7e57.js.gz +0 -0
  338. package/dist/geotrek-rando-widget/p-1f8e7e57.js.map +0 -1
  339. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js +0 -2
  340. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.br +0 -0
  341. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.gz +0 -0
  342. package/dist/geotrek-rando-widget/p-2c4abcd9.system.entry.js.map +0 -1
  343. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js +0 -14
  344. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.br +0 -0
  345. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.gz +0 -0
  346. package/dist/geotrek-rando-widget/p-3bbe169c.entry.js.map +0 -1
  347. package/dist/geotrek-rando-widget/p-42ee320d.entry.js +0 -2
  348. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.br +0 -0
  349. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.gz +0 -0
  350. package/dist/geotrek-rando-widget/p-42ee320d.entry.js.map +0 -1
  351. package/dist/geotrek-rando-widget/p-5e7ed046.js +0 -2
  352. package/dist/geotrek-rando-widget/p-5e7ed046.js.br +0 -0
  353. package/dist/geotrek-rando-widget/p-5e7ed046.js.gz +0 -0
  354. package/dist/geotrek-rando-widget/p-5e7ed046.js.map +0 -1
  355. package/dist/geotrek-rando-widget/p-638b7451.system.entry.js +0 -2
  356. package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.br +0 -0
  357. package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.gz +0 -0
  358. package/dist/geotrek-rando-widget/p-638b7451.system.entry.js.map +0 -1
  359. package/dist/geotrek-rando-widget/p-689557e0.entry.js +0 -2
  360. package/dist/geotrek-rando-widget/p-689557e0.entry.js.br +0 -0
  361. package/dist/geotrek-rando-widget/p-689557e0.entry.js.gz +0 -0
  362. package/dist/geotrek-rando-widget/p-689557e0.entry.js.map +0 -1
  363. package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js +0 -2
  364. package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.br +0 -0
  365. package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.gz +0 -0
  366. package/dist/geotrek-rando-widget/p-9d562b29.system.entry.js.map +0 -1
  367. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js +0 -14
  368. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.br +0 -0
  369. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.gz +0 -0
  370. package/dist/geotrek-rando-widget/p-b40c2ea8.system.entry.js.map +0 -1
  371. package/dist/geotrek-rando-widget/p-ba971c93.entry.js +0 -2
  372. package/dist/geotrek-rando-widget/p-ba971c93.entry.js.br +0 -0
  373. package/dist/geotrek-rando-widget/p-ba971c93.entry.js.gz +0 -0
  374. package/dist/geotrek-rando-widget/p-ba971c93.entry.js.map +0 -1
  375. package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.br +0 -0
  376. package/dist/geotrek-rando-widget/p-bf8d8171.system.entry.js.map +0 -1
  377. package/dist/geotrek-rando-widget/p-c63228e8.system.js +0 -2
  378. package/dist/geotrek-rando-widget/p-c63228e8.system.js.br +0 -0
  379. package/dist/geotrek-rando-widget/p-c63228e8.system.js.gz +0 -0
  380. package/dist/geotrek-rando-widget/p-c63228e8.system.js.map +0 -1
  381. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js +0 -2
  382. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.br +0 -0
  383. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.gz +0 -0
  384. package/dist/geotrek-rando-widget/p-ea78e5f0.system.entry.js.map +0 -1
  385. package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.br +0 -0
  386. package/dist/geotrek-rando-widget/p-fccc2cf2.entry.js.gz +0 -0
@@ -1,2 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-d5cacae4.js";import{s as state}from"./store-032ab1f5.js";var grwSelectLanguageCss='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';var GrwSelectLanguage=function(){function e(e){registerInstance(this,e)}e.prototype.handleSelect=function(e){state.treks=null;state.currentTreks=null;state.currentTrek=null;state.language=e.target.value};e.prototype.render=function(){var e=this;return h(Host,null,h("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),h("select",{onInput:function(t){return e.handleSelect(t)},name:"languages",id:"language-select"},state.languages.map((function(e){return h("option",{selected:e===state.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())}))))};return e}();GrwSelectLanguage.style=grwSelectLanguageCss;export{GrwSelectLanguage as grw_select_language};
2
- //# sourceMappingURL=grw-select-language.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwSelectLanguageCss","GrwSelectLanguage","prototype","handleSelect","event","state","treks","currentTreks","currentTrek","language","target","value","render","_this","this","h","Host","translate","class","onInput","name","id","languages","map","selected","toLocaleLowerCase","toLocaleUpperCase"],"sources":["src/components/grw-select-language/grw-select-language.scss?tag=grw-select-language&encapsulation=shadow","src/components/grw-select-language/grw-select-language.tsx"],"sourcesContent":[".material-symbols {\n font-family: 'Material Symbols Outlined';\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n display: flex;\n align-items: center;\n span {\n font-size: 18px;\n }\n #language-select {\n border: none;\n background-color: var(--color-background);\n &:focus-visible {\n outline: none;\n }\n }\n}\n","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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined margin-right-icon\">\n translate\n </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"],"mappings":"+GAAA,IAAMA,qBAAuB,kY,ICQhBC,kBAAiB,W,uCAC5BA,EAAAC,UAAAC,aAAA,SAAaC,GACXC,MAAMC,MAAQ,KACdD,MAAME,aAAe,KACrBF,MAAMG,YAAc,KACpBH,MAAMI,SAAWL,EAAMM,OAAOC,K,EAGhCV,EAAAC,UAAAU,OAAA,eAAAC,EAAAC,KACE,OACEC,EAACC,KAAI,KAEHD,EAAA,QAAME,UAAW,MAAOC,MAAM,gEAA8D,aAG5FH,EAAA,UAAQI,QAAS,SAAAf,GAAS,OAAAS,EAAKV,aAAaC,EAAlB,EAA0BgB,KAAK,YAAYC,GAAG,mBACrEhB,MAAMiB,UAAUC,KAAI,SAAAd,GAAQ,OAC3BM,EAAA,UAAQS,SAAUf,IAAaJ,MAAMI,SAAUE,MAAOF,EAASgB,qBAC5DhB,EAASiB,oBAFe,K,WAhBT,G"}
@@ -1,2 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var a=0,s=e.length,r;a<s;a++){if(r||!(a in e)){if(!r)r=Array.prototype.slice.call(e,0,a);r[a]=e[a]}}return t.concat(r||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host}from"./index-d5cacae4.js";import{s as state}from"./store-032ab1f5.js";var GrwTouristicEventProvider=function(){function t(t){registerInstance(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvent()};t.prototype.handleTouristicEvent=function(){var t=[];t.push(!state.cities?fetch("".concat(state.api,"city/?language=").concat(state.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!state.touristicEventTypes?fetch("".concat(state.api,"touristicevent_type/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(state.api,"touristicevent/").concat(this.touristicEventId,"/?language=").concat(state.language,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website&published=true"),this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],a=t[2];state.trekNetworkError=false;if(e){state.cities=e.results}if(i){state.touristicEventTypes=i.results}state.currentTouristicEvent=a})).catch((function(){state.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.trekNetworkError=false};t.prototype.render=function(){return h(Host,null)};return t}();export{GrwTouristicEventProvider as grw_touristic_event_card_provider};
2
- //# sourceMappingURL=grw-touristic-event-card-provider.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["GrwTouristicEventProvider","this","controller","AbortController","signal","init","cache","prototype","connectedCallback","state","api","languages","split","language","handleTouristicEvent","requests","push","cities","fetch","concat","Response","touristicEventTypes","portals","Promise","all","__spreadArray","touristicEventId","then","responses","map","response","json","_a","touristicEvent","trekNetworkError","results","currentTouristicEvent","catch","disconnectedCallback","abort","render","h","Host"],"sources":["src/store/grw-touristic-event-provider.tsx"],"sourcesContent":["import { Build, Component, h, Host, Prop } from '@stencil/core';\nimport state from 'store/store';\n\n@Component({\n tag: 'grw-touristic-event-card-provider',\n shadow: true,\n})\nexport class GrwTouristicEventProvider {\n @Prop() languages = 'fr';\n @Prop() api: string;\n @Prop() touristicEventId: string;\n @Prop() portals: string;\n\n controller = new AbortController();\n signal = this.controller.signal;\n init: RequestInit = { cache: Build.isDev ? 'force-cache' : 'default', signal: this.signal };\n\n connectedCallback() {\n if (!state.api) {\n state.api = this.api;\n state.languages = this.languages.split(',');\n state.language = state.languages[0];\n }\n this.handleTouristicEvent();\n }\n\n handleTouristicEvent() {\n const requests = [];\n requests.push(!state.cities ? fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));\n requests.push(\n !state.touristicEventTypes\n ? fetch(\n `${state.api}touristicevent_type/?language=${state.language}${\n this.portals ? '&portals='.concat(this.portals) : ''\n }&published=true&fields=id,type,pictogram&page_size=999`,\n this.init,\n )\n : new Response('null'),\n );\n\n Promise.all([\n ...requests,\n fetch(\n `${state.api}touristicevent/${this.touristicEventId}/?language=${state.language}&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website&published=true`,\n this.init,\n ),\n ])\n .then(responses => Promise.all(responses.map(response => response.json())))\n .then(([cities, touristicEventTypes, touristicEvent]) => {\n state.trekNetworkError = false;\n\n if (cities) {\n state.cities = cities.results;\n }\n if (touristicEventTypes) {\n state.touristicEventTypes = touristicEventTypes.results;\n }\n state.currentTouristicEvent = touristicEvent;\n })\n .catch(() => {\n state.trekNetworkError = true;\n });\n }\n\n disconnectedCallback() {\n this.controller.abort();\n state.trekNetworkError = false;\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"],"mappings":"qWAOaA,0BAAyB,W,uCAMpCC,KAAAC,WAAa,IAAIC,gBACjBF,KAAAG,OAASH,KAAKC,WAAWE,OACzBH,KAAAI,KAAoB,CAAEC,MAAqC,UAAWF,OAAQH,KAAKG,Q,eAP/D,K,0EASpBJ,EAAAO,UAAAC,kBAAA,WACE,IAAKC,MAAMC,IAAK,CACdD,MAAMC,IAAMT,KAAKS,IACjBD,MAAME,UAAYV,KAAKU,UAAUC,MAAM,KACvCH,MAAMI,SAAWJ,MAAME,UAAU,E,CAEnCV,KAAKa,sB,EAGPd,EAAAO,UAAAO,qBAAA,WACE,IAAMC,EAAW,GACjBA,EAASC,MAAMP,MAAMQ,OAASC,MAAM,GAAAC,OAAGV,MAAMC,IAAG,mBAAAS,OAAkBV,MAAMI,SAAQ,gDAAgDZ,KAAKI,MAAQ,IAAIe,SAAS,SAC1JL,EAASC,MACNP,MAAMY,oBACHH,MACE,GAAAC,OAAGV,MAAMC,IAAG,kCAAAS,OAAiCV,MAAMI,UAAQM,OACzDlB,KAAKqB,QAAU,YAAYH,OAAOlB,KAAKqB,SAAW,GACpD,0DACArB,KAAKI,MAEP,IAAIe,SAAS,SAGnBG,QAAQC,IAAGC,4BAAA,GACNV,EAAQ,OACXG,MACE,GAAAC,OAAGV,MAAMC,IAAG,mBAAAS,OAAkBlB,KAAKyB,iBAAgB,eAAAP,OAAcV,MAAMI,SAAQ,2IAC/EZ,KAAKI,O,QAGNsB,MAAK,SAAAC,GAAa,OAAAL,QAAQC,IAAII,EAAUC,KAAI,SAAAC,GAAY,OAAAA,EAASC,MAAT,IAAtC,IAClBJ,MAAK,SAACK,G,IAACf,EAAMe,EAAA,GAAEX,EAAmBW,EAAA,GAAEC,EAAcD,EAAA,GACjDvB,MAAMyB,iBAAmB,MAEzB,GAAIjB,EAAQ,CACVR,MAAMQ,OAASA,EAAOkB,O,CAExB,GAAId,EAAqB,CACvBZ,MAAMY,oBAAsBA,EAAoBc,O,CAElD1B,MAAM2B,sBAAwBH,C,IAE/BI,OAAM,WACL5B,MAAMyB,iBAAmB,I,KAI/BlC,EAAAO,UAAA+B,qBAAA,WACErC,KAAKC,WAAWqC,QAChB9B,MAAMyB,iBAAmB,K,EAG3BlC,EAAAO,UAAAiC,OAAA,WACE,OAAOC,EAACC,KAAI,K,WA/DsB,U"}
@@ -1,2 +0,0 @@
1
- var translate={fr:{filter:"Filtrer",practice:"Pratique",difficulty:"Difficulté",duration:"Durée",length:"Longueur",treks:"itinéraires",trek:"itinéraire",showList:"Voir la liste",showMap:"Voir la carte",showRoute:"Voir l'itinéraire",showDetails:"Voir la fiche",download:"Téléchargement",downloads:"Téléchargements",description:"Description",departure:"Départ",arrival:"Arrivée",elevationProfile:"Profil altimétrique",roadAccess:"Accès routier",transport:"Transport",recommendations:"Recommandations",recommendedParking:"Parking conseillé",equipments:"Équipements",environmentalSensitiveAreas:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",accessibility:"Accessibilité",accessibilityLevel:"Niveau d'accessibilité",accessibilitySlope:"Pente",accessibilityWidth:"Largeur",accessibilitySignage:"Signalisation",accessibilityCovering:"Revêtement",accessibilityExposure:"Exposition",accessibilityAdvices:"Conseils",pois:function(e){return"Les ".concat(e," patrimoines à découvrir")},touristicContents:function(e){return"À proximité (".concat(e,")")},touristicEvents:function(e){return"Événements (".concat(e,")")},sources:"Sources",city:"Commune",crossedCities:"Communes",placeholderCrossedCities:"Sélectionner une ou plusieurs communes",home:{segment:{treks:"Itinéraires",touristicContents:"Services"},touristicContents:"Services",touristicContent:"Service"},options:{presentation:"Présentation",description:"Description",recommendations:"Recommandations",environmentalSensitiveAreas:"Zones sensibles",informationPlaces:"Lieux d'informations",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},layers:{referencePoints:"Points de référence",parking:"Parking conseillé",sensitiveArea:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},themes:"Thèmes",placeholderThemes:"Sélectionner un ou plusieurs thèmes",placeholderPractices:"Sélectionner une ou plusieurs pratiques",routes:"Type de parcours",elevation:"Denivelé positif",activities:"Activités",districts:"Secteurs",erase:"EFFACER",ok:"OK",location:"Localisation",steps:"étapes",usefulInformation:"Informations pratiques",contact:"Contact",email:"Email",website:"Site web",category:"Catégorie",services:"Services"},en:{filter:"Filter",practice:"Practice",difficulty:"Difficulty",duration:"Duration",length:"Length",treks:"routes",trek:"route",showList:"Show the list",showMap:"Show the map",showRoute:"Show the route",showDetails:"Show the details",download:"Download",downloads:"Downloads",description:"Description",departure:"Departure",arrival:"Arrival",elevationProfile:"Elevation profile",roadAccess:"Road acess",transport:"Transport",recommendations:"Recommendations",recommendedParking:"Parking recommended",equipments:"Equipements",environmentalSensitiveAreas:"Areas of environmental sensitivity",informationPlaces:"Information places",accessibility:"Accessibility",accessibilityLevel:"Accessibility level",accessibilitySlope:"Slope",accessibilityWidth:"Width",accessibilitySignage:"Signage",accessibilityCovering:"Covering",accessibilityExposure:"Exposure",accessibilityAdvices:"Advices",pois:function(e){return"".concat(e," points of interest")},touristicContents:function(e){return"Near (".concat(e,")")},touristicEvents:function(e){return"Events (".concat(e,")")},sources:"Sources",city:"City",crossedCities:"Cities",placeholderCrossedCities:"Select one or more municipalities",home:{segment:{treks:"Routes",touristicContents:"Services"},touristicContents:"Services",touristicContent:"Service"},options:{presentation:"Presentation",description:"Description",recommendations:"Recommendations",environmentalSensitiveAreas:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},layers:{referencePoints:"Reference points",parking:"Parking",sensitiveArea:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},themes:"Themes",placeholderThemes:"Select one or more themes",placeholderPractices:"Select one or more practices",routes:"Type of course",elevation:"Positive elevation",activities:"Activities",districts:"Districts",erase:"ERASE",ok:"OK",location:"Location",usefulInformation:"Useful information",steps:"steps",contact:"Contact",email:"Email",website:"Website",category:"Category",services:"Services"}};export{translate as t};
2
- //# sourceMappingURL=i18n-e6325e81.js.map
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"version":3,"names":["translate","fr","filter","practice","difficulty","duration","length","treks","trek","showList","showMap","showRoute","showDetails","download","downloads","description","departure","arrival","elevationProfile","roadAccess","transport","recommendations","recommendedParking","equipments","environmentalSensitiveAreas","informationPlaces","accessibility","accessibilityLevel","accessibilitySlope","accessibilityWidth","accessibilitySignage","accessibilityCovering","accessibilityExposure","accessibilityAdvices","pois","poisLength","concat","touristicContents","touristicContentsLength","touristicEvents","touristicEventsLength","sources","city","crossedCities","placeholderCrossedCities","home","segment","touristicContent","options","presentation","steps","layers","referencePoints","parking","sensitiveArea","themes","placeholderThemes","placeholderPractices","routes","elevation","activities","districts","erase","ok","location","usefulInformation","contact","email","website","category","services","en"],"sources":["src/i18n/i18n.ts"],"sourcesContent":["interface Translation {\n filter: string;\n practice: string;\n difficulty: string;\n duration: string;\n length: string;\n treks: string;\n trek: string;\n showList: string;\n showMap: string;\n showRoute: string;\n showDetails: string;\n download: string;\n downloads: string;\n description: string;\n departure: string;\n arrival: string;\n elevationProfile: string;\n roadAccess: string;\n transport: string;\n recommendations: string;\n recommendedParking: string;\n equipments: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n accessibility: string;\n accessibilityLevel: string;\n accessibilitySlope: string;\n accessibilityWidth: string;\n accessibilitySignage: string;\n accessibilityCovering: string;\n accessibilityExposure: string;\n accessibilityAdvices: string;\n pois: Function;\n touristicContents: Function;\n touristicEvents: Function;\n sources: string;\n city: string;\n crossedCities: string;\n placeholderCrossedCities: string;\n home: {\n segment: {\n treks: string;\n touristicContents: string;\n };\n touristicContents: string;\n touristicContent: string;\n };\n options: {\n presentation: string;\n description: string;\n recommendations: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n pois: string;\n steps: string;\n touristicContents: string;\n touristicEvents: string;\n };\n layers: {\n referencePoints: string;\n parking: string;\n sensitiveArea: string;\n informationPlaces: string;\n pois: string;\n steps: string;\n touristicContents: string;\n touristicEvents: string;\n };\n themes: string;\n placeholderThemes: string;\n placeholderPractices: string;\n routes: string;\n elevation: string;\n activities: string;\n districts: string;\n erase: string;\n ok: string;\n location: string;\n steps: string;\n usefulInformation: string;\n contact: string;\n email: string;\n website: string;\n category: string;\n services: string;\n}\n\ninterface AvailableTranslations {\n fr: Translation;\n en: Translation;\n}\n\nexport const translate: AvailableTranslations = {\n fr: {\n filter: 'Filtrer',\n practice: 'Pratique',\n difficulty: 'Difficulté',\n duration: 'Durée',\n length: 'Longueur',\n treks: 'itinéraires',\n trek: 'itinéraire',\n showList: 'Voir la liste',\n showMap: 'Voir la carte',\n showRoute: \"Voir l'itinéraire\",\n showDetails: 'Voir la fiche',\n download: 'Téléchargement',\n downloads: 'Téléchargements',\n description: 'Description',\n departure: 'Départ',\n arrival: 'Arrivée',\n elevationProfile: 'Profil altimétrique',\n roadAccess: 'Accès routier',\n transport: 'Transport',\n recommendations: 'Recommandations',\n recommendedParking: 'Parking conseillé',\n equipments: 'Équipements',\n environmentalSensitiveAreas: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n accessibility: 'Accessibilité',\n accessibilityLevel: \"Niveau d'accessibilité\",\n accessibilitySlope: 'Pente',\n accessibilityWidth: 'Largeur',\n accessibilitySignage: 'Signalisation',\n accessibilityCovering: 'Revêtement',\n accessibilityExposure: 'Exposition',\n accessibilityAdvices: 'Conseils',\n pois: (poisLength: number) => `Les ${poisLength} patrimoines à découvrir`,\n touristicContents: (touristicContentsLength: number) => `À proximité (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Événements (${touristicEventsLength})`,\n sources: 'Sources',\n city: 'Commune',\n crossedCities: 'Communes',\n placeholderCrossedCities: 'Sélectionner une ou plusieurs communes',\n home: {\n segment: {\n treks: 'Itinéraires',\n touristicContents: 'Services',\n },\n touristicContents: 'Services',\n touristicContent: 'Service',\n },\n options: {\n presentation: 'Présentation',\n description: 'Description',\n recommendations: 'Recommandations',\n environmentalSensitiveAreas: 'Zones sensibles',\n informationPlaces: \"Lieux d'informations\",\n pois: 'Patrimoines',\n steps: 'Étapes',\n touristicContents: 'À proximité',\n touristicEvents: 'Événements',\n },\n layers: {\n referencePoints: 'Points de référence',\n parking: 'Parking conseillé',\n sensitiveArea: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n pois: 'Patrimoines',\n steps: 'Étapes',\n touristicContents: 'À proximité',\n touristicEvents: 'Événements',\n },\n themes: 'Thèmes',\n placeholderThemes: 'Sélectionner un ou plusieurs thèmes',\n placeholderPractices: 'Sélectionner une ou plusieurs pratiques',\n routes: 'Type de parcours',\n elevation: 'Denivelé positif',\n activities: 'Activités',\n districts: 'Secteurs',\n erase: 'EFFACER',\n ok: 'OK',\n location: 'Localisation',\n steps: 'étapes',\n usefulInformation: 'Informations pratiques',\n contact: 'Contact',\n email: 'Email',\n website: 'Site web',\n category: 'Catégorie',\n services: 'Services',\n },\n en: {\n filter: 'Filter',\n practice: 'Practice',\n difficulty: 'Difficulty',\n duration: 'Duration',\n length: 'Length',\n treks: 'routes',\n trek: 'route',\n showList: 'Show the list',\n showMap: 'Show the map',\n showRoute: 'Show the route',\n showDetails: 'Show the details',\n download: 'Download',\n downloads: 'Downloads',\n description: 'Description',\n departure: 'Departure',\n arrival: 'Arrival',\n elevationProfile: 'Elevation profile',\n roadAccess: 'Road acess',\n transport: 'Transport',\n recommendations: 'Recommendations',\n recommendedParking: 'Parking recommended',\n equipments: 'Equipements',\n environmentalSensitiveAreas: 'Areas of environmental sensitivity',\n informationPlaces: 'Information places',\n accessibility: 'Accessibility',\n accessibilityLevel: 'Accessibility level',\n accessibilitySlope: 'Slope',\n accessibilityWidth: 'Width',\n accessibilitySignage: 'Signage',\n accessibilityCovering: 'Covering',\n accessibilityExposure: 'Exposure',\n accessibilityAdvices: 'Advices',\n pois: (poisLength: number) => `${poisLength} points of interest`,\n touristicContents: (touristicContentsLength: number) => `Near (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Events (${touristicEventsLength})`,\n sources: 'Sources',\n city: 'City',\n crossedCities: 'Cities',\n placeholderCrossedCities: 'Select one or more municipalities',\n home: {\n segment: {\n treks: 'Routes',\n touristicContents: 'Services',\n },\n touristicContents: 'Services',\n touristicContent: 'Service',\n },\n options: {\n presentation: 'Presentation',\n description: 'Description',\n recommendations: 'Recommendations',\n environmentalSensitiveAreas: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n steps: 'Steps',\n touristicContents: 'Near',\n touristicEvents: 'Events',\n },\n layers: {\n referencePoints: 'Reference points',\n parking: 'Parking',\n sensitiveArea: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n steps: 'Steps',\n touristicContents: 'Near',\n touristicEvents: 'Events',\n },\n themes: 'Themes',\n placeholderThemes: 'Select one or more themes',\n placeholderPractices: 'Select one or more practices',\n routes: 'Type of course',\n elevation: 'Positive elevation',\n activities: 'Activities',\n districts: 'Districts',\n erase: 'ERASE',\n ok: 'OK',\n location: 'Location',\n usefulInformation: 'Useful information',\n steps: 'steps',\n contact: 'Contact',\n email: 'Email',\n website: 'Website',\n category: 'Category',\n services: 'Services',\n },\n};\n"],"mappings":"IA6FaA,UAAmC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JC,SAAU,WACVC,kBAAmB,qBACnBf,MAAO,QACPgB,QAAS,UACTC,MAAO,QACPC,QAAS,UACTC,SAAU,WACVC,SAAU,oB"}
@@ -1,2 +0,0 @@
1
- import{c as getRenderingRef,f as forceUpdate}from"./index-d5cacae4.js";var appendToMap=function(e,n,t){var r=e.get(n);if(!r){e.set(n,[t])}else if(!r.includes(t)){r.push(t)}};var debounce=function(e,n){var t;return function(){var r=[];for(var u=0;u<arguments.length;u++){r[u]=arguments[u]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;e.apply(void 0,r)}),n)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var n=0,t=e.keys();n<t.length;n++){var r=t[n];e.set(r,e.get(r).filter(isConnected))}}),2e3);var stencilSubscription=function(){if(typeof getRenderingRef!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(n){var t=getRenderingRef();if(t){appendToMap(e,n,t)}},set:function(n){var t=e.get(n);if(t){e.set(n,t.filter(forceUpdate))}cleanupElements(e)},reset:function(){e.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(e)}}};var unwrap=function(e){return typeof e==="function"?e():e};var createObservableMap=function(e,n){if(n===void 0){n=function(e,n){return e!==n}}var t=unwrap(e);var r=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var u={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;r=new Map(Object.entries((n=unwrap(e))!==null&&n!==void 0?n:{}));u.reset.forEach((function(e){return e()}))};var s=function(){u.dispose.forEach((function(e){return e()}));i()};var o=function(e){u.get.forEach((function(n){return n(e)}));return r.get(e)};var l=function(e,t){var i=r.get(e);if(n(t,i,e)){r.set(e,t);u.set.forEach((function(n){return n(e,t,i)}))}};var c=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(e,n){return o(n)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,n){return r.has(n)},set:function(e,n,t){l(n,t);return true}});var a=function(e,n){u[e].push(n);return function(){removeFromArray(u[e],n)}};var f=function(n,t){var r=a("set",(function(e,r){if(e===n){t(r)}}));var u=a("reset",(function(){return t(unwrap(e)[n])}));return function(){r();u()}};var p=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var t=e.reduce((function(e,n){if(n.set){e.push(a("set",n.set))}if(n.get){e.push(a("get",n.get))}if(n.reset){e.push(a("reset",n.reset))}if(n.dispose){e.push(a("dispose",n.dispose))}return e}),[]);return function(){return t.forEach((function(e){return e()}))}};var v=function(e){var n=r.get(e);u.set.forEach((function(t){return t(e,n,n)}))};return{state:c,get:o,set:l,on:a,onChange:f,use:p,dispose:s,reset:i,forceUpdate:v}};var removeFromArray=function(e,n){var t=e.indexOf(n);if(t>=0){e[t]=e[e.length-1];e.length--}};var createStore=function(e,n){var t=createObservableMap(e,n);t.use(stencilSubscription());return t};var _b=createStore({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:null,durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,treksNetworkError:false,trekNetworkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null,selectedStepId:null,trekTouristicContents:null,touristicContents:null,currentTouristicContents:null,touristicContentsWithinBounds:null,touristicContentCategories:null,currentTouristicContent:null,touristicEvents:null,touristicEventTypes:null,currentTouristicEvent:null,selectedTouristicContentId:null}),state=_b.state,onChange=_b.onChange,reset=_b.reset;export{onChange as o,reset as r,state as s};
2
- //# sourceMappingURL=store-032ab1f5.js.map
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_b","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","mode","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","treksNetworkError","trekNetworkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps","selectedStepId","trekTouristicContents","touristicContents","currentTouristicContents","touristicContentsWithinBounds","touristicContentCategories","currentTouristicContent","touristicEvents","touristicEventTypes","currentTouristicEvent","selectedTouristicContentId"],"sources":["node_modules/@stencil/store/dist/index.mjs","src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n accessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n TouristicContents,\n TouristicContentCategories,\n TouristicContent,\n TouristicEvents,\n TouristicEventTypes,\n TouristicEvent,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n mode: string;\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n accessibilities: Accessibilities;\n accessibilitiesLevel: accessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n treksNetworkError: boolean;\n trekNetworkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n touristicEvents: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n treksNetworkError: false,\n trekNetworkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n touristicEvents: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"uEAEA,IAAMA,YAAc,SAACC,EAAKC,EAAUC,GAChC,IAAMC,EAAQH,EAAII,IAAIH,GACtB,IAAKE,EAAO,CACRH,EAAIK,IAAIJ,EAAU,CAACC,G,MAElB,IAAKC,EAAMG,SAASJ,GAAQ,CAC7BC,EAAMI,KAAKL,E,CAEnB,EACA,IAAMM,SAAW,SAACC,EAAIC,GAClB,IAAIC,EACJ,OAAO,WAAC,IAAAC,EAAA,G,IAAA,IAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAO,CAAPD,EAAAC,GAAAC,UAAAD,E,CACJ,GAAIF,EAAW,CACXK,aAAaL,E,CAEjBA,EAAYM,YAAW,WACnBN,EAAY,EACZF,EAAES,WAAA,EAAIN,EAClB,GAAWF,EACX,CACA,EAWA,IAAMS,YAAc,SAACC,GAAiB,QAAE,gBAAiBA,IAAiBA,EAAaD,WAAjD,EACtC,IAAME,gBAAkBb,UAAS,SAACR,GAC9B,IAAgB,IAAAa,EAAA,EAAAS,EAAAtB,EAAIuB,OAAJV,EAAAS,EAAAP,OAAAF,IAAY,CAAvB,IAAIW,EAAGF,EAAAT,GACRb,EAAIK,IAAImB,EAAKxB,EAAII,IAAIoB,GAAKC,OAAON,a,CAEzC,GAAG,KACH,IAAMO,oBAAsB,WACxB,UAAWC,kBAAoB,WAAY,CAGvC,MAAO,E,CAEX,IAAMC,EAAe,IAAIC,IACzB,MAAO,CACHC,QAAS,WAAM,OAAAF,EAAaG,OAAb,EACf3B,IAAK,SAACH,GACF,IAAM+B,EAAML,kBACZ,GA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BAAyB,EACzBC,eAAgB,KAChBC,aAAc,KACdC,WAAY,KACZC,iBAAkB,KAClBC,eAAgB,KAChBC,sBAAuB,KACvBC,kBAAmB,KACnBC,yBAA0B,KAC1BC,8BAA+B,KAC/BC,2BAA4B,KAC5BC,wBAAyB,KACzBC,gBAAiB,KACjBC,oBAAqB,KACrBC,sBAAuB,KACvBC,2BAA4B,OA/FtB3E,MAAK/B,GAAA+B,MAAEc,SAAQ7C,GAAA6C,SAAEhC,MAAKb,GAAAa,a"}
@@ -1,2 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,s;i<n;i++){if(s||!(i in e)){if(!s)s=Array.prototype.slice.call(e,0,i);s[i]=e[i]}}return t.concat(s||Array.prototype.slice.call(e))};import{s as state}from"./store-032ab1f5.js";function formatDuration(t){var e;if(t<24){e="".concat(Math.floor(t),"h");if(t%1>0){e+="".concat(Math.round(60*(t%1)),"min")}}else{e="".concat(t/24,"j")}return e}function formatLength(t){return"".concat(Math.round(t/1e3),"km")}function formatAscent(t){return"".concat(t,"m")}var treksFilters=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicContentsFilters=[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];function handleTreksFiltersAndSearch(){var t=false;var e=[];var r=function(r){var i=state[r.property].filter((function(t){return t.selected})).map((function(t){return t.id}));if(i.length>0){if(e.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){e=__spreadArray([],e.filter((function(t){return t[r.trekProperty].some((function(t){return i.includes(t)}))})),true)}else{e=__spreadArray([],e.filter((function(t){return i.includes(t[r.trekProperty])})),true)}}else if(r.type==="interval"){e=__spreadArray([],e.filter((function(t){var e=function(e){var i=state[r.property].find((function(t){return t.id===e}));if(t[r.trekProperty]>=i.minValue&&t[r.trekProperty]<=i.maxValue){return{value:true}}};for(var n=0,s=i;n<s.length;n++){var o=s[n];var a=e(o);if(typeof a==="object")return a.value}return false})),true)}}else{if(!t){t=true}if(r.type==="include"){if(r.trekPropertyIsArray){e=__spreadArray([],state.treks.filter((function(t){return t[r.trekProperty].some((function(t){return i.includes(t)}))})),true)}else{e=__spreadArray([],state.treks.filter((function(t){return i.includes(t[r.trekProperty])})),true)}}else if(r.type==="interval"){var n;var s;var o=function(t){var e=state[r.property].find((function(e){return e.id===t}));if(isNaN(n)||e.minValue<n){n=e.minValue}if(isNaN(s)||e.maxValue>s){s=e.maxValue}};for(var a=0,u=i;a<u.length;a++){var c=u[a];o(c)}e=__spreadArray([],state.treks.filter((function(t){return t[r.trekProperty]>=n&&t[r.trekProperty]<=s})),true)}}}};for(var i=0,n=treksFilters;i<n.length;i++){var s=n[i];r(s)}var o=t?e:state.treks;return Boolean(state.searchValue)?o.filter((function(t){return t.name.toLowerCase().includes(state.searchValue.toLowerCase())})):o}function handleTouristicContentsFiltersAndSearch(){var t=false;var e=[];var r=function(r){var i=state[r.property].filter((function(t){return t.selected})).map((function(t){return t.id}));if(i.length>0){if(e.length>0){if(r.type==="include"){if(r.touristicContentPropertyIsArray){e=__spreadArray([],e.filter((function(t){return t[r.touristicContentProperty].some((function(t){return i.includes(t)}))})),true)}else{e=__spreadArray([],e.filter((function(t){return i.includes(t[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){e=__spreadArray([],e.filter((function(t){var e=function(e){var i=state[r.property].find((function(t){return t.id===e}));if(t[r.touristicContentProperty]>=i.minValue&&t[r.touristicContentProperty]<=i.maxValue){return{value:true}}};for(var n=0,s=i;n<s.length;n++){var o=s[n];var a=e(o);if(typeof a==="object")return a.value}return false})),true)}}else{if(!t){t=true}if(r.type==="include"){if(r.touristicContentPropertyIsArray){e=__spreadArray([],state.touristicContents.filter((function(t){return t[r.touristicContentProperty].some((function(t){return i.includes(t)}))})),true)}else{e=__spreadArray([],state.touristicContents.filter((function(t){return i.includes(t[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){var n;var s;var o=function(t){var e=state[r.property].find((function(e){return e.id===t}));if(isNaN(n)||e.minValue<n){n=e.minValue}if(isNaN(s)||e.maxValue>s){s=e.maxValue}};for(var a=0,u=i;a<u.length;a++){var c=u[a];o(c)}e=__spreadArray([],state.touristicContents.filter((function(t){return t[r.touristicContentProperty]>=n&&t[r.touristicContentProperty]<=s})),true)}}}};for(var i=0,n=touristicContentsFilters;i<n.length;i++){var s=n[i];r(s)}var o=t?e:state.touristicContents;return Boolean(state.searchValue)?o.filter((function(t){return t.name.toLowerCase().includes(state.searchValue.toLowerCase())})):o}export{touristicContentsFilters as a,handleTouristicContentsFiltersAndSearch as b,formatLength as c,formatAscent as d,formatDuration as f,handleTreksFiltersAndSearch as h,treksFilters as t};
2
- //# sourceMappingURL=utils-b09ac7c9.js.map
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"version":3,"names":["formatDuration","duration","formattedDuration","concat","Math","floor","round","formatLength","length","formatAscent","ascent","treksFilters","property","trekProperty","trekPropertyIsArray","type","segment","touristicContentsFilters","touristicContentProperty","touristicContentPropertyIsArray","handleTreksFiltersAndSearch","isUsingFilter","filtersTreks","filter","currentFiltersId","state","currentFilter","selected","map","id","__spreadArray","trek","some","includes","currentFilterId","find","minValue","maxValue","_i","currentFiltersId_2","treks","minValue_1","maxValue_1","isNaN","_a","currentFiltersId_1","treksFilters_1","searchTreks","Boolean","searchValue","currentTrek","name","toLowerCase","handleTouristicContentsFiltersAndSearch","filtersTouristicContents","touristicContent","currentFiltersId_4","touristicContents","minValue_2","maxValue_2","currentFiltersId_3","touristicContentsFilters_1","searchTouristicContents","currentTouristicContents"],"sources":["src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { TouristicContents, TouristicContentsFilters, TrekFilters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport const treksFilters: TrekFilters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include', segment: 'selectedThemesFilters' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', trekProperty: 'districts', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport const touristicContentsFilters: TouristicContentsFilters = [\n { property: 'touristicContentCategories', touristicContentProperty: 'category', touristicContentPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'cities', touristicContentProperty: 'cities', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', touristicContentProperty: 'districts', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport function handleTreksFiltersAndSearch(): Treks {\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of treksFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...filtersTreks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n\nexport function handleTouristicContentsFiltersAndSearch(): TouristicContents {\n let isUsingFilter = false;\n let filtersTouristicContents = [];\n for (const filter of touristicContentsFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n\n if (currentFiltersId.length > 0) {\n if (filtersTouristicContents.length > 0) {\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...filtersTouristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (touristicContent[filter.touristicContentProperty] >= currentFilter.minValue && touristicContent[filter.touristicContentProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...state.touristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...state.touristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTouristicContents = [\n ...state.touristicContents.filter(\n touristicContent => touristicContent[filter.touristicContentProperty] >= minValue && touristicContent[filter.touristicContentProperty] <= maxValue,\n ),\n ];\n }\n }\n }\n }\n const searchTouristicContents = isUsingFilter ? filtersTouristicContents : state.touristicContents;\n\n return Boolean(state.searchValue)\n ? searchTouristicContents.filter(currentTouristicContents => currentTouristicContents.name.toLowerCase().includes(state.searchValue.toLowerCase()))\n : searchTouristicContents;\n}\n"],"mappings":"uSAGgBA,eAAeC,GAC7B,IAAIC,EACJ,GAAID,EAAW,GAAI,CACjBC,EAAoB,GAAAC,OAAGC,KAAKC,MAAMJ,GAAS,KAC3C,GAAIA,EAAW,EAAI,EAAG,CACpBC,G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
- import{c as e,f as t}from"./p-0c07a3f0.js";const n=(e,t,n)=>{const s=e.get(t);if(!s){e.set(t,[n])}else if(!s.includes(n)){s.push(n)}};const s=(e,t)=>{let n;return(...s)=>{if(n){clearTimeout(n)}n=setTimeout((()=>{n=0;e(...s)}),t)}};const r=e=>!("isConnected"in e)||e.isConnected;const l=s((e=>{for(let t of e.keys()){e.set(t,e.get(t).filter(r))}}),2e3);const u=()=>{if(typeof e!=="function"){return{}}const s=new Map;return{dispose:()=>s.clear(),get:t=>{const r=e();if(r){n(s,t,r)}},set:e=>{const n=s.get(e);if(n){s.set(e,n.filter(t))}l(s)},reset:()=>{s.forEach((e=>e.forEach(t)));l(s)}}};const o=e=>typeof e==="function"?e():e;const i=(e,t=((e,t)=>e!==t))=>{const n=o(e);let s=new Map(Object.entries(n!==null&&n!==void 0?n:{}));const r={dispose:[],get:[],set:[],reset:[]};const l=()=>{var t;s=new Map(Object.entries((t=o(e))!==null&&t!==void 0?t:{}));r.reset.forEach((e=>e()))};const u=()=>{r.dispose.forEach((e=>e()));l()};const i=e=>{r.get.forEach((t=>t(e)));return s.get(e)};const a=(e,n)=>{const l=s.get(e);if(t(n,l,e)){s.set(e,n);r.set.forEach((t=>t(e,n,l)))}};const f=typeof Proxy==="undefined"?{}:new Proxy(n,{get(e,t){return i(t)},ownKeys(e){return Array.from(s.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(e,t){return s.has(t)},set(e,t,n){a(t,n);return true}});const d=(e,t)=>{r[e].push(t);return()=>{c(r[e],t)}};const p=(t,n)=>{const s=d("set",((e,s)=>{if(e===t){n(s)}}));const r=d("reset",(()=>n(o(e)[t])));return()=>{s();r()}};const T=(...e)=>{const t=e.reduce(((e,t)=>{if(t.set){e.push(d("set",t.set))}if(t.get){e.push(d("get",t.get))}if(t.reset){e.push(d("reset",t.reset))}if(t.dispose){e.push(d("dispose",t.dispose))}return e}),[]);return()=>t.forEach((e=>e()))};const g=e=>{const t=s.get(e);r.set.forEach((n=>n(e,t,t)))};return{state:f,get:i,set:a,on:d,onChange:p,use:T,dispose:u,reset:l,forceUpdate:g}};const c=(e,t)=>{const n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};const a=(e,t)=>{const n=i(e,t);n.use(u());return n};const{state:f,onChange:d,reset:p}=a({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:null,durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,treksNetworkError:false,trekNetworkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null,selectedStepId:null,trekTouristicContents:null,touristicContents:null,currentTouristicContents:null,touristicContentsWithinBounds:null,touristicContentCategories:null,currentTouristicContent:null,touristicEvents:null,touristicEventTypes:null,currentTouristicEvent:null,selectedTouristicContentId:null});export{d as o,p as r,f as s};
2
- //# sourceMappingURL=p-048b3a1e.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","clearTimeout","setTimeout","isConnected","maybeElement","cleanupElements","key","keys","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","length","createStore","mode","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","treksNetworkError","trekNetworkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps","selectedStepId","trekTouristicContents","touristicContents","currentTouristicContents","touristicContentsWithinBounds","touristicContentCategories","currentTouristicContent","touristicEvents","touristicEventTypes","currentTouristicEvent","selectedTouristicContentId"],"sources":["./node_modules/@stencil/store/dist/index.mjs","./src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n accessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n TouristicContents,\n TouristicContentCategories,\n TouristicContent,\n TouristicEvents,\n TouristicEventTypes,\n TouristicEvent,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n mode: string;\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n accessibilities: Accessibilities;\n accessibilitiesLevel: accessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n treksNetworkError: boolean;\n trekNetworkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n touristicEvents: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n treksNetworkError: false,\n trekNetworkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n touristicEvents: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"2CAEA,MAAMA,EAAc,CAACC,EAAKC,EAAUC,KAChC,MAAMC,EAAQH,EAAII,IAAIH,GACtB,IAAKE,EAAO,CACRH,EAAIK,IAAIJ,EAAU,CAACC,GAC3B,MACS,IAAKC,EAAMG,SAASJ,GAAQ,CA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qBAAsB,KACtBC,SAAU,KACVC,YAAa,KACbC,YAAa,KACbC,wBAAyB,KACzBC,kBAAmB,MACnBC,iBAAkB,MAClBC,YAAa,KACbC,0BAA2B,EAC3BC,sBAAuB,EACvBC,wBAAyB,EACzBC,eAAgB,KAChBC,aAAc,KACdC,WAAY,KACZC,iBAAkB,KAClBC,eAAgB,KAChBC,sBAAuB,KACvBC,kBAAmB,KACnBC,yBAA0B,KAC1BC,8BAA+B,KAC/BC,2BAA4B,KAC5BC,wBAAyB,KACzBC,gBAAiB,KACjBC,oBAAqB,KACrBC,sBAAuB,KACvBC,2BAA4B,c"}
@@ -1,2 +0,0 @@
1
- System.register([],(function(e){"use strict";return{execute:function(){var i=e("t",{fr:{filter:"Filtrer",practice:"Pratique",difficulty:"Difficulté",duration:"Durée",length:"Longueur",treks:"itinéraires",trek:"itinéraire",showList:"Voir la liste",showMap:"Voir la carte",showRoute:"Voir l'itinéraire",showDetails:"Voir la fiche",download:"Téléchargement",downloads:"Téléchargements",description:"Description",departure:"Départ",arrival:"Arrivée",elevationProfile:"Profil altimétrique",roadAccess:"Accès routier",transport:"Transport",recommendations:"Recommandations",recommendedParking:"Parking conseillé",equipments:"Équipements",environmentalSensitiveAreas:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",accessibility:"Accessibilité",accessibilityLevel:"Niveau d'accessibilité",accessibilitySlope:"Pente",accessibilityWidth:"Largeur",accessibilitySignage:"Signalisation",accessibilityCovering:"Revêtement",accessibilityExposure:"Exposition",accessibilityAdvices:"Conseils",pois:function(e){return"Les ".concat(e," patrimoines à découvrir")},touristicContents:function(e){return"À proximité (".concat(e,")")},touristicEvents:function(e){return"Événements (".concat(e,")")},sources:"Sources",city:"Commune",crossedCities:"Communes",placeholderCrossedCities:"Sélectionner une ou plusieurs communes",home:{segment:{treks:"Itinéraires",touristicContents:"Services"},touristicContents:"Services",touristicContent:"Service"},options:{presentation:"Présentation",description:"Description",recommendations:"Recommandations",environmentalSensitiveAreas:"Zones sensibles",informationPlaces:"Lieux d'informations",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},layers:{referencePoints:"Points de référence",parking:"Parking conseillé",sensitiveArea:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},themes:"Thèmes",placeholderThemes:"Sélectionner un ou plusieurs thèmes",placeholderPractices:"Sélectionner une ou plusieurs pratiques",routes:"Type de parcours",elevation:"Denivelé positif",activities:"Activités",districts:"Secteurs",erase:"EFFACER",ok:"OK",location:"Localisation",steps:"étapes",usefulInformation:"Informations pratiques",contact:"Contact",email:"Email",website:"Site web",category:"Catégorie",services:"Services"},en:{filter:"Filter",practice:"Practice",difficulty:"Difficulty",duration:"Duration",length:"Length",treks:"routes",trek:"route",showList:"Show the list",showMap:"Show the map",showRoute:"Show the route",showDetails:"Show the details",download:"Download",downloads:"Downloads",description:"Description",departure:"Departure",arrival:"Arrival",elevationProfile:"Elevation profile",roadAccess:"Road acess",transport:"Transport",recommendations:"Recommendations",recommendedParking:"Parking recommended",equipments:"Equipements",environmentalSensitiveAreas:"Areas of environmental sensitivity",informationPlaces:"Information places",accessibility:"Accessibility",accessibilityLevel:"Accessibility level",accessibilitySlope:"Slope",accessibilityWidth:"Width",accessibilitySignage:"Signage",accessibilityCovering:"Covering",accessibilityExposure:"Exposure",accessibilityAdvices:"Advices",pois:function(e){return"".concat(e," points of interest")},touristicContents:function(e){return"Near (".concat(e,")")},touristicEvents:function(e){return"Events (".concat(e,")")},sources:"Sources",city:"City",crossedCities:"Cities",placeholderCrossedCities:"Select one or more municipalities",home:{segment:{treks:"Routes",touristicContents:"Services"},touristicContents:"Services",touristicContent:"Service"},options:{presentation:"Presentation",description:"Description",recommendations:"Recommendations",environmentalSensitiveAreas:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},layers:{referencePoints:"Reference points",parking:"Parking",sensitiveArea:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},themes:"Themes",placeholderThemes:"Select one or more themes",placeholderPractices:"Select one or more practices",routes:"Type of course",elevation:"Positive elevation",activities:"Activities",districts:"Districts",erase:"ERASE",ok:"OK",location:"Location",usefulInformation:"Useful information",steps:"steps",contact:"Contact",email:"Email",website:"Website",category:"Category",services:"Services"}})}}}));
2
- //# sourceMappingURL=p-0f47847d.system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["translate","exports","fr","filter","practice","difficulty","duration","length","treks","trek","showList","showMap","showRoute","showDetails","download","downloads","description","departure","arrival","elevationProfile","roadAccess","transport","recommendations","recommendedParking","equipments","environmentalSensitiveAreas","informationPlaces","accessibility","accessibilityLevel","accessibilitySlope","accessibilityWidth","accessibilitySignage","accessibilityCovering","accessibilityExposure","accessibilityAdvices","pois","poisLength","concat","touristicContents","touristicContentsLength","touristicEvents","touristicEventsLength","sources","city","crossedCities","placeholderCrossedCities","home","segment","touristicContent","options","presentation","steps","layers","referencePoints","parking","sensitiveArea","themes","placeholderThemes","placeholderPractices","routes","elevation","activities","districts","erase","ok","location","usefulInformation","contact","email","website","category","services","en"],"sources":["src/i18n/i18n.ts"],"sourcesContent":["interface Translation {\n filter: string;\n practice: string;\n difficulty: string;\n duration: string;\n length: string;\n treks: string;\n trek: string;\n showList: string;\n showMap: string;\n showRoute: string;\n showDetails: string;\n download: string;\n downloads: string;\n description: string;\n departure: string;\n arrival: string;\n elevationProfile: string;\n roadAccess: string;\n transport: string;\n recommendations: string;\n recommendedParking: string;\n equipments: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n accessibility: string;\n accessibilityLevel: string;\n accessibilitySlope: string;\n accessibilityWidth: string;\n accessibilitySignage: string;\n accessibilityCovering: string;\n accessibilityExposure: string;\n accessibilityAdvices: string;\n pois: Function;\n touristicContents: Function;\n touristicEvents: Function;\n sources: string;\n city: string;\n crossedCities: string;\n placeholderCrossedCities: string;\n home: {\n segment: {\n treks: string;\n touristicContents: string;\n };\n touristicContents: string;\n touristicContent: string;\n };\n options: {\n presentation: string;\n description: string;\n recommendations: string;\n environmentalSensitiveAreas: string;\n informationPlaces: string;\n pois: string;\n steps: string;\n touristicContents: string;\n touristicEvents: string;\n };\n layers: {\n referencePoints: string;\n parking: string;\n sensitiveArea: string;\n informationPlaces: string;\n pois: string;\n steps: string;\n touristicContents: string;\n touristicEvents: string;\n };\n themes: string;\n placeholderThemes: string;\n placeholderPractices: string;\n routes: string;\n elevation: string;\n activities: string;\n districts: string;\n erase: string;\n ok: string;\n location: string;\n steps: string;\n usefulInformation: string;\n contact: string;\n email: string;\n website: string;\n category: string;\n services: string;\n}\n\ninterface AvailableTranslations {\n fr: Translation;\n en: Translation;\n}\n\nexport const translate: AvailableTranslations = {\n fr: {\n filter: 'Filtrer',\n practice: 'Pratique',\n difficulty: 'Difficulté',\n duration: 'Durée',\n length: 'Longueur',\n treks: 'itinéraires',\n trek: 'itinéraire',\n showList: 'Voir la liste',\n showMap: 'Voir la carte',\n showRoute: \"Voir l'itinéraire\",\n showDetails: 'Voir la fiche',\n download: 'Téléchargement',\n downloads: 'Téléchargements',\n description: 'Description',\n departure: 'Départ',\n arrival: 'Arrivée',\n elevationProfile: 'Profil altimétrique',\n roadAccess: 'Accès routier',\n transport: 'Transport',\n recommendations: 'Recommandations',\n recommendedParking: 'Parking conseillé',\n equipments: 'Équipements',\n environmentalSensitiveAreas: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n accessibility: 'Accessibilité',\n accessibilityLevel: \"Niveau d'accessibilité\",\n accessibilitySlope: 'Pente',\n accessibilityWidth: 'Largeur',\n accessibilitySignage: 'Signalisation',\n accessibilityCovering: 'Revêtement',\n accessibilityExposure: 'Exposition',\n accessibilityAdvices: 'Conseils',\n pois: (poisLength: number) => `Les ${poisLength} patrimoines à découvrir`,\n touristicContents: (touristicContentsLength: number) => `À proximité (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Événements (${touristicEventsLength})`,\n sources: 'Sources',\n city: 'Commune',\n crossedCities: 'Communes',\n placeholderCrossedCities: 'Sélectionner une ou plusieurs communes',\n home: {\n segment: {\n treks: 'Itinéraires',\n touristicContents: 'Services',\n },\n touristicContents: 'Services',\n touristicContent: 'Service',\n },\n options: {\n presentation: 'Présentation',\n description: 'Description',\n recommendations: 'Recommandations',\n environmentalSensitiveAreas: 'Zones sensibles',\n informationPlaces: \"Lieux d'informations\",\n pois: 'Patrimoines',\n steps: 'Étapes',\n touristicContents: 'À proximité',\n touristicEvents: 'Événements',\n },\n layers: {\n referencePoints: 'Points de référence',\n parking: 'Parking conseillé',\n sensitiveArea: 'Zones de sensibilité environnementale',\n informationPlaces: 'Lieux de renseignement',\n pois: 'Patrimoines',\n steps: 'Étapes',\n touristicContents: 'À proximité',\n touristicEvents: 'Événements',\n },\n themes: 'Thèmes',\n placeholderThemes: 'Sélectionner un ou plusieurs thèmes',\n placeholderPractices: 'Sélectionner une ou plusieurs pratiques',\n routes: 'Type de parcours',\n elevation: 'Denivelé positif',\n activities: 'Activités',\n districts: 'Secteurs',\n erase: 'EFFACER',\n ok: 'OK',\n location: 'Localisation',\n steps: 'étapes',\n usefulInformation: 'Informations pratiques',\n contact: 'Contact',\n email: 'Email',\n website: 'Site web',\n category: 'Catégorie',\n services: 'Services',\n },\n en: {\n filter: 'Filter',\n practice: 'Practice',\n difficulty: 'Difficulty',\n duration: 'Duration',\n length: 'Length',\n treks: 'routes',\n trek: 'route',\n showList: 'Show the list',\n showMap: 'Show the map',\n showRoute: 'Show the route',\n showDetails: 'Show the details',\n download: 'Download',\n downloads: 'Downloads',\n description: 'Description',\n departure: 'Departure',\n arrival: 'Arrival',\n elevationProfile: 'Elevation profile',\n roadAccess: 'Road acess',\n transport: 'Transport',\n recommendations: 'Recommendations',\n recommendedParking: 'Parking recommended',\n equipments: 'Equipements',\n environmentalSensitiveAreas: 'Areas of environmental sensitivity',\n informationPlaces: 'Information places',\n accessibility: 'Accessibility',\n accessibilityLevel: 'Accessibility level',\n accessibilitySlope: 'Slope',\n accessibilityWidth: 'Width',\n accessibilitySignage: 'Signage',\n accessibilityCovering: 'Covering',\n accessibilityExposure: 'Exposure',\n accessibilityAdvices: 'Advices',\n pois: (poisLength: number) => `${poisLength} points of interest`,\n touristicContents: (touristicContentsLength: number) => `Near (${touristicContentsLength})`,\n touristicEvents: (touristicEventsLength: number) => `Events (${touristicEventsLength})`,\n sources: 'Sources',\n city: 'City',\n crossedCities: 'Cities',\n placeholderCrossedCities: 'Select one or more municipalities',\n home: {\n segment: {\n treks: 'Routes',\n touristicContents: 'Services',\n },\n touristicContents: 'Services',\n touristicContent: 'Service',\n },\n options: {\n presentation: 'Presentation',\n description: 'Description',\n recommendations: 'Recommendations',\n environmentalSensitiveAreas: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n steps: 'Steps',\n touristicContents: 'Near',\n touristicEvents: 'Events',\n },\n layers: {\n referencePoints: 'Reference points',\n parking: 'Parking',\n sensitiveArea: 'Sensitive areas',\n informationPlaces: 'Information places',\n pois: 'Points of interest',\n steps: 'Steps',\n touristicContents: 'Near',\n touristicEvents: 'Events',\n },\n themes: 'Themes',\n placeholderThemes: 'Select one or more themes',\n placeholderPractices: 'Select one or more practices',\n routes: 'Type of course',\n elevation: 'Positive elevation',\n activities: 'Activities',\n districts: 'Districts',\n erase: 'ERASE',\n ok: 'OK',\n location: 'Location',\n usefulInformation: 'Useful information',\n steps: 'steps',\n contact: 'Contact',\n email: 'Email',\n website: 'Website',\n category: 'Category',\n services: 'Services',\n },\n};\n"],"mappings":"2EA6FaA,EAASC,EAAA,IAA0B,CAC9CC,GAAI,CACFC,OAAQ,UACRC,SAAU,WACVC,WAAY,aACZC,SAAU,QACVC,OAAQ,WACRC,MAAO,cACPC,KAAM,aACNC,SAAU,gBACVC,QAAS,gBACTC,UAAW,oBACXC,YAAa,g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e){"use strict";var n,t;return{setters:[function(e){n=e.c;t=e.f}],execute:function(){var r=function(e,n,t){var r=e.get(n);if(!r){e.set(n,[t])}else if(!r.includes(t)){r.push(t)}};var u=function(e,n){var t;return function(){var r=[];for(var u=0;u<arguments.length;u++){r[u]=arguments[u]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;e.apply(void 0,r)}),n)}};var i=function(e){return!("isConnected"in e)||e.isConnected};var s=u((function(e){for(var n=0,t=e.keys();n<t.length;n++){var r=t[n];e.set(r,e.get(r).filter(i))}}),2e3);var l=function(){if(typeof n!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(t){var u=n();if(u){r(e,t,u)}},set:function(n){var r=e.get(n);if(r){e.set(n,r.filter(t))}s(e)},reset:function(){e.forEach((function(e){return e.forEach(t)}));s(e)}}};var o=function(e){return typeof e==="function"?e():e};var c=function(e,n){if(n===void 0){n=function(e,n){return e!==n}}var t=o(e);var r=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var u={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;r=new Map(Object.entries((n=o(e))!==null&&n!==void 0?n:{}));u.reset.forEach((function(e){return e()}))};var s=function(){u.dispose.forEach((function(e){return e()}));i()};var l=function(e){u.get.forEach((function(n){return n(e)}));return r.get(e)};var c=function(e,t){var i=r.get(e);if(n(t,i,e)){r.set(e,t);u.set.forEach((function(n){return n(e,t,i)}))}};var f=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(e,n){return l(n)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,n){return r.has(n)},set:function(e,n,t){c(n,t);return true}});var v=function(e,n){u[e].push(n);return function(){a(u[e],n)}};var d=function(n,t){var r=v("set",(function(e,r){if(e===n){t(r)}}));var u=v("reset",(function(){return t(o(e)[n])}));return function(){r();u()}};var p=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var t=e.reduce((function(e,n){if(n.set){e.push(v("set",n.set))}if(n.get){e.push(v("get",n.get))}if(n.reset){e.push(v("reset",n.reset))}if(n.dispose){e.push(v("dispose",n.dispose))}return e}),[]);return function(){return t.forEach((function(e){return e()}))}};var g=function(e){var n=r.get(e);u.set.forEach((function(t){return t(e,n,n)}))};return{state:f,get:l,set:c,on:v,onChange:d,use:p,dispose:s,reset:i,forceUpdate:g}};var a=function(e,n){var t=e.indexOf(n);if(t>=0){e[t]=e[e.length-1];e.length--}};var f=function(e,n){var t=c(e,n);t.use(l());return t};var v=f({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:null,durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,treksNetworkError:false,trekNetworkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null,selectedStepId:null,trekTouristicContents:null,touristicContents:null,currentTouristicContents:null,touristicContentsWithinBounds:null,touristicContentCategories:null,currentTouristicContent:null,touristicEvents:null,touristicEventTypes:null,currentTouristicEvent:null,selectedTouristicContentId:null}),d=v.state,p=v.onChange,g=v.reset;e({s:d,o:p,r:g})}}}));
2
- //# sourceMappingURL=p-10ee2e5e.system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_b","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","mode","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","treksNetworkError","trekNetworkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps","selectedStepId","trekTouristicContents","touristicContents","currentTouristicContents","touristicContentsWithinBounds","touristicContentCategories","currentTouristicContent","touristicEvents","touristicEventTypes","currentTouristicEvent","selectedTouristicContentId","exports","s","o","r"],"sources":["node_modules/@stencil/store/dist/index.mjs","src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n accessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n TouristicContents,\n TouristicContentCategories,\n TouristicContent,\n TouristicEvents,\n TouristicEventTypes,\n TouristicEvent,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n mode: string;\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n accessibilities: Accessibilities;\n accessibilitiesLevel: accessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n treksNetworkError: boolean;\n trekNetworkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n touristicEvents: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n treksNetworkError: false,\n trekNetworkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n touristicEvents: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n});\n\nexport { onChange, reset };\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MAAEc,EAAQ7C,EAAA6C,SAAEhC,EAAKb,EAAAa,MAgG7B8F,EAAA,CAAAC,EAAA7E,EAAA8E,EAAAhE,EAAAiE,EAAAjG,G"}
@@ -1,2 +0,0 @@
1
- import{r as e,h as l,H as s}from"./p-0c07a3f0.js";import{s as a}from"./p-048b3a1e.js";const t='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';const n=class{constructor(l){e(this,l)}handleSelect(e){a.treks=null;a.currentTreks=null;a.currentTrek=null;a.language=e.target.value}render(){return l(s,null,l("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),l("select",{onInput:e=>this.handleSelect(e),name:"languages",id:"language-select"},a.languages.map((e=>l("option",{selected:e===a.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())))))}};n.style=t;export{n as grw_select_language};
2
- //# sourceMappingURL=p-1a0c7f72.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwSelectLanguageCss","GrwSelectLanguage","handleSelect","event","state","treks","currentTreks","currentTrek","language","target","value","render","h","Host","translate","class","onInput","this","name","id","languages","map","selected","toLocaleLowerCase","toLocaleUpperCase"],"sources":["./src/components/grw-select-language/grw-select-language.scss?tag=grw-select-language&encapsulation=shadow","./src/components/grw-select-language/grw-select-language.tsx"],"sourcesContent":[".material-symbols {\n font-family: 'Material Symbols Outlined';\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n display: flex;\n align-items: center;\n span {\n font-size: 18px;\n }\n #language-select {\n border: none;\n background-color: var(--color-background);\n &:focus-visible {\n outline: none;\n }\n }\n}\n","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 {/* @ts-ignore */}\n <span translate={false} class=\"material-symbols material-symbols-outlined margin-right-icon\">\n translate\n </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"],"mappings":"sFAAA,MAAMA,EAAuB,kY,MCQhBC,EAAiB,M,yBAC5BC,aAAaC,GACXC,EAAMC,MAAQ,KACdD,EAAME,aAAe,KACrBF,EAAMG,YAAc,KACpBH,EAAMI,SAAWL,EAAMM,OAAOC,K,CAGhCC,SACE,OACEC,EAACC,EAAI,KAEHD,EAAA,QAAME,UAAW,MAAOC,MAAM,gEAA8D,aAG5FH,EAAA,UAAQI,QAASb,GAASc,KAAKf,aAAaC,GAAQe,KAAK,YAAYC,GAAG,mBACrEf,EAAMgB,UAAUC,KAAIb,GACnBI,EAAA,UAAQU,SAAUd,IAAaJ,EAAMI,SAAUE,MAAOF,EAASe,qBAC5Df,EAASgB,wB"}
@@ -1,2 +0,0 @@
1
- import{s as e}from"./p-048b3a1e.js";function t(e){let t;if(e<24){t=`${Math.floor(e)}h`;if(e%1>0){t+=`${Math.round(60*(e%1))}min`}}else{t=`${e/24}j`}return t}function r(e){return`${Math.round(e/1e3)}km`}function s(e){return`${e}m`}const i=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];const o=[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];function n(){let t=false;let r=[];for(const o of i){const s=e[o.property].filter((e=>e.selected)).map((e=>e.id));if(s.length>0){if(r.length>0){if(o.type==="include"){if(o.trekPropertyIsArray){r=[...r.filter((e=>e[o.trekProperty].some((e=>s.includes(e)))))]}else{r=[...r.filter((e=>s.includes(e[o.trekProperty])))]}}else if(o.type==="interval"){r=[...r.filter((t=>{for(const r of s){const s=e[o.property].find((e=>e.id===r));if(t[o.trekProperty]>=s.minValue&&t[o.trekProperty]<=s.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(o.type==="include"){if(o.trekPropertyIsArray){r=[...e.treks.filter((e=>e[o.trekProperty].some((e=>s.includes(e)))))]}else{r=[...e.treks.filter((e=>s.includes(e[o.trekProperty])))]}}else if(o.type==="interval"){let t;let i;for(const r of s){const s=e[o.property].find((e=>e.id===r));if(isNaN(t)||s.minValue<t){t=s.minValue}if(isNaN(i)||s.maxValue>i){i=s.maxValue}}r=[...e.treks.filter((e=>e[o.trekProperty]>=t&&e[o.trekProperty]<=i))]}}}}const s=t?r:e.treks;return Boolean(e.searchValue)?s.filter((t=>t.name.toLowerCase().includes(e.searchValue.toLowerCase()))):s}function l(){let t=false;let r=[];for(const i of o){const s=e[i.property].filter((e=>e.selected)).map((e=>e.id));if(s.length>0){if(r.length>0){if(i.type==="include"){if(i.touristicContentPropertyIsArray){r=[...r.filter((e=>e[i.touristicContentProperty].some((e=>s.includes(e)))))]}else{r=[...r.filter((e=>s.includes(e[i.touristicContentProperty])))]}}else if(i.type==="interval"){r=[...r.filter((t=>{for(const r of s){const s=e[i.property].find((e=>e.id===r));if(t[i.touristicContentProperty]>=s.minValue&&t[i.touristicContentProperty]<=s.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(i.type==="include"){if(i.touristicContentPropertyIsArray){r=[...e.touristicContents.filter((e=>e[i.touristicContentProperty].some((e=>s.includes(e)))))]}else{r=[...e.touristicContents.filter((e=>s.includes(e[i.touristicContentProperty])))]}}else if(i.type==="interval"){let t;let o;for(const r of s){const s=e[i.property].find((e=>e.id===r));if(isNaN(t)||s.minValue<t){t=s.minValue}if(isNaN(o)||s.maxValue>o){o=s.maxValue}}r=[...e.touristicContents.filter((e=>e[i.touristicContentProperty]>=t&&e[i.touristicContentProperty]<=o))]}}}}const s=t?r:e.touristicContents;return Boolean(e.searchValue)?s.filter((t=>t.name.toLowerCase().includes(e.searchValue.toLowerCase()))):s}export{o as a,l as b,r as c,s as d,t as f,n as h,i as t};
2
- //# sourceMappingURL=p-1f8e7e57.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["formatDuration","duration","formattedDuration","Math","floor","round","formatLength","length","formatAscent","ascent","treksFilters","property","trekProperty","trekPropertyIsArray","type","segment","touristicContentsFilters","touristicContentProperty","touristicContentPropertyIsArray","handleTreksFiltersAndSearch","isUsingFilter","filtersTreks","filter","currentFiltersId","state","currentFilter","selected","map","id","trek","some","includes","currentFilterId","find","minValue","maxValue","treks","isNaN","searchTreks","Boolean","searchValue","currentTrek","name","toLowerCase","handleTouristicContentsFiltersAndSearch","filtersTouristicContents","touristicContent","touristicContents","searchTouristicContents","currentTouristicContents"],"sources":["./src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { TouristicContents, TouristicContentsFilters, TrekFilters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport const treksFilters: TrekFilters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include', segment: 'selectedThemesFilters' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', trekProperty: 'districts', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport const touristicContentsFilters: TouristicContentsFilters = [\n { property: 'touristicContentCategories', touristicContentProperty: 'category', touristicContentPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'cities', touristicContentProperty: 'cities', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', touristicContentProperty: 'districts', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport function handleTreksFiltersAndSearch(): Treks {\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of treksFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...filtersTreks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n\nexport function handleTouristicContentsFiltersAndSearch(): TouristicContents {\n let isUsingFilter = false;\n let filtersTouristicContents = [];\n for (const filter of touristicContentsFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n\n if (currentFiltersId.length > 0) {\n if (filtersTouristicContents.length > 0) {\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...filtersTouristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (touristicContent[filter.touristicContentProperty] >= currentFilter.minValue && touristicContent[filter.touristicContentProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...state.touristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...state.touristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTouristicContents = [\n ...state.touristicContents.filter(\n touristicContent => touristicContent[filter.touristicContentProperty] >= minValue && touristicContent[filter.touristicContentProperty] <= maxValue,\n ),\n ];\n }\n }\n }\n }\n const searchTouristicContents = isUsingFilter ? filtersTouristicContents : state.touristicContents;\n\n return Boolean(state.searchValue)\n ? searchTouristicContents.filter(currentTouristicContents => currentTouristicContents.name.toLowerCase().includes(state.searchValue.toLowerCase()))\n : searchTouristicContents;\n}\n"],"mappings":"6CAGgBA,EAAeC,GAC7B,IAAIC,EACJ,GAAID,EAAW,GAAI,CACjBC,EAAoB,GAAGC,KAAKC,MAAMH,MAClC,GAAIA,EAAW,EAAI,EAAG,CACpBC,GAAqB,GAAGC,KAAKE,MAAM,IAAMJ,EAAW,Q,MAEjD,CACLC,EAAoB,GAAGD,EAAW,K,CAEpC,OAAOC,CACT,C,SAEgBI,EAAaC,GAC3B,MAAO,GAAGJ,KAAKE,MAAME,EAAS,QAChC,C,SAEgBC,EAAaC,GAC3B,MAAO,GAAGA,IACZ,C,MAEaC,EAA4B,CACvC,CAAEC,SAAU,YAAaC,aAAc,WAAYC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BACzG,CAAEJ,SAAU,eAAgBC,aAAc,aAAcC,oBAAqB,MAAOC,KAAM,UAAWC,QAAS,6BAC9G,CAAEJ,SAAU,YAAaC,aA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KAG5G,CACL4B,EAA2B,IAAIrB,EAAMuB,kBAAkBzB,QAAOwB,GAAoBvB,EAAiBQ,SAASe,EAAiBxB,EAAOL,6B,OAEjI,GAAIK,EAAOR,OAAS,WAAY,CACrC,IAAIoB,EACJ,IAAIC,EACJ,IAAK,MAAMH,KAAmBT,EAAkB,CAC9C,MAAME,EAAgBD,EAAMF,EAAOX,UAAUsB,MAAKtB,GAAYA,EAASiB,KAAOI,IAC9E,GAAIK,MAAMH,IAAaT,EAAcS,SAAWA,EAAU,CACxDA,EAAWT,EAAcS,Q,CAE3B,GAAIG,MAAMF,IAAaV,EAAcU,SAAWA,EAAU,CACxDA,EAAWV,EAAcU,Q,EAG7BU,EAA2B,IACtBrB,EAAMuB,kBAAkBzB,QACzBwB,GAAoBA,EAAiBxB,EAAOL,2BAA6BiB,GAAYY,EAAiBxB,EAAOL,2BAA6BkB,I,IAOtJ,MAAMa,EAA0B5B,EAAgByB,EAA2BrB,EAAMuB,kBAEjF,OAAOR,QAAQf,EAAMgB,aACjBQ,EAAwB1B,QAAO2B,GAA4BA,EAAyBP,KAAKC,cAAcZ,SAASP,EAAMgB,YAAYG,iBAClIK,CACN,Q"}
@@ -1,2 +0,0 @@
1
- System.register(["./p-d2c035bc.system.js","./p-0f47847d.system.js","./p-10ee2e5e.system.js","./p-c63228e8.system.js"],(function(t){"use strict";var e,i,r,o,n,s,a,c,l,h,u,d;return{setters:[function(t){e=t.r;i=t.h;r=t.H;o=t.g},function(t){n=t.t},function(t){s=t.s;a=t.o;c=t.r},function(t){l=t.t;h=t.h;u=t.a;d=t.b}],execute:function(){var p='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);font-family:"Roboto";color:var(--color-on-surface);overflow:hidden;line-height:initial;max-width:100dvw;max-height:100dvh}.app-container{position:relative;width:100%;height:100%;overflow:hidden}.header-container,.large-view-header-container{background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);height:var(--header-height)}.header-container .arrow-back-container,.large-view-header-container .arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.header-container .arrow-back-container .arrow-back-icon,.large-view-header-container .arrow-back-container .arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:50%;height:48px;width:48px;padding:0px;text-align:left}.handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.handle-search-filters-container .handle-search-container{width:calc(50% + 48px);max-width:220px}.handle-search-filters-container .handle-filters-button{margin-left:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:20px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.handle-search-filters-container .handle-filters-button span{font-size:18px}.header-detail{height:64px}.large-view-header-container .handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.init-loader-container,.loader-container,.large-view-loader-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.init-loader-container .loader,.loader-container .loader,.large-view-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - var(--header-height));background-color:var(--color-background)}.content-treks{height:calc(100% - var(--header-height))}.content-trek{height:100%}.app-treks-list-container,.app-trek-detail-container,.app-touristic-content-detail-container,.app-touristic-event-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{max-width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.map-visibility-button-container .map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:12px;height:56px;font-size:16px;width:unset}.map-visibility-button-container .map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button-container .map-visibility-button span{font-size:24px;margin-right:8px;color:var(--color-on-primary-container)}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}grw-treks-list,grw-touristic-contents-list{max-height:calc(100vh - var(--header-height))}grw-trek-detail,grw-touristic-content-detail,grw-touristic-event-detail{max-height:calc(100vh - 64px)}.app-map-container{width:100%;position:absolute}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container,.large-view-app-touristic-content-detail-container,.large-view-app-touristic-event-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}.segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:20px;line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:20px;border-bottom-left-radius:20px}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:20px;border-bottom-right-radius:20px}.segmented-buttons-container .selected-segment{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}';var w=t("grw_app",function(){function t(t){e(this,t);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTouristicContent=false;this.showTouristicEvent=false;this.showHomeMap=false;this.showTrekMap=false;this.showTouristicContentMap=false;this.showTouristicEventMap=false;this.showFilters=false;this.isLargeView=false;this.currentTrekId=undefined;this.currentTouristicContentId=undefined;this.currentTouristicEventId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.center=undefined;this.zoom=undefined;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.weather=false;this.colorPrimaryApp="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.treks=true;this.touristicContents=false;this.touristicEvents=false}t.prototype.onTrekCardPress=function(t){this.currentTouristicContentId=null;this.showTouristicContent=false;s.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;s.currentTouristicEvent=null;var e=s.parentTrekId?s.parentTrekId:s.currentTrekSteps?this.currentTrekId:null;s.currentTrek=null;this.currentTrekId=t.detail;this.showTrek=true;this.showTrekMap=false;var i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());if(s.currentTrekSteps){i.searchParams.set("parenttrek",e.toString())}window.history.pushState({},"",i)};t.prototype.onParentTrekPress=function(t){s.currentTrek=null;this.currentTrekId=t.detail;this.showTrek=true;this.showTrekMap=false;var e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());e.searchParams.delete("parenttrek");window.history.pushState({},"",e)};t.prototype.onTouristicContentCardPress=function(t){s.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;this.showTouristicContent=true;this.showTouristicContentMap=false;var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",e)};t.prototype.onTouristiceEventCardPress=function(t){s.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;this.showTouristicEvent=true;this.showTouristicEventMap=false;var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",e)};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};t.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};t.prototype.componentWillLoad=function(){if(this.treks){s.mode="treks"}else if(this.touristicContents){s.mode="touristicContents"}var t=new URL(window.location.toString());var e=t.searchParams.get("trek");var i=t.searchParams.get("parenttrek");var r=t.searchParams.get("touristiccontent");var o=t.searchParams.get("touristicevent");if(e){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);s.parentTrekId=i?Number(i):null;this.currentTrekId=Number(e);this.showTrek=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(r);this.showTouristicContent=true}else if(o){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(o);this.showTouristicEvent=true}};t.prototype.componentDidLoad=function(){var t=this;a("trekNetworkError",(function(){if(s.trekNetworkError){var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.delete("parenttrek");e.searchParams.delete("touristiccontent");e.searchParams.delete("touristicevent");window.history.replaceState({},"",e);t.onDetailsClose()}}));window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};t.prototype.onDetailsClose=function(){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false;this.showTouristicEvent=false;this.showTouristicEventMap=false;s.currentTouristicContent=null;s.currentTouristicEvent=null;s.currentTrek=null;s.currentTrekSteps=null;s.parentTrekId=null;this.currentTrekId=null;this.showTrek=false};t.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView};t.prototype.handleFilters=function(){this.showFilters=!this.showFilters};t.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){this.onDetailsClose();var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");window.history.pushState({},"",t)}else{window.history.back()}};t.prototype.handlePopState=function(){var t=new URL(window.location.toString());var e=Number(t.searchParams.get("trek"));var i=t.searchParams.get("touristiccontent");var r=t.searchParams.get("touristicevent");if(e&&this.currentTrekId!==e){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;s.currentTouristicContent=null;s.currentTouristicEvent=null;s.currentTrek=null;this.currentTrekId=e;this.showTrek=true}else if(!e&&!i&&!r){this.onDetailsClose()}};t.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else if(this.showTouristicContent){this.showTouristicContentMap=!this.showTouristicContentMap}else if(this.showTouristicEvent){this.showTouristicEventMap=!this.showTouristicEventMap}else{this.showHomeMap=!this.showHomeMap}};t.prototype.getMapVisibilityIconButton=function(){var t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t};t.prototype.getMapVisibilityLabelButton=function(){var t;if(this.showTrek){t=this.showTrekMap?n[s.language].showDetails:n[s.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?n[s.language].showDetails:n[s.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?n[s.language].showDetails:n[s.language].showMap}else{t=this.showHomeMap?n[s.language].showList:n[s.language].showMap}return t};t.prototype.disconnectedCallback=function(){c();window.removeEventListener("popstate",this.handlePopStateBind)};t.prototype.changeMode=function(t){s.searchValue="";if(t==="treks"&&s.currentTreks){l.forEach((function(t){s[t.property].forEach((function(t){return t.selected=false}))}));s.selectedActivitiesFilters=0;s.selectedThemesFilters=0;s.selectedLocationFilters=0;s.currentTreks=h()}else if(t==="touristicContents"&&s.currentTouristicContents){u.forEach((function(t){s[t.property].forEach((function(t){return t.selected=false}))}));s.selectedActivitiesFilters=0;s.selectedLocationFilters=0;s.currentTouristicContents=d()}s.mode=t};t.prototype.render=function(){var t=this;return i(r,{style:{"--color-primary-app":this.colorPrimaryApp,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--app-width":this.appWidth,"--app-height":this.appHeight,"--header-height":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1?"136px":"64px"}},!s.currentTreks&&!s.currentTrek&&!s.currentTouristicContent&&!s.currentTouristicEvent&&!s.currentTouristicContents&&i("div",{class:"init-loader-container"},i("span",{class:"loader"})),this.treks&&s.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!s.currentTreks&&i("grw-treks-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals,routes:this.routes,practices:this.practices}),this.showTrek&&this.currentTrekId&&!s.currentTrek&&i("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals}),this.showTouristicContent&&this.currentTouristicContentId&&i("grw-touristic-content-provider",{api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&i("grw-touristic-event-provider",{api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.touristicContents&&s.mode==="touristicContents"&&!s.currentTouristicContents&&!this.showTouristicContent&&i("grw-touristic-contents-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),(s.currentTreks||s.currentTrek||s.touristicContents||s.currentTouristicContent||s.currentTouristicEvent)&&i("div",{class:"app-container"},i("div",{class:"".concat(this.isLargeView?"large-view-header-container":"header-container").concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent?" header-detail":"")},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&i("div",{class:"segmented-buttons-container"},this.treks&&i("label",{class:"segment".concat(s.mode==="treks"?" selected-segment":""),onClick:function(){return t.changeMode("treks")}},n[s.language].home.segment.treks),this.touristicContents&&i("label",{class:"segment".concat(s.mode==="touristicContents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicContents")}},n[s.language].home.segment.touristicContents)),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent?i("div",{class:"handle-search-filters-container"},i("div",{class:"handle-search-container"},i("grw-search",null)),i("div",{class:"handle-filters-container"},i("button",{onClick:function(){return t.handleFilters()},class:"handle-filters-button"},i("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"filter_list"),n[s.language].filter))):i("div",{class:"arrow-back-container"},i("button",{onClick:function(){return t.handleBackButton()},class:"arrow-back-icon"},i("span",{translate:false,class:"material-symbols material-symbols-outlined"},"arrow_back")))),i("div",{class:"content-container ".concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent?"content-trek":"content-treks")},i("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek||this.showTouristicContent||this.showTouristicEvent?"none":"flex",position:this.showTrek?"absolute":"relative"}},s.mode==="treks"&&this.treks&&i("grw-treks-list",{"reset-store-on-disconnected":"false","is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),s.mode==="touristicContents"&&this.touristicContents&&i("grw-touristic-contents-list",{"reset-store-on-disconnected":"false","is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),this.showTrek&&!s.currentTrek||this.showTouristicContent&&!s.currentTouristicContent||this.showTouristicEvent&&!s.currentTouristicEvent||!s.currentTreks&&s.mode==="treks"||!s.touristicContents&&s.mode==="touristicContents"&&i("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},i("span",{class:"loader"})),s.currentTrek&&i("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},i("grw-trek-detail",{style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},"reset-store-on-disconnected":"false","color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView})),this.showTouristicContent&&i("div",{class:this.isLargeView?"large-view-app-touristic-content-detail-container":"app-touristic-content-detail-container"},i("grw-touristic-content-detail",{style:{visibility:!this.showTouristicContentMap||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicContentMap?"1":"0"},"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),this.showTouristicEvent&&i("div",{class:this.isLargeView?"large-view-app-touristic-event-detail-container":"app-touristic-event-detail-container"},i("grw-touristic-event-detail",{style:{visibility:!this.showTouristicEventMap||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicEventMap?"1":"0"},"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),i("grw-map",{"reset-store-on-disconnected":"false",class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showHomeMap&&!this.showTrek||this.showTrekMap&&this.showTrek||this.showTouristicContentMap&&this.showTouristicContent||this.showTouristicEventMap&&this.showTouristicEvent||this.isLargeView?"visible":"hidden",zIndex:this.showHomeMap||this.showTrekMap||this.showTouristicContentMap||this.showTouristicEventMap?"1":"0"},center:this.center,zoom:this.zoom,"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-background":this.colorBackground,"color-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon,"is-large-view":this.isLargeView,"use-gradient":this.useGradient})),(!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent||this.showTrek&&s.currentTrek||this.showTouristicContent&&s.currentTouristicContent||this.showTouristicEvent&&s.currentTouristicEvent)&&i("div",{class:"map-visibility-button-container"},i("button",{onClick:function(){return t.handleShowMap()},class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},i("span",{translate:false,class:"material-symbols material-symbols-outlined"},this.getMapVisibilityIconButton()),this.getMapVisibilityLabelButton()))),!this.showTrek&&this.showFilters&&i("grw-filters",{handleFilters:function(){return t.handleFilters()}}))};Object.defineProperty(t.prototype,"appElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return t}());w.style=p}}}));
2
- //# sourceMappingURL=p-2c4abcd9.system.entry.js.map