@geotrekce/geotrek-rando-widget 0.2.9 → 0.2.11

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 (339) 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 +13 -11
  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_7.cjs.entry.js → grw-filter_8.cjs.entry.js} +54 -66
  9. package/dist/cjs/grw-filter_8.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filter_8.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filter_8.cjs.entry.js.map +1 -0
  12. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +1 -1
  13. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-trek-card.cjs.entry.js +2 -2
  16. package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
  17. package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/{i18n-67fd458f.js → i18n-c0a655bf.js} +11 -1
  19. package/dist/cjs/i18n-c0a655bf.js.br +0 -0
  20. package/dist/cjs/i18n-c0a655bf.js.gz +0 -0
  21. package/dist/cjs/i18n-c0a655bf.js.map +1 -0
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/loader.cjs.js.br +0 -0
  24. package/dist/cjs/loader.cjs.js.gz +0 -0
  25. package/dist/cjs/{store-6ec4d0d2.js → store-8489a70a.js} +4 -1
  26. package/dist/cjs/store-8489a70a.js.br +0 -0
  27. package/dist/cjs/store-8489a70a.js.gz +0 -0
  28. package/dist/cjs/store-8489a70a.js.map +1 -0
  29. package/dist/cjs/utils-db06d6fd.js +103 -0
  30. package/dist/cjs/utils-db06d6fd.js.br +0 -0
  31. package/dist/cjs/utils-db06d6fd.js.gz +0 -0
  32. package/dist/cjs/utils-db06d6fd.js.map +1 -0
  33. package/dist/collection/collection-manifest.json +1 -0
  34. package/dist/collection/components/grw-app/grw-app.css +39 -13
  35. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  36. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  37. package/dist/collection/components/grw-app/grw-app.js +27 -8
  38. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  39. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  40. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  41. package/dist/collection/components/grw-filter/grw-filter.css +1 -1
  42. package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
  43. package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
  44. package/dist/collection/components/grw-filter/grw-filter.js +20 -55
  45. package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
  46. package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
  47. package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
  48. package/dist/collection/components/grw-search/grw-search.css +32 -0
  49. package/dist/collection/components/grw-search/grw-search.css.br +0 -0
  50. package/dist/collection/components/grw-search/grw-search.css.gz +0 -0
  51. package/dist/collection/components/grw-search/grw-search.js +25 -0
  52. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  53. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  54. package/dist/collection/components/grw-search/grw-search.js.map +1 -0
  55. package/dist/collection/components/grw-treks-list/grw-treks-list.css +17 -3
  56. package/dist/collection/components/grw-treks-list/grw-treks-list.css.br +0 -0
  57. package/dist/collection/components/grw-treks-list/grw-treks-list.css.gz +0 -0
  58. package/dist/collection/components/grw-treks-list/grw-treks-list.js +2 -1
  59. package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
  60. package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
  61. package/dist/collection/components/grw-treks-list/grw-treks-list.js.map +1 -1
  62. package/dist/collection/i18n/i18n.js +10 -0
  63. package/dist/collection/i18n/i18n.js.br +0 -0
  64. package/dist/collection/i18n/i18n.js.gz +0 -0
  65. package/dist/collection/i18n/i18n.js.map +1 -1
  66. package/dist/collection/store/grw-trek-provider.js +5 -3
  67. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  68. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  69. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  70. package/dist/collection/store/grw-treks-provider.js +16 -2
  71. package/dist/collection/store/grw-treks-provider.js.br +0 -0
  72. package/dist/collection/store/grw-treks-provider.js.gz +0 -0
  73. package/dist/collection/store/grw-treks-provider.js.map +1 -1
  74. package/dist/collection/store/store.js +3 -0
  75. package/dist/collection/store/store.js.br +0 -0
  76. package/dist/collection/store/store.js.gz +0 -0
  77. package/dist/collection/store/store.js.map +1 -1
  78. package/dist/collection/types/types.js.map +1 -1
  79. package/dist/collection/utils/utils.js +74 -0
  80. package/dist/collection/utils/utils.js.br +0 -0
  81. package/dist/collection/utils/utils.js.gz +0 -0
  82. package/dist/collection/utils/utils.js.map +1 -1
  83. package/dist/esm/geotrek-rando-widget.js +3 -3
  84. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  85. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  86. package/dist/esm/grw-app.entry.js +14 -12
  87. package/dist/esm/grw-app.entry.js.br +0 -0
  88. package/dist/esm/grw-app.entry.js.gz +0 -0
  89. package/dist/esm/grw-app.entry.js.map +1 -1
  90. package/dist/esm/{grw-filter_7.entry.js → grw-filter_8.entry.js} +55 -68
  91. package/dist/esm/grw-filter_8.entry.js.br +0 -0
  92. package/dist/esm/grw-filter_8.entry.js.gz +0 -0
  93. package/dist/esm/grw-filter_8.entry.js.map +1 -0
  94. package/dist/esm/grw-information-desk-detail_3.entry.js +2 -2
  95. package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
  96. package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
  97. package/dist/esm/grw-trek-card.entry.js +3 -3
  98. package/dist/esm/grw-trek-card.entry.js.br +0 -0
  99. package/dist/esm/grw-trek-card.entry.js.gz +0 -0
  100. package/dist/esm/{i18n-b25e6b48.js → i18n-22f5fa38.js} +11 -1
  101. package/dist/esm/i18n-22f5fa38.js.br +0 -0
  102. package/dist/esm/i18n-22f5fa38.js.gz +0 -0
  103. package/dist/esm/i18n-22f5fa38.js.map +1 -0
  104. package/dist/esm/{index-3bfebaa2.js → index-82644551.js} +2 -2
  105. package/dist/esm/index-82644551.js.br +0 -0
  106. package/dist/esm/index-82644551.js.gz +0 -0
  107. package/dist/esm/{index-3bfebaa2.js.map → index-82644551.js.map} +1 -1
  108. package/dist/esm/loader.js +3 -3
  109. package/dist/esm/loader.js.br +0 -0
  110. package/dist/esm/loader.js.gz +0 -0
  111. package/dist/esm/{store-8a967dc3.js → store-af9549c8.js} +5 -2
  112. package/dist/esm/store-af9549c8.js.br +0 -0
  113. package/dist/esm/store-af9549c8.js.gz +0 -0
  114. package/dist/esm/store-af9549c8.js.map +1 -0
  115. package/dist/esm/utils-3e167809.js +98 -0
  116. package/dist/esm/utils-3e167809.js.br +0 -0
  117. package/dist/esm/utils-3e167809.js.gz +0 -0
  118. package/dist/esm/utils-3e167809.js.map +1 -0
  119. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  120. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  121. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  122. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  123. package/dist/esm-es5/grw-app.entry.js +1 -1
  124. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  125. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  126. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  127. package/dist/esm-es5/{grw-filter_7.entry.js → grw-filter_8.entry.js} +3 -3
  128. package/dist/esm-es5/grw-filter_8.entry.js.br +0 -0
  129. package/dist/esm-es5/grw-filter_8.entry.js.gz +0 -0
  130. package/dist/esm-es5/grw-filter_8.entry.js.map +1 -0
  131. package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
  132. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
  133. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
  134. package/dist/esm-es5/grw-trek-card.entry.js +1 -1
  135. package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
  136. package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
  137. package/dist/esm-es5/i18n-22f5fa38.js +2 -0
  138. package/dist/esm-es5/i18n-22f5fa38.js.br +0 -0
  139. package/dist/esm-es5/i18n-22f5fa38.js.gz +0 -0
  140. package/dist/esm-es5/i18n-22f5fa38.js.map +1 -0
  141. package/dist/esm-es5/{index-3bfebaa2.js → index-82644551.js} +2 -2
  142. package/dist/esm-es5/index-82644551.js.br +0 -0
  143. package/dist/esm-es5/index-82644551.js.gz +0 -0
  144. package/dist/esm-es5/loader.js +1 -1
  145. package/dist/esm-es5/loader.js.br +0 -0
  146. package/dist/esm-es5/loader.js.gz +0 -0
  147. package/dist/esm-es5/loader.js.map +1 -1
  148. package/dist/esm-es5/{store-8a967dc3.js → store-af9549c8.js} +2 -2
  149. package/dist/esm-es5/store-af9549c8.js.br +0 -0
  150. package/dist/esm-es5/store-af9549c8.js.gz +0 -0
  151. package/dist/esm-es5/store-af9549c8.js.map +1 -0
  152. package/dist/esm-es5/utils-3e167809.js +2 -0
  153. package/dist/esm-es5/utils-3e167809.js.br +0 -0
  154. package/dist/esm-es5/utils-3e167809.js.gz +0 -0
  155. package/dist/esm-es5/utils-3e167809.js.map +1 -0
  156. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  157. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  158. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  159. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  160. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
  161. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
  162. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
  163. package/dist/geotrek-rando-widget/p-148f5f1d.system.js +2 -0
  164. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.br +0 -0
  165. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.gz +0 -0
  166. package/dist/geotrek-rando-widget/{p-ccc3be5e.system.js.map → p-148f5f1d.system.js.map} +1 -1
  167. package/dist/geotrek-rando-widget/{p-3eaed9f9.system.js → p-266b2cee.system.js} +2 -2
  168. package/dist/geotrek-rando-widget/p-266b2cee.system.js.br +0 -0
  169. package/dist/geotrek-rando-widget/p-266b2cee.system.js.gz +0 -0
  170. package/dist/geotrek-rando-widget/p-3653420b.system.entry.js +14 -0
  171. package/dist/geotrek-rando-widget/p-3653420b.system.entry.js.br +0 -0
  172. package/dist/geotrek-rando-widget/p-3653420b.system.entry.js.gz +0 -0
  173. package/dist/geotrek-rando-widget/p-3653420b.system.entry.js.map +1 -0
  174. package/dist/geotrek-rando-widget/{p-11732b6a.system.entry.js → p-4144f3ba.system.entry.js} +2 -2
  175. package/dist/geotrek-rando-widget/p-4144f3ba.system.entry.js.br +0 -0
  176. package/dist/geotrek-rando-widget/p-4144f3ba.system.entry.js.gz +0 -0
  177. package/dist/geotrek-rando-widget/{p-51b07d4b.system.js → p-458ec23b.system.js} +2 -2
  178. package/dist/geotrek-rando-widget/p-458ec23b.system.js.br +0 -0
  179. package/dist/geotrek-rando-widget/p-458ec23b.system.js.gz +0 -0
  180. package/dist/geotrek-rando-widget/p-458ec23b.system.js.map +1 -0
  181. package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js +2 -0
  182. package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.br +0 -0
  183. package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.gz +0 -0
  184. package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.map +1 -0
  185. package/dist/geotrek-rando-widget/p-764c52b8.js +2 -0
  186. package/dist/geotrek-rando-widget/p-764c52b8.js.br +0 -0
  187. package/dist/geotrek-rando-widget/p-764c52b8.js.gz +0 -0
  188. package/dist/geotrek-rando-widget/p-764c52b8.js.map +1 -0
  189. package/dist/geotrek-rando-widget/p-89249159.system.js +2 -0
  190. package/dist/geotrek-rando-widget/p-89249159.system.js.br +0 -0
  191. package/dist/geotrek-rando-widget/p-89249159.system.js.gz +0 -0
  192. package/dist/geotrek-rando-widget/p-89249159.system.js.map +1 -0
  193. package/dist/geotrek-rando-widget/p-93dc4557.system.js +2 -0
  194. package/dist/geotrek-rando-widget/p-93dc4557.system.js.br +0 -0
  195. package/dist/geotrek-rando-widget/p-93dc4557.system.js.gz +0 -0
  196. package/dist/geotrek-rando-widget/p-93dc4557.system.js.map +1 -0
  197. package/dist/geotrek-rando-widget/p-9d132a89.js +2 -0
  198. package/dist/geotrek-rando-widget/p-9d132a89.js.br +0 -0
  199. package/dist/geotrek-rando-widget/p-9d132a89.js.gz +0 -0
  200. package/dist/geotrek-rando-widget/p-9d132a89.js.map +1 -0
  201. package/dist/geotrek-rando-widget/p-a1530528.js +2 -0
  202. package/dist/geotrek-rando-widget/p-a1530528.js.br +0 -0
  203. package/dist/geotrek-rando-widget/p-a1530528.js.gz +0 -0
  204. package/dist/geotrek-rando-widget/p-a1530528.js.map +1 -0
  205. package/dist/geotrek-rando-widget/{p-3b2f4d05.system.entry.js → p-a7477417.system.entry.js} +2 -2
  206. package/dist/geotrek-rando-widget/p-a7477417.system.entry.js.br +0 -0
  207. package/dist/geotrek-rando-widget/p-a7477417.system.entry.js.gz +0 -0
  208. package/dist/geotrek-rando-widget/{p-16f28b0e.js → p-b4e1f9ae.js} +2 -2
  209. package/dist/geotrek-rando-widget/p-b4e1f9ae.js.br +0 -0
  210. package/dist/geotrek-rando-widget/p-b4e1f9ae.js.gz +0 -0
  211. package/dist/geotrek-rando-widget/p-c5d67727.entry.js +2 -0
  212. package/dist/geotrek-rando-widget/p-c5d67727.entry.js.br +0 -0
  213. package/dist/geotrek-rando-widget/p-c5d67727.entry.js.gz +0 -0
  214. package/dist/geotrek-rando-widget/p-c5d67727.entry.js.map +1 -0
  215. package/dist/geotrek-rando-widget/{p-4549b320.entry.js → p-c837a0f0.entry.js} +2 -2
  216. package/dist/geotrek-rando-widget/p-c837a0f0.entry.js.br +0 -0
  217. package/dist/geotrek-rando-widget/p-c837a0f0.entry.js.gz +0 -0
  218. package/dist/geotrek-rando-widget/p-d7e384ea.entry.js +2 -0
  219. package/dist/geotrek-rando-widget/p-d7e384ea.entry.js.br +0 -0
  220. package/dist/geotrek-rando-widget/p-d7e384ea.entry.js.gz +0 -0
  221. package/dist/geotrek-rando-widget/{p-efda3439.entry.js.map → p-d7e384ea.entry.js.map} +1 -1
  222. package/dist/geotrek-rando-widget/p-f36b2116.entry.js +14 -0
  223. package/dist/geotrek-rando-widget/p-f36b2116.entry.js.br +0 -0
  224. package/dist/geotrek-rando-widget/p-f36b2116.entry.js.gz +0 -0
  225. package/dist/geotrek-rando-widget/p-f36b2116.entry.js.map +1 -0
  226. package/dist/types/components/grw-app/grw-app.d.ts +4 -0
  227. package/dist/types/components/grw-filter/grw-filter.d.ts +3 -2
  228. package/dist/types/components/grw-search/grw-search.d.ts +4 -0
  229. package/dist/types/components.d.ts +18 -0
  230. package/dist/types/i18n/i18n.d.ts +5 -0
  231. package/dist/types/store/store.d.ts +7 -1
  232. package/dist/types/types/types.d.ts +17 -0
  233. package/dist/types/utils/utils.d.ts +2 -0
  234. package/package.json +5 -4
  235. package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
  236. package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
  237. package/dist/cjs/grw-filter_7.cjs.entry.js.map +0 -1
  238. package/dist/cjs/i18n-67fd458f.js.br +0 -0
  239. package/dist/cjs/i18n-67fd458f.js.gz +0 -0
  240. package/dist/cjs/i18n-67fd458f.js.map +0 -1
  241. package/dist/cjs/store-6ec4d0d2.js.br +0 -0
  242. package/dist/cjs/store-6ec4d0d2.js.gz +0 -0
  243. package/dist/cjs/store-6ec4d0d2.js.map +0 -1
  244. package/dist/cjs/utils-15de4c32.js +0 -27
  245. package/dist/cjs/utils-15de4c32.js.br +0 -2
  246. package/dist/cjs/utils-15de4c32.js.gz +0 -0
  247. package/dist/cjs/utils-15de4c32.js.map +0 -1
  248. package/dist/esm/grw-filter_7.entry.js.br +0 -0
  249. package/dist/esm/grw-filter_7.entry.js.gz +0 -0
  250. package/dist/esm/grw-filter_7.entry.js.map +0 -1
  251. package/dist/esm/i18n-b25e6b48.js.br +0 -0
  252. package/dist/esm/i18n-b25e6b48.js.gz +0 -0
  253. package/dist/esm/i18n-b25e6b48.js.map +0 -1
  254. package/dist/esm/index-3bfebaa2.js.br +0 -0
  255. package/dist/esm/index-3bfebaa2.js.gz +0 -0
  256. package/dist/esm/store-8a967dc3.js.br +0 -0
  257. package/dist/esm/store-8a967dc3.js.gz +0 -0
  258. package/dist/esm/store-8a967dc3.js.map +0 -1
  259. package/dist/esm/utils-160ec4d0.js +0 -23
  260. package/dist/esm/utils-160ec4d0.js.br +0 -0
  261. package/dist/esm/utils-160ec4d0.js.gz +0 -0
  262. package/dist/esm/utils-160ec4d0.js.map +0 -1
  263. package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
  264. package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
  265. package/dist/esm-es5/grw-filter_7.entry.js.map +0 -1
  266. package/dist/esm-es5/i18n-b25e6b48.js +0 -2
  267. package/dist/esm-es5/i18n-b25e6b48.js.br +0 -0
  268. package/dist/esm-es5/i18n-b25e6b48.js.gz +0 -0
  269. package/dist/esm-es5/i18n-b25e6b48.js.map +0 -1
  270. package/dist/esm-es5/index-3bfebaa2.js.br +0 -0
  271. package/dist/esm-es5/index-3bfebaa2.js.gz +0 -0
  272. package/dist/esm-es5/store-8a967dc3.js.br +0 -0
  273. package/dist/esm-es5/store-8a967dc3.js.gz +0 -0
  274. package/dist/esm-es5/store-8a967dc3.js.map +0 -1
  275. package/dist/esm-es5/utils-160ec4d0.js +0 -2
  276. package/dist/esm-es5/utils-160ec4d0.js.br +0 -0
  277. package/dist/esm-es5/utils-160ec4d0.js.gz +0 -0
  278. package/dist/esm-es5/utils-160ec4d0.js.map +0 -1
  279. package/dist/geotrek-rando-widget/p-0773c38f.js +0 -2
  280. package/dist/geotrek-rando-widget/p-0773c38f.js.br +0 -0
  281. package/dist/geotrek-rando-widget/p-0773c38f.js.gz +0 -0
  282. package/dist/geotrek-rando-widget/p-0773c38f.js.map +0 -1
  283. package/dist/geotrek-rando-widget/p-11732b6a.system.entry.js.br +0 -0
  284. package/dist/geotrek-rando-widget/p-11732b6a.system.entry.js.gz +0 -0
  285. package/dist/geotrek-rando-widget/p-16f28b0e.js.br +0 -0
  286. package/dist/geotrek-rando-widget/p-16f28b0e.js.gz +0 -0
  287. package/dist/geotrek-rando-widget/p-2d3ac9a0.js +0 -2
  288. package/dist/geotrek-rando-widget/p-2d3ac9a0.js.br +0 -0
  289. package/dist/geotrek-rando-widget/p-2d3ac9a0.js.gz +0 -0
  290. package/dist/geotrek-rando-widget/p-2d3ac9a0.js.map +0 -1
  291. package/dist/geotrek-rando-widget/p-3b2f4d05.system.entry.js.br +0 -0
  292. package/dist/geotrek-rando-widget/p-3b2f4d05.system.entry.js.gz +0 -0
  293. package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.br +0 -0
  294. package/dist/geotrek-rando-widget/p-3eaed9f9.system.js.gz +0 -0
  295. package/dist/geotrek-rando-widget/p-4549b320.entry.js.br +0 -0
  296. package/dist/geotrek-rando-widget/p-4549b320.entry.js.gz +0 -0
  297. package/dist/geotrek-rando-widget/p-49df9218.system.entry.js +0 -2
  298. package/dist/geotrek-rando-widget/p-49df9218.system.entry.js.br +0 -0
  299. package/dist/geotrek-rando-widget/p-49df9218.system.entry.js.gz +0 -0
  300. package/dist/geotrek-rando-widget/p-49df9218.system.entry.js.map +0 -1
  301. package/dist/geotrek-rando-widget/p-51b07d4b.system.js.br +0 -0
  302. package/dist/geotrek-rando-widget/p-51b07d4b.system.js.gz +0 -0
  303. package/dist/geotrek-rando-widget/p-51b07d4b.system.js.map +0 -1
  304. package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js +0 -14
  305. package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js.br +0 -0
  306. package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js.gz +0 -0
  307. package/dist/geotrek-rando-widget/p-5d92c226.system.entry.js.map +0 -1
  308. package/dist/geotrek-rando-widget/p-7459199d.system.js +0 -2
  309. package/dist/geotrek-rando-widget/p-7459199d.system.js.br +0 -1
  310. package/dist/geotrek-rando-widget/p-7459199d.system.js.gz +0 -0
  311. package/dist/geotrek-rando-widget/p-7459199d.system.js.map +0 -1
  312. package/dist/geotrek-rando-widget/p-ad0fa9fd.entry.js +0 -2
  313. package/dist/geotrek-rando-widget/p-ad0fa9fd.entry.js.br +0 -0
  314. package/dist/geotrek-rando-widget/p-ad0fa9fd.entry.js.gz +0 -0
  315. package/dist/geotrek-rando-widget/p-ad0fa9fd.entry.js.map +0 -1
  316. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js +0 -2
  317. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.br +0 -0
  318. package/dist/geotrek-rando-widget/p-ccc3be5e.system.js.gz +0 -0
  319. package/dist/geotrek-rando-widget/p-dc91249a.system.js +0 -2
  320. package/dist/geotrek-rando-widget/p-dc91249a.system.js.br +0 -0
  321. package/dist/geotrek-rando-widget/p-dc91249a.system.js.gz +0 -0
  322. package/dist/geotrek-rando-widget/p-dc91249a.system.js.map +0 -1
  323. package/dist/geotrek-rando-widget/p-e9e878ef.js +0 -2
  324. package/dist/geotrek-rando-widget/p-e9e878ef.js.br +0 -0
  325. package/dist/geotrek-rando-widget/p-e9e878ef.js.gz +0 -0
  326. package/dist/geotrek-rando-widget/p-e9e878ef.js.map +0 -1
  327. package/dist/geotrek-rando-widget/p-efda3439.entry.js +0 -2
  328. package/dist/geotrek-rando-widget/p-efda3439.entry.js.br +0 -0
  329. package/dist/geotrek-rando-widget/p-efda3439.entry.js.gz +0 -0
  330. package/dist/geotrek-rando-widget/p-fc167c7a.entry.js +0 -14
  331. package/dist/geotrek-rando-widget/p-fc167c7a.entry.js.br +0 -0
  332. package/dist/geotrek-rando-widget/p-fc167c7a.entry.js.gz +0 -0
  333. package/dist/geotrek-rando-widget/p-fc167c7a.entry.js.map +0 -1
  334. /package/dist/esm-es5/{index-3bfebaa2.js.map → index-82644551.js.map} +0 -0
  335. /package/dist/geotrek-rando-widget/{p-3eaed9f9.system.js.map → p-266b2cee.system.js.map} +0 -0
  336. /package/dist/geotrek-rando-widget/{p-11732b6a.system.entry.js.map → p-4144f3ba.system.entry.js.map} +0 -0
  337. /package/dist/geotrek-rando-widget/{p-3b2f4d05.system.entry.js.map → p-a7477417.system.entry.js.map} +0 -0
  338. /package/dist/geotrek-rando-widget/{p-16f28b0e.js.map → p-b4e1f9ae.js.map} +0 -0
  339. /package/dist/geotrek-rando-widget/{p-4549b320.entry.js.map → p-c837a0f0.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-3bfebaa2.js';
2
- export { s as setNonce } from './index-3bfebaa2.js';
1
+ import { C as CSS, p as plt, w as win, a as promiseResolve, b as bootstrapLazy } from './index-82644551.js';
2
+ export { s as setNonce } from './index-82644551.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Esm v3.4.1 | MIT Licensed | https://stenciljs.com
@@ -27,7 +27,7 @@ const patchEsm = () => {
27
27
  const defineCustomElements = (win, options) => {
28
28
  if (typeof window === 'undefined') return Promise.resolve();
29
29
  return patchEsm().then(() => {
30
- return bootstrapLazy([["grw-trek-card",[[1,"grw-trek-card",{"trek":[16],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32]}]]],["grw-information-desk-detail_3",[[1,"grw-information-desk-detail",{"informationDesk":[16],"displayShortDescription":[32]}],[1,"grw-poi-detail",{"poi":[16],"displayShortDescription":[32],"displayFullscreen":[32]}],[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}]]],["grw-filter_7",[[1,"grw-trek-detail",{"trek":[16],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"weather":[4],"isLargeView":[4,"is-large-view"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"labels":[32],"sources":[32],"accessibilities":[32],"accessibilityLevel":[32],"displayFullscreen":[32],"cities":[32],"options":[32]}],[1,"grw-treks-list",{"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"treksToDisplay":[32]}],[1,"grw-filter",{"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterNameProperty":[1,"filter-name-property"]}],[0,"grw-map",{"urlLayer":[1,"url-layer"],"attribution":[1],"center":[1],"zoom":[2],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorBackground":[1,"color-background"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"isLargeView":[4,"is-large-view"],"mapIsReady":[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-select-language"],[1,"grw-trek-provider",{"languages":[1],"api":[1],"trekId":[1,"trek-id"]}],[1,"grw-treks-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1]}]]],["grw-app",[[0,"grw-app",{"appWidth":[1,"app-width"],"appHeight":[1,"app-height"],"api":[1],"languages":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"urlLayer":[1,"url-layer"],"center":[1],"zoom":[2],"attribution":[1],"linkName":[1,"link-name"],"linkTarget":[1,"link-target"],"weather":[4],"colorPrimaryApp":[1,"color-primary-app"],"colorOnPrimary":[1,"color-on-primary"],"colorSurface":[1,"color-surface"],"colorOnSurface":[1,"color-on-surface"],"colorSurfaceVariant":[1,"color-surface-variant"],"colorOnSurfaceVariant":[1,"color-on-surface-variant"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"colorSurfaceContainerHigh":[1,"color-surface-container-high"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"showTrek":[32],"showTreksMap":[32],"showTrekMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]], options);
30
+ return bootstrapLazy([["grw-trek-card",[[1,"grw-trek-card",{"trek":[16],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32]}]]],["grw-information-desk-detail_3",[[1,"grw-information-desk-detail",{"informationDesk":[16],"displayShortDescription":[32]}],[1,"grw-poi-detail",{"poi":[16],"displayShortDescription":[32],"displayFullscreen":[32]}],[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}]]],["grw-filter_8",[[1,"grw-trek-detail",{"trek":[16],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"weather":[4],"isLargeView":[4,"is-large-view"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"labels":[32],"sources":[32],"accessibilities":[32],"accessibilityLevel":[32],"displayFullscreen":[32],"cities":[32],"options":[32]}],[1,"grw-treks-list",{"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"treksToDisplay":[32]}],[1,"grw-filter",{"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterNameProperty":[1,"filter-name-property"]},[[8,"resetFilter","onResetFilter"]]],[0,"grw-map",{"urlLayer":[1,"url-layer"],"attribution":[1],"center":[1],"zoom":[2],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorBackground":[1,"color-background"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"resetStoreOnDisconnected":[4,"reset-store-on-disconnected"],"isLargeView":[4,"is-large-view"],"mapIsReady":[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-search"],[1,"grw-select-language"],[1,"grw-trek-provider",{"languages":[1],"api":[1],"trekId":[1,"trek-id"]}],[1,"grw-treks-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1]}]]],["grw-app",[[0,"grw-app",{"appWidth":[1,"app-width"],"appHeight":[1,"app-height"],"api":[1],"languages":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"urlLayer":[1,"url-layer"],"center":[1],"zoom":[2],"attribution":[1],"linkName":[1,"link-name"],"linkTarget":[1,"link-target"],"weather":[4],"colorPrimaryApp":[1,"color-primary-app"],"colorOnPrimary":[1,"color-on-primary"],"colorSurface":[1,"color-surface"],"colorOnSurface":[1,"color-on-surface"],"colorSurfaceVariant":[1,"color-surface-variant"],"colorOnSurfaceVariant":[1,"color-on-surface-variant"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"colorSurfaceContainerHigh":[1,"color-surface-container-high"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"colorTrekLine":[1,"color-trek-line"],"colorDepartureIcon":[1,"color-departure-icon"],"colorArrivalIcon":[1,"color-arrival-icon"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorPoiIcon":[1,"color-poi-icon"],"showTrek":[32],"showTreksMap":[32],"showTrekMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]], options);
31
31
  });
32
32
  };
33
33
 
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { c as getRenderingRef, f as forceUpdate } from './index-3bfebaa2.js';
1
+ import { e as getRenderingRef, f as forceUpdate } from './index-82644551.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  const items = map.get(propName);
@@ -205,6 +205,8 @@ const { state, onChange, reset } = createStore({
205
205
  themes: null,
206
206
  cities: null,
207
207
  durations: null,
208
+ lengths: null,
209
+ elevations: null,
208
210
  currentSensitiveAreas: null,
209
211
  labels: null,
210
212
  sources: null,
@@ -216,8 +218,9 @@ const { state, onChange, reset } = createStore({
216
218
  currentInformationDesks: null,
217
219
  treksNetworkError: false,
218
220
  trekNetworkError: false,
221
+ searchValue: null,
219
222
  });
220
223
 
221
224
  export { onChange as o, reset as r, state as s };
222
225
 
223
- //# sourceMappingURL=store-8a967dc3.js.map
226
+ //# sourceMappingURL=store-af9549c8.js.map
Binary file
Binary file
@@ -0,0 +1 @@
1
+ {"file":"store-af9549c8.js","mappings":";;AAEA,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACnC,KAAK;AACL,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,KAAK;AACL,CAAC,CAAC;AACF,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK;AAC7B,IAAI,IAAI,SAAS,CAAC;AAClB,IAAI,OAAO,CAAC,GAAG,IAAI,KAAK;AACxB,QAAQ,IAAI,SAAS,EAAE;AACvB,YAAY,YA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ACvB,qBAAqB,EAAE,IAAI;EAC3B,YAAY,EAAE,IAAI;EAClB,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,MAAM,EAAE,IAAI;EACZ,MAAM,EAAE,IAAI;EACZ,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,IAAI;EACb,UAAU,EAAE,IAAI;EAChB,qBAAqB,EAAE,IAAI;EAC3B,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,eAAe,EAAE,IAAI;EACrB,oBAAoB,EAAE,IAAI;EAC1B,QAAQ,EAAE,IAAI;EACd,WAAW,EAAE,IAAI;EACjB,WAAW,EAAE,IAAI;EACjB,uBAAuB,EAAE,IAAI;EAC7B,iBAAiB,EAAE,KAAK;EACxB,gBAAgB,EAAE,KAAK;EACvB,WAAW,EAAE,IAAI;CAClB;;;;","names":[],"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} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapTreksBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n 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}>({\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapTreksBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n 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});\n\nexport { onChange, reset };\n\nexport default state;\n"],"version":3}
@@ -0,0 +1,98 @@
1
+ import { s as state } from './store-af9549c8.js';
2
+
3
+ function formatDuration(duration) {
4
+ let formattedDuration;
5
+ if (duration < 24) {
6
+ formattedDuration = `${Math.floor(duration)}h`;
7
+ if (duration % 1 > 0) {
8
+ formattedDuration += `${Math.round(60 * (duration % 1))}min`;
9
+ }
10
+ }
11
+ else {
12
+ formattedDuration = `${duration / 24}j`;
13
+ }
14
+ return formattedDuration;
15
+ }
16
+ function formatLength(length) {
17
+ return `${Math.round(length / 1000)}km`;
18
+ }
19
+ function formatAscent(ascent) {
20
+ return `${ascent}m`;
21
+ }
22
+ function handleFiltersAndSearch() {
23
+ const filters = [
24
+ { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include' },
25
+ { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include' },
26
+ { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval' },
27
+ { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval' },
28
+ { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval' },
29
+ { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include' },
30
+ { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include' },
31
+ { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include' },
32
+ { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include' },
33
+ { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include' },
34
+ ];
35
+ let isUsingFilter = false;
36
+ let filtersTreks = [];
37
+ for (const filter of filters) {
38
+ const currentFiltersId = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);
39
+ if (currentFiltersId.length > 0) {
40
+ if (filtersTreks.length > 0) {
41
+ if (filter.type === 'include') {
42
+ if (filter.trekPropertyIsArray) {
43
+ filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];
44
+ }
45
+ else {
46
+ filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];
47
+ }
48
+ }
49
+ else if (filter.type === 'interval') {
50
+ filtersTreks = [
51
+ ...filtersTreks.filter(trek => {
52
+ for (const currentFilterId of currentFiltersId) {
53
+ const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
54
+ if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {
55
+ return true;
56
+ }
57
+ }
58
+ return false;
59
+ }),
60
+ ];
61
+ }
62
+ }
63
+ else {
64
+ if (!isUsingFilter) {
65
+ isUsingFilter = true;
66
+ }
67
+ if (filter.type === 'include') {
68
+ if (filter.trekPropertyIsArray) {
69
+ filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];
70
+ }
71
+ else {
72
+ filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];
73
+ }
74
+ }
75
+ else if (filter.type === 'interval') {
76
+ let minValue;
77
+ let maxValue;
78
+ for (const currentFilterId of currentFiltersId) {
79
+ const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
80
+ if (isNaN(minValue) || currentFilter.minValue < minValue) {
81
+ minValue = currentFilter.minValue;
82
+ }
83
+ if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {
84
+ maxValue = currentFilter.maxValue;
85
+ }
86
+ }
87
+ filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];
88
+ }
89
+ }
90
+ }
91
+ }
92
+ const searchTreks = isUsingFilter ? filtersTreks : state.treks;
93
+ return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLocaleLowerCase().includes(state.searchValue)) : searchTreks;
94
+ }
95
+
96
+ export { formatLength as a, formatAscent as b, formatDuration as f, handleFiltersAndSearch as h };
97
+
98
+ //# sourceMappingURL=utils-3e167809.js.map
Binary file
Binary file
@@ -0,0 +1 @@
1
+ {"file":"utils-3e167809.js","mappings":";;SAGgB,cAAc,CAAC,QAAgB;EAC7C,IAAI,iBAAiB,CAAC;EACtB,IAAI,QAAQ,GAAG,EAAE,EAAE;IACjB,iBAAiB,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;IAC/C,IAAI,QAAQ,GAAG,CAAC,GAAG,CAAC,EAAE;MACpB,iBAAiB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;KAC9D;GACF;OAAM;IACL,iBAAiB,GAAG,GAAG,QAAQ,GAAG,EAAE,GAAG,CAAC;GACzC;EACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC;SAEe,YAAY,CAAC,MAAc;EACzC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC;AAC1C,CAAC;SAEe,YAAY,CAAC,MAAc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QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC;aACnC;WACF;UACD,YAAY,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC;SAChI;OACF;KACF;GACF;EAED,MAAM,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC;EAC/D,OAAO,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,GAAG,WAAW,CAAC;AACxJ;;;;","names":[],"sources":["./src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { Filters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport function handleFiltersAndSearch(): Treks {\n const filters: Filters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include' },\n ];\n\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of filters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.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.toLocaleLowerCase().includes(state.searchValue)) : searchTreks;\n}\n"],"version":3}
@@ -1,2 +1,2 @@
1
- import{p as plt,w as win,d as doc,N as NAMESPACE,a as promiseResolve,b as bootstrapLazy}from"./index-3bfebaa2.js";export{s as setNonce}from"./index-3bfebaa2.js";function queryNonceMetaTagContent(r){var o,e,n;return(n=(e=(o=r.head)===null||o===void 0?void 0:o.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&n!==void 0?n:undefined}var getDynamicImportFunction=function(r){return"__sc_import_".concat(r.replace(/\s|-/g,"_"))};var patchBrowser=function(){{plt.$cssShim$=win.__cssshim}var r=Array.from(doc.querySelectorAll("script")).find((function(r){return new RegExp("/".concat(NAMESPACE,"(\\.esm)?\\.js($|\\?|#)")).test(r.src)||r.getAttribute("data-stencil-namespace")===NAMESPACE}));var o=(r||{})["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{o.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,win.location.href)).href;{patchDynamicImport(o.resourcesUrl,r)}if(!win.customElements){return import("./dom-60e3e2ad.js").then((function(){return o}))}}return promiseResolve(o)};var patchDynamicImport=function(r,o){var e=getDynamicImportFunction(NAMESPACE);try{win[e]=new Function("w","return import(w);//".concat(Math.random()))}catch(a){var n=new Map;win[e]=function(a){var i;var c=new URL(a,r).href;var t=n.get(c);if(!t){var s=doc.createElement("script");s.type="module";s.crossOrigin=o.crossOrigin;s.src=URL.createObjectURL(new Blob(["import * as m from '".concat(c,"'; window.").concat(e,".m = m;")],{type:"application/javascript"}));var l=(i=plt.$nonce$)!==null&&i!==void 0?i:queryNonceMetaTagContent(doc);if(l!=null){s.setAttribute("nonce",l)}t=new Promise((function(r){s.onload=function(){r(win[e].m);s.remove()}}));n.set(c,t);doc.head.appendChild(s)}return t}}};patchBrowser().then((function(r){return bootstrapLazy([["grw-trek-card",[[1,"grw-trek-card",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],departureCity:[32]}]]],["grw-information-desk-detail_3",[[1,"grw-information-desk-detail",{informationDesk:[16],displayShortDescription:[32]}],[1,"grw-poi-detail",{poi:[16],displayShortDescription:[32],displayFullscreen:[32]}],[1,"grw-sensitive-area-detail",{sensitiveArea:[16]}]]],["grw-filter_7",[[1,"grw-trek-detail",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],weather:[4],isLargeView:[4,"is-large-view"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],labels:[32],sources:[32],accessibilities:[32],accessibilityLevel:[32],displayFullscreen:[32],cities:[32],options:[32]}],[1,"grw-treks-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],treksToDisplay:[32]}],[1,"grw-filter",{filterType:[1,"filter-type"],filterName:[1,"filter-name"],filterNameProperty:[1,"filter-name-property"]}],[0,"grw-map",{urlLayer:[1,"url-layer"],attribution:[1],center:[1],zoom:[2],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorBackground:[1,"color-background"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isLargeView:[4,"is-large-view"],mapIsReady:[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-select-language"],[1,"grw-trek-provider",{languages:[1],api:[1],trekId:[1,"trek-id"]}],[1,"grw-treks-provider",{languages:[1],api:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1]}]]],["grw-app",[[0,"grw-app",{appWidth:[1,"app-width"],appHeight:[1,"app-height"],api:[1],languages:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1],urlLayer:[1,"url-layer"],center:[1],zoom:[2],attribution:[1],linkName:[1,"link-name"],linkTarget:[1,"link-target"],weather:[4],colorPrimaryApp:[1,"color-primary-app"],colorOnPrimary:[1,"color-on-primary"],colorSurface:[1,"color-surface"],colorOnSurface:[1,"color-on-surface"],colorSurfaceVariant:[1,"color-surface-variant"],colorOnSurfaceVariant:[1,"color-on-surface-variant"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],colorSurfaceContainerHigh:[1,"color-surface-container-high"],colorSurfaceContainerLow:[1,"color-surface-container-low"],fabBackgroundColor:[1,"fab-background-color"],fabColor:[1,"fab-color"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],showTrek:[32],showTreksMap:[32],showTrekMap:[32],showFilters:[32],isLargeView:[32],currentTrekId:[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]],r)}));
1
+ import{p as plt,w as win,d as doc,N as NAMESPACE,a as promiseResolve,b as bootstrapLazy}from"./index-82644551.js";export{s as setNonce}from"./index-82644551.js";function queryNonceMetaTagContent(r){var o,e,n;return(n=(e=(o=r.head)===null||o===void 0?void 0:o.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&n!==void 0?n:undefined}var getDynamicImportFunction=function(r){return"__sc_import_".concat(r.replace(/\s|-/g,"_"))};var patchBrowser=function(){{plt.$cssShim$=win.__cssshim}var r=Array.from(doc.querySelectorAll("script")).find((function(r){return new RegExp("/".concat(NAMESPACE,"(\\.esm)?\\.js($|\\?|#)")).test(r.src)||r.getAttribute("data-stencil-namespace")===NAMESPACE}));var o=(r||{})["data-opts"]||{};if("onbeforeload"in r&&!history.scrollRestoration){return{then:function(){}}}{o.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,win.location.href)).href;{patchDynamicImport(o.resourcesUrl,r)}if(!win.customElements){return import("./dom-60e3e2ad.js").then((function(){return o}))}}return promiseResolve(o)};var patchDynamicImport=function(r,o){var e=getDynamicImportFunction(NAMESPACE);try{win[e]=new Function("w","return import(w);//".concat(Math.random()))}catch(a){var n=new Map;win[e]=function(a){var i;var t=new URL(a,r).href;var c=n.get(t);if(!c){var s=doc.createElement("script");s.type="module";s.crossOrigin=o.crossOrigin;s.src=URL.createObjectURL(new Blob(["import * as m from '".concat(t,"'; window.").concat(e,".m = m;")],{type:"application/javascript"}));var l=(i=plt.$nonce$)!==null&&i!==void 0?i:queryNonceMetaTagContent(doc);if(l!=null){s.setAttribute("nonce",l)}c=new Promise((function(r){s.onload=function(){r(win[e].m);s.remove()}}));n.set(t,c);doc.head.appendChild(s)}return c}}};patchBrowser().then((function(r){return bootstrapLazy([["grw-trek-card",[[1,"grw-trek-card",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],departureCity:[32]}]]],["grw-information-desk-detail_3",[[1,"grw-information-desk-detail",{informationDesk:[16],displayShortDescription:[32]}],[1,"grw-poi-detail",{poi:[16],displayShortDescription:[32],displayFullscreen:[32]}],[1,"grw-sensitive-area-detail",{sensitiveArea:[16]}]]],["grw-filter_8",[[1,"grw-trek-detail",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],weather:[4],isLargeView:[4,"is-large-view"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],labels:[32],sources:[32],accessibilities:[32],accessibilityLevel:[32],displayFullscreen:[32],cities:[32],options:[32]}],[1,"grw-treks-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],treksToDisplay:[32]}],[1,"grw-filter",{filterType:[1,"filter-type"],filterName:[1,"filter-name"],filterNameProperty:[1,"filter-name-property"]},[[8,"resetFilter","onResetFilter"]]],[0,"grw-map",{urlLayer:[1,"url-layer"],attribution:[1],center:[1],zoom:[2],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorBackground:[1,"color-background"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isLargeView:[4,"is-large-view"],mapIsReady:[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-search"],[1,"grw-select-language"],[1,"grw-trek-provider",{languages:[1],api:[1],trekId:[1,"trek-id"]}],[1,"grw-treks-provider",{languages:[1],api:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1]}]]],["grw-app",[[0,"grw-app",{appWidth:[1,"app-width"],appHeight:[1,"app-height"],api:[1],languages:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1],urlLayer:[1,"url-layer"],center:[1],zoom:[2],attribution:[1],linkName:[1,"link-name"],linkTarget:[1,"link-target"],weather:[4],colorPrimaryApp:[1,"color-primary-app"],colorOnPrimary:[1,"color-on-primary"],colorSurface:[1,"color-surface"],colorOnSurface:[1,"color-on-surface"],colorSurfaceVariant:[1,"color-surface-variant"],colorOnSurfaceVariant:[1,"color-on-surface-variant"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],colorSurfaceContainerHigh:[1,"color-surface-container-high"],colorSurfaceContainerLow:[1,"color-surface-container-low"],fabBackgroundColor:[1,"fab-background-color"],fabColor:[1,"fab-color"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],showTrek:[32],showTreksMap:[32],showTrekMap:[32],showFilters:[32],isLargeView:[32],currentTrekId:[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]],r)}));
2
2
  //# sourceMappingURL=geotrek-rando-widget.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["queryNonceMetaTagContent","doc","_a","_b","_c","head","querySelector","getAttribute","undefined","getDynamicImportFunction","namespace","concat","replace","patchBrowser","plt","$cssShim$","win","__cssshim","scriptElm","Array","from","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","opts","history","scrollRestoration","then","resourcesUrl","URL","location","href","patchDynamicImport","customElements","import","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap_1","Map","url","mod","get","script_1","createElement","type","crossOrigin","createObjectURL","Blob","nonce","$nonce$","setAttribute","Promise","resolve","onload","m","remove","set","appendChild","options","bootstrapLazy","trek","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isLargeView","resetStoreOnDisconnected","currentTrek","difficulty","route","practice","themes","departureCity","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","colorPrimaryContainer","colorOnPrimaryContainer","colorBackground","weather","labels","sources","accessibilities","accessibilityLevel","cities","treksToDisplay","filterType","filterName","filterNameProperty","urlLayer","attribution","center","zoom","colorTrekLine","colorDepartureIcon","colorArrivalIcon","colorSensitiveArea","colorPoiIcon","mapIsReady","languages","api","trekId","inBbox","districts","structures","portals","routes","practices","appWidth","appHeight","linkName","linkTarget","colorOnPrimary","colorSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorSurfaceContainerHigh","fabBackgroundColor","fabColor","showTrek","showTreksMap","showTrekMap","showFilters","currentTrekId"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"iKAaA,SAASA,yBAAyBC,GAC9B,IAAIC,EAAIC,EAAIC,EACZ,OAAQA,GAAMD,GAAMD,EAAKD,EAAII,QAAU,MAAQH,SAAY,OAAS,EAAIA,EAAGI,cAAc,6BAA+B,MAAQH,SAAY,OAAS,EAAIA,EAAGI,aAAa,cAAgB,MAAQH,SAAY,EAAIA,EAAKI,SAC1N,CAEA,IAAMC,yBAA2B,SAACC,GAAc,qBAAAC,OAAeD,EAAUE,QAAQ,QAAS,KAA1C,EAChD,IAAMC,aAAe,WAMK,CAGlBC,IAAIC,UAAYC,IAAIC,S,CAkBxB,IAAMC,EAIAC,MAAMC,KAAKnB,IAAIoB,iBAAiB,WAAWC,MAAK,SAACC,GAAM,WAAIC,OAAO,IAAAb,OAAKc,UAAS,4BAA2BC,KAAKH,EAAEI,MAChHJ,EAAE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,yCAAAF,UAAA,IAAAC,IAAA,IAAAE,OAAA,cAAAlB,OAAA,IAAAmB,UAAA,IAAAC,WAAA,IAAAnC,OAAA,IAAAoC,QAAA,IAAAC,OAAA,IAAAC,UAAA,kCAAAC,SAAA,gBAAAC,UAAA,iBAAAT,IAAA,IAAAD,UAAA,IAAAG,OAAA,cAAAlB,OAAA,IAAAmB,UAAA,IAAAC,WAAA,IAAAnC,OAAA,IAAAoC,QAAA,IAAAC,OAAA,IAAAC,UAAA,IAAAlB,SAAA,gBAAAE,OAAA,IAAAC,KAAA,IAAAF,YAAA,IAAAoB,SAAA,gBAAAC,WAAA,kBAAAhC,QAAA,IAAArB,gBAAA,wBAAAsD,eAAA,uBAAAC,aAAA,oBAAAtD,eAAA,uBAAAuD,oBAAA,4BAAAC,sBAAA,+BAAAvC,sBAAA,8BAAAC,wBAAA,iCAAAjB,wBAAA,gCAAAC,0BAAA,mCAAAiB,gBAAA,uBAAAsC,0BAAA,mCAAAtD,yBAAA,kCAAAuD,mBAAA,2BAAAC,SAAA,gBAAAzB,cAAA,sBAAAC,mBAAA,2BAAAC,iBAAA,yBAAAC,mBAAA,2BAAAC,aAAA,qBAAAsB,SAAA,KAAAC,aAAA,KAAAC,YAAA,KAAAC,YAAA,KAAA3D,YAAA,KAAA4D,cAAA,kHAAApE,EAC9D"}
1
+ {"version":3,"names":["queryNonceMetaTagContent","doc","_a","_b","_c","head","querySelector","getAttribute","undefined","getDynamicImportFunction","namespace","concat","replace","patchBrowser","plt","$cssShim$","win","__cssshim","scriptElm","Array","from","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","opts","history","scrollRestoration","then","resourcesUrl","URL","location","href","patchDynamicImport","customElements","import","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap_1","Map","url","mod","get","script_1","createElement","type","crossOrigin","createObjectURL","Blob","nonce","$nonce$","setAttribute","Promise","resolve","onload","m","remove","set","appendChild","options","bootstrapLazy","trek","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isLargeView","resetStoreOnDisconnected","currentTrek","difficulty","route","practice","themes","departureCity","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","colorPrimaryContainer","colorOnPrimaryContainer","colorBackground","weather","labels","sources","accessibilities","accessibilityLevel","cities","treksToDisplay","filterType","filterName","filterNameProperty","urlLayer","attribution","center","zoom","colorTrekLine","colorDepartureIcon","colorArrivalIcon","colorSensitiveArea","colorPoiIcon","mapIsReady","languages","api","trekId","inBbox","districts","structures","portals","routes","practices","appWidth","appHeight","linkName","linkTarget","colorOnPrimary","colorSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorSurfaceContainerHigh","fabBackgroundColor","fabColor","showTrek","showTreksMap","showTrekMap","showFilters","currentTrekId"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"iKAaA,SAASA,yBAAyBC,GAC9B,IAAIC,EAAIC,EAAIC,EACZ,OAAQA,GAAMD,GAAMD,EAAKD,EAAII,QAAU,MAAQH,SAAY,OAAS,EAAIA,EAAGI,cAAc,6BAA+B,MAAQH,SAAY,OAAS,EAAIA,EAAGI,aAAa,cAAgB,MAAQH,SAAY,EAAIA,EAAKI,SAC1N,CAEA,IAAMC,yBAA2B,SAACC,GAAc,qBAAAC,OAAeD,EAAUE,QAAQ,QAAS,KAA1C,EAChD,IAAMC,aAAe,WAMK,CAGlBC,IAAIC,UAAYC,IAAIC,S,CAkBxB,IAAMC,EAIAC,MAAMC,KAAKnB,IAAIoB,iBAAiB,WAAWC,MAAK,SAACC,GAAM,WAAIC,OAAO,IAAAb,OAAKc,UAAS,4BAA2BC,KAAKH,EAAEI,MAChHJ,EA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AA,yCAAAF,UAAA,IAAAC,IAAA,IAAAE,OAAA,cAAAlB,OAAA,IAAAmB,UAAA,IAAAC,WAAA,IAAAnC,OAAA,IAAAoC,QAAA,IAAAC,OAAA,IAAAC,UAAA,kCAAAC,SAAA,gBAAAC,UAAA,iBAAAT,IAAA,IAAAD,UAAA,IAAAG,OAAA,cAAAlB,OAAA,IAAAmB,UAAA,IAAAC,WAAA,IAAAnC,OAAA,IAAAoC,QAAA,IAAAC,OAAA,IAAAC,UAAA,IAAAlB,SAAA,gBAAAE,OAAA,IAAAC,KAAA,IAAAF,YAAA,IAAAoB,SAAA,gBAAAC,WAAA,kBAAAhC,QAAA,IAAArB,gBAAA,wBAAAsD,eAAA,uBAAAC,aAAA,oBAAAtD,eAAA,uBAAAuD,oBAAA,4BAAAC,sBAAA,+BAAAvC,sBAAA,8BAAAC,wBAAA,iCAAAjB,wBAAA,gCAAAC,0BAAA,mCAAAiB,gBAAA,uBAAAsC,0BAAA,mCAAAtD,yBAAA,kCAAAuD,mBAAA,2BAAAC,SAAA,gBAAAzB,cAAA,sBAAAC,mBAAA,2BAAAC,iBAAA,yBAAAC,mBAAA,2BAAAC,aAAA,qBAAAsB,SAAA,KAAAC,aAAA,KAAAC,YAAA,KAAAC,YAAA,KAAA3D,YAAA,KAAA4D,cAAA,kHAAApE,EAC9D"}
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-3bfebaa2.js";import{t as translate}from"./i18n-b25e6b48.js";import{o as onChange,s as state,r as reset}from"./store-8a967dc3.js";var grwAppCss='.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}.app-container{position:relative;width:100%;height:100%;max-width:100vw;max-height:100vh;overflow:hidden}.header-container,.large-view-header-container{background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.header-container .header-top,.large-view-header-container .header-top{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:64px}.header-container .arrow-back-icon,.large-view-header-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:12px}.header-container .arrow-back-icon:hover,.large-view-header-container .arrow-back-icon:hover{-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}.header-container .header-left-container,.large-view-header-container .header-left-container{margin-left:8px}.header-container .header-right-container,.large-view-header-container .header-right-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:8px}.header-container .header-right-container .margin-right-icon,.large-view-header-container .header-right-container .margin-right-icon{margin-right:8px}.header-container .attribution-container a,.large-view-header-container .attribution-container a{font-size:24px;font-weight:400;line-height:40px;color:var(--color-on-surface);text-decoration:none}.options-container{height:calc(100% - 64px);position:absolute;width:100%;z-index:1100;top:64px}.handle-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-filters-container .handle-filters-button{-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-filters-container .handle-filters-button span{font-size:18px;font-family:"Material Symbols Outlined"}.handle-filters-container .current-treks-within-bounds-length{margin-left:12px;color:var(--color-on-surface)}.filters-container{background-color:var(--color-background);position:absolute;width:100%;padding:16px 0px 32px 0px;z-index:1100}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:calc(100% - 64px);position:absolute;z-index:1099;top:64px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.init-loader-container,.loader-container,.large-view-loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.init-loader-container .loader,.loader-container .loader,.large-view-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - 64px - 64px);background-color:var(--color-background)}.content-treks{height:calc(100% - 64px - 64px)}.content-trek{height:calc(100% - 64px)}.app-treks-list-container,.app-trek-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.map-visibility-button-container .map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:12px;height:56px;font-size:16px;width:unset}.map-visibility-button-container .map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button-container .map-visibility-button span{font-family:"Material Symbols Outlined";font-size:24px;margin-right:8px;color:var(--color-on-primary-container)}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}grw-treks-list{max-height:calc(100vh - 64px - 64px)}grw-trek-detail{max-height:calc(100vh - 64px - 48px)}.app-map-container{width:100%;position:absolute}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}';var GrwApp=function(){function e(e){registerInstance(this,e);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTreksMap=false;this.showTrekMap=false;this.showFilters=false;this.isLargeView=false;this.currentTrekId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.urlLayer=undefined;this.center=undefined;this.zoom=undefined;this.attribution=undefined;this.linkName="GEOTREK";this.linkTarget="https://geotrek.fr";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.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e"}e.prototype.onTrekCardPress=function(e){this.currentTrekId=e.detail;this.showTrek=!this.showTrek;this.showTrekMap=false;var t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString());window.history.pushState({},"",t)};e.prototype.onWindowResize=function(){this.handleView()};e.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};e.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};e.prototype.componentWillLoad=function(){var e=new URL(window.location.toString());var t=e.searchParams.get("trek");if(t){window.history.replaceState({isInitialHistoryWithTrek:true},"",e);this.currentTrekId=Number(t);this.showTrek=!this.showTrek}};e.prototype.componentDidLoad=function(){var e=this;onChange("trekNetworkError",(function(){if(state.trekNetworkError){var t=new URL(window.location.toString());t.searchParams.delete("trek");window.history.replaceState({},"",t);e.onTrekDetailsClose()}}));window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};e.prototype.onTrekDetailsClose=function(){state.currentTrek=null;this.currentTrekId=null;this.showTrek=!this.showTrek};e.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showTreksMap=this.isLargeView;this.showTrekMap=this.isLargeView};e.prototype.handleFilters=function(){this.showFilters=!this.showFilters};e.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();var e=new URL(window.location.toString());e.searchParams.delete("trek");window.history.pushState({},"",e)}else{window.history.back()}};e.prototype.handlePopState=function(){var e=new URL(window.location.toString());var t=Number(e.searchParams.get("trek"));if(t&&this.currentTrekId!==t){this.currentTrekId=t;this.showTrek=true}else if(!t){this.onTrekDetailsClose()}};e.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else{this.showTreksMap=!this.showTreksMap}};e.prototype.disconnectedCallback=function(){reset();window.removeEventListener("popstate",this.handlePopStateBind)};e.prototype.render=function(){var e=this;return h(Host,{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}},!state.currentTreks&&!state.currentTrek&&h("div",{class:"init-loader-container"},h("span",{class:"loader"})),!this.showTrek&&!state.treks&&h("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&&!state.currentTrek&&h("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId}),(state.currentTreks||state.currentTrek)&&h("div",{class:"app-container"},h("div",{class:this.isLargeView?"large-view-header-container":"header-container"},h("div",{class:"header-top"},h("div",{class:"header-left-container"},this.showTrek?h("button",{onClick:function(){return e.handleBackButton()},class:"arrow-back-icon"},h("span",{class:"material-symbols-outlined"},"arrow_back")):h("div",{class:"attribution-container"},h("a",{target:"_blank",href:this.linkTarget},this.linkName))),h("div",{class:"header-right-container"},state.languages.length>1&&h("grw-select-language",null))),!this.showTrek&&h("div",{class:"handle-filters-container"},state.treksWithinBounds&&h("div",{class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("button",{onClick:function(){return e.handleFilters()},class:"handle-filters-button"},h("span",{class:"material-symbols-outlined margin-right-icon"},"filter_list"),translate[state.language].filter))),h("div",{class:"content-container ".concat(this.showTrek?"content-trek":"content-treks")},h("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek?"none":"flex",position:this.showTrek?"absolute":"relative"}},h("grw-treks-list",{"reset-store-on-disconnected":"false","is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),this.showTrek&&!state.currentTrek&&h("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},h("span",{class:"loader"})),state.currentTrek&&h("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},h("grw-trek-detail",{"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-background":this.colorBackground,weather:this.weather,style:{zIndex:this.showTrekMap?"0":"1"},"is-large-view":this.isLargeView})),h("grw-map",{"reset-store-on-disconnected":"false",class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showTreksMap&&!this.showTrek||this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:this.showTrekMap?"1":"0"},"url-layer":this.urlLayer,center:this.center,zoom:this.zoom,attribution:this.attribution,"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-departure-icon":this.colorDepartureIcon,"color-arrival-icon":this.colorArrivalIcon,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon,"is-large-view":this.isLargeView})),(!this.showTrek||this.showTrek&&state.currentTrek)&&h("div",{class:"map-visibility-button-container"},h("button",{onClick:function(){return e.handleShowMap()},class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},h("span",{class:"material-symbols-outlined"},this.showTrek?this.showTrekMap?"summarize":"map":this.showTreksMap?"list":"map"),this.showTrek?this.showTrekMap?translate[state.language].showDetails:translate[state.language].showRoute:this.showTreksMap?translate[state.language].showList:translate[state.language].showMap))),!this.showTrek&&this.showFilters&&h("div",{class:"options-container"},h("div",{class:"filters-container"},h("grw-filter",{filterName:translate[state.language].practice,filterType:"practices",filterNameProperty:"name"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].difficulty,filterType:"difficulties",filterNameProperty:"label"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].duration,filterType:"durations",filterNameProperty:"name"})),h("div",{onClick:function(){return e.handleFilters()},class:"back-filters-container"})))};Object.defineProperty(e.prototype,"appElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return e}();GrwApp.style=grwAppCss;export{GrwApp as grw_app};
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-82644551.js";import{t as translate}from"./i18n-22f5fa38.js";import{o as onChange,s as state,r as reset}from"./store-af9549c8.js";var grwAppCss='.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);font-family:"Roboto";color:var(--color-on-surface);overflow:hidden;line-height:initial;max-width:100vw;max-height:100vh}.app-container{position:relative;width:100%;height:100%;overflow:hidden}.header-container,.large-view-header-container{background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.header-container .header-top,.large-view-header-container .header-top{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:64px}.header-container .arrow-back-icon,.large-view-header-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:12px}.header-container .arrow-back-icon:hover,.large-view-header-container .arrow-back-icon:hover{-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}.header-container .header-left-container,.large-view-header-container .header-left-container{margin-left:8px}.header-container .header-right-container,.large-view-header-container .header-right-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:8px}.header-container .header-right-container .margin-right-icon,.large-view-header-container .header-right-container .margin-right-icon{margin-right:8px}.header-container .attribution-container a,.large-view-header-container .attribution-container a{font-size:24px;font-weight:400;line-height:40px;color:var(--color-on-surface);text-decoration:none}.options-container{height:calc(100% - 64px);position:absolute;width:100%;z-index:1100;top:64px}.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-filters-button{-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;font-family:"Material Symbols Outlined"}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-options-container{overflow-y:scroll;padding-bottom:32px;max-height:calc(100% - 48px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.init-loader-container,.loader-container,.large-view-loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.init-loader-container .loader,.loader-container .loader,.large-view-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - 64px - 64px);background-color:var(--color-background)}.content-treks{height:calc(100% - 64px - 64px)}.content-trek{height:calc(100% - 64px)}.app-treks-list-container,.app-trek-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.map-visibility-button-container .map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:12px;height:56px;font-size:16px;width:unset}.map-visibility-button-container .map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button-container .map-visibility-button span{font-family:"Material Symbols Outlined";font-size:24px;margin-right:8px;color:var(--color-on-primary-container)}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}grw-treks-list{max-height:calc(100vh - 64px - 64px)}grw-trek-detail{max-height:calc(100vh - 64px - 48px)}.app-map-container{width:100%;position:absolute}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}.filters-options-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;height:48px}.filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}';var GrwApp=function(){function e(e){registerInstance(this,e);this.resetFilter=createEvent(this,"resetFilter",7);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTreksMap=false;this.showTrekMap=false;this.showFilters=false;this.isLargeView=false;this.currentTrekId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.urlLayer=undefined;this.center=undefined;this.zoom=undefined;this.attribution=undefined;this.linkName="GEOTREK";this.linkTarget="https://geotrek.fr";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.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e"}e.prototype.onTrekCardPress=function(e){this.currentTrekId=e.detail;this.showTrek=!this.showTrek;this.showTrekMap=false;var t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString());window.history.pushState({},"",t)};e.prototype.onWindowResize=function(){this.handleView()};e.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};e.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};e.prototype.componentWillLoad=function(){var e=new URL(window.location.toString());var t=e.searchParams.get("trek");if(t){window.history.replaceState({isInitialHistoryWithTrek:true},"",e);this.currentTrekId=Number(t);this.showTrek=!this.showTrek}};e.prototype.componentDidLoad=function(){var e=this;onChange("trekNetworkError",(function(){if(state.trekNetworkError){var t=new URL(window.location.toString());t.searchParams.delete("trek");window.history.replaceState({},"",t);e.onTrekDetailsClose()}}));window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};e.prototype.onTrekDetailsClose=function(){state.currentTrek=null;this.currentTrekId=null;this.showTrek=!this.showTrek};e.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showTreksMap=this.isLargeView;this.showTrekMap=this.isLargeView};e.prototype.handleFilters=function(){this.showFilters=!this.showFilters};e.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();var e=new URL(window.location.toString());e.searchParams.delete("trek");window.history.pushState({},"",e)}else{window.history.back()}};e.prototype.handlePopState=function(){var e=new URL(window.location.toString());var t=Number(e.searchParams.get("trek"));if(t&&this.currentTrekId!==t){this.currentTrekId=t;this.showTrek=true}else if(!t){this.onTrekDetailsClose()}};e.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else{this.showTreksMap=!this.showTreksMap}};e.prototype.handleEraseFilters=function(){this.resetFilter.emit();state.currentTreks=state.treks};e.prototype.handleOkFilters=function(){this.handleFilters()};e.prototype.disconnectedCallback=function(){reset();window.removeEventListener("popstate",this.handlePopStateBind)};e.prototype.render=function(){var e=this;return h(Host,{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}},!state.currentTreks&&!state.currentTrek&&h("div",{class:"init-loader-container"},h("span",{class:"loader"})),!this.showTrek&&!state.treks&&h("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&&!state.currentTrek&&h("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId}),(state.currentTreks||state.currentTrek)&&h("div",{class:"app-container"},h("div",{class:this.isLargeView?"large-view-header-container":"header-container"},h("div",{class:"header-top"},h("div",{class:"header-left-container"},this.showTrek?h("button",{onClick:function(){return e.handleBackButton()},class:"arrow-back-icon"},h("span",{class:"material-symbols-outlined"},"arrow_back")):h("div",{class:"attribution-container"},h("a",{target:"_blank",href:this.linkTarget},this.linkName))),h("div",{class:"header-right-container"},state.languages.length>1&&h("grw-select-language",null))),!this.showTrek&&h("div",{class:"handle-search-filters-container"},h("div",{class:"handle-search-container"},h("grw-search",null)),h("div",{class:"handle-filters-container"},h("button",{onClick:function(){return e.handleFilters()},class:"handle-filters-button"},h("span",{class:"material-symbols-outlined margin-right-icon"},"filter_list"),translate[state.language].filter)))),h("div",{class:"content-container ".concat(this.showTrek?"content-trek":"content-treks")},h("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek?"none":"flex",position:this.showTrek?"absolute":"relative"}},h("grw-treks-list",{"reset-store-on-disconnected":"false","is-large-view":this.isLargeView,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),this.showTrek&&!state.currentTrek&&h("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},h("span",{class:"loader"})),state.currentTrek&&h("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},h("grw-trek-detail",{"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-background":this.colorBackground,weather:this.weather,style:{zIndex:this.showTrekMap?"0":"1"},"is-large-view":this.isLargeView})),h("grw-map",{"reset-store-on-disconnected":"false",class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showTreksMap&&!this.showTrek||this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:this.showTrekMap?"1":"0"},"url-layer":this.urlLayer,center:this.center,zoom:this.zoom,attribution:this.attribution,"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-departure-icon":this.colorDepartureIcon,"color-arrival-icon":this.colorArrivalIcon,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon,"is-large-view":this.isLargeView})),(!this.showTrek||this.showTrek&&state.currentTrek)&&h("div",{class:"map-visibility-button-container"},h("button",{onClick:function(){return e.handleShowMap()},class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},h("span",{class:"material-symbols-outlined"},this.showTrek?this.showTrekMap?"summarize":"map":this.showTreksMap?"list":"map"),this.showTrek?this.showTrekMap?translate[state.language].showDetails:translate[state.language].showRoute:this.showTreksMap?translate[state.language].showList:translate[state.language].showMap))),!this.showTrek&&this.showFilters&&h("div",{class:"options-container"},h("div",{class:"filters-container"},h("div",{class:"filters-options-buttons-container"},h("button",{class:"filter-option-button",onClick:function(){return e.handleEraseFilters()}},"Effacer"),h("button",{class:"filter-option-button",onClick:function(){return e.handleOkFilters()}},"Ok")),h("div",{class:"filters-options-container"},h("grw-filter",{filterName:translate[state.language].practice,filterType:"practices",filterNameProperty:"name"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].difficulty,filterType:"difficulties",filterNameProperty:"label"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].duration,filterType:"durations",filterNameProperty:"name"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].length,filterType:"lengths",filterNameProperty:"name"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].elevation,filterType:"elevations",filterNameProperty:"name"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].themes,filterType:"themes",filterNameProperty:"label"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].routes,filterType:"routes",filterNameProperty:"route"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].accessibility,filterType:"accessibilities",filterNameProperty:"name"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].others,filterType:"labels",filterNameProperty:"name"}),h("div",{class:"divider"}),h("grw-filter",{filterName:translate[state.language].cities,filterType:"cities",filterNameProperty:"name"}))),h("div",{onClick:function(){return e.handleFilters()},class:"back-filters-container"})))};Object.defineProperty(e.prototype,"appElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return e}();GrwApp.style=grwAppCss;export{GrwApp as grw_app};
2
2
  //# sourceMappingURL=grw-app.entry.js.map
Binary file
Binary file