@geotrekce/geotrek-rando-widget 0.30.2 → 0.30.4

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 (419) hide show
  1. package/dist/cjs/{call-422e2bf4.js → call-c5b389c7.js} +2 -2
  2. package/dist/cjs/call-c5b389c7.js.br +0 -0
  3. package/dist/cjs/call-c5b389c7.js.gz +0 -0
  4. package/dist/cjs/{call-422e2bf4.js.map → call-c5b389c7.js.map} +1 -1
  5. package/dist/cjs/grw-app.cjs.entry.js +2 -2
  6. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  8. package/dist/cjs/grw-common-button_23.cjs.entry.js +83 -69
  9. package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
  12. package/dist/cjs/{grw-db.service-dde227e0.js → grw-db.service-51e2fba4.js} +2 -2
  13. package/dist/cjs/grw-db.service-51e2fba4.js.br +0 -0
  14. package/dist/cjs/grw-db.service-51e2fba4.js.gz +0 -0
  15. package/dist/cjs/{grw-db.service-dde227e0.js.map → grw-db.service-51e2fba4.js.map} +1 -1
  16. package/dist/cjs/grw-details-modal_8.cjs.entry.js +25 -11
  17. package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
  18. package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/grw-details-modal_8.cjs.entry.js.map +1 -1
  20. package/dist/cjs/grw-filter.cjs.entry.js +2 -2
  21. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  22. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  23. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js +5 -5
  24. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.br +0 -0
  25. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/grw-poi_3.cjs.entry.js +3 -3
  27. package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
  28. package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
  29. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +4 -4
  30. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
  31. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +1 -1
  33. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
  34. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
  35. package/dist/cjs/{outdoor-courses.service-083411f5.js → outdoor-courses.service-9ba0da7e.js} +2 -2
  36. package/dist/cjs/outdoor-courses.service-9ba0da7e.js.br +0 -0
  37. package/dist/cjs/outdoor-courses.service-9ba0da7e.js.gz +0 -0
  38. package/dist/cjs/{outdoor-courses.service-083411f5.js.map → outdoor-courses.service-9ba0da7e.js.map} +1 -1
  39. package/dist/cjs/{store-65aa11bc.js → store-8c47b811.js} +2 -2
  40. package/dist/cjs/store-8c47b811.js.br +0 -0
  41. package/dist/cjs/store-8c47b811.js.gz +0 -0
  42. package/dist/cjs/{store-65aa11bc.js.map → store-8c47b811.js.map} +1 -1
  43. package/dist/cjs/{treks.service-14b5765a.js → treks.service-ae2960c8.js} +4 -4
  44. package/dist/cjs/treks.service-ae2960c8.js.br +0 -0
  45. package/dist/cjs/treks.service-ae2960c8.js.gz +0 -0
  46. package/dist/cjs/{treks.service-14b5765a.js.map → treks.service-ae2960c8.js.map} +1 -1
  47. package/dist/cjs/{utils-5c5c3fee.js → utils-fef97420.js} +3 -3
  48. package/dist/cjs/utils-fef97420.js.br +0 -0
  49. package/dist/cjs/utils-fef97420.js.gz +0 -0
  50. package/dist/cjs/{utils-5c5c3fee.js.map → utils-fef97420.js.map} +1 -1
  51. package/dist/cjs/{web-87e6d345.js → web-e27fac22.js} +3 -3
  52. package/dist/cjs/web-e27fac22.js.br +0 -0
  53. package/dist/cjs/web-e27fac22.js.gz +0 -0
  54. package/dist/cjs/{web-87e6d345.js.map → web-e27fac22.js.map} +1 -1
  55. package/dist/collection/components/grw-map/grw-map.js +62 -56
  56. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  57. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  58. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  59. package/dist/collection/store/grw-outdoor-site-provider.js +4 -4
  60. package/dist/collection/store/grw-outdoor-site-provider.js.br +0 -0
  61. package/dist/collection/store/grw-outdoor-site-provider.js.gz +0 -0
  62. package/dist/collection/store/grw-outdoor-site-provider.js.map +1 -1
  63. package/dist/collection/store/grw-touristic-content-provider.js +11 -3
  64. package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
  65. package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
  66. package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
  67. package/dist/collection/store/grw-touristic-event-provider.js +9 -3
  68. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  69. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  70. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
  71. package/dist/collection/store/grw-trek-provider.js +11 -3
  72. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  73. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  74. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  75. package/dist/collection/store/store.js +1 -1
  76. package/dist/collection/store/store.js.br +0 -0
  77. package/dist/collection/store/store.js.gz +0 -0
  78. package/dist/collection/store/store.js.map +1 -1
  79. package/dist/esm/{call-c0c920b0.js → call-df62b17b.js} +2 -2
  80. package/dist/esm/call-df62b17b.js.br +0 -0
  81. package/dist/esm/call-df62b17b.js.gz +0 -0
  82. package/dist/esm/{call-c0c920b0.js.map → call-df62b17b.js.map} +1 -1
  83. package/dist/esm/grw-app.entry.js +2 -2
  84. package/dist/esm/grw-app.entry.js.br +0 -0
  85. package/dist/esm/grw-app.entry.js.gz +0 -0
  86. package/dist/esm/grw-common-button_23.entry.js +83 -69
  87. package/dist/esm/grw-common-button_23.entry.js.br +0 -0
  88. package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
  89. package/dist/esm/grw-common-button_23.entry.js.map +1 -1
  90. package/dist/esm/{grw-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
  91. package/dist/esm/grw-db.service-a2b2fc8e.js.br +0 -0
  92. package/dist/esm/grw-db.service-a2b2fc8e.js.gz +0 -0
  93. package/dist/esm/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +1 -1
  94. package/dist/esm/grw-details-modal_8.entry.js +25 -11
  95. package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
  96. package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
  97. package/dist/esm/grw-details-modal_8.entry.js.map +1 -1
  98. package/dist/esm/grw-filter.entry.js +2 -2
  99. package/dist/esm/grw-filter.entry.js.br +0 -0
  100. package/dist/esm/grw-filter.entry.js.gz +0 -0
  101. package/dist/esm/grw-outdoor-courses-provider.entry.js +5 -5
  102. package/dist/esm/grw-outdoor-courses-provider.entry.js.br +0 -0
  103. package/dist/esm/grw-outdoor-courses-provider.entry.js.gz +0 -0
  104. package/dist/esm/grw-poi_3.entry.js +3 -3
  105. package/dist/esm/grw-poi_3.entry.js.br +0 -0
  106. package/dist/esm/grw-poi_3.entry.js.gz +0 -0
  107. package/dist/esm/grw-sensitive-area-detail_2.entry.js +4 -4
  108. package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
  109. package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  110. package/dist/esm/grw-toggle-slot-visibility.entry.js +1 -1
  111. package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
  112. package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
  113. package/dist/esm/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
  114. package/dist/esm/outdoor-courses.service-c7fe26df.js.br +0 -0
  115. package/dist/esm/outdoor-courses.service-c7fe26df.js.gz +0 -0
  116. package/dist/esm/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +1 -1
  117. package/dist/esm/{store-882ab9be.js → store-aa921ea2.js} +2 -2
  118. package/dist/esm/store-aa921ea2.js.br +0 -0
  119. package/dist/esm/store-aa921ea2.js.gz +0 -0
  120. package/dist/esm/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
  121. package/dist/esm/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +4 -4
  122. package/dist/esm/treks.service-0b98455e.js.br +0 -0
  123. package/dist/esm/treks.service-0b98455e.js.gz +0 -0
  124. package/dist/esm/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +1 -1
  125. package/dist/esm/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
  126. package/dist/esm/utils-b1ca48b3.js.br +0 -0
  127. package/dist/esm/utils-b1ca48b3.js.gz +0 -0
  128. package/dist/esm/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +1 -1
  129. package/dist/esm/{web-9ea89c85.js → web-08ea09e6.js} +3 -3
  130. package/dist/esm/web-08ea09e6.js.br +0 -0
  131. package/dist/esm/web-08ea09e6.js.gz +0 -0
  132. package/dist/esm/{web-9ea89c85.js.map → web-08ea09e6.js.map} +1 -1
  133. package/dist/esm-es5/{call-c0c920b0.js → call-df62b17b.js} +2 -2
  134. package/dist/esm-es5/call-df62b17b.js.br +0 -0
  135. package/dist/esm-es5/{call-c0c920b0.js.gz → call-df62b17b.js.gz} +0 -0
  136. package/dist/esm-es5/grw-app.entry.js +1 -1
  137. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  138. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  139. package/dist/esm-es5/grw-common-button_23.entry.js +2 -2
  140. package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
  141. package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
  142. package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
  143. package/dist/esm-es5/{grw-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
  144. package/dist/esm-es5/grw-db.service-a2b2fc8e.js.br +0 -0
  145. package/dist/esm-es5/grw-db.service-a2b2fc8e.js.gz +0 -0
  146. package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
  147. package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
  148. package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
  149. package/dist/esm-es5/grw-details-modal_8.entry.js.map +1 -1
  150. package/dist/esm-es5/grw-filter.entry.js +1 -1
  151. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  152. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  153. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js +1 -1
  154. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.br +0 -0
  155. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.gz +0 -0
  156. package/dist/esm-es5/grw-poi_3.entry.js +1 -1
  157. package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
  158. package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
  159. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +1 -1
  160. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
  161. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  162. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
  163. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
  164. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
  165. package/dist/esm-es5/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
  166. package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.br +0 -0
  167. package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.gz +0 -0
  168. package/dist/esm-es5/{store-882ab9be.js → store-aa921ea2.js} +2 -2
  169. package/dist/esm-es5/store-aa921ea2.js.br +0 -0
  170. package/dist/esm-es5/store-aa921ea2.js.gz +0 -0
  171. package/dist/esm-es5/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
  172. package/dist/esm-es5/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +2 -2
  173. package/dist/esm-es5/treks.service-0b98455e.js.br +0 -0
  174. package/dist/esm-es5/treks.service-0b98455e.js.gz +0 -0
  175. package/dist/esm-es5/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
  176. package/dist/esm-es5/utils-b1ca48b3.js.br +0 -0
  177. package/dist/esm-es5/utils-b1ca48b3.js.gz +0 -0
  178. package/dist/esm-es5/{web-9ea89c85.js → web-08ea09e6.js} +2 -2
  179. package/dist/esm-es5/web-08ea09e6.js.br +0 -0
  180. package/dist/esm-es5/web-08ea09e6.js.gz +0 -0
  181. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  182. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  183. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  184. package/dist/geotrek-rando-widget/{p-31cd5fb6.system.js → p-06ec8b64.system.js} +2 -2
  185. package/dist/geotrek-rando-widget/p-06ec8b64.system.js.br +0 -0
  186. package/dist/geotrek-rando-widget/p-06ec8b64.system.js.gz +0 -0
  187. package/dist/geotrek-rando-widget/{p-e6471529.system.js → p-0e29bbf9.system.js} +2 -2
  188. package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.br +0 -0
  189. package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.gz +0 -0
  190. package/dist/geotrek-rando-widget/{p-e6471529.system.js.map → p-0e29bbf9.system.js.map} +1 -1
  191. package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js → p-11622ab2.system.js} +3 -3
  192. package/dist/geotrek-rando-widget/p-11622ab2.system.js.br +0 -0
  193. package/dist/geotrek-rando-widget/p-11622ab2.system.js.gz +0 -0
  194. package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js → p-28048cef.system.entry.js} +2 -2
  195. package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.br +0 -0
  196. package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.gz +0 -0
  197. package/dist/geotrek-rando-widget/{p-f0d965b9.system.entry.js → p-2939026a.system.entry.js} +2 -2
  198. package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.br +0 -0
  199. package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.gz +0 -0
  200. package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.map +1 -0
  201. package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js → p-35fa0752.system.entry.js} +2 -2
  202. package/dist/geotrek-rando-widget/p-35fa0752.system.entry.js.br +0 -0
  203. package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.gz → p-35fa0752.system.entry.js.gz} +0 -0
  204. package/dist/geotrek-rando-widget/{p-0dc681ee.system.js → p-3834a184.system.js} +2 -2
  205. package/dist/geotrek-rando-widget/p-3834a184.system.js.br +0 -0
  206. package/dist/geotrek-rando-widget/p-3834a184.system.js.gz +0 -0
  207. package/dist/geotrek-rando-widget/{p-111e4a10.entry.js → p-4450a6e3.entry.js} +2 -2
  208. package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.br +0 -0
  209. package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.gz +0 -0
  210. package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.map +1 -0
  211. package/dist/geotrek-rando-widget/p-5517eb99.system.js +1 -1
  212. package/dist/geotrek-rando-widget/p-5517eb99.system.js.br +0 -0
  213. package/dist/geotrek-rando-widget/p-5517eb99.system.js.gz +0 -0
  214. package/dist/geotrek-rando-widget/p-551b6c64.entry.js +4 -0
  215. package/dist/geotrek-rando-widget/p-551b6c64.entry.js.br +0 -0
  216. package/dist/geotrek-rando-widget/p-551b6c64.entry.js.gz +0 -0
  217. package/dist/geotrek-rando-widget/p-551b6c64.entry.js.map +1 -0
  218. package/dist/geotrek-rando-widget/{p-c8f5ce61.js → p-5feca333.js} +2 -2
  219. package/dist/geotrek-rando-widget/p-5feca333.js.br +0 -0
  220. package/dist/geotrek-rando-widget/p-5feca333.js.gz +0 -0
  221. package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js → p-643b34f4.system.entry.js} +2 -2
  222. package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.br +0 -0
  223. package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.gz +0 -0
  224. package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js +4 -0
  225. package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.br +0 -0
  226. package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.gz +0 -0
  227. package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.map +1 -0
  228. package/dist/geotrek-rando-widget/{p-844f4321.js → p-6d0668a6.js} +3 -3
  229. package/dist/geotrek-rando-widget/p-6d0668a6.js.br +0 -0
  230. package/dist/geotrek-rando-widget/p-6d0668a6.js.gz +0 -0
  231. package/dist/geotrek-rando-widget/{p-d95cfb6f.js → p-7207c87a.js} +2 -2
  232. package/dist/geotrek-rando-widget/p-7207c87a.js.br +0 -0
  233. package/dist/geotrek-rando-widget/p-7207c87a.js.gz +0 -0
  234. package/dist/geotrek-rando-widget/{p-d95cfb6f.js.map → p-7207c87a.js.map} +1 -1
  235. package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js → p-722468a0.system.js} +2 -2
  236. package/dist/geotrek-rando-widget/p-722468a0.system.js.br +0 -0
  237. package/dist/geotrek-rando-widget/p-722468a0.system.js.gz +0 -0
  238. package/dist/geotrek-rando-widget/{p-91d62770.entry.js → p-83e76a62.entry.js} +2 -2
  239. package/dist/geotrek-rando-widget/p-83e76a62.entry.js.br +0 -0
  240. package/dist/geotrek-rando-widget/p-83e76a62.entry.js.gz +0 -0
  241. package/dist/geotrek-rando-widget/{p-38d31358.entry.js → p-9ac8e3ac.entry.js} +2 -2
  242. package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.br +0 -0
  243. package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.gz +0 -0
  244. package/dist/geotrek-rando-widget/{p-20fa1207.entry.js → p-9c461972.entry.js} +2 -2
  245. package/dist/geotrek-rando-widget/p-9c461972.entry.js.br +0 -0
  246. package/dist/geotrek-rando-widget/p-9c461972.entry.js.gz +0 -0
  247. package/dist/geotrek-rando-widget/{p-6287495f.entry.js → p-ad644267.entry.js} +2 -2
  248. package/dist/geotrek-rando-widget/p-ad644267.entry.js.br +0 -0
  249. package/dist/geotrek-rando-widget/p-ad644267.entry.js.gz +0 -0
  250. package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js → p-ad6e02a4.system.entry.js} +2 -2
  251. package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.br +0 -0
  252. package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.gz +0 -0
  253. package/dist/geotrek-rando-widget/{p-315f99d3.system.js → p-ae0a8dc1.system.js} +2 -2
  254. package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.br +0 -0
  255. package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.gz +0 -0
  256. package/dist/geotrek-rando-widget/{p-fcbe4bb6.js → p-b0b7e072.js} +2 -2
  257. package/dist/geotrek-rando-widget/p-b0b7e072.js.br +0 -0
  258. package/dist/geotrek-rando-widget/p-b0b7e072.js.gz +0 -0
  259. package/dist/geotrek-rando-widget/{p-b1ed0255.js → p-bc36f8a6.js} +2 -2
  260. package/dist/geotrek-rando-widget/p-bc36f8a6.js.br +0 -0
  261. package/dist/geotrek-rando-widget/p-bc36f8a6.js.gz +0 -0
  262. package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js → p-cf6d1b66.entry.js} +2 -2
  263. package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.br +0 -0
  264. package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.gz +0 -0
  265. package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js → p-d8126403.system.entry.js} +2 -2
  266. package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.br +0 -0
  267. package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.gz +0 -0
  268. package/dist/geotrek-rando-widget/{p-c61425f6.js → p-e5086616.js} +2 -2
  269. package/dist/geotrek-rando-widget/p-e5086616.js.br +0 -0
  270. package/dist/geotrek-rando-widget/p-e5086616.js.gz +0 -0
  271. package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js → p-e9483fdf.entry.js} +2 -2
  272. package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.br +0 -0
  273. package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.gz +0 -0
  274. package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js → p-ec9a42ab.system.entry.js} +2 -2
  275. package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.br +0 -0
  276. package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.gz +0 -0
  277. package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js → p-f152b476.system.js} +2 -2
  278. package/dist/geotrek-rando-widget/p-f152b476.system.js.br +0 -0
  279. package/dist/geotrek-rando-widget/p-f152b476.system.js.gz +0 -0
  280. package/dist/geotrek-rando-widget/{p-76467e71.js → p-f92d0101.js} +2 -2
  281. package/dist/geotrek-rando-widget/p-f92d0101.js.br +0 -0
  282. package/dist/geotrek-rando-widget/p-f92d0101.js.gz +0 -0
  283. package/package.json +1 -1
  284. package/dist/cjs/call-422e2bf4.js.br +0 -0
  285. package/dist/cjs/call-422e2bf4.js.gz +0 -0
  286. package/dist/cjs/grw-db.service-dde227e0.js.br +0 -0
  287. package/dist/cjs/grw-db.service-dde227e0.js.gz +0 -0
  288. package/dist/cjs/outdoor-courses.service-083411f5.js.br +0 -0
  289. package/dist/cjs/outdoor-courses.service-083411f5.js.gz +0 -0
  290. package/dist/cjs/store-65aa11bc.js.br +0 -0
  291. package/dist/cjs/store-65aa11bc.js.gz +0 -0
  292. package/dist/cjs/treks.service-14b5765a.js.br +0 -0
  293. package/dist/cjs/treks.service-14b5765a.js.gz +0 -0
  294. package/dist/cjs/utils-5c5c3fee.js.br +0 -0
  295. package/dist/cjs/utils-5c5c3fee.js.gz +0 -0
  296. package/dist/cjs/web-87e6d345.js.br +0 -0
  297. package/dist/cjs/web-87e6d345.js.gz +0 -0
  298. package/dist/esm/call-c0c920b0.js.br +0 -0
  299. package/dist/esm/call-c0c920b0.js.gz +0 -0
  300. package/dist/esm/grw-db.service-83da38c9.js.br +0 -0
  301. package/dist/esm/grw-db.service-83da38c9.js.gz +0 -0
  302. package/dist/esm/outdoor-courses.service-d2397066.js.br +0 -0
  303. package/dist/esm/outdoor-courses.service-d2397066.js.gz +0 -0
  304. package/dist/esm/store-882ab9be.js.br +0 -0
  305. package/dist/esm/store-882ab9be.js.gz +0 -0
  306. package/dist/esm/treks.service-a3ce33ef.js.br +0 -0
  307. package/dist/esm/treks.service-a3ce33ef.js.gz +0 -0
  308. package/dist/esm/utils-5feb9281.js.br +0 -0
  309. package/dist/esm/utils-5feb9281.js.gz +0 -0
  310. package/dist/esm/web-9ea89c85.js.br +0 -0
  311. package/dist/esm/web-9ea89c85.js.gz +0 -0
  312. package/dist/esm-es5/call-c0c920b0.js.br +0 -0
  313. package/dist/esm-es5/grw-db.service-83da38c9.js.br +0 -0
  314. package/dist/esm-es5/grw-db.service-83da38c9.js.gz +0 -0
  315. package/dist/esm-es5/outdoor-courses.service-d2397066.js.br +0 -0
  316. package/dist/esm-es5/outdoor-courses.service-d2397066.js.gz +0 -0
  317. package/dist/esm-es5/store-882ab9be.js.br +0 -0
  318. package/dist/esm-es5/store-882ab9be.js.gz +0 -0
  319. package/dist/esm-es5/treks.service-a3ce33ef.js.br +0 -0
  320. package/dist/esm-es5/treks.service-a3ce33ef.js.gz +0 -0
  321. package/dist/esm-es5/utils-5feb9281.js.br +0 -0
  322. package/dist/esm-es5/utils-5feb9281.js.gz +0 -0
  323. package/dist/esm-es5/web-9ea89c85.js.br +0 -0
  324. package/dist/esm-es5/web-9ea89c85.js.gz +0 -0
  325. package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.br +0 -0
  326. package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.gz +0 -0
  327. package/dist/geotrek-rando-widget/p-0dc681ee.system.js.br +0 -0
  328. package/dist/geotrek-rando-widget/p-0dc681ee.system.js.gz +0 -0
  329. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.br +0 -0
  330. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.gz +0 -0
  331. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.map +0 -1
  332. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.br +0 -0
  333. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.gz +0 -0
  334. package/dist/geotrek-rando-widget/p-315f99d3.system.js.br +0 -0
  335. package/dist/geotrek-rando-widget/p-315f99d3.system.js.gz +0 -0
  336. package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.br +0 -0
  337. package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.gz +0 -0
  338. package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.br +0 -0
  339. package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.gz +0 -0
  340. package/dist/geotrek-rando-widget/p-38d31358.entry.js.br +0 -0
  341. package/dist/geotrek-rando-widget/p-38d31358.entry.js.gz +0 -0
  342. package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.br +0 -0
  343. package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.gz +0 -0
  344. package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.br +0 -0
  345. package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.gz +0 -0
  346. package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.br +0 -0
  347. package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.gz +0 -0
  348. package/dist/geotrek-rando-widget/p-6287495f.entry.js.br +0 -0
  349. package/dist/geotrek-rando-widget/p-6287495f.entry.js.gz +0 -0
  350. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.br +0 -0
  351. package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js +0 -4
  352. package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.br +0 -0
  353. package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.gz +0 -0
  354. package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.map +0 -1
  355. package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.br +0 -0
  356. package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.gz +0 -0
  357. package/dist/geotrek-rando-widget/p-76467e71.js.br +0 -0
  358. package/dist/geotrek-rando-widget/p-76467e71.js.gz +0 -0
  359. package/dist/geotrek-rando-widget/p-844f4321.js.br +0 -0
  360. package/dist/geotrek-rando-widget/p-844f4321.js.gz +0 -0
  361. package/dist/geotrek-rando-widget/p-91d62770.entry.js.br +0 -0
  362. package/dist/geotrek-rando-widget/p-91d62770.entry.js.gz +0 -0
  363. package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.br +0 -0
  364. package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.gz +0 -0
  365. package/dist/geotrek-rando-widget/p-b1ed0255.js.br +0 -0
  366. package/dist/geotrek-rando-widget/p-b1ed0255.js.gz +0 -0
  367. package/dist/geotrek-rando-widget/p-c0721af7.entry.js +0 -4
  368. package/dist/geotrek-rando-widget/p-c0721af7.entry.js.br +0 -0
  369. package/dist/geotrek-rando-widget/p-c0721af7.entry.js.gz +0 -0
  370. package/dist/geotrek-rando-widget/p-c0721af7.entry.js.map +0 -1
  371. package/dist/geotrek-rando-widget/p-c61425f6.js.br +0 -0
  372. package/dist/geotrek-rando-widget/p-c61425f6.js.gz +0 -0
  373. package/dist/geotrek-rando-widget/p-c8f5ce61.js.br +0 -0
  374. package/dist/geotrek-rando-widget/p-c8f5ce61.js.gz +0 -0
  375. package/dist/geotrek-rando-widget/p-d95cfb6f.js.br +0 -0
  376. package/dist/geotrek-rando-widget/p-d95cfb6f.js.gz +0 -0
  377. package/dist/geotrek-rando-widget/p-e6471529.system.js.br +0 -0
  378. package/dist/geotrek-rando-widget/p-e6471529.system.js.gz +0 -0
  379. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.br +0 -0
  380. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.gz +0 -0
  381. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.br +0 -0
  382. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.gz +0 -0
  383. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.br +0 -0
  384. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.gz +0 -0
  385. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.map +0 -1
  386. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.br +0 -0
  387. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.gz +0 -0
  388. package/dist/geotrek-rando-widget/p-fcbe4bb6.js.br +0 -0
  389. package/dist/geotrek-rando-widget/p-fcbe4bb6.js.gz +0 -0
  390. /package/dist/esm-es5/{call-c0c920b0.js.map → call-df62b17b.js.map} +0 -0
  391. /package/dist/esm-es5/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +0 -0
  392. /package/dist/esm-es5/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +0 -0
  393. /package/dist/esm-es5/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +0 -0
  394. /package/dist/esm-es5/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +0 -0
  395. /package/dist/esm-es5/{web-9ea89c85.js.map → web-08ea09e6.js.map} +0 -0
  396. /package/dist/geotrek-rando-widget/{p-31cd5fb6.system.js.map → p-06ec8b64.system.js.map} +0 -0
  397. /package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js.map → p-11622ab2.system.js.map} +0 -0
  398. /package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js.map → p-28048cef.system.entry.js.map} +0 -0
  399. /package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.map → p-35fa0752.system.entry.js.map} +0 -0
  400. /package/dist/geotrek-rando-widget/{p-0dc681ee.system.js.map → p-3834a184.system.js.map} +0 -0
  401. /package/dist/geotrek-rando-widget/{p-c8f5ce61.js.map → p-5feca333.js.map} +0 -0
  402. /package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js.map → p-643b34f4.system.entry.js.map} +0 -0
  403. /package/dist/geotrek-rando-widget/{p-844f4321.js.map → p-6d0668a6.js.map} +0 -0
  404. /package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js.map → p-722468a0.system.js.map} +0 -0
  405. /package/dist/geotrek-rando-widget/{p-91d62770.entry.js.map → p-83e76a62.entry.js.map} +0 -0
  406. /package/dist/geotrek-rando-widget/{p-38d31358.entry.js.map → p-9ac8e3ac.entry.js.map} +0 -0
  407. /package/dist/geotrek-rando-widget/{p-20fa1207.entry.js.map → p-9c461972.entry.js.map} +0 -0
  408. /package/dist/geotrek-rando-widget/{p-6287495f.entry.js.map → p-ad644267.entry.js.map} +0 -0
  409. /package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js.map → p-ad6e02a4.system.entry.js.map} +0 -0
  410. /package/dist/geotrek-rando-widget/{p-315f99d3.system.js.map → p-ae0a8dc1.system.js.map} +0 -0
  411. /package/dist/geotrek-rando-widget/{p-fcbe4bb6.js.map → p-b0b7e072.js.map} +0 -0
  412. /package/dist/geotrek-rando-widget/{p-b1ed0255.js.map → p-bc36f8a6.js.map} +0 -0
  413. /package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js.map → p-cf6d1b66.entry.js.map} +0 -0
  414. /package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js.map → p-d8126403.system.entry.js.map} +0 -0
  415. /package/dist/geotrek-rando-widget/{p-c61425f6.js.map → p-e5086616.js.map} +0 -0
  416. /package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js.map → p-e9483fdf.entry.js.map} +0 -0
  417. /package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js.map → p-ec9a42ab.system.entry.js.map} +0 -0
  418. /package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js.map → p-f152b476.system.js.map} +0 -0
  419. /package/dist/geotrek-rando-widget/{p-76467e71.js.map → p-f92d0101.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function s(e){try{o(r.next(e))}catch(e){n(e)}}function c(e){try{o(r["throw"](e))}catch(e){n(e)}}function o(e){e.done?a(e.value):i(e.value).then(s,c)}o((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(e){return function(t){return o([e,t])}}function o(c){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,c[0]&&(a=0)),a)try{if(r=1,i&&(n=c[0]&2?i["return"]:c[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,c[1])).done)return n;if(i=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:a.label++;return{value:c[1],done:false};case 5:a.label++;i=c[1];c=[0];continue;case 7:c=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){a.label=c[1];break}if(c[0]===6&&a.label<n[1]){a.label=n[1];n=c;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(c);break}if(n[2])a.ops.pop();a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e];i=0}finally{r=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,c as createEvent,e as getAssetPath,F as Fragment}from"./index-83d78b30.js";import{s as state,o as onChange}from"./store-882ab9be.js";import{t as trekIsAvailableOffline}from"./treks.service-a3ce33ef.js";import{m as formatDuration,n as formatLength,p as formatAscent}from"./utils-5feb9281.js";import{T as TimelapseIcon,O as OpenInFullIcon,M as MovingIcon}from"./moving-c644d077.js";import{c as commonjsGlobal}from"./grw-db.service-83da38c9.js";var grwSensitiveAreaDetailCss=':host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.sensitive-area-title-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sensitive-area-title-container .sensitive-area-color-container{width:20px;height:20px;margin-right:8px;border:3px solid var(--color-sensitive-area);position:relative}.sensitive-area-title-container .sensitive-area-color-container:before{content:"";width:20px;height:20px;background-color:var(--color-sensitive-area);opacity:0.2;position:absolute}.sensitive-area-title-container .sensitive-area-title{font-size:20px;line-height:28px;padding:12px 0px;font-weight:600}.sensitive-area-description{font-size:16px;line-height:24px}.sensitive-area-description p:first-child{margin-top:0}.sensitive-area-period-container .sensitive-area-period-title,.sensitive-area-period-container .sensitive-area-practice-title,.sensitive-area-period-container .sensitive-area-contact-title,.sensitive-area-practice-container .sensitive-area-period-title,.sensitive-area-practice-container .sensitive-area-practice-title,.sensitive-area-practice-container .sensitive-area-contact-title,.sensitive-area-contact-container .sensitive-area-period-title,.sensitive-area-contact-container .sensitive-area-practice-title,.sensitive-area-contact-container .sensitive-area-contact-title{font-size:18px;line-height:24px;padding:12px 0px;font-weight:600}.sensitive-area-period-container .sensitive-area-periods,.sensitive-area-period-container .sensitive-area-practices,.sensitive-area-practice-container .sensitive-area-periods,.sensitive-area-practice-container .sensitive-area-practices,.sensitive-area-contact-container .sensitive-area-periods,.sensitive-area-contact-container .sensitive-area-practices{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var GrwSensitiveAreaDetailStyle0=grwSensitiveAreaDetailCss;var GrwSensitiveAreaDetail=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e=this;return h(Host,{key:"a3972889e38c16d91276a8457871f0ba9adf8d86"},h("div",{key:"9b57ab4885d4e797dba0f956b75d9239a8535b5e",part:"sensitive-area-title-container",class:"sensitive-area-title-container"},h("div",{key:"3079e2e02da5ccba0018ac5fe7aa39aa52c2d4bb",part:"sensitive-area-color-container",class:"sensitive-area-color-container"}),h("div",{key:"463a15a54a517e5dff248be5de6de292b464b6c9",part:"sensitive-area-title",class:"sensitive-area-title"},this.sensitiveArea.name)),h("div",{key:"eceea2137c7003d3587b4d931e92f66a669f4aae",part:"sensitive-area-description",class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&h("div",{key:"d069d7ef25f9ccc04b7038c413cbb0a4239bc9e3",part:"sensitive-area-practice-container",class:"sensitive-area-practice-container"},h("div",{key:"9fd3fa3754d5fe6645fcf9523f9f21e055fa1e36",part:"sensitive-area-practice-title",class:"sensitive-area-practice-title"},"Domaines d'activités concernés"),h("div",{key:"bfb9a1eadcb9d654e46c40ef3924fe4fc8a21802",part:"sensitive-area-practices",class:"sensitive-area-practices"},this.sensitiveArea.practices.map((function(t,a){var r=state.practices.find((function(e){return e.id===t}));if(r){return h("div",{part:"sensitive-area-practice",class:"sensitive-area-practice",innerHTML:"".concat(r.name.toUpperCase()).concat(a+1!==e.sensitiveArea.practices.length?" -&nbsp;":"")})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&h("div",{key:"6ee3ff77253a54efeb4629e283c5106367a2e1a9",part:"sensitive-area-period-container",class:"sensitive-area-period-container"},h("div",{key:"8e5404e79de0611da9d3c8d7b19041ce8162fc5e",part:"sensitive-area-period-title",class:"sensitive-area-period-title"},"Périodes de sensibilité"),h("div",{key:"6f300e600a660aac8a29ee1a3990704474d50ce6",part:"sensitive-area-periods",class:"sensitive-area-periods"},this.sensitiveArea.period.map((function(t,a){if(t){return h("div",{part:"sensitive-area-period",class:"sensitive-area-period",innerHTML:"".concat(new Date(0,a+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()).concat(e.sensitiveArea.period.slice(a+1).find((function(e){return e}))?" -&nbsp;":"")})}})))),h("div",{key:"9de4d86810467c824d27897048866e65c9112147",part:"sensitive-area-contact-container",class:"sensitive-area-contact-container"},h("div",{key:"ea60cab9430e15ae3e6203e00e90b910100ac7d1",part:"sensitive-area-contact-title",class:"sensitive-area-contact-title"},"Contact"),h("div",{key:"18ce98746759ac791eb4f66e43bf198d5469ecda",part:"sensitive-area-contact-value",class:"sensitive-area-contact-value",innerHTML:this.sensitiveArea.contact})))};return e}();GrwSensitiveAreaDetail.style=GrwSensitiveAreaDetailStyle0;var OfflinePinIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M320-280h320v-80H320v80Zm118-120 226-226-57-55-169 169-86-86-56 56 142 142Zm42 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var slugify$1={exports:{}};(function(e,t){(function(t,a,r){{e.exports=r();e.exports["default"]=r()}})("slugify",commonjsGlobal,(function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}');var t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function a(a,r){if(typeof a!=="string"){throw new Error("slugify: string argument expected")}r=typeof r==="string"?{replacement:r}:r||{};var i=t[r.locale]||{};var n=r.replacement===undefined?"-":r.replacement;var s=r.trim===undefined?true:r.trim;var c=a.normalize().split("").reduce((function(t,a){var s=i[a];if(s===undefined)s=e[a];if(s===undefined)s=a;if(s===n)s=" ";return t+s.replace(r.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"");if(r.strict){c=c.replace(/[^A-Za-z0-9\s]/g,"")}if(s){c=c.trim()}c=c.replace(/\s+/g,n);if(r.lower){c=c.toLowerCase()}return c}a.extend=function(t){Object.assign(e,t)};return a}))})(slugify$1);var slugify=slugify$1.exports;var grwTrekCardCss=".trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .trek-img,.trek-card-large-view-container .trek-img{-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.trek-card-container .default-trek-img,.trek-card-large-view-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-card-container .trek-sub-container,.trek-card-large-view-container .trek-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .trek-sub-container .trek-name,.trek-card-large-view-container .trek-sub-container .trek-name{color:var(--color-primary-app);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .trek-sub-container .trek-departure,.trek-card-large-view-container .trek-sub-container .trek-departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .trek-sub-container .trek-themes-container,.trek-card-large-view-container .trek-sub-container .trek-themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-card-container .trek-sub-container .trek-themes-container .trek-theme,.trek-card-large-view-container .trek-sub-container .trek-themes-container .trek-theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-card-container .trek-sub-container .trek-icons-labels-container,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container{padding:0px 0px 8px 0px;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:calc(50% - 16px)}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-icon,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-icon{display:-ms-flexbox;display:flex;font-size:24px;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .network:not(:last-child),.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .network:not(:last-child){margin-right:16px}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-label,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-label{text-overflow:ellipsis;overflow:hidden}.trek-card-container .trek-sub-container .trek-icons-labels-container .practice img,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .practice img{background-color:var(--color-primary-app)}.selected-trek-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-card-container{width:100%;max-width:350px}.trek-card-container .trek-img-container{height:200px}.trek-card-container .trek-img-container .trek-img{width:100%;height:100%}.trek-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .trek-img-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.trek-card-large-view-container .trek-img-container .trek-img{width:250px;height:inherit;border-bottom-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 0px)}.trek-step-card{width:auto}.trek-card-container .trek-sub-container .trek-departure{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:56px}.trek-card-container .trek-sub-container .trek-name{height:56px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.is-current-step{background-color:var(--color-surface-variant)}.practice .trek-icon{border-radius:100%;padding:2px;max-height:20px;max-width:20px}.trek-img-container{position:relative}.trek-img-container .offline-indicator{display:-ms-flexbox;display:flex;background:#ffffff;border-radius:24px;height:24px;width:24px;top:16px;right:16px;position:absolute;color:var(--color-on-surface)}";var GrwTrekCardStyle0=grwTrekCardCss;var GrwTrekCard=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.cardTrekMouseOver=createEvent(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=createEvent(this,"cardTrekMouseLeave",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.isAvailableOffline=false;this.showDefaultImage=false;this.grwApp=false}e.prototype.onTrekDownloadedSuccessConfirm=function(){this.isAvailableOffline=true};e.prototype.onTrekDeleteSuccessConfirm=function(){this.isAvailableOffline=false};e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.difficulty=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.departureCity=state.cities.find((function(t){return t.id===e.currentTrek.departure_city}));this.handleOffline(this.currentTrek.id)}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.difficulty=e.currentTrek.difficulty&&state.difficulties?state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty})):null;e.route=e.currentTrek.route&&state.routes?state.routes.find((function(t){return t.id===e.currentTrek.route})):null;e.practice=e.currentTrek.practice&&state.practices?state.practices.find((function(t){return t.id===e.currentTrek.practice})):null;e.themes=e.currentTrek.themes&&state.themes?state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)})):null;e.departureCity=e.currentTrek.departure_city&&state.cities?state.cities.find((function(t){return t.id===e.currentTrek.departure_city})):null;e.handleOffline(e.currentTrek.id)}}))};e.prototype.handleOffline=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(a){switch(a.label){case 0:t=this;return[4,trekIsAvailableOffline(e)];case 1:t.isAvailableOffline=a.sent();return[2]}}))}))};e.prototype.handleMouseOver=function(){this.cardTrekMouseOver.emit(this.currentTrek.id)};e.prototype.handleMouseLeave=function(){this.cardTrekMouseLeave.emit()};e.prototype.render=function(){var e=this;var t,a,r,i,n;var s=getAssetPath("".concat("","assets/default-image.svg"));return h(Host,{key:"5103411a0280359337b91033e979b5a1eafb4e43",style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto","--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-surface-container-low":this.colorSurfaceContainerLow}},this.currentTrek&&h("div",{key:"a98b416a21e2cd778827d8d00688210e3bf479a4",part:"trek-card",class:this.isStep?"trek-card trek-card-container trek-step-card".concat(state.selectedStepId===this.currentTrek.id?" selected-trek-card":""," ").concat(state.currentTrek&&state.currentTrek.id===this.currentTrek.id?"is-current-step":""):this.isLargeView?"trek-card trek-card-large-view-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""):"trek-card trek-card-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""),onClick:function(){if(e.grwApp){e.trekCardPress.emit(e.currentTrek.id)}else{window.location.href=slugify("".concat(e.currentTrek.name))}}},h("div",{key:"2a434bbd6ff1f7cdc34b23bbf2c04d78a820b44f",part:"trek-img-container",class:"trek-img-container"},this.isAvailableOffline&&h("div",{key:"2d18609d9e00f576f2653cd96e483d195bd6fcd4",part:"offline-indicator",class:"offline-indicator"},h("span",{key:"fc400aea8e0b1203e918e55aabc6c7521d39a928",part:"icon",class:"icon",innerHTML:OfflinePinIcon})),this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0?h("img",{part:"trek-img",class:"trek-img",src:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail!==""?this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail:this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].url),alt:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].legend),loading:"lazy",onerror:function(e){e.target.onerror=null;e.target.className="trek-img default-trek-img";e.target.src=s}}):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:s,alt:"",loading:"lazy"})),h("div",{key:"14093d115f16688d324db919175a258ef94abc8d",part:"trek-sub-container",class:"trek-sub-container"},this.departureCity&&h("div",{key:"cb1ad758feebb67ccdb268607c17227cee00258b",part:"trek-departure",class:"trek-departure"},this.departureCity.name),h("div",{key:"168648f74cd0c10b02ff90b357b325a3c1072386",part:"trek-name",class:"trek-name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&h("div",{key:"a0b18ea1b28b3337a2c42c2db468b4f5782ba0bc",part:"trek-themes-container",class:"trek-themes-container"},this.themes.map((function(e){return h("div",{part:"trek-theme",class:"trek-theme"},e.label)}))),h("div",{key:"c08553573fa26ca90dd775869e78463511d0cf63",part:"trek-icons-labels-container",class:"trek-icons-labels-container"},this.difficulty&&h("div",{key:"6672961ae0a498fe6f9286a010926c576f71fd8a",part:"trek-icon-label",class:"trek-icon-label difficulty"},this.difficulty.pictogram&&h("img",{key:"7070ce65e3f9c53c0ff4fd22a1b67db41725a723",part:"trek-icon",class:"trek-icon",src:this.difficulty.pictogram,alt:""}),h("span",{key:"7ed3f0c3c09301fc3d829ae08969b505d61f17e1",part:"trek-label",class:"trek-label"},this.difficulty.label)),h("div",{key:"020ec2db5ef5153b36cfbafe3117b17e100c160e",part:"trek-icon-label",class:"trek-icon-label duration"},h("span",{key:"3e6fa7695e5b9a7a5416b26bcadd5a131564c70b",part:"trek-icon",class:"trek-icon",innerHTML:TimelapseIcon}),h("span",{key:"28c19f1bc35c1b0238ec9490de1a3e4e95396f6a",part:"trek-label",class:"trek-label"},formatDuration(this.currentTrek.duration))),h("div",{key:"df3e39d8f793825be9aca2ba9e0865e356b065ff",part:"trek-icon-label",class:"trek-icon-label length"},h("span",{key:"406fd2b4619c1dfe98f1c2d81aeae92764b4d0f4",part:"trek-icon",class:"trek-icon",innerHTML:OpenInFullIcon}),h("span",{key:"c8bba67f4e01e2cebf46df5ef43746cbe11a671e",part:"trek-label",class:"trek-label"},formatLength(this.currentTrek.length_2d))),h("div",{key:"8c1634c1bb73588e8e1c1ab2db4d8e3932947326",part:"trek-icon-label",class:"trek-icon-label ascent"},h("span",{key:"546823a7b1210c20bcf9228b51a8e16f36acf9f7",part:"trek-icon",class:"trek-icon",innerHTML:MovingIcon}),h("span",{key:"269c9ba2dbc9ab58dae2178863125b91c9516eea",part:"trek-label",class:"trek-label"},formatAscent(this.currentTrek.ascent))),!this.isStep&&h(Fragment,{key:"d821040ef877fbbbfa125892dade9fc997e69441"},h("div",{key:"5279ae1086e34d35d7e41b4ae8460f76b0328b94",part:"trek-icon-label",class:"trek-icon-label route"},((a=this.route)===null||a===void 0?void 0:a.pictogram)&&h("img",{key:"4913027e807f6d43bd32f708a3d21542ae5b8ebc",part:"trek-icon",class:"trek-icon",src:this.route.pictogram,alt:""}),h("span",{key:"ae66c692aa1da2181545db0e746700fd8e73fc1b",part:"trek-label",class:"trek-label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{key:"62b24580d88c5850ed306869d4bcd8086c7692b3",part:"trek-icon-label",class:"trek-icon-label practice"},((i=this.practice)===null||i===void 0?void 0:i.pictogram)&&h("img",{key:"e64fce8ade0f02e51b6dcbf207baf9f9af61acd8",part:"trek-icon",class:"trek-icon",src:this.practice.pictogram,alt:""}),h("span",{key:"ad742e9cc5cdaefa258223a6ee2864a9cefb47ac",part:"trek-label",class:"trek-label"},(n=this.practice)===null||n===void 0?void 0:n.name)))))))};return e}();GrwTrekCard.style=GrwTrekCardStyle0;export{GrwSensitiveAreaDetail as grw_sensitive_area_detail,GrwTrekCard as grw_trek_card};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function s(e){try{o(r.next(e))}catch(e){n(e)}}function c(e){try{o(r["throw"](e))}catch(e){n(e)}}function o(e){e.done?a(e.value):i(e.value).then(s,c)}o((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(e){return function(t){return o([e,t])}}function o(c){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,c[0]&&(a=0)),a)try{if(r=1,i&&(n=c[0]&2?i["return"]:c[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,c[1])).done)return n;if(i=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:a.label++;return{value:c[1],done:false};case 5:a.label++;i=c[1];c=[0];continue;case 7:c=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){a.label=c[1];break}if(c[0]===6&&a.label<n[1]){a.label=n[1];n=c;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(c);break}if(n[2])a.ops.pop();a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e];i=0}finally{r=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,c as createEvent,e as getAssetPath,F as Fragment}from"./index-83d78b30.js";import{s as state,o as onChange}from"./store-aa921ea2.js";import{t as trekIsAvailableOffline}from"./treks.service-0b98455e.js";import{m as formatDuration,n as formatLength,p as formatAscent}from"./utils-b1ca48b3.js";import{T as TimelapseIcon,O as OpenInFullIcon,M as MovingIcon}from"./moving-c644d077.js";import{c as commonjsGlobal}from"./grw-db.service-a2b2fc8e.js";var grwSensitiveAreaDetailCss=':host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.sensitive-area-title-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sensitive-area-title-container .sensitive-area-color-container{width:20px;height:20px;margin-right:8px;border:3px solid var(--color-sensitive-area);position:relative}.sensitive-area-title-container .sensitive-area-color-container:before{content:"";width:20px;height:20px;background-color:var(--color-sensitive-area);opacity:0.2;position:absolute}.sensitive-area-title-container .sensitive-area-title{font-size:20px;line-height:28px;padding:12px 0px;font-weight:600}.sensitive-area-description{font-size:16px;line-height:24px}.sensitive-area-description p:first-child{margin-top:0}.sensitive-area-period-container .sensitive-area-period-title,.sensitive-area-period-container .sensitive-area-practice-title,.sensitive-area-period-container .sensitive-area-contact-title,.sensitive-area-practice-container .sensitive-area-period-title,.sensitive-area-practice-container .sensitive-area-practice-title,.sensitive-area-practice-container .sensitive-area-contact-title,.sensitive-area-contact-container .sensitive-area-period-title,.sensitive-area-contact-container .sensitive-area-practice-title,.sensitive-area-contact-container .sensitive-area-contact-title{font-size:18px;line-height:24px;padding:12px 0px;font-weight:600}.sensitive-area-period-container .sensitive-area-periods,.sensitive-area-period-container .sensitive-area-practices,.sensitive-area-practice-container .sensitive-area-periods,.sensitive-area-practice-container .sensitive-area-practices,.sensitive-area-contact-container .sensitive-area-periods,.sensitive-area-contact-container .sensitive-area-practices{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var GrwSensitiveAreaDetailStyle0=grwSensitiveAreaDetailCss;var GrwSensitiveAreaDetail=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e=this;return h(Host,{key:"a3972889e38c16d91276a8457871f0ba9adf8d86"},h("div",{key:"9b57ab4885d4e797dba0f956b75d9239a8535b5e",part:"sensitive-area-title-container",class:"sensitive-area-title-container"},h("div",{key:"3079e2e02da5ccba0018ac5fe7aa39aa52c2d4bb",part:"sensitive-area-color-container",class:"sensitive-area-color-container"}),h("div",{key:"463a15a54a517e5dff248be5de6de292b464b6c9",part:"sensitive-area-title",class:"sensitive-area-title"},this.sensitiveArea.name)),h("div",{key:"eceea2137c7003d3587b4d931e92f66a669f4aae",part:"sensitive-area-description",class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&h("div",{key:"d069d7ef25f9ccc04b7038c413cbb0a4239bc9e3",part:"sensitive-area-practice-container",class:"sensitive-area-practice-container"},h("div",{key:"9fd3fa3754d5fe6645fcf9523f9f21e055fa1e36",part:"sensitive-area-practice-title",class:"sensitive-area-practice-title"},"Domaines d'activités concernés"),h("div",{key:"bfb9a1eadcb9d654e46c40ef3924fe4fc8a21802",part:"sensitive-area-practices",class:"sensitive-area-practices"},this.sensitiveArea.practices.map((function(t,a){var r=state.practices.find((function(e){return e.id===t}));if(r){return h("div",{part:"sensitive-area-practice",class:"sensitive-area-practice",innerHTML:"".concat(r.name.toUpperCase()).concat(a+1!==e.sensitiveArea.practices.length?" -&nbsp;":"")})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&h("div",{key:"6ee3ff77253a54efeb4629e283c5106367a2e1a9",part:"sensitive-area-period-container",class:"sensitive-area-period-container"},h("div",{key:"8e5404e79de0611da9d3c8d7b19041ce8162fc5e",part:"sensitive-area-period-title",class:"sensitive-area-period-title"},"Périodes de sensibilité"),h("div",{key:"6f300e600a660aac8a29ee1a3990704474d50ce6",part:"sensitive-area-periods",class:"sensitive-area-periods"},this.sensitiveArea.period.map((function(t,a){if(t){return h("div",{part:"sensitive-area-period",class:"sensitive-area-period",innerHTML:"".concat(new Date(0,a+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()).concat(e.sensitiveArea.period.slice(a+1).find((function(e){return e}))?" -&nbsp;":"")})}})))),h("div",{key:"9de4d86810467c824d27897048866e65c9112147",part:"sensitive-area-contact-container",class:"sensitive-area-contact-container"},h("div",{key:"ea60cab9430e15ae3e6203e00e90b910100ac7d1",part:"sensitive-area-contact-title",class:"sensitive-area-contact-title"},"Contact"),h("div",{key:"18ce98746759ac791eb4f66e43bf198d5469ecda",part:"sensitive-area-contact-value",class:"sensitive-area-contact-value",innerHTML:this.sensitiveArea.contact})))};return e}();GrwSensitiveAreaDetail.style=GrwSensitiveAreaDetailStyle0;var OfflinePinIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M320-280h320v-80H320v80Zm118-120 226-226-57-55-169 169-86-86-56 56 142 142Zm42 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var slugify$1={exports:{}};(function(e,t){(function(t,a,r){{e.exports=r();e.exports["default"]=r()}})("slugify",commonjsGlobal,(function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}');var t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function a(a,r){if(typeof a!=="string"){throw new Error("slugify: string argument expected")}r=typeof r==="string"?{replacement:r}:r||{};var i=t[r.locale]||{};var n=r.replacement===undefined?"-":r.replacement;var s=r.trim===undefined?true:r.trim;var c=a.normalize().split("").reduce((function(t,a){var s=i[a];if(s===undefined)s=e[a];if(s===undefined)s=a;if(s===n)s=" ";return t+s.replace(r.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"");if(r.strict){c=c.replace(/[^A-Za-z0-9\s]/g,"")}if(s){c=c.trim()}c=c.replace(/\s+/g,n);if(r.lower){c=c.toLowerCase()}return c}a.extend=function(t){Object.assign(e,t)};return a}))})(slugify$1);var slugify=slugify$1.exports;var grwTrekCardCss=".trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .trek-img,.trek-card-large-view-container .trek-img{-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.trek-card-container .default-trek-img,.trek-card-large-view-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-card-container .trek-sub-container,.trek-card-large-view-container .trek-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .trek-sub-container .trek-name,.trek-card-large-view-container .trek-sub-container .trek-name{color:var(--color-primary-app);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .trek-sub-container .trek-departure,.trek-card-large-view-container .trek-sub-container .trek-departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .trek-sub-container .trek-themes-container,.trek-card-large-view-container .trek-sub-container .trek-themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-card-container .trek-sub-container .trek-themes-container .trek-theme,.trek-card-large-view-container .trek-sub-container .trek-themes-container .trek-theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-card-container .trek-sub-container .trek-icons-labels-container,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container{padding:0px 0px 8px 0px;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:calc(50% - 16px)}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-icon,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-icon{display:-ms-flexbox;display:flex;font-size:24px;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .network:not(:last-child),.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .network:not(:last-child){margin-right:16px}.trek-card-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-label,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .trek-icon-label .trek-label{text-overflow:ellipsis;overflow:hidden}.trek-card-container .trek-sub-container .trek-icons-labels-container .practice img,.trek-card-large-view-container .trek-sub-container .trek-icons-labels-container .practice img{background-color:var(--color-primary-app)}.selected-trek-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-card-container{width:100%;max-width:350px}.trek-card-container .trek-img-container{height:200px}.trek-card-container .trek-img-container .trek-img{width:100%;height:100%}.trek-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .trek-img-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.trek-card-large-view-container .trek-img-container .trek-img{width:250px;height:inherit;border-bottom-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 0px)}.trek-step-card{width:auto}.trek-card-container .trek-sub-container .trek-departure{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:56px}.trek-card-container .trek-sub-container .trek-name{height:56px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.is-current-step{background-color:var(--color-surface-variant)}.practice .trek-icon{border-radius:100%;padding:2px;max-height:20px;max-width:20px}.trek-img-container{position:relative}.trek-img-container .offline-indicator{display:-ms-flexbox;display:flex;background:#ffffff;border-radius:24px;height:24px;width:24px;top:16px;right:16px;position:absolute;color:var(--color-on-surface)}";var GrwTrekCardStyle0=grwTrekCardCss;var GrwTrekCard=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.cardTrekMouseOver=createEvent(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=createEvent(this,"cardTrekMouseLeave",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.isAvailableOffline=false;this.showDefaultImage=false;this.grwApp=false}e.prototype.onTrekDownloadedSuccessConfirm=function(){this.isAvailableOffline=true};e.prototype.onTrekDeleteSuccessConfirm=function(){this.isAvailableOffline=false};e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.difficulty=state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.departureCity=state.cities.find((function(t){return t.id===e.currentTrek.departure_city}));this.handleOffline(this.currentTrek.id)}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.difficulty=e.currentTrek.difficulty&&state.difficulties?state.difficulties.find((function(t){return t.id===e.currentTrek.difficulty})):null;e.route=e.currentTrek.route&&state.routes?state.routes.find((function(t){return t.id===e.currentTrek.route})):null;e.practice=e.currentTrek.practice&&state.practices?state.practices.find((function(t){return t.id===e.currentTrek.practice})):null;e.themes=e.currentTrek.themes&&state.themes?state.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)})):null;e.departureCity=e.currentTrek.departure_city&&state.cities?state.cities.find((function(t){return t.id===e.currentTrek.departure_city})):null;e.handleOffline(e.currentTrek.id)}}))};e.prototype.handleOffline=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(a){switch(a.label){case 0:t=this;return[4,trekIsAvailableOffline(e)];case 1:t.isAvailableOffline=a.sent();return[2]}}))}))};e.prototype.handleMouseOver=function(){this.cardTrekMouseOver.emit(this.currentTrek.id)};e.prototype.handleMouseLeave=function(){this.cardTrekMouseLeave.emit()};e.prototype.render=function(){var e=this;var t,a,r,i,n;var s=getAssetPath("".concat("","assets/default-image.svg"));return h(Host,{key:"5103411a0280359337b91033e979b5a1eafb4e43",style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto","--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-surface-container-low":this.colorSurfaceContainerLow}},this.currentTrek&&h("div",{key:"a98b416a21e2cd778827d8d00688210e3bf479a4",part:"trek-card",class:this.isStep?"trek-card trek-card-container trek-step-card".concat(state.selectedStepId===this.currentTrek.id?" selected-trek-card":""," ").concat(state.currentTrek&&state.currentTrek.id===this.currentTrek.id?"is-current-step":""):this.isLargeView?"trek-card trek-card-large-view-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""):"trek-card trek-card-container".concat(state.selectedTrekId===this.currentTrek.id?" selected-trek-card":""),onClick:function(){if(e.grwApp){e.trekCardPress.emit(e.currentTrek.id)}else{window.location.href=slugify("".concat(e.currentTrek.name))}}},h("div",{key:"2a434bbd6ff1f7cdc34b23bbf2c04d78a820b44f",part:"trek-img-container",class:"trek-img-container"},this.isAvailableOffline&&h("div",{key:"2d18609d9e00f576f2653cd96e483d195bd6fcd4",part:"offline-indicator",class:"offline-indicator"},h("span",{key:"fc400aea8e0b1203e918e55aabc6c7521d39a928",part:"icon",class:"icon",innerHTML:OfflinePinIcon})),this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0?h("img",{part:"trek-img",class:"trek-img",src:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail!==""?this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail:this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].url),alt:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].legend),loading:"lazy",onerror:function(e){e.target.onerror=null;e.target.className="trek-img default-trek-img";e.target.src=s}}):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:s,alt:"",loading:"lazy"})),h("div",{key:"14093d115f16688d324db919175a258ef94abc8d",part:"trek-sub-container",class:"trek-sub-container"},this.departureCity&&h("div",{key:"cb1ad758feebb67ccdb268607c17227cee00258b",part:"trek-departure",class:"trek-departure"},this.departureCity.name),h("div",{key:"168648f74cd0c10b02ff90b357b325a3c1072386",part:"trek-name",class:"trek-name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&h("div",{key:"a0b18ea1b28b3337a2c42c2db468b4f5782ba0bc",part:"trek-themes-container",class:"trek-themes-container"},this.themes.map((function(e){return h("div",{part:"trek-theme",class:"trek-theme"},e.label)}))),h("div",{key:"c08553573fa26ca90dd775869e78463511d0cf63",part:"trek-icons-labels-container",class:"trek-icons-labels-container"},this.difficulty&&h("div",{key:"6672961ae0a498fe6f9286a010926c576f71fd8a",part:"trek-icon-label",class:"trek-icon-label difficulty"},this.difficulty.pictogram&&h("img",{key:"7070ce65e3f9c53c0ff4fd22a1b67db41725a723",part:"trek-icon",class:"trek-icon",src:this.difficulty.pictogram,alt:""}),h("span",{key:"7ed3f0c3c09301fc3d829ae08969b505d61f17e1",part:"trek-label",class:"trek-label"},this.difficulty.label)),h("div",{key:"020ec2db5ef5153b36cfbafe3117b17e100c160e",part:"trek-icon-label",class:"trek-icon-label duration"},h("span",{key:"3e6fa7695e5b9a7a5416b26bcadd5a131564c70b",part:"trek-icon",class:"trek-icon",innerHTML:TimelapseIcon}),h("span",{key:"28c19f1bc35c1b0238ec9490de1a3e4e95396f6a",part:"trek-label",class:"trek-label"},formatDuration(this.currentTrek.duration))),h("div",{key:"df3e39d8f793825be9aca2ba9e0865e356b065ff",part:"trek-icon-label",class:"trek-icon-label length"},h("span",{key:"406fd2b4619c1dfe98f1c2d81aeae92764b4d0f4",part:"trek-icon",class:"trek-icon",innerHTML:OpenInFullIcon}),h("span",{key:"c8bba67f4e01e2cebf46df5ef43746cbe11a671e",part:"trek-label",class:"trek-label"},formatLength(this.currentTrek.length_2d))),h("div",{key:"8c1634c1bb73588e8e1c1ab2db4d8e3932947326",part:"trek-icon-label",class:"trek-icon-label ascent"},h("span",{key:"546823a7b1210c20bcf9228b51a8e16f36acf9f7",part:"trek-icon",class:"trek-icon",innerHTML:MovingIcon}),h("span",{key:"269c9ba2dbc9ab58dae2178863125b91c9516eea",part:"trek-label",class:"trek-label"},formatAscent(this.currentTrek.ascent))),!this.isStep&&h(Fragment,{key:"d821040ef877fbbbfa125892dade9fc997e69441"},h("div",{key:"5279ae1086e34d35d7e41b4ae8460f76b0328b94",part:"trek-icon-label",class:"trek-icon-label route"},((a=this.route)===null||a===void 0?void 0:a.pictogram)&&h("img",{key:"4913027e807f6d43bd32f708a3d21542ae5b8ebc",part:"trek-icon",class:"trek-icon",src:this.route.pictogram,alt:""}),h("span",{key:"ae66c692aa1da2181545db0e746700fd8e73fc1b",part:"trek-label",class:"trek-label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{key:"62b24580d88c5850ed306869d4bcd8086c7692b3",part:"trek-icon-label",class:"trek-icon-label practice"},((i=this.practice)===null||i===void 0?void 0:i.pictogram)&&h("img",{key:"e64fce8ade0f02e51b6dcbf207baf9f9af61acd8",part:"trek-icon",class:"trek-icon",src:this.practice.pictogram,alt:""}),h("span",{key:"ad742e9cc5cdaefa258223a6ee2864a9cefb47ac",part:"trek-label",class:"trek-label"},(n=this.practice)===null||n===void 0?void 0:n.name)))))))};return e}();GrwTrekCard.style=GrwTrekCardStyle0;export{GrwSensitiveAreaDetail as grw_sensitive_area_detail,GrwTrekCard as grw_trek_card};
2
2
  //# sourceMappingURL=grw-sensitive-area-detail_2.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-83d78b30.js";import{t as translate}from"./i18n-d4785001.js";import{s as state}from"./store-882ab9be.js";var grwToggleSlotVisibilityCss="grw-toggle-slot-visibility{display:block;position:relative;width:100%;overflow:hidden;max-width:100dvw}.grw-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:fixed;bottom:24px;z-index:4001;pointer-events:none}";var GrwToggleSlotVisibilityStyle0=grwToggleSlotVisibilityCss;var GrwToggleSlotVisibility=function(){function t(t){registerInstance(this,t);this.isLargeView=undefined;this.showStartSlot=true;this.showEndSlot=false;this.largeViewSize=1024;this.fontFamily="Roboto";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.slotEndHeight="100vh"}t.prototype.onWindowResize=function(){this.handleView()};t.prototype.handleView=function(){var t=this;if(typeof this.isLargeView===undefined||this.isLargeView!==this.toggleSlotElement.getBoundingClientRect().width>=this.largeViewSize){this.isLargeView=this.toggleSlotElement.getBoundingClientRect().width>=this.largeViewSize;this.showStartSlot=true;this.showEndSlot=this.isLargeView;if(!this.isLargeView){var i=this.getMapVisibilityIconButton();var e=document.createElement("div");e.className="grw-map-visibility-button-container ".concat(i==="map"?"extended-fab-map":"extended-fab-detail");var n=document.createElement("grw-extended-fab");n.setAttribute("exportparts","map-visibility-button,map-visibility-button-icon,map-visibility-button-label");n.setAttribute("font-family",this.fontFamily);n.action=function(){return t.toggleShowSlot()};n.icon=function(){return i};n.name=function(){return t.getMapVisibilityLabelButton()};n.setAttribute("fab-background-color",this.fabBackgroundColor);n.setAttribute("fab-color",this.fabColor);n.setAttribute("display",this.isLargeView?"none":"flex");e.append(n);document.body.append(e);var s=document.querySelector("#grw-slot-end-container");var o=s.cloneNode(true);o.id="grw-slot-end-container-clone";o.style.visibility="hidden";o.style.position="fixed";o.style.top="0px";o.style.left="0px";o.style["z-index"]="0";o.style.height="100vh";o.style["background-color"]="#ffffff";document.body.append(o)}else{var e=document.body.getElementsByClassName("grw-map-visibility-button-container")[0];if(e){e.remove()}var o=document.body.querySelector("#grw-slot-end-container-clone");if(o){o.remove()}}}};t.prototype.toggleShowSlot=function(){var t=this;this.showStartSlot=!this.showStartSlot;this.showEndSlot=!this.showStartSlot;var i=document.querySelector("#grw-slot-end-container-clone");if(i&&this.showEndSlot){i.style.visibility="visible";document.body.style.overflow="hidden";i.style["z-index"]="4000"}else{i.style.visibility="hidden";document.body.style.overflow="visible";i.style["z-index"]="0"}var e=document.body.getElementsByClassName("grw-map-visibility-button-container")[0];var n=document.getElementsByTagName("grw-extended-fab")[0];var s=this.getMapVisibilityIconButton();e.className="grw-map-visibility-button-container ".concat(s==="map"?"extended-fab-map":"extended-fab-detail");n.icon=function(){return s};n.name=function(){return t.getMapVisibilityLabelButton()}};t.prototype.componentDidRender=function(){this.handleView()};t.prototype.getMapVisibilityIconButton=function(){var t;t=this.showStartSlot?"map":"summarize";return t};t.prototype.getMapVisibilityLabelButton=function(){var t;t=this.showStartSlot?translate[state.language].showMap:translate[state.language].showDetails;return t};t.prototype.render=function(){return h(Host,{key:"25f18697285a2e7783213b50a9948bbc2df838e4"},h("div",{key:"a56d8c400aee0c4c8f9449f363d9a98eeba5b113",class:"grw-toggle-slot-visibility-container"},h("div",{key:"b8f463ade00e7bcae66cb54a7a1eee506e796874",class:"grw-slot-start-container",style:{height:this.showStartSlot?"100%":"100vh",visibility:this.showStartSlot?"visible":"hidden",zIndex:this.showStartSlot?"1":"0"}},h("slot",{key:"32f3fe6c03c86997963b3e030a12ccf55a15db1b",name:"start"}," ")),h("div",{key:"132fcd29135670dd0018ed7d209fdbd97a228038",id:"grw-slot-end-container",style:{width:"100%",height:this.slotEndHeight,visibility:!this.isLargeView?"hidden":"visible",position:!this.isLargeView?"absolute":"relative",top:!this.isLargeView?"0px":"none",left:!this.isLargeView?"0px":"none",zIndex:!this.isLargeView?"0":"1"}},h("slot",{key:"9a5dabc1fd1dd228a181e2c5dac00af90339359c",name:"end"}," "))))};Object.defineProperty(t.prototype,"toggleSlotElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwToggleSlotVisibility.style=GrwToggleSlotVisibilityStyle0;export{GrwToggleSlotVisibility as grw_toggle_slot_visibility};
1
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-83d78b30.js";import{t as translate}from"./i18n-d4785001.js";import{s as state}from"./store-aa921ea2.js";var grwToggleSlotVisibilityCss="grw-toggle-slot-visibility{display:block;position:relative;width:100%;overflow:hidden;max-width:100dvw}.grw-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:fixed;bottom:24px;z-index:4001;pointer-events:none}";var GrwToggleSlotVisibilityStyle0=grwToggleSlotVisibilityCss;var GrwToggleSlotVisibility=function(){function t(t){registerInstance(this,t);this.isLargeView=undefined;this.showStartSlot=true;this.showEndSlot=false;this.largeViewSize=1024;this.fontFamily="Roboto";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.slotEndHeight="100vh"}t.prototype.onWindowResize=function(){this.handleView()};t.prototype.handleView=function(){var t=this;if(typeof this.isLargeView===undefined||this.isLargeView!==this.toggleSlotElement.getBoundingClientRect().width>=this.largeViewSize){this.isLargeView=this.toggleSlotElement.getBoundingClientRect().width>=this.largeViewSize;this.showStartSlot=true;this.showEndSlot=this.isLargeView;if(!this.isLargeView){var i=this.getMapVisibilityIconButton();var e=document.createElement("div");e.className="grw-map-visibility-button-container ".concat(i==="map"?"extended-fab-map":"extended-fab-detail");var n=document.createElement("grw-extended-fab");n.setAttribute("exportparts","map-visibility-button,map-visibility-button-icon,map-visibility-button-label");n.setAttribute("font-family",this.fontFamily);n.action=function(){return t.toggleShowSlot()};n.icon=function(){return i};n.name=function(){return t.getMapVisibilityLabelButton()};n.setAttribute("fab-background-color",this.fabBackgroundColor);n.setAttribute("fab-color",this.fabColor);n.setAttribute("display",this.isLargeView?"none":"flex");e.append(n);document.body.append(e);var s=document.querySelector("#grw-slot-end-container");var o=s.cloneNode(true);o.id="grw-slot-end-container-clone";o.style.visibility="hidden";o.style.position="fixed";o.style.top="0px";o.style.left="0px";o.style["z-index"]="0";o.style.height="100vh";o.style["background-color"]="#ffffff";document.body.append(o)}else{var e=document.body.getElementsByClassName("grw-map-visibility-button-container")[0];if(e){e.remove()}var o=document.body.querySelector("#grw-slot-end-container-clone");if(o){o.remove()}}}};t.prototype.toggleShowSlot=function(){var t=this;this.showStartSlot=!this.showStartSlot;this.showEndSlot=!this.showStartSlot;var i=document.querySelector("#grw-slot-end-container-clone");if(i&&this.showEndSlot){i.style.visibility="visible";document.body.style.overflow="hidden";i.style["z-index"]="4000"}else{i.style.visibility="hidden";document.body.style.overflow="visible";i.style["z-index"]="0"}var e=document.body.getElementsByClassName("grw-map-visibility-button-container")[0];var n=document.getElementsByTagName("grw-extended-fab")[0];var s=this.getMapVisibilityIconButton();e.className="grw-map-visibility-button-container ".concat(s==="map"?"extended-fab-map":"extended-fab-detail");n.icon=function(){return s};n.name=function(){return t.getMapVisibilityLabelButton()}};t.prototype.componentDidRender=function(){this.handleView()};t.prototype.getMapVisibilityIconButton=function(){var t;t=this.showStartSlot?"map":"summarize";return t};t.prototype.getMapVisibilityLabelButton=function(){var t;t=this.showStartSlot?translate[state.language].showMap:translate[state.language].showDetails;return t};t.prototype.render=function(){return h(Host,{key:"25f18697285a2e7783213b50a9948bbc2df838e4"},h("div",{key:"a56d8c400aee0c4c8f9449f363d9a98eeba5b113",class:"grw-toggle-slot-visibility-container"},h("div",{key:"b8f463ade00e7bcae66cb54a7a1eee506e796874",class:"grw-slot-start-container",style:{height:this.showStartSlot?"100%":"100vh",visibility:this.showStartSlot?"visible":"hidden",zIndex:this.showStartSlot?"1":"0"}},h("slot",{key:"32f3fe6c03c86997963b3e030a12ccf55a15db1b",name:"start"}," ")),h("div",{key:"132fcd29135670dd0018ed7d209fdbd97a228038",id:"grw-slot-end-container",style:{width:"100%",height:this.slotEndHeight,visibility:!this.isLargeView?"hidden":"visible",position:!this.isLargeView?"absolute":"relative",top:!this.isLargeView?"0px":"none",left:!this.isLargeView?"0px":"none",zIndex:!this.isLargeView?"0":"1"}},h("slot",{key:"9a5dabc1fd1dd228a181e2c5dac00af90339359c",name:"end"}," "))))};Object.defineProperty(t.prototype,"toggleSlotElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwToggleSlotVisibility.style=GrwToggleSlotVisibilityStyle0;export{GrwToggleSlotVisibility as grw_toggle_slot_visibility};
2
2
  //# sourceMappingURL=grw-toggle-slot-visibility.entry.js.map
@@ -1,2 +1,2 @@
1
- import{d as getAllPaginatedResults}from"./utils-5feb9281.js";function getOutdoorCourses(e,t,r,s,i,o,a,n,u){var d="".concat(e,"outdoor_course/?language=").concat(t,"&published=true");r&&(d+="&in_bbox=".concat(r));s&&(d+="&cities=".concat(s));i&&(d+="&districts=".concat(i));o&&(d+="&structures=".concat(o));a&&(d+="&themes=".concat(a));n&&(d+="&portals=".concat(n));d+="&fields=id,name,geometry,accessibility,advice,attachments,children,cities,description,districts,duration,equipment,gear,height,length,max_elevation,min_elevation,parents,pdf,points_reference,provider,ratings,ratings_description,sites,structure,type";return getAllPaginatedResults(d,u)}function getOutdoorCourse(e,t,r,s){var i="".concat(e,"outdoor_course/").concat(r,"/?language=").concat(t,"&published=true");i+="&fields=id,name,geometry,accessibility,advice,attachments,children,cities,description,districts,duration,equipment,gear,height,length,max_elevation,min_elevation,parents,pdf,points_reference,provider,ratings,ratings_description,sites,structure,type";return fetch(i,s)}function getOutdoorCourseTypes(e,t,r){var s="".concat(e,"outdoor_coursetype/?language=").concat(t,"&published=true");return fetch(s,r)}function getPoisNearCourse(e,t,r,s){return getAllPaginatedResults("".concat(e,"poi/?language=").concat(t,"&courses=").concat(r,"&published=true&fields=id,name,description,attachments,type,geometry"),s)}export{getOutdoorCourseTypes as a,getPoisNearCourse as b,getOutdoorCourse as c,getOutdoorCourses as g};
2
- //# sourceMappingURL=outdoor-courses.service-d2397066.js.map
1
+ import{d as getAllPaginatedResults}from"./utils-b1ca48b3.js";function getOutdoorCourses(e,t,r,s,i,o,a,n,u){var d="".concat(e,"outdoor_course/?language=").concat(t,"&published=true");r&&(d+="&in_bbox=".concat(r));s&&(d+="&cities=".concat(s));i&&(d+="&districts=".concat(i));o&&(d+="&structures=".concat(o));a&&(d+="&themes=".concat(a));n&&(d+="&portals=".concat(n));d+="&fields=id,name,geometry,accessibility,advice,attachments,children,cities,description,districts,duration,equipment,gear,height,length,max_elevation,min_elevation,parents,pdf,points_reference,provider,ratings,ratings_description,sites,structure,type";return getAllPaginatedResults(d,u)}function getOutdoorCourse(e,t,r,s){var i="".concat(e,"outdoor_course/").concat(r,"/?language=").concat(t,"&published=true");i+="&fields=id,name,geometry,accessibility,advice,attachments,children,cities,description,districts,duration,equipment,gear,height,length,max_elevation,min_elevation,parents,pdf,points_reference,provider,ratings,ratings_description,sites,structure,type";return fetch(i,s)}function getOutdoorCourseTypes(e,t,r){var s="".concat(e,"outdoor_coursetype/?language=").concat(t,"&published=true");return fetch(s,r)}function getPoisNearCourse(e,t,r,s){return getAllPaginatedResults("".concat(e,"poi/?language=").concat(t,"&courses=").concat(r,"&published=true&fields=id,name,description,attachments,type,geometry"),s)}export{getOutdoorCourseTypes as a,getPoisNearCourse as b,getOutdoorCourse as c,getOutdoorCourses as g};
2
+ //# sourceMappingURL=outdoor-courses.service-c7fe26df.js.map
@@ -1,2 +1,2 @@
1
- import{a as getRenderingRef,f as forceUpdate}from"./index-83d78b30.js";var appendToMap=function(e,n,r){var t=e.get(n);if(!t){e.set(n,[r])}else if(!t.includes(r)){t.push(r)}};var debounce=function(e,n){var r;return function(){var t=[];for(var u=0;u<arguments.length;u++){t[u]=arguments[u]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,t)}),n)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var n=0,r=e.keys();n<r.length;n++){var t=r[n];e.set(t,e.get(t).filter(isConnected))}}),2e3);var stencilSubscription=function(){if(typeof getRenderingRef!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(n){var r=getRenderingRef();if(r){appendToMap(e,n,r)}},set:function(n){var r=e.get(n);if(r){e.set(n,r.filter(forceUpdate))}cleanupElements(e)},reset:function(){e.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(e)}}};var unwrap=function(e){return typeof e==="function"?e():e};var createObservableMap=function(e,n){if(n===void 0){n=function(e,n){return e!==n}}var r=unwrap(e);var t=new Map(Object.entries(r!==null&&r!==void 0?r:{}));var u={dispose:[],get:[],set:[],reset:[]};var o=function(){var n;t=new Map(Object.entries((n=unwrap(e))!==null&&n!==void 0?n:{}));u.reset.forEach((function(e){return e()}))};var l=function(){u.dispose.forEach((function(e){return e()}));o()};var i=function(e){u.get.forEach((function(n){return n(e)}));return t.get(e)};var s=function(e,r){var o=t.get(e);if(n(r,o,e)){t.set(e,r);u.set.forEach((function(n){return n(e,r,o)}))}};var c=typeof Proxy==="undefined"?{}:new Proxy(r,{get:function(e,n){return i(n)},ownKeys:function(e){return Array.from(t.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,n){return t.has(n)},set:function(e,n,r){s(n,r);return true}});var a=function(e,n){u[e].push(n);return function(){removeFromArray(u[e],n)}};var f=function(n,r){var t=a("set",(function(e,t){if(e===n){r(t)}}));var u=a("reset",(function(){return r(unwrap(e)[n])}));return function(){t();u()}};var d=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var r=e.reduce((function(e,n){if(n.set){e.push(a("set",n.set))}if(n.get){e.push(a("get",n.get))}if(n.reset){e.push(a("reset",n.reset))}if(n.dispose){e.push(a("dispose",n.dispose))}return e}),[]);return function(){return r.forEach((function(e){return e()}))}};var v=function(e){var n=t.get(e);u.set.forEach((function(r){return r(e,n,n)}))};return{state:c,get:i,set:s,on:a,onChange:f,use:d,dispose:l,reset:o,forceUpdate:v}};var removeFromArray=function(e,n){var r=e.indexOf(n);if(r>=0){e[r]=e[e.length-1];e.length--}};var createStore=function(e,n){var r=createObservableMap(e,n);r.use(stencilSubscription());return r};var _b=createStore({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:[],durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,ratings:null,ratingsScale:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,networkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null,selectedStepId:null,trekTouristicContents:null,touristicContents:null,currentTouristicContents:null,touristicContentsWithinBounds:null,touristicContentCategories:null,currentTouristicContent:null,trekTouristicEvents:null,touristicEvents:null,currentTouristicEvents:null,touristicEventsWithinBounds:null,touristicEventTypes:null,currentTouristicEvent:null,selectedTouristicContentId:null,selectedTouristicEventId:null,networks:null,portalsFromProviders:null,inBboxFromProviders:null,citiesFromProviders:null,districtsFromProviders:null,structuresFromProviders:null,themesFromProviders:null,routesFromProviders:null,practicesFromProviders:null,labelsFromProviders:null,offlineTreks:false,currentOutdoorSites:null,outdoorSites:null,outdoorSitesWithinBounds:null,currentOutdoorCourses:null,outdoorCourses:null,outdoorSiteTypes:null,outdoorPractices:null,selectedOutdoorSiteId:null,currentOutdoorSite:null,currentRelatedOutdoorSites:null,currentRelatedOutdoorCourses:null,selectedOutdoorCourseId:null,outdoorCourseTypes:null,currentOutdoorCourse:null,outdoorRatings:null,outdoorRatingsScale:null,offlineOutdoorSites:false,currentSignages:null,touristicContentsData:0,touristicEventsData:0,poisData:0}),state=_b.state,onChange=_b.onChange,reset=_b.reset;export{onChange as o,reset as r,state as s};
2
- //# sourceMappingURL=store-882ab9be.js.map
1
+ import{a as getRenderingRef,f as forceUpdate}from"./index-83d78b30.js";var appendToMap=function(e,n,r){var t=e.get(n);if(!t){e.set(n,[r])}else if(!t.includes(r)){t.push(r)}};var debounce=function(e,n){var r;return function(){var t=[];for(var u=0;u<arguments.length;u++){t[u]=arguments[u]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,t)}),n)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var n=0,r=e.keys();n<r.length;n++){var t=r[n];e.set(t,e.get(t).filter(isConnected))}}),2e3);var stencilSubscription=function(){if(typeof getRenderingRef!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(n){var r=getRenderingRef();if(r){appendToMap(e,n,r)}},set:function(n){var r=e.get(n);if(r){e.set(n,r.filter(forceUpdate))}cleanupElements(e)},reset:function(){e.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(e)}}};var unwrap=function(e){return typeof e==="function"?e():e};var createObservableMap=function(e,n){if(n===void 0){n=function(e,n){return e!==n}}var r=unwrap(e);var t=new Map(Object.entries(r!==null&&r!==void 0?r:{}));var u={dispose:[],get:[],set:[],reset:[]};var o=function(){var n;t=new Map(Object.entries((n=unwrap(e))!==null&&n!==void 0?n:{}));u.reset.forEach((function(e){return e()}))};var l=function(){u.dispose.forEach((function(e){return e()}));o()};var i=function(e){u.get.forEach((function(n){return n(e)}));return t.get(e)};var s=function(e,r){var o=t.get(e);if(n(r,o,e)){t.set(e,r);u.set.forEach((function(n){return n(e,r,o)}))}};var c=typeof Proxy==="undefined"?{}:new Proxy(r,{get:function(e,n){return i(n)},ownKeys:function(e){return Array.from(t.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,n){return t.has(n)},set:function(e,n,r){s(n,r);return true}});var a=function(e,n){u[e].push(n);return function(){removeFromArray(u[e],n)}};var f=function(n,r){var t=a("set",(function(e,t){if(e===n){r(t)}}));var u=a("reset",(function(){return r(unwrap(e)[n])}));return function(){t();u()}};var d=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var r=e.reduce((function(e,n){if(n.set){e.push(a("set",n.set))}if(n.get){e.push(a("get",n.get))}if(n.reset){e.push(a("reset",n.reset))}if(n.dispose){e.push(a("dispose",n.dispose))}return e}),[]);return function(){return r.forEach((function(e){return e()}))}};var v=function(e){var n=t.get(e);u.set.forEach((function(r){return r(e,n,n)}))};return{state:c,get:i,set:s,on:a,onChange:f,use:d,dispose:l,reset:o,forceUpdate:v}};var removeFromArray=function(e,n){var r=e.indexOf(n);if(r>=0){e[r]=e[e.length-1];e.length--}};var createStore=function(e,n){var r=createObservableMap(e,n);r.use(stencilSubscription());return r};var _b=createStore({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:null,durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,ratings:null,ratingsScale:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,networkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null,selectedStepId:null,trekTouristicContents:null,touristicContents:null,currentTouristicContents:null,touristicContentsWithinBounds:null,touristicContentCategories:null,currentTouristicContent:null,trekTouristicEvents:null,touristicEvents:null,currentTouristicEvents:null,touristicEventsWithinBounds:null,touristicEventTypes:null,currentTouristicEvent:null,selectedTouristicContentId:null,selectedTouristicEventId:null,networks:null,portalsFromProviders:null,inBboxFromProviders:null,citiesFromProviders:null,districtsFromProviders:null,structuresFromProviders:null,themesFromProviders:null,routesFromProviders:null,practicesFromProviders:null,labelsFromProviders:null,offlineTreks:false,currentOutdoorSites:null,outdoorSites:null,outdoorSitesWithinBounds:null,currentOutdoorCourses:null,outdoorCourses:null,outdoorSiteTypes:null,outdoorPractices:null,selectedOutdoorSiteId:null,currentOutdoorSite:null,currentRelatedOutdoorSites:null,currentRelatedOutdoorCourses:null,selectedOutdoorCourseId:null,outdoorCourseTypes:null,currentOutdoorCourse:null,outdoorRatings:null,outdoorRatingsScale:null,offlineOutdoorSites:false,currentSignages:null,touristicContentsData:0,touristicEventsData:0,poisData:0}),state=_b.state,onChange=_b.onChange,reset=_b.reset;export{onChange as o,reset as r,state as s};
2
+ //# sourceMappingURL=store-aa921ea2.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_b","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","mode","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","ratings","ratingsScale","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","networkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps","selectedStepId","trekTouristicContents","touristicContents","currentTouristicContents","touristicContentsWithinBounds","touristicContentCategories","currentTouristicContent","trekTouristicEvents","touristicEvents","currentTouristicEvents","touristicEventsWithinBounds","touristicEventTypes","currentTouristicEvent","selectedTouristicContentId","selectedTouristicEventId","networks","portalsFromProviders","inBboxFromProviders","citiesFromProviders","districtsFromProviders","structuresFromProviders","themesFromProviders","routesFromProviders","practicesFromProviders","labelsFromProviders","offlineTreks","currentOutdoorSites","outdoorSites","outdoorSitesWithinBounds","currentOutdoorCourses","outdoorCourses","outdoorSiteTypes","outdoorPractices","selectedOutdoorSiteId","currentOutdoorSite","currentRelatedOutdoorSites","currentRelatedOutdoorCourses","selectedOutdoorCourseId","outdoorCourseTypes","currentOutdoorCourse","outdoorRatings","outdoorRatingsScale","offlineOutdoorSites","currentSignages","touristicContentsData","touristicEventsData","poisData"],"sources":["node_modules/@stencil/store/dist/index.mjs","src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n AccessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n TouristicContents,\n TouristicContentCategories,\n TouristicContent,\n TouristicEvents,\n TouristicEventTypes,\n TouristicEvent,\n Ratings,\n RatingsScale,\n Networks,\n OutdoorSites,\n OutdoorCourses,\n OutdoorSiteTypes,\n OutdoorPractices,\n OutdoorSite,\n OutdoorCourse,\n OutdoorCourseTypes,\n Signages,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n mode: string;\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n ratings: Ratings;\n ratingsScale: RatingsScale;\n outdoorRatings: Ratings;\n outdoorRatingsScale: RatingsScale;\n accessibilities: Accessibilities;\n accessibilitiesLevel: AccessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n networkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n trekTouristicEvents: TouristicEvents;\n touristicEvents: TouristicEvents;\n currentTouristicEvents: TouristicEvents;\n touristicEventsWithinBounds: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n selectedTouristicEventId: number;\n networks: Networks;\n portalsFromProviders: string;\n inBboxFromProviders: string;\n citiesFromProviders: string;\n districtsFromProviders: string;\n structuresFromProviders: string;\n themesFromProviders: string;\n routesFromProviders: string;\n practicesFromProviders: string;\n labelsFromProviders: string;\n offlineTreks: boolean;\n currentOutdoorSites: OutdoorSites;\n outdoorSites: OutdoorSites;\n outdoorSitesWithinBounds: OutdoorSites;\n currentOutdoorCourses: OutdoorCourses;\n outdoorCourses: OutdoorCourses;\n outdoorSiteTypes: OutdoorSiteTypes;\n outdoorPractices: OutdoorPractices;\n selectedOutdoorSiteId: number;\n currentOutdoorSite: OutdoorSite;\n currentRelatedOutdoorSites: OutdoorSites;\n currentRelatedOutdoorCourses: OutdoorCourses;\n selectedOutdoorCourseId: number;\n outdoorCourseTypes: OutdoorCourseTypes;\n currentOutdoorCourse: OutdoorCourse;\n offlineOutdoorSites: boolean;\n currentSignages: Signages;\n touristicContentsData: number;\n touristicEventsData: number;\n poisData: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: [],\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n ratings: null,\n ratingsScale: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n networkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n trekTouristicEvents: null,\n touristicEvents: null,\n currentTouristicEvents: null,\n touristicEventsWithinBounds: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n selectedTouristicEventId: null,\n networks: null,\n portalsFromProviders: null,\n inBboxFromProviders: null,\n citiesFromProviders: null,\n districtsFromProviders: null,\n structuresFromProviders: null,\n themesFromProviders: null,\n routesFromProviders: null,\n practicesFromProviders: null,\n labelsFromProviders: null,\n offlineTreks: false,\n currentOutdoorSites: null,\n outdoorSites: null,\n outdoorSitesWithinBounds: null,\n currentOutdoorCourses: null,\n outdoorCourses: null,\n outdoorSiteTypes: null,\n outdoorPractices: null,\n selectedOutdoorSiteId: null,\n currentOutdoorSite: null,\n currentRelatedOutdoorSites: null,\n currentRelatedOutdoorCourses: null,\n selectedOutdoorCourseId: null,\n outdoorCourseTypes: null,\n currentOutdoorCourse: null,\n outdoorRatings: null,\n outdoorRatingsScale: null,\n offlineOutdoorSites: false,\n currentSignages: null,\n touristicContentsData: 0,\n touristicEventsData: 0,\n poisData: 0,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_b","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","mode","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","ratings","ratingsScale","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","networkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps","selectedStepId","trekTouristicContents","touristicContents","currentTouristicContents","touristicContentsWithinBounds","touristicContentCategories","currentTouristicContent","trekTouristicEvents","touristicEvents","currentTouristicEvents","touristicEventsWithinBounds","touristicEventTypes","currentTouristicEvent","selectedTouristicContentId","selectedTouristicEventId","networks","portalsFromProviders","inBboxFromProviders","citiesFromProviders","districtsFromProviders","structuresFromProviders","themesFromProviders","routesFromProviders","practicesFromProviders","labelsFromProviders","offlineTreks","currentOutdoorSites","outdoorSites","outdoorSitesWithinBounds","currentOutdoorCourses","outdoorCourses","outdoorSiteTypes","outdoorPractices","selectedOutdoorSiteId","currentOutdoorSite","currentRelatedOutdoorSites","currentRelatedOutdoorCourses","selectedOutdoorCourseId","outdoorCourseTypes","currentOutdoorCourse","outdoorRatings","outdoorRatingsScale","offlineOutdoorSites","currentSignages","touristicContentsData","touristicEventsData","poisData"],"sources":["node_modules/@stencil/store/dist/index.mjs","src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n AccessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n TouristicContents,\n TouristicContentCategories,\n TouristicContent,\n TouristicEvents,\n TouristicEventTypes,\n TouristicEvent,\n Ratings,\n RatingsScale,\n Networks,\n OutdoorSites,\n OutdoorCourses,\n OutdoorSiteTypes,\n OutdoorPractices,\n OutdoorSite,\n OutdoorCourse,\n OutdoorCourseTypes,\n Signages,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n mode: string;\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n ratings: Ratings;\n ratingsScale: RatingsScale;\n outdoorRatings: Ratings;\n outdoorRatingsScale: RatingsScale;\n accessibilities: Accessibilities;\n accessibilitiesLevel: AccessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n networkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n trekTouristicEvents: TouristicEvents;\n touristicEvents: TouristicEvents;\n currentTouristicEvents: TouristicEvents;\n touristicEventsWithinBounds: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n selectedTouristicEventId: number;\n networks: Networks;\n portalsFromProviders: string;\n inBboxFromProviders: string;\n citiesFromProviders: string;\n districtsFromProviders: string;\n structuresFromProviders: string;\n themesFromProviders: string;\n routesFromProviders: string;\n practicesFromProviders: string;\n labelsFromProviders: string;\n offlineTreks: boolean;\n currentOutdoorSites: OutdoorSites;\n outdoorSites: OutdoorSites;\n outdoorSitesWithinBounds: OutdoorSites;\n currentOutdoorCourses: OutdoorCourses;\n outdoorCourses: OutdoorCourses;\n outdoorSiteTypes: OutdoorSiteTypes;\n outdoorPractices: OutdoorPractices;\n selectedOutdoorSiteId: number;\n currentOutdoorSite: OutdoorSite;\n currentRelatedOutdoorSites: OutdoorSites;\n currentRelatedOutdoorCourses: OutdoorCourses;\n selectedOutdoorCourseId: number;\n outdoorCourseTypes: OutdoorCourseTypes;\n currentOutdoorCourse: OutdoorCourse;\n offlineOutdoorSites: boolean;\n currentSignages: Signages;\n touristicContentsData: number;\n touristicEventsData: number;\n poisData: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n ratings: null,\n ratingsScale: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n networkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n trekTouristicEvents: null,\n touristicEvents: null,\n currentTouristicEvents: null,\n touristicEventsWithinBounds: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n selectedTouristicEventId: null,\n networks: null,\n portalsFromProviders: null,\n inBboxFromProviders: null,\n citiesFromProviders: null,\n districtsFromProviders: null,\n structuresFromProviders: null,\n themesFromProviders: null,\n routesFromProviders: null,\n practicesFromProviders: null,\n labelsFromProviders: null,\n offlineTreks: false,\n currentOutdoorSites: null,\n outdoorSites: null,\n outdoorSitesWithinBounds: null,\n currentOutdoorCourses: null,\n outdoorCourses: null,\n outdoorSiteTypes: null,\n outdoorPractices: null,\n selectedOutdoorSiteId: null,\n currentOutdoorSite: null,\n currentRelatedOutdoorSites: null,\n currentRelatedOutdoorCourses: null,\n selectedOutdoorCourseId: null,\n outdoorCourseTypes: null,\n currentOutdoorCourse: null,\n outdoorRatings: null,\n outdoorRatingsScale: null,\n offlineOutdoorSites: false,\n currentSignages: null,\n touristicContentsData: 0,\n touristicEventsData: 0,\n poisData: 0,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function n(e){try{c(r.next(e))}catch(e){s(e)}}function u(e){try{c(r["throw"](e))}catch(e){s(e)}}function c(e){e.done?i(e.value):a(e.value).then(n,u)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,n;return n={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function u(e){return function(t){return c([e,t])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,u[0]&&(i=0)),i)try{if(r=1,a&&(s=u[0]&2?a["return"]:u[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;if(a=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;a=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){i.label=u[1];break}if(u[0]===6&&i.label<s[1]){i.label=s[1];s=u;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(u);break}if(s[2])i.ops.pop();i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e];a=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import"./index-83d78b30.js";import{s as state}from"./store-882ab9be.js";import{a as getDataInStore}from"./grw-db.service-83da38c9.js";import{d as getAllPaginatedResults}from"./utils-5feb9281.js";function getTrekGeometry(e){return fetch("".concat(state.api,"trek/").concat(e,"/?language=").concat(state.language,"&published=true&fields=geometry"),{cache:"default"}).then((function(e){return e.json()}))}function getTreksList(e,t,i,r,a,s,n,u,c,l,o,g){var d="".concat(e,"trek/?language=").concat(t,"&published=true");i&&(d+="&in_bbox=".concat(i));r&&(d+="&cities=".concat(r));a&&(d+="&districts=".concat(a));s&&(d+="&structures=".concat(s));n&&(d+="&themes=".concat(n));u&&(d+="&portals=".concat(u));c&&(d+="&routes=".concat(c));l&&(d+="&practices=".concat(l));o&&(d+="&labels=".concat(o));d+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts";return getAllPaginatedResults(d,g)}function getTrek(e,t,i,r){return fetch("".concat(e,"trek/").concat(i,"/?language=").concat(t,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,descent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,ratings,ratings_description,information_desks,children,networks,web_links,update_datetime,departure_geom,districts,parents"),r)}function getDistricts(e,t,i){return getAllPaginatedResults("".concat(e,"district/?language=").concat(t,"&fields=id,name&published=true"),i)}function trekIsAvailableOffline(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,getDataInStore("treks",e)];case 1:t=i.sent();return[2,t&&t.offline]}}))}))}function getPoisNearTrekCount(e,t,i,r){return fetch("".concat(e,"poi/?language=").concat(t,"&trek=").concat(i,"&published=true&fields=id&page_size=1"),r)}function getPoisNearTrek(e,t,i,r){return getAllPaginatedResults("".concat(e,"poi/?language=").concat(t,"&trek=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry"),r)}function getSensitiveAreasNearTrek(e,t,i,r){return fetch("".concat(e,"sensitivearea/?language=").concat(t,"&published=true&trek=").concat(i,"&period=ignore&fields=id,geometry,name,description,contact,info_url,period,practices"),r)}function getCities(e,t,i,r){var a="".concat(e,"city/?language=").concat(t,"&fields=id,code,name&published=true");if(r){a+="&ids=".concat(r.join(","))}return getAllPaginatedResults(a,i)}function getThemes(e,t,i,r){return fetch("".concat(e,"theme/?language=").concat(t).concat(i?"&portals=".concat(i):"","&fields=id,label,pictogram"),r)}function getInformationsDesks(e,t,i){return getAllPaginatedResults("".concat(e,"informationdesk/?language=").concat(t,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude"),i)}function getSources(e,t,i){return fetch("".concat(e,"source/?language=").concat(t,"&fields=id,name,website,pictogram"),i)}function getSignages(e,t,i,r){return getAllPaginatedResults("".concat(e,"signage/?language=").concat(t,"&near_trek=").concat(i,"&fields=id,geometry,name&published=true"),r)}function getTrekNetwork(e,t,i){return getAllPaginatedResults("".concat(e,"trek_network/?language=").concat(t,"&published=true&fields=id,label,pictogram"),i)}function getTrekAccessibility(e,t,i,r){return getAllPaginatedResults("".concat(e,"trek_accessibility/?language=").concat(t).concat(i?"&portals=".concat(i):"","&fields=id,name,pictogram&published=true"),r)}function getLabel(e,t,i,r){return getAllPaginatedResults("".concat(e,"label/?language=").concat(t).concat(i?"&portals=".concat(i):"","&fields=id,name,advice,pictogram,filter&published=true"),r)}export{getDistricts as a,getThemes as b,getTrekGeometry as c,getSources as d,getInformationsDesks as e,getTreksList as f,getCities as g,getPoisNearTrek as h,getTrek as i,getSensitiveAreasNearTrek as j,getSignages as k,getPoisNearTrekCount as l,getTrekNetwork as m,getTrekAccessibility as n,getLabel as o,trekIsAvailableOffline as t};
2
- //# sourceMappingURL=treks.service-a3ce33ef.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function n(e){try{c(r.next(e))}catch(e){s(e)}}function u(e){try{c(r["throw"](e))}catch(e){s(e)}}function c(e){e.done?i(e.value):a(e.value).then(n,u)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,n;return n={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function u(e){return function(t){return c([e,t])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,u[0]&&(i=0)),i)try{if(r=1,a&&(s=u[0]&2?a["return"]:u[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;if(a=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;a=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){i.label=u[1];break}if(u[0]===6&&i.label<s[1]){i.label=s[1];s=u;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(u);break}if(s[2])i.ops.pop();i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e];a=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import"./index-83d78b30.js";import{s as state}from"./store-aa921ea2.js";import{a as getDataInStore}from"./grw-db.service-a2b2fc8e.js";import{d as getAllPaginatedResults}from"./utils-b1ca48b3.js";function getTrekGeometry(e){return fetch("".concat(state.api,"trek/").concat(e,"/?language=").concat(state.language,"&published=true&fields=geometry"),{cache:"default"}).then((function(e){return e.json()}))}function getTreksList(e,t,i,r,a,s,n,u,c,l,o,g){var d="".concat(e,"trek/?language=").concat(t,"&published=true");i&&(d+="&in_bbox=".concat(i));r&&(d+="&cities=".concat(r));a&&(d+="&districts=".concat(a));s&&(d+="&structures=".concat(s));n&&(d+="&themes=".concat(n));u&&(d+="&portals=".concat(u));c&&(d+="&routes=".concat(c));l&&(d+="&practices=".concat(l));o&&(d+="&labels=".concat(o));d+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts";return getAllPaginatedResults(d,g)}function getTrek(e,t,i,r){return fetch("".concat(e,"trek/").concat(i,"/?language=").concat(t,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,descent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,ratings,ratings_description,information_desks,children,networks,web_links,update_datetime,departure_geom,districts,parents"),r)}function getDistricts(e,t,i){return getAllPaginatedResults("".concat(e,"district/?language=").concat(t,"&fields=id,name&published=true"),i)}function trekIsAvailableOffline(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,getDataInStore("treks",e)];case 1:t=i.sent();return[2,t&&t.offline]}}))}))}function getPoisNearTrekCount(e,t,i,r){return fetch("".concat(e,"poi/?language=").concat(t,"&trek=").concat(i,"&published=true&fields=id&page_size=1"),r)}function getPoisNearTrek(e,t,i,r){return getAllPaginatedResults("".concat(e,"poi/?language=").concat(t,"&trek=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry"),r)}function getSensitiveAreasNearTrek(e,t,i,r){return fetch("".concat(e,"sensitivearea/?language=").concat(t,"&published=true&trek=").concat(i,"&period=ignore&fields=id,geometry,name,description,contact,info_url,period,practices"),r)}function getCities(e,t,i,r){var a="".concat(e,"city/?language=").concat(t,"&fields=id,code,name&published=true");if(r){a+="&ids=".concat(r.join(","))}return getAllPaginatedResults(a,i)}function getThemes(e,t,i,r){return fetch("".concat(e,"theme/?language=").concat(t).concat(i?"&portals=".concat(i):"","&fields=id,label,pictogram"),r)}function getInformationsDesks(e,t,i){return getAllPaginatedResults("".concat(e,"informationdesk/?language=").concat(t,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude"),i)}function getSources(e,t,i){return fetch("".concat(e,"source/?language=").concat(t,"&fields=id,name,website,pictogram"),i)}function getSignages(e,t,i,r){return getAllPaginatedResults("".concat(e,"signage/?language=").concat(t,"&near_trek=").concat(i,"&fields=id,geometry,name&published=true"),r)}function getTrekNetwork(e,t,i){return getAllPaginatedResults("".concat(e,"trek_network/?language=").concat(t,"&published=true&fields=id,label,pictogram"),i)}function getTrekAccessibility(e,t,i,r){return getAllPaginatedResults("".concat(e,"trek_accessibility/?language=").concat(t).concat(i?"&portals=".concat(i):"","&fields=id,name,pictogram&published=true"),r)}function getLabel(e,t,i,r){return getAllPaginatedResults("".concat(e,"label/?language=").concat(t).concat(i?"&portals=".concat(i):"","&fields=id,name,advice,pictogram,filter&published=true"),r)}export{getDistricts as a,getThemes as b,getTrekGeometry as c,getSources as d,getInformationsDesks as e,getTreksList as f,getCities as g,getPoisNearTrek as h,getTrek as i,getSensitiveAreasNearTrek as j,getSignages as k,getPoisNearTrekCount as l,getTrekNetwork as m,getTrekAccessibility as n,getLabel as o,trekIsAvailableOffline as t};
2
+ //# sourceMappingURL=treks.service-0b98455e.js.map