@geotrekce/geotrek-rando-widget 0.29.2 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (592) hide show
  1. package/dist/cjs/{call-a8e7c8f6.js → call-422e2bf4.js} +10 -2
  2. package/dist/cjs/call-422e2bf4.js.br +0 -0
  3. package/dist/cjs/call-422e2bf4.js.gz +0 -0
  4. package/dist/cjs/call-422e2bf4.js.map +1 -0
  5. package/dist/cjs/grw-app.cjs.entry.js +20 -17
  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-app.cjs.entry.js.map +1 -1
  9. package/dist/cjs/grw-common-button_23.cjs.entry.js +295 -159
  10. package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
  11. package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
  12. package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
  13. package/dist/cjs/{grw-db.service-0ad254f2.js → grw-db.service-dde227e0.js} +2 -2
  14. package/dist/cjs/grw-db.service-dde227e0.js.br +0 -0
  15. package/dist/cjs/grw-db.service-dde227e0.js.gz +0 -0
  16. package/dist/cjs/{grw-db.service-0ad254f2.js.map → grw-db.service-dde227e0.js.map} +1 -1
  17. package/dist/cjs/grw-details-modal_8.cjs.entry.js +50 -34
  18. package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
  19. package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
  20. package/dist/cjs/grw-details-modal_8.cjs.entry.js.map +1 -1
  21. package/dist/cjs/grw-filter.cjs.entry.js +2 -2
  22. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  23. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js +6 -6
  25. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.br +0 -0
  26. package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.gz +0 -0
  27. package/dist/cjs/grw-poi_3.cjs.entry.js +34 -18
  28. package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
  29. package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
  30. package/dist/cjs/grw-poi_3.cjs.entry.js.map +1 -1
  31. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +11 -11
  32. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
  33. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
  34. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +3 -3
  35. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
  36. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
  37. package/dist/cjs/{outdoor-courses.service-4f9e4549.js → outdoor-courses.service-083411f5.js} +2 -2
  38. package/dist/cjs/outdoor-courses.service-083411f5.js.br +0 -0
  39. package/dist/cjs/outdoor-courses.service-083411f5.js.gz +0 -0
  40. package/dist/cjs/{outdoor-courses.service-4f9e4549.js.map → outdoor-courses.service-083411f5.js.map} +1 -1
  41. package/dist/cjs/{store-ac1ed8ce.js → store-65aa11bc.js} +5 -2
  42. package/dist/cjs/store-65aa11bc.js.br +0 -0
  43. package/dist/cjs/store-65aa11bc.js.gz +0 -0
  44. package/dist/cjs/store-65aa11bc.js.map +1 -0
  45. package/dist/cjs/{treks.service-5d19ad5f.js → treks.service-14b5765a.js} +14 -6
  46. package/dist/cjs/treks.service-14b5765a.js.br +0 -0
  47. package/dist/cjs/treks.service-14b5765a.js.gz +0 -0
  48. package/dist/cjs/treks.service-14b5765a.js.map +1 -0
  49. package/dist/cjs/{utils-934a22f0.js → utils-5c5c3fee.js} +3 -3
  50. package/dist/cjs/utils-5c5c3fee.js.br +0 -0
  51. package/dist/cjs/utils-5c5c3fee.js.gz +0 -0
  52. package/dist/cjs/{utils-934a22f0.js.map → utils-5c5c3fee.js.map} +1 -1
  53. package/dist/cjs/{web-fdb6c665.js → web-87e6d345.js} +3 -3
  54. package/dist/cjs/web-87e6d345.js.br +0 -0
  55. package/dist/cjs/web-87e6d345.js.gz +0 -0
  56. package/dist/cjs/{web-fdb6c665.js.map → web-87e6d345.js.map} +1 -1
  57. package/dist/collection/components/grw-app/grw-app.css +1 -1
  58. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  59. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  60. package/dist/collection/components/grw-app/grw-app.js +17 -14
  61. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  62. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  63. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  64. package/dist/collection/components/grw-map/grw-map.css +29 -0
  65. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  66. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  67. package/dist/collection/components/grw-map/grw-map.js +108 -51
  68. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  69. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  70. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  71. package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js +3 -3
  72. package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.br +0 -0
  73. package/dist/collection/components/grw-offline-confirm-modal/grw-offline-confirm-modal.js.gz +0 -0
  74. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.css +1 -1
  75. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.css.br +0 -0
  76. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.css.gz +0 -0
  77. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.js +5 -5
  78. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.js.br +0 -0
  79. package/dist/collection/components/grw-outdoor-course-card/grw-outdoor-course-card.js.gz +0 -0
  80. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js +4 -4
  81. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.br +0 -0
  82. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.gz +0 -0
  83. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.css +1 -1
  84. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.css.br +0 -0
  85. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.css.gz +0 -0
  86. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.js +6 -6
  87. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.js.br +0 -0
  88. package/dist/collection/components/grw-outdoor-site-card/grw-outdoor-site-card.js.gz +0 -0
  89. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +7 -7
  90. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
  91. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
  92. package/dist/collection/components/grw-outdoor-sites-list/grw-outdoor-sites-list.js +1 -1
  93. package/dist/collection/components/grw-outdoor-sites-list/grw-outdoor-sites-list.js.br +0 -0
  94. package/dist/collection/components/grw-outdoor-sites-list/grw-outdoor-sites-list.js.gz +0 -0
  95. package/dist/collection/components/grw-poi-detail/grw-poi.css +5 -1
  96. package/dist/collection/components/grw-poi-detail/grw-poi.css.br +0 -0
  97. package/dist/collection/components/grw-poi-detail/grw-poi.css.gz +0 -0
  98. package/dist/collection/components/grw-poi-detail/grw-poi.js +20 -4
  99. package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
  100. package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
  101. package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
  102. package/dist/collection/components/grw-search/grw-search.js +2 -2
  103. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  104. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  105. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js +2 -2
  106. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.br +0 -0
  107. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.gz +0 -0
  108. package/dist/collection/components/grw-select-language/grw-select-language.js +1 -1
  109. package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
  110. package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
  111. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +3 -3
  112. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.br +0 -0
  113. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.gz +0 -0
  114. package/dist/collection/components/grw-switch/grw-switch.js +2 -2
  115. package/dist/collection/components/grw-switch/grw-switch.js.br +0 -0
  116. package/dist/collection/components/grw-switch/grw-switch.js.gz +0 -0
  117. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js +2 -2
  118. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js.br +0 -0
  119. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js.gz +0 -0
  120. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css +1 -1
  121. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.br +0 -0
  122. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.gz +0 -0
  123. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +4 -4
  124. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
  125. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
  126. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +4 -4
  127. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  128. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  129. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js +1 -1
  130. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.br +0 -0
  131. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.gz +0 -0
  132. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css +1 -1
  133. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.br +0 -0
  134. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.gz +0 -0
  135. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +4 -4
  136. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
  137. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
  138. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +3 -3
  139. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  140. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  141. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +1 -1
  142. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
  143. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
  144. package/dist/collection/components/grw-trek-card/grw-trek-card.js +4 -4
  145. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  146. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  147. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +27 -0
  148. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  149. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  150. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +56 -37
  151. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  152. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  153. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  154. package/dist/collection/components/grw-treks-list/grw-treks-list.js +1 -1
  155. package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
  156. package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
  157. package/dist/collection/services/touristic-contents.service.js +3 -0
  158. package/dist/collection/services/touristic-contents.service.js.br +0 -0
  159. package/dist/collection/services/touristic-contents.service.js.gz +0 -0
  160. package/dist/collection/services/touristic-contents.service.js.map +1 -1
  161. package/dist/collection/services/touristic-events.service.js +3 -0
  162. package/dist/collection/services/touristic-events.service.js.br +0 -0
  163. package/dist/collection/services/touristic-events.service.js.gz +0 -0
  164. package/dist/collection/services/touristic-events.service.js.map +1 -1
  165. package/dist/collection/services/treks.service.js +9 -2
  166. package/dist/collection/services/treks.service.js.br +0 -0
  167. package/dist/collection/services/treks.service.js.gz +0 -0
  168. package/dist/collection/services/treks.service.js.map +1 -1
  169. package/dist/collection/store/grw-outdoor-course-provider.js +1 -1
  170. package/dist/collection/store/grw-outdoor-course-provider.js.br +0 -0
  171. package/dist/collection/store/grw-outdoor-course-provider.js.gz +0 -0
  172. package/dist/collection/store/grw-outdoor-courses-provider.js +1 -1
  173. package/dist/collection/store/grw-outdoor-courses-provider.js.br +0 -0
  174. package/dist/collection/store/grw-outdoor-courses-provider.js.gz +0 -0
  175. package/dist/collection/store/grw-outdoor-site-provider.js +1 -1
  176. package/dist/collection/store/grw-outdoor-site-provider.js.br +0 -0
  177. package/dist/collection/store/grw-outdoor-site-provider.js.gz +0 -0
  178. package/dist/collection/store/grw-outdoor-sites-provider.js +1 -1
  179. package/dist/collection/store/grw-outdoor-sites-provider.js.br +0 -0
  180. package/dist/collection/store/grw-outdoor-sites-provider.js.gz +0 -0
  181. package/dist/collection/store/grw-touristic-content-provider.js +13 -5
  182. package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
  183. package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
  184. package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
  185. package/dist/collection/store/grw-touristic-contents-provider.js +1 -1
  186. package/dist/collection/store/grw-touristic-contents-provider.js.br +0 -0
  187. package/dist/collection/store/grw-touristic-contents-provider.js.gz +0 -0
  188. package/dist/collection/store/grw-touristic-event-provider.js +13 -5
  189. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  190. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  191. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
  192. package/dist/collection/store/grw-touristic-events-provider.js +1 -1
  193. package/dist/collection/store/grw-touristic-events-provider.js.br +0 -0
  194. package/dist/collection/store/grw-touristic-events-provider.js.gz +0 -0
  195. package/dist/collection/store/grw-trek-provider.js +98 -38
  196. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  197. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  198. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  199. package/dist/collection/store/grw-treks-provider.js +1 -1
  200. package/dist/collection/store/grw-treks-provider.js.br +0 -0
  201. package/dist/collection/store/grw-treks-provider.js.gz +0 -0
  202. package/dist/collection/store/store.js +4 -1
  203. package/dist/collection/store/store.js.br +0 -0
  204. package/dist/collection/store/store.js.gz +0 -0
  205. package/dist/collection/store/store.js.map +1 -1
  206. package/dist/esm/{call-e7ca34e9.js → call-c0c920b0.js} +9 -3
  207. package/dist/esm/call-c0c920b0.js.br +0 -0
  208. package/dist/esm/call-c0c920b0.js.gz +0 -0
  209. package/dist/esm/call-c0c920b0.js.map +1 -0
  210. package/dist/esm/grw-app.entry.js +20 -17
  211. package/dist/esm/grw-app.entry.js.br +0 -0
  212. package/dist/esm/grw-app.entry.js.gz +0 -0
  213. package/dist/esm/grw-app.entry.js.map +1 -1
  214. package/dist/esm/grw-common-button_23.entry.js +296 -160
  215. package/dist/esm/grw-common-button_23.entry.js.br +0 -0
  216. package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
  217. package/dist/esm/grw-common-button_23.entry.js.map +1 -1
  218. package/dist/esm/{grw-db.service-37105839.js → grw-db.service-83da38c9.js} +2 -2
  219. package/dist/esm/grw-db.service-83da38c9.js.br +0 -0
  220. package/dist/esm/grw-db.service-83da38c9.js.gz +0 -0
  221. package/dist/esm/{grw-db.service-37105839.js.map → grw-db.service-83da38c9.js.map} +1 -1
  222. package/dist/esm/grw-details-modal_8.entry.js +50 -34
  223. package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
  224. package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
  225. package/dist/esm/grw-details-modal_8.entry.js.map +1 -1
  226. package/dist/esm/grw-filter.entry.js +2 -2
  227. package/dist/esm/grw-filter.entry.js.br +0 -0
  228. package/dist/esm/grw-filter.entry.js.gz +0 -0
  229. package/dist/esm/grw-outdoor-courses-provider.entry.js +6 -6
  230. package/dist/esm/grw-outdoor-courses-provider.entry.js.br +0 -0
  231. package/dist/esm/grw-outdoor-courses-provider.entry.js.gz +0 -0
  232. package/dist/esm/grw-poi_3.entry.js +34 -18
  233. package/dist/esm/grw-poi_3.entry.js.br +0 -0
  234. package/dist/esm/grw-poi_3.entry.js.gz +0 -0
  235. package/dist/esm/grw-poi_3.entry.js.map +1 -1
  236. package/dist/esm/grw-sensitive-area-detail_2.entry.js +11 -11
  237. package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
  238. package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  239. package/dist/esm/grw-toggle-slot-visibility.entry.js +3 -3
  240. package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
  241. package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
  242. package/dist/esm/{outdoor-courses.service-add4d256.js → outdoor-courses.service-d2397066.js} +2 -2
  243. package/dist/esm/outdoor-courses.service-d2397066.js.br +0 -0
  244. package/dist/esm/outdoor-courses.service-d2397066.js.gz +0 -0
  245. package/dist/esm/{outdoor-courses.service-add4d256.js.map → outdoor-courses.service-d2397066.js.map} +1 -1
  246. package/dist/esm/{store-04f82731.js → store-882ab9be.js} +5 -2
  247. package/dist/esm/store-882ab9be.js.br +0 -0
  248. package/dist/esm/store-882ab9be.js.gz +0 -0
  249. package/dist/esm/store-882ab9be.js.map +1 -0
  250. package/dist/esm/{treks.service-01e48d12.js → treks.service-a3ce33ef.js} +14 -7
  251. package/dist/esm/treks.service-a3ce33ef.js.br +0 -0
  252. package/dist/esm/treks.service-a3ce33ef.js.gz +0 -0
  253. package/dist/esm/treks.service-a3ce33ef.js.map +1 -0
  254. package/dist/esm/{utils-c2e5c5b9.js → utils-5feb9281.js} +3 -3
  255. package/dist/esm/utils-5feb9281.js.br +0 -0
  256. package/dist/esm/utils-5feb9281.js.gz +0 -0
  257. package/dist/esm/{utils-c2e5c5b9.js.map → utils-5feb9281.js.map} +1 -1
  258. package/dist/esm/{web-fdc4d63f.js → web-9ea89c85.js} +3 -3
  259. package/dist/esm/web-9ea89c85.js.br +0 -0
  260. package/dist/esm/web-9ea89c85.js.gz +0 -0
  261. package/dist/esm/{web-fdc4d63f.js.map → web-9ea89c85.js.map} +1 -1
  262. package/dist/esm-es5/{call-e7ca34e9.js → call-c0c920b0.js} +2 -2
  263. package/dist/esm-es5/call-c0c920b0.js.br +0 -0
  264. package/dist/esm-es5/call-c0c920b0.js.gz +0 -0
  265. package/dist/esm-es5/call-c0c920b0.js.map +1 -0
  266. package/dist/esm-es5/grw-app.entry.js +1 -1
  267. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  268. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  269. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  270. package/dist/esm-es5/grw-common-button_23.entry.js +2 -2
  271. package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
  272. package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
  273. package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
  274. package/dist/esm-es5/{grw-db.service-37105839.js → grw-db.service-83da38c9.js} +2 -2
  275. package/dist/esm-es5/grw-db.service-83da38c9.js.br +0 -0
  276. package/dist/esm-es5/grw-db.service-83da38c9.js.gz +0 -0
  277. package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
  278. package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
  279. package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
  280. package/dist/esm-es5/grw-details-modal_8.entry.js.map +1 -1
  281. package/dist/esm-es5/grw-filter.entry.js +1 -1
  282. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  283. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  284. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js +1 -1
  285. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.br +0 -0
  286. package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.gz +0 -0
  287. package/dist/esm-es5/grw-poi_3.entry.js +1 -1
  288. package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
  289. package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
  290. package/dist/esm-es5/grw-poi_3.entry.js.map +1 -1
  291. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +1 -1
  292. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
  293. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  294. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
  295. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
  296. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
  297. package/dist/esm-es5/{outdoor-courses.service-add4d256.js → outdoor-courses.service-d2397066.js} +2 -2
  298. package/dist/esm-es5/outdoor-courses.service-d2397066.js.br +0 -0
  299. package/dist/esm-es5/outdoor-courses.service-d2397066.js.gz +0 -0
  300. package/dist/esm-es5/{store-04f82731.js → store-882ab9be.js} +2 -2
  301. package/dist/esm-es5/store-882ab9be.js.br +0 -0
  302. package/dist/esm-es5/store-882ab9be.js.gz +0 -0
  303. package/dist/esm-es5/store-882ab9be.js.map +1 -0
  304. package/dist/esm-es5/treks.service-a3ce33ef.js +2 -0
  305. package/dist/esm-es5/treks.service-a3ce33ef.js.br +0 -0
  306. package/dist/esm-es5/treks.service-a3ce33ef.js.gz +0 -0
  307. package/dist/esm-es5/treks.service-a3ce33ef.js.map +1 -0
  308. package/dist/esm-es5/{utils-c2e5c5b9.js → utils-5feb9281.js} +3 -3
  309. package/dist/esm-es5/utils-5feb9281.js.br +0 -0
  310. package/dist/esm-es5/utils-5feb9281.js.gz +0 -0
  311. package/dist/esm-es5/{web-fdc4d63f.js → web-9ea89c85.js} +2 -2
  312. package/dist/esm-es5/web-9ea89c85.js.br +0 -0
  313. package/dist/esm-es5/web-9ea89c85.js.gz +0 -0
  314. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  315. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  316. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  317. package/dist/geotrek-rando-widget/{p-10adcbc3.system.entry.js → p-0213328a.system.entry.js} +2 -2
  318. package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.br +0 -0
  319. package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.gz +0 -0
  320. package/dist/geotrek-rando-widget/{p-c08abeee.system.js → p-0dc681ee.system.js} +2 -2
  321. package/dist/geotrek-rando-widget/p-0dc681ee.system.js.br +0 -0
  322. package/dist/geotrek-rando-widget/p-0dc681ee.system.js.gz +0 -0
  323. package/dist/geotrek-rando-widget/p-111e4a10.entry.js +2 -0
  324. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.br +0 -0
  325. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.gz +0 -0
  326. package/dist/geotrek-rando-widget/p-111e4a10.entry.js.map +1 -0
  327. package/dist/geotrek-rando-widget/p-20fa1207.entry.js +2 -0
  328. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.br +0 -0
  329. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.gz +0 -0
  330. package/dist/geotrek-rando-widget/p-20fa1207.entry.js.map +1 -0
  331. package/dist/geotrek-rando-widget/{p-d77c26bd.system.js → p-315f99d3.system.js} +2 -2
  332. package/dist/geotrek-rando-widget/p-315f99d3.system.js.br +0 -0
  333. package/dist/geotrek-rando-widget/{p-d77c26bd.system.js.gz → p-315f99d3.system.js.gz} +0 -0
  334. package/dist/geotrek-rando-widget/{p-9298fb48.system.js → p-31cd5fb6.system.js} +2 -2
  335. package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.br +0 -0
  336. package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.gz +0 -0
  337. package/dist/geotrek-rando-widget/{p-7e076c7f.system.entry.js → p-346b21fe.system.entry.js} +2 -2
  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-74250f1d.system.entry.js → p-46cbc796.system.entry.js} +2 -2
  341. package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.br +0 -0
  342. package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.gz +0 -0
  343. package/dist/geotrek-rando-widget/{p-e622139c.entry.js → p-51c64ff4.entry.js} +2 -2
  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-5517eb99.system.js +1 -1
  347. package/dist/geotrek-rando-widget/p-5517eb99.system.js.br +0 -0
  348. package/dist/geotrek-rando-widget/p-5517eb99.system.js.gz +0 -0
  349. package/dist/geotrek-rando-widget/{p-0e80aabf.system.js → p-5a1c21ad.system.js} +3 -3
  350. package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.br +0 -0
  351. package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.gz +0 -0
  352. package/dist/geotrek-rando-widget/{p-11caf88d.entry.js → p-6287495f.entry.js} +2 -2
  353. package/dist/geotrek-rando-widget/p-6287495f.entry.js.br +0 -0
  354. package/dist/geotrek-rando-widget/p-6287495f.entry.js.gz +0 -0
  355. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js +2 -0
  356. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.br +0 -0
  357. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.gz +0 -0
  358. package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.map +1 -0
  359. package/dist/geotrek-rando-widget/{p-7102a4d3.system.entry.js → p-6a4d2050.system.entry.js} +2 -2
  360. package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.br +0 -0
  361. package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.gz +0 -0
  362. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js +2 -0
  363. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.br +0 -0
  364. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.gz +0 -0
  365. package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.map +1 -0
  366. package/dist/geotrek-rando-widget/p-722e446c.entry.js +4 -0
  367. package/dist/geotrek-rando-widget/p-722e446c.entry.js.br +0 -0
  368. package/dist/geotrek-rando-widget/p-722e446c.entry.js.gz +0 -0
  369. package/dist/geotrek-rando-widget/p-722e446c.entry.js.map +1 -0
  370. package/dist/geotrek-rando-widget/{p-4ab5c85d.js → p-76467e71.js} +2 -2
  371. package/dist/geotrek-rando-widget/p-76467e71.js.br +0 -0
  372. package/dist/geotrek-rando-widget/p-76467e71.js.gz +0 -0
  373. package/dist/geotrek-rando-widget/{p-00654bc2.js → p-844f4321.js} +3 -3
  374. package/dist/geotrek-rando-widget/p-844f4321.js.br +0 -0
  375. package/dist/geotrek-rando-widget/p-844f4321.js.gz +0 -0
  376. package/dist/geotrek-rando-widget/p-91d62770.entry.js +2 -0
  377. package/dist/geotrek-rando-widget/p-91d62770.entry.js.br +0 -0
  378. package/dist/geotrek-rando-widget/p-91d62770.entry.js.gz +0 -0
  379. package/dist/geotrek-rando-widget/{p-1ef5158a.entry.js.map → p-91d62770.entry.js.map} +1 -1
  380. package/dist/geotrek-rando-widget/{p-a0d6a0dc.js → p-b1ed0255.js} +2 -2
  381. package/dist/geotrek-rando-widget/p-b1ed0255.js.br +0 -0
  382. package/dist/geotrek-rando-widget/p-b1ed0255.js.gz +0 -0
  383. package/dist/geotrek-rando-widget/p-c61425f6.js +2 -0
  384. package/dist/geotrek-rando-widget/p-c61425f6.js.br +0 -0
  385. package/dist/geotrek-rando-widget/p-c61425f6.js.gz +0 -0
  386. package/dist/geotrek-rando-widget/p-c61425f6.js.map +1 -0
  387. package/dist/geotrek-rando-widget/{p-806676e7.js → p-c8f5ce61.js} +2 -2
  388. package/dist/geotrek-rando-widget/p-c8f5ce61.js.br +0 -0
  389. package/dist/geotrek-rando-widget/p-c8f5ce61.js.gz +0 -0
  390. package/dist/geotrek-rando-widget/p-c8f5ce61.js.map +1 -0
  391. package/dist/geotrek-rando-widget/p-d95cfb6f.js +2 -0
  392. package/dist/geotrek-rando-widget/p-d95cfb6f.js.br +0 -0
  393. package/dist/geotrek-rando-widget/p-d95cfb6f.js.gz +0 -0
  394. package/dist/geotrek-rando-widget/p-d95cfb6f.js.map +1 -0
  395. package/dist/geotrek-rando-widget/p-de029003.entry.js +2 -0
  396. package/dist/geotrek-rando-widget/p-de029003.entry.js.br +0 -0
  397. package/dist/geotrek-rando-widget/p-de029003.entry.js.gz +0 -0
  398. package/dist/geotrek-rando-widget/p-de029003.entry.js.map +1 -0
  399. package/dist/geotrek-rando-widget/p-e6471529.system.js +2 -0
  400. package/dist/geotrek-rando-widget/p-e6471529.system.js.br +0 -0
  401. package/dist/geotrek-rando-widget/p-e6471529.system.js.gz +0 -0
  402. package/dist/geotrek-rando-widget/p-e6471529.system.js.map +1 -0
  403. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js +2 -0
  404. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.br +0 -0
  405. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.gz +0 -0
  406. package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.map +1 -0
  407. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js +2 -0
  408. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.br +0 -0
  409. package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.gz +0 -0
  410. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js +2 -0
  411. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.br +0 -0
  412. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.gz +0 -0
  413. package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.map +1 -0
  414. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js +4 -0
  415. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.br +0 -0
  416. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.gz +0 -0
  417. package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.map +1 -0
  418. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js +2 -0
  419. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.br +0 -0
  420. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.gz +0 -0
  421. package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.map +1 -0
  422. package/dist/geotrek-rando-widget/{p-601c8983.js → p-fcbe4bb6.js} +2 -2
  423. package/dist/geotrek-rando-widget/p-fcbe4bb6.js.br +0 -0
  424. package/dist/geotrek-rando-widget/p-fcbe4bb6.js.gz +0 -0
  425. package/dist/types/components/grw-app/grw-app.d.ts +1 -0
  426. package/dist/types/components/grw-map/grw-map.d.ts +5 -1
  427. package/dist/types/components/grw-poi-detail/grw-poi.d.ts +1 -0
  428. package/dist/types/services/touristic-contents.service.d.ts +1 -0
  429. package/dist/types/services/touristic-events.service.d.ts +1 -0
  430. package/dist/types/services/treks.service.d.ts +2 -1
  431. package/dist/types/store/store.d.ts +6 -0
  432. package/package.json +1 -1
  433. package/readme.md +1 -1
  434. package/dist/cjs/call-a8e7c8f6.js.br +0 -0
  435. package/dist/cjs/call-a8e7c8f6.js.gz +0 -0
  436. package/dist/cjs/call-a8e7c8f6.js.map +0 -1
  437. package/dist/cjs/grw-db.service-0ad254f2.js.br +0 -0
  438. package/dist/cjs/grw-db.service-0ad254f2.js.gz +0 -0
  439. package/dist/cjs/outdoor-courses.service-4f9e4549.js.br +0 -0
  440. package/dist/cjs/outdoor-courses.service-4f9e4549.js.gz +0 -0
  441. package/dist/cjs/store-ac1ed8ce.js.br +0 -0
  442. package/dist/cjs/store-ac1ed8ce.js.gz +0 -0
  443. package/dist/cjs/store-ac1ed8ce.js.map +0 -1
  444. package/dist/cjs/treks.service-5d19ad5f.js.br +0 -0
  445. package/dist/cjs/treks.service-5d19ad5f.js.gz +0 -0
  446. package/dist/cjs/treks.service-5d19ad5f.js.map +0 -1
  447. package/dist/cjs/utils-934a22f0.js.br +0 -0
  448. package/dist/cjs/utils-934a22f0.js.gz +0 -0
  449. package/dist/cjs/web-fdb6c665.js.br +0 -0
  450. package/dist/cjs/web-fdb6c665.js.gz +0 -0
  451. package/dist/esm/call-e7ca34e9.js.br +0 -0
  452. package/dist/esm/call-e7ca34e9.js.gz +0 -0
  453. package/dist/esm/call-e7ca34e9.js.map +0 -1
  454. package/dist/esm/grw-db.service-37105839.js.br +0 -0
  455. package/dist/esm/grw-db.service-37105839.js.gz +0 -0
  456. package/dist/esm/outdoor-courses.service-add4d256.js.br +0 -0
  457. package/dist/esm/outdoor-courses.service-add4d256.js.gz +0 -0
  458. package/dist/esm/store-04f82731.js.br +0 -0
  459. package/dist/esm/store-04f82731.js.gz +0 -0
  460. package/dist/esm/store-04f82731.js.map +0 -1
  461. package/dist/esm/treks.service-01e48d12.js.br +0 -0
  462. package/dist/esm/treks.service-01e48d12.js.gz +0 -0
  463. package/dist/esm/treks.service-01e48d12.js.map +0 -1
  464. package/dist/esm/utils-c2e5c5b9.js.br +0 -0
  465. package/dist/esm/utils-c2e5c5b9.js.gz +0 -0
  466. package/dist/esm/web-fdc4d63f.js.br +0 -0
  467. package/dist/esm/web-fdc4d63f.js.gz +0 -0
  468. package/dist/esm-es5/call-e7ca34e9.js.br +0 -0
  469. package/dist/esm-es5/call-e7ca34e9.js.gz +0 -0
  470. package/dist/esm-es5/call-e7ca34e9.js.map +0 -1
  471. package/dist/esm-es5/grw-db.service-37105839.js.br +0 -0
  472. package/dist/esm-es5/grw-db.service-37105839.js.gz +0 -0
  473. package/dist/esm-es5/outdoor-courses.service-add4d256.js.br +0 -0
  474. package/dist/esm-es5/outdoor-courses.service-add4d256.js.gz +0 -0
  475. package/dist/esm-es5/store-04f82731.js.br +0 -0
  476. package/dist/esm-es5/store-04f82731.js.gz +0 -0
  477. package/dist/esm-es5/store-04f82731.js.map +0 -1
  478. package/dist/esm-es5/treks.service-01e48d12.js +0 -2
  479. package/dist/esm-es5/treks.service-01e48d12.js.br +0 -0
  480. package/dist/esm-es5/treks.service-01e48d12.js.gz +0 -0
  481. package/dist/esm-es5/treks.service-01e48d12.js.map +0 -1
  482. package/dist/esm-es5/utils-c2e5c5b9.js.br +0 -0
  483. package/dist/esm-es5/utils-c2e5c5b9.js.gz +0 -0
  484. package/dist/esm-es5/web-fdc4d63f.js.br +0 -0
  485. package/dist/esm-es5/web-fdc4d63f.js.gz +0 -0
  486. package/dist/geotrek-rando-widget/p-00654bc2.js.br +0 -0
  487. package/dist/geotrek-rando-widget/p-00654bc2.js.gz +0 -0
  488. package/dist/geotrek-rando-widget/p-0e80aabf.system.js.br +0 -0
  489. package/dist/geotrek-rando-widget/p-0e80aabf.system.js.gz +0 -0
  490. package/dist/geotrek-rando-widget/p-10adcbc3.system.entry.js.br +0 -0
  491. package/dist/geotrek-rando-widget/p-10adcbc3.system.entry.js.gz +0 -0
  492. package/dist/geotrek-rando-widget/p-11caf88d.entry.js.br +0 -0
  493. package/dist/geotrek-rando-widget/p-11caf88d.entry.js.gz +0 -0
  494. package/dist/geotrek-rando-widget/p-1ef5158a.entry.js +0 -2
  495. package/dist/geotrek-rando-widget/p-1ef5158a.entry.js.br +0 -0
  496. package/dist/geotrek-rando-widget/p-1ef5158a.entry.js.gz +0 -0
  497. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js +0 -2
  498. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js.br +0 -0
  499. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js.gz +0 -0
  500. package/dist/geotrek-rando-widget/p-382a4720.system.entry.js.map +0 -1
  501. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js +0 -2
  502. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js.br +0 -0
  503. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js.gz +0 -0
  504. package/dist/geotrek-rando-widget/p-3a9d9014.system.entry.js.map +0 -1
  505. package/dist/geotrek-rando-widget/p-4ab5c85d.js.br +0 -0
  506. package/dist/geotrek-rando-widget/p-4ab5c85d.js.gz +0 -0
  507. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js +0 -2
  508. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js.br +0 -0
  509. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js.gz +0 -0
  510. package/dist/geotrek-rando-widget/p-4fcc4a2d.system.js.map +0 -1
  511. package/dist/geotrek-rando-widget/p-5e1d038f.system.js +0 -2
  512. package/dist/geotrek-rando-widget/p-5e1d038f.system.js.br +0 -0
  513. package/dist/geotrek-rando-widget/p-5e1d038f.system.js.gz +0 -0
  514. package/dist/geotrek-rando-widget/p-5e1d038f.system.js.map +0 -1
  515. package/dist/geotrek-rando-widget/p-601c8983.js.br +0 -0
  516. package/dist/geotrek-rando-widget/p-601c8983.js.gz +0 -0
  517. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js +0 -2
  518. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js.br +0 -0
  519. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js.gz +0 -0
  520. package/dist/geotrek-rando-widget/p-6df1f0e1.entry.js.map +0 -1
  521. package/dist/geotrek-rando-widget/p-7102a4d3.system.entry.js.br +0 -0
  522. package/dist/geotrek-rando-widget/p-7102a4d3.system.entry.js.gz +0 -0
  523. package/dist/geotrek-rando-widget/p-74250f1d.system.entry.js.br +0 -0
  524. package/dist/geotrek-rando-widget/p-74250f1d.system.entry.js.gz +0 -0
  525. package/dist/geotrek-rando-widget/p-7a333892.system.js +0 -2
  526. package/dist/geotrek-rando-widget/p-7a333892.system.js.br +0 -0
  527. package/dist/geotrek-rando-widget/p-7a333892.system.js.gz +0 -0
  528. package/dist/geotrek-rando-widget/p-7a333892.system.js.map +0 -1
  529. package/dist/geotrek-rando-widget/p-7e076c7f.system.entry.js.br +0 -0
  530. package/dist/geotrek-rando-widget/p-7e076c7f.system.entry.js.gz +0 -0
  531. package/dist/geotrek-rando-widget/p-806676e7.js.br +0 -0
  532. package/dist/geotrek-rando-widget/p-806676e7.js.gz +0 -0
  533. package/dist/geotrek-rando-widget/p-806676e7.js.map +0 -1
  534. package/dist/geotrek-rando-widget/p-85aa6ae4.js +0 -2
  535. package/dist/geotrek-rando-widget/p-85aa6ae4.js.br +0 -0
  536. package/dist/geotrek-rando-widget/p-85aa6ae4.js.gz +0 -0
  537. package/dist/geotrek-rando-widget/p-85aa6ae4.js.map +0 -1
  538. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js +0 -2
  539. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js.br +0 -0
  540. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js.gz +0 -0
  541. package/dist/geotrek-rando-widget/p-8f1283ca.entry.js.map +0 -1
  542. package/dist/geotrek-rando-widget/p-906264e3.entry.js +0 -4
  543. package/dist/geotrek-rando-widget/p-906264e3.entry.js.br +0 -0
  544. package/dist/geotrek-rando-widget/p-906264e3.entry.js.gz +0 -0
  545. package/dist/geotrek-rando-widget/p-906264e3.entry.js.map +0 -1
  546. package/dist/geotrek-rando-widget/p-9298fb48.system.js.br +0 -0
  547. package/dist/geotrek-rando-widget/p-9298fb48.system.js.gz +0 -0
  548. package/dist/geotrek-rando-widget/p-a0d6a0dc.js.br +0 -0
  549. package/dist/geotrek-rando-widget/p-a0d6a0dc.js.gz +0 -0
  550. package/dist/geotrek-rando-widget/p-a9faad14.entry.js +0 -2
  551. package/dist/geotrek-rando-widget/p-a9faad14.entry.js.br +0 -0
  552. package/dist/geotrek-rando-widget/p-a9faad14.entry.js.gz +0 -0
  553. package/dist/geotrek-rando-widget/p-a9faad14.entry.js.map +0 -1
  554. package/dist/geotrek-rando-widget/p-bb81fb52.js +0 -2
  555. package/dist/geotrek-rando-widget/p-bb81fb52.js.br +0 -0
  556. package/dist/geotrek-rando-widget/p-bb81fb52.js.gz +0 -0
  557. package/dist/geotrek-rando-widget/p-bb81fb52.js.map +0 -1
  558. package/dist/geotrek-rando-widget/p-c08abeee.system.js.br +0 -0
  559. package/dist/geotrek-rando-widget/p-c08abeee.system.js.gz +0 -0
  560. package/dist/geotrek-rando-widget/p-d77c26bd.system.js.br +0 -0
  561. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js +0 -2
  562. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js.br +0 -0
  563. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js.gz +0 -0
  564. package/dist/geotrek-rando-widget/p-e28536dd.system.entry.js.map +0 -1
  565. package/dist/geotrek-rando-widget/p-e4da40fc.entry.js +0 -2
  566. package/dist/geotrek-rando-widget/p-e4da40fc.entry.js.br +0 -0
  567. package/dist/geotrek-rando-widget/p-e4da40fc.entry.js.gz +0 -0
  568. package/dist/geotrek-rando-widget/p-e622139c.entry.js.br +0 -0
  569. package/dist/geotrek-rando-widget/p-e622139c.entry.js.gz +0 -0
  570. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js +0 -4
  571. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js.br +0 -0
  572. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js.gz +0 -0
  573. package/dist/geotrek-rando-widget/p-f2cfa627.system.entry.js.map +0 -1
  574. /package/dist/esm-es5/{grw-db.service-37105839.js.map → grw-db.service-83da38c9.js.map} +0 -0
  575. /package/dist/esm-es5/{outdoor-courses.service-add4d256.js.map → outdoor-courses.service-d2397066.js.map} +0 -0
  576. /package/dist/esm-es5/{utils-c2e5c5b9.js.map → utils-5feb9281.js.map} +0 -0
  577. /package/dist/esm-es5/{web-fdc4d63f.js.map → web-9ea89c85.js.map} +0 -0
  578. /package/dist/geotrek-rando-widget/{p-10adcbc3.system.entry.js.map → p-0213328a.system.entry.js.map} +0 -0
  579. /package/dist/geotrek-rando-widget/{p-c08abeee.system.js.map → p-0dc681ee.system.js.map} +0 -0
  580. /package/dist/geotrek-rando-widget/{p-d77c26bd.system.js.map → p-315f99d3.system.js.map} +0 -0
  581. /package/dist/geotrek-rando-widget/{p-9298fb48.system.js.map → p-31cd5fb6.system.js.map} +0 -0
  582. /package/dist/geotrek-rando-widget/{p-7e076c7f.system.entry.js.map → p-346b21fe.system.entry.js.map} +0 -0
  583. /package/dist/geotrek-rando-widget/{p-74250f1d.system.entry.js.map → p-46cbc796.system.entry.js.map} +0 -0
  584. /package/dist/geotrek-rando-widget/{p-e622139c.entry.js.map → p-51c64ff4.entry.js.map} +0 -0
  585. /package/dist/geotrek-rando-widget/{p-0e80aabf.system.js.map → p-5a1c21ad.system.js.map} +0 -0
  586. /package/dist/geotrek-rando-widget/{p-11caf88d.entry.js.map → p-6287495f.entry.js.map} +0 -0
  587. /package/dist/geotrek-rando-widget/{p-7102a4d3.system.entry.js.map → p-6a4d2050.system.entry.js.map} +0 -0
  588. /package/dist/geotrek-rando-widget/{p-4ab5c85d.js.map → p-76467e71.js.map} +0 -0
  589. /package/dist/geotrek-rando-widget/{p-00654bc2.js.map → p-844f4321.js.map} +0 -0
  590. /package/dist/geotrek-rando-widget/{p-a0d6a0dc.js.map → p-b1ed0255.js.map} +0 -0
  591. /package/dist/geotrek-rando-widget/{p-e4da40fc.entry.js.map → p-eeedb77e.entry.js.map} +0 -0
  592. /package/dist/geotrek-rando-widget/{p-601c8983.js.map → p-fcbe4bb6.js.map} +0 -0
@@ -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: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}),state=_b.state,onChange=_b.onChange,reset=_b.reset;export{onChange as o,reset as r,state as s};
2
- //# sourceMappingURL=store-04f82731.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:[],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
@@ -0,0 +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":"uEAEA,IAAMA,YAAc,SAACC,EAAKC,EAAUC,GAChC,IAAMC,EAAQH,EAAII,IAAIH,GACtB,IAAKE,EAAO,CACRH,EAAIK,IAAIJ,EAAU,CAACC,GAC3B,MACS,IAAKC,EAAMG,SAASJ,GAAQ,CAC7BC,EAAMI,KAAKL,EACnB,CACA,EACA,IAAMM,SAAW,SAACC,EAAIC,GAClB,IAAIC,EACJ,OAAO,WAAC,IAAAC,EAAA,G,IAAA,IAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAO,CAAPD,EAAAC,GAAAC,UAAAD,E,CACJ,GAAIF,EAAW,CACXK,aAAaL,EACzB,CACQA,EAAYM,YAAW,WACnBN,EAAY,EACZF,EAAES,WAAA,EAAIN,EAClB,GAAWF,EACX,CACA,EAWA,IAAMS,YAAc,SAACC,GAAiB,QAAE,gBAAiBA,IAAiBA,EAAaD,WAAjD,EACtC,IAAME,gBAAkBb,UAAS,SAACR,GAC9B,IAAgB,IAAAa,EAAA,EAAAS,EAAAtB,EAAIuB,OAAJV,EAAAS,EAAAP,OAAAF,IAAY,CAAvB,IAAIW,EAAGF,EAAAT,GACRb,EAAIK,IAAImB,EAAKxB,EAAII,IAAIoB,GAAKC,OAAON,aACzC,CACA,GAAG,KACH,IAAMO,oBAAsB,WACxB,UAAWC,kBAAoB,WAAY,CAGvC,MAAO,EACf,CACI,IAAMC,EAAe,IAAIC,IACzB,MAAO,CACHC,QAAS,WAAM,OAAAF,EAAaG,OAAb,EACf3B,IAAK,SAACH,GACF,IAAM+B,EAAML,kBACZ,GAAIK,EAAK,CACLjC,YAAY6B,EAAc3B,EAAU+B,EACpD,CACA,EACQ3B,IAAK,SAACJ,GACF,IAAMgC,EAAWL,EAAaxB,IAAIH,GAClC,GAAIgC,EAAU,CACVL,EAAavB,IAAIJ,EAAUgC,EAASR,OAAOS,aAC3D,CACYb,gBAAgBO,EAC5B,EACQO,MAAO,WACHP,EAAaQ,SAAQ,SAACC,GAAS,OAAAA,EAAKD,QAAQF,YAAb,IAC/Bb,gBAAgBO,EAC5B,EAEA,EAEA,IAAMU,OAAS,SAACC,GAAG,cAAaA,IAAQ,WAAaA,IAAQA,CAA1C,EACnB,IAAMC,oBAAsB,SAACC,EAAcC,GAAA,GAAAA,SAAA,GAAAA,EAAA,SAAgBC,EAAGC,GAAM,OAAAD,IAAMC,CAAN,CAAO,CACvE,IAAMC,EAAiBP,OAAOG,GAC9B,IAAIK,EAAS,IAAIjB,IAAIkB,OAAOC,QAAQH,IAAmB,MAAQA,SAAwB,EAAIA,EAAiB,KAC5G,IAAMI,EAAW,CACbnB,QAAS,GACT1B,IAAK,GACLC,IAAK,GACL8B,MAAO,IAEX,IAAMA,EAAQ,WACV,IAAIe,EAGJJ,EAAS,IAAIjB,IAAIkB,OAAOC,SAASE,EAAKZ,OAAOG,MAAmB,MAAQS,SAAY,EAAIA,EAAK,KAC7FD,EAASd,MAAMC,SAAQ,SAACe,GAAO,OAAAA,GAAA,GACvC,EACI,IAAMrB,EAAU,WAGZmB,EAASnB,QAAQM,SAAQ,SAACe,GAAO,OAAAA,GAAA,IACjChB,GACR,EACI,IAAM/B,EAAM,SAACH,GACTgD,EAAS7C,IAAIgC,SAAQ,SAACe,GAAO,OAAAA,EAAGlD,EAAH,IAC7B,OAAO6C,EAAO1C,IAAIH,EAC1B,EACI,IAAMI,EAAM,SAACJ,EAAUC,GACnB,IAAMkD,EAAWN,EAAO1C,IAAIH,GAC5B,GAAIyC,EAAaxC,EAAOkD,EAAUnD,GAAW,CACzC6C,EAAOzC,IAAIJ,EAAUC,GACrB+C,EAAS5C,IAAI+B,SAAQ,SAACe,GAAO,OAAAA,EAAGlD,EAAUC,EAAOkD,EAApB,GACzC,CACA,EACI,IAAMC,SAAgBC,QAAU,YAC1B,GACA,IAAIA,MAAMT,EAAgB,CACxBzC,IAAG,SAACmD,EAAGtD,GACH,OAAOG,EAAIH,EAC3B,EACYuD,QAAO,SAACD,GACJ,OAAOE,MAAMC,KAAKZ,EAAOvB,OACzC,EACYoC,yBAAwB,WACpB,MAAO,CACHC,WAAY,KACZC,aAAc,KAElC,EACYC,IAAG,SAACP,EAAGtD,GACH,OAAO6C,EAAOgB,IAAI7D,EAClC,EACYI,IAAG,SAACkD,EAAGtD,EAAUC,GACbG,EAAIJ,EAAUC,GACd,OAAO,IACvB,IAEI,IAAM6D,EAAK,SAACC,EAAWC,GACnBhB,EAASe,GAAWzD,KAAK0D,GACzB,OAAO,WACHC,gBAAgBjB,EAASe,GAAYC,EACjD,CACA,EACI,IAAME,EAAW,SAAClE,EAAUkD,GACxB,IAAMiB,EAAQL,EAAG,OAAO,SAACvC,EAAK6C,GAC1B,GAAI7C,IAAQvB,EAAU,CAClBkD,EAAGkB,EACnB,CACA,IAGQ,IAAMC,EAAUP,EAAG,SAAS,WAAM,OAAAZ,EAAGb,OAAOG,GAAcxC,GAAxB,IAClC,OAAO,WACHmE,IACAE,GACZ,CACA,EACI,IAAMC,EAAM,WAAC,IAAAC,EAAA,G,IAAA,IAAA3D,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAgB,CAAhB2D,EAAA3D,GAAAC,UAAAD,E,CACT,IAAM4D,EAASD,EAAcE,QAAO,SAACD,EAAQE,GACzC,GAAIA,EAAatE,IAAK,CAClBoE,EAAOlE,KAAKwD,EAAG,MAAOY,EAAatE,KACnD,CACY,GAAIsE,EAAavE,IAAK,CAClBqE,EAAOlE,KAAKwD,EAAG,MAAOY,EAAavE,KACnD,CACY,GAAIuE,EAAaxC,MAAO,CACpBsC,EAAOlE,KAAKwD,EAAG,QAASY,EAAaxC,OACrD,CACY,GAAIwC,EAAa7C,QAAS,CACtB2C,EAAOlE,KAAKwD,EAAG,UAAWY,EAAa7C,SACvD,CACY,OAAO2C,CACnB,GAAW,IACH,OAAO,WAAM,OAAAA,EAAOrC,SAAQ,SAACwC,GAAU,OAAAA,GAAA,GAA1B,CACrB,EACI,IAAM1C,EAAc,SAACV,GACjB,IAAM4B,EAAWN,EAAO1C,IAAIoB,GAC5ByB,EAAS5C,IAAI+B,SAAQ,SAACe,GAAO,OAAAA,EAAG3B,EAAK4B,EAAUA,EAAlB,GACrC,EACI,MAAO,CACHC,MAAKA,EACLjD,IAAGA,EACHC,IAAGA,EACH0D,GAAEA,EACFI,SAAQA,EACRI,IAAGA,EACHzC,QAAOA,EACPK,MAAKA,EACLD,YAAWA,EAEnB,EACA,IAAMgC,gBAAkB,SAACW,EAAOC,GAC5B,IAAMC,EAAQF,EAAMG,QAAQF,GAC5B,GAAIC,GAAS,EAAG,CACZF,EAAME,GAASF,EAAMA,EAAM9D,OAAS,GACpC8D,EAAM9D,QACd,CACA,EAEA,IAAMkE,YAAc,SAACxC,EAAcC,GAC/B,IAAM1C,EAAMwC,oBAAoBC,EAAcC,GAC9C1C,EAAIuE,IAAI7C,uBACR,OAAO1B,CACX,ECtJM,IAAAsB,GAA6B2D,YAqFhC,CACDC,KAAM,KACNC,IAAK,KACLC,UAAW,KACXC,SAAU,KACVC,MAAO,KACPC,aAAc,KACdC,kBAAmB,KACnBC,iBAAkB,KAClBC,aAAc,KACdC,OAAQ,KACRC,UAAW,KACXC,OAAQ,KACRC,OAAQ,GACRC,UAAW,KACXC,QAAS,KACTC,WAAY,KACZC,sBAAuB,KACvBC,OAAQ,KACRC,UAAW,KACXC,QAAS,KACTC,QAAS,KACTC,aAAc,KACdC,gBAAiB,KACjBC,qBAAsB,KACtBC,SAAU,KACVC,YAAa,KACbC,YAAa,KACbC,wBAAyB,KACzBC,aAAc,MACdC,YAAa,KACbC,0BAA2B,EAC3BC,sBAAuB,EACvBC,wBAAyB,EACzBC,eAAgB,KAChBC,aAAc,KACdC,WAAY,KACZC,iBAAkB,KAClBC,eAAgB,KAChBC,sBAAuB,KACvBC,kBAAmB,KACnBC,yBAA0B,KAC1BC,8BAA+B,KAC/BC,2BAA4B,KAC5BC,wBAAyB,KACzBC,oBAAqB,KACrBC,gBAAiB,KACjBC,uBAAwB,KACxBC,4BAA6B,KAC7BC,oBAAqB,KACrBC,sBAAuB,KACvBC,2BAA4B,KAC5BC,yBAA0B,KAC1BC,SAAU,KACVC,qBAAsB,KACtBC,oBAAqB,KACrBC,oBAAqB,KACrBC,uBAAwB,KACxBC,wBAAyB,KACzBC,oBAAqB,KACrBC,oBAAqB,KACrBC,uBAAwB,KACxBC,oBAAqB,KACrBC,aAAc,MACdC,oBAAqB,KACrBC,aAAc,KACdC,yBAA0B,KAC1BC,sBAAuB,KACvBC,eAAgB,KAChBC,iBAAkB,KAClBC,iBAAkB,KAClBC,sBAAuB,KACvBC,mBAAoB,KACpBC,2BAA4B,KAC5BC,6BAA8B,KAC9BC,wBAAyB,KACzBC,mBAAoB,KACpBC,qBAAsB,KACtBC,eAAgB,KAChBC,oBAAqB,KACrBC,oBAAqB,MACrBC,gBAAiB,KACjBC,sBAAuB,EACvBC,oBAAqB,EACrBC,SAAU,IAzKJhH,MAAK/B,GAAA+B,MAAEc,SAAQ7C,GAAA6C,SAAEhC,MAAKb,GAAAa,a","ignoreList":[]}
@@ -0,0 +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
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getTrekGeometry","id","fetch","concat","state","api","language","cache","then","response","json","getTreksList","inBbox","cities","districts","structures","themes","portals","routes","practices","labels","init","treksRequest","getAllPaginatedResults","getTrek","trekId","getDistricts","trekIsAvailableOffline","getDataInStore","trek","_a","sent","offline","getPoisNearTrekCount","getPoisNearTrek","getSensitiveAreasNearTrek","getCities","url","join","getThemes","getInformationsDesks","getSources","getSignages","getTrekNetwork","getTrekAccessibility","getLabel"],"sources":["src/services/treks.service.ts"],"sourcesContent":["import { Build } from '@stencil/core';\nimport state from 'store/store';\nimport { getDataInStore } from './grw-db.service';\nimport { getAllPaginatedResults } from '../utils/utils';\n\nexport function getTrekGeometry(id: number) {\n return fetch(`${state.api}trek/${id}/?language=${state.language}&published=true&fields=geometry`, { cache: Build.isDev ? 'force-cache' : 'default' }).then(response =>\n response.json(),\n );\n}\n\nexport function getTreksList(api, language, inBbox, cities, districts, structures, themes, portals, routes, practices, labels, init) {\n let treksRequest = `${api}trek/?language=${language}&published=true`;\n\n inBbox && (treksRequest += `&in_bbox=${inBbox}`);\n cities && (treksRequest += `&cities=${cities}`);\n districts && (treksRequest += `&districts=${districts}`);\n structures && (treksRequest += `&structures=${structures}`);\n themes && (treksRequest += `&themes=${themes}`);\n portals && (treksRequest += `&portals=${portals}`);\n routes && (treksRequest += `&routes=${routes}`);\n practices && (treksRequest += `&practices=${practices}`);\n labels && (treksRequest += `&labels=${labels}`);\n\n treksRequest += `&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts`;\n\n return getAllPaginatedResults(treksRequest, init);\n}\n\nexport function getTrek(api, language, trekId, init) {\n return fetch(\n `${api}trek/${trekId}/?language=${language}&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`,\n init,\n );\n}\n\nexport function getDistricts(api, language, init) {\n return getAllPaginatedResults(`${api}district/?language=${language}&fields=id,name&published=true`, init);\n}\n\nexport async function trekIsAvailableOffline(trekId) {\n const trek = await getDataInStore('treks', trekId);\n return trek && trek.offline;\n}\n\nexport function getPoisNearTrekCount(api, language, trekId, init) {\n return fetch(`${api}poi/?language=${language}&trek=${trekId}&published=true&fields=id&page_size=1`, init);\n}\n\nexport function getPoisNearTrek(api, language, trekId, init) {\n return getAllPaginatedResults(`${api}poi/?language=${language}&trek=${trekId}&published=true&fields=id,name,description,attachments,type,geometry`, init);\n}\n\nexport function getSensitiveAreasNearTrek(api, language, trekId, init) {\n return fetch(`${api}sensitivearea/?language=${language}&published=true&trek=${trekId}&period=ignore&fields=id,geometry,name,description,contact,info_url,period,practices`, init);\n}\n\nexport function getCities(api, language, init, cities?) {\n let url = `${api}city/?language=${language}&fields=id,code,name&published=true`;\n if (cities) {\n url += `&ids=${cities.join(',')}`;\n }\n return getAllPaginatedResults(url, init);\n}\n\nexport function getThemes(api, language, portals, init) {\n return fetch(`${api}theme/?language=${language}${portals ? '&portals='.concat(portals) : ''}&fields=id,label,pictogram`, init);\n}\n\nexport function getInformationsDesks(api, language, init) {\n return getAllPaginatedResults(\n `${api}informationdesk/?language=${language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude`,\n init,\n );\n}\n\nexport function getSources(api, language, init) {\n return fetch(`${api}source/?language=${language}&fields=id,name,website,pictogram`, init);\n}\n\nexport function getSignages(api, language, trekId, init) {\n return getAllPaginatedResults(`${api}signage/?language=${language}&near_trek=${trekId}&fields=id,geometry,name&published=true`, init);\n}\n\nexport function getTrekNetwork(api, language, init) {\n return getAllPaginatedResults(`${api}trek_network/?language=${language}&published=true&fields=id,label,pictogram`, init);\n}\n\nexport function getTrekAccessibility(api: string, language: string, portals: string, init: RequestInit): any {\n return getAllPaginatedResults(`${api}trek_accessibility/?language=${language}${portals ? '&portals='.concat(portals) : ''}&fields=id,name,pictogram&published=true`, init);\n}\n\nexport function getLabel(api: string, language: string, portals: string, init: RequestInit) {\n return getAllPaginatedResults(`${api}label/?language=${language}${portals ? '&portals='.concat(portals) : ''}&fields=id,name,advice,pictogram,filter&published=true`, init);\n}\n"],"mappings":"0pDAKgBA,gBAAgBC,GAC9B,OAAOC,MAAM,GAAAC,OAAGC,MAAMC,IAAG,SAAAF,OAAQF,EAAE,eAAAE,OAAcC,MAAME,SAAQ,mCAAmC,CAAEC,MAAqC,YAAaC,MAAK,SAAAC,GACzJ,OAAAA,EAASC,MAAT,GAEJ,C,SAEgBC,aAAaN,EAAKC,EAAUM,EAAQC,EAAQC,EAAWC,EAAYC,EAAQC,EAASC,EAAQC,EAAWC,EAAQC,GAC7H,IAAIC,EAAe,GAAAnB,OAAGE,EAAG,mBAAAF,OAAkBG,EAAQ,mBAEnDM,IAAWU,GAAgB,YAAAnB,OAAYS,IACvCC,IAAWS,GAAgB,WAAAnB,OAAWU,IACtCC,IAAcQ,GAAgB,cAAAnB,OAAcW,IAC5CC,IAAeO,GAAgB,eAAAnB,OAAeY,IAC9CC,IAAWM,GAAgB,WAAAnB,OAAWa,IACtCC,IAAYK,GAAgB,YAAAnB,OAAYc,IACxCC,IAAWI,GAAgB,WAAAnB,OAAWe,IACtCC,IAAcG,GAAgB,cAAAnB,OAAcgB,IAC5CC,IAAWE,GAAgB,WAAAnB,OAAWiB,IAEtCE,GAAgB,4LAEhB,OAAOC,uBAAuBD,EAAcD,EAC9C,C,SAEgBG,QAAQnB,EAAKC,EAAUmB,EAAQJ,GAC7C,OAAOnB,MACL,GAAAC,OAAGE,EAAG,SAAAF,OAAQsB,EAAM,eAAAtB,OAAcG,EAAQ,knBAC1Ce,EAEJ,C,SAEgBK,aAAarB,EAAKC,EAAUe,GAC1C,OAAOE,uBAAuB,GAAApB,OAAGE,EAAG,uBAAAF,OAAsBG,EAAQ,kCAAkCe,EACtG,CAEO,SAAeM,uBAAuBF,G,kHAC9B,SAAMG,eAAe,QAASH,I,OAArCI,EAAOC,EAAAC,OACb,SAAOF,GAAQA,EAAKG,S,gBAGNC,qBAAqB5B,EAAKC,EAAUmB,EAAQJ,GAC1D,OAAOnB,MAAM,GAAAC,OAAGE,EAAG,kBAAAF,OAAiBG,EAAQ,UAAAH,OAASsB,EAAM,yCAAyCJ,EACtG,C,SAEgBa,gBAAgB7B,EAAKC,EAAUmB,EAAQJ,GACrD,OAAOE,uBAAuB,GAAApB,OAAGE,EAAG,kBAAAF,OAAiBG,EAAQ,UAAAH,OAASsB,EAAM,wEAAwEJ,EACtJ,C,SAEgBc,0BAA0B9B,EAAKC,EAAUmB,EAAQJ,GAC/D,OAAOnB,MAAM,GAAAC,OAAGE,EAAG,4BAAAF,OAA2BG,EAAQ,yBAAAH,OAAwBsB,EAAM,wFAAwFJ,EAC9K,C,SAEgBe,UAAU/B,EAAKC,EAAUe,EAAMR,GAC7C,IAAIwB,EAAM,GAAAlC,OAAGE,EAAG,mBAAAF,OAAkBG,EAAQ,uCAC1C,GAAIO,EAAQ,CACVwB,GAAO,QAAAlC,OAAQU,EAAOyB,KAAK,K,CAE7B,OAAOf,uBAAuBc,EAAKhB,EACrC,C,SAEgBkB,UAAUlC,EAAKC,EAAUW,EAASI,GAChD,OAAOnB,MAAM,GAAAC,OAAGE,EAAG,oBAAAF,OAAmBG,GAAQH,OAAGc,EAAU,YAAYd,OAAOc,GAAW,GAAE,8BAA8BI,EAC3H,C,SAEgBmB,qBAAqBnC,EAAKC,EAAUe,GAClD,OAAOE,uBACL,GAAApB,OAAGE,EAAG,8BAAAF,OAA6BG,EAAQ,qHAC3Ce,EAEJ,C,SAEgBoB,WAAWpC,EAAKC,EAAUe,GACxC,OAAOnB,MAAM,GAAAC,OAAGE,EAAG,qBAAAF,OAAoBG,EAAQ,qCAAqCe,EACtF,C,SAEgBqB,YAAYrC,EAAKC,EAAUmB,EAAQJ,GACjD,OAAOE,uBAAuB,GAAApB,OAAGE,EAAG,sBAAAF,OAAqBG,EAAQ,eAAAH,OAAcsB,EAAM,2CAA2CJ,EAClI,C,SAEgBsB,eAAetC,EAAKC,EAAUe,GAC5C,OAAOE,uBAAuB,GAAApB,OAAGE,EAAG,2BAAAF,OAA0BG,EAAQ,6CAA6Ce,EACrH,C,SAEgBuB,qBAAqBvC,EAAaC,EAAkBW,EAAiBI,GACnF,OAAOE,uBAAuB,GAAApB,OAAGE,EAAG,iCAAAF,OAAgCG,GAAQH,OAAGc,EAAU,YAAYd,OAAOc,GAAW,GAAE,4CAA4CI,EACvK,C,SAEgBwB,SAASxC,EAAaC,EAAkBW,EAAiBI,GACvE,OAAOE,uBAAuB,GAAApB,OAAGE,EAAG,oBAAAF,OAAmBG,GAAQH,OAAGc,EAAU,YAAYd,OAAOc,GAAW,GAAE,0DAA0DI,EACxK,Q","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};import{s as state}from"./store-04f82731.js";
2
- /*! Capacitor: https://capacitorjs.com/ - MIT License */var ExceptionCode;(function(e){e["Unimplemented"]="UNIMPLEMENTED";e["Unavailable"]="UNAVAILABLE"})(ExceptionCode||(ExceptionCode={}));var CapacitorException=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.message=t;i.code=r;i.data=n;return i}return t}(Error);var getPlatformId=function(e){var t,r;if(e===null||e===void 0?void 0:e.androidBridge){return"android"}else if((r=(t=e===null||e===void 0?void 0:e.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||r===void 0?void 0:r.bridge){return"ios"}else{return"web"}};var createCapacitor=function(e){var t,r,n,i,o;var a=e.CapacitorCustomPlatform||null;var u=e.Capacitor||{};var s=u.Plugins=u.Plugins||{};var c=e.CapacitorPlatforms;var f=function(){return a!==null?a.name:getPlatformId(e)};var l=((t=c===null||c===void 0?void 0:c.currentPlatform)===null||t===void 0?void 0:t.getPlatform)||f;var d=function(){return l()!=="web"};var v=((r=c===null||c===void 0?void 0:c.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||d;var p=function(e){var t=w.get(e);if(t===null||t===void 0?void 0:t.platforms.has(l())){return true}if(_(e)){return true}return false};var y=((n=c===null||c===void 0?void 0:c.currentPlatform)===null||n===void 0?void 0:n.isPluginAvailable)||p;var h=function(e){var t;return(t=u.PluginHeaders)===null||t===void 0?void 0:t.find((function(t){return t.name===e}))};var _=((i=c===null||c===void 0?void 0:c.currentPlatform)===null||i===void 0?void 0:i.getPluginHeader)||h;var m=function(t){return e.console.error(t)};var g=function(e,t,r){return Promise.reject("".concat(r,' does not have an implementation of "').concat(t,'".'))};var w=new Map;var A=function(e,t){if(t===void 0){t={}}var r=w.get(e);if(r){console.warn('Capacitor plugin "'.concat(e,'" already registered. Cannot register plugins twice.'));return r.proxy}var n=l();var i=_(e);var o;var c=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:if(!(!o&&n in t))return[3,4];if(!(typeof t[n]==="function"))return[3,2];return[4,t[n]()];case 1:e=o=i.sent();return[3,3];case 2:e=o=t[n];i.label=3;case 3:o=e;return[3,8];case 4:if(!(a!==null&&!o&&"web"in t))return[3,8];if(!(typeof t["web"]==="function"))return[3,6];return[4,t["web"]()];case 5:r=o=i.sent();return[3,7];case 6:r=o=t["web"];i.label=7;case 7:o=r;i.label=8;case 8:return[2,o]}}))}))};var f=function(t,r){var o,a;if(i){var s=i===null||i===void 0?void 0:i.methods.find((function(e){return r===e.name}));if(s){if(s.rtype==="promise"){return function(t){return u.nativePromise(e,r.toString(),t)}}else{return function(t,n){return u.nativeCallback(e,r.toString(),t,n)}}}else if(t){return(o=t[r])===null||o===void 0?void 0:o.bind(t)}}else if(t){return(a=t[r])===null||a===void 0?void 0:a.bind(t)}else{throw new CapacitorException('"'.concat(e,'" plugin is not implemented on ').concat(n),ExceptionCode.Unimplemented)}};var d=function(t){var r;var i=function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var a=c().then((function(o){var a=f(o,t);if(a){var u=a.apply(void 0,i);r=u===null||u===void 0?void 0:u.remove;return u}else{throw new CapacitorException('"'.concat(e,".").concat(t,'()" is not implemented on ').concat(n),ExceptionCode.Unimplemented)}}));if(t==="addListener"){a.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r()]}))}))}}return a};i.toString=function(){return"".concat(t.toString(),"() { [capacitor code] }")};Object.defineProperty(i,"name",{value:t,writable:false,configurable:false});return i};var v=d("addListener");var p=d("removeListener");var y=function(e,t){var r=v({eventName:e},t);var n=function(){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(i){switch(i.label){case 0:return[4,r];case 1:n=i.sent();p({eventName:e,callbackId:n},t);return[2]}}))}))};var i=new Promise((function(e){return r.then((function(){return e({remove:n})}))}));i.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,n()];case 1:e.sent();return[2]}}))}))};return i};var h=new Proxy({},{get:function(e,t){switch(t){case"$$typeof":return undefined;case"toJSON":return function(){return{}};case"addListener":return i?y:v;case"removeListener":return p;default:return d(t)}}});s[e]=h;w.set(e,{name:e,proxy:h,platforms:new Set(__spreadArray(__spreadArray([],Object.keys(t),true),i?[n]:[],true))});return h};var b=((o=c===null||c===void 0?void 0:c.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||A;if(!u.convertFileSrc){u.convertFileSrc=function(e){return e}}u.getPlatform=l;u.handleError=m;u.isNativePlatform=v;u.isPluginAvailable=y;u.pluginMethodNoop=g;u.registerPlugin=b;u.Exception=CapacitorException;u.DEBUG=!!u.DEBUG;u.isLoggingEnabled=!!u.isLoggingEnabled;u.platform=u.getPlatform();u.isNative=u.isNativePlatform();return u};var initCapacitorGlobal=function(e){return e.Capacitor=createCapacitor(e)};var Capacitor=initCapacitorGlobal(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:{});var registerPlugin=Capacitor.registerPlugin;var WebPlugin=function(){function e(e){this.listeners={};this.windowListeners={};if(e){console.warn('Capacitor WebPlugin "'.concat(e.name,'" config object was deprecated in v3 and will be removed in v4.'));this.config=e}}e.prototype.addListener=function(e,t){var r=this;var n=this.listeners[e];if(!n){this.listeners[e]=[]}this.listeners[e].push(t);var i=this.windowListeners[e];if(i&&!i.registered){this.addWindowListener(i)}var o=function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this.removeListener(e,t)]}))}))};var a=Promise.resolve({remove:o});Object.defineProperty(a,"remove",{value:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,o()];case 1:e.sent();return[2]}}))}))}});return a};e.prototype.removeAllListeners=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){this.listeners={};for(e in this.windowListeners){this.removeWindowListener(this.windowListeners[e])}this.windowListeners={};return[2]}))}))};e.prototype.notifyListeners=function(e,t){var r=this.listeners[e];if(r){r.forEach((function(e){return e(t)}))}};e.prototype.hasListeners=function(e){return!!this.listeners[e].length};e.prototype.registerWindowListener=function(e,t){var r=this;this.windowListeners[t]={registered:false,windowEventName:e,pluginEventName:t,handler:function(e){r.notifyListeners(t,e)}}};e.prototype.unimplemented=function(e){if(e===void 0){e="not implemented"}return new Capacitor.Exception(e,ExceptionCode.Unimplemented)};e.prototype.unavailable=function(e){if(e===void 0){e="not available"}return new Capacitor.Exception(e,ExceptionCode.Unavailable)};e.prototype.removeListener=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){r=this.listeners[e];if(!r){return[2]}n=r.indexOf(t);this.listeners[e].splice(n,1);if(!this.listeners[e].length){this.removeWindowListener(this.windowListeners[e])}return[2]}))}))};e.prototype.addWindowListener=function(e){window.addEventListener(e.windowEventName,e.handler);e.registered=true};e.prototype.removeWindowListener=function(e){if(!e){return}window.removeEventListener(e.windowEventName,e.handler);e.registered=false};return e}();var encode=function(e){return encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)};var decode=function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)};var CapacitorCookiesPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){e=document.cookie;t={};e.split(";").forEach((function(e){if(e.length<=0)return;var r=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE"),n=r[0],i=r[1];n=decode(n).trim();i=decode(i).trim();t[n]=i}));return[2,t]}))}))};t.prototype.setCookie=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o;return __generator(this,(function(a){try{t=encode(e.key);r=encode(e.value);n="; expires=".concat((e.expires||"").replace("expires=",""));i=(e.path||"/").replace("path=","");o=e.url!=null&&e.url.length>0?"domain=".concat(e.url):"";document.cookie="".concat(t,"=").concat(r||"").concat(n,"; path=").concat(i,"; ").concat(o,";")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.deleteCookie=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{document.cookie="".concat(e.key,"=; Max-Age=0")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){try{e=document.cookie.split(";")||[];for(t=0,r=e;t<r.length;t++){n=r[t];document.cookie=n.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat((new Date).toUTCString(),";path=/"))}}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearAllCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,this.clearCookies()];case 1:t.sent();return[3,3];case 2:e=t.sent();return[2,Promise.reject(e)];case 3:return[2]}}))}))};return t}(WebPlugin);registerPlugin("CapacitorCookies",{web:function(){return new CapacitorCookiesPluginWeb}});var readBlobAsBase64=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,new Promise((function(t,r){var n=new FileReader;n.onload=function(){var e=n.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)};n.onerror=function(e){return r(e)};n.readAsDataURL(e)}))]}))}))};var normalizeHttpHeaders=function(e){if(e===void 0){e={}}var t=Object.keys(e);var r=Object.keys(e).map((function(e){return e.toLocaleLowerCase()}));var n=r.reduce((function(r,n,i){r[n]=e[t[i]];return r}),{});return n};var buildUrlParams=function(e,t){if(t===void 0){t=true}if(!e)return null;var r=Object.entries(e).reduce((function(e,r){var n=r[0],i=r[1];var o;var a;if(Array.isArray(i)){a="";i.forEach((function(e){o=t?encodeURIComponent(e):e;a+="".concat(n,"=").concat(o,"&")}));a.slice(0,-1)}else{o=t?encodeURIComponent(i):i;a="".concat(n,"=").concat(o)}return"".concat(e,"&").concat(a)}),"");return r.substr(1)};var buildRequestInit=function(e,t){if(t===void 0){t={}}var r=Object.assign({method:e.method||"GET",headers:e.headers},t);var n=normalizeHttpHeaders(e.headers);var i=n["content-type"]||"";if(typeof e.data==="string"){r.body=e.data}else if(i.includes("application/x-www-form-urlencoded")){var o=new URLSearchParams;for(var a=0,u=Object.entries(e.data||{});a<u.length;a++){var s=u[a],c=s[0],f=s[1];o.set(c,f)}r.body=o.toString()}else if(i.includes("multipart/form-data")||e.data instanceof FormData){var l=new FormData;if(e.data instanceof FormData){e.data.forEach((function(e,t){l.append(t,e)}))}else{for(var d=0,v=Object.keys(e.data);d<v.length;d++){var c=v[d];l.append(c,e.data[c])}}r.body=l;var p=new Headers(r.headers);p.delete("content-type");r.headers=p}else if(i.includes("application/json")||typeof e.data==="object"){r.body=JSON.stringify(e.data)}return r};var CapacitorHttpPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.request=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,u,s,c,f,l;return __generator(this,(function(d){switch(d.label){case 0:t=buildRequestInit(e,e.webFetchExtra);r=buildUrlParams(e.params,e.shouldEncodeUrlParams);n=r?"".concat(e.url,"?").concat(r):e.url;return[4,fetch(n,t)];case 1:i=d.sent();o=i.headers.get("content-type")||"";a=(i.ok?e:{}).responseType,u=a===void 0?"text":a;if(o.includes("application/json")){u="json"}f=u;switch(f){case"arraybuffer":return[3,2];case"blob":return[3,2];case"json":return[3,5];case"document":return[3,7];case"text":return[3,7]}return[3,7];case 2:return[4,i.blob()];case 3:c=d.sent();return[4,readBlobAsBase64(c)];case 4:s=d.sent();return[3,9];case 5:return[4,i.json()];case 6:s=d.sent();return[3,9];case 7:return[4,i.text()];case 8:s=d.sent();d.label=9;case 9:l={};i.headers.forEach((function(e,t){l[t]=e}));return[2,{data:s,headers:l,status:i.status,url:i.url}]}}))}))};t.prototype.get=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"GET"}))]}))}))};t.prototype.post=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"POST"}))]}))}))};t.prototype.put=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PUT"}))]}))}))};t.prototype.patch=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))]}))}))};t.prototype.delete=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))]}))}))};return t}(WebPlugin);registerPlugin("CapacitorHttp",{web:function(){return new CapacitorHttpPluginWeb}});var Directory;(function(e){e["Documents"]="DOCUMENTS";e["Data"]="DATA";e["Library"]="LIBRARY";e["Cache"]="CACHE";e["External"]="EXTERNAL";e["ExternalStorage"]="EXTERNAL_STORAGE"})(Directory||(Directory={}));var Encoding;(function(e){e["UTF8"]="utf8";e["ASCII"]="ascii";e["UTF16"]="utf16"})(Encoding||(Encoding={}));var Filesystem=registerPlugin("Filesystem",{web:function(){return import("./web-fdc4d63f.js").then((function(e){return new e.FilesystemWeb}))}});function formatDuration(e){var t="";if(e<24){if(Math.floor(e)!==0){t+="".concat(Math.floor(e),"h")}if(e%1>0){t+="".concat(Math.round(60*(e%1)),"min")}}else{t+="".concat(Math.round(e/24),"j")}return t}function formatLength(e){return"".concat(Math.round(e/1e3),"km")}function formatAscent(e){return"+".concat(e,"m")}function formatDescent(e){return"".concat(e,"m")}var treksFilters=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicContentsFilters=[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicEventsFilters=[{property:"touristicEventTypes",touristicEventProperty:"type",touristicEventPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicEventProperty:"cities",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicEventProperty:"districts",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var outdoorSitesFilters=[{property:"outdoorPractices",outdoorSiteProperty:"practice",outdoorSitePropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"outdoorSiteTypes",outdoorSiteProperty:"type",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",outdoorSiteProperty:"cities",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",outdoorSiteProperty:"districts",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"themes",outdoorSiteProperty:"themes",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedThemesFilters"}];function handleTreksFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.trekProperty]>=n.minValue&&e[r.trekProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.treks.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty]>=i&&e[r.trekProperty]<=o})),true)}}}};for(var n=0,i=treksFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.treks;a=a.filter((function(e){return!state.offlineTreks||state.offlineTreks&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicContentsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicContentProperty]>=n.minValue&&e[r.touristicContentProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicContents.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty]>=i&&e[r.touristicContentProperty]<=o})),true)}}}};for(var n=0,i=touristicContentsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicContents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicEventsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicEventProperty]>=n.minValue&&e[r.touristicEventProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicEvents.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty]>=i&&e[r.touristicEventProperty]<=o})),true)}}}};for(var n=0,i=touristicEventsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicEvents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleOutdoorSitesFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.outdoorSiteProperty]>=n.minValue&&e[r.outdoorSiteProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.outdoorSites.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty]>=i&&e[r.outdoorSiteProperty]<=o})),true)}}}};for(var n=0,i=outdoorSitesFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.outdoorSites;a=a.filter((function(e){return!state.offlineOutdoorSites||state.offlineOutdoorSites&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}var durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];var lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];var elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];function getFilesToStore(e,t,r,n){if(r===void 0){r=false}if(n===void 0){n=[]}var i=[];for(var o=0,a=Object.keys(e);o<a.length;o++){var u=a[o];if(e[u]){if(typeof e[u]==="object"&&(!Array.isArray(e[u])||!r)){i.push.apply(i,getFilesToStore(e[u],t,r,n))}else if(typeof e[u]==="string"&&t.test(e[u].toLowerCase())){if(!n.includes(u)){i.push(e[u])}}else if(typeof e[u]==="object"&&Array.isArray(e[u])&&r&&e[u].length>0){i.push.apply(i,getFilesToStore(e[u][0],t,r,n))}}}return __spreadArray([],new Set(i),true)}function setFilesFromStore(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,8];o=i[n];if(!e[o])return[3,7];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,7];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,7];if(!!r.includes(o))return[3,7];if(!!Capacitor.isNativePlatform())return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){e[o]=window.URL.createObjectURL(a.data)}return[3,7];case 5:return[4,Filesystem.getUri({path:e[o],directory:Directory.Data})];case 6:a=u.sent();if(a){e[o]=Capacitor.convertFileSrc(a.uri)}u.label=7;case 7:n++;return[3,1];case 8:return[2]}}))}))}function revokeObjectURL(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,6];o=i[n];if(!!r.includes(o))return[3,5];if(!e[o])return[3,5];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,5];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){URL.revokeObjectURL(e[o])}u.label=5;case 5:n++;return[3,1];case 6:return[2]}}))}))}var imagesRegExp=new RegExp("^(http(s)?://|www.).*(.png|.jpg|.jpeg|.svg)$");function getFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.readFile({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function checkFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.stat({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function getAllPaginatedResults(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,u,s;return __generator(this,(function(c){switch(c.label){case 0:return[4,fetch(e,t)];case 1:r=c.sent();return[4,r.json()];case 2:n=c.sent();i=n.results;o=n.next;c.label=3;case 3:if(!o)return[3,6];return[4,fetch(o,t)];case 4:a=c.sent();return[4,a.json()];case 5:u=c.sent();i=i.concat(u.results);o=u.next;return[3,3];case 6:s=new Response(JSON.stringify(Object.assign(Object.assign({},n),{results:i,next:null,count:i.length})));return[2,s]}}))}))}export{Capacitor as C,Directory as D,Encoding as E,Filesystem as F,WebPlugin as W,handleOutdoorSitesFiltersAndSearch as a,registerPlugin as b,checkFileInStore as c,getAllPaginatedResults as d,touristicContentsFilters as e,touristicEventsFilters as f,getFilesToStore as g,handleTreksFiltersAndSearch as h,imagesRegExp as i,handleTouristicContentsFiltersAndSearch as j,handleTouristicEventsFiltersAndSearch as k,getFileInStore as l,formatDuration as m,formatLength as n,outdoorSitesFilters as o,formatAscent as p,formatDescent as q,revokeObjectURL as r,setFilesFromStore as s,treksFilters as t,durations as u,lengths as v,elevations as w,buildRequestInit as x};
3
- //# sourceMappingURL=utils-c2e5c5b9.js.map
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};import{s as state}from"./store-882ab9be.js";
2
+ /*! Capacitor: https://capacitorjs.com/ - MIT License */var ExceptionCode;(function(e){e["Unimplemented"]="UNIMPLEMENTED";e["Unavailable"]="UNAVAILABLE"})(ExceptionCode||(ExceptionCode={}));var CapacitorException=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.message=t;i.code=r;i.data=n;return i}return t}(Error);var getPlatformId=function(e){var t,r;if(e===null||e===void 0?void 0:e.androidBridge){return"android"}else if((r=(t=e===null||e===void 0?void 0:e.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||r===void 0?void 0:r.bridge){return"ios"}else{return"web"}};var createCapacitor=function(e){var t,r,n,i,o;var a=e.CapacitorCustomPlatform||null;var u=e.Capacitor||{};var s=u.Plugins=u.Plugins||{};var c=e.CapacitorPlatforms;var f=function(){return a!==null?a.name:getPlatformId(e)};var l=((t=c===null||c===void 0?void 0:c.currentPlatform)===null||t===void 0?void 0:t.getPlatform)||f;var d=function(){return l()!=="web"};var v=((r=c===null||c===void 0?void 0:c.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||d;var p=function(e){var t=w.get(e);if(t===null||t===void 0?void 0:t.platforms.has(l())){return true}if(_(e)){return true}return false};var y=((n=c===null||c===void 0?void 0:c.currentPlatform)===null||n===void 0?void 0:n.isPluginAvailable)||p;var h=function(e){var t;return(t=u.PluginHeaders)===null||t===void 0?void 0:t.find((function(t){return t.name===e}))};var _=((i=c===null||c===void 0?void 0:c.currentPlatform)===null||i===void 0?void 0:i.getPluginHeader)||h;var m=function(t){return e.console.error(t)};var g=function(e,t,r){return Promise.reject("".concat(r,' does not have an implementation of "').concat(t,'".'))};var w=new Map;var A=function(e,t){if(t===void 0){t={}}var r=w.get(e);if(r){console.warn('Capacitor plugin "'.concat(e,'" already registered. Cannot register plugins twice.'));return r.proxy}var n=l();var i=_(e);var o;var c=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:if(!(!o&&n in t))return[3,4];if(!(typeof t[n]==="function"))return[3,2];return[4,t[n]()];case 1:e=o=i.sent();return[3,3];case 2:e=o=t[n];i.label=3;case 3:o=e;return[3,8];case 4:if(!(a!==null&&!o&&"web"in t))return[3,8];if(!(typeof t["web"]==="function"))return[3,6];return[4,t["web"]()];case 5:r=o=i.sent();return[3,7];case 6:r=o=t["web"];i.label=7;case 7:o=r;i.label=8;case 8:return[2,o]}}))}))};var f=function(t,r){var o,a;if(i){var s=i===null||i===void 0?void 0:i.methods.find((function(e){return r===e.name}));if(s){if(s.rtype==="promise"){return function(t){return u.nativePromise(e,r.toString(),t)}}else{return function(t,n){return u.nativeCallback(e,r.toString(),t,n)}}}else if(t){return(o=t[r])===null||o===void 0?void 0:o.bind(t)}}else if(t){return(a=t[r])===null||a===void 0?void 0:a.bind(t)}else{throw new CapacitorException('"'.concat(e,'" plugin is not implemented on ').concat(n),ExceptionCode.Unimplemented)}};var d=function(t){var r;var i=function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var a=c().then((function(o){var a=f(o,t);if(a){var u=a.apply(void 0,i);r=u===null||u===void 0?void 0:u.remove;return u}else{throw new CapacitorException('"'.concat(e,".").concat(t,'()" is not implemented on ').concat(n),ExceptionCode.Unimplemented)}}));if(t==="addListener"){a.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r()]}))}))}}return a};i.toString=function(){return"".concat(t.toString(),"() { [capacitor code] }")};Object.defineProperty(i,"name",{value:t,writable:false,configurable:false});return i};var v=d("addListener");var p=d("removeListener");var y=function(e,t){var r=v({eventName:e},t);var n=function(){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(i){switch(i.label){case 0:return[4,r];case 1:n=i.sent();p({eventName:e,callbackId:n},t);return[2]}}))}))};var i=new Promise((function(e){return r.then((function(){return e({remove:n})}))}));i.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,n()];case 1:e.sent();return[2]}}))}))};return i};var h=new Proxy({},{get:function(e,t){switch(t){case"$$typeof":return undefined;case"toJSON":return function(){return{}};case"addListener":return i?y:v;case"removeListener":return p;default:return d(t)}}});s[e]=h;w.set(e,{name:e,proxy:h,platforms:new Set(__spreadArray(__spreadArray([],Object.keys(t),true),i?[n]:[],true))});return h};var b=((o=c===null||c===void 0?void 0:c.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||A;if(!u.convertFileSrc){u.convertFileSrc=function(e){return e}}u.getPlatform=l;u.handleError=m;u.isNativePlatform=v;u.isPluginAvailable=y;u.pluginMethodNoop=g;u.registerPlugin=b;u.Exception=CapacitorException;u.DEBUG=!!u.DEBUG;u.isLoggingEnabled=!!u.isLoggingEnabled;u.platform=u.getPlatform();u.isNative=u.isNativePlatform();return u};var initCapacitorGlobal=function(e){return e.Capacitor=createCapacitor(e)};var Capacitor=initCapacitorGlobal(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:{});var registerPlugin=Capacitor.registerPlugin;var WebPlugin=function(){function e(e){this.listeners={};this.windowListeners={};if(e){console.warn('Capacitor WebPlugin "'.concat(e.name,'" config object was deprecated in v3 and will be removed in v4.'));this.config=e}}e.prototype.addListener=function(e,t){var r=this;var n=this.listeners[e];if(!n){this.listeners[e]=[]}this.listeners[e].push(t);var i=this.windowListeners[e];if(i&&!i.registered){this.addWindowListener(i)}var o=function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this.removeListener(e,t)]}))}))};var a=Promise.resolve({remove:o});Object.defineProperty(a,"remove",{value:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,o()];case 1:e.sent();return[2]}}))}))}});return a};e.prototype.removeAllListeners=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){this.listeners={};for(e in this.windowListeners){this.removeWindowListener(this.windowListeners[e])}this.windowListeners={};return[2]}))}))};e.prototype.notifyListeners=function(e,t){var r=this.listeners[e];if(r){r.forEach((function(e){return e(t)}))}};e.prototype.hasListeners=function(e){return!!this.listeners[e].length};e.prototype.registerWindowListener=function(e,t){var r=this;this.windowListeners[t]={registered:false,windowEventName:e,pluginEventName:t,handler:function(e){r.notifyListeners(t,e)}}};e.prototype.unimplemented=function(e){if(e===void 0){e="not implemented"}return new Capacitor.Exception(e,ExceptionCode.Unimplemented)};e.prototype.unavailable=function(e){if(e===void 0){e="not available"}return new Capacitor.Exception(e,ExceptionCode.Unavailable)};e.prototype.removeListener=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){r=this.listeners[e];if(!r){return[2]}n=r.indexOf(t);this.listeners[e].splice(n,1);if(!this.listeners[e].length){this.removeWindowListener(this.windowListeners[e])}return[2]}))}))};e.prototype.addWindowListener=function(e){window.addEventListener(e.windowEventName,e.handler);e.registered=true};e.prototype.removeWindowListener=function(e){if(!e){return}window.removeEventListener(e.windowEventName,e.handler);e.registered=false};return e}();var encode=function(e){return encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)};var decode=function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)};var CapacitorCookiesPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){e=document.cookie;t={};e.split(";").forEach((function(e){if(e.length<=0)return;var r=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE"),n=r[0],i=r[1];n=decode(n).trim();i=decode(i).trim();t[n]=i}));return[2,t]}))}))};t.prototype.setCookie=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o;return __generator(this,(function(a){try{t=encode(e.key);r=encode(e.value);n="; expires=".concat((e.expires||"").replace("expires=",""));i=(e.path||"/").replace("path=","");o=e.url!=null&&e.url.length>0?"domain=".concat(e.url):"";document.cookie="".concat(t,"=").concat(r||"").concat(n,"; path=").concat(i,"; ").concat(o,";")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.deleteCookie=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{document.cookie="".concat(e.key,"=; Max-Age=0")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){try{e=document.cookie.split(";")||[];for(t=0,r=e;t<r.length;t++){n=r[t];document.cookie=n.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat((new Date).toUTCString(),";path=/"))}}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearAllCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,this.clearCookies()];case 1:t.sent();return[3,3];case 2:e=t.sent();return[2,Promise.reject(e)];case 3:return[2]}}))}))};return t}(WebPlugin);registerPlugin("CapacitorCookies",{web:function(){return new CapacitorCookiesPluginWeb}});var readBlobAsBase64=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,new Promise((function(t,r){var n=new FileReader;n.onload=function(){var e=n.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)};n.onerror=function(e){return r(e)};n.readAsDataURL(e)}))]}))}))};var normalizeHttpHeaders=function(e){if(e===void 0){e={}}var t=Object.keys(e);var r=Object.keys(e).map((function(e){return e.toLocaleLowerCase()}));var n=r.reduce((function(r,n,i){r[n]=e[t[i]];return r}),{});return n};var buildUrlParams=function(e,t){if(t===void 0){t=true}if(!e)return null;var r=Object.entries(e).reduce((function(e,r){var n=r[0],i=r[1];var o;var a;if(Array.isArray(i)){a="";i.forEach((function(e){o=t?encodeURIComponent(e):e;a+="".concat(n,"=").concat(o,"&")}));a.slice(0,-1)}else{o=t?encodeURIComponent(i):i;a="".concat(n,"=").concat(o)}return"".concat(e,"&").concat(a)}),"");return r.substr(1)};var buildRequestInit=function(e,t){if(t===void 0){t={}}var r=Object.assign({method:e.method||"GET",headers:e.headers},t);var n=normalizeHttpHeaders(e.headers);var i=n["content-type"]||"";if(typeof e.data==="string"){r.body=e.data}else if(i.includes("application/x-www-form-urlencoded")){var o=new URLSearchParams;for(var a=0,u=Object.entries(e.data||{});a<u.length;a++){var s=u[a],c=s[0],f=s[1];o.set(c,f)}r.body=o.toString()}else if(i.includes("multipart/form-data")||e.data instanceof FormData){var l=new FormData;if(e.data instanceof FormData){e.data.forEach((function(e,t){l.append(t,e)}))}else{for(var d=0,v=Object.keys(e.data);d<v.length;d++){var c=v[d];l.append(c,e.data[c])}}r.body=l;var p=new Headers(r.headers);p.delete("content-type");r.headers=p}else if(i.includes("application/json")||typeof e.data==="object"){r.body=JSON.stringify(e.data)}return r};var CapacitorHttpPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.request=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,u,s,c,f,l;return __generator(this,(function(d){switch(d.label){case 0:t=buildRequestInit(e,e.webFetchExtra);r=buildUrlParams(e.params,e.shouldEncodeUrlParams);n=r?"".concat(e.url,"?").concat(r):e.url;return[4,fetch(n,t)];case 1:i=d.sent();o=i.headers.get("content-type")||"";a=(i.ok?e:{}).responseType,u=a===void 0?"text":a;if(o.includes("application/json")){u="json"}f=u;switch(f){case"arraybuffer":return[3,2];case"blob":return[3,2];case"json":return[3,5];case"document":return[3,7];case"text":return[3,7]}return[3,7];case 2:return[4,i.blob()];case 3:c=d.sent();return[4,readBlobAsBase64(c)];case 4:s=d.sent();return[3,9];case 5:return[4,i.json()];case 6:s=d.sent();return[3,9];case 7:return[4,i.text()];case 8:s=d.sent();d.label=9;case 9:l={};i.headers.forEach((function(e,t){l[t]=e}));return[2,{data:s,headers:l,status:i.status,url:i.url}]}}))}))};t.prototype.get=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"GET"}))]}))}))};t.prototype.post=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"POST"}))]}))}))};t.prototype.put=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PUT"}))]}))}))};t.prototype.patch=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))]}))}))};t.prototype.delete=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))]}))}))};return t}(WebPlugin);registerPlugin("CapacitorHttp",{web:function(){return new CapacitorHttpPluginWeb}});var Directory;(function(e){e["Documents"]="DOCUMENTS";e["Data"]="DATA";e["Library"]="LIBRARY";e["Cache"]="CACHE";e["External"]="EXTERNAL";e["ExternalStorage"]="EXTERNAL_STORAGE"})(Directory||(Directory={}));var Encoding;(function(e){e["UTF8"]="utf8";e["ASCII"]="ascii";e["UTF16"]="utf16"})(Encoding||(Encoding={}));var Filesystem=registerPlugin("Filesystem",{web:function(){return import("./web-9ea89c85.js").then((function(e){return new e.FilesystemWeb}))}});function formatDuration(e){var t="";if(e<24){if(Math.floor(e)!==0){t+="".concat(Math.floor(e),"h")}if(e%1>0){t+="".concat(Math.round(60*(e%1)),"min")}}else{t+="".concat(Math.round(e/24),"j")}return t}function formatLength(e){return"".concat(Math.round(e/1e3),"km")}function formatAscent(e){return"+".concat(e,"m")}function formatDescent(e){return"".concat(e,"m")}var treksFilters=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicContentsFilters=[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicEventsFilters=[{property:"touristicEventTypes",touristicEventProperty:"type",touristicEventPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicEventProperty:"cities",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicEventProperty:"districts",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var outdoorSitesFilters=[{property:"outdoorPractices",outdoorSiteProperty:"practice",outdoorSitePropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"outdoorSiteTypes",outdoorSiteProperty:"type",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",outdoorSiteProperty:"cities",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",outdoorSiteProperty:"districts",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"themes",outdoorSiteProperty:"themes",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedThemesFilters"}];function handleTreksFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.trekProperty]>=n.minValue&&e[r.trekProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.treks.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty]>=i&&e[r.trekProperty]<=o})),true)}}}};for(var n=0,i=treksFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.treks;a=a.filter((function(e){return!state.offlineTreks||state.offlineTreks&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicContentsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicContentProperty]>=n.minValue&&e[r.touristicContentProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicContents.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty]>=i&&e[r.touristicContentProperty]<=o})),true)}}}};for(var n=0,i=touristicContentsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicContents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicEventsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicEventProperty]>=n.minValue&&e[r.touristicEventProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicEvents.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty]>=i&&e[r.touristicEventProperty]<=o})),true)}}}};for(var n=0,i=touristicEventsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicEvents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleOutdoorSitesFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.outdoorSiteProperty]>=n.minValue&&e[r.outdoorSiteProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.outdoorSites.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty]>=i&&e[r.outdoorSiteProperty]<=o})),true)}}}};for(var n=0,i=outdoorSitesFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.outdoorSites;a=a.filter((function(e){return!state.offlineOutdoorSites||state.offlineOutdoorSites&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}var durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];var lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];var elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];function getFilesToStore(e,t,r,n){if(r===void 0){r=false}if(n===void 0){n=[]}var i=[];for(var o=0,a=Object.keys(e);o<a.length;o++){var u=a[o];if(e[u]){if(typeof e[u]==="object"&&(!Array.isArray(e[u])||!r)){i.push.apply(i,getFilesToStore(e[u],t,r,n))}else if(typeof e[u]==="string"&&t.test(e[u].toLowerCase())){if(!n.includes(u)){i.push(e[u])}}else if(typeof e[u]==="object"&&Array.isArray(e[u])&&r&&e[u].length>0){i.push.apply(i,getFilesToStore(e[u][0],t,r,n))}}}return __spreadArray([],new Set(i),true)}function setFilesFromStore(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,8];o=i[n];if(!e[o])return[3,7];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,7];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,7];if(!!r.includes(o))return[3,7];if(!!Capacitor.isNativePlatform())return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){e[o]=window.URL.createObjectURL(a.data)}return[3,7];case 5:return[4,Filesystem.getUri({path:e[o],directory:Directory.Data})];case 6:a=u.sent();if(a){e[o]=Capacitor.convertFileSrc(a.uri)}u.label=7;case 7:n++;return[3,1];case 8:return[2]}}))}))}function revokeObjectURL(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,6];o=i[n];if(!!r.includes(o))return[3,5];if(!e[o])return[3,5];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,5];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){URL.revokeObjectURL(e[o])}u.label=5;case 5:n++;return[3,1];case 6:return[2]}}))}))}var imagesRegExp=new RegExp("^(http(s)?://|www.).*(.png|.jpg|.jpeg|.svg)$");function getFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.readFile({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function checkFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.stat({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function getAllPaginatedResults(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,u,s;return __generator(this,(function(c){switch(c.label){case 0:return[4,fetch(e,t)];case 1:r=c.sent();return[4,r.json()];case 2:n=c.sent();i=n.results;o=n.next;c.label=3;case 3:if(!o)return[3,6];return[4,fetch(o,t)];case 4:a=c.sent();return[4,a.json()];case 5:u=c.sent();i=i.concat(u.results);o=u.next;return[3,3];case 6:s=new Response(JSON.stringify(Object.assign(Object.assign({},n),{results:i,next:null,count:i.length})));return[2,s]}}))}))}export{Capacitor as C,Directory as D,Encoding as E,Filesystem as F,WebPlugin as W,handleOutdoorSitesFiltersAndSearch as a,registerPlugin as b,checkFileInStore as c,getAllPaginatedResults as d,touristicContentsFilters as e,touristicEventsFilters as f,getFilesToStore as g,handleTreksFiltersAndSearch as h,imagesRegExp as i,handleTouristicContentsFiltersAndSearch as j,handleTouristicEventsFiltersAndSearch as k,getFileInStore as l,formatDuration as m,formatLength as n,outdoorSitesFilters as o,formatAscent as p,formatDescent as q,revokeObjectURL as r,setFilesFromStore as s,treksFilters as t,durations as u,lengths as v,elevations as w,buildRequestInit as x};
3
+ //# sourceMappingURL=utils-5feb9281.js.map
@@ -1,2 +1,2 @@
1
- var __extends=this&&this.__extends||function(){var t=function(r,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))t[e]=r[e]};return t(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,r,e,n){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?e(t.value):i(t.value).then(u,a)}s((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(e=0)),e)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1];o=a;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(a);break}if(o[2])e.ops.pop();e.trys.pop();continue}a=r.call(t,e)}catch(t){a=[6,t];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{W as WebPlugin,x as buildRequestInit,E as Encoding}from"./utils-c2e5c5b9.js";import"./store-04f82731.js";import"./index-83d78b30.js";function resolve(t){var r=t.split("/").filter((function(t){return t!=="."}));var e=[];r.forEach((function(t){if(t===".."&&e.length>0&&e[e.length-1]!==".."){e.pop()}else{e.push(t)}}));return e.join("/")}function isPathParent(t,r){t=resolve(t);r=resolve(r);var e=t.split("/");var n=r.split("/");return t!==r&&e.every((function(t,r){return t===n[r]}))}var FilesystemWeb=function(t){__extends(r,t);function r(){var r=t.apply(this,arguments)||this;r.DB_VERSION=1;r.DB_NAME="Disc";r._writeCmds=["add","put","delete"];r.downloadFile=function(t){return __awaiter(r,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b;return __generator(this,(function(m){switch(m.label){case 0:n=buildRequestInit(t,t.webFetchExtra);return[4,fetch(t.url,n)];case 1:i=m.sent();if(!!t.progress)return[3,3];return[4,i.blob()];case 2:o=m.sent();return[3,8];case 3:if(!!(i===null||i===void 0?void 0:i.body))return[3,4];o=new Blob;return[3,8];case 4:u=i.body.getReader();a=0;s=[];c=i.headers.get("content-type");f=parseInt(i.headers.get("content-length")||"0",10);m.label=5;case 5:if(!true)return[3,7];return[4,u.read()];case 6:h=m.sent(),d=h.done,v=h.value;if(d)return[3,7];s.push(v);a+=(v===null||v===void 0?void 0:v.length)||0;l={url:t.url,bytes:a,contentLength:f};this.notifyListeners("progress",l);return[3,5];case 7:_=new Uint8Array(a);w=0;for(y=0,p=s;y<p.length;y++){g=p[y];if(typeof g==="undefined")continue;_.set(g,w);w+=g.length}o=new Blob([_.buffer],{type:c||undefined});m.label=8;case 8:return[4,this.writeFile({path:t.path,directory:(r=t.directory)!==null&&r!==void 0?r:undefined,recursive:(e=t.recursive)!==null&&e!==void 0?e:false,data:o})];case 9:b=m.sent();return[2,{path:b.uri,blob:o}]}}))}))};return r}r.prototype.initDb=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this._db!==undefined){return[2,this._db]}if(!("indexedDB"in window)){throw this.unavailable("This browser doesn't support IndexedDB")}return[2,new Promise((function(e,n){var i=indexedDB.open(t.DB_NAME,t.DB_VERSION);i.onupgradeneeded=r.doUpgrade;i.onsuccess=function(){t._db=i.result;e(i.result)};i.onerror=function(){return n(i.error)};i.onblocked=function(){console.warn("db blocked")}}))]}))}))};r.doUpgrade=function(t){var r=t.target;var e=r.result;switch(t.oldVersion){case 0:case 1:default:{if(e.objectStoreNames.contains("FileStorage")){e.deleteObjectStore("FileStorage")}var n=e.createObjectStore("FileStorage",{keyPath:"path"});n.createIndex("by_folder","folder")}}};r.prototype.dbRequest=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=this._writeCmds.indexOf(t)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(n){return new Promise((function(i,o){var u=n.transaction(["FileStorage"],e);var a=u.objectStore("FileStorage");var s=a[t].apply(a,r);s.onsuccess=function(){return i(s.result)};s.onerror=function(){return o(s.error)}}))}))]}))}))};r.prototype.dbIndexRequest=function(t,r,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(i){n=this._writeCmds.indexOf(r)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(i){return new Promise((function(o,u){var a=i.transaction(["FileStorage"],n);var s=a.objectStore("FileStorage");var c=s.index(t);var f=c[r].apply(c,e);f.onsuccess=function(){return o(f.result)};f.onerror=function(){return u(f.error)}}))}))]}))}))};r.prototype.getPath=function(t,r){var e=r!==undefined?r.replace(/^[/]+|[/]+$/g,""):"";var n="";if(t!==undefined)n+="/"+t;if(r!=="")n+="/"+e;return n};r.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.initDb()];case 1:t=n.sent();r=t.transaction(["FileStorage"],"readwrite");e=r.objectStore("FileStorage");e.clear();return[2]}}))}))};r.prototype.readFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(e===undefined)throw Error("File does not exist.");return[2,{data:e.content?e.content:""}]}}))}))};r.prototype.writeFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=t.recursive;return[4,this.dbRequest("get",[r])];case 1:o=d.sent();if(o&&o.type==="directory")throw Error("The supplied path is a directory.");u=r.substr(0,r.lastIndexOf("/"));return[4,this.dbRequest("get",[u])];case 2:a=d.sent();if(!(a===undefined))return[3,4];s=u.indexOf("/",1);if(!(s!==-1))return[3,4];c=u.substr(s);return[4,this.mkdir({path:c,directory:t.directory,recursive:i})];case 3:d.sent();d.label=4;case 4:if(!n&&!(e instanceof Blob)){e=e.indexOf(",")>=0?e.split(",")[1]:e;if(!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.")}f=Date.now();h={path:r,folder:u,type:"file",size:e instanceof Blob?e.size:e.length,ctime:f,mtime:f,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2,{uri:h.path}]}}))}))};r.prototype.appendFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=r.substr(0,r.lastIndexOf("/"));o=Date.now();u=o;return[4,this.dbRequest("get",[r])];case 1:a=d.sent();if(a&&a.type==="directory")throw Error("The supplied path is a directory.");return[4,this.dbRequest("get",[i])];case 2:s=d.sent();if(!(s===undefined))return[3,4];c=i.indexOf("/",1);if(!(c!==-1))return[3,4];f=i.substr(c);return[4,this.mkdir({path:f,directory:t.directory,recursive:true})];case 3:d.sent();d.label=4;case 4:if(!n&&!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(a!==undefined){if(a.content instanceof Blob){throw Error("The occupied entry contains a Blob object which cannot be appended to.")}if(a.content!==undefined&&!n){e=btoa(atob(a.content)+atob(e))}else{e=a.content+e}u=a.ctime}h={path:r,folder:i,type:"file",size:e.length,ctime:u,mtime:o,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2]}}))}))};r.prototype.deleteFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n;return __generator(this,(function(i){switch(i.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=i.sent();if(e===undefined)throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=i.sent();if(n.length!==0)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[r])];case 3:i.sent();return[2]}}))}))};r.prototype.mkdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.getPath(t.directory,t.path);e=t.recursive;n=r.substr(0,r.lastIndexOf("/"));i=(r.match(/\//g)||[]).length;return[4,this.dbRequest("get",[n])];case 1:o=f.sent();return[4,this.dbRequest("get",[r])];case 2:u=f.sent();if(i===1)throw Error("Cannot create Root directory");if(u!==undefined)throw Error("Current directory does already exist.");if(!e&&i!==2&&o===undefined)throw Error("Parent directory must exist");if(!(e&&i!==2&&o===undefined))return[3,4];a=n.substr(n.indexOf("/",1));return[4,this.mkdir({path:a,directory:t.directory,recursive:e})];case 3:f.sent();f.label=4;case 4:s=Date.now();c={path:r,folder:n,type:"directory",size:0,ctime:s,mtime:s};return[4,this.dbRequest("put",[c])];case 5:f.sent();return[2]}}))}))};r.prototype.rmdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=t.path,e=t.directory,n=t.recursive;i=this.getPath(e,r);return[4,this.dbRequest("get",[i])];case 1:o=d.sent();if(o===undefined)throw Error("Folder does not exist.");if(o.type!=="directory")throw Error("Requested path is not a directory");return[4,this.readdir({path:r,directory:e})];case 2:u=d.sent();if(u.files.length!==0&&!n)throw Error("Folder is not empty");a=0,s=u.files;d.label=3;case 3:if(!(a<s.length))return[3,9];c=s[a];f="".concat(r,"/").concat(c.name);return[4,this.stat({path:f,directory:e})];case 4:h=d.sent();if(!(h.type==="file"))return[3,6];return[4,this.deleteFile({path:f,directory:e})];case 5:d.sent();return[3,8];case 6:return[4,this.rmdir({path:f,directory:e,recursive:n})];case 7:d.sent();d.label=8;case 8:a++;return[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:d.sent();return[2]}}))}))};r.prototype.readdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i;var o=this;return __generator(this,(function(u){switch(u.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=u.sent();if(t.path!==""&&e===undefined)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=u.sent();return[4,Promise.all(n.map((function(t){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.dbRequest("get",[t])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[t+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{name:t.substring(r.length+1),type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))})))];case 3:i=u.sent();return[2,{files:i}]}}))}))};r.prototype.getUri=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{uri:(e===null||e===void 0?void 0:e.path)||r}]}}))}))};r.prototype.stat=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:if(e===undefined)throw Error("Entry does not exist.");return[2,{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))};r.prototype.rename=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this._copy(t,true)];case 1:r.sent();return[2]}}))}))};r.prototype.copy=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this._copy(t,false)]}))}))};r.prototype.requestPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype.checkPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype._copy=function(t){return __awaiter(this,arguments,void 0,(function(t,r){var e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b,m,E,x,F;var P=this;if(r===void 0){r=false}return __generator(this,(function(S){switch(S.label){case 0:e=t.toDirectory;n=t.to,i=t.from,o=t.directory;if(!n||!i){throw Error("Both to and from must be provided")}if(!e){e=o}u=this.getPath(o,i);a=this.getPath(e,n);if(u===a){return[2,{uri:a}]}if(isPathParent(u,a)){throw Error("To path cannot contain the from path")}S.label=1;case 1:S.trys.push([1,3,,6]);return[4,this.stat({path:n,directory:e})];case 2:s=S.sent();return[3,6];case 3:c=S.sent();f=n.split("/");f.pop();h=f.join("/");if(!(f.length>0))return[3,5];return[4,this.stat({path:h,directory:e})];case 4:d=S.sent();if(d.type!=="directory"){throw new Error("Parent directory of the to path is a file")}S.label=5;case 5:return[3,6];case 6:if(s&&s.type==="directory"){throw new Error("Cannot overwrite a directory with a file")}return[4,this.stat({path:i,directory:o})];case 7:v=S.sent();l=function(t,r,n){return __awaiter(P,void 0,void 0,(function(){var i,o;return __generator(this,(function(u){switch(u.label){case 0:i=this.getPath(e,t);return[4,this.dbRequest("get",[i])];case 1:o=u.sent();o.ctime=r;o.mtime=n;return[4,this.dbRequest("put",[o])];case 2:u.sent();return[2]}}))}))};_=v.ctime?v.ctime:Date.now();w=v.type;switch(w){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:i,directory:o})];case 9:y=S.sent();if(!r)return[3,11];return[4,this.deleteFile({path:i,directory:o})];case 10:S.sent();S.label=11;case 11:p=void 0;if(!(y.data instanceof Blob)&&!this.isBase64String(y.data)){p=Encoding.UTF8}return[4,this.writeFile({path:n,directory:e,data:y.data,encoding:p})];case 12:g=S.sent();if(!r)return[3,14];return[4,l(n,_,v.mtime)];case 13:S.sent();S.label=14;case 14:return[2,g];case 15:if(s){throw Error("Cannot move a directory over an existing object")}S.label=16;case 16:S.trys.push([16,20,,21]);return[4,this.mkdir({path:n,directory:e,recursive:false})];case 17:S.sent();if(!r)return[3,19];return[4,l(n,_,v.mtime)];case 18:S.sent();S.label=19;case 19:return[3,21];case 20:b=S.sent();return[3,21];case 21:return[4,this.readdir({path:i,directory:o})];case 22:m=S.sent().files;E=0,x=m;S.label=23;case 23:if(!(E<x.length))return[3,26];F=x[E];return[4,this._copy({from:"".concat(i,"/").concat(F.name),to:"".concat(n,"/").concat(F.name),directory:o,toDirectory:e},r)];case 24:S.sent();S.label=25;case 25:E++;return[3,23];case 26:if(!r)return[3,28];return[4,this.rmdir({path:i,directory:o})];case 27:S.sent();S.label=28;case 28:return[2,{uri:a}]}}))}))};r.prototype.isBase64String=function(t){try{return btoa(atob(t))==t}catch(t){return false}};return r}(WebPlugin);FilesystemWeb._debug=true;export{FilesystemWeb};
2
- //# sourceMappingURL=web-fdc4d63f.js.map
1
+ var __extends=this&&this.__extends||function(){var t=function(r,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))t[e]=r[e]};return t(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,r,e,n){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?e(t.value):i(t.value).then(u,a)}s((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(e=0)),e)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1];o=a;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(a);break}if(o[2])e.ops.pop();e.trys.pop();continue}a=r.call(t,e)}catch(t){a=[6,t];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{W as WebPlugin,x as buildRequestInit,E as Encoding}from"./utils-5feb9281.js";import"./store-882ab9be.js";import"./index-83d78b30.js";function resolve(t){var r=t.split("/").filter((function(t){return t!=="."}));var e=[];r.forEach((function(t){if(t===".."&&e.length>0&&e[e.length-1]!==".."){e.pop()}else{e.push(t)}}));return e.join("/")}function isPathParent(t,r){t=resolve(t);r=resolve(r);var e=t.split("/");var n=r.split("/");return t!==r&&e.every((function(t,r){return t===n[r]}))}var FilesystemWeb=function(t){__extends(r,t);function r(){var r=t.apply(this,arguments)||this;r.DB_VERSION=1;r.DB_NAME="Disc";r._writeCmds=["add","put","delete"];r.downloadFile=function(t){return __awaiter(r,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b;return __generator(this,(function(m){switch(m.label){case 0:n=buildRequestInit(t,t.webFetchExtra);return[4,fetch(t.url,n)];case 1:i=m.sent();if(!!t.progress)return[3,3];return[4,i.blob()];case 2:o=m.sent();return[3,8];case 3:if(!!(i===null||i===void 0?void 0:i.body))return[3,4];o=new Blob;return[3,8];case 4:u=i.body.getReader();a=0;s=[];c=i.headers.get("content-type");f=parseInt(i.headers.get("content-length")||"0",10);m.label=5;case 5:if(!true)return[3,7];return[4,u.read()];case 6:h=m.sent(),d=h.done,v=h.value;if(d)return[3,7];s.push(v);a+=(v===null||v===void 0?void 0:v.length)||0;l={url:t.url,bytes:a,contentLength:f};this.notifyListeners("progress",l);return[3,5];case 7:_=new Uint8Array(a);w=0;for(y=0,p=s;y<p.length;y++){g=p[y];if(typeof g==="undefined")continue;_.set(g,w);w+=g.length}o=new Blob([_.buffer],{type:c||undefined});m.label=8;case 8:return[4,this.writeFile({path:t.path,directory:(r=t.directory)!==null&&r!==void 0?r:undefined,recursive:(e=t.recursive)!==null&&e!==void 0?e:false,data:o})];case 9:b=m.sent();return[2,{path:b.uri,blob:o}]}}))}))};return r}r.prototype.initDb=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this._db!==undefined){return[2,this._db]}if(!("indexedDB"in window)){throw this.unavailable("This browser doesn't support IndexedDB")}return[2,new Promise((function(e,n){var i=indexedDB.open(t.DB_NAME,t.DB_VERSION);i.onupgradeneeded=r.doUpgrade;i.onsuccess=function(){t._db=i.result;e(i.result)};i.onerror=function(){return n(i.error)};i.onblocked=function(){console.warn("db blocked")}}))]}))}))};r.doUpgrade=function(t){var r=t.target;var e=r.result;switch(t.oldVersion){case 0:case 1:default:{if(e.objectStoreNames.contains("FileStorage")){e.deleteObjectStore("FileStorage")}var n=e.createObjectStore("FileStorage",{keyPath:"path"});n.createIndex("by_folder","folder")}}};r.prototype.dbRequest=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=this._writeCmds.indexOf(t)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(n){return new Promise((function(i,o){var u=n.transaction(["FileStorage"],e);var a=u.objectStore("FileStorage");var s=a[t].apply(a,r);s.onsuccess=function(){return i(s.result)};s.onerror=function(){return o(s.error)}}))}))]}))}))};r.prototype.dbIndexRequest=function(t,r,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(i){n=this._writeCmds.indexOf(r)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(i){return new Promise((function(o,u){var a=i.transaction(["FileStorage"],n);var s=a.objectStore("FileStorage");var c=s.index(t);var f=c[r].apply(c,e);f.onsuccess=function(){return o(f.result)};f.onerror=function(){return u(f.error)}}))}))]}))}))};r.prototype.getPath=function(t,r){var e=r!==undefined?r.replace(/^[/]+|[/]+$/g,""):"";var n="";if(t!==undefined)n+="/"+t;if(r!=="")n+="/"+e;return n};r.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.initDb()];case 1:t=n.sent();r=t.transaction(["FileStorage"],"readwrite");e=r.objectStore("FileStorage");e.clear();return[2]}}))}))};r.prototype.readFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(e===undefined)throw Error("File does not exist.");return[2,{data:e.content?e.content:""}]}}))}))};r.prototype.writeFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=t.recursive;return[4,this.dbRequest("get",[r])];case 1:o=d.sent();if(o&&o.type==="directory")throw Error("The supplied path is a directory.");u=r.substr(0,r.lastIndexOf("/"));return[4,this.dbRequest("get",[u])];case 2:a=d.sent();if(!(a===undefined))return[3,4];s=u.indexOf("/",1);if(!(s!==-1))return[3,4];c=u.substr(s);return[4,this.mkdir({path:c,directory:t.directory,recursive:i})];case 3:d.sent();d.label=4;case 4:if(!n&&!(e instanceof Blob)){e=e.indexOf(",")>=0?e.split(",")[1]:e;if(!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.")}f=Date.now();h={path:r,folder:u,type:"file",size:e instanceof Blob?e.size:e.length,ctime:f,mtime:f,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2,{uri:h.path}]}}))}))};r.prototype.appendFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=r.substr(0,r.lastIndexOf("/"));o=Date.now();u=o;return[4,this.dbRequest("get",[r])];case 1:a=d.sent();if(a&&a.type==="directory")throw Error("The supplied path is a directory.");return[4,this.dbRequest("get",[i])];case 2:s=d.sent();if(!(s===undefined))return[3,4];c=i.indexOf("/",1);if(!(c!==-1))return[3,4];f=i.substr(c);return[4,this.mkdir({path:f,directory:t.directory,recursive:true})];case 3:d.sent();d.label=4;case 4:if(!n&&!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(a!==undefined){if(a.content instanceof Blob){throw Error("The occupied entry contains a Blob object which cannot be appended to.")}if(a.content!==undefined&&!n){e=btoa(atob(a.content)+atob(e))}else{e=a.content+e}u=a.ctime}h={path:r,folder:i,type:"file",size:e.length,ctime:u,mtime:o,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2]}}))}))};r.prototype.deleteFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n;return __generator(this,(function(i){switch(i.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=i.sent();if(e===undefined)throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=i.sent();if(n.length!==0)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[r])];case 3:i.sent();return[2]}}))}))};r.prototype.mkdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.getPath(t.directory,t.path);e=t.recursive;n=r.substr(0,r.lastIndexOf("/"));i=(r.match(/\//g)||[]).length;return[4,this.dbRequest("get",[n])];case 1:o=f.sent();return[4,this.dbRequest("get",[r])];case 2:u=f.sent();if(i===1)throw Error("Cannot create Root directory");if(u!==undefined)throw Error("Current directory does already exist.");if(!e&&i!==2&&o===undefined)throw Error("Parent directory must exist");if(!(e&&i!==2&&o===undefined))return[3,4];a=n.substr(n.indexOf("/",1));return[4,this.mkdir({path:a,directory:t.directory,recursive:e})];case 3:f.sent();f.label=4;case 4:s=Date.now();c={path:r,folder:n,type:"directory",size:0,ctime:s,mtime:s};return[4,this.dbRequest("put",[c])];case 5:f.sent();return[2]}}))}))};r.prototype.rmdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=t.path,e=t.directory,n=t.recursive;i=this.getPath(e,r);return[4,this.dbRequest("get",[i])];case 1:o=d.sent();if(o===undefined)throw Error("Folder does not exist.");if(o.type!=="directory")throw Error("Requested path is not a directory");return[4,this.readdir({path:r,directory:e})];case 2:u=d.sent();if(u.files.length!==0&&!n)throw Error("Folder is not empty");a=0,s=u.files;d.label=3;case 3:if(!(a<s.length))return[3,9];c=s[a];f="".concat(r,"/").concat(c.name);return[4,this.stat({path:f,directory:e})];case 4:h=d.sent();if(!(h.type==="file"))return[3,6];return[4,this.deleteFile({path:f,directory:e})];case 5:d.sent();return[3,8];case 6:return[4,this.rmdir({path:f,directory:e,recursive:n})];case 7:d.sent();d.label=8;case 8:a++;return[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:d.sent();return[2]}}))}))};r.prototype.readdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i;var o=this;return __generator(this,(function(u){switch(u.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=u.sent();if(t.path!==""&&e===undefined)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=u.sent();return[4,Promise.all(n.map((function(t){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.dbRequest("get",[t])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[t+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{name:t.substring(r.length+1),type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))})))];case 3:i=u.sent();return[2,{files:i}]}}))}))};r.prototype.getUri=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{uri:(e===null||e===void 0?void 0:e.path)||r}]}}))}))};r.prototype.stat=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:if(e===undefined)throw Error("Entry does not exist.");return[2,{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))};r.prototype.rename=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this._copy(t,true)];case 1:r.sent();return[2]}}))}))};r.prototype.copy=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this._copy(t,false)]}))}))};r.prototype.requestPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype.checkPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype._copy=function(t){return __awaiter(this,arguments,void 0,(function(t,r){var e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b,m,E,x,F;var P=this;if(r===void 0){r=false}return __generator(this,(function(S){switch(S.label){case 0:e=t.toDirectory;n=t.to,i=t.from,o=t.directory;if(!n||!i){throw Error("Both to and from must be provided")}if(!e){e=o}u=this.getPath(o,i);a=this.getPath(e,n);if(u===a){return[2,{uri:a}]}if(isPathParent(u,a)){throw Error("To path cannot contain the from path")}S.label=1;case 1:S.trys.push([1,3,,6]);return[4,this.stat({path:n,directory:e})];case 2:s=S.sent();return[3,6];case 3:c=S.sent();f=n.split("/");f.pop();h=f.join("/");if(!(f.length>0))return[3,5];return[4,this.stat({path:h,directory:e})];case 4:d=S.sent();if(d.type!=="directory"){throw new Error("Parent directory of the to path is a file")}S.label=5;case 5:return[3,6];case 6:if(s&&s.type==="directory"){throw new Error("Cannot overwrite a directory with a file")}return[4,this.stat({path:i,directory:o})];case 7:v=S.sent();l=function(t,r,n){return __awaiter(P,void 0,void 0,(function(){var i,o;return __generator(this,(function(u){switch(u.label){case 0:i=this.getPath(e,t);return[4,this.dbRequest("get",[i])];case 1:o=u.sent();o.ctime=r;o.mtime=n;return[4,this.dbRequest("put",[o])];case 2:u.sent();return[2]}}))}))};_=v.ctime?v.ctime:Date.now();w=v.type;switch(w){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:i,directory:o})];case 9:y=S.sent();if(!r)return[3,11];return[4,this.deleteFile({path:i,directory:o})];case 10:S.sent();S.label=11;case 11:p=void 0;if(!(y.data instanceof Blob)&&!this.isBase64String(y.data)){p=Encoding.UTF8}return[4,this.writeFile({path:n,directory:e,data:y.data,encoding:p})];case 12:g=S.sent();if(!r)return[3,14];return[4,l(n,_,v.mtime)];case 13:S.sent();S.label=14;case 14:return[2,g];case 15:if(s){throw Error("Cannot move a directory over an existing object")}S.label=16;case 16:S.trys.push([16,20,,21]);return[4,this.mkdir({path:n,directory:e,recursive:false})];case 17:S.sent();if(!r)return[3,19];return[4,l(n,_,v.mtime)];case 18:S.sent();S.label=19;case 19:return[3,21];case 20:b=S.sent();return[3,21];case 21:return[4,this.readdir({path:i,directory:o})];case 22:m=S.sent().files;E=0,x=m;S.label=23;case 23:if(!(E<x.length))return[3,26];F=x[E];return[4,this._copy({from:"".concat(i,"/").concat(F.name),to:"".concat(n,"/").concat(F.name),directory:o,toDirectory:e},r)];case 24:S.sent();S.label=25;case 25:E++;return[3,23];case 26:if(!r)return[3,28];return[4,this.rmdir({path:i,directory:o})];case 27:S.sent();S.label=28;case 28:return[2,{uri:a}]}}))}))};r.prototype.isBase64String=function(t){try{return btoa(atob(t))==t}catch(t){return false}};return r}(WebPlugin);FilesystemWeb._debug=true;export{FilesystemWeb};
2
+ //# sourceMappingURL=web-9ea89c85.js.map
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- import{p as o,d as r,N as e,b as i}from"./p-421e9ebe.js";export{s as setNonce}from"./p-421e9ebe.js";import{g as n}from"./p-e1255160.js";var a=()=>{const i=Array.from(r.querySelectorAll("script")).find((o=>new RegExp(`/${e}(\\.esm)?\\.js($|\\?|#)`).test(o.src)||o.getAttribute("data-stencil-namespace")===e));const n=import.meta.url;const a=(i||{})["data-opts"]||{};if(n!==""){a.resourcesUrl=new URL(".",n).href}return o(a)};a().then((async o=>{await n();return i(JSON.parse('[["p-6df1f0e1",[[0,"grw-app",{"appWidth":[1,"app-width"],"appHeight":[1,"app-height"],"api":[1],"languages":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"weather":[4],"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorPrimary":[1,"color-primary"],"colorOnPrimary":[1,"color-on-primary"],"colorSurface":[1,"color-surface"],"colorOnSurface":[1,"color-on-surface"],"colorSurfaceVariant":[1,"color-surface-variant"],"colorOnSurfaceVariant":[1,"color-on-surface-variant"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"colorSurfaceContainerHigh":[1,"color-surface-container-high"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"rounded":[4],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"largeViewSize":[2,"large-view-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"signages":[4],"arrowRepeat":[2,"arrow-repeat"],"showTrek":[32],"showTouristicContent":[32],"showTouristicEvent":[32],"showOutdoorSite":[32],"showOutdoorCourse":[32],"showOutdoorSiteMap":[32],"showOutdoorCourseMap":[32],"showHomeMap":[32],"showTrekMap":[32],"showTouristicContentMap":[32],"showTouristicEventMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32],"currentTouristicContentId":[32],"currentTouristicEventId":[32],"currentOutdoorSiteId":[32],"currentOutdoorCourseId":[32]},[[8,"trekCardPress","onTrekCardPress"],[8,"parentTrekPress","onParentTrekPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"outdoorSiteCardPress","onOutdoorSiteCardPress"],[8,"outdoorCourseCardPress","onOutdoorCourseCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]],{"isLargeView":["watchPropHandler"]}]]],["p-e622139c",[[4,"grw-toggle-slot-visibility",{"largeViewSize":[2,"large-view-size"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"slotEndHeight":[1,"slot-end-height"],"isLargeView":[32],"showStartSlot":[32],"showEndSlot":[32]},[[9,"resize","onWindowResize"]]]]],["p-e4da40fc",[[1,"grw-outdoor-courses-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}]]],["p-b4659481",[[1,"grw-extended-fab",{"action":[16],"icon":[16],"name":[16],"display":[1],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-f971e0f9",[[1,"grw-fab",{"action":[16],"icon":[16],"showTitle":[1,"show-title"],"hideTitle":[1,"hide-title"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-11caf88d",[[1,"grw-filter",{"fontFamily":[1,"font-family"],"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterPlaceholder":[1,"filter-placeholder"],"filterNameProperty":[1,"filter-name-property"],"segment":[1]},[[8,"resetFilter","onResetFilter"]]]]],["p-1ef5158a",[[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}],[1,"grw-trek-card",{"trek":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isStep":[4,"is-step"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32],"isAvailableOffline":[32],"showDefaultImage":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-a9faad14",[[1,"grw-poi",{"poi":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showPoiDescriptionButton":[32],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"]]],[1,"grw-touristic-content-card",{"fontFamily":[1,"font-family"],"touristicContent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-event-card",{"fontFamily":[1,"font-family"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"touristicEvent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-8f1283ca",[[1,"grw-outdoor-course-card",{"outdoorCourse":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[4,"grw-details-modal",{"fontFamily":[1,"font-family"],"colorBackground":[1,"color-background"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"rounded":[4]}],[1,"grw-information-desk",{"informationDesk":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showInformationDeskDescriptionButton":[32],"offline":[32],"showDefaultImage":[32]}],[1,"grw-outdoor-site-card",{"outdoorSite":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-content-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-content-provider",{"languages":[1],"api":[1],"touristicContentId":[2,"touristic-content-id"],"portals":[1]}],[1,"grw-touristic-event-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-event-provider",{"languages":[1],"api":[1],"touristicEventId":[2,"touristic-event-id"],"portals":[1]}]]],["p-906264e3",[[1,"grw-outdoor-site-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"enableOffline":[4,"enable-offline"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"rounded":[4],"offline":[32],"displayFullscreen":[32],"currentOutdoorSite":[32],"sources":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-trek-detail",{"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"rounded":[4],"weather":[4],"isLargeView":[4,"is-large-view"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"labels":[32],"sources":[32],"accessibilities":[32],"accessibilityLevel":[32],"displayFullscreen":[32],"cities":[32],"options":[32],"offline":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-outdoor-course-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"currentOutdoorCourse":[32],"offline":[32]}],[1,"grw-filters",{"handleFilters":[16],"fontFamily":[1,"font-family"],"selectedSegment":[32]}],[1,"grw-map",{"maxZoom":[2,"max-zoom"],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorBackground":[1,"color-background"],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"largeViewSize":[2,"large-view-size"],"elevationDefaultState":[1,"elevation-default-state"],"isLargeView":[4,"is-large-view"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"arrowRepeat":[2,"arrow-repeat"],"mapIsReady":[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"stepsIsInViewport","stepsIsInViewport"],[8,"descriptionIsInViewport","descriptionIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationPlacesIsInViewport","onInformationPlacesIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"],[8,"touristicContentsIsInViewport","touristicContentsIsInViewport"],[8,"touristicEventsIsInViewport","touristicEventsIsInViewport"],[8,"sitesIsInViewport","sitesIsInViewport"],[8,"coursesIsInViewport","coursesIsInViewport"],[8,"cardTrekMouseOver","onCardTrekMouseOver"],[8,"cardTrekMouseLeave","onCardTrekMouseLeave"],[8,"cardTouristicContentMouseOver","onTouristicContentMouseOver"],[8,"cardTouristicContentMouseLeave","onTouristicContentMouseLeave"],[8,"cardTouristicEventMouseOver","onTouristicEventMouseOver"],[8,"cardTouristicEventMouseLeave","onTouristicEventMouseLeave"],[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[8,"cardOutdoorSiteMouseOver","onOutdoorSiteMouseOver"],[8,"cardOutdoorSiteMouseLeave","onOutdoorSiteMouseLeave"],[9,"resize","onWindowResize"]]],[1,"grw-outdoor-sites-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"outdoorSitesToDisplay":[32]}],[1,"grw-touristic-contents-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicContentsToDisplay":[32]}],[1,"grw-touristic-events-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicEventsToDisplay":[32]}],[1,"grw-treks-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayOnlyOfflineTreks":[4,"display-only-offline-treks"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"treksToDisplay":[32]}],[1,"grw-common-button",{"action":[16],"icon":[1],"name":[1],"fontFamily":[1,"font-family"]}],[1,"grw-loader",{"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"]}],[1,"grw-offline-confirm-modal",{"mode":[1],"showOfflineModal":[32],"showConfirmModal":[32],"showLoaderModal":[32],"showSuccessModal":[32],"showErrorModal":[32],"showConfirmDeleteModal":[32],"showDeletingMessage":[32],"showDeleteSuccessMessage":[32]},[[8,"downloadConfirm","onDownloadConfirm"],[8,"downloadedSuccessConfirm","onDownloadedSuccessConfirm"],[8,"downloadedErrorConfirm","downloadedErrorConfirm"],[8,"deleteConfirm","onDeleteConfirm"],[8,"deleteSuccessConfirm","onDeleteSuccessConfirm"],[8,"deleteErrorConfirm","deleteErrorConfirm"]]],[1,"grw-outdoor-course-provider",{"languages":[1],"api":[1],"outdoorCourseId":[2,"outdoor-course-id"],"portals":[1]}],[1,"grw-outdoor-site-provider",{"languages":[1],"api":[1],"outdoorSiteId":[2,"outdoor-site-id"],"portals":[1]}],[1,"grw-outdoor-sites-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"offline":[4]}],[1,"grw-search",{"fontFamily":[1,"font-family"]}],[1,"grw-segmented-segment",{"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"fontFamily":[1,"font-family"]}],[1,"grw-select-language"],[1,"grw-switch",{"action":[16],"fontFamily":[1,"font-family"],"checked":[4]}],[1,"grw-touristic-contents-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-touristic-events-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-trek-provider",{"languages":[1],"api":[1],"trekId":[2,"trek-id"],"portals":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"routes":[1],"practices":[1],"labels":[1],"signages":[4]}],[1,"grw-treks-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"offline":[4]}]]]]'),o)}));
1
+ import{p as o,d as r,N as e,b as i}from"./p-421e9ebe.js";export{s as setNonce}from"./p-421e9ebe.js";import{g as n}from"./p-e1255160.js";var a=()=>{const i=Array.from(r.querySelectorAll("script")).find((o=>new RegExp(`/${e}(\\.esm)?\\.js($|\\?|#)`).test(o.src)||o.getAttribute("data-stencil-namespace")===e));const n=import.meta.url;const a=(i||{})["data-opts"]||{};if(n!==""){a.resourcesUrl=new URL(".",n).href}return o(a)};a().then((async o=>{await n();return i(JSON.parse('[["p-de029003",[[0,"grw-app",{"appWidth":[1,"app-width"],"appHeight":[1,"app-height"],"api":[1],"languages":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"weather":[4],"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorPrimary":[1,"color-primary"],"colorOnPrimary":[1,"color-on-primary"],"colorSurface":[1,"color-surface"],"colorOnSurface":[1,"color-on-surface"],"colorSurfaceVariant":[1,"color-surface-variant"],"colorOnSurfaceVariant":[1,"color-on-surface-variant"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"colorSurfaceContainerHigh":[1,"color-surface-container-high"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"rounded":[4],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"largeViewSize":[2,"large-view-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"signages":[4],"arrowRepeat":[2,"arrow-repeat"],"showTrek":[32],"showTouristicContent":[32],"showTouristicEvent":[32],"showOutdoorSite":[32],"showOutdoorCourse":[32],"showOutdoorSiteMap":[32],"showOutdoorCourseMap":[32],"showHomeMap":[32],"showTrekMap":[32],"showTouristicContentMap":[32],"showTouristicEventMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32],"currentTouristicContentId":[32],"currentTouristicEventId":[32],"currentOutdoorSiteId":[32],"currentOutdoorCourseId":[32]},[[8,"trekCardPress","onTrekCardPress"],[8,"parentTrekPress","onParentTrekPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"outdoorSiteCardPress","onOutdoorSiteCardPress"],[8,"outdoorCourseCardPress","onOutdoorCourseCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]],{"isLargeView":["watchPropHandler"]}]]],["p-51c64ff4",[[4,"grw-toggle-slot-visibility",{"largeViewSize":[2,"large-view-size"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"slotEndHeight":[1,"slot-end-height"],"isLargeView":[32],"showStartSlot":[32],"showEndSlot":[32]},[[9,"resize","onWindowResize"]]]]],["p-eeedb77e",[[1,"grw-outdoor-courses-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}]]],["p-b4659481",[[1,"grw-extended-fab",{"action":[16],"icon":[16],"name":[16],"display":[1],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-f971e0f9",[[1,"grw-fab",{"action":[16],"icon":[16],"showTitle":[1,"show-title"],"hideTitle":[1,"hide-title"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-6287495f",[[1,"grw-filter",{"fontFamily":[1,"font-family"],"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterPlaceholder":[1,"filter-placeholder"],"filterNameProperty":[1,"filter-name-property"],"segment":[1]},[[8,"resetFilter","onResetFilter"]]]]],["p-91d62770",[[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}],[1,"grw-trek-card",{"trek":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isStep":[4,"is-step"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32],"isAvailableOffline":[32],"showDefaultImage":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-20fa1207",[[1,"grw-poi",{"poi":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showPoiDescriptionButton":[32],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"]]],[1,"grw-touristic-content-card",{"fontFamily":[1,"font-family"],"touristicContent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-event-card",{"fontFamily":[1,"font-family"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"touristicEvent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-111e4a10",[[1,"grw-outdoor-course-card",{"outdoorCourse":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[4,"grw-details-modal",{"fontFamily":[1,"font-family"],"colorBackground":[1,"color-background"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"rounded":[4]}],[1,"grw-information-desk",{"informationDesk":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showInformationDeskDescriptionButton":[32],"offline":[32],"showDefaultImage":[32]}],[1,"grw-outdoor-site-card",{"outdoorSite":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-content-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-content-provider",{"languages":[1],"api":[1],"touristicContentId":[2,"touristic-content-id"],"portals":[1]}],[1,"grw-touristic-event-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-event-provider",{"languages":[1],"api":[1],"touristicEventId":[2,"touristic-event-id"],"portals":[1]}]]],["p-722e446c",[[1,"grw-outdoor-site-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"enableOffline":[4,"enable-offline"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"rounded":[4],"offline":[32],"displayFullscreen":[32],"currentOutdoorSite":[32],"sources":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-trek-detail",{"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"rounded":[4],"weather":[4],"isLargeView":[4,"is-large-view"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"labels":[32],"sources":[32],"accessibilities":[32],"accessibilityLevel":[32],"displayFullscreen":[32],"cities":[32],"options":[32],"offline":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-outdoor-course-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"currentOutdoorCourse":[32],"offline":[32]}],[1,"grw-filters",{"handleFilters":[16],"fontFamily":[1,"font-family"],"selectedSegment":[32]}],[1,"grw-map",{"maxZoom":[2,"max-zoom"],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorBackground":[1,"color-background"],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"largeViewSize":[2,"large-view-size"],"elevationDefaultState":[1,"elevation-default-state"],"isLargeView":[4,"is-large-view"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"arrowRepeat":[2,"arrow-repeat"],"mapIsReady":[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"stepsIsInViewport","stepsIsInViewport"],[8,"descriptionIsInViewport","descriptionIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationPlacesIsInViewport","onInformationPlacesIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"],[8,"touristicContentsIsInViewport","touristicContentsIsInViewport"],[8,"touristicEventsIsInViewport","touristicEventsIsInViewport"],[8,"sitesIsInViewport","sitesIsInViewport"],[8,"coursesIsInViewport","coursesIsInViewport"],[8,"cardTrekMouseOver","onCardTrekMouseOver"],[8,"cardTrekMouseLeave","onCardTrekMouseLeave"],[8,"cardTouristicContentMouseOver","onTouristicContentMouseOver"],[8,"cardTouristicContentMouseLeave","onTouristicContentMouseLeave"],[8,"cardTouristicEventMouseOver","onTouristicEventMouseOver"],[8,"cardTouristicEventMouseLeave","onTouristicEventMouseLeave"],[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[8,"cardOutdoorSiteMouseOver","onOutdoorSiteMouseOver"],[8,"cardOutdoorSiteMouseLeave","onOutdoorSiteMouseLeave"],[9,"resize","onWindowResize"]]],[1,"grw-outdoor-sites-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"outdoorSitesToDisplay":[32]}],[1,"grw-touristic-contents-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicContentsToDisplay":[32]}],[1,"grw-touristic-events-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicEventsToDisplay":[32]}],[1,"grw-treks-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayOnlyOfflineTreks":[4,"display-only-offline-treks"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"treksToDisplay":[32]}],[1,"grw-common-button",{"action":[16],"icon":[1],"name":[1],"fontFamily":[1,"font-family"]}],[1,"grw-loader",{"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"]}],[1,"grw-offline-confirm-modal",{"mode":[1],"showOfflineModal":[32],"showConfirmModal":[32],"showLoaderModal":[32],"showSuccessModal":[32],"showErrorModal":[32],"showConfirmDeleteModal":[32],"showDeletingMessage":[32],"showDeleteSuccessMessage":[32]},[[8,"downloadConfirm","onDownloadConfirm"],[8,"downloadedSuccessConfirm","onDownloadedSuccessConfirm"],[8,"downloadedErrorConfirm","downloadedErrorConfirm"],[8,"deleteConfirm","onDeleteConfirm"],[8,"deleteSuccessConfirm","onDeleteSuccessConfirm"],[8,"deleteErrorConfirm","deleteErrorConfirm"]]],[1,"grw-outdoor-course-provider",{"languages":[1],"api":[1],"outdoorCourseId":[2,"outdoor-course-id"],"portals":[1]}],[1,"grw-outdoor-site-provider",{"languages":[1],"api":[1],"outdoorSiteId":[2,"outdoor-site-id"],"portals":[1]}],[1,"grw-outdoor-sites-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"offline":[4]}],[1,"grw-search",{"fontFamily":[1,"font-family"]}],[1,"grw-segmented-segment",{"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"fontFamily":[1,"font-family"]}],[1,"grw-select-language"],[1,"grw-switch",{"action":[16],"fontFamily":[1,"font-family"],"checked":[4]}],[1,"grw-touristic-contents-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-touristic-events-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-trek-provider",{"languages":[1],"api":[1],"trekId":[2,"trek-id"],"portals":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"routes":[1],"practices":[1],"labels":[1],"signages":[4]}],[1,"grw-treks-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"offline":[4]}]]]]'),o)}));
2
2
  //# sourceMappingURL=geotrek-rando-widget.esm.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{c(r.next(t))}catch(t){s(t)}}function o(t){try{c(r["throw"](t))}catch(t){s(t)}}function c(t){t.done?e(t.value):i(t.value).then(u,o)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(n){return c([t,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=n.call(t,e)}catch(t){o=[6,t];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,s;r<i;r++){if(s||!(r in n)){if(!s)s=Array.prototype.slice.call(n,0,r);s[r]=n[r]}}return t.concat(s||Array.prototype.slice.call(n))};System.register(["./p-e0867d29.system.js","./p-d77c26bd.system.js","./p-c08abeee.system.js","./p-5e1d038f.system.js","./p-7a333892.system.js","./p-0e80aabf.system.js"],(function(t){"use strict";var n,e,r,i,s,u,o,c,f,a;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){i=t.h;s=t.g},function(t){u=t.g},function(t){o=t.g;c=t.a;f=t.b},function(t){a=t.s},function(){}],execute:function(){var h=t("grw_outdoor_courses_provider",function(){function t(t){n(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!a.api){a.api=this.api;a.languages=this.languages.split(",");a.language=a.languages[0]}this.handleOutdoorCourses()};t.prototype.handleOutdoorCourses=function(){this.handleOnlineOutdoorCourses()};t.prototype.handleOfflineOutdoorCourses=function(t){return __awaiter(this,void 0,void 0,(function(){var n,e,r;return __generator(this,(function(s){switch(s.label){case 0:n=a;return[4,i("cities")];case 1:n.cities=s.sent();e=a;return[4,i("districts")];case 2:e.districts=s.sent();r=a;return[4,i("themes")];case 3:r.themes=s.sent();return[4,i("outdoorCourses")];case 4:t=s.sent();a.outdoorCourses=t;a.currentOutdoorCourses=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourses=function(){var t=this;var n=[];n.push(!a.cities?o(a.api,a.language,this.init):new Response("null"));n.push(!a.districts?c(a.api,a.language,this.init):new Response("null"));n.push(!a.themes?f(a.api,a.language,this.portals,this.init):new Response("null"));n.push(u(a.api,a.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],n,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var n=t[0],e=t[1],r=t[2],i=t[3];a.networkError=false;if(n){a.cities=n.results}if(e){a.districts=e.results}if(r){a.themes=r.results}a.outdoorCourses=i.results;a.currentOutdoorCourses=i.results})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,s("outdoorCourses")];case 1:t=n.sent();if(t&&t.length>0){this.handleOfflineOutdoorCourses(t)}else{a.networkError=true}return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();a.networkError=false};t.prototype.render=function(){return e(r,{key:"8ff280d891a6a1b1c5d5d1ae797a1cde2cd9abdd"})};return t}())}}}));
2
- //# sourceMappingURL=p-10adcbc3.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{c(r.next(t))}catch(t){s(t)}}function o(t){try{c(r["throw"](t))}catch(t){s(t)}}function c(t){t.done?e(t.value):i(t.value).then(u,o)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(n){return c([t,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=n.call(t,e)}catch(t){o=[6,t];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,n,e){if(e||arguments.length===2)for(var r=0,i=n.length,s;r<i;r++){if(s||!(r in n)){if(!s)s=Array.prototype.slice.call(n,0,r);s[r]=n[r]}}return t.concat(s||Array.prototype.slice.call(n))};System.register(["./p-e0867d29.system.js","./p-315f99d3.system.js","./p-0dc681ee.system.js","./p-ebec2cdc.system.js","./p-e6471529.system.js","./p-5a1c21ad.system.js"],(function(t){"use strict";var n,e,r,i,s,u,o,c,f,a;return{setters:[function(t){n=t.r;e=t.h;r=t.H},function(t){i=t.h;s=t.g},function(t){u=t.g},function(t){o=t.g;c=t.a;f=t.b},function(t){a=t.s},function(){}],execute:function(){var h=t("grw_outdoor_courses_provider",function(){function t(t){n(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}t.prototype.connectedCallback=function(){if(!a.api){a.api=this.api;a.languages=this.languages.split(",");a.language=a.languages[0]}this.handleOutdoorCourses()};t.prototype.handleOutdoorCourses=function(){this.handleOnlineOutdoorCourses()};t.prototype.handleOfflineOutdoorCourses=function(t){return __awaiter(this,void 0,void 0,(function(){var n,e,r;return __generator(this,(function(s){switch(s.label){case 0:n=a;return[4,i("cities")];case 1:n.cities=s.sent();e=a;return[4,i("districts")];case 2:e.districts=s.sent();r=a;return[4,i("themes")];case 3:r.themes=s.sent();return[4,i("outdoorCourses")];case 4:t=s.sent();a.outdoorCourses=t;a.currentOutdoorCourses=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourses=function(){var t=this;var n=[];n.push(!a.cities?o(a.api,a.language,this.init):new Response("null"));n.push(!a.districts?c(a.api,a.language,this.init):new Response("null"));n.push(!a.themes?f(a.api,a.language,this.portals,this.init):new Response("null"));n.push(u(a.api,a.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],n,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var n=t[0],e=t[1],r=t[2],i=t[3];a.networkError=false;if(n){a.cities=n.results}if(e){a.districts=e.results}if(r){a.themes=r.results}a.outdoorCourses=i.results;a.currentOutdoorCourses=i.results})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,s("outdoorCourses")];case 1:t=n.sent();if(t&&t.length>0){this.handleOfflineOutdoorCourses(t)}else{a.networkError=true}return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();a.networkError=false};t.prototype.render=function(){return e(r,{key:"0ba181675e4765fa9da85e3016528e329584fe51"})};return t}())}}}));
2
+ //# sourceMappingURL=p-0213328a.system.entry.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./p-0e80aabf.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.d}],execute:function(){e({a:n,b:s,c:r,g:i});function i(e,i,r,n,s,a,c,u,o){var d="".concat(e,"outdoor_course/?language=").concat(i,"&published=true");r&&(d+="&in_bbox=".concat(r));n&&(d+="&cities=".concat(n));s&&(d+="&districts=".concat(s));a&&(d+="&structures=".concat(a));c&&(d+="&themes=".concat(c));u&&(d+="&portals=".concat(u));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 t(d,o)}function r(e,t,i,r){var n="".concat(e,"outdoor_course/").concat(i,"/?language=").concat(t,"&published=true");n+="&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(n,r)}function n(e,t,i){var r="".concat(e,"outdoor_coursetype/?language=").concat(t,"&published=true");return fetch(r,i)}function s(e,i,r,n){return t("".concat(e,"poi/?language=").concat(i,"&courses=").concat(r,"&published=true&fields=id,name,description,attachments,type,geometry"),n)}}}}));
2
- //# sourceMappingURL=p-c08abeee.system.js.map
1
+ System.register(["./p-5a1c21ad.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.d}],execute:function(){e({a:n,b:s,c:r,g:i});function i(e,i,r,n,s,a,c,u,o){var d="".concat(e,"outdoor_course/?language=").concat(i,"&published=true");r&&(d+="&in_bbox=".concat(r));n&&(d+="&cities=".concat(n));s&&(d+="&districts=".concat(s));a&&(d+="&structures=".concat(a));c&&(d+="&themes=".concat(c));u&&(d+="&portals=".concat(u));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 t(d,o)}function r(e,t,i,r){var n="".concat(e,"outdoor_course/").concat(i,"/?language=").concat(t,"&published=true");n+="&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(n,r)}function n(e,t,i){var r="".concat(e,"outdoor_coursetype/?language=").concat(t,"&published=true");return fetch(r,i)}function s(e,i,r,n){return t("".concat(e,"poi/?language=").concat(i,"&courses=").concat(r,"&published=true&fields=id,name,description,attachments,type,geometry"),n)}}}}));
2
+ //# sourceMappingURL=p-0dc681ee.system.js.map