@geotrekce/geotrek-rando-widget 0.24.0 → 0.24.2

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 (264) hide show
  1. package/dist/cjs/{call-33dc7f76.js → call-95649b96.js} +1 -10
  2. package/dist/cjs/call-95649b96.js.br +0 -0
  3. package/dist/cjs/call-95649b96.js.gz +0 -0
  4. package/dist/cjs/call-95649b96.js.map +1 -0
  5. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  6. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  7. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  8. package/dist/cjs/grw-app.cjs.entry.js +7 -8
  9. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  12. package/dist/cjs/grw-common-button_23.cjs.entry.js +91 -10
  13. package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
  16. package/dist/cjs/grw-details-modal_8.cjs.entry.js +105 -190
  17. package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
  18. package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
  19. package/dist/cjs/grw-details-modal_8.cjs.entry.js.map +1 -1
  20. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +208 -0
  21. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
  22. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
  23. package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.map +1 -0
  24. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +3 -2
  25. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
  26. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
  27. package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.map +1 -1
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/loader.cjs.js.br +0 -0
  30. package/dist/cjs/loader.cjs.js.gz +0 -0
  31. package/dist/cjs/moving-6504a9b0.js +13 -0
  32. package/dist/cjs/moving-6504a9b0.js.br +0 -0
  33. package/dist/cjs/moving-6504a9b0.js.gz +0 -0
  34. package/dist/cjs/moving-6504a9b0.js.map +1 -0
  35. package/dist/collection/components/grw-app/grw-app.css +2 -2
  36. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  37. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  38. package/dist/collection/components/grw-app/grw-app.js +6 -7
  39. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  40. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  41. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  42. package/dist/collection/components/grw-map/grw-map.css +39 -1
  43. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  44. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  45. package/dist/collection/components/grw-map/grw-map.js +8 -3
  46. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  47. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  48. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  49. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +117 -4
  50. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
  51. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
  52. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.map +1 -1
  53. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js +3 -2
  54. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js.br +0 -0
  55. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js.gz +0 -0
  56. package/dist/collection/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.js.map +1 -1
  57. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +2 -1
  58. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  59. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  60. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  61. package/dist/esm/{call-27710efe.js → call-e3a89b7c.js} +2 -8
  62. package/dist/esm/call-e3a89b7c.js.br +0 -0
  63. package/dist/esm/call-e3a89b7c.js.gz +0 -0
  64. package/dist/esm/call-e3a89b7c.js.map +1 -0
  65. package/dist/esm/geotrek-rando-widget.js +1 -1
  66. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  67. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  68. package/dist/esm/grw-app.entry.js +7 -8
  69. package/dist/esm/grw-app.entry.js.br +0 -0
  70. package/dist/esm/grw-app.entry.js.gz +0 -0
  71. package/dist/esm/grw-app.entry.js.map +1 -1
  72. package/dist/esm/grw-common-button_23.entry.js +89 -8
  73. package/dist/esm/grw-common-button_23.entry.js.br +0 -0
  74. package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
  75. package/dist/esm/grw-common-button_23.entry.js.map +1 -1
  76. package/dist/esm/grw-details-modal_8.entry.js +107 -192
  77. package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
  78. package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
  79. package/dist/esm/grw-details-modal_8.entry.js.map +1 -1
  80. package/dist/esm/grw-sensitive-area-detail_2.entry.js +203 -0
  81. package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
  82. package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  83. package/dist/esm/grw-sensitive-area-detail_2.entry.js.map +1 -0
  84. package/dist/esm/grw-toggle-slot-visibility.entry.js +3 -2
  85. package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
  86. package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
  87. package/dist/esm/grw-toggle-slot-visibility.entry.js.map +1 -1
  88. package/dist/esm/loader.js +1 -1
  89. package/dist/esm/loader.js.br +0 -0
  90. package/dist/esm/loader.js.gz +0 -0
  91. package/dist/esm/moving-c644d077.js +9 -0
  92. package/dist/esm/moving-c644d077.js.br +0 -0
  93. package/dist/esm/moving-c644d077.js.gz +0 -0
  94. package/dist/esm/moving-c644d077.js.map +1 -0
  95. package/dist/esm-es5/call-e3a89b7c.js +2 -0
  96. package/dist/esm-es5/call-e3a89b7c.js.br +0 -0
  97. package/dist/esm-es5/call-e3a89b7c.js.gz +0 -0
  98. package/dist/esm-es5/{call-27710efe.js.map → call-e3a89b7c.js.map} +1 -1
  99. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  100. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  101. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  102. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  103. package/dist/esm-es5/grw-app.entry.js +1 -1
  104. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  105. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  106. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  107. package/dist/esm-es5/grw-common-button_23.entry.js +2 -2
  108. package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
  109. package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
  110. package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
  111. package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
  112. package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
  113. package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
  114. package/dist/esm-es5/grw-details-modal_8.entry.js.map +1 -1
  115. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +2 -0
  116. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
  117. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
  118. package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.map +1 -0
  119. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
  120. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
  121. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
  122. package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.map +1 -1
  123. package/dist/esm-es5/loader.js +1 -1
  124. package/dist/esm-es5/loader.js.br +0 -0
  125. package/dist/esm-es5/loader.js.gz +0 -0
  126. package/dist/esm-es5/loader.js.map +1 -1
  127. package/dist/esm-es5/moving-c644d077.js +2 -0
  128. package/dist/esm-es5/moving-c644d077.js.br +0 -0
  129. package/dist/esm-es5/moving-c644d077.js.gz +0 -0
  130. package/dist/esm-es5/moving-c644d077.js.map +1 -0
  131. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  132. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  133. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  134. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  135. package/dist/geotrek-rando-widget/p-06880c0d.system.js +2 -0
  136. package/dist/geotrek-rando-widget/p-06880c0d.system.js.br +0 -0
  137. package/dist/geotrek-rando-widget/p-06880c0d.system.js.gz +0 -0
  138. package/dist/geotrek-rando-widget/{p-fbcc2505.system.js.map → p-06880c0d.system.js.map} +1 -1
  139. package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js +4 -0
  140. package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.br +0 -0
  141. package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.gz +0 -0
  142. package/dist/geotrek-rando-widget/p-0a37c6c9.entry.js.map +1 -0
  143. package/dist/geotrek-rando-widget/p-20a73813.entry.js +2 -0
  144. package/dist/geotrek-rando-widget/p-20a73813.entry.js.br +0 -0
  145. package/dist/geotrek-rando-widget/p-20a73813.entry.js.gz +0 -0
  146. package/dist/geotrek-rando-widget/p-20a73813.entry.js.map +1 -0
  147. package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js +2 -0
  148. package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js.br +0 -0
  149. package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js.gz +0 -0
  150. package/dist/geotrek-rando-widget/p-2a4d46f7.entry.js.map +1 -0
  151. package/dist/geotrek-rando-widget/p-3c53fc59.system.js +1 -1
  152. package/dist/geotrek-rando-widget/p-3c53fc59.system.js.br +0 -0
  153. package/dist/geotrek-rando-widget/p-3c53fc59.system.js.gz +0 -0
  154. package/dist/geotrek-rando-widget/p-3c53fc59.system.js.map +1 -1
  155. package/dist/geotrek-rando-widget/p-422bb6de.entry.js +2 -0
  156. package/dist/geotrek-rando-widget/p-422bb6de.entry.js.br +0 -0
  157. package/dist/geotrek-rando-widget/p-422bb6de.entry.js.gz +0 -0
  158. package/dist/geotrek-rando-widget/p-422bb6de.entry.js.map +1 -0
  159. package/dist/geotrek-rando-widget/p-4270930c.js +2 -0
  160. package/dist/geotrek-rando-widget/p-4270930c.js.br +0 -0
  161. package/dist/geotrek-rando-widget/p-4270930c.js.gz +0 -0
  162. package/dist/geotrek-rando-widget/{p-efe17341.js.map → p-4270930c.js.map} +1 -1
  163. package/dist/geotrek-rando-widget/p-45f46d33.entry.js +2 -0
  164. package/dist/geotrek-rando-widget/p-45f46d33.entry.js.br +0 -0
  165. package/dist/geotrek-rando-widget/p-45f46d33.entry.js.gz +0 -0
  166. package/dist/geotrek-rando-widget/p-45f46d33.entry.js.map +1 -0
  167. package/dist/geotrek-rando-widget/p-5f0cf716.system.js +2 -0
  168. package/dist/geotrek-rando-widget/p-5f0cf716.system.js.br +0 -0
  169. package/dist/geotrek-rando-widget/p-5f0cf716.system.js.gz +0 -0
  170. package/dist/geotrek-rando-widget/p-5f0cf716.system.js.map +1 -0
  171. package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js +2 -0
  172. package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js.br +0 -0
  173. package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js.gz +0 -0
  174. package/dist/geotrek-rando-widget/p-75f7d534.system.entry.js.map +1 -0
  175. package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js +4 -0
  176. package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.br +0 -0
  177. package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.gz +0 -0
  178. package/dist/geotrek-rando-widget/p-89cd66dc.system.entry.js.map +1 -0
  179. package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js +2 -0
  180. package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js.br +0 -0
  181. package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js.gz +0 -0
  182. package/dist/geotrek-rando-widget/p-94f1ea91.system.entry.js.map +1 -0
  183. package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js +2 -0
  184. package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js.br +0 -0
  185. package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js.gz +0 -0
  186. package/dist/geotrek-rando-widget/p-a9f81664.system.entry.js.map +1 -0
  187. package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js +2 -0
  188. package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js.br +0 -0
  189. package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js.gz +0 -0
  190. package/dist/geotrek-rando-widget/p-aa1ff056.system.entry.js.map +1 -0
  191. package/dist/geotrek-rando-widget/p-d1c11cf1.js +2 -0
  192. package/dist/geotrek-rando-widget/p-d1c11cf1.js.br +0 -0
  193. package/dist/geotrek-rando-widget/p-d1c11cf1.js.gz +0 -0
  194. package/dist/geotrek-rando-widget/p-d1c11cf1.js.map +1 -0
  195. package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +8 -0
  196. package/dist/types/components.d.ts +2 -0
  197. package/package.json +1 -1
  198. package/dist/cjs/call-33dc7f76.js.br +0 -0
  199. package/dist/cjs/call-33dc7f76.js.gz +0 -0
  200. package/dist/cjs/call-33dc7f76.js.map +0 -1
  201. package/dist/cjs/grw-outdoor-course-card_2.cjs.entry.js +0 -123
  202. package/dist/cjs/grw-outdoor-course-card_2.cjs.entry.js.br +0 -0
  203. package/dist/cjs/grw-outdoor-course-card_2.cjs.entry.js.gz +0 -0
  204. package/dist/cjs/grw-outdoor-course-card_2.cjs.entry.js.map +0 -1
  205. package/dist/esm/call-27710efe.js.br +0 -0
  206. package/dist/esm/call-27710efe.js.gz +0 -0
  207. package/dist/esm/call-27710efe.js.map +0 -1
  208. package/dist/esm/grw-outdoor-course-card_2.entry.js +0 -118
  209. package/dist/esm/grw-outdoor-course-card_2.entry.js.br +0 -0
  210. package/dist/esm/grw-outdoor-course-card_2.entry.js.gz +0 -0
  211. package/dist/esm/grw-outdoor-course-card_2.entry.js.map +0 -1
  212. package/dist/esm-es5/call-27710efe.js +0 -2
  213. package/dist/esm-es5/call-27710efe.js.br +0 -0
  214. package/dist/esm-es5/call-27710efe.js.gz +0 -0
  215. package/dist/esm-es5/grw-outdoor-course-card_2.entry.js +0 -2
  216. package/dist/esm-es5/grw-outdoor-course-card_2.entry.js.br +0 -0
  217. package/dist/esm-es5/grw-outdoor-course-card_2.entry.js.gz +0 -0
  218. package/dist/esm-es5/grw-outdoor-course-card_2.entry.js.map +0 -1
  219. package/dist/geotrek-rando-widget/p-08c9303c.entry.js +0 -2
  220. package/dist/geotrek-rando-widget/p-08c9303c.entry.js.br +0 -0
  221. package/dist/geotrek-rando-widget/p-08c9303c.entry.js.gz +0 -0
  222. package/dist/geotrek-rando-widget/p-08c9303c.entry.js.map +0 -1
  223. package/dist/geotrek-rando-widget/p-353b6204.system.entry.js +0 -2
  224. package/dist/geotrek-rando-widget/p-353b6204.system.entry.js.br +0 -0
  225. package/dist/geotrek-rando-widget/p-353b6204.system.entry.js.gz +0 -0
  226. package/dist/geotrek-rando-widget/p-353b6204.system.entry.js.map +0 -1
  227. package/dist/geotrek-rando-widget/p-52925171.system.entry.js +0 -2
  228. package/dist/geotrek-rando-widget/p-52925171.system.entry.js.br +0 -0
  229. package/dist/geotrek-rando-widget/p-52925171.system.entry.js.gz +0 -0
  230. package/dist/geotrek-rando-widget/p-52925171.system.entry.js.map +0 -1
  231. package/dist/geotrek-rando-widget/p-5675bafa.entry.js +0 -2
  232. package/dist/geotrek-rando-widget/p-5675bafa.entry.js.br +0 -0
  233. package/dist/geotrek-rando-widget/p-5675bafa.entry.js.gz +0 -0
  234. package/dist/geotrek-rando-widget/p-5675bafa.entry.js.map +0 -1
  235. package/dist/geotrek-rando-widget/p-8ae34722.entry.js +0 -2
  236. package/dist/geotrek-rando-widget/p-8ae34722.entry.js.br +0 -0
  237. package/dist/geotrek-rando-widget/p-8ae34722.entry.js.gz +0 -0
  238. package/dist/geotrek-rando-widget/p-8ae34722.entry.js.map +0 -1
  239. package/dist/geotrek-rando-widget/p-9fafd15a.system.entry.js +0 -2
  240. package/dist/geotrek-rando-widget/p-9fafd15a.system.entry.js.br +0 -0
  241. package/dist/geotrek-rando-widget/p-9fafd15a.system.entry.js.gz +0 -0
  242. package/dist/geotrek-rando-widget/p-9fafd15a.system.entry.js.map +0 -1
  243. package/dist/geotrek-rando-widget/p-b8dcf0de.system.entry.js +0 -2
  244. package/dist/geotrek-rando-widget/p-b8dcf0de.system.entry.js.br +0 -0
  245. package/dist/geotrek-rando-widget/p-b8dcf0de.system.entry.js.gz +0 -0
  246. package/dist/geotrek-rando-widget/p-b8dcf0de.system.entry.js.map +0 -1
  247. package/dist/geotrek-rando-widget/p-ca719247.system.entry.js +0 -4
  248. package/dist/geotrek-rando-widget/p-ca719247.system.entry.js.br +0 -0
  249. package/dist/geotrek-rando-widget/p-ca719247.system.entry.js.gz +0 -0
  250. package/dist/geotrek-rando-widget/p-ca719247.system.entry.js.map +0 -1
  251. package/dist/geotrek-rando-widget/p-e210e5b3.entry.js +0 -2
  252. package/dist/geotrek-rando-widget/p-e210e5b3.entry.js.br +0 -0
  253. package/dist/geotrek-rando-widget/p-e210e5b3.entry.js.gz +0 -0
  254. package/dist/geotrek-rando-widget/p-e210e5b3.entry.js.map +0 -1
  255. package/dist/geotrek-rando-widget/p-efe17341.js +0 -2
  256. package/dist/geotrek-rando-widget/p-efe17341.js.br +0 -0
  257. package/dist/geotrek-rando-widget/p-efe17341.js.gz +0 -0
  258. package/dist/geotrek-rando-widget/p-f7643fd8.entry.js +0 -4
  259. package/dist/geotrek-rando-widget/p-f7643fd8.entry.js.br +0 -0
  260. package/dist/geotrek-rando-widget/p-f7643fd8.entry.js.gz +0 -0
  261. package/dist/geotrek-rando-widget/p-f7643fd8.entry.js.map +0 -1
  262. package/dist/geotrek-rando-widget/p-fbcc2505.system.js +0 -2
  263. package/dist/geotrek-rando-widget/p-fbcc2505.system.js.br +0 -0
  264. package/dist/geotrek-rando-widget/p-fbcc2505.system.js.gz +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as t,h as i,H as e,g as s}from"./p-6d1ce9f7.js";import{t as n}from"./p-0a3fc934.js";import{s as o}from"./p-82fd06d0.js";const l="grw-toggle-slot-visibility{display:block;position:relative;width:100%;overflow:hidden;max-width:100dvw}.grw-map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:fixed;bottom:24px;z-index:4001;pointer-events:none}";const d=l;const h=class{constructor(i){t(this,i);this.isLargeView=undefined;this.showStartSlot=true;this.showEndSlot=false;this.largeViewSize=1024;this.fontFamily="Roboto";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.slotEndHeight="100vh"}onWindowResize(){this.handleView()}handleView(){if((o.currentTrek||o.currentOutdoorSite)&&(typeof this.isLargeView===undefined||this.isLargeView!==this.toggleSlotElement.getBoundingClientRect().width>=this.largeViewSize)){this.isLargeView=this.toggleSlotElement.getBoundingClientRect().width>=this.largeViewSize;this.showStartSlot=true;this.showEndSlot=this.isLargeView;if(!this.isLargeView){const t=document.createElement("div");t.className="grw-map-visibility-button-container";const i=document.createElement("grw-extended-fab");i.setAttribute("exportparts","map-visibility-button,map-visibility-button-icon,map-visibility-button-label");i.setAttribute("font-family",this.fontFamily);i.action=()=>this.toggleShowSlot();i.icon=()=>this.getMapVisibilityIconButton();i.name=()=>this.getMapVisibilityLabelButton();i.setAttribute("fab-background-color",this.fabBackgroundColor);i.setAttribute("fab-color",this.fabColor);i.setAttribute("display",this.isLargeView?"none":"flex");t.append(i);document.body.append(t);const e=document.querySelector("#grw-slot-end-container");const s=e.cloneNode(true);s.id="grw-slot-end-container-clone";s.style.visibility="hidden";s.style.position="fixed";s.style.top="0px";s.style.left="0px";s.style["z-index"]="0";s.style.height="100vh";s.style["background-color"]="#ffffff";document.body.append(s)}else{const t=document.body.getElementsByClassName("grw-map-visibility-button-container")[0];if(t){t.remove()}const i=document.body.querySelector("#grw-slot-end-container-clone");if(i){i.remove()}}}}toggleShowSlot(){this.showStartSlot=!this.showStartSlot;this.showEndSlot=!this.showStartSlot;const t=document.querySelector("#grw-slot-end-container-clone");if(t&&this.showEndSlot){t.style.visibility="visible";document.body.style.overflow=`hidden`;t.style["z-index"]="4000"}else{t.style.visibility="hidden";document.body.style.overflow=`visible`;t.style["z-index"]="0"}const i=document.getElementsByTagName("grw-extended-fab")[0];i.icon=()=>this.getMapVisibilityIconButton();i.name=()=>this.getMapVisibilityLabelButton()}componentDidRender(){this.handleView()}getMapVisibilityIconButton(){let t;t=this.showStartSlot?"map":"summarize";return t}getMapVisibilityLabelButton(){let t;t=this.showStartSlot?n[o.language].showMap:n[o.language].showDetails;return t}render(){return i(e,{key:"58a5632c13f7c6b8d0b1f34eb10206caefafaeaa"},(o.currentTrek||o.currentOutdoorSite)&&i("div",{class:"grw-toggle-slot-visibility-container"},i("div",{class:"grw-slot-start-container",style:{height:this.showStartSlot?"100%":"100vh",visibility:this.showStartSlot?"visible":"hidden",zIndex:this.showStartSlot?"1":"0"}},i("slot",{name:"start"}," ")),i("div",{id:"grw-slot-end-container",style:{width:"100%",height:this.slotEndHeight,visibility:!this.isLargeView?"hidden":"visible",position:!this.isLargeView?"absolute":"relative",top:!this.isLargeView?"0px":"none",left:!this.isLargeView?"0px":"none",zIndex:!this.isLargeView?"0":"1"}},i("slot",{name:"end"}," "))))}get toggleSlotElement(){return s(this)}};h.style=d;export{h as grw_toggle_slot_visibility};
2
+ //# sourceMappingURL=p-20a73813.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["grwToggleSlotVisibilityCss","GrwToggleSlotVisibilityStyle0","GrwToggleSlotVisibility","undefined","onWindowResize","this","handleView","state","currentTrek","currentOutdoorSite","isLargeView","toggleSlotElement","getBoundingClientRect","width","largeViewSize","showStartSlot","showEndSlot","mapVisibilityButtonContainer","document","createElement","className","mapVisibilityButton","setAttribute","fontFamily","action","toggleShowSlot","icon","getMapVisibilityIconButton","name","getMapVisibilityLabelButton","fabBackgroundColor","fabColor","append","body","slotEnd","querySelector","slotEndClone","cloneNode","id","style","visibility","position","top","left","height","getElementsByClassName","remove","grwSlotEndContainerClone","overflow","grwExtendedFab","getElementsByTagName","componentDidRender","mapIconButton","mapLabelButton","translate","language","showMap","showDetails","render","h","Host","key","class","zIndex","slotEndHeight"],"sources":["src/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.scss?tag=grw-toggle-slot-visibility","src/components/grw-toggle-slot-visibility/grw-toggle-slot-visibility.tsx"],"sourcesContent":["grw-toggle-slot-visibility {\n display: block;\n position: relative;\n width: 100%;\n overflow: hidden;\n max-width: 100dvw;\n}\n\n.grw-map-visibility-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n position: fixed;\n bottom: 24px;\n z-index: 4001;\n pointer-events: none;\n}\n","import { Component, Host, h, State, Prop, Listen, Element } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state from 'store/store';\n\n@Component({\n tag: 'grw-toggle-slot-visibility',\n styleUrl: 'grw-toggle-slot-visibility.scss',\n shadow: false,\n})\nexport class GrwToggleSlotVisibility {\n @Element() toggleSlotElement: HTMLElement;\n @State() isLargeView = undefined;\n @State() showStartSlot = true;\n @State() showEndSlot = false;\n\n @Prop() largeViewSize = 1024;\n @Prop() fontFamily = 'Roboto';\n @Prop() fabBackgroundColor = '#eaddff';\n @Prop() fabColor = '#21005d';\n @Prop() slotEndHeight = '100vh';\n\n @Listen('resize', { target: 'window' })\n onWindowResize() {\n this.handleView();\n }\n\n handleView() {\n if (\n (state.currentTrek || state.currentOutdoorSite) &&\n (typeof this.isLargeView === undefined || this.isLargeView !== this.toggleSlotElement.getBoundingClientRect().width >= this.largeViewSize)\n ) {\n this.isLargeView = this.toggleSlotElement.getBoundingClientRect().width >= this.largeViewSize;\n this.showStartSlot = true;\n this.showEndSlot = this.isLargeView;\n if (!this.isLargeView) {\n const mapVisibilityButtonContainer = document.createElement('div');\n mapVisibilityButtonContainer.className = 'grw-map-visibility-button-container';\n const mapVisibilityButton = document.createElement('grw-extended-fab');\n mapVisibilityButton.setAttribute('exportparts', 'map-visibility-button,map-visibility-button-icon,map-visibility-button-label');\n mapVisibilityButton.setAttribute('font-family', this.fontFamily);\n mapVisibilityButton.action = () => this.toggleShowSlot();\n mapVisibilityButton.icon = () => this.getMapVisibilityIconButton();\n mapVisibilityButton.name = () => this.getMapVisibilityLabelButton();\n mapVisibilityButton.setAttribute('fab-background-color', this.fabBackgroundColor);\n mapVisibilityButton.setAttribute('fab-color', this.fabColor);\n\n mapVisibilityButton.setAttribute('display', this.isLargeView ? 'none' : 'flex');\n mapVisibilityButtonContainer.append(mapVisibilityButton);\n document.body.append(mapVisibilityButtonContainer);\n\n const slotEnd: any = document.querySelector('#grw-slot-end-container');\n\n const slotEndClone = slotEnd.cloneNode(true);\n slotEndClone.id = 'grw-slot-end-container-clone';\n slotEndClone.style.visibility = 'hidden';\n slotEndClone.style.position = 'fixed';\n slotEndClone.style.top = '0px';\n slotEndClone.style.left = '0px';\n slotEndClone.style['z-index'] = '0';\n slotEndClone.style.height = '100vh';\n slotEndClone.style['background-color'] = '#ffffff';\n document.body.append(slotEndClone);\n } else {\n const mapVisibilityButtonContainer = document.body.getElementsByClassName('grw-map-visibility-button-container')[0];\n if (mapVisibilityButtonContainer) {\n mapVisibilityButtonContainer.remove();\n }\n const slotEndClone = document.body.querySelector('#grw-slot-end-container-clone');\n if (slotEndClone) {\n slotEndClone.remove();\n }\n }\n }\n }\n\n toggleShowSlot() {\n this.showStartSlot = !this.showStartSlot;\n this.showEndSlot = !this.showStartSlot;\n const grwSlotEndContainerClone: any = document.querySelector('#grw-slot-end-container-clone');\n if (grwSlotEndContainerClone && this.showEndSlot) {\n grwSlotEndContainerClone.style.visibility = 'visible';\n document.body.style.overflow = `hidden`;\n grwSlotEndContainerClone.style['z-index'] = '4000';\n } else {\n grwSlotEndContainerClone.style.visibility = 'hidden';\n document.body.style.overflow = `visible`;\n grwSlotEndContainerClone.style['z-index'] = '0';\n }\n const grwExtendedFab: any = document.getElementsByTagName('grw-extended-fab')[0];\n grwExtendedFab.icon = () => this.getMapVisibilityIconButton();\n grwExtendedFab.name = () => this.getMapVisibilityLabelButton();\n }\n\n componentDidRender() {\n this.handleView();\n }\n\n getMapVisibilityIconButton() {\n let mapIconButton: string;\n mapIconButton = this.showStartSlot ? 'map' : 'summarize';\n return mapIconButton;\n }\n\n getMapVisibilityLabelButton() {\n let mapLabelButton: string;\n mapLabelButton = this.showStartSlot ? translate[state.language].showMap : translate[state.language].showDetails;\n return mapLabelButton;\n }\n\n render() {\n return (\n <Host>\n {(state.currentTrek || state.currentOutdoorSite) && (\n <div class=\"grw-toggle-slot-visibility-container\">\n <div\n class=\"grw-slot-start-container\"\n style={{ height: this.showStartSlot ? '100%' : '100vh', visibility: this.showStartSlot ? 'visible' : 'hidden', zIndex: this.showStartSlot ? '1' : '0' }}\n >\n <slot name=\"start\"> </slot>\n </div>\n\n <div\n id=\"grw-slot-end-container\"\n style={{\n width: '100%',\n height: this.slotEndHeight,\n visibility: !this.isLargeView ? 'hidden' : 'visible',\n position: !this.isLargeView ? 'absolute' : 'relative',\n top: !this.isLargeView ? '0px' : 'none',\n left: !this.isLargeView ? '0px' : 'none',\n zIndex: !this.isLargeView ? '0' : '1',\n }}\n >\n <slot name=\"end\"> </slot>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"iIAAA,MAAMA,EAA6B,4UACnC,MAAAC,EAAeD,E,MCQFE,EAAuB,M,0CAEXC,U,mBACE,K,iBACF,M,mBAEC,K,gBACH,S,wBACQ,U,cACV,U,mBACK,O,CAGxB,cAAAC,GACEC,KAAKC,Y,CAGP,UAAAA,GACE,IACGC,EAAMC,aAAeD,EAAME,6BACpBJ,KAAKK,cAAgBP,WAAaE,KAAKK,cAAgBL,KAAKM,kBAAkBC,wBAAwBC,OAASR,KAAKS,eAC5H,CACAT,KAAKK,YAAcL,KAAKM,kBAAkBC,wBAAwBC,OAASR,KAAKS,cAChFT,KAAKU,cAAgB,KACrBV,KAAKW,YAAcX,KAAKK,YACxB,IAAKL,KAAKK,YAAa,CACrB,MAAMO,EAA+BC,SAASC,cAAc,OAC5DF,EAA6BG,UAAY,sCACzC,MAAMC,EAAsBH,SAASC,cAAc,oBACnDE,EAAoBC,aAAa,cAAe,gFAChDD,EAAoBC,aAAa,cAAejB,KAAKkB,YACrDF,EAAoBG,OAAS,IAAMnB,KAAKoB,iBACxCJ,EAAoBK,KAAO,IAAMrB,KAAKsB,6BACtCN,EAAoBO,KAAO,IAAMvB,KAAKwB,8BACtCR,EAAoBC,aAAa,uBAAwBjB,KAAKyB,oBAC9DT,EAAoBC,aAAa,YAAajB,KAAK0B,UAEnDV,EAAoBC,aAAa,UAAWjB,KAAKK,YAAc,OAAS,QACxEO,EAA6Be,OAAOX,GACpCH,SAAS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,YACpG,OAAOJ,C,CAGT,MAAAK,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,6CACDtD,EAAMC,aAAeD,EAAME,qBAC3BkD,EAAA,OAAKG,MAAM,wCACTH,EAAA,OACEG,MAAM,2BACNvB,MAAO,CAAEK,OAAQvC,KAAKU,cAAgB,OAAS,QAASyB,WAAYnC,KAAKU,cAAgB,UAAY,SAAUgD,OAAQ1D,KAAKU,cAAgB,IAAM,MAElJ4C,EAAA,QAAM/B,KAAK,SAAO,MAGpB+B,EAAA,OACErB,GAAG,yBACHC,MAAO,CACL1B,MAAO,OACP+B,OAAQvC,KAAK2D,cACbxB,YAAanC,KAAKK,YAAc,SAAW,UAC3C+B,UAAWpC,KAAKK,YAAc,WAAa,WAC3CgC,KAAMrC,KAAKK,YAAc,MAAQ,OACjCiC,MAAOtC,KAAKK,YAAc,MAAQ,OAClCqD,QAAS1D,KAAKK,YAAc,IAAM,MAGpCiD,EAAA,QAAM/B,KAAK,OAAK,O"}
@@ -0,0 +1,2 @@
1
+ import{r as i,c as e,h as t,H as r,e as o}from"./p-6d1ce9f7.js";import{C as a,h as n,f as s,M as p,D as l,i as c,j as d}from"./p-4270930c.js";import{s as w}from"./p-82fd06d0.js";import{t as g}from"./p-0a3fc934.js";import{a as f,g as b}from"./p-9fd3738a.js";import{S as m,N as h,P as u,K as v}from"./p-e58fd9e3.js";import"./p-51a45011.js";const x=".modal-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:fixed;top:0px;left:0px;width:100vw;height:100vh;z-index:40000;font-family:var(--font-family);background-color:rgba(0, 0, 0, 0.6)}.modal-container .grw-details-modal{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;background-color:var(--color-background)}.modal-container .grw-content-modal{overflow-y:hidden;padding-bottom:24px;background-color:var(--color-background)}.modal-container .grw-arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--color-primary-container)}.modal-container .grw-arrow-back-container .grw-arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-primary);border:none;border-radius:var(--border-radius, 50%);height:48px;width:48px;background-color:transparent;margin-left:4px;padding:0px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.modal-container .grw-arrow-back-container .grw-arrow-back-icon .icon{height:24px;width:24px}@media (min-width: 1024px){.modal-container .grw-details-modal{width:60%;height:80%;border-radius:var(--border-radius, 8px)}}";const A=x;const y=class{constructor(t){i(this,t);this.closeDetailsModal=e(this,"closeDetailsModal",7);this.fontFamily="Roboto";this.colorBackground="#fef7ff";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#49454e";this.rounded=true}handleCloseButton(){this.closeDetailsModal.emit()}render(){return t(r,{key:"e23cb16d6b0bc1f89c7fef110a0c52143cc720a4",style:{"--font-family":this.fontFamily,"--color-background":this.colorBackground,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--border-radius":this.rounded?"":"0px"}},t("div",{key:"4f2d02fefc26625ca90f837d5e264cb60d41c3f3",part:"modal-container",class:"modal-container"},t("div",{key:"79dfd3122d650d0d66d03f1bddba0ad5dad0920e",part:"details-modal",class:"grw-details-modal"},t("div",{key:"c0bace7945b1ad9d6c889b1281258d370c88e371",part:"arrow-back-container",class:"grw-arrow-back-container"},t("button",{key:"2d274805121f6eaa3d5231f9a009d3c5f354115b",part:"arrow-back-icon",onClick:()=>this.handleCloseButton(),class:"grw-arrow-back-icon"},t("span",{key:"50f47b36e0a56ad7d101e1f3eeceab329bd80f59",part:"icon",class:"icon",innerHTML:a}))),t("div",{key:"c67afc6f1e50e7cc3d9549a5110aa21fec00c031",part:"content-modal",class:"grw-content-modal"},t("slot",{key:"bd9beccf7de3888c57661beae7e462206076d5b2"})))))}};y.style=A;const k=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M440-40v-80q-125-14-214.5-103.5T122-438H42v-80h80q14-125 103.5-214.5T440-836v-80h80v80q125 14 214.5 103.5T838-518h80v80h-80q-14 125-103.5 214.5T520-120v80h-80Zm40-158q116 0 198-82t82-198q0-116-82-198t-198-82q-116 0-198 82t-82 198q0 116 82 198t198 82Z"/></svg>`;const z=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"/></svg>`;const B=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"/></svg>`;const Y=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:var(--border-radius, 12px);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.information-desk-img-container{position:relative}.information-desk-img-container .information-desk-img{width:100%;height:200px;-o-object-fit:cover;object-fit:cover}.information-desk-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.information-desk-sub-container-short{max-height:200px;overflow:hidden}.information-desk-name{font-size:16px;line-height:24px;font-weight:500}.information-desk-description{font-size:14px;line-height:20px}.handle-information-desk-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}.phone-container,.mail-container,.link-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.phone-container .icon,.mail-container .icon,.link-container .icon{display:-ms-flexbox;display:flex;font-size:16px;margin-right:8px}.center-on-map-button{cursor:pointer;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:4px 8px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);min-height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;border:none;font-size:14px;margin:12px auto}.center-on-map-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.center-on-map-button .icon{display:-ms-flexbox;display:flex}";const M=Y;const j=class{constructor(t){i(this,t);this.centerOnMap=e(this,"centerOnMap",7);this.displayShortDescription=true;this.showInformationDeskDescriptionButton=false;this.informationDesk=undefined;this.colorSurfaceContainerLow="#f7f2fa";this.offline=false;this.showDefaultImage=false}componentDidLoad(){this.handleOffline();if(this.descriptionRef){this.showInformationDeskDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight}}handleInformationDeskDescription(){this.displayShortDescription=!this.displayShortDescription}handleCenterOnMap(){this.centerOnMap.emit({latitude:this.informationDesk.latitude,longitude:this.informationDesk.longitude})}async handleOffline(){if(w.currentTrek){const i=await f("treks",w.currentTrek.id);if(i&&i.offline){const i=await f("informationDesks",this.informationDesk.id);this.offline=Boolean(i)}}else if(w.currentOutdoorSite){const i=await f("outdoorSites",w.currentOutdoorSite.id);if(i&&i.offline){const i=await f("informationDesks",this.informationDesk.id);this.offline=Boolean(i)}}}render(){const i=o(`${""}assets/default-image.svg`);return t(r,{key:"ab9ecf4bbcc119e8bdda803d5e56a0ceb921bef6",style:{"--color-surface-container-low":this.colorSurfaceContainerLow}},this.informationDesk.photo_url&&t("div",{part:"information-desk-img-container",class:"information-desk-img-container"},t("img",{part:"information-desk-img",class:"information-desk-img",src:this.informationDesk.photo_url,alt:this.informationDesk.name,loading:"lazy",onerror:e=>{e.target.onerror=null;e.target.src=i}})),t("div",{key:"cf162f5d7dcc6074b17a128b42d8767010934a79",part:"information-desk-sub-container",class:"information-desk-sub-container"},t("div",{key:"75a77672d4072f7860d363a86aeb9f7c06ffba60",class:this.displayShortDescription?"information-desk-sub-container-short":""},this.informationDesk.name&&t("div",{part:"information-desk-name",class:"information-desk-name"},this.informationDesk.name),this.informationDesk.latitude&&this.informationDesk.longitude&&t("button",{part:"center-on-map-button",class:"center-on-map-button",onClick:()=>this.handleCenterOnMap()},t("span",{part:"icon",class:"icon",innerHTML:k}),t("span",{part:"label"},g[w.language].centerOnMap)),(this.informationDesk.postal_code||this.informationDesk.municipality||this.informationDesk.street)&&t("div",{part:"information-desk-informations",class:"information-desk-informations"},this.informationDesk.postal_code&&this.informationDesk.postal_code,this.informationDesk.municipality&&` ${this.informationDesk.municipality}`,this.informationDesk.street&&` ${this.informationDesk.street}`),this.informationDesk.phone&&t("div",{class:"phone-container"},t("span",{part:"icon",class:"icon",innerHTML:n}),t("a",{part:"label",class:"label",href:`tel:${this.informationDesk.phone}`},this.informationDesk.phone)),this.informationDesk.email&&t("div",{part:"mail-container",class:"mail-container"},t("span",{part:"icon",class:"icon",innerHTML:z}),t("a",{part:"label",class:"label",href:`mailto:${this.informationDesk.email}`},this.informationDesk.email)),this.informationDesk.website&&t("div",{part:"link-container",class:"link-container"},t("span",{part:"icon",class:"icon",innerHTML:B}),t("a",{part:"label",class:"label",href:`${this.informationDesk.website}`},this.informationDesk.website)),this.informationDesk.description&&t("div",{part:"information-desk-description-container",class:"information-desk-description-container"},t("div",{part:"information-desk-description",class:"information-desk-description",innerHTML:this.informationDesk.description,ref:i=>this.descriptionRef=i}))),this.informationDesk.description&&t("div",{part:"handle-information-desk-description",class:"handle-information-desk-description",onClick:()=>this.handleInformationDeskDescription()},this.displayShortDescription?g[w.language].readMore:g[w.language].readLess)))}};j.style=M;const C=":host a{color:var(--color-primary-app)}.outdoor-course-img-container{position:relative;height:200px}.outdoor-course-img-container .outdoor-course-img,.outdoor-course-img-container .default-outdoor-course-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.outdoor-course-img-container .outdoor-course-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.outdoor-course-img-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.outdoor-course-img-container .outdoor-course-practice{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.outdoor-course-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.outdoor-course-sub-container .outdoor-course-practice-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.outdoor-course-sub-container .outdoor-course-practice-container .outdoor-course-practice-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.outdoor-course-sub-container .outdoor-course-practice-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.outdoor-course-sub-container .outdoor-course-name{font-size:16px;line-height:24px;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:48px}.outdoor-course-more-detail-container{padding:0px 12px 12px 12px}.outdoor-course-more-detail-container .more-details-button{cursor:pointer;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);width:100%;height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;border:none;font-size:14px;font-family:var(--font-family)}.outdoor-course-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-more-detail-container .more-details-button span{font-size:18px}.outdoor-course-card-container,.outdoor-course-card-large-view-container{font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.outdoor-course-card-container .outdoor-course-img,.outdoor-course-card-large-view-container .outdoor-course-img{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.outdoor-course-card-container{width:100%;max-width:350px}.outdoor-course-card-container .outdoor-course-img{width:100%;height:100%}.outdoor-course-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.outdoor-course-card-large-view-container .outdoor-course-img{width:250px;height:100%;border-bottom-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 0px)}.is-inside-vertical-list{cursor:pointer;border:none}.is-inside-vertical-list .touristic-content-img,.is-inside-vertical-list .default-touristic-content-img{height:100%}.selected-outdoor-course-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}";const E=C;const G=class{constructor(t){i(this,t);this.outdoorCourseCardPress=e(this,"outdoorCourseCardPress",7);this.cardOutdoorCourseMouseOver=e(this,"cardOutdoorCourseMouseOver",7);this.cardOutdoorCourseMouseLeave=e(this,"cardOutdoorCourseMouseLeave",7);this.outdoorCourse=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.isInsideHorizontalList=false;this.offline=false}handleMouseOver(){this.cardOutdoorCourseMouseOver.emit(this.outdoorCourse.id)}handleMouseLeave(){this.cardOutdoorCourseMouseLeave.emit()}async handleOffline(){if(w.currentOutdoorSite){const i=await f("outdoorSites",w.currentOutdoorSite.id);if(i&&i.offline){const i=await f("outdoorCourses",this.outdoorCourse.id);this.offline=Boolean(i)}}}render(){const i=o(`${""}assets/default-image.svg`);const e=null;return t(r,{key:"34bc182160cd523d9718d80f9b7eef4c44bafa56",style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},t("div",{key:"749643e4ede8e49e83f44d32cf9d9ed950d9fbd3",part:"outdoor-course-card",class:this.isLargeView?`outdoor-course-card outdoor-course-card-large-view-container${w.selectedOutdoorCourseId===this.outdoorCourse.id?" selected-outdoor-course-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:` outdoor-course-card outdoor-course-card-container${w.selectedOutdoorCourseId===this.outdoorCourse.id?" selected-outdoor-course-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.outdoorCourseCardPress.emit(this.outdoorCourse.id)}}},t("div",{key:"bab51c7baf2616e25ac8396caa204be267504021",part:"outdoor-course-img-container",class:"outdoor-course-img-container"},this.outdoorCourse.attachments.filter((i=>i.type==="image")).length>0?t("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:`${this.outdoorCourse.attachments.filter((i=>i.type==="image"))[0].thumbnail!==""?this.outdoorCourse.attachments.filter((i=>i.type==="image"))[0].thumbnail:this.outdoorCourse.attachments.filter((i=>i.type==="image"))[0].url}`,alt:`${this.outdoorCourse.attachments.filter((i=>i.type==="image"))[0].legend}`,loading:"lazy"}):t("img",{class:"image default-outdoor-course-img",src:i,alt:"",loading:"lazy"})),t("div",{key:"c6fef71b254897c75a2c821e0922a137d68f7c9c",part:"outdoor-course-sub-container",class:"outdoor-course-sub-container"},t("div",{key:"42e763df016df38b94696ef2823998ef61596e59",part:"outdoor-course-practice-container",class:"outdoor-course-practice-container"},e,e),t("div",{key:"2ae99e5f94a8ffbd477fad10d28caaa32d08c651",part:"outdoor-course-name",class:"outdoor-course-name"},this.outdoorCourse.name)),this.isInsideHorizontalList&&t("div",{part:"outdoor-course-more-detail-container",class:"outdoor-course-more-detail-container"},t("button",{part:"more-details-button",class:"more-details-button",onClick:()=>this.outdoorCourseCardPress.emit(this.outdoorCourse.id)},g[w.language].moreDetails))))}};G.style=E;const D=":host a{color:var(--color-primary-app)}.outdoor-site-img-container{position:relative;height:200px}.outdoor-site-img-container .outdoor-site-img,.outdoor-site-img-container .default-outdoor-site-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.outdoor-site-img-container .outdoor-site-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.outdoor-site-img-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.outdoor-site-img-container .outdoor-site-practice{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.outdoor-site-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.outdoor-site-sub-container .outdoor-site-practice-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.outdoor-site-sub-container .outdoor-site-practice-container .outdoor-site-practice-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.outdoor-site-sub-container .outdoor-site-practice-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.outdoor-site-sub-container .outdoor-site-name{font-size:16px;line-height:24px;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:48px}.outdoor-site-more-detail-container{padding:0px 12px 12px 12px}.outdoor-site-more-detail-container .more-details-button{cursor:pointer;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);width:100%;height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;border:none;font-size:14px;font-family:var(--font-family)}.outdoor-site-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-more-detail-container .more-details-button span{font-size:18px}.outdoor-site-card-container,.outdoor-site-card-large-view-container{font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.outdoor-site-card-container .outdoor-site-img,.outdoor-site-card-large-view-container .outdoor-site-img{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.outdoor-site-card-container{width:100%;max-width:350px}.outdoor-site-card-container .outdoor-site-img{width:100%;height:100%}.outdoor-site-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.outdoor-site-card-large-view-container .outdoor-site-img{width:250px;height:100%;border-bottom-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 0px)}.is-inside-vertical-list{cursor:pointer;border:none}.is-inside-vertical-list .touristic-content-img,.is-inside-vertical-list .default-touristic-content-img{height:100%}.selected-outdoor-site-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}";const Z=D;const Q=class{constructor(t){i(this,t);this.outdoorSiteCardPress=e(this,"outdoorSiteCardPress",7);this.cardOutdoorSiteMouseOver=e(this,"cardOutdoorSiteMouseOver",7);this.cardOutdoorSiteMouseLeave=e(this,"cardOutdoorSiteMouseLeave",7);this.outdoorSite=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.isInsideHorizontalList=false;this.offline=false}handleMouseOver(){this.cardOutdoorSiteMouseOver.emit(this.outdoorSite.id)}handleMouseLeave(){this.cardOutdoorSiteMouseLeave.emit()}async handleOffline(){if(w.currentOutdoorSite){const i=await f("outdoorSites",w.currentOutdoorSite.id);this.offline=i&&i.offline}}render(){const i=o(`${""}assets/default-image.svg`);const e=w.outdoorPractices.find((i=>i.id===this.outdoorSite.practice));return t(r,{key:"359ebfae85625a79ccaa0a52ec21cd08d73be073",style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},t("div",{key:"b62cbd3cbd7418de196c6e796fab3b33122567b7",part:"outdoor-site-card",class:this.isLargeView?`outdoor-site-card outdoor-site-card-large-view-container${w.selectedOutdoorSiteId===this.outdoorSite.id?" selected-outdoor-site-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:` outdoor-site-card outdoor-site-card-container${w.selectedOutdoorSiteId===this.outdoorSite.id?" selected-outdoor-site-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.outdoorSiteCardPress.emit(this.outdoorSite.id)}}},t("div",{key:"3c1ef907dcc6a2acdfdb1186150ea154c30a9548",part:"outdoor-site-img-container",class:"outdoor-site-img-container"},this.outdoorSite.attachments.filter((i=>i.type==="image")).length>0?t("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:`${this.outdoorSite.attachments.filter((i=>i.type==="image"))[0].thumbnail!==""?this.outdoorSite.attachments.filter((i=>i.type==="image"))[0].thumbnail:this.outdoorSite.attachments.filter((i=>i.type==="image"))[0].url}`,alt:`${this.outdoorSite.attachments.filter((i=>i.type==="image"))[0].legend}`,loading:"lazy"}):t("img",{class:"image default-outdoor-site-img",src:i,alt:"",loading:"lazy"})),t("div",{key:"16d105513a4ab0c21179f9812a3eb04313fad173",part:"outdoor-site-sub-container",class:"outdoor-site-sub-container"},t("div",{key:"069dbe60e1c02314f2c7870ec128bffc8217e92a",part:"outdoor-site-practice-container",class:"outdoor-site-practice-container"},e&&e.pictogram&&t("img",{part:"outdoor-site-type-img",class:"outdoor-site-type-img",src:e.pictogram,alt:""}),e&&e.name&&t("div",{part:"outdoor-site-practice-name",class:"outdoor-site-practice-name"},e.name)),t("div",{key:"201f525e597f239d72e3a59651c6645bda0fe749",part:"outdoor-site-name",class:"outdoor-site-name"},this.outdoorSite.name),!this.isInsideHorizontalList&&w.themes&&w.themes.filter((i=>this.outdoorSite.themes.includes(i.id))).length>0&&t("div",{part:"themes-container",class:"themes-container"},w.themes.filter((i=>this.outdoorSite.themes.includes(i.id))).map((i=>t("div",{part:"theme",class:"theme"},i.label))))),this.isInsideHorizontalList&&t("div",{part:"outdoor-site-more-detail-container",class:"outdoor-site-more-detail-container"},t("button",{part:"more-details-button",class:"more-details-button",onClick:()=>this.outdoorSiteCardPress.emit(this.outdoorSite.id)},g[w.language].moreDetails))))}};Q.style=Z;const H='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAA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czNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto;padding-bottom:24px}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}';const L=H;const T=class{constructor(e){i(this,e);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.grwApp=false}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new m(this.swiperImagesRef,{modules:[h,u,v,s,p],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen&&!this.offline?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}componentDidUpdate(){this.handleSwipers()}componentDidLoad(){this.offline=w.currentTouristicContent&&w.currentTouristicContent.offline;this.handleSwipers()}handleFullscreen(i=false){if(!i){if(w.currentTouristicContent.attachments&&w.currentTouristicContent.attachments[0]&&w.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}render(){const i=o(`${""}assets/default-image.svg`);const e=w.touristicContentCategories&&w.currentTouristicContent&&w.touristicContentCategories.find((i=>i.id===w.currentTouristicContent.category));const n=w.currentTouristicContent&&w.currentTouristicContent.cities.map((i=>{var e;return(e=w.cities.find((e=>e.id===i)))===null||e===void 0?void 0:e.name}));const s=w.currentTouristicContent&&w.currentTouristicContent.attachments.filter((i=>i.type==="image")).length>1||this.offline;return t(r,{key:"5bec33925077392f5f858125489b08009724b6fb",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?w.languages&&w.languages.length>1?"44px":"12px":w.languages&&w.languages.length>1?"164px":"124px"}},w.currentTouristicContent&&t("div",{part:"touristic-content-detail-container",class:"touristic-content-detail-container",ref:i=>this.touristicContentDetailContainerRef=i},t("div",{part:"images-container",class:"images-container",ref:i=>this.presentationRef=i},t("div",{part:"swiper-images",class:"swiper swiper-images",ref:i=>this.swiperImagesRef=i},t("div",{part:"swiper-wrapper",class:"swiper-wrapper"},w.currentTouristicContent.attachments.filter((i=>i.type==="image")).length>0?w.currentTouristicContent.attachments.filter((i=>i.type==="image")).map((i=>{const e=[i.legend,i.author].filter(Boolean).join(" - ");return t("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&t("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},t("span",{part:"icon",class:"icon",innerHTML:a})),t("div",{part:"legend-container",class:"legend-container"},e),t("img",{part:"image",class:"image",src:this.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:()=>this.handleFullscreen(),alt:i.legend}))})):t("div",{part:"swiper-slide",class:"swiper-slide"},t("img",{part:"default-poi-img",class:"default-poi-img",src:i,alt:"",loading:"lazy"}))),t("div",{style:{display:"block",visibility:s?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:i=>this.paginationElImagesRef=i}),t("div",{style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:i=>this.prevElImagesRef=i}),t("div",{style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:i=>this.nextElImagesRef=i}))),t("div",{part:"touristic-content-category-container",class:"touristic-content-category-container"},t("img",{part:"touristic-content-category-img",class:"touristic-content-category-img",src:e.pictogram,alt:""}),t("div",{part:"touristic-content-category-name",class:"touristic-content-category-name"},e.label)),t("div",{part:"name",class:"name"},w.currentTouristicContent.name),t("div",{part:"divider",class:"divider"}),t("div",{part:"downloads-container",class:"downloads-container"},t("div",{part:"download-title",class:"download-title"},g[w.language].download),t("div",{part:"links-container",class:"links-container"},t("a",{part:"link-container",class:"link-container",href:`${w.currentTouristicContent.pdf}`,target:"_blank",rel:"noopener noreferrer"},t("span",{part:"icon",class:"icon",innerHTML:l}),t("span",{part:"label",class:""},"PDF")))),w.currentTouristicContent.description_teaser&&t("div",null,t("div",{part:"divider",class:"divider"}),t("div",{part:"description-teaser",class:"description-teaser",innerHTML:w.currentTouristicContent.description_teaser})),t("div",{part:"divider",class:"divider"}),w.currentTouristicContent.practical_info&&t("div",{part:"description-container",class:"description-container",ref:i=>this.descriptionRef=i},t("div",{part:"description-title",class:"description-title"},g[w.language].description),t("div",{part:"description",class:"description",innerHTML:w.currentTouristicContent.description})),n&&n.length>0&&t("div",{part:"cities-container",class:"cities-container"},t("div",{part:"cities-title",class:"cities-title"},g[w.language].city," : "),t("div",{part:"cities",class:"cities",innerHTML:n.join(", ")})),w.currentTouristicContent.practical_info&&t("div",null,t("div",{part:"divider",class:"divider"}),t("div",{part:"useful-information-container",class:"useful-information-container"},t("div",{part:"useful-information-title",class:"useful-information-title"},g[w.language].usefulInformation," : "),t("div",{part:"useful-information",innerHTML:w.currentTouristicContent.practical_info}))),(w.currentTouristicContent.contact||w.currentTouristicContent.email||w.currentTouristicContent.website)&&t("div",null,t("div",{part:"divider",class:"divider"}),t("div",{part:"contact-container",class:"contact-container"},t("div",{part:"contact-title",class:"contact-title"},g[w.language].contact," : "),w.currentTouristicContent.contact&&t("div",{part:"contact",class:"contact",innerHTML:w.currentTouristicContent.contact}),w.currentTouristicContent.email&&t("div",{part:"email-container",class:"email-container"},t("div",{part:"email-title",class:"email-title"},g[w.language].email," : "),t("a",{href:"mailto:"+w.currentTouristicContent.email,part:"email",class:"email",innerHTML:w.currentTouristicContent.email})),w.currentTouristicContent.website&&t("div",{part:"website-container",class:"website-container"},t("div",{part:"website-title",class:"website-title"},g[w.language].website," : "),t("a",{href:w.currentTouristicContent.website,part:"website",class:"website",innerHTML:w.currentTouristicContent.website})))),this.grwApp&&t("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))}};T.style=L;const P=class{constructor(e){i(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContent()}async handleTouristicContent(){const i=await f("touristicContents",this.touristicContentId);if(i&&i.offline){this.handleOfflineTouristicContent(i)}else{this.handleOnlineTouristicContent()}}async handleOfflineTouristicContent(i){if(!w.cities){w.cities=await b("cities")}if(!w.touristicContentCategories){w.touristicContentCategories=await b("touristicContentCategories")}w.currentTouristicContent=i}handleOnlineTouristicContent(){const i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));try{Promise.all([...i,c(w.api,w.language,this.touristicContentId,this.init)]).then((i=>Promise.all(i.map((i=>i.json()))))).then((([i,e,t])=>{w.networkError=false;if(i){w.cities=i.results}if(e){w.touristicContentCategories=e.results}w.currentTouristicContent=t}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){w.networkError=true}}}disconnectedCallback(){this.controller.abort();w.networkError=false}render(){return t(r,{key:"fabcef8bb1083451ee826734e314d38868d4df45"})}};const R='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8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SQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto;padding-bottom:24px}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}';const F=R;const N=class{constructor(e){i(this,e);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.grwApp=false}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new m(this.swiperImagesRef,{modules:[h,u,v,s,p],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen&&!this.offline?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}componentDidUpdate(){this.handleSwipers()}componentDidLoad(){this.offline=w.currentTouristicEvent&&w.currentTouristicEvent.offline;this.handleSwipers()}handleFullscreen(i=false){if(!i){if(w.currentTouristicEvent.attachments&&w.currentTouristicEvent.attachments[0]&&w.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}render(){const i=o(`${""}assets/default-image.svg`);const e=w.touristicEventTypes&&w.currentTouristicEvent&&w.touristicEventTypes.find((i=>i.id===w.currentTouristicEvent.type));const n=w.currentTouristicEvent&&w.currentTouristicEvent.cities.map((i=>{var e;return(e=w.cities.find((e=>e.id===i)))===null||e===void 0?void 0:e.name}));const s=w.currentTouristicEvent&&w.currentTouristicEvent.attachments.filter((i=>i.type==="image")).length>1||this.offline;return t(r,{key:"8be058c124e6fb4710066b1efe57b10e79b2e1b6",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?w.languages&&w.languages.length>1?"44px":"12px":w.languages&&w.languages.length>1?"164px":"124px"}},w.currentTouristicEvent&&t("div",{part:"touristic-event-detail-container",class:"touristic-event-detail-container",ref:i=>this.touristicEventDetailContainerRef=i},t("div",{part:"images-container",class:"images-container",ref:i=>this.presentationRef=i},t("div",{part:"swiper-images",class:"swiper swiper-images",ref:i=>this.swiperImagesRef=i},t("div",{part:"swiper-wrapper",class:"swiper-wrapper"},w.currentTouristicEvent.attachments.filter((i=>i.type==="image")).length>0?w.currentTouristicEvent.attachments.filter((i=>i.type==="image")).map((i=>{const e=[i.legend,i.author].filter(Boolean).join(" - ");return t("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&t("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},t("span",{part:"icon",class:"icon",innerHTML:a})),t("div",{part:"legend-container",class:"legend-container"},e),t("img",{part:"image",class:"image",src:this.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:()=>this.handleFullscreen(),alt:i.legend}))})):t("div",{part:"swiper-slide",class:"swiper-slide"},t("img",{part:"default-poi-img",class:"default-poi-img",src:i,loading:"lazy"}))),t("div",{style:{display:"block",visibility:s?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:i=>this.paginationElImagesRef=i}),t("div",{style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:i=>this.prevElImagesRef=i}),t("div",{style:{display:"flex",visibility:s?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:i=>this.nextElImagesRef=i}))),t("div",{part:"touristic-event-category-container",class:"touristic-event-category-container"},e&&e.pictogram&&t("img",{part:"touristic-event-category-img",class:"touristic-event-category-img",src:e.pictogram}),e&&e.type&&t("div",{part:"touristic-event-category-name",class:"touristic-event-category-name"},e.type)),t("div",{part:"name",class:"name"},w.currentTouristicEvent.name),(w.currentTouristicEvent.begin_date||w.currentTouristicEvent.end_date)&&t("div",{part:"touristic-event-date-container",class:"touristic-event-date-container"},w.currentTouristicEvent.begin_date===w.currentTouristicEvent.end_date&&t("div",{part:"touristic-event-date",class:"touristic-event-date"},g[w.language].date," : ",w.currentTouristicEvent.begin_date),w.currentTouristicEvent.begin_date&&w.currentTouristicEvent.begin_date!==w.currentTouristicEvent.end_date&&t("div",{part:"touristic-event-date",class:"touristic-event-date"},g[w.language].startDate," : ",w.currentTouristicEvent.begin_date),w.currentTouristicEvent.end_date&&w.currentTouristicEvent.begin_date!==w.currentTouristicEvent.end_date&&t("div",{part:"touristic-event-date",class:"touristic-event-date"},g[w.language].endDate," : ",w.currentTouristicEvent.end_date)),t("div",{part:"divider",class:"divider"}),t("div",{part:"downloads-container",class:"downloads-container"},t("div",{part:"download-title",class:"download-title"},g[w.language].download),t("div",{part:"links-container",class:"links-container"},t("a",{part:"link",class:"link",href:`${w.currentTouristicEvent.pdf}`,target:"_blank",rel:"noopener noreferrer"},t("span",{part:"icon",class:"icon",innerHTML:l}),t("span",{part:"label",class:"label"},"PDF")))),w.currentTouristicEvent.description_teaser&&t("div",null,t("div",{part:"divider",class:"divider"}),t("div",{part:"description-teaser",class:"description-teaser",innerHTML:w.currentTouristicEvent.description_teaser})),t("div",{part:"divider",class:"divider"}),w.currentTouristicEvent.practical_info&&t("div",{part:"description-container",class:"description-container",ref:i=>this.descriptionRef=i},t("div",{part:"description-title",class:"description-title"},g[w.language].description),t("div",{part:"description",class:"description",innerHTML:w.currentTouristicEvent.description})),n&&n.length>0&&t("div",{part:"cities-container",class:"cities-container"},t("div",{part:"cities-title",class:"cities-title"},g[w.language].city," : "),t("div",{part:"cities",class:"cities",innerHTML:n.join(", ")})),w.currentTouristicEvent.practical_info&&t("div",null,t("div",{part:"divider",class:"divider"}),t("div",{part:"useful-information-container",class:"useful-information-container"},t("div",{part:"useful-information-title",class:"useful-information-title"},g[w.language].usefulInformation," : "),t("div",{part:"useful-information",class:"useful-information",innerHTML:w.currentTouristicEvent.practical_info}))),(w.currentTouristicEvent.contact||w.currentTouristicEvent.email||w.currentTouristicEvent.website)&&t("div",null,t("div",{part:"divider",class:"divider"}),t("div",{part:"contact-container",class:"contact-container"},t("div",{part:"contact-title",class:"contact-title"},g[w.language].contact," : "),w.currentTouristicEvent.contact&&t("div",{part:"contact",class:"contact",innerHTML:w.currentTouristicEvent.contact}),w.currentTouristicEvent.email&&t("div",{part:"email-container",class:"email-container"},t("div",{part:"email-title",class:"email-title"},g[w.language].email," : "),t("a",{href:"mailto:"+w.currentTouristicEvent.email,part:"email",class:"email",innerHTML:w.currentTouristicEvent.email})),w.currentTouristicEvent.website&&t("div",{part:"website-container",class:"website-container"},t("div",{part:"website-title",class:"website-title"},g[w.language].website," : "),t("a",{href:w.currentTouristicEvent.website,part:"website",class:"website",innerHTML:w.currentTouristicEvent.website})))),this.grwApp&&t("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))}};N.style=F;const O=class{constructor(e){i(this,e);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvent()}async handleTouristicEvent(){const i=await f("touristicEvents",this.touristicEventId);if(i&&i.offline){this.handleOfflineTouristicEvent(i)}else{this.handleOnlineTouristicEvent()}}async handleOfflineTouristicEvent(i){if(!w.cities){w.cities=await b("cities")}if(!w.touristicEventTypes){w.touristicEventTypes=await b("touristicEventTypes")}w.currentTouristicEvent=i}handleOnlineTouristicEvent(){const i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));try{Promise.all([...i,d(w.api,w.language,this.touristicEventId,this.init)]).then((i=>Promise.all(i.map((i=>i.json()))))).then((([i,e,t])=>{w.networkError=false;if(i){w.cities=i.results}if(e){w.touristicEventTypes=e.results}w.currentTouristicEvent=t}))}catch(i){if(!(i.code===DOMException.ABORT_ERR)){w.networkError=true}}}disconnectedCallback(){this.controller.abort();w.networkError=false}render(){return t(r,{key:"ddd757e373e0a6495b8d6136ddb6234a1156a63c"})}};export{y as grw_details_modal,j as grw_information_desk,G as grw_outdoor_course_card,Q as grw_outdoor_site_card,T as grw_touristic_content_detail,P as grw_touristic_content_provider,N as grw_touristic_event_detail,O as grw_touristic_event_provider};
2
+ //# sourceMappingURL=p-2a4d46f7.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["grwDetailsModalCss","GrwDetailsModalStyle0","GrwDetailsModal","handleCloseButton","this","closeDetailsModal","emit","render","h","Host","key","style","fontFamily","colorBackground","colorPrimaryContainer","colorOnPrimaryContainer","rounded","part","class","onClick","innerHTML","CloseIcon","grwInformationDeskCss","GrwInformationDeskStyle0","GrwInformationDeskDetail","componentDidLoad","handleOffline","descriptionRef","showInformationDeskDescriptionButton","clientHeight","scrollHeight","handleInformationDeskDescription","displayShortDescription","handleCenterOnMap","centerOnMap","latitude","informationDesk","longitude","state","currentTrek","trekInStore","getDataInStore","id","offline","informationDeskInStore","Boolean","currentOutdoorSite","outdoorSiteInStore","defaultImageSrc","getAssetPath","colorSurfaceContainerLow","photo_url","src","alt","name","loading","onerror","event","target","LocationSearchingIcon","translate","language","postal_code","municipality","street","phone","CallIcon","href","email","MailIcon","website","LinkIcon","description","ref","el","readMore","readLess","grwOutdoorCourseCardCss","GrwOutdoorCourseCardStyle0","GrwOutdoorCourseCard","handleMouseOver","cardOutdoorCourseMouseOver","outdoorCourse","handleMouseLeave","cardOutdoorCourseMouseLeave","outdoorCourseInStore","outdoorPractice","width","isLargeView","selectedOutdoorCourseId","isInsideHorizontalList","outdoorCourseCardPress","attachments","filter","attachment","type","length","thumbnail","url","legend","moreDetails","grwOutdoorSiteCardCss","GrwOutdoorSiteCardStyle0","GrwOutdoorSiteCard","cardOutdoorSiteMouseOver","outdoorSite","cardOutdoorSiteMouseLeave","outdoorPractices","find","practice","selectedOutdoorSiteId","outdoorSiteCardPress","pictogram","themes","theme","includes","map","label","grwTouristicContentDetailCss","GrwTouristicContentDetailStyle0","GrwTouristicContentDetail","handleSwipers","swiperImagesRef","swiperImages","Swiper","modules","Navigation","Pagination","Keyboard","FreeMode","Mousewheel","navigation","prevEl","prevElImagesRef","nextEl","nextElImagesRef","pagination","paginationElImagesRef","allowTouchMove","keyboard","loop","onfullscreenchange","displayFullscreen","enable","disable","componentDidUpdate","currentTouristicContent","handleFullscreen","close","requestFullscreen","document","exitFullscreen","touristicContentCategory","touristicContentCategories","category","cities","currentCity","_a","city","displayPaginationAndNavigation","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","languages","touristicContentDetailContainerRef","presentationRef","author","join","display","visibility","download","pdf","rel","DownloadIcon","description_teaser","practical_info","usefulInformation","contact","grwApp","GrwTouristicContentProvider","controller","AbortController","signal","init","cache","connectedCallback","api","split","handleTouristicContent","touristicContentInStore","touristicContentId","handleOfflineTouristicContent","handleOnlineTouristicContent","touristicContent","getAllDataInStore","requests","push","fetch","Response","portals","concat","Promise","all","getTouristicContent","then","responses","response","json","networkError","results","error","code","DOMException","ABORT_ERR","disconnectedCallback","abort","grwTouristicEventDetailCss","GrwTouristicEventDetailStyle0","GrwTouristicEventDetail","currentTouristicEvent","touristicEventType","touristicEventTypes","touristicEventCategory","touristicEventDetailContainerRef","begin_date","end_date","date","startDate","endDate","GrwTouristicEventProvider","handleTouristicEvent","touristicEventInStore","touristicEventId","handleOfflineTouristicEvent","handleOnlineTouristicEvent","touristicEvent","getTouristicEvent"],"sources":["src/components/grw-details-modal/grw-details-modal.scss?tag=grw-details-modal","src/components/grw-details-modal/grw-details-modal.tsx","src/components/grw-information-desk/grw-information-desk.scss?tag=grw-information-desk&encapsulation=shadow","src/components/grw-information-desk/grw-information-desk.tsx","src/components/grw-outdoor-course-card/grw-outdoor-course-card.scss?tag=grw-outdoor-course-card&encapsulation=shadow","src/components/grw-outdoor-course-card/grw-outdoor-course-card.tsx","src/components/grw-outdoor-site-card/grw-outdoor-site-card.scss?tag=grw-outdoor-site-card&encapsulation=shadow","src/components/grw-outdoor-site-card/grw-outdoor-site-card.tsx","src/components/grw-touristic-content-detail/grw-touristic-content-detail.scss?tag=grw-touristic-content-detail&encapsulation=shadow","src/components/grw-touristic-content-detail/grw-touristic-content-detail.tsx","src/store/grw-touristic-content-provider.tsx","src/components/grw-touristic-event-detail/grw-touristic-event-detail.scss?tag=grw-touristic-event-detail&encapsulation=shadow","src/components/grw-touristic-event-detail/grw-touristic-event-detail.tsx","src/store/grw-touristic-event-provider.tsx"],"sourcesContent":[".modal-container {\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: 40000;\n font-family: var(--font-family);\n background-color: rgba(0, 0, 0, 0.6);\n .grw-details-modal {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n background-color: var(--color-background);\n }\n .grw-content-modal {\n overflow-y: hidden;\n padding-bottom: 24px;\n background-color: var(--color-background);\n }\n .grw-arrow-back-container {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n background-color: var(--color-primary-container);\n .grw-arrow-back-icon {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n color: var(--color-on-primary);\n border: none;\n border-radius: var(--border-radius, 50%);\n height: 48px;\n width: 48px;\n background-color: transparent;\n margin-left: 4px;\n padding: 0px;\n display: flex;\n justify-content: center;\n align-items: center;\n .icon {\n height: 24px;\n width: 24px;\n }\n }\n }\n}\n\n@media (min-width: 1024px) {\n .modal-container {\n .grw-details-modal {\n width: 60%;\n height: 80%;\n border-radius: var(--border-radius, 8px);\n }\n }\n}\n","import { Component, Host, h, Event, EventEmitter, Prop } from '@stencil/core';\nimport CloseIcon from '../../assets/close.svg';\n\n@Component({\n tag: 'grw-details-modal',\n styleUrl: 'grw-details-modal.scss',\n shadow: false,\n})\nexport class GrwDetailsModal {\n @Event() closeDetailsModal: EventEmitter<number>;\n @Prop() fontFamily = 'Roboto';\n @Prop() colorBackground = '#fef7ff';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#49454e';\n @Prop() rounded = true;\n\n handleCloseButton() {\n this.closeDetailsModal.emit();\n }\n\n render() {\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n '--color-background': this.colorBackground,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--border-radius': this.rounded ? '' : '0px',\n }}\n >\n <div part=\"modal-container\" class=\"modal-container\">\n <div part=\"details-modal\" class=\"grw-details-modal\">\n <div part=\"arrow-back-container\" class=\"grw-arrow-back-container\">\n <button part=\"arrow-back-icon\" onClick={() => this.handleCloseButton()} class=\"grw-arrow-back-icon\">\n <span part=\"icon\" class=\"icon\" innerHTML={CloseIcon}></span>\n </button>\n </div>\n <div part=\"content-modal\" class=\"grw-content-modal\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border: 1px solid gray;\n border-radius: var(--border-radius, 12px);\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n a {\n color: var(--color-primary-app);\n }\n}\n\n.information-desk-img-container {\n position: relative;\n .information-desk-img {\n width: 100%;\n height: 200px;\n object-fit: cover;\n }\n}\n\n.information-desk-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n}\n\n.information-desk-sub-container-short {\n max-height: 200px;\n overflow: hidden;\n}\n\n.information-desk-name {\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n}\n\n.information-desk-description {\n font-size: 14px;\n line-height: 20px;\n}\n\n.handle-information-desk-description {\n cursor: pointer;\n color: var(--color-primary-app);\n text-decoration: underline;\n margin-top: 12px;\n}\n\n.phone-container,\n.mail-container,\n.link-container {\n display: flex;\n align-items: center;\n .icon {\n display: flex;\n font-size: 16px;\n margin-right: 8px;\n }\n}\n\n.center-on-map-button {\n cursor: pointer;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 4px 8px;\n box-shadow: var(--elevation-1);\n min-height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n border: none;\n font-size: 14px;\n margin: 12px auto;\n &:hover {\n box-shadow: var(--elevation-2);\n }\n .icon {\n display: flex;\n }\n}\n","import { Component, Host, h, Prop, State, Event, EventEmitter, getAssetPath, Build } from '@stencil/core';\nimport state from 'store/store';\nimport { translate } from 'i18n/i18n';\nimport { InformationDesk, OutdoorSite, Trek } from 'types/types';\nimport { getDataInStore } from 'services/grw-db.service';\nimport LocationSearchingIcon from '../../assets/location_searching.svg';\nimport CallIcon from '../../assets/call.svg';\nimport MailIcon from '../../assets/mail.svg';\nimport LinkIcon from '../../assets/link.svg';\n\n@Component({\n tag: 'grw-information-desk',\n styleUrl: 'grw-information-desk.scss',\n shadow: true,\n})\nexport class GrwInformationDeskDetail {\n descriptionRef?: HTMLDivElement;\n @Event() centerOnMap: EventEmitter<{ latitude: number; longitude: number }>;\n @State() displayShortDescription = true;\n @State() showInformationDeskDescriptionButton = false;\n @Prop() informationDesk: InformationDesk;\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n\n @State() offline = false;\n @State() showDefaultImage = false;\n\n componentDidLoad() {\n this.handleOffline();\n if (this.descriptionRef) {\n this.showInformationDeskDescriptionButton = this.descriptionRef.clientHeight < this.descriptionRef.scrollHeight;\n }\n }\n\n handleInformationDeskDescription() {\n this.displayShortDescription = !this.displayShortDescription;\n }\n\n handleCenterOnMap() {\n this.centerOnMap.emit({ latitude: this.informationDesk.latitude, longitude: this.informationDesk.longitude });\n }\n\n async handleOffline() {\n if (state.currentTrek) {\n const trekInStore: Trek = await getDataInStore('treks', state.currentTrek.id);\n if (trekInStore && trekInStore.offline) {\n const informationDeskInStore: InformationDesk = await getDataInStore('informationDesks', this.informationDesk.id);\n this.offline = Boolean(informationDeskInStore);\n }\n } else if (state.currentOutdoorSite) {\n const outdoorSiteInStore: OutdoorSite = await getDataInStore('outdoorSites', state.currentOutdoorSite.id);\n if (outdoorSiteInStore && outdoorSiteInStore.offline) {\n const informationDeskInStore: InformationDesk = await getDataInStore('informationDesks', this.informationDesk.id);\n this.offline = Boolean(informationDeskInStore);\n }\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n\n return (\n <Host style={{ '--color-surface-container-low': this.colorSurfaceContainerLow }}>\n {this.informationDesk.photo_url && (\n <div part=\"information-desk-img-container\" class=\"information-desk-img-container\">\n <img\n part=\"information-desk-img\"\n class=\"information-desk-img\"\n src={this.informationDesk.photo_url}\n alt={this.informationDesk.name}\n loading=\"lazy\"\n /* @ts-ignore */\n onerror={event => {\n event.target.onerror = null;\n event.target.src = defaultImageSrc;\n }}\n />\n </div>\n )}\n <div part=\"information-desk-sub-container\" class=\"information-desk-sub-container\">\n <div class={this.displayShortDescription ? 'information-desk-sub-container-short' : ''}>\n {this.informationDesk.name && (\n <div part=\"information-desk-name\" class=\"information-desk-name\">\n {this.informationDesk.name}\n </div>\n )}\n {this.informationDesk.latitude && this.informationDesk.longitude && (\n <button part=\"center-on-map-button\" class=\"center-on-map-button\" onClick={() => this.handleCenterOnMap()}>\n <span part=\"icon\" class=\"icon\" innerHTML={LocationSearchingIcon}></span>\n <span part=\"label\">{translate[state.language].centerOnMap}</span>\n </button>\n )}\n {(this.informationDesk.postal_code || this.informationDesk.municipality || this.informationDesk.street) && (\n <div part=\"information-desk-informations\" class=\"information-desk-informations\">\n {this.informationDesk.postal_code && this.informationDesk.postal_code}\n {this.informationDesk.municipality && ` ${this.informationDesk.municipality}`}\n {this.informationDesk.street && ` ${this.informationDesk.street}`}\n </div>\n )}\n {this.informationDesk.phone && (\n <div class=\"phone-container\">\n <span part=\"icon\" class=\"icon\" innerHTML={CallIcon}></span>\n <a part=\"label\" class=\"label\" href={`tel:${this.informationDesk.phone}`}>\n {this.informationDesk.phone}\n </a>\n </div>\n )}\n {this.informationDesk.email && (\n <div part=\"mail-container\" class=\"mail-container\">\n <span part=\"icon\" class=\"icon\" innerHTML={MailIcon}></span>\n <a part=\"label\" class=\"label\" href={`mailto:${this.informationDesk.email}`}>\n {this.informationDesk.email}\n </a>\n </div>\n )}\n {this.informationDesk.website && (\n <div part=\"link-container\" class=\"link-container\">\n <span part=\"icon\" class=\"icon\" innerHTML={LinkIcon}></span>\n <a part=\"label\" class=\"label\" href={`${this.informationDesk.website}`}>\n {this.informationDesk.website}\n </a>\n </div>\n )}\n {this.informationDesk.description && (\n <div part=\"information-desk-description-container\" class=\"information-desk-description-container\">\n <div\n part=\"information-desk-description\"\n class=\"information-desk-description\"\n innerHTML={this.informationDesk.description}\n ref={el => (this.descriptionRef = el)}\n ></div>\n </div>\n )}\n </div>\n {this.informationDesk.description && (\n <div part=\"handle-information-desk-description\" class=\"handle-information-desk-description\" onClick={() => this.handleInformationDeskDescription()}>\n {this.displayShortDescription ? translate[state.language].readMore : translate[state.language].readLess}\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n",":host {\n a {\n color: var(--color-primary-app);\n }\n}\n\n.outdoor-course-img-container {\n position: relative;\n height: 200px;\n .outdoor-course-img,\n .default-outdoor-course-img {\n width: 100%;\n height: 100%;\n max-height: 200px;\n object-fit: cover;\n }\n .outdoor-course-img {\n cursor: pointer;\n object-fit: cover;\n }\n .default-outdoor-course-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .img-fullscreen {\n max-height: none;\n object-fit: contain;\n }\n .outdoor-course-practice {\n width: 24px;\n height: 24px;\n padding: 4px;\n border: 2px solid #ffffff;\n border-radius: var(--border-radius, 50%);\n background-color: var(--color-on-surface);\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 200;\n }\n}\n\n.outdoor-course-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n .outdoor-course-practice-container {\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n .outdoor-course-practice-name {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n }\n img {\n font-size: 24px;\n width: 24px;\n height: 24px;\n margin-right: 8px;\n background-color: var(--color-primary-app);\n }\n }\n .outdoor-course-name {\n font-size: 16px;\n line-height: 24px;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n height: 48px;\n }\n}\n\n.outdoor-course-more-detail-container {\n padding: 0px 12px 12px 12px;\n .more-details-button {\n cursor: pointer;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 8px 16px;\n box-shadow: var(--elevation-1);\n width: 100%;\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n border: none;\n font-size: 14px;\n font-family: var(--font-family);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n span {\n font-size: 18px;\n }\n }\n}\n\n.outdoor-course-card-container,\n.outdoor-course-card-large-view-container {\n font-family: var(--font-family);\n border-radius: var(--border-radius, 12px);\n box-shadow: var(--elevation-1);\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n .outdoor-course-img {\n height: 100%;\n object-fit: cover;\n border-top-left-radius: var(--border-radius, 12px);\n border-top-right-radius: var(--border-radius, 12px);\n }\n}\n\n.outdoor-course-card-container {\n width: 100%;\n max-width: 350px;\n .outdoor-course-img {\n width: 100%;\n height: 100%;\n }\n}\n\n.outdoor-course-card-large-view-container {\n width: 100%;\n display: flex;\n flex-direction: row;\n .outdoor-course-img {\n width: 250px;\n height: 100%;\n border-bottom-left-radius: var(--border-radius, 12px);\n border-top-right-radius: var(--border-radius, 0px);\n }\n}\n\n.is-inside-vertical-list {\n cursor: pointer;\n border: none;\n .touristic-content-img,\n .default-touristic-content-img {\n height: 100%;\n }\n}\n\n.selected-outdoor-course-card {\n box-shadow: var(--elevation-2);\n}\n","import { Component, Host, Prop, h, Event, EventEmitter, Listen, getAssetPath, Build, State } from '@stencil/core';\nimport { getDataInStore } from 'services/grw-db.service';\nimport state from 'store/store';\nimport { OutdoorCourse, OutdoorSite } from 'types/types';\nimport { translate } from 'i18n/i18n';\n\n@Component({\n tag: 'grw-outdoor-course-card',\n styleUrl: 'grw-outdoor-course-card.scss',\n shadow: true,\n})\nexport class GrwOutdoorCourseCard {\n @Event() outdoorCourseCardPress: EventEmitter<number>;\n\n @Prop() outdoorCourse: OutdoorCourse;\n\n @Prop() fontFamily = 'Roboto';\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() isLargeView = false;\n @Prop() isInsideHorizontalList = false;\n\n @Event() cardOutdoorCourseMouseOver: EventEmitter<number>;\n @Event() cardOutdoorCourseMouseLeave: EventEmitter;\n\n @State() offline = false;\n\n @Listen('mouseover')\n handleMouseOver() {\n this.cardOutdoorCourseMouseOver.emit(this.outdoorCourse.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.cardOutdoorCourseMouseLeave.emit();\n }\n\n async handleOffline() {\n if (state.currentOutdoorSite) {\n const outdoorSiteInStore: OutdoorSite = await getDataInStore('outdoorSites', state.currentOutdoorSite.id);\n if (outdoorSiteInStore && outdoorSiteInStore.offline) {\n const outdoorCourseInStore: OutdoorCourse = await getDataInStore('outdoorCourses', this.outdoorCourse.id);\n this.offline = Boolean(outdoorCourseInStore);\n }\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const outdoorPractice = null;\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n 'width': this.isLargeView ? '100%' : 'auto',\n }}\n >\n <div\n part=\"outdoor-course-card\"\n class={\n this.isLargeView\n ? `outdoor-course-card outdoor-course-card-large-view-container${state.selectedOutdoorCourseId === this.outdoorCourse.id ? ' selected-outdoor-course-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n : ` outdoor-course-card outdoor-course-card-container${state.selectedOutdoorCourseId === this.outdoorCourse.id ? ' selected-outdoor-course-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n }\n onClick={() => {\n if (!this.isInsideHorizontalList) {\n this.outdoorCourseCardPress.emit(this.outdoorCourse.id);\n }\n }}\n >\n <div part=\"outdoor-course-img-container\" class=\"outdoor-course-img-container\">\n {this.outdoorCourse.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n <img\n part=\"outdoor-course-img\"\n class=\"outdoor-course-img\"\n src={`${\n this.outdoorCourse.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail !== ''\n ? this.outdoorCourse.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail\n : this.outdoorCourse.attachments.filter(attachment => attachment.type === 'image')[0].url\n }`}\n alt={`${this.outdoorCourse.attachments.filter(attachment => attachment.type === 'image')[0].legend}`}\n loading=\"lazy\"\n />\n ) : (\n <img class=\"image default-outdoor-course-img\" src={defaultImageSrc} alt=\"\" loading=\"lazy\" />\n )}\n </div>\n <div part=\"outdoor-course-sub-container\" class=\"outdoor-course-sub-container\">\n <div part=\"outdoor-course-practice-container\" class=\"outdoor-course-practice-container\">\n {outdoorPractice && outdoorPractice.pictogram && (\n <img\n part=\"outdoor-course-type-img\"\n class=\"outdoor-course-type-img\"\n /* @ts-ignore */\n src={outdoorPractice.pictogram}\n alt=\"\"\n />\n )}\n {outdoorPractice && outdoorPractice.name && (\n <div part=\"outdoor-course-practice-name\" class=\"outdoor-course-practice-name\">\n {outdoorPractice.name}\n </div>\n )}\n </div>\n <div part=\"outdoor-course-name\" class=\"outdoor-course-name\">\n {this.outdoorCourse.name}\n </div>\n </div>\n {this.isInsideHorizontalList && (\n <div part=\"outdoor-course-more-detail-container\" class=\"outdoor-course-more-detail-container\">\n <button part=\"more-details-button\" class=\"more-details-button\" onClick={() => this.outdoorCourseCardPress.emit(this.outdoorCourse.id)}>\n {translate[state.language].moreDetails}\n </button>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n",":host {\n a {\n color: var(--color-primary-app);\n }\n}\n\n.outdoor-site-img-container {\n position: relative;\n height: 200px;\n .outdoor-site-img,\n .default-outdoor-site-img {\n width: 100%;\n height: 100%;\n max-height: 200px;\n object-fit: cover;\n }\n .outdoor-site-img {\n cursor: pointer;\n object-fit: cover;\n }\n .default-outdoor-site-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .img-fullscreen {\n max-height: none;\n object-fit: contain;\n }\n .outdoor-site-practice {\n width: 24px;\n height: 24px;\n padding: 4px;\n border: 2px solid #ffffff;\n border-radius: var(--border-radius, 50%);\n background-color: var(--color-on-surface);\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 200;\n }\n}\n\n.outdoor-site-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n .outdoor-site-practice-container {\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n .outdoor-site-practice-name {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n }\n img {\n font-size: 24px;\n width: 24px;\n height: 24px;\n margin-right: 8px;\n background-color: var(--color-primary-app);\n }\n }\n .outdoor-site-name {\n font-size: 16px;\n line-height: 24px;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n height: 48px;\n }\n}\n\n.outdoor-site-more-detail-container {\n padding: 0px 12px 12px 12px;\n .more-details-button {\n cursor: pointer;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 8px 16px;\n box-shadow: var(--elevation-1);\n width: 100%;\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n border: none;\n font-size: 14px;\n font-family: var(--font-family);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n span {\n font-size: 18px;\n }\n }\n}\n\n.outdoor-site-card-container,\n.outdoor-site-card-large-view-container {\n font-family: var(--font-family);\n border-radius: var(--border-radius, 12px);\n box-shadow: var(--elevation-1);\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n .outdoor-site-img {\n height: 100%;\n object-fit: cover;\n border-top-left-radius: var(--border-radius, 12px);\n border-top-right-radius: var(--border-radius, 12px);\n }\n}\n\n.outdoor-site-card-container {\n width: 100%;\n max-width: 350px;\n .outdoor-site-img {\n width: 100%;\n height: 100%;\n }\n}\n\n.outdoor-site-card-large-view-container {\n width: 100%;\n display: flex;\n flex-direction: row;\n .outdoor-site-img {\n width: 250px;\n height: 100%;\n border-bottom-left-radius: var(--border-radius, 12px);\n border-top-right-radius: var(--border-radius, 0px);\n }\n}\n\n.is-inside-vertical-list {\n cursor: pointer;\n border: none;\n .touristic-content-img,\n .default-touristic-content-img {\n height: 100%;\n }\n}\n\n.selected-outdoor-site-card {\n box-shadow: var(--elevation-2);\n}\n\n.themes-container {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n .theme {\n background-color: var(--color-secondary-container);\n color: var(--color-on-secondary-container);\n border-radius: var(--border-radius, 40px);\n padding: 8px 16px;\n margin: 0px 8px 8px 0px;\n box-shadow: var(--elevation-0);\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n }\n}\n","import { Component, Host, Prop, h, Event, EventEmitter, Listen, getAssetPath, Build, State } from '@stencil/core';\nimport { getDataInStore } from 'services/grw-db.service';\nimport state from 'store/store';\nimport { OutdoorSite } from 'types/types';\nimport { translate } from 'i18n/i18n';\n\n@Component({\n tag: 'grw-outdoor-site-card',\n styleUrl: 'grw-outdoor-site-card.scss',\n shadow: true,\n})\nexport class GrwOutdoorSiteCard {\n @Event() outdoorSiteCardPress: EventEmitter<number>;\n\n @Prop() outdoorSite: OutdoorSite;\n\n @Prop() fontFamily = 'Roboto';\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() isLargeView = false;\n @Prop() isInsideHorizontalList = false;\n\n @Event() cardOutdoorSiteMouseOver: EventEmitter<number>;\n @Event() cardOutdoorSiteMouseLeave: EventEmitter;\n\n @State() offline = false;\n\n @Listen('mouseover')\n handleMouseOver() {\n this.cardOutdoorSiteMouseOver.emit(this.outdoorSite.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.cardOutdoorSiteMouseLeave.emit();\n }\n\n async handleOffline() {\n if (state.currentOutdoorSite) {\n const outdoorSiteInStore: OutdoorSite = await getDataInStore('outdoorSites', state.currentOutdoorSite.id);\n this.offline = outdoorSiteInStore && outdoorSiteInStore.offline;\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const outdoorPractice = state.outdoorPractices.find(outdoorPractice => outdoorPractice.id === this.outdoorSite.practice);\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n 'width': this.isLargeView ? '100%' : 'auto',\n }}\n >\n <div\n part=\"outdoor-site-card\"\n class={\n this.isLargeView\n ? `outdoor-site-card outdoor-site-card-large-view-container${state.selectedOutdoorSiteId === this.outdoorSite.id ? ' selected-outdoor-site-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n : ` outdoor-site-card outdoor-site-card-container${state.selectedOutdoorSiteId === this.outdoorSite.id ? ' selected-outdoor-site-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n }\n onClick={() => {\n if (!this.isInsideHorizontalList) {\n this.outdoorSiteCardPress.emit(this.outdoorSite.id);\n }\n }}\n >\n <div part=\"outdoor-site-img-container\" class=\"outdoor-site-img-container\">\n {this.outdoorSite.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n <img\n part=\"outdoor-site-img\"\n class=\"outdoor-site-img\"\n src={`${\n this.outdoorSite.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail !== ''\n ? this.outdoorSite.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail\n : this.outdoorSite.attachments.filter(attachment => attachment.type === 'image')[0].url\n }`}\n alt={`${this.outdoorSite.attachments.filter(attachment => attachment.type === 'image')[0].legend}`}\n loading=\"lazy\"\n />\n ) : (\n <img class=\"image default-outdoor-site-img\" src={defaultImageSrc} alt=\"\" loading=\"lazy\" />\n )}\n </div>\n <div part=\"outdoor-site-sub-container\" class=\"outdoor-site-sub-container\">\n <div part=\"outdoor-site-practice-container\" class=\"outdoor-site-practice-container\">\n {outdoorPractice && outdoorPractice.pictogram && (\n <img\n part=\"outdoor-site-type-img\"\n class=\"outdoor-site-type-img\"\n /* @ts-ignore */\n src={outdoorPractice.pictogram}\n alt=\"\"\n />\n )}\n {outdoorPractice && outdoorPractice.name && (\n <div part=\"outdoor-site-practice-name\" class=\"outdoor-site-practice-name\">\n {outdoorPractice.name}\n </div>\n )}\n </div>\n <div part=\"outdoor-site-name\" class=\"outdoor-site-name\">\n {this.outdoorSite.name}\n </div>\n {!this.isInsideHorizontalList && state.themes && state.themes.filter(theme => this.outdoorSite.themes.includes(theme.id)).length > 0 && (\n <div part=\"themes-container\" class=\"themes-container\">\n {state.themes\n .filter(theme => this.outdoorSite.themes.includes(theme.id))\n .map(theme => (\n <div part=\"theme\" class=\"theme\">\n {theme.label}\n </div>\n ))}\n </div>\n )}\n </div>\n {this.isInsideHorizontalList && (\n <div part=\"outdoor-site-more-detail-container\" class=\"outdoor-site-more-detail-container\">\n <button part=\"more-details-button\" class=\"more-details-button\" onClick={() => this.outdoorSiteCardPress.emit(this.outdoorSite.id)}>\n {translate[state.language].moreDetails}\n </button>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n","@use '~swiper/swiper.scss';\n@use '~swiper/modules/navigation/navigation.scss';\n@use '~swiper/modules/pagination/pagination.scss';\n\n.swiper {\n z-index: 0;\n}\n\n:host {\n --swiper-navigation-size: 24px;\n --swiper-navigation-color: var(--color-on-primary-container);\n --swiper-pagination-color: var(--color-primary-container);\n --swiper-pagination-bullet-size: 12px;\n .swiper-button-prev,\n .swiper-button-next {\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: var(--border-radius, 32px);\n box-shadow: var(--elevation-1);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n}\n\ngrw-touristic-content-detail {\n overflow: hidden;\n}\n\n.touristic-content-detail-container {\n font-family: var(--font-family);\n color: var(--color-on-surface);\n display: flex;\n flex-direction: column;\n height: 100%;\n max-height: 100%;\n overflow-y: auto;\n padding-bottom: 24px;\n .touristic-content-category-container {\n display: flex;\n align-items: center;\n padding: 0px 24px;\n margin: 8px 0px;\n .touristic-content-category-name {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n }\n img {\n font-size: 24px;\n width: 24px;\n height: 24px;\n margin-right: 8px;\n background-color: var(--color-primary-app);\n }\n }\n .name {\n color: var(--color-on-surface);\n font-size: 22px;\n line-height: 28px;\n font-weight: 400;\n padding: 0px 24px;\n margin: 8px 0px;\n }\n .image,\n .default-poi-img {\n cursor: pointer;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .default-poi-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .description-teaser,\n .description-container,\n .useful-information-container,\n .contact-container {\n padding: 0px 24px 0px 24px;\n }\n .description-container,\n .useful-information-container,\n .contact-container {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n a {\n color: var(--color-primary-app);\n }\n }\n .description-title,\n .useful-information-title,\n .contact-title {\n color: var(--color-on-surface);\n font-size: 22px;\n line-height: 28px;\n font-weight: 400;\n font-weight: bold;\n margin-bottom: 16px;\n }\n}\n\n.detail-bottom-space {\n min-height: var(--detail-bottom-space-height);\n height: var(--detail-bottom-space-height);\n width: 100%;\n background-color: var(--color-background);\n}\n\n.images-container {\n display: flex;\n max-width: 100%;\n max-height: 400px;\n}\n\n.divider {\n margin: 16px;\n border-top: 1px solid var(--color-outline);\n}\n\n.cities-container {\n display: flex;\n align-items: center;\n padding: 24px 24px 0px 24px;\n .cities-title {\n color: var(--color-on-surface);\n font-weight: bold;\n white-space: nowrap;\n margin-right: 8px;\n }\n}\n\n.downloads-container {\n padding: 0px 24px 0px 24px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .download-title {\n color: var(--color-on-surface);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n }\n .links-container {\n display: flex;\n flex-wrap: wrap;\n a {\n margin-top: 8px;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 8px 16px;\n box-shadow: var(--elevation-1);\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n text-decoration: none;\n &:nth-child(2) {\n margin: 8px 12px 0px 12px;\n }\n &:hover {\n box-shadow: var(--elevation-2);\n }\n .icon {\n display: flex;\n }\n }\n }\n}\n\n.email-container,\n.website-container {\n display: flex;\n flex-wrap: wrap;\n}\n\n.legend-container {\n position: absolute;\n top: 16px;\n font-size: 12px;\n color: #ffffff;\n width: 100%;\n text-align: center;\n}\n\n.close-fullscreen-button {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n z-index: 40;\n top: 16px;\n right: 16px;\n color: var(--swiper-navigation-color, var(--swiper-theme-color));\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: var(--border-radius, 32px);\n box-shadow: var(--elevation-1);\n cursor: pointer;\n}\n\n.touristic-content-category-img {\n border-radius: 100%;\n padding: 2px;\n max-height: 20px;\n max-width: 20px;\n}\n","import { Build, Component, Host, Prop, State, getAssetPath, h } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state from 'store/store';\nimport Swiper, { FreeMode, Keyboard, Mousewheel, Navigation, Pagination } from 'swiper';\nimport CloseIcon from '../../assets/close.svg';\nimport DownloadIcon from '../../assets/download.svg';\n\n@Component({\n tag: 'grw-touristic-content-detail',\n styleUrl: 'grw-touristic-content-detail.scss',\n shadow: true,\n})\nexport class GrwTouristicContentDetail {\n swiperImages?: Swiper;\n swiperImagesRef?: HTMLDivElement;\n prevElImagesRef?: HTMLDivElement;\n nextElImagesRef?: HTMLDivElement;\n paginationElImagesRef?: HTMLDivElement;\n presentationRef?: HTMLDivElement;\n\n @State() displayFullscreen = false;\n @State() offline = false;\n\n @Prop() fontFamily = 'Roboto';\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() colorBackground = '#fef7ff';\n @Prop() isLargeView = false;\n @Prop() grwApp = false;\n\n descriptionRef?: HTMLDivElement;\n touristicContentDetailContainerRef?: HTMLElement;\n\n handleSwipers() {\n if (this.swiperImagesRef && !this.swiperImages) {\n this.swiperImages = new Swiper(this.swiperImagesRef, {\n modules: [Navigation, Pagination, Keyboard, FreeMode, Mousewheel],\n navigation: {\n prevEl: this.prevElImagesRef,\n nextEl: this.nextElImagesRef,\n },\n pagination: { el: this.paginationElImagesRef },\n allowTouchMove: false,\n keyboard: false,\n loop: true,\n });\n this.swiperImagesRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();\n };\n }\n }\n\n componentDidUpdate() {\n this.handleSwipers();\n }\n\n componentDidLoad() {\n this.offline = state.currentTouristicContent && state.currentTouristicContent.offline;\n this.handleSwipers();\n }\n\n handleFullscreen(close: boolean = false) {\n if (!close) {\n if (state.currentTouristicContent.attachments && state.currentTouristicContent.attachments[0] && state.currentTouristicContent.attachments[0].url) {\n this.swiperImagesRef.requestFullscreen();\n }\n } else {\n (document as any).exitFullscreen();\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicContentCategory =\n state.touristicContentCategories &&\n state.currentTouristicContent &&\n state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === state.currentTouristicContent.category);\n const cities = state.currentTouristicContent && state.currentTouristicContent.cities.map(currentCity => state.cities.find(city => city.id === currentCity)?.name);\n const displayPaginationAndNavigation =\n (state.currentTouristicContent && state.currentTouristicContent.attachments.filter(attachment => attachment.type === 'image').length > 1) || this.offline;\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-background': this.colorBackground,\n '--detail-bottom-space-height': this.isLargeView\n ? state.languages && state.languages.length > 1\n ? '44px'\n : '12px'\n : state.languages && state.languages.length > 1\n ? '164px'\n : '124px',\n }}\n >\n {state.currentTouristicContent && (\n <div part=\"touristic-content-detail-container\" class=\"touristic-content-detail-container\" ref={el => (this.touristicContentDetailContainerRef = el)}>\n <div part=\"images-container\" class=\"images-container\" ref={el => (this.presentationRef = el)}>\n <div part=\"swiper-images\" class=\"swiper swiper-images\" ref={el => (this.swiperImagesRef = el)}>\n <div part=\"swiper-wrapper\" class=\"swiper-wrapper\">\n {state.currentTouristicContent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n state.currentTouristicContent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => {\n const legend = [attachment.legend, attachment.author].filter(Boolean).join(' - ');\n return (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n {this.displayFullscreen && (\n <div part=\"close-fullscreen-button\" class=\"close-fullscreen-button\" onClick={() => this.handleFullscreen(true)}>\n <span part=\"icon\" class=\"icon\" innerHTML={CloseIcon}></span>\n </div>\n )}\n <div part=\"legend-container\" class=\"legend-container\">\n {legend}\n </div>\n <img\n part=\"image\"\n class=\"image\"\n src={this.offline && attachment.thumbnail !== '' ? attachment.thumbnail : attachment.url}\n loading=\"lazy\"\n onClick={() => this.handleFullscreen()}\n alt={attachment.legend}\n />\n </div>\n );\n })\n ) : (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img part=\"default-poi-img\" class=\"default-poi-img\" src={defaultImageSrc} alt=\"\" loading=\"lazy\" />\n </div>\n )}\n </div>\n <div\n style={{ display: 'block', visibility: displayPaginationAndNavigation ? 'visible' : 'hidden' }}\n part=\"swiper-pagination\"\n class=\"swiper-pagination\"\n ref={el => (this.paginationElImagesRef = el)}\n ></div>\n <div\n style={{ display: 'flex', visibility: displayPaginationAndNavigation ? 'visible' : 'hidden' }}\n part=\"swiper-button-prev\"\n class=\"swiper-button-prev\"\n ref={el => (this.prevElImagesRef = el)}\n ></div>\n <div\n style={{ display: 'flex', visibility: displayPaginationAndNavigation ? 'visible' : 'hidden' }}\n part=\"swiper-button-next\"\n class=\"swiper-button-next\"\n ref={el => (this.nextElImagesRef = el)}\n ></div>\n </div>\n </div>\n <div part=\"touristic-content-category-container\" class=\"touristic-content-category-container\">\n <img\n part=\"touristic-content-category-img\"\n class=\"touristic-content-category-img\"\n /* @ts-ignore */\n\n src={touristicContentCategory.pictogram}\n alt=\"\"\n />\n <div part=\"touristic-content-category-name\" class=\"touristic-content-category-name\">\n {touristicContentCategory.label}\n </div>\n </div>\n <div part=\"name\" class=\"name\">\n {state.currentTouristicContent.name}\n </div>\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"downloads-container\" class=\"downloads-container\">\n <div part=\"download-title\" class=\"download-title\">\n {translate[state.language].download}\n </div>\n <div part=\"links-container\" class=\"links-container\">\n <a part=\"link-container\" class=\"link-container\" href={`${state.currentTouristicContent.pdf}`} target=\"_blank\" rel=\"noopener noreferrer\">\n <span part=\"icon\" class=\"icon\" innerHTML={DownloadIcon}></span>\n <span part=\"label\" class=\"\">\n PDF\n </span>\n </a>\n </div>\n </div>\n {state.currentTouristicContent.description_teaser && (\n <div>\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"description-teaser\" class=\"description-teaser\" innerHTML={state.currentTouristicContent.description_teaser}></div>\n </div>\n )}\n <div part=\"divider\" class=\"divider\"></div>\n {state.currentTouristicContent.practical_info && (\n <div part=\"description-container\" class=\"description-container\" ref={el => (this.descriptionRef = el)}>\n <div part=\"description-title\" class=\"description-title\">\n {translate[state.language].description}\n </div>\n <div part=\"description\" class=\"description\" innerHTML={state.currentTouristicContent.description}></div>\n </div>\n )}\n {cities && cities.length > 0 && (\n <div part=\"cities-container\" class=\"cities-container\">\n <div part=\"cities-title\" class=\"cities-title\">\n {translate[state.language].city} :&nbsp;\n </div>\n <div part=\"cities\" class=\"cities\" innerHTML={cities.join(', ')}></div>\n </div>\n )}\n {state.currentTouristicContent.practical_info && (\n <div>\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"useful-information-container\" class=\"useful-information-container\">\n <div part=\"useful-information-title\" class=\"useful-information-title\">\n {translate[state.language].usefulInformation} :&nbsp;\n </div>\n <div part=\"useful-information\" innerHTML={state.currentTouristicContent.practical_info}></div>\n </div>\n </div>\n )}\n {(state.currentTouristicContent.contact || state.currentTouristicContent.email || state.currentTouristicContent.website) && (\n <div>\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"contact-container\" class=\"contact-container\">\n <div part=\"contact-title\" class=\"contact-title\">\n {translate[state.language].contact} :&nbsp;\n </div>\n {state.currentTouristicContent.contact && <div part=\"contact\" class=\"contact\" innerHTML={state.currentTouristicContent.contact}></div>}\n {state.currentTouristicContent.email && (\n <div part=\"email-container\" class=\"email-container\">\n <div part=\"email-title\" class=\"email-title\">\n {translate[state.language].email} :&nbsp;\n </div>\n <a href={'mailto:' + state.currentTouristicContent.email} part=\"email\" class=\"email\" innerHTML={state.currentTouristicContent.email}></a>\n </div>\n )}\n {state.currentTouristicContent.website && (\n <div part=\"website-container\" class=\"website-container\">\n <div part=\"website-title\" class=\"website-title\">\n {translate[state.language].website} :&nbsp;\n </div>\n <a href={state.currentTouristicContent.website} part=\"website\" class=\"website\" innerHTML={state.currentTouristicContent.website}></a>\n </div>\n )}\n </div>\n </div>\n )}\n {this.grwApp && <div part=\"detail-bottom-space\" class=\"detail-bottom-space\"></div>}\n </div>\n )}\n </Host>\n );\n }\n}\n","import { Build, Component, h, Host, Prop } from '@stencil/core';\nimport { getAllDataInStore, getDataInStore } from 'services/grw-db.service';\nimport { getTouristicContent } from 'services/touristic-contents.service';\nimport state from 'store/store';\nimport { TouristicContent } from 'types/types';\n\n@Component({\n tag: 'grw-touristic-content-provider',\n shadow: true,\n})\nexport class GrwTouristicContentProvider {\n @Prop() languages = 'fr';\n @Prop() api: string;\n @Prop() touristicContentId: number;\n @Prop() portals: string;\n\n controller = new AbortController();\n signal = this.controller.signal;\n init: RequestInit = { cache: Build.isDev ? 'force-cache' : 'default', signal: this.signal };\n\n connectedCallback() {\n if (!state.api) {\n state.api = this.api;\n state.languages = this.languages.split(',');\n state.language = state.languages[0];\n }\n this.handleTouristicContent();\n }\n\n async handleTouristicContent() {\n const touristicContentInStore: TouristicContent = await getDataInStore('touristicContents', this.touristicContentId);\n if (touristicContentInStore && touristicContentInStore.offline) {\n this.handleOfflineTouristicContent(touristicContentInStore);\n } else {\n this.handleOnlineTouristicContent();\n }\n }\n\n async handleOfflineTouristicContent(touristicContent: TouristicContent) {\n if (!state.cities) {\n state.cities = await getAllDataInStore('cities');\n }\n if (!state.touristicContentCategories) {\n state.touristicContentCategories = await getAllDataInStore('touristicContentCategories');\n }\n state.currentTouristicContent = touristicContent;\n }\n\n handleOnlineTouristicContent() {\n const requests = [];\n requests.push(!state.cities ? fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));\n requests.push(\n !state.touristicContentCategories\n ? fetch(\n `${state.api}touristiccontent_category/?language=${state.language}${\n this.portals ? '&portals='.concat(this.portals) : ''\n }&published=true&fields=id,label,pictogram&page_size=999`,\n this.init,\n )\n : new Response('null'),\n );\n try {\n Promise.all([...requests, getTouristicContent(state.api, state.language, this.touristicContentId, this.init)])\n .then(responses => Promise.all(responses.map(response => response.json())))\n .then(([cities, touristicContentCategory, touristicContent]) => {\n state.networkError = false;\n\n if (cities) {\n state.cities = cities.results;\n }\n if (touristicContentCategory) {\n state.touristicContentCategories = touristicContentCategory.results;\n }\n state.currentTouristicContent = touristicContent;\n });\n } catch (error) {\n if (!(error.code === DOMException.ABORT_ERR)) {\n state.networkError = true;\n }\n }\n }\n\n disconnectedCallback() {\n this.controller.abort();\n state.networkError = false;\n }\n\n render() {\n return <Host></Host>;\n }\n}\n","@use '~swiper/swiper.scss';\n@use '~swiper/modules/navigation/navigation.scss';\n@use '~swiper/modules/pagination/pagination.scss';\n\n.swiper {\n z-index: 0;\n}\n\n:host {\n --swiper-navigation-size: 24px;\n --swiper-navigation-color: var(--color-on-primary-container);\n --swiper-pagination-color: var(--color-primary-container);\n --swiper-pagination-bullet-size: 12px;\n .swiper-button-prev,\n .swiper-button-next {\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: var(--border-radius, 32px);\n box-shadow: var(--elevation-1);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n}\n\ngrw-touristic-event-detail {\n overflow: hidden;\n}\n\n.touristic-event-detail-container {\n font-family: var(--font-family);\n color: var(--color-on-surface);\n display: flex;\n flex-direction: column;\n height: 100%;\n max-height: 100%;\n overflow-y: auto;\n padding-bottom: 24px;\n .touristic-event-category-container {\n display: flex;\n align-items: center;\n padding: 0px 24px;\n margin: 8px 0px;\n .touristic-event-category-name {\n display: -webkit-box;\n line-clamp: 1;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n img {\n font-size: 24px;\n width: 24px;\n height: 24px;\n margin-right: 8px;\n background-color: var(--color-primary-app);\n }\n }\n .name {\n color: var(--color-on-surface);\n font-size: 22px;\n line-height: 28px;\n font-weight: 400;\n padding: 0px 24px;\n margin: 8px 0px;\n }\n .touristic-event-date-container {\n color: var(--color-on-surface);\n font-size: 16px;\n line-height: 28px;\n font-weight: 400;\n padding: 0px 24px;\n margin: 8px 0px;\n }\n .image,\n .default-poi-img {\n cursor: pointer;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .default-poi-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .description-teaser,\n .description-container,\n .useful-information-container,\n .contact-container {\n padding: 0px 24px 0px 24px;\n }\n .description-container,\n .useful-information-container,\n .contact-container {\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n a {\n color: var(--color-primary-app);\n }\n }\n .description-title,\n .useful-information-title,\n .contact-title {\n color: var(--color-on-surface);\n font-size: 22px;\n line-height: 28px;\n font-weight: 400;\n font-weight: bold;\n margin-bottom: 16px;\n }\n}\n\n.detail-bottom-space {\n min-height: var(--detail-bottom-space-height);\n height: var(--detail-bottom-space-height);\n width: 100%;\n background-color: var(--color-background);\n}\n\n.images-container {\n display: flex;\n max-width: 100%;\n max-height: 400px;\n}\n\n.divider {\n margin: 16px;\n border-top: 1px solid var(--color-outline);\n}\n\n.cities-container {\n display: flex;\n align-items: center;\n padding: 24px 24px 0px 24px;\n .cities-title {\n color: var(--color-on-surface);\n font-weight: bold;\n white-space: nowrap;\n margin-right: 8px;\n }\n}\n\n.downloads-container {\n padding: 0px 24px 0px 24px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .download-title {\n color: var(--color-on-surface);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n }\n .links-container {\n display: flex;\n flex-wrap: wrap;\n a {\n margin-top: 8px;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 8px 16px;\n box-shadow: var(--elevation-1);\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n text-decoration: none;\n &:nth-child(2) {\n margin: 8px 12px 0px 12px;\n }\n &:hover {\n box-shadow: var(--elevation-2);\n }\n .icon {\n display: flex;\n }\n }\n }\n}\n\n.email-container,\n.website-container {\n display: flex;\n flex-wrap: wrap;\n}\n\n.legend-container {\n position: absolute;\n top: 16px;\n font-size: 12px;\n color: #ffffff;\n width: 100%;\n text-align: center;\n}\n\n.close-fullscreen-button {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n z-index: 40;\n top: 16px;\n right: 16px;\n color: var(--swiper-navigation-color, var(--swiper-theme-color));\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: var(--border-radius, 32px);\n box-shadow: var(--elevation-1);\n cursor: pointer;\n}\n","import { Build, Component, Host, Prop, State, getAssetPath, h } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state from 'store/store';\nimport Swiper, { FreeMode, Keyboard, Mousewheel, Navigation, Pagination } from 'swiper';\nimport CloseIcon from '../../assets/close.svg';\nimport DownloadIcon from '../../assets/download.svg';\n\n@Component({\n tag: 'grw-touristic-event-detail',\n styleUrl: 'grw-touristic-event-detail.scss',\n shadow: true,\n})\nexport class GrwTouristicEventDetail {\n swiperImages?: Swiper;\n swiperImagesRef?: HTMLDivElement;\n prevElImagesRef?: HTMLDivElement;\n nextElImagesRef?: HTMLDivElement;\n paginationElImagesRef?: HTMLDivElement;\n presentationRef?: HTMLDivElement;\n\n @State() displayFullscreen = false;\n @State() offline = false;\n\n @Prop() fontFamily = 'Roboto';\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() colorBackground = '#fef7ff';\n @Prop() isLargeView = false;\n @Prop() grwApp = false;\n\n descriptionRef?: HTMLDivElement;\n touristicEventDetailContainerRef?: HTMLElement;\n\n handleSwipers() {\n if (this.swiperImagesRef && !this.swiperImages) {\n this.swiperImages = new Swiper(this.swiperImagesRef, {\n modules: [Navigation, Pagination, Keyboard, FreeMode, Mousewheel],\n navigation: {\n prevEl: this.prevElImagesRef,\n nextEl: this.nextElImagesRef,\n },\n pagination: { el: this.paginationElImagesRef },\n allowTouchMove: false,\n keyboard: false,\n loop: true,\n });\n this.swiperImagesRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen;\n this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();\n };\n }\n }\n\n componentDidUpdate() {\n this.handleSwipers();\n }\n\n componentDidLoad() {\n this.offline = state.currentTouristicEvent && state.currentTouristicEvent.offline;\n this.handleSwipers();\n }\n\n handleFullscreen(close: boolean = false) {\n if (!close) {\n if (state.currentTouristicEvent.attachments && state.currentTouristicEvent.attachments[0] && state.currentTouristicEvent.attachments[0].url) {\n this.swiperImagesRef.requestFullscreen();\n }\n } else {\n (document as any).exitFullscreen();\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n\n const touristicEventType =\n state.touristicEventTypes &&\n state.currentTouristicEvent &&\n state.touristicEventTypes.find(touristicEventCategory => touristicEventCategory.id === state.currentTouristicEvent.type);\n const cities = state.currentTouristicEvent && state.currentTouristicEvent.cities.map(currentCity => state.cities.find(city => city.id === currentCity)?.name);\n const displayPaginationAndNavigation =\n (state.currentTouristicEvent && state.currentTouristicEvent.attachments.filter(attachment => attachment.type === 'image').length > 1) || this.offline;\n\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-background': this.colorBackground,\n '--detail-bottom-space-height': this.isLargeView\n ? state.languages && state.languages.length > 1\n ? '44px'\n : '12px'\n : state.languages && state.languages.length > 1\n ? '164px'\n : '124px',\n }}\n >\n {state.currentTouristicEvent && (\n <div part=\"touristic-event-detail-container\" class=\"touristic-event-detail-container\" ref={el => (this.touristicEventDetailContainerRef = el)}>\n <div part=\"images-container\" class=\"images-container\" ref={el => (this.presentationRef = el)}>\n <div part=\"swiper-images\" class=\"swiper swiper-images\" ref={el => (this.swiperImagesRef = el)}>\n <div part=\"swiper-wrapper\" class=\"swiper-wrapper\">\n {state.currentTouristicEvent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n state.currentTouristicEvent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => {\n const legend = [attachment.legend, attachment.author].filter(Boolean).join(' - ');\n return (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n {this.displayFullscreen && (\n <div part=\"close-fullscreen-button\" class=\"close-fullscreen-button\" onClick={() => this.handleFullscreen(true)}>\n <span part=\"icon\" class=\"icon\" innerHTML={CloseIcon}></span>\n </div>\n )}\n <div part=\"legend-container\" class=\"legend-container\">\n {legend}\n </div>\n <img\n part=\"image\"\n class=\"image\"\n src={this.offline && attachment.thumbnail !== '' ? attachment.thumbnail : attachment.url}\n loading=\"lazy\"\n onClick={() => this.handleFullscreen()}\n alt={attachment.legend}\n />\n </div>\n );\n })\n ) : (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img\n part=\"default-poi-img\"\n class=\"default-poi-img\"\n /* @ts-ignore */\n src={defaultImageSrc}\n loading=\"lazy\"\n />\n </div>\n )}\n </div>\n <div\n style={{ display: 'block', visibility: displayPaginationAndNavigation ? 'visible' : 'hidden' }}\n part=\"swiper-pagination\"\n class=\"swiper-pagination\"\n ref={el => (this.paginationElImagesRef = el)}\n ></div>\n <div\n style={{ display: 'flex', visibility: displayPaginationAndNavigation ? 'visible' : 'hidden' }}\n part=\"swiper-button-prev\"\n class=\"swiper-button-prev\"\n ref={el => (this.prevElImagesRef = el)}\n ></div>\n <div\n style={{ display: 'flex', visibility: displayPaginationAndNavigation ? 'visible' : 'hidden' }}\n part=\"swiper-button-next\"\n class=\"swiper-button-next\"\n ref={el => (this.nextElImagesRef = el)}\n ></div>\n </div>\n </div>\n <div part=\"touristic-event-category-container\" class=\"touristic-event-category-container\">\n {touristicEventType && touristicEventType.pictogram && (\n <img part=\"touristic-event-category-img\" class=\"touristic-event-category-img\" src={touristicEventType.pictogram} />\n )}\n {touristicEventType && touristicEventType.type && (\n <div part=\"touristic-event-category-name\" class=\"touristic-event-category-name\">\n {touristicEventType.type}\n </div>\n )}\n </div>\n <div part=\"name\" class=\"name\">\n {state.currentTouristicEvent.name}\n </div>\n {(state.currentTouristicEvent.begin_date || state.currentTouristicEvent.end_date) && (\n <div part=\"touristic-event-date-container\" class=\"touristic-event-date-container\">\n {state.currentTouristicEvent.begin_date === state.currentTouristicEvent.end_date && (\n <div part=\"touristic-event-date\" class=\"touristic-event-date\">\n {translate[state.language].date} : {state.currentTouristicEvent.begin_date}\n </div>\n )}\n {state.currentTouristicEvent.begin_date && state.currentTouristicEvent.begin_date !== state.currentTouristicEvent.end_date && (\n <div part=\"touristic-event-date\" class=\"touristic-event-date\">\n {translate[state.language].startDate} : {state.currentTouristicEvent.begin_date}\n </div>\n )}\n {state.currentTouristicEvent.end_date && state.currentTouristicEvent.begin_date !== state.currentTouristicEvent.end_date && (\n <div part=\"touristic-event-date\" class=\"touristic-event-date\">\n {translate[state.language].endDate} : {state.currentTouristicEvent.end_date}\n </div>\n )}\n </div>\n )}\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"downloads-container\" class=\"downloads-container\">\n <div part=\"download-title\" class=\"download-title\">\n {translate[state.language].download}\n </div>\n <div part=\"links-container\" class=\"links-container\">\n <a part=\"link\" class=\"link\" href={`${state.currentTouristicEvent.pdf}`} target=\"_blank\" rel=\"noopener noreferrer\">\n <span part=\"icon\" class=\"icon\" innerHTML={DownloadIcon}></span>\n <span part=\"label\" class=\"label\">\n PDF\n </span>\n </a>\n </div>\n </div>\n {state.currentTouristicEvent.description_teaser && (\n <div>\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"description-teaser\" class=\"description-teaser\" innerHTML={state.currentTouristicEvent.description_teaser}></div>\n </div>\n )}\n <div part=\"divider\" class=\"divider\"></div>\n {state.currentTouristicEvent.practical_info && (\n <div part=\"description-container\" class=\"description-container\" ref={el => (this.descriptionRef = el)}>\n <div part=\"description-title\" class=\"description-title\">\n {translate[state.language].description}\n </div>\n <div part=\"description\" class=\"description\" innerHTML={state.currentTouristicEvent.description}></div>\n </div>\n )}\n {cities && cities.length > 0 && (\n <div part=\"cities-container\" class=\"cities-container\">\n <div part=\"cities-title\" class=\"cities-title\">\n {translate[state.language].city} :&nbsp;\n </div>\n <div part=\"cities\" class=\"cities\" innerHTML={cities.join(', ')}></div>\n </div>\n )}\n {state.currentTouristicEvent.practical_info && (\n <div>\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"useful-information-container\" class=\"useful-information-container\">\n <div part=\"useful-information-title\" class=\"useful-information-title\">\n {translate[state.language].usefulInformation} :&nbsp;\n </div>\n <div part=\"useful-information\" class=\"useful-information\" innerHTML={state.currentTouristicEvent.practical_info}></div>\n </div>\n </div>\n )}\n {(state.currentTouristicEvent.contact || state.currentTouristicEvent.email || state.currentTouristicEvent.website) && (\n <div>\n <div part=\"divider\" class=\"divider\"></div>\n <div part=\"contact-container\" class=\"contact-container\">\n <div part=\"contact-title\" class=\"contact-title\">\n {translate[state.language].contact} :&nbsp;\n </div>\n {state.currentTouristicEvent.contact && <div part=\"contact\" class=\"contact\" innerHTML={state.currentTouristicEvent.contact}></div>}\n {state.currentTouristicEvent.email && (\n <div part=\"email-container\" class=\"email-container\">\n <div part=\"email-title\" class=\"email-title\">\n {translate[state.language].email} :&nbsp;\n </div>\n <a href={'mailto:' + state.currentTouristicEvent.email} part=\"email\" class=\"email\" innerHTML={state.currentTouristicEvent.email}></a>\n </div>\n )}\n {state.currentTouristicEvent.website && (\n <div part=\"website-container\" class=\"website-container\">\n <div part=\"website-title\" class=\"website-title\">\n {translate[state.language].website} :&nbsp;\n </div>\n <a href={state.currentTouristicEvent.website} part=\"website\" class=\"website\" innerHTML={state.currentTouristicEvent.website}></a>\n </div>\n )}\n </div>\n </div>\n )}\n {this.grwApp && <div part=\"detail-bottom-space\" class=\"detail-bottom-space\"></div>}\n </div>\n )}\n </Host>\n );\n }\n}\n","import { Build, Component, h, Host, Prop } from '@stencil/core';\nimport { TouristicEvent } from 'components';\nimport { getAllDataInStore, getDataInStore } from 'services/grw-db.service';\nimport { getTouristicEvent } from 'services/touristic-events.service';\nimport state from 'store/store';\n\n@Component({\n tag: 'grw-touristic-event-provider',\n shadow: true,\n})\nexport class GrwTouristicEventProvider {\n @Prop() languages = 'fr';\n @Prop() api: string;\n @Prop() touristicEventId: number;\n @Prop() portals: string;\n\n controller = new AbortController();\n signal = this.controller.signal;\n init: RequestInit = { cache: Build.isDev ? 'force-cache' : 'default', signal: this.signal };\n\n connectedCallback() {\n if (!state.api) {\n state.api = this.api;\n state.languages = this.languages.split(',');\n state.language = state.languages[0];\n }\n this.handleTouristicEvent();\n }\n\n async handleTouristicEvent() {\n const touristicEventInStore: TouristicEvent = await getDataInStore('touristicEvents', this.touristicEventId);\n if (touristicEventInStore && touristicEventInStore.offline) {\n this.handleOfflineTouristicEvent(touristicEventInStore);\n } else {\n this.handleOnlineTouristicEvent();\n }\n }\n\n async handleOfflineTouristicEvent(touristicEvent: TouristicEvent) {\n if (!state.cities) {\n state.cities = await getAllDataInStore('cities');\n }\n if (!state.touristicEventTypes) {\n state.touristicEventTypes = await getAllDataInStore('touristicEventTypes');\n }\n state.currentTouristicEvent = touristicEvent;\n }\n\n handleOnlineTouristicEvent() {\n const requests = [];\n requests.push(!state.cities ? fetch(`${state.api}city/?language=${state.language}&fields=id,name&published=true&page_size=999`, this.init) : new Response('null'));\n requests.push(\n !state.touristicEventTypes\n ? fetch(\n `${state.api}touristicevent_type/?language=${state.language}${\n this.portals ? '&portals='.concat(this.portals) : ''\n }&published=true&fields=id,type,pictogram&page_size=999`,\n this.init,\n )\n : new Response('null'),\n );\n\n try {\n Promise.all([...requests, getTouristicEvent(state.api, state.language, this.touristicEventId, this.init)])\n .then(responses => Promise.all(responses.map(response => response.json())))\n .then(([cities, touristicEventTypes, touristicEvent]) => {\n state.networkError = false;\n if (cities) {\n state.cities = cities.results;\n }\n if (touristicEventTypes) {\n state.touristicEventTypes = touristicEventTypes.results;\n }\n state.currentTouristicEvent = touristicEvent;\n });\n } catch (error) {\n if (!(error.code === DOMException.ABORT_ERR)) {\n state.networkError = true;\n }\n }\n }\n\n disconnectedCallback() {\n this.controller.abort();\n state.networkError = false;\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"],"mappings":"kVAAA,MAAMA,EAAqB,03CAC3B,MAAAC,EAAeD,E,MCOFE,EAAe,M,8FAEL,S,qBACK,U,2BACM,U,6BACE,U,aAChB,I,CAElB,iBAAAC,GACEC,KAAKC,kBAAkBC,M,CAGzB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAO,CACL,gBAAiBP,KAAKQ,WACtB,qBAAsBR,KAAKS,gBAC3B,4BAA6BT,KAAKU,sBAClC,+BAAgCV,KAAKW,wBACrC,kBAAmBX,KAAKY,QAAU,GAAK,QAGzCR,EAAA,OAAAE,IAAA,2CAAKO,KAAK,kBAAkBC,MAAM,mBAChCV,EAAA,OAAAE,IAAA,2CAAKO,KAAK,gBAAgBC,MAAM,qBAC9BV,EAAA,OAAAE,IAAA,2CAAKO,KAAK,uBAAuBC,MAAM,4BACrCV,EAAA,UAAAE,IAAA,2CAAQO,KAAK,kBAAkBE,QAAS,IAAMf,KAAKD,oBAAqBe,MAAM,uBAC5EV,EAAA,QAAAE,IAAA,2CAAMO,KAAK,OAAOC,MAAM,OAAOE,UAAWC,MAG9Cb,EAAA,OAAAE,IAAA,2CAAKO,KAAK,gBAAgBC,MAAM,qBAC9BV,EAAA,QAAAE,IAAA,gD,4mCCvCd,MAAMY,EAAwB,o3DAC9B,MAAAC,EAAeD,E,MCcFE,EAAwB,M,+FAGA,K,0CACa,M,6DAEb,U,aA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