@geotrekce/geotrek-rando-widget 0.18.0 → 0.18.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 (206) hide show
  1. package/dist/cjs/grw-app.cjs.entry.js +5 -5
  2. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  3. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  4. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  5. package/dist/cjs/grw-common-button_27.cjs.entry.js +496 -374
  6. package/dist/cjs/grw-common-button_27.cjs.entry.js.br +0 -0
  7. package/dist/cjs/grw-common-button_27.cjs.entry.js.gz +0 -0
  8. package/dist/cjs/grw-common-button_27.cjs.entry.js.map +1 -1
  9. package/dist/cjs/grw-information-desk_3.cjs.entry.js +1 -1
  10. package/dist/cjs/grw-information-desk_3.cjs.entry.js.br +0 -0
  11. package/dist/cjs/grw-information-desk_3.cjs.entry.js.gz +0 -0
  12. package/dist/cjs/grw-poi_3.cjs.entry.js +58 -38
  13. package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-poi_3.cjs.entry.js.map +1 -1
  16. package/dist/cjs/{i18n-2df02bcf.js → i18n-736691e8.js} +5 -1
  17. package/dist/cjs/i18n-736691e8.js.br +0 -0
  18. package/dist/cjs/i18n-736691e8.js.gz +0 -0
  19. package/dist/cjs/i18n-736691e8.js.map +1 -0
  20. package/dist/collection/components/grw-app/grw-app.js +4 -4
  21. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  22. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  23. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  24. package/dist/collection/components/grw-common-button/grw-common-button.css +1 -0
  25. package/dist/collection/components/grw-common-button/grw-common-button.css.br +0 -0
  26. package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
  27. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js +104 -77
  28. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.br +0 -0
  29. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.gz +0 -0
  30. package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.map +1 -1
  31. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +185 -143
  32. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
  33. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
  34. package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.map +1 -1
  35. package/dist/collection/components/grw-poi-detail/grw-poi.js +31 -23
  36. package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
  37. package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
  38. package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
  39. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +13 -7
  40. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
  41. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
  42. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
  43. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +24 -16
  44. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  45. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  46. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
  47. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +13 -7
  48. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
  49. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
  50. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
  51. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +24 -16
  52. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  53. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  54. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
  55. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +157 -120
  56. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  57. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  58. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  59. package/dist/collection/i18n/i18n.js +4 -0
  60. package/dist/collection/i18n/i18n.js.br +0 -0
  61. package/dist/collection/i18n/i18n.js.gz +0 -0
  62. package/dist/collection/i18n/i18n.js.map +1 -1
  63. package/dist/collection/stories/App.js +2 -1
  64. package/dist/collection/stories/App.js.br +0 -0
  65. package/dist/collection/stories/App.js.gz +0 -0
  66. package/dist/collection/stories/App.stories.js +1 -0
  67. package/dist/collection/stories/App.stories.js.br +0 -0
  68. package/dist/collection/stories/App.stories.js.gz +0 -0
  69. package/dist/esm/grw-app.entry.js +5 -5
  70. package/dist/esm/grw-app.entry.js.br +0 -0
  71. package/dist/esm/grw-app.entry.js.gz +0 -0
  72. package/dist/esm/grw-app.entry.js.map +1 -1
  73. package/dist/esm/grw-common-button_27.entry.js +496 -374
  74. package/dist/esm/grw-common-button_27.entry.js.br +0 -0
  75. package/dist/esm/grw-common-button_27.entry.js.gz +0 -0
  76. package/dist/esm/grw-common-button_27.entry.js.map +1 -1
  77. package/dist/esm/grw-information-desk_3.entry.js +1 -1
  78. package/dist/esm/grw-information-desk_3.entry.js.br +0 -0
  79. package/dist/esm/grw-information-desk_3.entry.js.gz +0 -0
  80. package/dist/esm/grw-poi_3.entry.js +58 -38
  81. package/dist/esm/grw-poi_3.entry.js.br +0 -0
  82. package/dist/esm/grw-poi_3.entry.js.gz +0 -0
  83. package/dist/esm/grw-poi_3.entry.js.map +1 -1
  84. package/dist/esm/{i18n-9a7ac609.js → i18n-84192695.js} +5 -1
  85. package/dist/esm/i18n-84192695.js.br +0 -0
  86. package/dist/esm/i18n-84192695.js.gz +0 -0
  87. package/dist/esm/i18n-84192695.js.map +1 -0
  88. package/dist/esm-es5/grw-app.entry.js +1 -1
  89. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  90. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  91. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  92. package/dist/esm-es5/grw-common-button_27.entry.js +3 -3
  93. package/dist/esm-es5/grw-common-button_27.entry.js.br +0 -0
  94. package/dist/esm-es5/grw-common-button_27.entry.js.gz +0 -0
  95. package/dist/esm-es5/grw-common-button_27.entry.js.map +1 -1
  96. package/dist/esm-es5/grw-information-desk_3.entry.js +1 -1
  97. package/dist/esm-es5/grw-information-desk_3.entry.js.br +0 -0
  98. package/dist/esm-es5/grw-information-desk_3.entry.js.gz +0 -0
  99. package/dist/esm-es5/grw-poi_3.entry.js +1 -1
  100. package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
  101. package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
  102. package/dist/esm-es5/grw-poi_3.entry.js.map +1 -1
  103. package/dist/esm-es5/i18n-84192695.js +2 -0
  104. package/dist/esm-es5/i18n-84192695.js.br +0 -0
  105. package/dist/esm-es5/i18n-84192695.js.gz +0 -0
  106. package/dist/esm-es5/i18n-84192695.js.map +1 -0
  107. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  108. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  109. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  110. package/dist/geotrek-rando-widget/{p-989276bc.entry.js → p-2ed1025e.entry.js} +2 -2
  111. package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.br +0 -0
  112. package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.gz +0 -0
  113. package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js → p-3ea6b596.system.entry.js} +2 -2
  114. package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.br +0 -0
  115. package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.gz +0 -0
  116. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js +10 -0
  117. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.br +0 -0
  118. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.gz +0 -0
  119. package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.map +1 -0
  120. package/dist/geotrek-rando-widget/p-5d955904.system.js +2 -0
  121. package/dist/geotrek-rando-widget/p-5d955904.system.js.br +0 -0
  122. package/dist/geotrek-rando-widget/p-5d955904.system.js.gz +0 -0
  123. package/dist/geotrek-rando-widget/p-5d955904.system.js.map +1 -0
  124. package/dist/geotrek-rando-widget/p-6b64ae12.js +2 -0
  125. package/dist/geotrek-rando-widget/p-6b64ae12.js.br +0 -0
  126. package/dist/geotrek-rando-widget/p-6b64ae12.js.gz +0 -0
  127. package/dist/geotrek-rando-widget/p-6b64ae12.js.map +1 -0
  128. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js +2 -0
  129. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.br +0 -0
  130. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.gz +0 -0
  131. package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.map +1 -0
  132. package/dist/geotrek-rando-widget/p-775aaaa7.system.js +1 -1
  133. package/dist/geotrek-rando-widget/p-775aaaa7.system.js.br +0 -0
  134. package/dist/geotrek-rando-widget/p-775aaaa7.system.js.gz +0 -0
  135. package/dist/geotrek-rando-widget/{p-6ac9b3f1.entry.js → p-9d7b3f9a.entry.js} +2 -2
  136. package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.br +0 -0
  137. package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.gz +0 -0
  138. package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.map +1 -0
  139. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js +10 -0
  140. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.br +0 -0
  141. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.gz +0 -0
  142. package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.map +1 -0
  143. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js +2 -0
  144. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.br +0 -0
  145. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.gz +0 -0
  146. package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.map +1 -0
  147. package/dist/geotrek-rando-widget/{p-01061bf4.system.entry.js → p-f3a9a20f.system.entry.js} +2 -2
  148. package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.br +0 -0
  149. package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.gz +0 -0
  150. package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.map +1 -0
  151. package/dist/types/components/grw-outdoor-course-detail/grw-outdoor-course-detail.d.ts +3 -0
  152. package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +3 -0
  153. package/dist/types/components/grw-poi-detail/grw-poi.d.ts +2 -0
  154. package/dist/types/components/grw-touristic-content-card/grw-touristic-content-card.d.ts +2 -0
  155. package/dist/types/components/grw-touristic-content-detail/grw-touristic-content-detail.d.ts +2 -0
  156. package/dist/types/components/grw-touristic-event-card/grw-touristic-event-card.d.ts +2 -0
  157. package/dist/types/components/grw-touristic-event-detail/grw-touristic-event-detail.d.ts +2 -0
  158. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +1 -0
  159. package/dist/types/i18n/i18n.d.ts +2 -0
  160. package/package.json +1 -1
  161. package/dist/cjs/i18n-2df02bcf.js.br +0 -0
  162. package/dist/cjs/i18n-2df02bcf.js.gz +0 -0
  163. package/dist/cjs/i18n-2df02bcf.js.map +0 -1
  164. package/dist/esm/i18n-9a7ac609.js.br +0 -0
  165. package/dist/esm/i18n-9a7ac609.js.gz +0 -0
  166. package/dist/esm/i18n-9a7ac609.js.map +0 -1
  167. package/dist/esm-es5/i18n-9a7ac609.js +0 -2
  168. package/dist/esm-es5/i18n-9a7ac609.js.br +0 -0
  169. package/dist/esm-es5/i18n-9a7ac609.js.gz +0 -0
  170. package/dist/esm-es5/i18n-9a7ac609.js.map +0 -1
  171. package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.br +0 -0
  172. package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.gz +0 -0
  173. package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.map +0 -1
  174. package/dist/geotrek-rando-widget/p-105ea0c8.js +0 -2
  175. package/dist/geotrek-rando-widget/p-105ea0c8.js.br +0 -0
  176. package/dist/geotrek-rando-widget/p-105ea0c8.js.gz +0 -0
  177. package/dist/geotrek-rando-widget/p-105ea0c8.js.map +0 -1
  178. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js +0 -2
  179. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.br +0 -0
  180. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.gz +0 -0
  181. package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.map +0 -1
  182. package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.br +0 -0
  183. package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.gz +0 -0
  184. package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.map +0 -1
  185. package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.br +0 -0
  186. package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.gz +0 -0
  187. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js +0 -10
  188. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.br +0 -0
  189. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.gz +0 -0
  190. package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.map +0 -1
  191. package/dist/geotrek-rando-widget/p-989276bc.entry.js.br +0 -0
  192. package/dist/geotrek-rando-widget/p-989276bc.entry.js.gz +0 -0
  193. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js +0 -10
  194. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.br +0 -0
  195. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.gz +0 -0
  196. package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.map +0 -1
  197. package/dist/geotrek-rando-widget/p-b4942f58.system.js +0 -2
  198. package/dist/geotrek-rando-widget/p-b4942f58.system.js.br +0 -0
  199. package/dist/geotrek-rando-widget/p-b4942f58.system.js.gz +0 -0
  200. package/dist/geotrek-rando-widget/p-b4942f58.system.js.map +0 -1
  201. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js +0 -2
  202. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.br +0 -0
  203. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.gz +0 -0
  204. package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.map +0 -1
  205. /package/dist/geotrek-rando-widget/{p-989276bc.entry.js.map → p-2ed1025e.entry.js.map} +0 -0
  206. /package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js.map → p-3ea6b596.system.entry.js.map} +0 -0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2febcb90.js');
6
- const i18n = require('./i18n-2df02bcf.js');
6
+ const i18n = require('./i18n-736691e8.js');
7
7
  const utils = require('./utils-5eb791dc.js');
8
8
  const grwDb_service = require('./grw-db.service-8542603e.js');
9
9
  const treks_service = require('./treks.service-1e1a663e.js');
@@ -16,7 +16,7 @@ const RefreshIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox
16
16
 
17
17
  const FilterListIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>`;
18
18
 
19
- const grwCommonButtonCss = ".common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.common-button .common-button-icon{font-size:18px}";
19
+ const grwCommonButtonCss = ".common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;height:44px}.common-button .common-button-icon{font-size:18px}";
20
20
  const GrwCommonButtonStyle0 = grwCommonButtonCss;
21
21
 
22
22
  const GrwCommonButton = class {
@@ -5531,97 +5531,116 @@ const GrwOutdoorCourseDetail = class {
5531
5531
  this.currentOutdoorCourse = undefined;
5532
5532
  this.offline = false;
5533
5533
  }
5534
- componentDidLoad() {
5535
- this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
5536
- modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
5537
- navigation: {
5538
- prevEl: this.prevElImagesRef,
5539
- nextEl: this.nextElImagesRef,
5540
- },
5541
- pagination: { el: this.paginationElImagesRef },
5542
- allowTouchMove: false,
5543
- keyboard: false,
5544
- loop: true,
5545
- });
5546
- this.swiperImagesRef.onfullscreenchange = () => {
5547
- this.displayFullscreen = !this.displayFullscreen;
5548
- this.displayFullscreen ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
5549
- };
5550
- this.swiperTouristicContents = new pagination.Swiper(this.swiperTouristicContentsRef, {
5551
- modules: [freeMode, Mousewheel, Scrollbar],
5552
- slidesPerView: 1.5,
5553
- spaceBetween: 20,
5554
- grabCursor: true,
5555
- freeMode: true,
5556
- mousewheel: { forceToAxis: true },
5557
- scrollbar: {
5558
- draggable: true,
5559
- hide: false,
5560
- el: this.touristicContentsSwiperScrollbar,
5561
- },
5562
- breakpointsBase: 'container',
5563
- breakpoints: {
5564
- '540': {
5565
- slidesPerView: 2.5,
5534
+ handleSwipers() {
5535
+ if (this.swiperImagesRef && !this.swiperImages) {
5536
+ this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
5537
+ modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
5538
+ navigation: {
5539
+ prevEl: this.prevElImagesRef,
5540
+ nextEl: this.nextElImagesRef,
5566
5541
  },
5567
- },
5568
- loop: false,
5569
- });
5570
- this.swiperTouristicEvents = new pagination.Swiper(this.swiperTouristicEventsRef, {
5571
- modules: [freeMode, Mousewheel, Scrollbar],
5572
- slidesPerView: 1.5,
5573
- spaceBetween: 20,
5574
- grabCursor: true,
5575
- freeMode: true,
5576
- mousewheel: { forceToAxis: true },
5577
- scrollbar: {
5578
- draggable: true,
5579
- hide: false,
5580
- el: this.touristicEventsSwiperScrollbar,
5581
- },
5582
- breakpointsBase: 'container',
5583
- breakpoints: {
5584
- '540': {
5585
- slidesPerView: 2.5,
5542
+ pagination: { el: this.paginationElImagesRef },
5543
+ allowTouchMove: false,
5544
+ keyboard: false,
5545
+ loop: true,
5546
+ });
5547
+ this.swiperImagesRef.onfullscreenchange = () => {
5548
+ this.displayFullscreen = !this.displayFullscreen;
5549
+ this.displayFullscreen ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
5550
+ };
5551
+ }
5552
+ if (this.swiperTouristicContentsRef && !this.swiperTouristicContents) {
5553
+ this.swiperTouristicContents = new pagination.Swiper(this.swiperTouristicContentsRef, {
5554
+ modules: [freeMode, Mousewheel, Scrollbar],
5555
+ slidesPerView: 1.5,
5556
+ spaceBetween: 20,
5557
+ grabCursor: true,
5558
+ freeMode: true,
5559
+ mousewheel: { forceToAxis: true },
5560
+ scrollbar: {
5561
+ draggable: true,
5562
+ hide: false,
5563
+ el: this.touristicContentsSwiperScrollbar,
5586
5564
  },
5587
- },
5588
- loop: false,
5589
- });
5590
- this.swiperPois = new pagination.Swiper(this.swiperPoisRef, {
5591
- modules: [freeMode, Mousewheel, Scrollbar],
5592
- slidesPerView: 1.5,
5593
- spaceBetween: 20,
5594
- grabCursor: true,
5595
- freeMode: true,
5596
- mousewheel: { forceToAxis: true },
5597
- scrollbar: {
5598
- draggable: true,
5599
- hide: false,
5600
- el: this.poisSwiperScrollbar,
5601
- },
5602
- breakpointsBase: 'container',
5603
- breakpoints: {
5604
- '540': {
5605
- slidesPerView: 2.5,
5565
+ breakpointsBase: 'container',
5566
+ breakpoints: {
5567
+ '540': {
5568
+ slidesPerView: 2.5,
5569
+ },
5570
+ '1024': {
5571
+ slidesPerView: 4,
5572
+ },
5606
5573
  },
5607
- },
5608
- loop: false,
5609
- });
5610
- if (this.poiRef) {
5574
+ loop: false,
5575
+ });
5576
+ }
5577
+ if (this.swiperTouristicEventsRef && !this.swiperTouristicEvents) {
5578
+ this.swiperTouristicEvents = new pagination.Swiper(this.swiperTouristicEventsRef, {
5579
+ modules: [freeMode, Mousewheel, Scrollbar],
5580
+ slidesPerView: 1.5,
5581
+ spaceBetween: 20,
5582
+ grabCursor: true,
5583
+ freeMode: true,
5584
+ mousewheel: { forceToAxis: true },
5585
+ scrollbar: {
5586
+ draggable: true,
5587
+ hide: false,
5588
+ el: this.touristicEventsSwiperScrollbar,
5589
+ },
5590
+ breakpointsBase: 'container',
5591
+ breakpoints: {
5592
+ '540': {
5593
+ slidesPerView: 2.5,
5594
+ },
5595
+ '1024': {
5596
+ slidesPerView: 4,
5597
+ },
5598
+ },
5599
+ loop: false,
5600
+ });
5601
+ }
5602
+ if (this.swiperPoisRef && !this.swiperPois) {
5603
+ this.swiperPois = new pagination.Swiper(this.swiperPoisRef, {
5604
+ modules: [freeMode, Mousewheel, Scrollbar],
5605
+ slidesPerView: 1.5,
5606
+ spaceBetween: 20,
5607
+ grabCursor: true,
5608
+ freeMode: true,
5609
+ mousewheel: { forceToAxis: true },
5610
+ scrollbar: {
5611
+ draggable: true,
5612
+ hide: false,
5613
+ el: this.poisSwiperScrollbar,
5614
+ },
5615
+ breakpointsBase: 'container',
5616
+ breakpoints: {
5617
+ '540': {
5618
+ slidesPerView: 2.5,
5619
+ },
5620
+ '1024': {
5621
+ slidesPerView: 4,
5622
+ },
5623
+ },
5624
+ loop: false,
5625
+ });
5626
+ }
5627
+ }
5628
+ handleObservers() {
5629
+ if (this.poiRef && !this.poiObserver) {
5611
5630
  this.poiObserver = new IntersectionObserver(entries => {
5612
5631
  const isIntersecting = entries[0].isIntersecting;
5613
5632
  this.poiIsInViewport.emit(isIntersecting);
5614
5633
  }, { threshold: threshold$2 });
5615
5634
  this.poiObserver.observe(this.poiRef);
5616
5635
  }
5617
- if (this.touristicContentsRef) {
5636
+ if (this.touristicContentsRef && !this.touristicContentObserver) {
5618
5637
  this.touristicContentObserver = new IntersectionObserver(entries => {
5619
5638
  const isIntersecting = entries[0].isIntersecting;
5620
5639
  this.touristicContentsIsInViewport.emit(isIntersecting);
5621
5640
  }, { threshold: threshold$2 });
5622
5641
  this.touristicContentObserver.observe(this.touristicContentsRef);
5623
5642
  }
5624
- if (this.touristicEventsRef) {
5643
+ if (this.touristicEventsRef && !this.touristicEventObserver) {
5625
5644
  this.touristicEventObserver = new IntersectionObserver(entries => {
5626
5645
  const isIntersecting = entries[0].isIntersecting;
5627
5646
  this.touristicEventsIsInViewport.emit(isIntersecting);
@@ -5629,6 +5648,14 @@ const GrwOutdoorCourseDetail = class {
5629
5648
  this.touristicEventObserver.observe(this.touristicEventsRef);
5630
5649
  }
5631
5650
  }
5651
+ componentDidUpdate() {
5652
+ this.handleObservers();
5653
+ this.handleSwipers();
5654
+ }
5655
+ componentDidLoad() {
5656
+ this.handleObservers();
5657
+ this.handleSwipers();
5658
+ }
5632
5659
  async connectedCallback() {
5633
5660
  if (utils.state.currentOutdoorCourse) {
5634
5661
  this.currentOutdoorCourse = utils.state.currentOutdoorCourse;
@@ -5658,7 +5685,7 @@ const GrwOutdoorCourseDetail = class {
5658
5685
  const outdoorRatings = utils.state.outdoorRatings && this.currentOutdoorCourse && utils.state.outdoorRatings.filter(outdoorRating => this.currentOutdoorCourse.ratings.includes(outdoorRating.id));
5659
5686
  const currentOutdoorCoursesRatingsScales = outdoorRatings && [...new Set(outdoorRatings.map(outdoorRating => outdoorRating.scale))];
5660
5687
  const outdoorRatingsScales = currentOutdoorCoursesRatingsScales && utils.state.outdoorRatingsScale.filter(outdoorRatingsScale => currentOutdoorCoursesRatingsScales.includes(outdoorRatingsScale.id));
5661
- return (index.h(index.Host, { key: '0c53ba770f1205fa1cdfd6857985876e25c3af8b', style: {
5688
+ return (index.h(index.Host, { key: '16232f04af82f7e5899dfacc097434c45732690e', style: {
5662
5689
  '--font-family': this.fontFamily,
5663
5690
  '--color-primary-app': this.colorPrimaryApp,
5664
5691
  '--color-on-surface': this.colorOnSurface,
@@ -5922,178 +5949,43 @@ const GrwOutdoorSiteDetail = class {
5922
5949
  onDeletePress() {
5923
5950
  this.deleteOutdoorSite();
5924
5951
  }
5925
- componentDidLoad() {
5926
- this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
5927
- modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
5928
- navigation: {
5929
- prevEl: this.prevElImagesRef,
5930
- nextEl: this.nextElImagesRef,
5931
- },
5932
- pagination: { el: this.paginationElImagesRef },
5933
- allowTouchMove: false,
5934
- keyboard: false,
5935
- loop: true,
5936
- });
5937
- this.swiperImagesRef.onfullscreenchange = () => {
5938
- this.displayFullscreen = !this.displayFullscreen;
5939
- this.displayFullscreen ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
5940
- };
5941
- this.swiperRelatedOutdoorSites = new pagination.Swiper(this.swiperRelatedOutdoorSitesRef, {
5942
- modules: [freeMode, Mousewheel, Scrollbar],
5943
- slidesPerView: 1.5,
5944
- spaceBetween: 20,
5945
- grabCursor: true,
5946
- freeMode: true,
5947
- mousewheel: { forceToAxis: true },
5948
- scrollbar: {
5949
- draggable: true,
5950
- hide: false,
5951
- el: this.relatedOutdoorSitesSwiperScrollbar,
5952
- },
5953
- breakpointsBase: 'container',
5954
- breakpoints: {
5955
- '540': {
5956
- slidesPerView: 2.5,
5957
- },
5958
- },
5959
- loop: false,
5960
- });
5961
- this.swiperInformationDesks = new pagination.Swiper(this.swiperInformationDesksRef, {
5962
- modules: [freeMode, Mousewheel, Scrollbar],
5963
- slidesPerView: 1.5,
5964
- spaceBetween: 20,
5965
- grabCursor: true,
5966
- freeMode: true,
5967
- mousewheel: { forceToAxis: true },
5968
- scrollbar: {
5969
- draggable: true,
5970
- hide: false,
5971
- el: this.informationDesksContentsSwiperScrollbar,
5972
- },
5973
- breakpointsBase: 'container',
5974
- breakpoints: {
5975
- '540': {
5976
- slidesPerView: 2.5,
5977
- },
5978
- },
5979
- loop: false,
5980
- });
5981
- this.swiperRelatedOutdoorCourses = new pagination.Swiper(this.swiperRelatedOutdoorCoursesRef, {
5982
- modules: [freeMode, Mousewheel, Scrollbar],
5983
- slidesPerView: 1.5,
5984
- spaceBetween: 20,
5985
- grabCursor: true,
5986
- freeMode: true,
5987
- mousewheel: { forceToAxis: true },
5988
- scrollbar: {
5989
- draggable: true,
5990
- hide: false,
5991
- el: this.relatedOutdoorCoursesSwiperScrollbar,
5992
- },
5993
- breakpointsBase: 'container',
5994
- breakpoints: {
5995
- '540': {
5996
- slidesPerView: 2.5,
5997
- },
5998
- },
5999
- loop: false,
6000
- });
6001
- this.swiperTouristicContents = new pagination.Swiper(this.swiperTouristicContentsRef, {
6002
- modules: [freeMode, Mousewheel, Scrollbar],
6003
- slidesPerView: 1.5,
6004
- spaceBetween: 20,
6005
- grabCursor: true,
6006
- freeMode: true,
6007
- mousewheel: { forceToAxis: true },
6008
- scrollbar: {
6009
- draggable: true,
6010
- hide: false,
6011
- el: this.touristicContentsSwiperScrollbar,
6012
- },
6013
- breakpointsBase: 'container',
6014
- breakpoints: {
6015
- '540': {
6016
- slidesPerView: 2.5,
6017
- },
6018
- },
6019
- loop: false,
6020
- });
6021
- this.swiperTouristicEvents = new pagination.Swiper(this.swiperTouristicEventsRef, {
6022
- modules: [freeMode, Mousewheel, Scrollbar],
6023
- slidesPerView: 1.5,
6024
- spaceBetween: 20,
6025
- grabCursor: true,
6026
- freeMode: true,
6027
- mousewheel: { forceToAxis: true },
6028
- scrollbar: {
6029
- draggable: true,
6030
- hide: false,
6031
- el: this.touristicEventsSwiperScrollbar,
6032
- },
6033
- breakpointsBase: 'container',
6034
- breakpoints: {
6035
- '540': {
6036
- slidesPerView: 2.5,
6037
- },
6038
- },
6039
- loop: false,
6040
- });
6041
- this.swiperPois = new pagination.Swiper(this.swiperPoisRef, {
6042
- modules: [freeMode, Mousewheel, Scrollbar],
6043
- slidesPerView: 1.5,
6044
- spaceBetween: 20,
6045
- grabCursor: true,
6046
- freeMode: true,
6047
- mousewheel: { forceToAxis: true },
6048
- scrollbar: {
6049
- draggable: true,
6050
- hide: false,
6051
- el: this.poisSwiperScrollbar,
6052
- },
6053
- breakpointsBase: 'container',
6054
- breakpoints: {
6055
- '540': {
6056
- slidesPerView: 2.5,
6057
- },
6058
- },
6059
- loop: false,
6060
- });
6061
- if (this.informationPlacesRef) {
5952
+ handleObservers() {
5953
+ if (this.informationPlacesRef && !this.informationPlacesObserver) {
6062
5954
  this.informationPlacesObserver = new IntersectionObserver(entries => {
6063
5955
  const isIntersecting = entries[0].isIntersecting;
6064
5956
  this.informationPlacesIsInViewport.emit(isIntersecting);
6065
5957
  }, { threshold: threshold$1 });
6066
5958
  this.informationPlacesObserver.observe(this.informationPlacesRef);
6067
5959
  }
6068
- if (this.poiRef) {
5960
+ if (this.poiRef && !this.poiObserver) {
6069
5961
  this.poiObserver = new IntersectionObserver(entries => {
6070
5962
  const isIntersecting = entries[0].isIntersecting;
6071
5963
  this.poiIsInViewport.emit(isIntersecting);
6072
5964
  }, { threshold: threshold$1 });
6073
5965
  this.poiObserver.observe(this.poiRef);
6074
5966
  }
6075
- if (this.touristicContentsRef) {
5967
+ if (this.touristicContentsRef && !this.touristicContentObserver) {
6076
5968
  this.touristicContentObserver = new IntersectionObserver(entries => {
6077
5969
  const isIntersecting = entries[0].isIntersecting;
6078
5970
  this.touristicContentsIsInViewport.emit(isIntersecting);
6079
5971
  }, { threshold: threshold$1 });
6080
5972
  this.touristicContentObserver.observe(this.touristicContentsRef);
6081
5973
  }
6082
- if (this.touristicEventsRef) {
5974
+ if (this.touristicEventsRef && !this.touristicEventObserver) {
6083
5975
  this.touristicEventObserver = new IntersectionObserver(entries => {
6084
5976
  const isIntersecting = entries[0].isIntersecting;
6085
5977
  this.touristicEventsIsInViewport.emit(isIntersecting);
6086
5978
  }, { threshold: threshold$1 });
6087
5979
  this.touristicEventObserver.observe(this.touristicEventsRef);
6088
5980
  }
6089
- if (this.sitesRef) {
5981
+ if (this.sitesRef && !this.siteObserver) {
6090
5982
  this.siteObserver = new IntersectionObserver(entries => {
6091
5983
  const isIntersecting = entries[0].isIntersecting;
6092
5984
  this.sitesIsInViewport.emit(isIntersecting);
6093
5985
  }, { threshold: threshold$1 });
6094
5986
  this.siteObserver.observe(this.sitesRef);
6095
5987
  }
6096
- if (this.coursesRef) {
5988
+ if (this.coursesRef && !this.courseObserver) {
6097
5989
  this.courseObserver = new IntersectionObserver(entries => {
6098
5990
  const isIntersecting = entries[0].isIntersecting;
6099
5991
  this.coursesIsInViewport.emit(isIntersecting);
@@ -6101,6 +5993,183 @@ const GrwOutdoorSiteDetail = class {
6101
5993
  this.courseObserver.observe(this.coursesRef);
6102
5994
  }
6103
5995
  }
5996
+ handleSwipers() {
5997
+ if (this.swiperImagesRef && !this.swiperImages) {
5998
+ this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
5999
+ modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
6000
+ navigation: {
6001
+ prevEl: this.prevElImagesRef,
6002
+ nextEl: this.nextElImagesRef,
6003
+ },
6004
+ pagination: { el: this.paginationElImagesRef },
6005
+ allowTouchMove: false,
6006
+ keyboard: false,
6007
+ loop: true,
6008
+ });
6009
+ this.swiperImagesRef.onfullscreenchange = () => {
6010
+ this.displayFullscreen = !this.displayFullscreen;
6011
+ this.displayFullscreen ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
6012
+ };
6013
+ }
6014
+ if (this.swiperRelatedOutdoorSitesRef && !this.swiperRelatedOutdoorSites) {
6015
+ this.swiperRelatedOutdoorSites = new pagination.Swiper(this.swiperRelatedOutdoorSitesRef, {
6016
+ modules: [freeMode, Mousewheel, Scrollbar],
6017
+ slidesPerView: 1.5,
6018
+ spaceBetween: 20,
6019
+ grabCursor: true,
6020
+ freeMode: true,
6021
+ mousewheel: { forceToAxis: true },
6022
+ scrollbar: {
6023
+ draggable: true,
6024
+ hide: false,
6025
+ el: this.relatedOutdoorSitesSwiperScrollbar,
6026
+ },
6027
+ breakpointsBase: 'container',
6028
+ breakpoints: {
6029
+ '540': {
6030
+ slidesPerView: 2.5,
6031
+ },
6032
+ '1024': {
6033
+ slidesPerView: 4,
6034
+ },
6035
+ },
6036
+ loop: false,
6037
+ });
6038
+ }
6039
+ if (this.swiperInformationDesksRef && !this.swiperInformationDesks) {
6040
+ this.swiperInformationDesks = new pagination.Swiper(this.swiperInformationDesksRef, {
6041
+ modules: [freeMode, Mousewheel, Scrollbar],
6042
+ slidesPerView: 1.5,
6043
+ spaceBetween: 20,
6044
+ grabCursor: true,
6045
+ freeMode: true,
6046
+ mousewheel: { forceToAxis: true },
6047
+ scrollbar: {
6048
+ draggable: true,
6049
+ hide: false,
6050
+ el: this.informationDesksContentsSwiperScrollbar,
6051
+ },
6052
+ breakpointsBase: 'container',
6053
+ breakpoints: {
6054
+ '540': {
6055
+ slidesPerView: 2.5,
6056
+ },
6057
+ '1024': {
6058
+ slidesPerView: 4,
6059
+ },
6060
+ },
6061
+ loop: false,
6062
+ });
6063
+ }
6064
+ if (this.swiperRelatedOutdoorCoursesRef && !this.swiperRelatedOutdoorCourses) {
6065
+ this.swiperRelatedOutdoorCourses = new pagination.Swiper(this.swiperRelatedOutdoorCoursesRef, {
6066
+ modules: [freeMode, Mousewheel, Scrollbar],
6067
+ slidesPerView: 1.5,
6068
+ spaceBetween: 20,
6069
+ grabCursor: true,
6070
+ freeMode: true,
6071
+ mousewheel: { forceToAxis: true },
6072
+ scrollbar: {
6073
+ draggable: true,
6074
+ hide: false,
6075
+ el: this.relatedOutdoorCoursesSwiperScrollbar,
6076
+ },
6077
+ breakpointsBase: 'container',
6078
+ breakpoints: {
6079
+ '540': {
6080
+ slidesPerView: 2.5,
6081
+ },
6082
+ '1024': {
6083
+ slidesPerView: 4,
6084
+ },
6085
+ },
6086
+ loop: false,
6087
+ });
6088
+ }
6089
+ if (this.swiperTouristicContentsRef && !this.swiperTouristicContents) {
6090
+ this.swiperTouristicContents = new pagination.Swiper(this.swiperTouristicContentsRef, {
6091
+ modules: [freeMode, Mousewheel, Scrollbar],
6092
+ slidesPerView: 1.5,
6093
+ spaceBetween: 20,
6094
+ grabCursor: true,
6095
+ freeMode: true,
6096
+ mousewheel: { forceToAxis: true },
6097
+ scrollbar: {
6098
+ draggable: true,
6099
+ hide: false,
6100
+ el: this.touristicContentsSwiperScrollbar,
6101
+ },
6102
+ breakpointsBase: 'container',
6103
+ breakpoints: {
6104
+ '540': {
6105
+ slidesPerView: 2.5,
6106
+ },
6107
+ '1024': {
6108
+ slidesPerView: 4,
6109
+ },
6110
+ },
6111
+ loop: false,
6112
+ });
6113
+ }
6114
+ if (this.swiperTouristicEventsRef && !this.swiperTouristicEvents) {
6115
+ this.swiperTouristicEvents = new pagination.Swiper(this.swiperTouristicEventsRef, {
6116
+ modules: [freeMode, Mousewheel, Scrollbar],
6117
+ slidesPerView: 1.5,
6118
+ spaceBetween: 20,
6119
+ grabCursor: true,
6120
+ freeMode: true,
6121
+ mousewheel: { forceToAxis: true },
6122
+ scrollbar: {
6123
+ draggable: true,
6124
+ hide: false,
6125
+ el: this.touristicEventsSwiperScrollbar,
6126
+ },
6127
+ breakpointsBase: 'container',
6128
+ breakpoints: {
6129
+ '540': {
6130
+ slidesPerView: 2.5,
6131
+ },
6132
+ '1024': {
6133
+ slidesPerView: 4,
6134
+ },
6135
+ },
6136
+ loop: false,
6137
+ });
6138
+ }
6139
+ if (this.swiperPoisRef && !this.swiperPois) {
6140
+ this.swiperPois = new pagination.Swiper(this.swiperPoisRef, {
6141
+ modules: [freeMode, Mousewheel, Scrollbar],
6142
+ slidesPerView: 1.5,
6143
+ spaceBetween: 20,
6144
+ grabCursor: true,
6145
+ freeMode: true,
6146
+ mousewheel: { forceToAxis: true },
6147
+ scrollbar: {
6148
+ draggable: true,
6149
+ hide: false,
6150
+ el: this.poisSwiperScrollbar,
6151
+ },
6152
+ breakpointsBase: 'container',
6153
+ breakpoints: {
6154
+ '540': {
6155
+ slidesPerView: 2.5,
6156
+ },
6157
+ '1024': {
6158
+ slidesPerView: 4,
6159
+ },
6160
+ },
6161
+ loop: false,
6162
+ });
6163
+ }
6164
+ }
6165
+ componentDidUpdate() {
6166
+ this.handleObservers();
6167
+ this.handleSwipers();
6168
+ }
6169
+ componentDidLoad() {
6170
+ this.handleObservers();
6171
+ this.handleSwipers();
6172
+ }
6104
6173
  async connectedCallback() {
6105
6174
  if (utils.state.currentOutdoorSite) {
6106
6175
  this.sources = utils.state.sources.filter(source => utils.state.currentOutdoorSite.source.includes(source.id));
@@ -6313,7 +6382,7 @@ const GrwOutdoorSiteDetail = class {
6313
6382
  const outdoorRatings = utils.state.outdoorRatings && this.currentOutdoorSite && utils.state.outdoorRatings.filter(outdoorRating => this.currentOutdoorSite.ratings.includes(outdoorRating.id));
6314
6383
  const currentOutdoorSitesRatingsScales = outdoorRatings && [...new Set(outdoorRatings.map(outdoorRating => outdoorRating.scale))];
6315
6384
  const outdoorRatingsScales = currentOutdoorSitesRatingsScales && utils.state.outdoorRatingsScale.filter(outdoorRatingsScale => currentOutdoorSitesRatingsScales.includes(outdoorRatingsScale.id));
6316
- return (index.h(index.Host, { key: '7b8c60c1799700365a05f092953660c653320f94', style: {
6385
+ return (index.h(index.Host, { key: '315c1169d344c5c412149dedc3347fb7c5656534', style: {
6317
6386
  '--font-family': this.fontFamily,
6318
6387
  '--color-primary-app': this.colorPrimaryApp,
6319
6388
  '--color-on-surface': this.colorOnSurface,
@@ -6857,23 +6926,31 @@ const GrwTouristicContentDetail = class {
6857
6926
  this.colorBackground = '#fef7ff';
6858
6927
  this.isLargeView = false;
6859
6928
  }
6929
+ handleSwipers() {
6930
+ if (this.swiperImagesRef && !this.swiperImages) {
6931
+ this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
6932
+ modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
6933
+ navigation: {
6934
+ prevEl: this.prevElImagesRef,
6935
+ nextEl: this.nextElImagesRef,
6936
+ },
6937
+ pagination: { el: this.paginationElImagesRef },
6938
+ allowTouchMove: false,
6939
+ keyboard: false,
6940
+ loop: true,
6941
+ });
6942
+ this.swiperImagesRef.onfullscreenchange = () => {
6943
+ this.displayFullscreen = !this.displayFullscreen;
6944
+ this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
6945
+ };
6946
+ }
6947
+ }
6948
+ componentDidUpdate() {
6949
+ this.handleSwipers();
6950
+ }
6860
6951
  componentDidLoad() {
6861
- this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
6862
- modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
6863
- navigation: {
6864
- prevEl: this.prevElImagesRef,
6865
- nextEl: this.nextElImagesRef,
6866
- },
6867
- pagination: { el: this.paginationElImagesRef },
6868
- allowTouchMove: false,
6869
- keyboard: false,
6870
- loop: true,
6871
- });
6872
- this.swiperImagesRef.onfullscreenchange = () => {
6873
- this.displayFullscreen = !this.displayFullscreen;
6874
- this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
6875
- };
6876
6952
  this.offline = utils.state.currentTouristicContent.offline;
6953
+ this.handleSwipers();
6877
6954
  }
6878
6955
  handleFullscreen(close = false) {
6879
6956
  if (!close) {
@@ -6891,7 +6968,7 @@ const GrwTouristicContentDetail = class {
6891
6968
  utils.state.currentTouristicContent &&
6892
6969
  utils.state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === utils.state.currentTouristicContent.category);
6893
6970
  const cities = utils.state.currentTouristicContent && utils.state.currentTouristicContent.cities.map(currentCity => { var _a; return (_a = utils.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
6894
- return (index.h(index.Host, { key: '7750c701df76bba15232f1f4b0315d1f8ebb9055', style: {
6971
+ return (index.h(index.Host, { key: '341d76d558e5ea5d22099e949d79dd2d2c4b2471', style: {
6895
6972
  '--font-family': this.fontFamily,
6896
6973
  '--color-primary-app': this.colorPrimaryApp,
6897
6974
  '--color-on-surface': this.colorOnSurface,
@@ -7153,23 +7230,31 @@ const GrwTouristicEventDetail = class {
7153
7230
  this.colorBackground = '#fef7ff';
7154
7231
  this.isLargeView = false;
7155
7232
  }
7233
+ handleSwipers() {
7234
+ if (this.swiperImagesRef && !this.swiperImages) {
7235
+ this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
7236
+ modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
7237
+ navigation: {
7238
+ prevEl: this.prevElImagesRef,
7239
+ nextEl: this.nextElImagesRef,
7240
+ },
7241
+ pagination: { el: this.paginationElImagesRef },
7242
+ allowTouchMove: false,
7243
+ keyboard: false,
7244
+ loop: true,
7245
+ });
7246
+ this.swiperImagesRef.onfullscreenchange = () => {
7247
+ this.displayFullscreen = !this.displayFullscreen;
7248
+ this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
7249
+ };
7250
+ }
7251
+ }
7252
+ componentDidUpdate() {
7253
+ this.handleSwipers();
7254
+ }
7156
7255
  componentDidLoad() {
7157
- this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
7158
- modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
7159
- navigation: {
7160
- prevEl: this.prevElImagesRef,
7161
- nextEl: this.nextElImagesRef,
7162
- },
7163
- pagination: { el: this.paginationElImagesRef },
7164
- allowTouchMove: false,
7165
- keyboard: false,
7166
- loop: true,
7167
- });
7168
- this.swiperImagesRef.onfullscreenchange = () => {
7169
- this.displayFullscreen = !this.displayFullscreen;
7170
- this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
7171
- };
7172
7256
  this.offline = utils.state.currentTouristicEvent.offline;
7257
+ this.handleSwipers();
7173
7258
  }
7174
7259
  handleFullscreen(close = false) {
7175
7260
  if (!close) {
@@ -7187,7 +7272,7 @@ const GrwTouristicEventDetail = class {
7187
7272
  utils.state.currentTouristicEvent &&
7188
7273
  utils.state.touristicEventTypes.find(touristicEventCategory => touristicEventCategory.id === utils.state.currentTouristicEvent.type);
7189
7274
  const cities = utils.state.currentTouristicEvent && utils.state.currentTouristicEvent.cities.map(currentCity => { var _a; return (_a = utils.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
7190
- return (index.h(index.Host, { key: '3cf070c005eee9c2eda49378c33ef0fe6b00fe85', style: {
7275
+ return (index.h(index.Host, { key: '483376c95e9f180e35b0daf3545f5b106f384657', style: {
7191
7276
  '--font-family': this.fontFamily,
7192
7277
  '--color-primary-app': this.colorPrimaryApp,
7193
7278
  '--color-on-surface': this.colorOnSurface,
@@ -7551,6 +7636,154 @@ const GrwTrekDetail = class {
7551
7636
  }
7552
7637
  componentDidUpdate() {
7553
7638
  this.handleObservers();
7639
+ this.handleSwipers();
7640
+ }
7641
+ handleSwipers() {
7642
+ if (this.swiperImagesRef && !this.swiperImages) {
7643
+ this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
7644
+ modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
7645
+ navigation: {
7646
+ prevEl: this.prevElImagesRef,
7647
+ nextEl: this.nextElImagesRef,
7648
+ },
7649
+ pagination: { el: this.paginationElImagesRef },
7650
+ allowTouchMove: false,
7651
+ keyboard: false,
7652
+ loop: true,
7653
+ });
7654
+ if (this.swiperImagesRef) {
7655
+ this.swiperImagesRef.onfullscreenchange = () => {
7656
+ this.displayFullscreen = !this.displayFullscreen;
7657
+ this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
7658
+ };
7659
+ }
7660
+ }
7661
+ if (this.swiperStepRef && !this.swiperStep) {
7662
+ this.swiperStep = new pagination.Swiper(this.swiperStepRef, {
7663
+ modules: [freeMode, Mousewheel, Scrollbar],
7664
+ initialSlide: this.getCurrentStepIndex(),
7665
+ slidesPerView: 1.5,
7666
+ spaceBetween: 20,
7667
+ grabCursor: true,
7668
+ freeMode: true,
7669
+ mousewheel: { forceToAxis: true },
7670
+ scrollbar: {
7671
+ draggable: true,
7672
+ hide: false,
7673
+ el: this.stepSwiperScrollbar,
7674
+ },
7675
+ breakpointsBase: 'container',
7676
+ breakpoints: {
7677
+ '540': {
7678
+ slidesPerView: 2.5,
7679
+ },
7680
+ '1024': {
7681
+ slidesPerView: 4,
7682
+ },
7683
+ },
7684
+ loop: false,
7685
+ });
7686
+ }
7687
+ if (this.swiperPoisRef && !this.swiperPois) {
7688
+ this.swiperPois = new pagination.Swiper(this.swiperPoisRef, {
7689
+ modules: [freeMode, Mousewheel, Scrollbar],
7690
+ slidesPerView: 1.5,
7691
+ spaceBetween: 20,
7692
+ grabCursor: true,
7693
+ freeMode: true,
7694
+ mousewheel: { forceToAxis: true },
7695
+ scrollbar: {
7696
+ draggable: true,
7697
+ hide: false,
7698
+ el: this.poisSwiperScrollbar,
7699
+ },
7700
+ breakpointsBase: 'container',
7701
+ breakpoints: {
7702
+ '540': {
7703
+ slidesPerView: 2.5,
7704
+ },
7705
+ '1024': {
7706
+ slidesPerView: 4,
7707
+ },
7708
+ },
7709
+ loop: false,
7710
+ });
7711
+ }
7712
+ if (this.swiperInformationDesksRef && !this.swiperInformationDesks) {
7713
+ this.swiperInformationDesks = new pagination.Swiper(this.swiperInformationDesksRef, {
7714
+ modules: [freeMode, Mousewheel, Scrollbar],
7715
+ slidesPerView: 1.5,
7716
+ spaceBetween: 20,
7717
+ grabCursor: true,
7718
+ freeMode: true,
7719
+ mousewheel: { forceToAxis: true },
7720
+ scrollbar: {
7721
+ draggable: true,
7722
+ hide: false,
7723
+ el: this.informationDesksContentsSwiperScrollbar,
7724
+ },
7725
+ breakpointsBase: 'container',
7726
+ breakpoints: {
7727
+ '540': {
7728
+ slidesPerView: 2.5,
7729
+ },
7730
+ '1024': {
7731
+ slidesPerView: 4,
7732
+ },
7733
+ },
7734
+ loop: false,
7735
+ });
7736
+ }
7737
+ if (this.swiperTouristicContentsRef && !this.swiperTouristicContents) {
7738
+ this.swiperTouristicContents = new pagination.Swiper(this.swiperTouristicContentsRef, {
7739
+ modules: [freeMode, Mousewheel, Scrollbar],
7740
+ slidesPerView: 1.5,
7741
+ spaceBetween: 20,
7742
+ grabCursor: true,
7743
+ freeMode: true,
7744
+ mousewheel: { forceToAxis: true },
7745
+ scrollbar: {
7746
+ draggable: true,
7747
+ hide: false,
7748
+ el: this.touristicContentsSwiperScrollbar,
7749
+ },
7750
+ breakpointsBase: 'container',
7751
+ breakpoints: {
7752
+ '540': {
7753
+ slidesPerView: 2.5,
7754
+ },
7755
+ '1024': {
7756
+ slidesPerView: 4,
7757
+ },
7758
+ },
7759
+ loop: false,
7760
+ });
7761
+ }
7762
+ if (this.swiperTouristicEventsRef && !this.swiperTouristicEvents) {
7763
+ this.swiperTouristicEvents = new pagination.Swiper(this.swiperTouristicEventsRef, {
7764
+ modules: [freeMode, Mousewheel, Scrollbar],
7765
+ slidesPerView: 1.5,
7766
+ spaceBetween: 20,
7767
+ grabCursor: true,
7768
+ freeMode: true,
7769
+ mousewheel: { forceToAxis: true },
7770
+ scrollbar: {
7771
+ draggable: true,
7772
+ hide: false,
7773
+ el: this.touristicEventsSwiperScrollbar,
7774
+ },
7775
+ breakpointsBase: 'container',
7776
+ breakpoints: {
7777
+ '540': {
7778
+ slidesPerView: 2.5,
7779
+ },
7780
+ '1024': {
7781
+ slidesPerView: 4,
7782
+ },
7783
+ },
7784
+ loop: false,
7785
+ });
7786
+ }
7554
7787
  }
7555
7788
  handleObservers() {
7556
7789
  if (this.presentationRef && !this.presentationObserver) {
@@ -7649,125 +7882,8 @@ const GrwTrekDetail = class {
7649
7882
  }
7650
7883
  }
7651
7884
  componentDidLoad() {
7652
- this.swiperImages = new pagination.Swiper(this.swiperImagesRef, {
7653
- modules: [pagination.Navigation, pagination.Pagination, pagination.Keyboard, freeMode, Mousewheel],
7654
- navigation: {
7655
- prevEl: this.prevElImagesRef,
7656
- nextEl: this.nextElImagesRef,
7657
- },
7658
- pagination: { el: this.paginationElImagesRef },
7659
- allowTouchMove: false,
7660
- keyboard: false,
7661
- loop: true,
7662
- });
7663
- if (this.swiperImagesRef) {
7664
- this.swiperImagesRef.onfullscreenchange = () => {
7665
- this.displayFullscreen = !this.displayFullscreen;
7666
- this.displayFullscreen && !this.offline ? this.swiperImages.keyboard.enable() : this.swiperImages.keyboard.disable();
7667
- };
7668
- }
7669
- this.swiperStep = new pagination.Swiper(this.swiperStepRef, {
7670
- modules: [freeMode, Mousewheel, Scrollbar],
7671
- initialSlide: this.getCurrentStepIndex(),
7672
- slidesPerView: 1.5,
7673
- spaceBetween: 20,
7674
- grabCursor: true,
7675
- freeMode: true,
7676
- mousewheel: { forceToAxis: true },
7677
- scrollbar: {
7678
- draggable: true,
7679
- hide: false,
7680
- el: this.stepSwiperScrollbar,
7681
- },
7682
- breakpointsBase: 'container',
7683
- breakpoints: {
7684
- '540': {
7685
- slidesPerView: 2.5,
7686
- },
7687
- },
7688
- loop: false,
7689
- });
7690
- this.swiperPois = new pagination.Swiper(this.swiperPoisRef, {
7691
- modules: [freeMode, Mousewheel, Scrollbar],
7692
- slidesPerView: 1.5,
7693
- spaceBetween: 20,
7694
- grabCursor: true,
7695
- freeMode: true,
7696
- mousewheel: { forceToAxis: true },
7697
- scrollbar: {
7698
- draggable: true,
7699
- hide: false,
7700
- el: this.poisSwiperScrollbar,
7701
- },
7702
- breakpointsBase: 'container',
7703
- breakpoints: {
7704
- '540': {
7705
- slidesPerView: 2.5,
7706
- },
7707
- },
7708
- loop: false,
7709
- });
7710
- this.swiperInformationDesks = new pagination.Swiper(this.swiperInformationDesksRef, {
7711
- modules: [freeMode, Mousewheel, Scrollbar],
7712
- slidesPerView: 1.5,
7713
- spaceBetween: 20,
7714
- grabCursor: true,
7715
- freeMode: true,
7716
- mousewheel: { forceToAxis: true },
7717
- scrollbar: {
7718
- draggable: true,
7719
- hide: false,
7720
- el: this.informationDesksContentsSwiperScrollbar,
7721
- },
7722
- breakpointsBase: 'container',
7723
- breakpoints: {
7724
- '540': {
7725
- slidesPerView: 2.5,
7726
- },
7727
- },
7728
- loop: false,
7729
- });
7730
- this.swiperTouristicContents = new pagination.Swiper(this.swiperTouristicContentsRef, {
7731
- modules: [freeMode, Mousewheel, Scrollbar],
7732
- slidesPerView: 1.5,
7733
- spaceBetween: 20,
7734
- grabCursor: true,
7735
- freeMode: true,
7736
- mousewheel: { forceToAxis: true },
7737
- scrollbar: {
7738
- draggable: true,
7739
- hide: false,
7740
- el: this.touristicContentsSwiperScrollbar,
7741
- },
7742
- breakpointsBase: 'container',
7743
- breakpoints: {
7744
- '540': {
7745
- slidesPerView: 2.5,
7746
- },
7747
- },
7748
- loop: false,
7749
- });
7750
- this.swiperTouristicEvents = new pagination.Swiper(this.swiperTouristicEventsRef, {
7751
- modules: [freeMode, Mousewheel, Scrollbar],
7752
- slidesPerView: 1.5,
7753
- spaceBetween: 20,
7754
- grabCursor: true,
7755
- freeMode: true,
7756
- mousewheel: { forceToAxis: true },
7757
- scrollbar: {
7758
- draggable: true,
7759
- hide: false,
7760
- el: this.touristicEventsSwiperScrollbar,
7761
- },
7762
- breakpointsBase: 'container',
7763
- breakpoints: {
7764
- '540': {
7765
- slidesPerView: 2.5,
7766
- },
7767
- },
7768
- loop: false,
7769
- });
7770
7885
  this.handleObservers();
7886
+ this.handleSwipers();
7771
7887
  }
7772
7888
  async connectedCallback() {
7773
7889
  if (utils.state.currentTrek) {
@@ -7876,7 +7992,13 @@ const GrwTrekDetail = class {
7876
7992
  }
7877
7993
  }
7878
7994
  handleScrollTo(element) {
7879
- this.trekDetailContainerRef.scrollTo({ top: element.offsetTop - 64 });
7995
+ const scrollbarFromElement = this.trekDetailContainerRef.scrollHeight > this.trekDetailContainerRef.clientHeight;
7996
+ if (scrollbarFromElement) {
7997
+ this.trekDetailContainerRef.scrollTo({ top: element.offsetTop - 64 });
7998
+ }
7999
+ else {
8000
+ window.scrollTo({ top: element.offsetTop - 64 });
8001
+ }
7880
8002
  }
7881
8003
  getCurrentStepIndex() {
7882
8004
  return utils.state.currentTrekSteps ? utils.state.currentTrekSteps.findIndex(step => step.id === this.currentTrek.id) : 0;
@@ -8097,7 +8219,7 @@ const GrwTrekDetail = class {
8097
8219
  render() {
8098
8220
  var _a, _b, _c, _d, _e;
8099
8221
  const defaultImageSrc = index.getAssetPath(`${''}assets/default-image.svg`);
8100
- return (index.h(index.Host, { key: 'd697ece2420dfd2317a8b56f97918475cced290d', style: {
8222
+ return (index.h(index.Host, { key: '829dcf5bde01fa8abaacbe3677da486a5f6cb7ee', style: {
8101
8223
  '--font-family': this.fontFamily,
8102
8224
  '--color-primary-app': this.colorPrimaryApp,
8103
8225
  '--color-on-surface': this.colorOnSurface,