@geotrekce/geotrek-rando-widget 0.5.0 → 0.5.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 (102) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  3. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  4. package/dist/cjs/grw-app_28.cjs.entry.js +89 -71
  5. package/dist/cjs/grw-app_28.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app_28.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app_28.cjs.entry.js.map +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js.br +0 -0
  10. package/dist/cjs/loader.cjs.js.gz +0 -0
  11. package/dist/collection/components/grw-common-button/grw-common-button.css +2 -2
  12. package/dist/collection/components/grw-common-button/grw-common-button.css.br +0 -0
  13. package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
  14. package/dist/collection/components/grw-filter/grw-filter.css +2 -2
  15. package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
  16. package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
  17. package/dist/collection/components/grw-filters/grw-filters.css +3 -3
  18. package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
  19. package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
  20. package/dist/collection/components/grw-information-desk/grw-information-desk.css +1 -1
  21. package/dist/collection/components/grw-information-desk/grw-information-desk.css.br +0 -0
  22. package/dist/collection/components/grw-information-desk/grw-information-desk.css.gz +0 -0
  23. package/dist/collection/components/grw-information-desk/grw-information-desk.js +9 -2
  24. package/dist/collection/components/grw-information-desk/grw-information-desk.js.br +0 -0
  25. package/dist/collection/components/grw-information-desk/grw-information-desk.js.gz +0 -0
  26. package/dist/collection/components/grw-information-desk/grw-information-desk.js.map +1 -1
  27. package/dist/collection/components/grw-poi-detail/grw-poi.js +5 -1
  28. package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
  29. package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
  30. package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
  31. package/dist/collection/components/grw-search/grw-search.css +11 -3
  32. package/dist/collection/components/grw-search/grw-search.css.br +0 -0
  33. package/dist/collection/components/grw-search/grw-search.css.gz +0 -0
  34. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.css +2 -2
  35. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.css.br +0 -0
  36. package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.css.gz +0 -0
  37. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css +2 -2
  38. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.br +0 -0
  39. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.gz +0 -0
  40. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +0 -72
  41. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  42. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  43. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +68 -62
  44. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  45. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  46. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  47. package/dist/collection/i18n/i18n.js +6 -0
  48. package/dist/collection/i18n/i18n.js.br +0 -0
  49. package/dist/collection/i18n/i18n.js.gz +0 -0
  50. package/dist/collection/i18n/i18n.js.map +1 -1
  51. package/dist/collection/types/types.js.map +1 -1
  52. package/dist/esm/geotrek-rando-widget.js +1 -1
  53. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  54. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  55. package/dist/esm/grw-app_28.entry.js +89 -71
  56. package/dist/esm/grw-app_28.entry.js.br +0 -0
  57. package/dist/esm/grw-app_28.entry.js.gz +0 -0
  58. package/dist/esm/grw-app_28.entry.js.map +1 -1
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/loader.js.br +0 -0
  61. package/dist/esm/loader.js.gz +0 -0
  62. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  63. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  64. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  65. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  66. package/dist/esm-es5/grw-app_28.entry.js +4 -4
  67. package/dist/esm-es5/grw-app_28.entry.js.br +0 -0
  68. package/dist/esm-es5/grw-app_28.entry.js.gz +0 -0
  69. package/dist/esm-es5/grw-app_28.entry.js.map +1 -1
  70. package/dist/esm-es5/loader.js +1 -1
  71. package/dist/esm-es5/loader.js.br +0 -0
  72. package/dist/esm-es5/loader.js.gz +0 -0
  73. package/dist/esm-es5/loader.js.map +1 -1
  74. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  75. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  76. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  77. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  78. package/dist/geotrek-rando-widget/{p-772a2e24.entry.js → p-37932796.entry.js} +5 -5
  79. package/dist/geotrek-rando-widget/p-37932796.entry.js.br +0 -0
  80. package/dist/geotrek-rando-widget/p-37932796.entry.js.gz +0 -0
  81. package/dist/geotrek-rando-widget/p-37932796.entry.js.map +1 -0
  82. package/dist/geotrek-rando-widget/{p-cae9163d.system.entry.js → p-46c11f88.system.entry.js} +4 -4
  83. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.br +0 -0
  84. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.gz +0 -0
  85. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.map +1 -0
  86. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js +1 -1
  87. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.br +0 -0
  88. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.gz +0 -0
  89. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.map +1 -1
  90. package/dist/types/components/grw-information-desk/grw-information-desk.d.ts +3 -0
  91. package/dist/types/components/grw-poi-detail/grw-poi.d.ts +2 -0
  92. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +28 -12
  93. package/dist/types/components.d.ts +1 -1
  94. package/dist/types/i18n/i18n.d.ts +3 -0
  95. package/dist/types/types/types.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/dist/geotrek-rando-widget/p-772a2e24.entry.js.br +0 -0
  98. package/dist/geotrek-rando-widget/p-772a2e24.entry.js.gz +0 -0
  99. package/dist/geotrek-rando-widget/p-772a2e24.entry.js.map +0 -1
  100. package/dist/geotrek-rando-widget/p-cae9163d.system.entry.js.br +0 -0
  101. package/dist/geotrek-rando-widget/p-cae9163d.system.entry.js.gz +0 -0
  102. package/dist/geotrek-rando-widget/p-cae9163d.system.entry.js.map +0 -1
@@ -3,50 +3,51 @@ import Swiper, { Navigation, Pagination, Keyboard, FreeMode, Mousewheel } from '
3
3
  import { translate } from 'i18n/i18n';
4
4
  import state, { onChange, reset } from 'store/store';
5
5
  import { formatDuration, formatLength, formatAscent } from 'utils/utils';
6
+ const threshold = 1;
6
7
  const presentation = {
7
8
  visible: true,
8
- width: 120,
9
9
  indicator: false,
10
+ ref: 'presentationOptionRef',
10
11
  };
11
12
  const steps = {
12
13
  visible: false,
13
- width: 80,
14
14
  indicator: false,
15
+ ref: 'stepsOptionRef',
15
16
  };
16
17
  const description = {
17
18
  visible: false,
18
- width: 120,
19
19
  indicator: false,
20
+ ref: 'descriptionOptionRef',
20
21
  };
21
22
  const recommendations = {
22
23
  visible: false,
23
- width: 190,
24
24
  indicator: false,
25
+ ref: 'recommendationsOptionRef',
25
26
  };
26
27
  const sensitiveArea = {
27
28
  visible: false,
28
- width: 160,
29
29
  indicator: false,
30
+ ref: 'sensitiveAreaOptionRef',
30
31
  };
31
32
  const informationPlaces = {
32
33
  visible: false,
33
- width: 200,
34
34
  indicator: false,
35
+ ref: 'informationPlacesOptionRef',
35
36
  };
36
37
  const pois = {
37
38
  visible: false,
38
- width: 120,
39
39
  indicator: false,
40
+ ref: 'poisOptionRef',
40
41
  };
41
42
  const touristicContents = {
42
43
  visible: false,
43
- width: 120,
44
44
  indicator: false,
45
+ ref: 'touristicContentsOptionRef',
45
46
  };
46
47
  const touristicEvents = {
47
48
  visible: false,
48
- width: 120,
49
49
  indicator: false,
50
+ ref: 'touristicEventsOptionRef',
50
51
  };
51
52
  const options = {
52
53
  presentation,
@@ -61,6 +62,7 @@ const options = {
61
62
  };
62
63
  export class GrwTrekDetail {
63
64
  constructor() {
65
+ this.indicatorSelectedTrekOption = { translateX: null, width: null, backgroundSize: null, ref: null };
64
66
  this.currentTrek = undefined;
65
67
  this.difficulty = undefined;
66
68
  this.route = undefined;
@@ -175,96 +177,87 @@ export class GrwTrekDetail {
175
177
  if (this.presentationRef) {
176
178
  const presentationObserver = new IntersectionObserver(entries => {
177
179
  const isIntersecting = entries[0].isIntersecting;
178
- if (isIntersecting) {
179
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { presentation: Object.assign(Object.assign({}, this.defaultOptions.presentation), { indicator: isIntersecting }) });
180
- }
181
- });
180
+ this.options = Object.assign(Object.assign({}, this.options), { presentation: Object.assign(Object.assign({}, this.defaultOptions.presentation), { indicator: isIntersecting }) });
181
+ this.handleIndicatorSelectedTrekOption();
182
+ }, { threshold });
182
183
  presentationObserver.observe(this.presentationRef);
183
184
  }
184
185
  if (this.stepsRef) {
185
186
  const stepsObserver = new IntersectionObserver(entries => {
186
187
  const isIntersecting = entries[0].isIntersecting;
187
188
  this.stepsIsInViewport.emit(isIntersecting);
188
- if (isIntersecting) {
189
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { steps: Object.assign(Object.assign({}, this.defaultOptions.steps), { indicator: isIntersecting }) });
190
- }
191
- });
189
+ this.options = Object.assign(Object.assign({}, this.options), { steps: Object.assign(Object.assign({}, this.defaultOptions.steps), { indicator: isIntersecting }) });
190
+ this.handleIndicatorSelectedTrekOption();
191
+ }, { threshold });
192
192
  stepsObserver.observe(this.stepsRef);
193
193
  }
194
194
  if (this.descriptionRef) {
195
195
  const descriptionObserver = new IntersectionObserver(entries => {
196
196
  const isIntersecting = entries[0].isIntersecting;
197
197
  this.descriptionIsInViewport.emit(isIntersecting);
198
- if (isIntersecting) {
199
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { description: Object.assign(Object.assign({}, this.defaultOptions.description), { indicator: isIntersecting }) });
200
- }
201
- });
198
+ this.options = Object.assign(Object.assign({}, this.options), { description: Object.assign(Object.assign({}, this.defaultOptions.description), { indicator: isIntersecting }) });
199
+ this.handleIndicatorSelectedTrekOption();
200
+ }, { threshold });
202
201
  descriptionObserver.observe(this.descriptionRef);
203
202
  }
204
203
  if (this.recommendationRef) {
205
204
  const recommendationsObserver = new IntersectionObserver(entries => {
206
205
  const isIntersecting = entries[0].isIntersecting;
207
- if (isIntersecting) {
208
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { recommendations: Object.assign(Object.assign({}, this.defaultOptions.recommendations), { indicator: isIntersecting }) });
209
- }
210
- });
206
+ this.options = Object.assign(Object.assign({}, this.options), { recommendations: Object.assign(Object.assign({}, this.defaultOptions.recommendations), { indicator: isIntersecting }) });
207
+ this.handleIndicatorSelectedTrekOption();
208
+ }, { threshold });
211
209
  recommendationsObserver.observe(this.recommendationRef);
212
210
  }
213
211
  if (this.parkingRef) {
214
212
  const parkingObserver = new IntersectionObserver(entries => {
215
213
  const isIntersecting = entries[0].isIntersecting;
216
214
  this.parkingIsInViewport.emit(isIntersecting);
217
- });
215
+ }, { threshold });
218
216
  parkingObserver.observe(this.parkingRef);
219
217
  }
220
218
  if (this.sensitiveAreaRef) {
221
219
  const sensitiveAreaRefObserver = new IntersectionObserver(entries => {
222
220
  const isIntersecting = entries[0].isIntersecting;
223
221
  this.sensitiveAreaIsInViewport.emit(isIntersecting);
224
- if (isIntersecting) {
225
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { sensitiveArea: Object.assign(Object.assign({}, this.defaultOptions.sensitiveArea), { indicator: isIntersecting }) });
226
- }
227
- });
222
+ this.options = Object.assign(Object.assign({}, this.options), { sensitiveArea: Object.assign(Object.assign({}, this.defaultOptions.sensitiveArea), { indicator: isIntersecting }) });
223
+ this.handleIndicatorSelectedTrekOption();
224
+ }, { threshold });
228
225
  sensitiveAreaRefObserver.observe(this.sensitiveAreaRef);
229
226
  }
230
- if (this.informationDeskRef) {
231
- const informationDeskObserver = new IntersectionObserver(entries => {
227
+ if (this.informationPlacesRef) {
228
+ const informationPlacesObserver = new IntersectionObserver(entries => {
232
229
  const isIntersecting = entries[0].isIntersecting;
233
- this.informationDeskIsInViewport.emit(isIntersecting);
234
- if (isIntersecting) {
235
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { informationPlaces: Object.assign(Object.assign({}, this.defaultOptions.informationPlaces), { indicator: isIntersecting }) });
236
- }
237
- });
238
- informationDeskObserver.observe(this.informationDeskRef);
230
+ this.informationPlacesIsInViewport.emit(isIntersecting);
231
+ this.options = Object.assign(Object.assign({}, this.options), { informationPlaces: Object.assign(Object.assign({}, this.defaultOptions.informationPlaces), { indicator: isIntersecting }) });
232
+ this.handleIndicatorSelectedTrekOption();
233
+ }, { threshold });
234
+ informationPlacesObserver.observe(this.informationPlacesRef);
239
235
  }
240
236
  if (this.poiRef) {
241
237
  const poiObserver = new IntersectionObserver(entries => {
242
238
  const isIntersecting = entries[0].isIntersecting;
243
239
  this.poiIsInViewport.emit(isIntersecting);
244
- if (isIntersecting) {
245
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { pois: Object.assign(Object.assign({}, this.defaultOptions.pois), { indicator: isIntersecting }) });
246
- }
247
- });
240
+ this.options = Object.assign(Object.assign({}, this.options), { pois: Object.assign(Object.assign({}, this.defaultOptions.pois), { indicator: isIntersecting }) });
241
+ this.handleIndicatorSelectedTrekOption();
242
+ }, { threshold });
248
243
  poiObserver.observe(this.poiRef);
249
244
  }
250
245
  if (this.touristicContentsRef) {
251
246
  const touristicContentObserver = new IntersectionObserver(entries => {
252
247
  const isIntersecting = entries[0].isIntersecting;
253
248
  this.touristicContentsIsInViewport.emit(isIntersecting);
254
- if (isIntersecting) {
255
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { touristicContents: Object.assign(Object.assign({}, this.defaultOptions.touristicContents), { indicator: isIntersecting }) });
256
- }
257
- });
249
+ this.options = Object.assign(Object.assign({}, this.options), { touristicContents: Object.assign(Object.assign({}, this.defaultOptions.touristicContents), { indicator: isIntersecting }) });
250
+ this.handleIndicatorSelectedTrekOption();
251
+ }, { threshold });
258
252
  touristicContentObserver.observe(this.touristicContentsRef);
259
253
  }
260
254
  if (this.touristicEventsRef) {
261
255
  const touristicEventObserver = new IntersectionObserver(entries => {
262
256
  const isIntersecting = entries[0].isIntersecting;
263
257
  this.touristicEventsIsInViewport.emit(isIntersecting);
264
- if (isIntersecting) {
265
- this.options = Object.assign(Object.assign({}, this.defaultOptions), { touristicEvents: Object.assign(Object.assign({}, this.defaultOptions.touristicEvents), { indicator: isIntersecting }) });
266
- }
267
- });
258
+ this.options = Object.assign(Object.assign({}, this.options), { touristicEvents: Object.assign(Object.assign({}, this.defaultOptions.touristicEvents), { indicator: isIntersecting }) });
259
+ this.handleIndicatorSelectedTrekOption();
260
+ }, { threshold });
268
261
  touristicEventObserver.observe(this.touristicContentsRef);
269
262
  }
270
263
  }
@@ -321,9 +314,10 @@ export class GrwTrekDetail {
321
314
  }
322
315
  }
323
316
  handleIndicatorSelectedTrekOption() {
324
- let previousVisibleOptions = 0;
325
317
  let currentOption;
318
+ let previousVisibleOptions = 0;
326
319
  let previousWidthOptions = 0;
320
+ let elementWidth = 0;
327
321
  const options = Object.values(this.options);
328
322
  let index = 0;
329
323
  while (!currentOption && index < options.length) {
@@ -333,15 +327,23 @@ export class GrwTrekDetail {
333
327
  else {
334
328
  if (options[index].visible) {
335
329
  previousVisibleOptions += 1;
336
- previousWidthOptions += options[index].width;
330
+ previousWidthOptions += this[options[index].ref].clientWidth;
337
331
  }
338
332
  }
339
333
  index++;
340
334
  }
341
- return `${previousWidthOptions + 16 * previousVisibleOptions - currentOption.width / 2}px`;
335
+ if (currentOption && this[currentOption.ref]) {
336
+ elementWidth = this[currentOption.ref].clientWidth;
337
+ this.indicatorSelectedTrekOption = {
338
+ translateX: `${previousWidthOptions + 16 * previousVisibleOptions - elementWidth / 2}px`,
339
+ width: `${elementWidth * 2}px`,
340
+ backgroundSize: `${elementWidth}px 100%`,
341
+ ref: currentOption.ref,
342
+ };
343
+ }
342
344
  }
343
345
  handleScrollTo(element) {
344
- this.trekDetailContainerRef.scrollTo({ top: element.offsetTop - 48 });
346
+ this.trekDetailContainerRef.scrollTo({ top: element.offsetTop - 64 });
345
347
  }
346
348
  render() {
347
349
  var _a, _b, _c, _d, _e, _f, _g;
@@ -355,7 +357,11 @@ export class GrwTrekDetail {
355
357
  '--color-on-secondary-container': this.colorOnSecondaryContainer,
356
358
  '--color-background': this.colorBackground,
357
359
  '--detail-bottom-space-height': this.isLargeView ? '8px' : '104px',
358
- } }, this.currentTrek && (h("div", { class: "trek-options" }, h("a", { onClick: () => this.handleScrollTo(this.presentationRef), class: `presentation trek-option${this.options.presentation.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.presentation), this.options.steps.visible && (h("a", { onClick: () => this.handleScrollTo(this.stepsRef), class: `steps trek-option${this.options.steps.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.steps)), this.options.description.visible && (h("a", { onClick: () => this.handleScrollTo(this.descriptionRef), class: `description trek-option${this.options.description.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.description)), this.options.recommendations.visible && (h("a", { onClick: () => this.handleScrollTo(this.recommendationRef), class: `recommendations trek-option${this.options.recommendations.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.recommendations)), this.options.sensitiveArea.visible && (h("a", { onClick: () => this.handleScrollTo(this.sensitiveAreaRef), class: `sensitive-areas trek-option${this.options.sensitiveArea.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.environmentalSensitiveAreas)), this.options.informationPlaces.visible && (h("a", { onClick: () => this.handleScrollTo(this.informationDeskRef), class: `information-places trek-option${this.options.informationPlaces.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.informationPlaces)), this.options.pois.visible && (h("a", { onClick: () => this.handleScrollTo(this.poiRef), class: `pois trek-option${this.options.pois.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.pois)), this.options.touristicContents.visible && (h("a", { onClick: () => this.handleScrollTo(this.touristicContentsRef), class: `touristic-content trek-option${this.options.touristicContents.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.touristicContents)), this.options.touristicEvents.visible && (h("a", { onClick: () => this.handleScrollTo(this.touristicEventsRef), class: `touristic-event trek-option${this.options.touristicEvents.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.touristicEvents)), h("span", { class: "indicator-selected-trek-option", style: { transform: `translateX(${this.handleIndicatorSelectedTrekOption()})` } }))), this.currentTrek && (h("div", { class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, h("div", { class: "swiper-wrapper" }, this.currentTrek.attachments
360
+ } }, this.currentTrek && (h("div", { class: "trek-options" }, h("a", { ref: el => (this.presentationOptionRef = el), onClick: () => this.handleScrollTo(this.presentationRef), class: `presentation trek-option${this.indicatorSelectedTrekOption.ref === 'presentationOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.presentation), this.options.steps.visible && (h("a", { ref: el => (this.stepsOptionRef = el), onClick: () => this.handleScrollTo(this.stepsRef), class: `steps trek-option${this.options.steps.indicator ? ' selected-trek-option' : ''}` }, translate[state.language].options.steps)), this.options.description.visible && (h("a", { ref: el => (this.descriptionOptionRef = el), onClick: () => this.handleScrollTo(this.descriptionRef), class: `description trek-option${this.indicatorSelectedTrekOption.ref === 'descriptionOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.description)), this.options.recommendations.visible && (h("a", { ref: el => (this.recommendationsOptionRef = el), onClick: () => this.handleScrollTo(this.recommendationRef), class: `recommendations trek-option${this.indicatorSelectedTrekOption.ref === 'recommendationsOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.recommendations)), this.options.sensitiveArea.visible && (h("a", { ref: el => (this.sensitiveAreaOptionRef = el), onClick: () => this.handleScrollTo(this.sensitiveAreaRef), class: `sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref === 'sensitiveAreaOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.environmentalSensitiveAreas)), this.options.informationPlaces.visible && (h("a", { ref: el => (this.informationPlacesOptionRef = el), onClick: () => this.handleScrollTo(this.informationPlacesRef), class: `information-places trek-option${this.indicatorSelectedTrekOption.ref === 'informationPlacesOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.informationPlaces)), this.options.pois.visible && (h("a", { ref: el => (this.poisOptionRef = el), onClick: () => this.handleScrollTo(this.poiRef), class: `pois trek-option${this.indicatorSelectedTrekOption.ref === 'poisOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.pois)), this.options.touristicContents.visible && (h("a", { ref: el => (this.touristicContentsOptionRef = el), onClick: () => this.handleScrollTo(this.touristicContentsRef), class: `touristic-content trek-option${this.indicatorSelectedTrekOption.ref === 'touristicContentsOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.touristicContents)), this.options.touristicEvents.visible && (h("a", { ref: el => (this.touristicEventsOptionRef = el), onClick: () => this.handleScrollTo(this.touristicEventsRef), class: `touristic-event trek-option${this.indicatorSelectedTrekOption.ref === 'touristicEventsOptionRef' ? ' selected-trek-option' : ''}` }, translate[state.language].options.touristicEvents)), this.presentationOptionRef && (h("span", { class: "indicator-selected-trek-option", style: {
361
+ transform: `translateX(${this.indicatorSelectedTrekOption.translateX})`,
362
+ width: this.indicatorSelectedTrekOption.width,
363
+ backgroundSize: this.indicatorSelectedTrekOption.backgroundSize,
364
+ } })))), this.currentTrek && (h("div", { class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, h("div", { class: "swiper-wrapper" }, this.currentTrek.attachments
359
365
  .filter(attachment => attachment.type === 'image')
360
366
  .map(attachment => (h("div", { class: "swiper-slide" }, h("img", {
361
367
  /* @ts-ignore */
@@ -372,14 +378,14 @@ export class GrwTrekDetail {
372
378
  /* @ts-ignore */
373
379
  crossorigin: "anonymous", src: this.practice.pictogram
374
380
  })), (_g = this.practice) === null || _g === void 0 ? void 0 :
375
- _g.name)), this.currentTrek.ratings.map(trekRating => (h("div", { class: "row" }, `${state.ratingsScale.find(ratingScale => ratingScale.id === state.ratings.find(rating => rating.id === trekRating).scale).name} : ${state.ratings.find(rating => rating.id === trekRating).name}`))), this.currentTrek.ratings_description && this.currentTrek.ratings_description !== '' && h("div", { class: "row" }, this.currentTrek.ratings_description))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), state.parentTrekId && state.parentTrek && this.currentTrek.id !== state.parentTrekId && (h("div", null, h("div", { class: "divider" }), h("div", { class: "parent-trek-container" }, h("button", { class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(state.parentTrekId) }, h("div", null, "<"), state.parentTrek.name)))), state.currentTrekSteps && (h("div", { class: "step-container", ref: el => (this.stepsRef = el) }, h("div", { class: "step-title" }, `${state.currentTrekSteps.length} ${translate[state.language].steps}`), h("div", { class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentTrekSteps &&
381
+ _g.name)), this.currentTrek.ratings.map(trekRating => (h("div", { class: "row" }, `${state.ratingsScale.find(ratingScale => ratingScale.id === state.ratings.find(rating => rating.id === trekRating).scale).name} : ${state.ratings.find(rating => rating.id === trekRating).name}`))), this.currentTrek.ratings_description && this.currentTrek.ratings_description !== '' && h("div", { class: "row" }, this.currentTrek.ratings_description))), h("div", { class: "divider" }), h("div", { class: "downloads-container" }, h("div", { class: "download-title" }, translate[state.language].downloads), h("div", { class: "links-container" }, h("a", { href: `${this.currentTrek.gpx}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), h("a", { href: `${this.currentTrek.kml}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "KML"), h("a", { href: `${this.currentTrek.pdf}`, target: "_blank", rel: "noopener noreferrer" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), h("div", { class: "divider" }), this.currentTrek.description_teaser && h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), state.parentTrekId && state.parentTrek && this.currentTrek.id !== state.parentTrekId && (h("div", null, h("div", { class: "divider" }), h("div", { class: "parent-trek-container" }, h("button", { class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(state.parentTrekId) }, h("div", null, "<"), state.parentTrek.name)))), state.currentTrekSteps && (h("div", { class: "step-container" }, h("div", { class: "step-title", ref: el => (this.stepsRef = el) }, `${state.currentTrekSteps.length} ${translate[state.language].steps}`), h("div", { class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentTrekSteps &&
376
382
  state.currentTrekSteps.map(trek => {
377
383
  return (h("div", { class: "swiper-slide" }, h("grw-trek-card", { "reset-store-on-disconnected": "false", key: `trek-${trek.id}`, trek: trek, "is-large-view": false, "is-step": true, fontFamily: this.fontFamily, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-surface-container-low": this.colorSurfaceContainerLow })));
378
- }))))), h("div", { class: "divider" }), this.currentTrek.description && (h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, h("div", { class: "description-title" }, translate[state.language].description), h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (h("div", { class: "departure-container" }, h("div", { class: "departure-title" }, translate[state.language].departure, " :\u00A0"), h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (h("div", { class: "arrival-container" }, h("div", { class: "arrival-title" }, translate[state.language].arrival, " :\u00A0"), h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && this.currentTrek.cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].crossedCities, " :\u00A0"), h("div", { innerHTML: this.cities.join(', ') }))), this.weather && this.currentTrek.departure_city && (h("div", { class: "weather-container" }, h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` }))), this.currentTrek.access && (h("div", null, h("div", { class: "divider" }), h("div", { class: "access-container" }, h("div", { class: "access-title" }, translate[state.language].roadAccess), h("div", { class: "access", innerHTML: this.currentTrek.access })))), this.currentTrek.public_transport && (h("div", null, h("div", { class: "divider" }), h("div", { class: "public-transport-container" }, h("div", { class: "public-transport-title" }, translate[state.language].transport), h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.labels.length > 0) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advice-container", ref: el => (this.recommendationRef = el) }, h("div", { class: "advice-title" }, translate[state.language].recommendations), this.currentTrek.advice && (h("div", { class: "current-advice-container" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "warning"), h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.labels.map(label => (h("div", { class: "label-container" }, h("div", { class: "label-sub-container" }, label.pictogram && (h("img", {
384
+ }))))), h("div", { class: "divider" }), this.currentTrek.description && (h("div", { class: "description-container" }, h("div", { class: "description-title", ref: el => (this.descriptionRef = el) }, translate[state.language].description), h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (h("div", { class: "departure-container" }, h("div", { class: "departure-title" }, translate[state.language].departure, " :\u00A0"), h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (h("div", { class: "arrival-container" }, h("div", { class: "arrival-title" }, translate[state.language].arrival, " :\u00A0"), h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && this.currentTrek.cities.length > 0 && (h("div", { class: "cities-container" }, h("div", { class: "cities-title" }, translate[state.language].crossedCities, " :\u00A0"), h("div", { innerHTML: this.cities.join(', ') }))), this.weather && this.currentTrek.departure_city && (h("div", { class: "weather-container" }, h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` }))), this.currentTrek.access && (h("div", null, h("div", { class: "divider" }), h("div", { class: "access-container" }, h("div", { class: "access-title" }, translate[state.language].roadAccess), h("div", { class: "access", innerHTML: this.currentTrek.access })))), this.currentTrek.public_transport && (h("div", null, h("div", { class: "divider" }), h("div", { class: "public-transport-container" }, h("div", { class: "public-transport-title" }, translate[state.language].transport), h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.labels.length > 0) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advice-container" }, h("div", { class: "advice-title", ref: el => (this.recommendationRef = el) }, translate[state.language].recommendations), this.currentTrek.advice && (h("div", { class: "current-advice-container" }, h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "warning"), h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.labels.map(label => (h("div", { class: "label-container" }, h("div", { class: "label-sub-container" }, label.pictogram && (h("img", {
379
385
  /* @ts-ignore */
380
386
  crossorigin: "anonymous", src: label.pictogram
381
- })), h("div", { class: "label-name", innerHTML: label.name })), h("div", { class: "label-advice", innerHTML: label.advice }))))))), this.currentTrek.advised_parking && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advised-parking-container", ref: el => (this.parkingRef = el) }, h("div", { class: "advised-parking-title" }, translate[state.language].recommendedParking), h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))), this.currentTrek.gear && (h("div", null, h("div", { class: "divider" }), h("div", { class: "gear-container" }, h("div", { class: "gear-title" }, translate[state.language].equipments), h("div", { class: "gear", innerHTML: this.currentTrek.gear })))), state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "sensitive-areas-container", ref: el => (this.sensitiveAreaRef = el) }, h("div", { class: "sensitive-areas-title" }, translate[state.language].environmentalSensitiveAreas), state.currentSensitiveAreas.map(sensitiveArea => (h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), state.currentInformationDesks &&
382
- state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "information-desks-container", ref: el => (this.informationDeskRef = el) }, h("div", { class: "information-desks-title" }, translate[state.language].informationPlaces), h("div", { class: "swiper swiper-information-desks", ref: el => (this.swiperInformationDesksRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentInformationDesks
387
+ })), h("div", { class: "label-name", innerHTML: label.name })), h("div", { class: "label-advice", innerHTML: label.advice }))))))), this.currentTrek.advised_parking && (h("div", null, h("div", { class: "divider" }), h("div", { class: "advised-parking-container" }, h("div", { class: "advised-parking-title", ref: el => (this.parkingRef = el) }, translate[state.language].recommendedParking), h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))), this.currentTrek.gear && (h("div", null, h("div", { class: "divider" }), h("div", { class: "gear-container" }, h("div", { class: "gear-title" }, translate[state.language].equipments), h("div", { class: "gear", innerHTML: this.currentTrek.gear })))), state.currentSensitiveAreas && state.currentSensitiveAreas.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "sensitive-areas-container" }, h("div", { class: "sensitive-areas-title", ref: el => (this.sensitiveAreaRef = el) }, translate[state.language].environmentalSensitiveAreas), state.currentSensitiveAreas.map(sensitiveArea => (h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), state.currentInformationDesks &&
388
+ state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "information-desks-container" }, h("div", { class: "information-desks-title", ref: el => (this.informationPlacesRef = el) }, translate[state.language].informationPlaces), h("div", { class: "swiper swiper-information-desks", ref: el => (this.swiperInformationDesksRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentInformationDesks
383
389
  .filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id))
384
390
  .map(informationDesk => (h("div", { class: "swiper-slide" }, h("grw-information-desk", { informationDesk: informationDesk }))))))))), (this.currentTrek.disabled_infrastructure ||
385
391
  (this.accessibilities && this.accessibilities.length > 0) ||
@@ -392,7 +398,7 @@ export class GrwTrekDetail {
392
398
  this.currentTrek.accessibility_advice) && (h("div", null, h("div", { class: "divider" }), h("div", { class: "accessibilities-container" }, h("div", { class: "accessibilities-title" }, translate[state.language].accessibility), this.currentTrek.disabled_infrastructure && h("div", { innerHTML: this.currentTrek.disabled_infrastructure }), h("div", { class: "accessibilities-content-container" }, this.accessibilities.map(accessibility => (h("div", { class: "accessibility-content-container" }, h("img", {
393
399
  /* @ts-ignore */
394
400
  crossorigin: "anonymous", src: accessibility.pictogram
395
- }), h("div", { innerHTML: accessibility.name }))))), this.currentTrek.accessibility_level && (h("div", { class: "accessibility-level-container" }, h("div", { class: "accessibility-level-title" }, translate[state.language].accessibilityLevel), h("div", { innerHTML: this.accessibilityLevel.name }))), this.currentTrek.accessibility_slope && (h("div", { class: "accessibility-slope-container" }, h("div", { class: "accessibility-slope-title" }, translate[state.language].accessibilitySlope), h("div", { innerHTML: this.currentTrek.accessibility_slope }))), this.currentTrek.accessibility_width && (h("div", { class: "accessibility-width-container" }, h("div", { class: "accessibility-width-title" }, translate[state.language].accessibilityWidth), h("div", { innerHTML: this.currentTrek.accessibility_width }))), this.currentTrek.accessibility_signage && (h("div", { class: "accessibility-signage-container" }, h("div", { class: "accessibility-signage-title" }, translate[state.language].accessibilitySignage), h("div", { innerHTML: this.currentTrek.accessibility_signage }))), this.currentTrek.accessibility_covering && (h("div", { class: "accessibility-covering-container" }, h("div", { class: "accessibility-covering-title" }, translate[state.language].accessibilityCovering), h("div", { innerHTML: this.currentTrek.accessibility_covering }))), this.currentTrek.accessibility_exposure && (h("div", { class: "accessibility-exposure-container" }, h("div", { class: "accessibility-exposure-title" }, translate[state.language].accessibilityExposure), h("div", { innerHTML: this.currentTrek.accessibility_exposure }))), this.currentTrek.accessibility_advice && (h("div", { class: "accessibility-advice-container" }, h("div", { class: "accessibility-advice-title" }, translate[state.language].accessibilityAdvices), h("div", { innerHTML: this.currentTrek.accessibility_advice })))))), state.currentPois && state.currentPois.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "pois-container", ref: el => (this.poiRef = el) }, h("div", { class: "pois-title" }, translate[state.language].pois(state.currentPois.length)), h("div", { class: "swiper swiper-pois", ref: el => (this.swiperPoisRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentPois.map(poi => (h("div", { class: "swiper-slide" }, h("grw-poi", { poi: poi }))))))))), state.trekTouristicContents && state.trekTouristicContents.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "touristic-content-container", ref: el => (this.touristicContentsRef = el) }, h("div", { class: "touristic-content-title" }, translate[state.language].touristicContents(state.trekTouristicContents.length)), h("div", { class: "swiper swiper-touristic-content", ref: el => (this.swiperTouristicContentsRef = el) }, h("div", { class: "swiper-wrapper" }, state.trekTouristicContents.map(touristicContent => (h("div", { class: "swiper-slide" }, h("grw-touristic-content-card", { fontFamily: this.fontFamily, touristicContent: touristicContent, isInsideHorizontalList: true }))))))))), state.touristicEvents && state.touristicEvents.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "touristic-event-container", ref: el => (this.touristicEventsRef = el) }, h("div", { class: "touristic-event-title" }, translate[state.language].touristicEvents(state.touristicEvents.length)), h("div", { class: "swiper swiper-touristic-event", ref: el => (this.swiperTouristicEventsRef = el) }, h("div", { class: "swiper-wrapper" }, state.touristicEvents.map(touristicEvent => (h("div", { class: "swiper-slide" }, h("grw-touristic-event-card", { fontFamily: this.fontFamily, touristicEvent: touristicEvent }))))))))), this.currentTrek.source && this.currentTrek.source.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "source-container" }, h("div", { class: "source-title" }, translate[state.language].sources), this.sources.map(source => (h("div", { class: "source-sub-container" }, source.pictogram && (h("img", {
401
+ }), h("div", { innerHTML: accessibility.name }))))), this.currentTrek.accessibility_level && (h("div", { class: "accessibility-level-container" }, h("div", { class: "accessibility-level-title" }, translate[state.language].accessibilityLevel), h("div", { innerHTML: this.accessibilityLevel.name }))), this.currentTrek.accessibility_slope && (h("div", { class: "accessibility-slope-container" }, h("div", { class: "accessibility-slope-title" }, translate[state.language].accessibilitySlope), h("div", { innerHTML: this.currentTrek.accessibility_slope }))), this.currentTrek.accessibility_width && (h("div", { class: "accessibility-width-container" }, h("div", { class: "accessibility-width-title" }, translate[state.language].accessibilityWidth), h("div", { innerHTML: this.currentTrek.accessibility_width }))), this.currentTrek.accessibility_signage && (h("div", { class: "accessibility-signage-container" }, h("div", { class: "accessibility-signage-title" }, translate[state.language].accessibilitySignage), h("div", { innerHTML: this.currentTrek.accessibility_signage }))), this.currentTrek.accessibility_covering && (h("div", { class: "accessibility-covering-container" }, h("div", { class: "accessibility-covering-title" }, translate[state.language].accessibilityCovering), h("div", { innerHTML: this.currentTrek.accessibility_covering }))), this.currentTrek.accessibility_exposure && (h("div", { class: "accessibility-exposure-container" }, h("div", { class: "accessibility-exposure-title" }, translate[state.language].accessibilityExposure), h("div", { innerHTML: this.currentTrek.accessibility_exposure }))), this.currentTrek.accessibility_advice && (h("div", { class: "accessibility-advice-container" }, h("div", { class: "accessibility-advice-title" }, translate[state.language].accessibilityAdvices), h("div", { innerHTML: this.currentTrek.accessibility_advice })))))), state.currentPois && state.currentPois.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "pois-container" }, h("div", { class: "pois-title", ref: el => (this.poiRef = el) }, translate[state.language].pois(state.currentPois.length)), h("div", { class: "swiper swiper-pois", ref: el => (this.swiperPoisRef = el) }, h("div", { class: "swiper-wrapper" }, state.currentPois.map(poi => (h("div", { class: "swiper-slide" }, h("grw-poi", { poi: poi }))))))))), state.trekTouristicContents && state.trekTouristicContents.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "touristic-content-container" }, h("div", { class: "touristic-content-title", ref: el => (this.touristicContentsRef = el) }, translate[state.language].touristicContents(state.trekTouristicContents.length)), h("div", { class: "swiper swiper-touristic-content", ref: el => (this.swiperTouristicContentsRef = el) }, h("div", { class: "swiper-wrapper" }, state.trekTouristicContents.map(touristicContent => (h("div", { class: "swiper-slide" }, h("grw-touristic-content-card", { fontFamily: this.fontFamily, touristicContent: touristicContent, isInsideHorizontalList: true }))))))))), state.touristicEvents && state.touristicEvents.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "touristic-event-container" }, h("div", { class: "touristic-event-title", ref: el => (this.touristicEventsRef = el) }, translate[state.language].touristicEvents(state.touristicEvents.length)), h("div", { class: "swiper swiper-touristic-event", ref: el => (this.swiperTouristicEventsRef = el) }, h("div", { class: "swiper-wrapper" }, state.touristicEvents.map(touristicEvent => (h("div", { class: "swiper-slide" }, h("grw-touristic-event-card", { fontFamily: this.fontFamily, touristicEvent: touristicEvent }))))))))), this.currentTrek.source && this.currentTrek.source.length > 0 && (h("div", null, h("div", { class: "divider" }), h("div", { class: "source-container" }, h("div", { class: "source-title" }, translate[state.language].sources), this.sources.map(source => (h("div", { class: "source-sub-container" }, source.pictogram && (h("img", {
396
402
  /* @ts-ignore */
397
403
  crossorigin: "anonymous", src: source.pictogram
398
404
  })), h("div", null, h("div", { class: "source-name", innerHTML: source.name }), h("a", { class: "source-advice", href: source.website, innerHTML: source.website })))))))), h("div", { class: "detail-bottom-space" })))));
@@ -712,8 +718,8 @@ export class GrwTrekDetail {
712
718
  "references": {}
713
719
  }
714
720
  }, {
715
- "method": "informationDeskIsInViewport",
716
- "name": "informationDeskIsInViewport",
721
+ "method": "informationPlacesIsInViewport",
722
+ "name": "informationPlacesIsInViewport",
717
723
  "bubbles": true,
718
724
  "cancelable": true,
719
725
  "composed": true,