@geotrekce/geotrek-rando-widget 0.4.6 → 0.5.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 (403) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  3. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  4. package/dist/cjs/{grw-filters_16.cjs.entry.js → grw-app_28.cjs.entry.js} +6975 -691
  5. package/dist/cjs/grw-app_28.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app_28.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app_28.cjs.entry.js.map +1 -0
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js.br +0 -0
  10. package/dist/cjs/loader.cjs.js.gz +0 -0
  11. package/dist/collection/collection-manifest.json +4 -0
  12. package/dist/collection/components/grw-app/grw-app.css +11 -124
  13. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  14. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  15. package/dist/collection/components/grw-app/grw-app.js +60 -49
  16. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  17. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  18. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  19. package/dist/collection/components/grw-common-button/grw-common-button.css +36 -0
  20. package/dist/collection/components/grw-common-button/grw-common-button.css.br +5 -0
  21. package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
  22. package/dist/collection/components/grw-common-button/grw-common-button.js +102 -0
  23. package/dist/collection/components/grw-common-button/grw-common-button.js.br +0 -0
  24. package/dist/collection/components/grw-common-button/grw-common-button.js.gz +0 -0
  25. package/dist/collection/components/grw-common-button/grw-common-button.js.map +1 -0
  26. package/dist/collection/components/grw-extended-fab/grw-extended-fab.css +35 -0
  27. package/dist/collection/components/grw-extended-fab/grw-extended-fab.css.br +0 -0
  28. package/dist/collection/components/grw-extended-fab/grw-extended-fab.css.gz +0 -0
  29. package/dist/collection/components/grw-extended-fab/grw-extended-fab.js +124 -0
  30. package/dist/collection/components/grw-extended-fab/grw-extended-fab.js.br +0 -0
  31. package/dist/collection/components/grw-extended-fab/grw-extended-fab.js.gz +0 -0
  32. package/dist/collection/components/grw-extended-fab/grw-extended-fab.js.map +1 -0
  33. package/dist/collection/components/grw-filter/grw-filter.css +9 -9
  34. package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
  35. package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
  36. package/dist/collection/components/grw-filter/grw-filter.js +22 -1
  37. package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
  38. package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
  39. package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
  40. package/dist/collection/components/grw-filters/grw-filters.css +12 -5
  41. package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
  42. package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
  43. package/dist/collection/components/grw-filters/grw-filters.js +22 -1
  44. package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
  45. package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
  46. package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
  47. package/dist/collection/components/grw-information-desk/grw-information-desk.css +2 -2
  48. package/dist/collection/components/grw-information-desk/grw-information-desk.css.br +0 -0
  49. package/dist/collection/components/grw-information-desk/grw-information-desk.css.gz +0 -0
  50. package/dist/collection/components/grw-information-desk/grw-information-desk.js +4 -1
  51. package/dist/collection/components/grw-information-desk/grw-information-desk.js.br +0 -0
  52. package/dist/collection/components/grw-information-desk/grw-information-desk.js.gz +0 -0
  53. package/dist/collection/components/grw-information-desk/grw-information-desk.js.map +1 -1
  54. package/dist/collection/components/grw-loader/grw-loader.css +19 -0
  55. package/dist/collection/components/grw-loader/grw-loader.css.br +0 -0
  56. package/dist/collection/components/grw-loader/grw-loader.css.gz +0 -0
  57. package/dist/collection/components/grw-loader/grw-loader.js +63 -0
  58. package/dist/collection/components/grw-loader/grw-loader.js.br +0 -0
  59. package/dist/collection/components/grw-loader/grw-loader.js.gz +0 -0
  60. package/dist/collection/components/grw-loader/grw-loader.js.map +1 -0
  61. package/dist/collection/components/grw-map/grw-map.css +6 -5
  62. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  63. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  64. package/dist/collection/components/grw-map/grw-map.js +44 -12
  65. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  66. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  67. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  68. package/dist/collection/components/grw-poi-detail/grw-poi.css +3 -3
  69. package/dist/collection/components/grw-poi-detail/grw-poi.css.br +0 -0
  70. package/dist/collection/components/grw-poi-detail/grw-poi.css.gz +0 -0
  71. package/dist/collection/components/grw-poi-detail/grw-poi.js +8 -2
  72. package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
  73. package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
  74. package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
  75. package/dist/collection/components/grw-search/grw-search.css +7 -3
  76. package/dist/collection/components/grw-search/grw-search.css.br +0 -0
  77. package/dist/collection/components/grw-search/grw-search.css.gz +0 -0
  78. package/dist/collection/components/grw-search/grw-search.js +28 -1
  79. package/dist/collection/components/grw-search/grw-search.js.br +0 -0
  80. package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
  81. package/dist/collection/components/grw-search/grw-search.js.map +1 -1
  82. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.css +42 -0
  83. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.css.br +0 -0
  84. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.css.gz +0 -0
  85. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js +135 -0
  86. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.br +0 -0
  87. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.gz +0 -0
  88. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.map +1 -0
  89. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css +8 -7
  90. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.br +0 -0
  91. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.gz +0 -0
  92. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js +31 -2
  93. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js.br +0 -0
  94. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js.gz +0 -0
  95. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js.map +1 -1
  96. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css +3 -3
  97. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css.br +0 -0
  98. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css.gz +0 -0
  99. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +30 -1
  100. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  101. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  102. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
  103. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css +1 -2
  104. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css.br +0 -0
  105. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css.gz +0 -0
  106. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js +20 -1
  107. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.br +0 -0
  108. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.gz +0 -0
  109. package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.map +1 -1
  110. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css +8 -7
  111. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.br +0 -0
  112. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.gz +0 -0
  113. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js +31 -2
  114. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.br +0 -0
  115. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.gz +0 -0
  116. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.map +1 -1
  117. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css +3 -3
  118. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.br +0 -0
  119. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.css.gz +0 -0
  120. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +30 -1
  121. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  122. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  123. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
  124. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css +1 -2
  125. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.br +0 -0
  126. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.gz +0 -0
  127. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +20 -1
  128. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
  129. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
  130. package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.map +1 -1
  131. package/dist/collection/components/grw-trek-card/grw-trek-card.css +5 -5
  132. package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
  133. package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
  134. package/dist/collection/components/grw-trek-card/grw-trek-card.js +35 -3
  135. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  136. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  137. package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
  138. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +12 -10
  139. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  140. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  141. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +48 -7
  142. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  143. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  144. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  145. package/dist/collection/components/grw-treks-list/grw-treks-list.css +2 -2
  146. package/dist/collection/components/grw-treks-list/grw-treks-list.css.br +0 -0
  147. package/dist/collection/components/grw-treks-list/grw-treks-list.css.gz +0 -0
  148. package/dist/collection/components/grw-treks-list/grw-treks-list.js +20 -1
  149. package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
  150. package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
  151. package/dist/collection/components/grw-treks-list/grw-treks-list.js.map +1 -1
  152. package/dist/collection/store/grw-trek-provider.js +6 -2
  153. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  154. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  155. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  156. package/dist/collection/store/store.js +1 -0
  157. package/dist/collection/store/store.js.br +0 -0
  158. package/dist/collection/store/store.js.gz +0 -0
  159. package/dist/collection/store/store.js.map +1 -1
  160. package/dist/collection/stories/App.stories.js +2 -2
  161. package/dist/collection/stories/App.stories.js.br +0 -0
  162. package/dist/collection/stories/App.stories.js.gz +0 -0
  163. package/dist/collection/stories/TrekMap.stories.js +2 -2
  164. package/dist/collection/stories/TrekMap.stories.js.br +0 -0
  165. package/dist/collection/stories/TrekMap.stories.js.gz +0 -0
  166. package/dist/collection/stories/TreksMap.stories.js +2 -2
  167. package/dist/collection/stories/TreksMap.stories.js.br +0 -0
  168. package/dist/collection/stories/TreksMap.stories.js.gz +0 -0
  169. package/dist/collection/types/types.js.map +1 -1
  170. package/dist/collection/utils/utils.js +5 -3
  171. package/dist/collection/utils/utils.js.br +0 -0
  172. package/dist/collection/utils/utils.js.gz +0 -0
  173. package/dist/collection/utils/utils.js.map +1 -1
  174. package/dist/esm/geotrek-rando-widget.js +3 -3
  175. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  176. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  177. package/dist/esm/{grw-filters_16.entry.js → grw-app_28.entry.js} +6511 -239
  178. package/dist/esm/grw-app_28.entry.js.br +0 -0
  179. package/dist/esm/grw-app_28.entry.js.gz +0 -0
  180. package/dist/esm/grw-app_28.entry.js.map +1 -0
  181. package/dist/esm/{index-d5cacae4.js → index-f51f19f9.js} +2 -2
  182. package/dist/esm/index-f51f19f9.js.br +0 -0
  183. package/dist/esm/index-f51f19f9.js.gz +0 -0
  184. package/dist/esm/{index-d5cacae4.js.map → index-f51f19f9.js.map} +1 -1
  185. package/dist/esm/loader.js +3 -3
  186. package/dist/esm/loader.js.br +0 -0
  187. package/dist/esm/loader.js.gz +0 -0
  188. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  189. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  190. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  191. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  192. package/dist/esm-es5/grw-app_28.entry.js +15 -0
  193. package/dist/esm-es5/grw-app_28.entry.js.br +0 -0
  194. package/dist/esm-es5/grw-app_28.entry.js.gz +0 -0
  195. package/dist/esm-es5/grw-app_28.entry.js.map +1 -0
  196. package/dist/esm-es5/{index-d5cacae4.js → index-f51f19f9.js} +2 -2
  197. package/dist/esm-es5/index-f51f19f9.js.br +0 -0
  198. package/dist/esm-es5/index-f51f19f9.js.gz +0 -0
  199. package/dist/esm-es5/loader.js +1 -1
  200. package/dist/esm-es5/loader.js.br +0 -0
  201. package/dist/esm-es5/loader.js.gz +0 -0
  202. package/dist/esm-es5/loader.js.map +1 -1
  203. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  204. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  205. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  206. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  207. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
  208. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
  209. package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
  210. package/dist/geotrek-rando-widget/p-772a2e24.entry.js +15 -0
  211. package/dist/geotrek-rando-widget/p-772a2e24.entry.js.br +0 -0
  212. package/dist/geotrek-rando-widget/p-772a2e24.entry.js.gz +0 -0
  213. package/dist/geotrek-rando-widget/p-772a2e24.entry.js.map +1 -0
  214. package/dist/geotrek-rando-widget/{p-d2c035bc.system.js → p-9d93427a.system.js} +2 -2
  215. package/dist/geotrek-rando-widget/p-9d93427a.system.js.br +0 -0
  216. package/dist/geotrek-rando-widget/p-9d93427a.system.js.gz +0 -0
  217. package/dist/geotrek-rando-widget/p-cae9163d.system.entry.js +15 -0
  218. package/dist/geotrek-rando-widget/p-cae9163d.system.entry.js.br +0 -0
  219. package/dist/geotrek-rando-widget/p-cae9163d.system.entry.js.gz +0 -0
  220. package/dist/geotrek-rando-widget/p-cae9163d.system.entry.js.map +1 -0
  221. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js +2 -0
  222. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.br +0 -0
  223. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.gz +0 -0
  224. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.map +1 -0
  225. package/dist/geotrek-rando-widget/{p-0c07a3f0.js → p-fb5e6f55.js} +2 -2
  226. package/dist/geotrek-rando-widget/p-fb5e6f55.js.br +0 -0
  227. package/dist/geotrek-rando-widget/p-fb5e6f55.js.gz +0 -0
  228. package/dist/types/components/grw-app/grw-app.d.ts +3 -2
  229. package/dist/types/components/grw-common-button/grw-common-button.d.ts +7 -0
  230. package/dist/types/components/grw-extended-fab/grw-extended-fab.d.ts +8 -0
  231. package/dist/types/components/grw-filter/grw-filter.d.ts +1 -0
  232. package/dist/types/components/grw-filters/grw-filters.d.ts +1 -0
  233. package/dist/types/components/grw-loader/grw-loader.d.ts +5 -0
  234. package/dist/types/components/grw-map/grw-map.d.ts +1 -0
  235. package/dist/types/components/grw-search/grw-search.d.ts +1 -0
  236. package/dist/types/components/grw-segmented-segment/grw-segmented-segment.d.ts +9 -0
  237. package/dist/types/components/grw-touristic-content/grw-touristic-content-card.d.ts +1 -0
  238. package/dist/types/components/grw-touristic-content-detail/grw-touristic-content-detail.d.ts +1 -0
  239. package/dist/types/components/grw-touristic-contents-list/grw-touristic-contents-list.d.ts +1 -0
  240. package/dist/types/components/grw-touristic-event/grw-touristic-event-card.d.ts +1 -0
  241. package/dist/types/components/grw-touristic-event-detail/grw-touristic-event-detail.d.ts +1 -0
  242. package/dist/types/components/grw-touristic-events-list/grw-touristic-events-list.d.ts +1 -0
  243. package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +1 -0
  244. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +1 -0
  245. package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +1 -0
  246. package/dist/types/components.d.ts +112 -0
  247. package/dist/types/store/store.d.ts +3 -1
  248. package/dist/types/types/types.d.ts +7 -1
  249. package/dist/types/utils/utils.d.ts +1 -1
  250. package/package.json +1 -1
  251. package/dist/cjs/grw-app.cjs.entry.js +0 -383
  252. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  253. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  254. package/dist/cjs/grw-app.cjs.entry.js.map +0 -1
  255. package/dist/cjs/grw-filter.cjs.entry.js +0 -102
  256. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  257. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  258. package/dist/cjs/grw-filter.cjs.entry.js.map +0 -1
  259. package/dist/cjs/grw-filters_16.cjs.entry.js.br +0 -0
  260. package/dist/cjs/grw-filters_16.cjs.entry.js.gz +0 -0
  261. package/dist/cjs/grw-filters_16.cjs.entry.js.map +0 -1
  262. package/dist/cjs/grw-information-desk_6.cjs.entry.js +0 -313
  263. package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
  264. package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
  265. package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +0 -1
  266. package/dist/cjs/i18n-25e8e038.js +0 -192
  267. package/dist/cjs/i18n-25e8e038.js.br +0 -0
  268. package/dist/cjs/i18n-25e8e038.js.gz +0 -0
  269. package/dist/cjs/i18n-25e8e038.js.map +0 -1
  270. package/dist/cjs/pagination-149c2052.js +0 -4655
  271. package/dist/cjs/pagination-149c2052.js.br +0 -0
  272. package/dist/cjs/pagination-149c2052.js.gz +0 -0
  273. package/dist/cjs/pagination-149c2052.js.map +0 -1
  274. package/dist/cjs/utils-aafb9447.js +0 -505
  275. package/dist/cjs/utils-aafb9447.js.br +0 -0
  276. package/dist/cjs/utils-aafb9447.js.gz +0 -0
  277. package/dist/cjs/utils-aafb9447.js.map +0 -1
  278. package/dist/esm/grw-app.entry.js +0 -379
  279. package/dist/esm/grw-app.entry.js.br +0 -0
  280. package/dist/esm/grw-app.entry.js.gz +0 -0
  281. package/dist/esm/grw-app.entry.js.map +0 -1
  282. package/dist/esm/grw-filter.entry.js +0 -98
  283. package/dist/esm/grw-filter.entry.js.br +0 -0
  284. package/dist/esm/grw-filter.entry.js.gz +0 -0
  285. package/dist/esm/grw-filter.entry.js.map +0 -1
  286. package/dist/esm/grw-filters_16.entry.js.br +0 -0
  287. package/dist/esm/grw-filters_16.entry.js.gz +0 -0
  288. package/dist/esm/grw-filters_16.entry.js.map +0 -1
  289. package/dist/esm/grw-information-desk_6.entry.js +0 -304
  290. package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
  291. package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
  292. package/dist/esm/grw-information-desk_6.entry.js.map +0 -1
  293. package/dist/esm/i18n-c18b35f3.js +0 -190
  294. package/dist/esm/i18n-c18b35f3.js.br +0 -0
  295. package/dist/esm/i18n-c18b35f3.js.gz +0 -0
  296. package/dist/esm/i18n-c18b35f3.js.map +0 -1
  297. package/dist/esm/index-d5cacae4.js.br +0 -0
  298. package/dist/esm/index-d5cacae4.js.gz +0 -0
  299. package/dist/esm/pagination-24051620.js +0 -4646
  300. package/dist/esm/pagination-24051620.js.br +0 -0
  301. package/dist/esm/pagination-24051620.js.gz +0 -0
  302. package/dist/esm/pagination-24051620.js.map +0 -1
  303. package/dist/esm/utils-6441a08a.js +0 -492
  304. package/dist/esm/utils-6441a08a.js.br +0 -0
  305. package/dist/esm/utils-6441a08a.js.gz +0 -0
  306. package/dist/esm/utils-6441a08a.js.map +0 -1
  307. package/dist/esm-es5/grw-app.entry.js +0 -2
  308. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  309. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  310. package/dist/esm-es5/grw-app.entry.js.map +0 -1
  311. package/dist/esm-es5/grw-filter.entry.js +0 -3
  312. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  313. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  314. package/dist/esm-es5/grw-filter.entry.js.map +0 -1
  315. package/dist/esm-es5/grw-filters_16.entry.js +0 -14
  316. package/dist/esm-es5/grw-filters_16.entry.js.br +0 -0
  317. package/dist/esm-es5/grw-filters_16.entry.js.gz +0 -0
  318. package/dist/esm-es5/grw-filters_16.entry.js.map +0 -1
  319. package/dist/esm-es5/grw-information-desk_6.entry.js +0 -2
  320. package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
  321. package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
  322. package/dist/esm-es5/grw-information-desk_6.entry.js.map +0 -1
  323. package/dist/esm-es5/i18n-c18b35f3.js +0 -2
  324. package/dist/esm-es5/i18n-c18b35f3.js.br +0 -0
  325. package/dist/esm-es5/i18n-c18b35f3.js.gz +0 -0
  326. package/dist/esm-es5/i18n-c18b35f3.js.map +0 -1
  327. package/dist/esm-es5/index-d5cacae4.js.br +0 -0
  328. package/dist/esm-es5/index-d5cacae4.js.gz +0 -0
  329. package/dist/esm-es5/pagination-24051620.js +0 -2
  330. package/dist/esm-es5/pagination-24051620.js.br +0 -0
  331. package/dist/esm-es5/pagination-24051620.js.gz +0 -0
  332. package/dist/esm-es5/pagination-24051620.js.map +0 -1
  333. package/dist/esm-es5/utils-6441a08a.js +0 -2
  334. package/dist/esm-es5/utils-6441a08a.js.br +0 -0
  335. package/dist/esm-es5/utils-6441a08a.js.gz +0 -0
  336. package/dist/esm-es5/utils-6441a08a.js.map +0 -1
  337. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js +0 -14
  338. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.br +0 -0
  339. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.gz +0 -0
  340. package/dist/geotrek-rando-widget/p-01f5ed45.system.entry.js.map +0 -1
  341. package/dist/geotrek-rando-widget/p-06412985.entry.js +0 -3
  342. package/dist/geotrek-rando-widget/p-06412985.entry.js.br +0 -0
  343. package/dist/geotrek-rando-widget/p-06412985.entry.js.gz +0 -0
  344. package/dist/geotrek-rando-widget/p-06412985.entry.js.map +0 -1
  345. package/dist/geotrek-rando-widget/p-0955858f.system.js +0 -2
  346. package/dist/geotrek-rando-widget/p-0955858f.system.js.br +0 -0
  347. package/dist/geotrek-rando-widget/p-0955858f.system.js.gz +0 -0
  348. package/dist/geotrek-rando-widget/p-0955858f.system.js.map +0 -1
  349. package/dist/geotrek-rando-widget/p-0c07a3f0.js.br +0 -0
  350. package/dist/geotrek-rando-widget/p-0c07a3f0.js.gz +0 -0
  351. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js +0 -2
  352. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.br +0 -0
  353. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.gz +0 -0
  354. package/dist/geotrek-rando-widget/p-0d8a3c86.system.entry.js.map +0 -1
  355. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js +0 -2
  356. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.br +0 -0
  357. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.gz +0 -0
  358. package/dist/geotrek-rando-widget/p-1cfb837f.entry.js.map +0 -1
  359. package/dist/geotrek-rando-widget/p-6f7916db.system.js +0 -2
  360. package/dist/geotrek-rando-widget/p-6f7916db.system.js.br +0 -0
  361. package/dist/geotrek-rando-widget/p-6f7916db.system.js.gz +0 -0
  362. package/dist/geotrek-rando-widget/p-6f7916db.system.js.map +0 -1
  363. package/dist/geotrek-rando-widget/p-73278096.system.entry.js +0 -4
  364. package/dist/geotrek-rando-widget/p-73278096.system.entry.js.br +0 -0
  365. package/dist/geotrek-rando-widget/p-73278096.system.entry.js.gz +0 -0
  366. package/dist/geotrek-rando-widget/p-73278096.system.entry.js.map +0 -1
  367. package/dist/geotrek-rando-widget/p-8872ebd8.system.js +0 -2
  368. package/dist/geotrek-rando-widget/p-8872ebd8.system.js.br +0 -0
  369. package/dist/geotrek-rando-widget/p-8872ebd8.system.js.gz +0 -0
  370. package/dist/geotrek-rando-widget/p-8872ebd8.system.js.map +0 -1
  371. package/dist/geotrek-rando-widget/p-a06aacd4.js +0 -2
  372. package/dist/geotrek-rando-widget/p-a06aacd4.js.br +0 -0
  373. package/dist/geotrek-rando-widget/p-a06aacd4.js.gz +0 -0
  374. package/dist/geotrek-rando-widget/p-a06aacd4.js.map +0 -1
  375. package/dist/geotrek-rando-widget/p-bcac98e0.js +0 -2
  376. package/dist/geotrek-rando-widget/p-bcac98e0.js.br +0 -0
  377. package/dist/geotrek-rando-widget/p-bcac98e0.js.gz +0 -0
  378. package/dist/geotrek-rando-widget/p-bcac98e0.js.map +0 -1
  379. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js +0 -2
  380. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.br +0 -0
  381. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.gz +0 -0
  382. package/dist/geotrek-rando-widget/p-cc8a7df2.system.js.map +0 -1
  383. package/dist/geotrek-rando-widget/p-d2c035bc.system.js.br +0 -0
  384. package/dist/geotrek-rando-widget/p-d2c035bc.system.js.gz +0 -0
  385. package/dist/geotrek-rando-widget/p-e16d970b.js +0 -2
  386. package/dist/geotrek-rando-widget/p-e16d970b.js.br +0 -0
  387. package/dist/geotrek-rando-widget/p-e16d970b.js.gz +0 -0
  388. package/dist/geotrek-rando-widget/p-e16d970b.js.map +0 -1
  389. package/dist/geotrek-rando-widget/p-e9caba62.entry.js +0 -14
  390. package/dist/geotrek-rando-widget/p-e9caba62.entry.js.br +0 -0
  391. package/dist/geotrek-rando-widget/p-e9caba62.entry.js.gz +0 -0
  392. package/dist/geotrek-rando-widget/p-e9caba62.entry.js.map +0 -1
  393. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js +0 -2
  394. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.br +0 -0
  395. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.gz +0 -0
  396. package/dist/geotrek-rando-widget/p-ebadf1e2.system.entry.js.map +0 -1
  397. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js +0 -2
  398. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.br +0 -0
  399. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.gz +0 -0
  400. package/dist/geotrek-rando-widget/p-ff607e4b.entry.js.map +0 -1
  401. /package/dist/esm-es5/{index-d5cacae4.js.map → index-f51f19f9.js.map} +0 -0
  402. /package/dist/geotrek-rando-widget/{p-d2c035bc.system.js.map → p-9d93427a.system.js.map} +0 -0
  403. /package/dist/geotrek-rando-widget/{p-0c07a3f0.js.map → p-fb5e6f55.js.map} +0 -0
@@ -1,505 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-9e4fe3f0.js');
4
-
5
- const appendToMap = (map, propName, value) => {
6
- const items = map.get(propName);
7
- if (!items) {
8
- map.set(propName, [value]);
9
- }
10
- else if (!items.includes(value)) {
11
- items.push(value);
12
- }
13
- };
14
- const debounce = (fn, ms) => {
15
- let timeoutId;
16
- return (...args) => {
17
- if (timeoutId) {
18
- clearTimeout(timeoutId);
19
- }
20
- timeoutId = setTimeout(() => {
21
- timeoutId = 0;
22
- fn(...args);
23
- }, ms);
24
- };
25
- };
26
-
27
- /**
28
- * Check if a possible element isConnected.
29
- * The property might not be there, so we check for it.
30
- *
31
- * We want it to return true if isConnected is not a property,
32
- * otherwise we would remove these elements and would not update.
33
- *
34
- * Better leak in Edge than to be useless.
35
- */
36
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
37
- const cleanupElements = debounce((map) => {
38
- for (let key of map.keys()) {
39
- map.set(key, map.get(key).filter(isConnected));
40
- }
41
- }, 2000);
42
- const stencilSubscription = () => {
43
- if (typeof index.getRenderingRef !== 'function') {
44
- // If we are not in a stencil project, we do nothing.
45
- // This function is not really exported by @stencil/core.
46
- return {};
47
- }
48
- const elmsToUpdate = new Map();
49
- return {
50
- dispose: () => elmsToUpdate.clear(),
51
- get: (propName) => {
52
- const elm = index.getRenderingRef();
53
- if (elm) {
54
- appendToMap(elmsToUpdate, propName, elm);
55
- }
56
- },
57
- set: (propName) => {
58
- const elements = elmsToUpdate.get(propName);
59
- if (elements) {
60
- elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
61
- }
62
- cleanupElements(elmsToUpdate);
63
- },
64
- reset: () => {
65
- elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
66
- cleanupElements(elmsToUpdate);
67
- },
68
- };
69
- };
70
-
71
- const unwrap = (val) => (typeof val === 'function' ? val() : val);
72
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
73
- const unwrappedState = unwrap(defaultState);
74
- let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
75
- const handlers = {
76
- dispose: [],
77
- get: [],
78
- set: [],
79
- reset: [],
80
- };
81
- const reset = () => {
82
- var _a;
83
- // When resetting the state, the default state may be a function - unwrap it to invoke it.
84
- // otherwise, the state won't be properly reset
85
- states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
86
- handlers.reset.forEach((cb) => cb());
87
- };
88
- const dispose = () => {
89
- // Call first dispose as resetting the state would
90
- // cause less updates ;)
91
- handlers.dispose.forEach((cb) => cb());
92
- reset();
93
- };
94
- const get = (propName) => {
95
- handlers.get.forEach((cb) => cb(propName));
96
- return states.get(propName);
97
- };
98
- const set = (propName, value) => {
99
- const oldValue = states.get(propName);
100
- if (shouldUpdate(value, oldValue, propName)) {
101
- states.set(propName, value);
102
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
103
- }
104
- };
105
- const state = (typeof Proxy === 'undefined'
106
- ? {}
107
- : new Proxy(unwrappedState, {
108
- get(_, propName) {
109
- return get(propName);
110
- },
111
- ownKeys(_) {
112
- return Array.from(states.keys());
113
- },
114
- getOwnPropertyDescriptor() {
115
- return {
116
- enumerable: true,
117
- configurable: true,
118
- };
119
- },
120
- has(_, propName) {
121
- return states.has(propName);
122
- },
123
- set(_, propName, value) {
124
- set(propName, value);
125
- return true;
126
- },
127
- }));
128
- const on = (eventName, callback) => {
129
- handlers[eventName].push(callback);
130
- return () => {
131
- removeFromArray(handlers[eventName], callback);
132
- };
133
- };
134
- const onChange = (propName, cb) => {
135
- const unSet = on('set', (key, newValue) => {
136
- if (key === propName) {
137
- cb(newValue);
138
- }
139
- });
140
- // We need to unwrap the defaultState because it might be a function.
141
- // Otherwise we might not be sending the right reset value.
142
- const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
143
- return () => {
144
- unSet();
145
- unReset();
146
- };
147
- };
148
- const use = (...subscriptions) => {
149
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
150
- if (subscription.set) {
151
- unsubs.push(on('set', subscription.set));
152
- }
153
- if (subscription.get) {
154
- unsubs.push(on('get', subscription.get));
155
- }
156
- if (subscription.reset) {
157
- unsubs.push(on('reset', subscription.reset));
158
- }
159
- if (subscription.dispose) {
160
- unsubs.push(on('dispose', subscription.dispose));
161
- }
162
- return unsubs;
163
- }, []);
164
- return () => unsubs.forEach((unsub) => unsub());
165
- };
166
- const forceUpdate = (key) => {
167
- const oldValue = states.get(key);
168
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
169
- };
170
- return {
171
- state,
172
- get,
173
- set,
174
- on,
175
- onChange,
176
- use,
177
- dispose,
178
- reset,
179
- forceUpdate,
180
- };
181
- };
182
- const removeFromArray = (array, item) => {
183
- const index = array.indexOf(item);
184
- if (index >= 0) {
185
- array[index] = array[array.length - 1];
186
- array.length--;
187
- }
188
- };
189
-
190
- const createStore = (defaultState, shouldUpdate) => {
191
- const map = createObservableMap(defaultState, shouldUpdate);
192
- map.use(stencilSubscription());
193
- return map;
194
- };
195
-
196
- const { state, onChange, reset } = createStore({
197
- mode: null,
198
- api: null,
199
- languages: null,
200
- language: null,
201
- treks: null,
202
- currentTreks: null,
203
- treksWithinBounds: null,
204
- currentMapBounds: null,
205
- difficulties: null,
206
- routes: null,
207
- practices: null,
208
- themes: null,
209
- cities: null,
210
- durations: null,
211
- lengths: null,
212
- elevations: null,
213
- currentSensitiveAreas: null,
214
- labels: null,
215
- districts: null,
216
- sources: null,
217
- ratings: null,
218
- accessibilities: null,
219
- accessibilitiesLevel: null,
220
- poiTypes: null,
221
- currentTrek: null,
222
- currentPois: null,
223
- currentInformationDesks: null,
224
- treksNetworkError: false,
225
- trekNetworkError: false,
226
- searchValue: null,
227
- selectedActivitiesFilters: 0,
228
- selectedThemesFilters: 0,
229
- selectedLocationFilters: 0,
230
- selectedTrekId: null,
231
- parentTrekId: null,
232
- parentTrek: null,
233
- currentTrekSteps: null,
234
- selectedStepId: null,
235
- trekTouristicContents: null,
236
- touristicContents: null,
237
- currentTouristicContents: null,
238
- touristicContentsWithinBounds: null,
239
- touristicContentCategories: null,
240
- currentTouristicContent: null,
241
- touristicEvents: null,
242
- currentTouristicEvents: null,
243
- touristicEventsWithinBounds: null,
244
- touristicEventTypes: null,
245
- currentTouristicEvent: null,
246
- selectedTouristicContentId: null,
247
- selectedTouristicEventId: null,
248
- });
249
-
250
- function formatDuration(duration) {
251
- let formattedDuration;
252
- if (duration < 24) {
253
- formattedDuration = `${Math.floor(duration)}h`;
254
- if (duration % 1 > 0) {
255
- formattedDuration += `${Math.round(60 * (duration % 1))}min`;
256
- }
257
- }
258
- else {
259
- formattedDuration = `${duration / 24}j`;
260
- }
261
- return formattedDuration;
262
- }
263
- function formatLength(length) {
264
- return `${Math.round(length / 1000)}km`;
265
- }
266
- function formatAscent(ascent) {
267
- return `${ascent}m`;
268
- }
269
- const treksFilters = [
270
- { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },
271
- { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },
272
- { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },
273
- { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },
274
- { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },
275
- { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },
276
- { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },
277
- { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },
278
- { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include', segment: 'selectedThemesFilters' },
279
- { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },
280
- { property: 'districts', trekProperty: 'districts', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },
281
- ];
282
- const touristicContentsFilters = [
283
- { property: 'touristicContentCategories', touristicContentProperty: 'category', touristicContentPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },
284
- { property: 'cities', touristicContentProperty: 'cities', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },
285
- { property: 'districts', touristicContentProperty: 'districts', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },
286
- ];
287
- const touristicEventsFilters = [
288
- { property: 'touristicEventTypes', touristicEventProperty: 'type', touristicEventPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },
289
- { property: 'cities', touristicEventProperty: 'cities', touristicEventPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },
290
- { property: 'districts', touristicEventProperty: 'districts', touristicEventPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },
291
- ];
292
- function handleTreksFiltersAndSearch() {
293
- let isUsingFilter = false;
294
- let filtersTreks = [];
295
- for (const filter of treksFilters) {
296
- const currentFiltersId = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);
297
- if (currentFiltersId.length > 0) {
298
- if (filtersTreks.length > 0) {
299
- if (filter.type === 'include') {
300
- if (filter.trekPropertyIsArray) {
301
- filtersTreks = [...filtersTreks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];
302
- }
303
- else {
304
- filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];
305
- }
306
- }
307
- else if (filter.type === 'interval') {
308
- filtersTreks = [
309
- ...filtersTreks.filter(trek => {
310
- for (const currentFilterId of currentFiltersId) {
311
- const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
312
- if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {
313
- return true;
314
- }
315
- }
316
- return false;
317
- }),
318
- ];
319
- }
320
- }
321
- else {
322
- if (!isUsingFilter) {
323
- isUsingFilter = true;
324
- }
325
- if (filter.type === 'include') {
326
- if (filter.trekPropertyIsArray) {
327
- filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];
328
- }
329
- else {
330
- filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];
331
- }
332
- }
333
- else if (filter.type === 'interval') {
334
- let minValue;
335
- let maxValue;
336
- for (const currentFilterId of currentFiltersId) {
337
- const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
338
- if (isNaN(minValue) || currentFilter.minValue < minValue) {
339
- minValue = currentFilter.minValue;
340
- }
341
- if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {
342
- maxValue = currentFilter.maxValue;
343
- }
344
- }
345
- filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];
346
- }
347
- }
348
- }
349
- }
350
- const searchTreks = isUsingFilter ? filtersTreks : state.treks;
351
- return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;
352
- }
353
- function handleTouristicContentsFiltersAndSearch() {
354
- let isUsingFilter = false;
355
- let filtersTouristicContents = [];
356
- for (const filter of touristicContentsFilters) {
357
- const currentFiltersId = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);
358
- if (currentFiltersId.length > 0) {
359
- if (filtersTouristicContents.length > 0) {
360
- if (filter.type === 'include') {
361
- if (filter.touristicContentPropertyIsArray) {
362
- filtersTouristicContents = [
363
- ...filtersTouristicContents.filter(touristicContent => touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty))),
364
- ];
365
- }
366
- else {
367
- filtersTouristicContents = [...filtersTouristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];
368
- }
369
- }
370
- else if (filter.type === 'interval') {
371
- filtersTouristicContents = [
372
- ...filtersTouristicContents.filter(touristicContent => {
373
- for (const currentFilterId of currentFiltersId) {
374
- const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
375
- if (touristicContent[filter.touristicContentProperty] >= currentFilter.minValue && touristicContent[filter.touristicContentProperty] <= currentFilter.maxValue) {
376
- return true;
377
- }
378
- }
379
- return false;
380
- }),
381
- ];
382
- }
383
- }
384
- else {
385
- if (!isUsingFilter) {
386
- isUsingFilter = true;
387
- }
388
- if (filter.type === 'include') {
389
- if (filter.touristicContentPropertyIsArray) {
390
- filtersTouristicContents = [
391
- ...state.touristicContents.filter(touristicContent => touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty))),
392
- ];
393
- }
394
- else {
395
- filtersTouristicContents = [...state.touristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];
396
- }
397
- }
398
- else if (filter.type === 'interval') {
399
- let minValue;
400
- let maxValue;
401
- for (const currentFilterId of currentFiltersId) {
402
- const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
403
- if (isNaN(minValue) || currentFilter.minValue < minValue) {
404
- minValue = currentFilter.minValue;
405
- }
406
- if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {
407
- maxValue = currentFilter.maxValue;
408
- }
409
- }
410
- filtersTouristicContents = [
411
- ...state.touristicContents.filter(touristicContent => touristicContent[filter.touristicContentProperty] >= minValue && touristicContent[filter.touristicContentProperty] <= maxValue),
412
- ];
413
- }
414
- }
415
- }
416
- }
417
- const searchTouristicContents = isUsingFilter ? filtersTouristicContents : state.touristicContents;
418
- return Boolean(state.searchValue)
419
- ? searchTouristicContents.filter(currentTouristicContents => currentTouristicContents.name.toLowerCase().includes(state.searchValue.toLowerCase()))
420
- : searchTouristicContents;
421
- }
422
- function handleTouristicEventsFiltersAndSearch() {
423
- let isUsingFilter = false;
424
- let filtersTouristicEvents = [];
425
- for (const filter of touristicEventsFilters) {
426
- const currentFiltersId = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);
427
- if (currentFiltersId.length > 0) {
428
- if (filtersTouristicEvents.length > 0) {
429
- if (filter.type === 'include') {
430
- if (filter.touristicEventPropertyIsArray) {
431
- filtersTouristicEvents = [
432
- ...filtersTouristicEvents.filter(touristicContent => touristicContent[filter.touristicEventProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty))),
433
- ];
434
- }
435
- else {
436
- filtersTouristicEvents = [...filtersTouristicEvents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicEventProperty]))];
437
- }
438
- }
439
- else if (filter.type === 'interval') {
440
- filtersTouristicEvents = [
441
- ...filtersTouristicEvents.filter(touristicContent => {
442
- for (const currentFilterId of currentFiltersId) {
443
- const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
444
- if (touristicContent[filter.touristicEventProperty] >= currentFilter.minValue && touristicContent[filter.touristicEventProperty] <= currentFilter.maxValue) {
445
- return true;
446
- }
447
- }
448
- return false;
449
- }),
450
- ];
451
- }
452
- }
453
- else {
454
- if (!isUsingFilter) {
455
- isUsingFilter = true;
456
- }
457
- if (filter.type === 'include') {
458
- if (filter.touristicEventPropertyIsArray) {
459
- filtersTouristicEvents = [
460
- ...state.touristicContents.filter(touristicContent => touristicContent[filter.touristicEventProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty))),
461
- ];
462
- }
463
- else {
464
- filtersTouristicEvents = [...state.touristicEvents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicEventProperty]))];
465
- }
466
- }
467
- else if (filter.type === 'interval') {
468
- let minValue;
469
- let maxValue;
470
- for (const currentFilterId of currentFiltersId) {
471
- const currentFilter = state[filter.property].find(property => property.id === currentFilterId);
472
- if (isNaN(minValue) || currentFilter.minValue < minValue) {
473
- minValue = currentFilter.minValue;
474
- }
475
- if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {
476
- maxValue = currentFilter.maxValue;
477
- }
478
- }
479
- filtersTouristicEvents = [
480
- ...state.touristicEvents.filter(touristicEvent => touristicEvent[filter.touristicEventProperty] >= minValue && touristicEvent[filter.touristicEventProperty] <= maxValue),
481
- ];
482
- }
483
- }
484
- }
485
- }
486
- const searchTouristicEvents = isUsingFilter ? filtersTouristicEvents : state.touristicEvents;
487
- return Boolean(state.searchValue)
488
- ? searchTouristicEvents.filter(currentTouristicEvent => currentTouristicEvent.name.toLowerCase().includes(state.searchValue.toLowerCase()))
489
- : searchTouristicEvents;
490
- }
491
-
492
- exports.formatAscent = formatAscent;
493
- exports.formatDuration = formatDuration;
494
- exports.formatLength = formatLength;
495
- exports.handleTouristicContentsFiltersAndSearch = handleTouristicContentsFiltersAndSearch;
496
- exports.handleTouristicEventsFiltersAndSearch = handleTouristicEventsFiltersAndSearch;
497
- exports.handleTreksFiltersAndSearch = handleTreksFiltersAndSearch;
498
- exports.onChange = onChange;
499
- exports.reset = reset;
500
- exports.state = state;
501
- exports.touristicContentsFilters = touristicContentsFilters;
502
- exports.touristicEventsFilters = touristicEventsFilters;
503
- exports.treksFilters = treksFilters;
504
-
505
- //# sourceMappingURL=utils-aafb9447.js.map
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"file":"utils-aafb9447.js","mappings":";;;;AAEA,MAAM,WAAW,GAAG,CAAC,GAA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AC,QAAQ,CAAC;aACnC;WACF;UACD,sBAAsB,GAAG;YACvB,GAAG,KAAK,CAAC,eAAe,CAAC,MAAM,CAC7B,cAAc,IAAI,cAAc,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,QAAQ,IAAI,cAAc,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,QAAQ,CACzI;WACF,CAAC;SACH;OACF;KACF;GACF;EACD,MAAM,qBAAqB,GAAG,aAAa,GAAG,sBAAsB,GAAG,KAAK,CAAC,eAAe,CAAC;EAC7F,OAAO,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;MAC7B,qBAAqB,CAAC,MAAM,CAAC,qBAAqB,IAAI,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;MACzI,qBAAqB,CAAC;AAC5B;;;;;;;;;;;;;;;","names":["getRenderingRef","forceUpdate"],"sources":["./node_modules/@stencil/store/dist/index.mjs","./src/store/store.ts","./src/utils/utils.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} 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 accessibilities: Accessibilities;\n accessibilitiesLevel: accessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n treksNetworkError: boolean;\n trekNetworkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n touristicEvents: TouristicEvents;\n currentTouristicEvents: TouristicEvents;\n touristicEventsWithinBounds: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n selectedTouristicEventId: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n ratings: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n treksNetworkError: false,\n trekNetworkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n touristicEvents: null,\n currentTouristicEvents: null,\n touristicEventsWithinBounds: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n selectedTouristicEventId: null,\n});\n\nexport { onChange, reset };\n\nexport default state;\n","import state from 'store/store';\nimport { TouristicContents, TouristicContentsFilters, TouristicEvents, TouristicEventsFilters, TrekFilters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport const treksFilters: TrekFilters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval', segment: 'selectedActivitiesFilters' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include', segment: 'selectedThemesFilters' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', trekProperty: 'districts', trekPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport const touristicContentsFilters: TouristicContentsFilters = [\n { property: 'touristicContentCategories', touristicContentProperty: 'category', touristicContentPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'cities', touristicContentProperty: 'cities', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', touristicContentProperty: 'districts', touristicContentPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport const touristicEventsFilters: TouristicEventsFilters = [\n { property: 'touristicEventTypes', touristicEventProperty: 'type', touristicEventPropertyIsArray: false, type: 'include', segment: 'selectedActivitiesFilters' },\n { property: 'cities', touristicEventProperty: 'cities', touristicEventPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n { property: 'districts', touristicEventProperty: 'districts', touristicEventPropertyIsArray: true, type: 'include', segment: 'selectedLocationFilters' },\n];\n\nexport function handleTreksFiltersAndSearch(): Treks {\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of treksFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...filtersTreks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n\nexport function handleTouristicContentsFiltersAndSearch(): TouristicContents {\n let isUsingFilter = false;\n let filtersTouristicContents = [];\n for (const filter of touristicContentsFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n\n if (currentFiltersId.length > 0) {\n if (filtersTouristicContents.length > 0) {\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...filtersTouristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTouristicContents = [\n ...filtersTouristicContents.filter(touristicContent => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (touristicContent[filter.touristicContentProperty] >= currentFilter.minValue && touristicContent[filter.touristicContentProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.touristicContentPropertyIsArray) {\n filtersTouristicContents = [\n ...state.touristicContents.filter(touristicContent =>\n touristicContent[filter.touristicContentProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicContents = [...state.touristicContents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicContentProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTouristicContents = [\n ...state.touristicContents.filter(\n touristicContent => touristicContent[filter.touristicContentProperty] >= minValue && touristicContent[filter.touristicContentProperty] <= maxValue,\n ),\n ];\n }\n }\n }\n }\n const searchTouristicContents = isUsingFilter ? filtersTouristicContents : state.touristicContents;\n\n return Boolean(state.searchValue)\n ? searchTouristicContents.filter(currentTouristicContents => currentTouristicContents.name.toLowerCase().includes(state.searchValue.toLowerCase()))\n : searchTouristicContents;\n}\n\nexport function handleTouristicEventsFiltersAndSearch(): TouristicEvents {\n let isUsingFilter = false;\n let filtersTouristicEvents = [];\n for (const filter of touristicEventsFilters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n\n if (currentFiltersId.length > 0) {\n if (filtersTouristicEvents.length > 0) {\n if (filter.type === 'include') {\n if (filter.touristicEventPropertyIsArray) {\n filtersTouristicEvents = [\n ...filtersTouristicEvents.filter(touristicContent =>\n touristicContent[filter.touristicEventProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicEvents = [...filtersTouristicEvents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicEventProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTouristicEvents = [\n ...filtersTouristicEvents.filter(touristicContent => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (touristicContent[filter.touristicEventProperty] >= currentFilter.minValue && touristicContent[filter.touristicEventProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.touristicEventPropertyIsArray) {\n filtersTouristicEvents = [\n ...state.touristicContents.filter(touristicContent =>\n touristicContent[filter.touristicEventProperty].some(touristicContentProperty => currentFiltersId.includes(touristicContentProperty)),\n ),\n ];\n } else {\n filtersTouristicEvents = [...state.touristicEvents.filter(touristicContent => currentFiltersId.includes(touristicContent[filter.touristicEventProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTouristicEvents = [\n ...state.touristicEvents.filter(\n touristicEvent => touristicEvent[filter.touristicEventProperty] >= minValue && touristicEvent[filter.touristicEventProperty] <= maxValue,\n ),\n ];\n }\n }\n }\n }\n const searchTouristicEvents = isUsingFilter ? filtersTouristicEvents : state.touristicEvents;\n return Boolean(state.searchValue)\n ? searchTouristicEvents.filter(currentTouristicEvent => currentTouristicEvent.name.toLowerCase().includes(state.searchValue.toLowerCase()))\n : searchTouristicEvents;\n}\n"],"version":3}