@geotrekce/geotrek-rando-widget 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) 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.cjs.entry.js +5 -3
  5. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/grw-common-button_21.cjs.entry.js +2 -2
  9. package/dist/cjs/grw-common-button_21.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-common-button_21.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-common-button_21.cjs.entry.js.map +1 -1
  12. package/dist/cjs/grw-information-desk_6.cjs.entry.js +11 -5
  13. package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/loader.cjs.js.br +0 -0
  18. package/dist/cjs/loader.cjs.js.gz +0 -0
  19. package/dist/collection/components/grw-app/grw-app.css +1 -1
  20. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  21. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  22. package/dist/collection/components/grw-app/grw-app.js +22 -2
  23. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  24. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  25. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  26. package/dist/collection/components/grw-filters/grw-filters.css +1 -1
  27. package/dist/collection/components/grw-filters/grw-filters.css.br +0 -0
  28. package/dist/collection/components/grw-filters/grw-filters.css.gz +0 -0
  29. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css +2 -0
  30. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.br +0 -0
  31. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.gz +0 -0
  32. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +4 -1
  33. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
  34. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
  35. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
  36. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css +2 -0
  37. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.br +0 -0
  38. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.gz +0 -0
  39. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +4 -1
  40. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
  41. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
  42. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
  43. package/dist/collection/components/grw-trek-card/grw-trek-card.css +3 -1
  44. package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
  45. package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
  46. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
  47. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  48. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  49. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  50. package/dist/esm/geotrek-rando-widget.js +1 -1
  51. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  52. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  53. package/dist/esm/grw-app.entry.js +5 -3
  54. package/dist/esm/grw-app.entry.js.br +0 -0
  55. package/dist/esm/grw-app.entry.js.gz +0 -0
  56. package/dist/esm/grw-app.entry.js.map +1 -1
  57. package/dist/esm/grw-common-button_21.entry.js +2 -2
  58. package/dist/esm/grw-common-button_21.entry.js.br +0 -0
  59. package/dist/esm/grw-common-button_21.entry.js.gz +0 -0
  60. package/dist/esm/grw-common-button_21.entry.js.map +1 -1
  61. package/dist/esm/grw-information-desk_6.entry.js +11 -5
  62. package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
  63. package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
  64. package/dist/esm/grw-information-desk_6.entry.js.map +1 -1
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/loader.js.br +0 -0
  67. package/dist/esm/loader.js.gz +0 -0
  68. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  69. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  70. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  71. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  72. package/dist/esm-es5/grw-app.entry.js +1 -1
  73. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  74. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  75. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  76. package/dist/esm-es5/grw-common-button_21.entry.js +2 -2
  77. package/dist/esm-es5/grw-common-button_21.entry.js.br +0 -0
  78. package/dist/esm-es5/grw-common-button_21.entry.js.gz +0 -0
  79. package/dist/esm-es5/grw-common-button_21.entry.js.map +1 -1
  80. package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
  81. package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
  82. package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
  83. package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -1
  84. package/dist/esm-es5/loader.js +1 -1
  85. package/dist/esm-es5/loader.js.br +0 -0
  86. package/dist/esm-es5/loader.js.gz +0 -0
  87. package/dist/esm-es5/loader.js.map +1 -1
  88. package/dist/geotrek-rando-widget/geotrek-rando-widget.css +1 -1
  89. package/dist/geotrek-rando-widget/geotrek-rando-widget.css.br +0 -0
  90. package/dist/geotrek-rando-widget/geotrek-rando-widget.css.gz +0 -0
  91. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  92. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  93. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  94. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  95. package/dist/geotrek-rando-widget/{p-e2a73eac.entry.js → p-40e69a46.entry.js} +4 -4
  96. package/dist/geotrek-rando-widget/p-40e69a46.entry.js.br +0 -0
  97. package/dist/geotrek-rando-widget/p-40e69a46.entry.js.gz +0 -0
  98. package/dist/geotrek-rando-widget/p-40e69a46.entry.js.map +1 -0
  99. package/dist/geotrek-rando-widget/{p-d2fb6fb4.system.entry.js → p-4c85680a.system.entry.js} +2 -2
  100. package/dist/geotrek-rando-widget/p-4c85680a.system.entry.js.br +0 -0
  101. package/dist/geotrek-rando-widget/p-4c85680a.system.entry.js.gz +0 -0
  102. package/dist/geotrek-rando-widget/p-4c85680a.system.entry.js.map +1 -0
  103. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js +2 -0
  104. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js.br +0 -0
  105. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js.gz +0 -0
  106. package/dist/geotrek-rando-widget/p-83f9c2c2.entry.js.map +1 -0
  107. package/dist/geotrek-rando-widget/{p-9d826a4c.entry.js → p-ae129a99.entry.js} +2 -2
  108. package/dist/geotrek-rando-widget/p-ae129a99.entry.js.br +0 -0
  109. package/dist/geotrek-rando-widget/p-ae129a99.entry.js.gz +0 -0
  110. package/dist/geotrek-rando-widget/p-ae129a99.entry.js.map +1 -0
  111. package/dist/geotrek-rando-widget/p-b02ae30d.system.js +1 -1
  112. package/dist/geotrek-rando-widget/p-b02ae30d.system.js.br +0 -0
  113. package/dist/geotrek-rando-widget/p-b02ae30d.system.js.gz +0 -0
  114. package/dist/geotrek-rando-widget/p-b02ae30d.system.js.map +1 -1
  115. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js +2 -0
  116. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js.br +0 -0
  117. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js.gz +0 -0
  118. package/dist/geotrek-rando-widget/p-ced23fd3.system.entry.js.map +1 -0
  119. package/dist/geotrek-rando-widget/{p-05f3277d.system.entry.js → p-dfd293bb.system.entry.js} +3 -3
  120. package/dist/geotrek-rando-widget/p-dfd293bb.system.entry.js.br +0 -0
  121. package/dist/geotrek-rando-widget/p-dfd293bb.system.entry.js.gz +0 -0
  122. package/dist/geotrek-rando-widget/p-dfd293bb.system.entry.js.map +1 -0
  123. package/dist/types/components/grw-app/grw-app.d.ts +1 -0
  124. package/dist/types/components.d.ts +2 -0
  125. package/package.json +1 -1
  126. package/dist/geotrek-rando-widget/p-05f3277d.system.entry.js.br +0 -0
  127. package/dist/geotrek-rando-widget/p-05f3277d.system.entry.js.gz +0 -0
  128. package/dist/geotrek-rando-widget/p-05f3277d.system.entry.js.map +0 -1
  129. package/dist/geotrek-rando-widget/p-9d826a4c.entry.js.br +0 -0
  130. package/dist/geotrek-rando-widget/p-9d826a4c.entry.js.gz +0 -0
  131. package/dist/geotrek-rando-widget/p-9d826a4c.entry.js.map +0 -1
  132. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js +0 -2
  133. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js.br +0 -0
  134. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js.gz +0 -0
  135. package/dist/geotrek-rando-widget/p-ae17f2a9.entry.js.map +0 -1
  136. package/dist/geotrek-rando-widget/p-d2fb6fb4.system.entry.js.br +0 -0
  137. package/dist/geotrek-rando-widget/p-d2fb6fb4.system.entry.js.gz +0 -0
  138. package/dist/geotrek-rando-widget/p-d2fb6fb4.system.entry.js.map +0 -1
  139. package/dist/geotrek-rando-widget/p-e2a73eac.entry.js.br +0 -0
  140. package/dist/geotrek-rando-widget/p-e2a73eac.entry.js.gz +0 -0
  141. package/dist/geotrek-rando-widget/p-e2a73eac.entry.js.map +0 -1
  142. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js +0 -2
  143. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js.br +0 -0
  144. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js.gz +0 -0
  145. package/dist/geotrek-rando-widget/p-f2af961a.system.entry.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwInformationDeskCss","GrwInformationDeskDetail","componentDidLoad","this","handleOffline","descriptionRef","showInformationDeskDescriptionButton","clientHeight","scrollHeight","handleInformationDeskDescription","displayShortDescription","handleCenterOnMap","centerOnMap","emit","latitude","informationDesk","longitude","async","trekInStore","getDataInStore","state","currentTrek","id","informationDeskInStore","offline","Boolean","render","defaultImageSrc","getAssetPath","h","Host","photo_url","part","class","crossorigin","src","loading","onerror","event","target","name","onClick","translate","language","postal_code","municipality","street","phone","href","email","website","description","innerHTML","ref","el","grwPoiCss","GrwPoiDetail","onTrekDownloadedSuccessConfirm","swiperPoi","slideTo","onTrekDeleteSuccessConfirm","Swiper","swiperPoiRef","modules","Navigation","Pagination","Keyboard","navigation","prevEl","prevElPoiRef","nextEl","nextElPoiRef","pagination","paginationElPoiRef","allowTouchMove","keyboard","loop","onfullscreenchange","displayFullscreen","enable","disable","showPoiDescriptionButton","handlePoiDescription","handleFullscreen","poi","attachments","url","requestFullscreen","poiInStore","_a","poiTypes","find","poiType","type","pictogram","length","filter","attachment","map","thumbnail","className","style","display","readMore","readLess","grwSensitiveAreaDetailCss","GrwSensitiveAreaDetail","sensitiveArea","practices","sensitiveAreaPractice","index","practice","statePractice","toUpperCase","period","month","Date","toLocaleDateString","slice","contact","grwTouristicContentCardCss","GrwTouristicContentCard","swiperTouristicContent","swiperTouristicContentRef","prevElTouristicContentRef","nextElTouristicContentRef","paginationElTouristicContentRef","touristicContentInStore","touristicContent","handleMouseOver","cardTouristicContentMouseOver","handleMouseLeave","cardTouristicContentMouseLeave","touristicContentCategory","touristicContentCategories","category","fontFamily","width","isLargeView","selectedTouristicContentId","isInsideHorizontalList","touristicContentCardPress","label","grwTouristicEventCardCss","GrwTouristicEvent","swiperTouristicEvent","swiperTouristicEventRef","prevElTouristicEventRef","nextElTouristicEventRef","paginationElTouristicEventRef","touristicEventInStore","touristicEvent","cardTouristicEventMouseOver","cardTouristicEventMouseLeave","touristicEventType","touristicEventTypes","selectedTouristicEventId","touristicEventCardPress","begin_date","end_date","date","startDate","endDate","grwTrekCardCss","GrwTrekCard","isAvailableOffline","connectedCallback","trek","difficulty","difficulties","route","routes","themes","theme","includes","departureCity","cities","city","departure_city","onChange","trekId","trekIsAvailableOffline","cardTrekMouseOver","cardTrekMouseLeave","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isStep","selectedStepId","selectedTrekId","trekCardPress","formatDuration","duration","formatLength","length_2d","formatAscent","ascent","Fragment","_b","_c","_d","_e"],"sources":["./src/components/grw-information-desk/grw-information-desk.scss?tag=grw-information-desk&encapsulation=shadow","./src/components/grw-information-desk/grw-information-desk.tsx","./src/components/grw-poi-detail/grw-poi.scss?tag=grw-poi&encapsulation=shadow","./src/components/grw-poi-detail/grw-poi.tsx","./src/components/grw-sensitive-area-detail/grw-sensitive-area-detail.scss?tag=grw-sensitive-area-detail&encapsulation=shadow","./src/components/grw-sensitive-area-detail/grw-sensitive-area-detail.tsx","./src/components/grw-touristic-content-card/grw-touristic-content-card.scss?tag=grw-touristic-content-card&encapsulation=shadow","./src/components/grw-touristic-content-card/grw-touristic-content-card.tsx","./src/components/grw-touristic-event-card/grw-touristic-event-card.scss?tag=grw-touristic-event-card&encapsulation=shadow","./src/components/grw-touristic-event-card/grw-touristic-event-card.tsx","./src/components/grw-trek-card/grw-trek-card.scss?tag=grw-trek-card&encapsulation=shadow","./src/components/grw-trek-card/grw-trek-card.tsx"],"sourcesContent":[".material-symbols {\n font-family: 'Material Symbols Outlined';\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border: 1px solid gray;\n border-radius: var(--border-radius, 12px);\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n a {\n color: var(--color-primary-app);\n }\n}\n\n.information-desk-img-container {\n position: relative;\n .information-desk-img {\n width: 100%;\n height: 100%;\n max-height: 200px;\n object-fit: cover;\n }\n}\n\n.information-desk-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n}\n\n.information-desk-name {\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n}\n\n.information-desk-description {\n font-size: 14px;\n line-height: 20px;\n}\n\n.information-desk-description-short {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 4;\n overflow: hidden;\n}\n\n.handle-information-desk-description {\n cursor: pointer;\n color: var(--color-primary-app);\n text-decoration: underline;\n margin-top: 12px;\n}\n\n.phone-container,\n.mail-container,\n.link-container {\n display: flex;\n align-items: center;\n .icon {\n font-size: 16px;\n margin-right: 8px;\n }\n}\n\n.center-on-map-button {\n cursor: pointer;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 4px 8px;\n box-shadow: var(--elevation-1);\n min-height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n border: none;\n font-size: 14px;\n margin: 12px 0px;\n &:hover {\n box-shadow: var(--elevation-2);\n }\n .icon {\n font-size: 18px;\n }\n}\n","import { Component, Host, h, Prop, State, Event, EventEmitter, getAssetPath, Build } from '@stencil/core';\nimport state from 'store/store';\nimport { translate } from 'i18n/i18n';\nimport { InformationDesk, Trek } from 'types/types';\nimport { getDataInStore } from 'services/grw-db.service';\n\n@Component({\n tag: 'grw-information-desk',\n styleUrl: 'grw-information-desk.scss',\n shadow: true,\n})\nexport class GrwInformationDeskDetail {\n descriptionRef?: HTMLDivElement;\n @Event() centerOnMap: EventEmitter<{ latitude: number; longitude: number }>;\n @State() displayShortDescription = true;\n @State() showInformationDeskDescriptionButton = false;\n @Prop() informationDesk: InformationDesk;\n\n @State() offline = false;\n @State() showDefaultImage = false;\n\n componentDidLoad() {\n this.handleOffline();\n if (this.descriptionRef) {\n this.showInformationDeskDescriptionButton = this.descriptionRef.clientHeight < this.descriptionRef.scrollHeight;\n }\n }\n\n handleInformationDeskDescription() {\n this.displayShortDescription = !this.displayShortDescription;\n }\n\n handleCenterOnMap() {\n this.centerOnMap.emit({ latitude: this.informationDesk.latitude, longitude: this.informationDesk.longitude });\n }\n\n async handleOffline() {\n if (this.informationDesk) {\n const trekInStore: Trek = await getDataInStore('treks', state.currentTrek.id);\n const informationDeskInStore: InformationDesk = await getDataInStore('informationDesks', this.informationDesk.id);\n this.offline = trekInStore && trekInStore.offline && Boolean(informationDeskInStore);\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n return (\n <Host>\n {this.informationDesk.photo_url && (\n <div part=\"information-desk-img-container\" class=\"information-desk-img-container\">\n <img\n part=\"information-desk-img\"\n class=\"information-desk-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={this.informationDesk.photo_url}\n loading=\"lazy\"\n /* @ts-ignore */\n onerror={event => {\n event.target.onerror = null;\n event.target.src = defaultImageSrc;\n }}\n />\n </div>\n )}\n <div part=\"information-desk-sub-container\" class=\"information-desk-sub-container\">\n {this.informationDesk.name && (\n <div part=\"information-desk-name\" class=\"information-desk-name\">\n {this.informationDesk.name}\n </div>\n )}\n {this.informationDesk.latitude && this.informationDesk.longitude && (\n <button part=\"center-on-map-button\" class=\"center-on-map-button\" onClick={() => this.handleCenterOnMap()}>\n {/* @ts-ignore */}\n <span part=\"icon\" class=\"material-symbols material-symbols-outlined icon\" translate={false}>\n location_searching\n </span>\n <span part=\"label\">{translate[state.language].centerOnMap}</span>\n </button>\n )}\n {(this.informationDesk.postal_code || this.informationDesk.municipality || this.informationDesk.street) && (\n <div part=\"information-desk-informations\" class=\"information-desk-informations\">\n {this.informationDesk.postal_code && this.informationDesk.postal_code}\n {this.informationDesk.municipality && ` ${this.informationDesk.municipality}`}\n {this.informationDesk.street && ` ${this.informationDesk.street}`}\n </div>\n )}\n {this.informationDesk.phone && (\n <div class=\"phone-container\">\n {/* @ts-ignore */}\n <span part=\"icon\" class=\"material-symbols material-symbols-outlined icon\" translate={false}>\n call\n </span>\n <a part=\"label\" class=\"label\" href={`tel:${this.informationDesk.phone}`}>\n {this.informationDesk.phone}\n </a>\n </div>\n )}\n {this.informationDesk.email && (\n <div part=\"mail-container\" class=\"mail-container\">\n {/* @ts-ignore */}\n <span part=\"icon\" class=\"material-symbols material-symbols-outlined icon\" translate={false}>\n mail\n </span>\n <a part=\"label\" class=\"label\" href={`mailto:${this.informationDesk.email}`}>\n {this.informationDesk.email}\n </a>\n </div>\n )}\n {this.informationDesk.website && (\n <div part=\"link-container\" class=\"link-container\">\n {/* @ts-ignore */}\n <span part=\"icon\" class=\"material-symbols material-symbols-outlined icon\" translate={false}>\n link\n </span>\n <a part=\"label\" class=\"label\" href={`${this.informationDesk.website}`}>\n {this.informationDesk.website}\n </a>\n </div>\n )}\n {this.informationDesk.description && (\n <div part=\"information-desk-description-container\" class=\"information-desk-description-container\">\n <div\n part=\"information-desk-description\"\n class={this.displayShortDescription ? 'information-desk-description information-desk-description-short' : 'information-desk-description'}\n innerHTML={this.informationDesk.description}\n ref={el => (this.descriptionRef = el)}\n ></div>\n {false && (\n <div part=\"handle-information-desk-description\" class=\"handle-information-desk-description\" onClick={() => this.handleInformationDeskDescription()}>\n {this.displayShortDescription ? translate[state.language].readMore : translate[state.language].readLess}\n </div>\n )}\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n","@use '~swiper/swiper.scss';\n@use '~swiper/modules/navigation/navigation.scss';\n@use '~swiper/modules/pagination/pagination.scss';\n\n.swiper {\n z-index: 0;\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border: 1px solid gray;\n border-radius: var(--border-radius, 12px);\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n a {\n color: var(--color-primary-app);\n }\n --swiper-navigation-size: 24px;\n --swiper-navigation-color: var(--color-on-primary-container);\n --swiper-pagination-color: var(--color-primary-container);\n --swiper-pagination-bullet-size: 12px;\n .swiper-button-prev,\n .swiper-button-next {\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: var(--border-radius, 32px);\n box-shadow: var(--elevation-1);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n}\n\n.poi-type-img-container {\n position: relative;\n .poi-img,\n .default-poi-img {\n width: 100%;\n height: 100%;\n height: 200px;\n object-fit: cover;\n }\n .poi-img {\n cursor: pointer;\n object-fit: cover;\n }\n .default-poi-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .img-fullscreen {\n max-height: none;\n object-fit: contain;\n }\n .poi-type {\n width: 24px;\n height: 24px;\n padding: 4px;\n border: 2px solid #ffffff;\n border-radius: var(--border-radius, 50%);\n background-color: var(--color-on-surface);\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 200;\n }\n}\n\n.poi-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n}\n\n.poi-name {\n font-size: 16px;\n line-height: 24px;\n height: 64px;\n}\n\n.poi-description {\n font-size: 14px;\n line-height: 20px;\n}\n\n.poi-description-short {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 4;\n overflow: hidden;\n}\n\n.handle-poi-description {\n cursor: pointer;\n color: var(--color-primary-app);\n text-decoration: underline;\n margin-top: 12px;\n height: 22px;\n}\n\np {\n margin: 0;\n}\n","import { Component, Host, h, Prop, State, Build, getAssetPath, Listen } from '@stencil/core';\nimport Swiper, { Navigation, Pagination, Keyboard } from 'swiper';\nimport state from 'store/store';\nimport { Poi, Trek } from 'types/types';\nimport { translate } from 'i18n/i18n';\nimport { getDataInStore } from 'services/grw-db.service';\n\n@Component({\n tag: 'grw-poi',\n styleUrl: 'grw-poi.scss',\n shadow: true,\n})\nexport class GrwPoiDetail {\n swiperPoi?: Swiper;\n swiperPoiRef?: HTMLDivElement;\n prevElPoiRef?: HTMLDivElement;\n nextElPoiRef?: HTMLDivElement;\n paginationElPoiRef?: HTMLDivElement;\n descriptionRef?: HTMLDivElement;\n\n @Prop() poi: Poi;\n @State() displayShortDescription = true;\n @State() showPoiDescriptionButton = false;\n @State() displayFullscreen = false;\n\n @State() offline = false;\n\n @Listen('trekDownloadedSuccessConfirm', { target: 'window' })\n onTrekDownloadedSuccessConfirm() {\n this.swiperPoi.slideTo(0);\n this.offline = true;\n }\n\n @Listen('trekDeleteSuccessConfirm', { target: 'window' })\n onTrekDeleteSuccessConfirm() {\n this.offline = false;\n }\n\n componentDidLoad() {\n this.handleOffline();\n this.swiperPoi = new Swiper(this.swiperPoiRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElPoiRef,\n nextEl: this.nextElPoiRef,\n },\n pagination: { el: this.paginationElPoiRef },\n allowTouchMove: false,\n keyboard: false,\n loop: true,\n });\n this.swiperPoiRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen && !this.offline;\n if (this.displayFullscreen) {\n this.swiperPoi.keyboard.enable();\n } else {\n this.swiperPoi.keyboard.disable();\n }\n };\n this.showPoiDescriptionButton = this.descriptionRef.clientHeight < this.descriptionRef.scrollHeight;\n }\n\n handlePoiDescription() {\n this.displayShortDescription = !this.displayShortDescription;\n }\n\n handleFullscreen() {\n if (this.poi.attachments && this.poi.attachments[0] && this.poi.attachments[0].url) {\n this.swiperPoiRef.requestFullscreen();\n }\n }\n\n async handleOffline() {\n if (this.poi) {\n const trekInStore: Trek = await getDataInStore('treks', state.currentTrek.id);\n const poiInStore: Poi = await getDataInStore('pois', this.poi.id);\n this.offline = trekInStore && trekInStore.offline && Boolean(poiInStore);\n }\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n return (\n <Host>\n <div part=\"poi-type-img-container\" class=\"poi-type-img-container\">\n <img\n part=\"poi-type\"\n class=\"poi-type\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={`${state.poiTypes.find(poiType => poiType.id === this.poi.type)?.pictogram}`}\n />\n <div part=\"swiper-poi\" class=\"swiper swiper-poi\" ref={el => (this.swiperPoiRef = el)}>\n <div part=\"swiper-wrapper\" class=\"swiper-wrapper\">\n {this.poi.attachments.length > 0 ? (\n this.poi.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img\n part=\"poi-img\"\n class={`poi-img${this.displayFullscreen ? ' img-fullscreen' : ''}`}\n src={this.displayFullscreen ? attachment.url : attachment.thumbnail}\n loading=\"lazy\"\n /* @ts-ignore */\n onerror={event => {\n event.target.onerror = null;\n event.target.className = 'default-poi-img';\n event.target.src = defaultImageSrc;\n }}\n onClick={() => this.handleFullscreen()}\n />\n </div>\n ))\n ) : (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img\n part=\"default-poi-img\"\n class=\"default-poi-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={defaultImageSrc}\n loading=\"lazy\"\n />\n </div>\n )}\n </div>\n <div style={{ display: this.offline ? 'none' : 'flex' }} part=\"swiper-pagination\" class=\"swiper-pagination\" ref={el => (this.paginationElPoiRef = el)}></div>\n <div style={{ display: this.offline ? 'none' : 'flex' }} part=\"swiper-button-prev\" class=\"swiper-button-prev\" ref={el => (this.prevElPoiRef = el)}></div>\n <div style={{ display: this.offline ? 'none' : 'flex' }} part=\"swiper-button-next\" class=\"swiper-button-next\" ref={el => (this.nextElPoiRef = el)}></div>\n </div>\n </div>\n <div part=\"poi-sub-container\" class=\"poi-sub-container\">\n <div part=\"poi-name\" class=\"poi-name\">\n {this.poi.name}\n </div>\n <div\n part=\"poi-description\"\n class={this.displayShortDescription ? 'poi-description poi-description-short' : 'poi-description'}\n innerHTML={this.poi.description}\n ref={el => (this.descriptionRef = el)}\n ></div>\n <div part=\"handle-poi-description\" class=\"handle-poi-description\" onClick={() => this.handlePoiDescription()}>\n {this.showPoiDescriptionButton && (this.displayShortDescription ? translate[state.language].readMore : translate[state.language].readLess)}\n </div>\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: flex;\n flex-direction: column;\n color: var(--color-on-surface);\n a {\n color: var(--color-primary-app);\n }\n}\n\n.sensitive-area-title-container {\n display: flex;\n align-items: center;\n .sensitive-area-color-container {\n width: 20px;\n height: 20px;\n margin-right: 8px;\n border: 3px solid var(--color-sensitive-area);\n position: relative;\n &:before {\n content: '';\n width: 20px;\n height: 20px;\n background-color: var(--color-sensitive-area);\n opacity: 0.2;\n position: absolute;\n }\n }\n .sensitive-area-title {\n font-size: 20px;\n line-height: 28px;\n padding: 12px 0px;\n font-weight: 600;\n }\n}\n\n.sensitive-area-description {\n font-size: 16px;\n line-height: 24px;\n p:first-child {\n margin-top: 0;\n }\n}\n\n.sensitive-area-period-container,\n.sensitive-area-practice-container,\n.sensitive-area-contact-container {\n .sensitive-area-period-title,\n .sensitive-area-practice-title,\n .sensitive-area-contact-title {\n font-size: 18px;\n line-height: 24px;\n padding: 12px 0px;\n font-weight: 600;\n }\n .sensitive-area-periods,\n .sensitive-area-practices {\n display: flex;\n flex-wrap: wrap;\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\nimport state from 'store/store';\nimport { SensitiveArea } from 'types/types';\n\n@Component({\n tag: 'grw-sensitive-area-detail',\n styleUrl: 'grw-sensitive-area-detail.scss',\n shadow: true,\n})\nexport class GrwSensitiveAreaDetail {\n @Prop() sensitiveArea: SensitiveArea;\n\n render() {\n return (\n <Host>\n <div part=\"sensitive-area-title-container\" class=\"sensitive-area-title-container\">\n <div part=\"sensitive-area-color-container\" class=\"sensitive-area-color-container\"></div>\n <div part=\"sensitive-area-title\" class=\"sensitive-area-title\">\n {this.sensitiveArea.name}\n </div>\n </div>\n\n <div part=\"sensitive-area-description\" class=\"sensitive-area-description\" innerHTML={this.sensitiveArea.description}></div>\n {this.sensitiveArea.practices && this.sensitiveArea.practices.length > 0 && (\n <div part=\"sensitive-area-practice-container\" class=\"sensitive-area-practice-container\">\n <div part=\"sensitive-area-practice-title\" class=\"sensitive-area-practice-title\">\n Domaines d'activités concernés\n </div>\n <div part=\"sensitive-area-practices\" class=\"sensitive-area-practices\">\n {this.sensitiveArea.practices.map((sensitiveAreaPractice, index) => {\n const practice = state.practices.find(statePractice => statePractice.id === sensitiveAreaPractice);\n if (practice) {\n return (\n <div\n part=\"sensitive-area-practice\"\n class=\"sensitive-area-practice\"\n innerHTML={`${practice.name.toUpperCase()}${index + 1 !== this.sensitiveArea.practices.length ? ' -&nbsp;' : ''}`}\n ></div>\n );\n }\n })}\n </div>\n </div>\n )}\n {this.sensitiveArea.period && this.sensitiveArea.period.length > 0 && (\n <div part=\"sensitive-area-period-container\" class=\"sensitive-area-period-container\">\n <div part=\"sensitive-area-period-title\" class=\"sensitive-area-period-title\">\n Périodes de sensibilité\n </div>\n <div part=\"sensitive-area-periods\" class=\"sensitive-area-periods\">\n {this.sensitiveArea.period.map((month, index) => {\n if (month) {\n return (\n <div\n part=\"sensitive-area-period\"\n class=\"sensitive-area-period\"\n innerHTML={`${new Date(0, index + 1, 0).toLocaleDateString('fr', { month: 'long' }).toUpperCase()}${\n this.sensitiveArea.period.slice(index + 1).find(month => month) ? ' -&nbsp;' : ''\n }`}\n ></div>\n );\n }\n })}\n </div>\n </div>\n )}\n <div part=\"sensitive-area-contact-container\" class=\"sensitive-area-contact-container\">\n <div part=\"sensitive-area-contact-title\" class=\"sensitive-area-contact-title\">\n Contact\n </div>\n <div part=\"sensitive-area-contact-value\" class=\"sensitive-area-contact-value\" innerHTML={this.sensitiveArea.contact}></div>\n </div>\n </Host>\n );\n }\n}\n","@use '~swiper/swiper.scss';\n@use '~swiper/modules/navigation/navigation.scss';\n@use '~swiper/modules/pagination/pagination.scss';\n\n.swiper {\n z-index: 0;\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n a {\n color: var(--color-primary-app);\n }\n --swiper-navigation-size: 24px;\n --swiper-navigation-color: var(--color-on-primary-container);\n --swiper-pagination-color: var(--color-primary-container);\n --swiper-pagination-bullet-size: 12px;\n .swiper {\n height: 200px;\n }\n .swiper-button-prev,\n .swiper-button-next {\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: var(--border-radius, 32px);\n box-shadow: var(--elevation-1);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n}\n\n.touristic-content-img-container {\n position: relative;\n height: 200px;\n .touristic-content-img,\n .default-touristic-content-img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .touristic-content-img {\n cursor: pointer;\n object-fit: cover;\n }\n .default-touristic-content-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .img-fullscreen {\n max-height: none;\n object-fit: contain;\n }\n .touristic-content-type {\n width: 24px;\n height: 24px;\n padding: 4px;\n border: 2px solid #ffffff;\n border-radius: var(--border-radius, 50%);\n background-color: var(--color-on-surface);\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 200;\n }\n}\n\n.touristic-content-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n .touristic-content-category-container {\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n .touristic-content-category-name {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n }\n img {\n font-size: 24px;\n width: 24px;\n height: 24px;\n margin-right: 8px;\n background-color: var(--color-primary-app);\n }\n }\n .touristic-content-name {\n font-size: 16px;\n line-height: 24px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n height: 48px;\n }\n}\n\n.touristic-content-more-detail-container {\n padding: 0px 12px 12px 12px;\n .more-details-button {\n cursor: pointer;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 8px 16px;\n box-shadow: var(--elevation-1);\n width: 100%;\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n border: none;\n font-size: 14px;\n font-family: var(--font-family);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n span {\n font-size: 18px;\n }\n }\n}\n\n.touristic-content-card-container,\n.touristic-content-card-large-view-container {\n font-family: var(--font-family);\n border-radius: var(--border-radius, 12px);\n box-shadow: var(--elevation-1);\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n .touristic-content-img {\n height: 100%;\n object-fit: cover;\n border-top-left-radius: var(--border-radius, 12px);\n border-top-right-radius: var(--border-radius, 12px);\n }\n}\n\n.touristic-content-card-container {\n width: 100%;\n max-width: 350px;\n .touristic-content-img {\n width: 100%;\n height: 100%;\n }\n}\n\n.touristic-content-card-large-view-container {\n width: 100%;\n display: flex;\n flex-direction: row;\n .touristic-content-img {\n width: 250px;\n height: 100%;\n }\n}\n\n.is-inside-vertical-list {\n cursor: pointer;\n border: none;\n .touristic-event-img,\n .default-touristic-event-img {\n height: 100%;\n }\n}\n\n.selected-touristic-content-card {\n box-shadow: var(--elevation-2);\n}\n\n.touristic-content-category-img {\n border-radius: 100%;\n padding: 2px;\n max-height: 20px;\n max-width: 20px;\n}\n","import { Build, Component, Host, getAssetPath, h, State, Prop, Event, EventEmitter, Listen } from '@stencil/core';\nimport { getDataInStore } from 'services/grw-db.service';\nimport state from 'store/store';\nimport Swiper, { Keyboard, Navigation, Pagination } from 'swiper';\nimport { TouristicContent, Trek } from 'types/types';\n\n@Component({\n tag: 'grw-touristic-content-card',\n styleUrl: 'grw-touristic-content-card.scss',\n shadow: true,\n})\nexport class GrwTouristicContentCard {\n @Event() touristicContentCardPress: EventEmitter<number>;\n swiperTouristicContent?: Swiper;\n swiperTouristicContentRef?: HTMLDivElement;\n prevElTouristicContentRef?: HTMLDivElement;\n nextElTouristicContentRef?: HTMLDivElement;\n paginationElTouristicContentRef?: HTMLDivElement;\n\n @Prop() fontFamily = 'Roboto';\n\n @Prop() touristicContent: TouristicContent;\n @Prop() isLargeView = false;\n @Prop() isInsideHorizontalList = false;\n @State() displayFullscreen = false;\n\n @Event() cardTouristicContentMouseOver: EventEmitter<number>;\n @Event() cardTouristicContentMouseLeave: EventEmitter;\n\n @State() offline = false;\n\n @Listen('trekDownloadedSuccessConfirm', { target: 'window' })\n onTrekDownloadedSuccessConfirm() {\n this.swiperTouristicContent.slideTo(0);\n this.offline = true;\n }\n\n @Listen('trekDeleteSuccessConfirm', { target: 'window' })\n onTrekDeleteSuccessConfirm() {\n this.offline = false;\n }\n\n componentDidLoad() {\n this.handleOffline();\n if (this.swiperTouristicContentRef) {\n this.swiperTouristicContent = new Swiper(this.swiperTouristicContentRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElTouristicContentRef,\n nextEl: this.nextElTouristicContentRef,\n },\n pagination: { el: this.paginationElTouristicContentRef },\n allowTouchMove: false,\n keyboard: false,\n loop: true,\n });\n this.swiperTouristicContentRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen && !this.offline;\n if (this.displayFullscreen) {\n this.swiperTouristicContent.keyboard.enable();\n } else {\n this.swiperTouristicContent.keyboard.disable();\n }\n };\n }\n }\n\n async handleOffline() {\n if (state.currentTrek) {\n const trekInStore: Trek = await getDataInStore('treks', state.currentTrek.id);\n const touristicContentInStore: TouristicContent = await getDataInStore('touristicContents', this.touristicContent.id);\n this.offline = trekInStore && trekInStore.offline && touristicContentInStore && touristicContentInStore.offline;\n }\n }\n\n handleFullscreen() {\n if (this.touristicContent.attachments && this.touristicContent.attachments[0] && this.touristicContent.attachments[0].url) {\n this.swiperTouristicContentRef.requestFullscreen();\n }\n }\n\n @Listen('mouseover')\n handleMouseOver() {\n this.cardTouristicContentMouseOver.emit(this.touristicContent.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.cardTouristicContentMouseLeave.emit();\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicContentCategory = state.touristicContentCategories.find(touristicContentCategory => touristicContentCategory.id === this.touristicContent.category);\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n 'width': this.isLargeView ? '100%' : 'auto',\n }}\n >\n <div\n part=\"touristic-content-card\"\n class={\n this.isLargeView\n ? `touristic-content-card touristic-content-card-large-view-container${\n state.selectedTouristicContentId === this.touristicContent.id ? ' selected-touristic-content-card' : ''\n }${!this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''}`\n : `touristic-content-card touristic-content-card-container${state.selectedTouristicContentId === this.touristicContent.id ? ' selected-touristic-content-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n }\n onClick={() => {\n if (!this.isInsideHorizontalList) {\n this.touristicContentCardPress.emit(this.touristicContent.id);\n }\n }}\n >\n <div part=\"touristic-content-img-container\" class=\"touristic-content-img-container\">\n {this.isInsideHorizontalList ? (\n <div part=\"swiper-touristic-content\" class=\"swiper swiper-touristic-content\" ref={el => (this.swiperTouristicContentRef = el)}>\n <div part=\"swiper-wrapper\" class=\"swiper-wrapper\">\n {this.touristicContent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n this.touristicContent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img\n part=\"touristic-content-img\"\n class={`touristic-content-img${this.displayFullscreen ? ' img-fullscreen' : ''}`}\n src={this.displayFullscreen ? attachment.url : attachment.thumbnail}\n loading=\"lazy\"\n /* @ts-ignore */\n onerror={event => {\n event.target.onerror = null;\n event.target.className = 'default-touristic-event-img';\n event.target.src = defaultImageSrc;\n }}\n onClick={() => this.handleFullscreen()}\n />\n </div>\n ))\n ) : (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img\n part=\"default-touristic-event-img\"\n class=\"default-touristic-content-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={defaultImageSrc}\n loading=\"lazy\"\n />\n </div>\n )}\n </div>\n <div\n style={{ display: this.offline ? 'none' : 'flex' }}\n part=\"swiper-pagination\"\n class=\"swiper-pagination\"\n ref={el => (this.paginationElTouristicContentRef = el)}\n ></div>\n <div\n style={{ display: this.offline ? 'none' : 'flex' }}\n part=\"swiper-button-prev\"\n class=\"swiper-button-prev\"\n ref={el => (this.prevElTouristicContentRef = el)}\n ></div>\n <div\n style={{ display: this.offline ? 'none' : 'flex' }}\n part=\"swiper-button-next\"\n class=\"swiper-button-next\"\n ref={el => (this.nextElTouristicContentRef = el)}\n ></div>\n </div>\n ) : this.touristicContent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n <img\n part=\"touristic-content-img\"\n class=\"touristic-content-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={`${this.touristicContent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`}\n loading=\"lazy\"\n />\n ) : (\n <div></div>\n )}\n </div>\n <div part=\"touristic-content-sub-container\" class=\"touristic-content-sub-container\">\n <div part=\"touristic-content-category-container\" class=\"touristic-content-category-container\">\n {touristicContentCategory && touristicContentCategory.pictogram && (\n <img\n part=\"touristic-content-category-img\"\n class=\"touristic-content-category-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={touristicContentCategory.pictogram}\n />\n )}\n <div part=\"touristic-content-category-name\" class=\"touristic-content-category-name\">\n {touristicContentCategory.label}\n </div>\n </div>\n <div part=\"touristic-content-name\" class=\"touristic-content-name\">\n {this.touristicContent.name}\n </div>\n </div>\n {this.isInsideHorizontalList && (\n <div part=\"touristic-content-more-detail-container\" class=\"touristic-content-more-detail-container\">\n <button part=\"more-details-button\" class=\"more-details-button\" onClick={() => this.touristicContentCardPress.emit(this.touristicContent.id)}>\n Plus de détails\n </button>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n","@use '~swiper/swiper.scss';\n@use '~swiper/modules/navigation/navigation.scss';\n@use '~swiper/modules/pagination/pagination.scss';\n\n.swiper {\n z-index: 0;\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n:host {\n a {\n color: var(--color-primary-app);\n }\n --swiper-navigation-size: 24px;\n --swiper-navigation-color: var(--color-on-primary-container);\n --swiper-pagination-color: var(--color-primary-container);\n --swiper-pagination-bullet-size: 12px;\n .swiper {\n height: 200px;\n }\n .swiper-button-prev,\n .swiper-button-next {\n background-color: var(--color-primary-container);\n padding: 4px;\n width: 32px;\n height: 32px;\n border-radius: var(--border-radius, 32px);\n box-shadow: var(--elevation-1);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n }\n}\n\n.touristic-event-img-container {\n position: relative;\n height: 200px;\n .touristic-event-img,\n .default-touristic-event-img {\n width: 100%;\n height: 100%;\n max-height: 200px;\n object-fit: cover;\n }\n .touristic-event-img {\n cursor: pointer;\n object-fit: cover;\n }\n .default-touristic-event-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .img-fullscreen {\n max-height: none;\n object-fit: contain;\n }\n .touristic-event-type {\n width: 24px;\n height: 24px;\n padding: 4px;\n border: 2px solid #ffffff;\n border-radius: var(--border-radius, 50%);\n background-color: var(--color-on-surface);\n position: absolute;\n top: 8px;\n left: 8px;\n z-index: 200;\n }\n}\n\n.touristic-event-sub-container {\n display: flex;\n flex-direction: column;\n padding: 12px;\n .touristic-event-type-container {\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n .touristic-event-type-name {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n overflow: hidden;\n }\n img {\n font-size: 24px;\n width: 24px;\n height: 24px;\n margin-right: 8px;\n background-color: var(--color-primary-app);\n }\n }\n .touristic-event-name {\n font-size: 16px;\n line-height: 24px;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n height: 48px;\n }\n}\n\n.touristic-event-more-detail-container {\n padding: 0px 12px 12px 12px;\n .more-details-button {\n cursor: pointer;\n background-color: var(--color-primary-container);\n color: var(--color-on-primary-container);\n border-radius: var(--border-radius, 8px);\n padding: 8px 16px;\n box-shadow: var(--elevation-1);\n width: 100%;\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n border: none;\n font-size: 14px;\n font-family: var(--font-family);\n &:hover {\n box-shadow: var(--elevation-2);\n }\n span {\n font-size: 18px;\n }\n }\n}\n\n.touristic-event-card-container,\n.touristic-event-card-large-view-container {\n font-family: var(--font-family);\n border-radius: var(--border-radius, 12px);\n box-shadow: var(--elevation-1);\n background-color: var(--color-surface-container-low);\n color: var(--color-on-surface);\n .touristic-event-img {\n height: 100%;\n object-fit: cover;\n border-top-left-radius: var(--border-radius, 12px);\n border-top-right-radius: var(--border-radius, 12px);\n }\n}\n\n.touristic-event-card-container {\n width: 100%;\n max-width: 350px;\n .touristic-event-img {\n width: 100%;\n height: 100%;\n }\n}\n\n.touristic-event-card-large-view-container {\n width: 100%;\n display: flex;\n flex-direction: row;\n .touristic-event-img {\n width: 250px;\n height: 100%;\n }\n}\n\n.is-inside-vertical-list {\n cursor: pointer;\n border: none;\n .touristic-content-img,\n .default-touristic-content-img {\n height: 100%;\n }\n}\n\n.selected-touristic-event-card {\n box-shadow: var(--elevation-2);\n}\n\n.touristic-event-date-container {\n margin-top: 12px;\n}\n","import { Build, Component, Host, getAssetPath, h, State, Prop, Event, EventEmitter, Listen } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport { getDataInStore } from 'services/grw-db.service';\nimport state from 'store/store';\nimport Swiper, { Keyboard, Navigation, Pagination } from 'swiper';\nimport { TouristicEvent, Trek } from 'types/types';\n\n@Component({\n tag: 'grw-touristic-event-card',\n styleUrl: 'grw-touristic-event-card.scss',\n shadow: true,\n})\nexport class GrwTouristicEvent {\n @Event() touristicEventCardPress: EventEmitter<number>;\n swiperTouristicEvent?: Swiper;\n swiperTouristicEventRef?: HTMLDivElement;\n prevElTouristicEventRef?: HTMLDivElement;\n nextElTouristicEventRef?: HTMLDivElement;\n paginationElTouristicEventRef?: HTMLDivElement;\n\n @Prop() fontFamily = 'Roboto';\n\n @Prop() touristicEvent: TouristicEvent;\n @Prop() isLargeView = false;\n @Prop() isInsideHorizontalList = false;\n @State() displayFullscreen = false;\n\n @Event() cardTouristicEventMouseOver: EventEmitter<number>;\n @Event() cardTouristicEventMouseLeave: EventEmitter;\n\n @State() offline = false;\n\n @Listen('trekDownloadedSuccessConfirm', { target: 'window' })\n onTrekDownloadedSuccessConfirm() {\n this.swiperTouristicEvent.slideTo(0);\n this.offline = true;\n }\n\n @Listen('trekDeleteSuccessConfirm', { target: 'window' })\n onTrekDeleteSuccessConfirm() {\n this.offline = false;\n }\n\n componentDidLoad() {\n this.handleOffline();\n if (this.swiperTouristicEventRef) {\n this.swiperTouristicEvent = new Swiper(this.swiperTouristicEventRef, {\n modules: [Navigation, Pagination, Keyboard],\n navigation: {\n prevEl: this.prevElTouristicEventRef,\n nextEl: this.nextElTouristicEventRef,\n },\n pagination: { el: this.paginationElTouristicEventRef },\n allowTouchMove: false,\n keyboard: false,\n loop: true,\n });\n this.swiperTouristicEventRef.onfullscreenchange = () => {\n this.displayFullscreen = !this.displayFullscreen && !this.offline;\n if (this.displayFullscreen) {\n this.swiperTouristicEvent.keyboard.enable();\n } else {\n this.swiperTouristicEvent.keyboard.disable();\n }\n };\n }\n }\n\n async handleOffline() {\n if (state.currentTrek) {\n const trekInStore: Trek = await getDataInStore('treks', state.currentTrek.id);\n const touristicEventInStore: TouristicEvent = await getDataInStore('touristicEvents', this.touristicEvent.id);\n this.offline = trekInStore && trekInStore.offline && touristicEventInStore && touristicEventInStore.offline;\n }\n }\n\n handleFullscreen() {\n if (this.touristicEvent.attachments && this.touristicEvent.attachments[0] && this.touristicEvent.attachments[0].url) {\n this.swiperTouristicEventRef.requestFullscreen();\n }\n }\n\n @Listen('mouseover')\n handleMouseOver() {\n this.cardTouristicEventMouseOver.emit(this.touristicEvent.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.cardTouristicEventMouseLeave.emit();\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n const touristicEventType = state.touristicEventTypes.find(touristicEventType => touristicEventType.id === this.touristicEvent.type);\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n 'width': this.isLargeView ? '100%' : 'auto',\n }}\n >\n <div\n part=\"touristic-event-card\"\n class={\n this.isLargeView\n ? `touristic-event-card touristic-event-card-large-view-container${\n state.selectedTouristicEventId === this.touristicEvent.id ? ' selected-touristic-event-card' : ''\n }${!this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''}`\n : ` touristic-event-card touristic-event-card-container${state.selectedTouristicEventId === this.touristicEvent.id ? ' selected-touristic-event-card' : ''}${\n !this.isInsideHorizontalList ? ' is-inside-vertical-list' : ''\n }`\n }\n onClick={() => {\n if (!this.isInsideHorizontalList) {\n this.touristicEventCardPress.emit(this.touristicEvent.id);\n }\n }}\n >\n <div part=\"touristic-event-img-container\" class=\"touristic-event-img-container\">\n {this.isInsideHorizontalList ? (\n <div part=\"swiper-touristic-event\" class=\"swiper swiper-touristic-event\" ref={el => (this.swiperTouristicEventRef = el)}>\n <div part=\"swiper-wrapper\" class=\"swiper-wrapper\">\n {this.touristicEvent.attachments.length > 0 ? (\n this.touristicEvent.attachments\n .filter(attachment => attachment.type === 'image')\n .map(attachment => (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img\n part=\"touristic-event-img\"\n class={`touristic-event-img${this.displayFullscreen ? ' img-fullscreen' : ''}`}\n src={this.displayFullscreen ? attachment.url : attachment.thumbnail}\n loading=\"lazy\"\n /* @ts-ignore */\n onerror={event => {\n event.target.onerror = null;\n event.target.className = 'default-touristic-event-img';\n event.target.src = defaultImageSrc;\n }}\n onClick={() => this.handleFullscreen()}\n />\n </div>\n ))\n ) : (\n <div part=\"swiper-slide\" class=\"swiper-slide\">\n <img\n part=\"default-touristic-event-img\"\n class=\"default-touristic-event-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={defaultImageSrc}\n loading=\"lazy\"\n />\n </div>\n )}\n </div>\n <div\n style={{ display: this.offline ? 'none' : 'flex' }}\n part=\"swiper-pagination\"\n class=\"swiper-pagination\"\n ref={el => (this.paginationElTouristicEventRef = el)}\n ></div>\n <div style={{ display: this.offline ? 'none' : 'flex' }} part=\"swiper-button-prev\" class=\"swiper-button-prev\" ref={el => (this.prevElTouristicEventRef = el)}></div>\n <div style={{ display: this.offline ? 'none' : 'flex' }} part=\"swiper-button-next\" class=\"swiper-button-next\" ref={el => (this.nextElTouristicEventRef = el)}></div>\n </div>\n ) : this.touristicEvent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n <img\n part=\"touristic-event-img\"\n class=\"touristic-event-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={`${this.touristicEvent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`}\n loading=\"lazy\"\n />\n ) : (\n <div></div>\n )}\n </div>\n <div part=\"touristic-event-sub-container\" class=\"touristic-event-sub-container\">\n <div part=\"touristic-event-type-container\" class=\"touristic-event-type-container\">\n {touristicEventType && touristicEventType.pictogram && (\n <img\n part=\"touristic-event-type-img\"\n class=\"touristic-event-type-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={touristicEventType.pictogram}\n />\n )}\n {touristicEventType && touristicEventType.type && (\n <div part=\"touristic-event-type-name\" class=\"touristic-event-type-name\">\n {touristicEventType.type}\n </div>\n )}\n </div>\n <div part=\"touristic-event-name\" class=\"touristic-event-name\">\n {this.touristicEvent.name}\n </div>\n {(this.touristicEvent.begin_date || this.touristicEvent.end_date) && (\n <div part=\"touristic-event-date-container\" class=\"touristic-event-date-container\">\n {this.touristicEvent.begin_date === this.touristicEvent.end_date && (\n <div part=\"touristic-event-date\" class=\"touristic-event-date\">\n {translate[state.language].date} : {this.touristicEvent.begin_date}\n </div>\n )}\n {this.touristicEvent.begin_date && this.touristicEvent.begin_date !== this.touristicEvent.end_date && (\n <div part=\"touristic-event-date\" class=\"touristic-event-date\">\n {translate[state.language].startDate} : {this.touristicEvent.begin_date}\n </div>\n )}\n {this.touristicEvent.end_date && this.touristicEvent.begin_date !== this.touristicEvent.end_date && (\n <div part=\"touristic-event-date\" class=\"touristic-event-date\">\n {translate[state.language].endDate} : {this.touristicEvent.end_date}\n </div>\n )}\n </div>\n )}\n </div>\n\n {this.isInsideHorizontalList && (\n <div part=\"touristic-event-more-detail-container\" class=\"touristic-event-more-detail-container\">\n <button part=\"more-details-button\" class=\"more-details-button\" onClick={() => this.touristicEventCardPress.emit(this.touristicEvent.id)}>\n Plus de détails\n </button>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n",".material-symbols {\n font-family: 'Material Symbols Outlined';\n}\n\n.material-symbols-outlined {\n font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;\n}\n\n.trek-card-container,\n.trek-card-large-view-container {\n cursor: pointer;\n font-family: var(--font-family);\n border-radius: var(--border-radius, 12px);\n box-shadow: var(--elevation-1);\n background-color: var(--color-surface-container-low);\n .trek-img {\n object-fit: cover;\n border-top-left-radius: var(--border-radius, 12px);\n border-top-right-radius: var(--border-radius, 12px);\n }\n .default-trek-img {\n background-color: var(--color-primary-container);\n object-fit: contain;\n }\n .trek-sub-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 8px 16px;\n .trek-name {\n color: var(--color-primary-app);\n font-size: 22px;\n line-height: 28px;\n font-weight: 400;\n margin-bottom: 8px;\n }\n .trek-departure {\n color: var(--color-on-surface);\n font-size: 16px;\n line-height: 24px;\n font-weight: 500;\n margin-bottom: 4px;\n }\n .trek-themes-container {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n .trek-theme {\n background-color: var(--color-secondary-container);\n color: var(--color-on-secondary-container);\n border-radius: var(--border-radius, 40px);\n padding: 8px 16px;\n margin: 0px 8px 8px 0px;\n box-shadow: var(--elevation-0);\n height: 32px;\n gap: 8px;\n box-sizing: border-box;\n text-align: start;\n vertical-align: middle;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n position: relative;\n text-wrap: nowrap;\n }\n }\n .trek-icons-labels-container {\n padding: 0px 0px 8px 0px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 16px;\n .trek-icon-label {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n width: calc((100% / 2) - 16px);\n .trek-icon {\n font-size: 24px;\n width: 24px;\n height: auto;\n color: var(--color-primary-app);\n margin-right: 8px;\n }\n .network {\n &:not(:last-child) {\n margin-right: 16px;\n }\n }\n .trek-label {\n text-overflow: ellipsis;\n overflow: hidden;\n }\n }\n .practice {\n img {\n background-color: var(--color-primary-app);\n }\n }\n }\n }\n}\n\n.selected-trek-card {\n box-shadow: var(--elevation-2);\n}\n\n.trek-card-container {\n width: 100%;\n max-width: 350px;\n .trek-img-container {\n height: 200px;\n .trek-img {\n width: 100%;\n height: 100%;\n }\n }\n}\n\n.trek-card-large-view-container {\n width: 100%;\n display: flex;\n flex-direction: row;\n .trek-img-container {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n .trek-img {\n width: 250px;\n height: 200px;\n }\n }\n}\n\n.trek-step-card {\n width: auto;\n}\n\n.trek-card-container .trek-sub-container .trek-departure {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n height: 56px;\n}\n\n.trek-card-container .trek-sub-container .trek-name {\n height: 56px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n}\n\n.is-current-step {\n background-color: var(--color-surface-variant);\n}\n\n.practice {\n .trek-icon {\n border-radius: 100%;\n padding: 2px;\n max-height: 20px;\n max-width: 20px;\n }\n}\n\n.trek-img-container {\n position: relative;\n .offline-indicator {\n display: flex;\n align-items: center;\n justify-content: center;\n background: #ffffff;\n border-radius: 24px;\n height: 24px;\n width: 24px;\n top: 16px;\n right: 16px;\n position: absolute;\n font-size: 24px;\n color: var(--color-on-surface);\n }\n}\n","import { Component, Host, h, Prop, Event, EventEmitter, State, Listen, Fragment, getAssetPath, Build } from '@stencil/core';\nimport { trekIsAvailableOffline } from 'services/treks.service';\nimport state, { onChange } from 'store/store';\nimport { City, Difficulty, Practice, Route, Themes, Trek } from 'types/types';\nimport { formatDuration, formatLength, formatAscent } from 'utils/utils';\n\n@Component({\n tag: 'grw-trek-card',\n styleUrl: 'grw-trek-card.scss',\n shadow: true,\n})\nexport class GrwTrekCard {\n @Event() trekCardPress: EventEmitter<number>;\n @State() currentTrek: Trek;\n @State() difficulty: Difficulty;\n @State() route: Route;\n @State() practice: Practice;\n @State() themes: Themes;\n @State() departureCity: City;\n @Prop() trek: Trek;\n\n @Prop() fontFamily = 'Roboto';\n @Prop() colorPrimaryApp = '#6b0030';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() isLargeView = false;\n @Prop() isStep: false;\n\n @Event() cardTrekMouseOver: EventEmitter<number>;\n @Event() cardTrekMouseLeave: EventEmitter;\n\n @State() isAvailableOffline = false;\n @State() showDefaultImage = false;\n\n @Listen('trekDownloadedSuccessConfirm', { target: 'window' })\n onTrekDownloadedSuccessConfirm() {\n this.isAvailableOffline = true;\n }\n\n @Listen('trekDeleteSuccessConfirm', { target: 'window' })\n onTrekDeleteSuccessConfirm() {\n this.isAvailableOffline = false;\n }\n\n connectedCallback() {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);\n this.route = state.routes.find(route => route.id === this.currentTrek.route);\n this.practice = state.practices.find(practice => practice.id === this.currentTrek.practice);\n this.themes = state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));\n this.departureCity = state.cities.find(city => city.id === this.currentTrek.departure_city);\n this.handleOffline(this.currentTrek.id);\n }\n onChange('currentTrek', () => {\n this.currentTrek = this.trek ? this.trek : state.currentTrek;\n if (this.currentTrek) {\n this.difficulty = this.currentTrek.difficulty && state.difficulties ? state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty) : null;\n this.route = this.currentTrek.route && state.routes ? state.routes.find(route => route.id === this.currentTrek.route) : null;\n this.practice = this.currentTrek.practice && state.practices ? state.practices.find(practice => practice.id === this.currentTrek.practice) : null;\n this.themes = this.currentTrek.themes && state.themes ? state.themes.filter(theme => this.currentTrek.themes.includes(theme.id)) : null;\n this.departureCity = this.currentTrek.departure_city && state.cities ? state.cities.find(city => city.id === this.currentTrek.departure_city) : null;\n this.handleOffline(this.currentTrek.id);\n }\n });\n }\n\n async handleOffline(trekId) {\n this.isAvailableOffline = await trekIsAvailableOffline(trekId);\n }\n\n @Listen('mouseover')\n handleMouseOver() {\n this.cardTrekMouseOver.emit(this.currentTrek.id);\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.cardTrekMouseLeave.emit();\n }\n\n render() {\n const defaultImageSrc = getAssetPath(`${Build.isDev ? '/' : ''}assets/default-image.svg`);\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n 'width': this.isLargeView ? '100%' : 'auto',\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-surface': this.colorOnSurface,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-surface-container-low': this.colorSurfaceContainerLow,\n }}\n >\n {this.currentTrek && (\n <div\n part=\"trek-card\"\n class={\n this.isStep\n ? `trek-card trek-card-container trek-step-card${state.selectedStepId === this.currentTrek.id ? ' selected-trek-card' : ''} ${\n state.currentTrek.id === this.currentTrek.id ? 'is-current-step' : ''\n }`\n : this.isLargeView\n ? `trek-card trek-card-large-view-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n : `trek-card trek-card-container${state.selectedTrekId === this.currentTrek.id ? ' selected-trek-card' : ''}`\n }\n onClick={() => this.trekCardPress.emit(this.currentTrek.id)}\n >\n <div part=\"trek-img-container\" class=\"trek-img-container\">\n {this.isAvailableOffline && (\n <div part=\"offline-indicator\" class=\"offline-indicator\">\n {/* @ts-ignore */}\n <span translate={false} part=\"icon\" class=\"material-symbols material-symbols-outlined icon\">\n offline_pin\n </span>\n </div>\n )}\n {this.currentTrek.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (\n <img\n part=\"trek-img\"\n class=\"trek-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={`${this.currentTrek.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`}\n loading=\"lazy\"\n /* @ts-ignore */\n onerror={event => {\n event.target.onerror = null;\n event.target.className = 'trek-img default-trek-img';\n event.target.src = defaultImageSrc;\n }}\n />\n ) : (\n <img\n part=\"trek-img\"\n class=\"trek-img default-trek-img\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={defaultImageSrc}\n loading=\"lazy\"\n />\n )}\n </div>\n <div part=\"trek-sub-container\" class=\"trek-sub-container\">\n {this.departureCity && (\n <div part=\"trek-departure\" class=\"trek-departure\">\n {this.departureCity.name}\n </div>\n )}\n <div part=\"trek-name\" class=\"trek-name\">\n {this.currentTrek?.name}\n </div>\n {!this.isStep && this.themes && (\n <div part=\"trek-themes-container\" class=\"trek-themes-container\">\n {this.themes.map(theme => (\n <div part=\"trek-theme\" class=\"trek-theme\">\n {theme.label}\n </div>\n ))}\n </div>\n )}\n <div part=\"trek-icons-labels-container\" class=\"trek-icons-labels-container\">\n {this.difficulty && (\n <div part=\"trek-icon-label\" class=\"trek-icon-label difficulty\">\n {this.difficulty.pictogram && (\n <img\n part=\"trek-icon\"\n class=\"trek-icon\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={this.difficulty.pictogram}\n />\n )}\n <span part=\"trek-label\" class=\"trek-label\">\n {this.difficulty.label}\n </span>\n </div>\n )}\n <div part=\"trek-icon-label\" class=\"trek-icon-label duration\">\n {/* @ts-ignore */}\n <span part=\"trek-icon\" class=\"trek-icon material-symbols material-symbols-outlined\" translate={false}>\n timelapse\n </span>\n <span part=\"trek-label\" class=\"trek-label\">\n {formatDuration(this.currentTrek.duration)}\n </span>\n </div>\n <div part=\"trek-icon-label\" class=\"trek-icon-label length\">\n {/* @ts-ignore */}\n <span part=\"trek-icon\" class=\"trek-icon material-symbols material-symbols-outlined\" translate={false}>\n open_in_full\n </span>\n <span part=\"trek-label\" class=\"trek-label\">\n {formatLength(this.currentTrek.length_2d)}\n </span>\n </div>\n <div part=\"trek-icon-label\" class=\"trek-icon-label ascent\">\n {/* @ts-ignore */}\n <span part=\"trek-icon\" class=\"trek-icon material-symbols material-symbols-outlined\" translate={false}>\n moving\n </span>\n <span part=\"trek-label\" class=\"trek-label\">\n {formatAscent(this.currentTrek.ascent)}\n </span>\n </div>\n {!this.isStep && (\n <Fragment>\n <div part=\"trek-icon-label\" class=\"trek-icon-label route\">\n {this.route?.pictogram && (\n <img\n part=\"trek-icon\"\n class=\"trek-icon\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={this.route.pictogram}\n />\n )}\n <span part=\"trek-label\" class=\"trek-label\">\n {this.route?.route}\n </span>\n </div>\n <div part=\"trek-icon-label\" class=\"trek-icon-label practice\">\n {this.practice?.pictogram && (\n <img\n part=\"trek-icon\"\n class=\"trek-icon\"\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n src={this.practice.pictogram}\n />\n )}\n <span part=\"trek-label\" class=\"trek-label\">\n {this.practice?.name}\n </span>\n </div>\n </Fragment>\n )}\n </div>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"kPAAA,MAAMA,EAAwB,yhE,MCWjBC,EAAwB,M,+FAGA,K,0CACa,M,4CAG7B,M,sBACS,K,CAE5BC,mBACEC,KAAKC,gBACL,GAAID,KAAKE,eAAgB,CACvBF,KAAKG,qCAAuCH,KAAKE,eAAeE,aAAeJ,KAAKE,eAAeG,Y,EAIvGC,mCACEN,KAAKO,yBAA2BP,KAAKO,uB,CAGvCC,oBACER,KAAKS,YAAYC,KAAK,CAAEC,SAAUX,KAAKY,gBAAgBD,SAAUE,UAAWb,KAAKY,gBAAgBC,W,CAGnGC,sBACE,GAAId,KAAKY,gBAAiB,CACxB,MAAMG,QAA0BC,EAAe,QAASC,EAAMC,YAAYC,IAC1E,MAAMC,QAAgDJ,EAAe,mBAAoBhB,KAAKY,gBAAgBO,IAC9GnB,KAAKqB,QAAUN,GAAeA,EAAYM,SAAWC,QAAQF,E,EAIjEG,SACE,MAAMC,EAAkBC,EAAa,GAAuB,8BAC5D,OACEC,EAACC,EAAI,KACF3B,KAAKY,gBAAgBgB,WACpBF,EAAA,OAAKG,KAAK,iCAAiCC,MAAM,kCAC/CJ,EAAA,OACEG,KAAK,uBACLC,MAAM,uBAENC,YAAY,YACZC,IAAKhC,KAAKY,gBAAgBgB,UAC1BK,QAAQ,OAERC,QAASC,IACP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b,EAAA,QAAMG,KAAK,aAAaC,MAAM,cAC3BoK,EAAalM,KAAKkB,YAAYiL,WAGjCnM,KAAK0L,QACLhK,EAAC0K,EAAQ,KACP1K,EAAA,OAAKG,KAAK,kBAAkBC,MAAM,2BAC/BuK,EAAArM,KAAKuK,SAAK,MAAA8B,SAAA,SAAAA,EAAE1G,YACXjE,EAAA,OACEG,KAAK,YACLC,MAAM,YAENC,YAAY,YACZC,IAAKhC,KAAKuK,MAAM5E,YAGpBjE,EAAA,QAAMG,KAAK,aAAaC,MAAM,eAC3BwK,EAAAtM,KAAKuK,SAAK,MAAA+B,SAAA,SAAAA,EAAE/B,QAGjB7I,EAAA,OAAKG,KAAK,kBAAkBC,MAAM,8BAC/ByK,EAAAvM,KAAK4G,YAAQ,MAAA2F,SAAA,SAAAA,EAAE5G,YACdjE,EAAA,OACEG,KAAK,YACLC,MAAM,YAENC,YAAY,YACZC,IAAKhC,KAAK4G,SAASjB,YAGvBjE,EAAA,QAAMG,KAAK,aAAaC,MAAM,eAC3B0K,EAAAxM,KAAK4G,YAAQ,MAAA4F,SAAA,SAAAA,EAAEnK,W"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as i,h as e,F as s,H as r,g as n}from"./p-10414485.js";import{t as o}from"./p-39a17fb7.js";import{s as a,r as l,h}from"./p-4e9a0e21.js";const c="grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);overflow:hidden;max-width:100dvw;max-height:100dvh}.grw-app-container{position:relative;background-color:var(--color-background);width:100%;height:100%;overflow:hidden}.grw-languages-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;margin:16px 16px 0px 0px}.grw-header-container,.grw-large-view-header-container{height:var(--header-height)}.grw-header-container .grw-arrow-back-container,.grw-large-view-header-container .grw-arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.grw-header-container .grw-arrow-back-container .grw-arrow-back-icon,.grw-large-view-header-container .grw-arrow-back-container .grw-arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:var(--border-radius, 50%);height:48px;width:48px;padding:0px;text-align:left}.grw-handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.grw-handle-search-filters-container .grw-handle-search-container{width:calc(50% + 48px);max-width:220px}.grw-handle-search-filters-container .grw-handle-filters-container{margin-left:16px}.grw-header-detail{height:64px}.grw-large-view-header-container .grw-handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.grw-init-loader-container,.grw-loader-container,.grw-large-view-loader-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.grw-content-container{position:relative;display:-ms-flexbox;display:flex}.grw-content-treks{height:calc(100% - var(--header-height) - var(--header-with-segment) - var(--header-with-languages))}.grw-content-trek{height:100%}.grw-large-view-app-treks-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:100%;height:100%}.grw-app-map-container,.grw-large-view-app-map-container{width:100%;height:100%}.grw-map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.grw-init-loader-container,.grw-loader-container{width:100%}.grw-app-treks-list-container,.grw-app-trek-detail-container,.grw-app-touristic-content-detail-container,.grw-app-touristic-event-detail-container{width:100%}grw-treks-list,grw-touristic-contents-list{max-height:calc(100vh - var(--header-height))}grw-trek-detail{position:relative;max-height:calc(100vh - 64px - 48px)}grw-touristic-content-detail,grw-touristic-event-detail{position:relative;max-height:calc(100vh - 64px)}.grw-app-map-container{width:100%;position:absolute}.grw-large-view-loader-container{width:50%}.grw-large-view-app-treks-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container{width:50%}.grw-large-view-app-map-container{position:relative;width:50%}.grw-error-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%;margin-top:16px;font-family:var(--font-family);font-size:16px}.grw-error-container grw-common-button{margin-top:16px}.modal-container{z-index:40000;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:-64px;left:0px;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;margin-right:16px}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-on-primary-container);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}.grw-offline-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 0px 0px 16px;height:48px}.grw-offline-container .grw-offline-label{display:-ms-flexbox;display:flex}.grw-offline-container grw-switch{margin-top:-10px}";const d=class{constructor(e){t(this,e);this.trekDownloadPress=i(this,"trekDownloadPress",7);this.trekDeletePress=i(this,"trekDeletePress",7);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTouristicContent=false;this.showTouristicEvent=false;this.showHomeMap=false;this.showTrekMap=false;this.showTouristicContentMap=false;this.showTouristicEventMap=false;this.showFilters=false;this.isLargeView=false;this.currentTrekId=undefined;this.currentTouristicContentId=undefined;this.currentTouristicEventId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.center=undefined;this.zoom=undefined;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.weather=false;this.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.rounded=true;this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.trekTilesMinZoomOffline=12;this.trekTilesMaxZoomOffline=16;this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}onTrekCardPress(t){this.currentTouristicContentId=null;this.showTouristicContent=false;a.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;a.currentTouristicEvent=null;const i=a.parentTrekId?a.parentTrekId:a.currentTrekSteps?this.currentTrekId:null;a.currentTrek=null;this.currentTrekId=t.detail;a.mode="treks";this.showTrek=true;this.showTrekMap=false;const e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());if(a.currentTrekSteps){e.searchParams.set("parenttrek",i.toString())}window.history.pushState({},"",e)}onParentTrekPress(t){a.currentTrek=null;this.currentTrekId=t.detail;a.mode="treks";this.showTrek=true;this.showTrekMap=false;const i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());i.searchParams.delete("parenttrek");window.history.pushState({},"",i)}onTouristicContentCardPress(t){a.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;a.mode="touristicContents";this.showTouristicContent=true;this.showTouristicContentMap=false;const i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",i)}onTouristiceEventCardPress(t){a.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;a.mode="touristicEvents";this.showTouristicEvent=true;this.showTouristicEventMap=false;const i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",i)}onWindowResize(){this.handleView()}onCenterOnMap(){if(!this.isLargeView){this.showTrekMap=true}}onTrekDownloadConfirm(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;this.showOfflineModal=true;this.showConfirmModal=true}onTrekDownloadedSuccessConfirm(){this.showLoaderModal=false;this.showSuccessModal=true}onTrekDeleteConfirm(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true}onTrekDeleteSuccessConfirm(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true}watchPropHandler(){window.dispatchEvent(new window.Event("resize"))}componentWillLoad(){if(this.treks){a.mode="treks"}else if(this.touristicContents){a.mode="touristicContents"}else if(this.touristicEvents){a.mode="touristicEvents"}const t=new URL(window.location.toString());const i=t.searchParams.get("trek");const e=t.searchParams.get("parenttrek");const s=t.searchParams.get("touristiccontent");const r=t.searchParams.get("touristicevent");if(i){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);a.parentTrekId=e?Number(e):null;this.currentTrekId=Number(i);a.mode="treks";this.showTrek=true}else if(s){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(s);a.mode="touristicContents";this.showTouristicContent=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(r);a.mode="touristicEvents";this.showTouristicEvent=true}}componentDidLoad(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()}onDetailsClose(){if(this.treks){a.mode="treks"}else if(this.touristicContents){a.mode="touristicContents"}else if(this.touristicEvents){a.mode="touristicEvents"}this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false;this.showTouristicEvent=false;this.showTouristicEventMap=false;a.currentTouristicContent=null;a.currentTouristicEvent=null;a.currentTrek=null;a.currentTrekSteps=null;a.parentTrekId=null;this.currentTrekId=null;this.showTrek=false}handleView(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView}handleFilters(){this.showFilters=!this.showFilters}handleBackButton(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){this.onDetailsClose();const t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");window.history.pushState({},"",t)}else{window.history.back()}}handlePopState(){const t=new URL(window.location.toString());const i=Number(t.searchParams.get("trek"));const e=t.searchParams.get("touristiccontent");const s=t.searchParams.get("touristicevent");if(i&&this.currentTrekId!==i){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;a.currentTouristicContent=null;a.currentTouristicEvent=null;a.currentTrek=null;this.currentTrekId=i;a.mode="treks";this.showTrek=true}else if(!i&&!e&&!s){this.onDetailsClose()}}handleShowMap(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else if(this.showTouristicContent){this.showTouristicContentMap=!this.showTouristicContentMap}else if(this.showTouristicEvent){this.showTouristicEventMap=!this.showTouristicEventMap}else{this.showHomeMap=!this.showHomeMap}}getMapVisibilityIconButton(){let t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t}getMapVisibilityLabelButton(){let t;if(a.language){if(this.showTrek){t=this.showTrekMap?o[a.language].showDetails:o[a.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?o[a.language].showDetails:o[a.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?o[a.language].showDetails:o[a.language].showMap}else{t=this.showHomeMap?o[a.language].showList:o[a.language].showMap}}return t}reload(){window.location.reload()}disconnectedCallback(){l();window.removeEventListener("popstate",this.handlePopStateBind)}handleOkDeleteModal(){this.trekDeletePress.emit();this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true}handleOkDownloadModal(){this.trekDownloadPress.emit();this.showConfirmModal=false;this.showLoaderModal=true}handleCancelModal(){this.showOfflineModal=false}handleOffline(){a.offlineTreks=!a.offlineTreks;a.currentTreks=h()}render(){return e(r,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--color-sensitive-area":this.colorSensitiveArea,"--app-width":this.appWidth,"--app-height":this.appHeight,"--header-height":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1?this.enableOffline?"136px":"188px":this.enableOffline?"116px":"64px","--header-with-segment":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1?"16px":"0px","--header-with-languages":this.languages.split(",").length>1?"38px":"0px","--border-radius":this.rounded?"":"0px"}},!a.currentTreks&&!a.currentTrek&&!a.currentTouristicContent&&!a.currentTouristicEvent&&!a.currentTouristicContents&&!a.currentTouristicEvents&&e("div",{class:"grw-init-loader-container"},e("grw-loader",{exportparts:"loader","color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&a.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!a.currentTreks&&e("grw-treks-provider",{api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices}),this.showTrek&&this.currentTrekId&&!a.currentTrek&&e("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices}),this.showTouristicContent&&this.currentTouristicContentId&&e("grw-touristic-content-provider",{api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&e("grw-touristic-event-provider",{api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.touristicContents&&a.mode==="touristicContents"&&!a.currentTouristicContents&&!this.showTouristicContent&&e("grw-touristic-contents-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.touristicEvents&&a.mode==="touristicEvents"&&!a.currentTouristicEvents&&!this.showTouristicEvent&&e("grw-touristic-events-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),(a.currentTreks||a.currentTrek||a.touristicContents||a.touristicEvents||a.currentTouristicContent||a.currentTouristicEvent||a.networkError)&&e("div",{class:"grw-app-container"},a.languages&&a.languages.length>1&&e("div",{class:"grw-languages-container"},e("grw-select-language",null)),e("div",{class:`${this.isLargeView?"grw-large-view-header-container":"grw-header-container"}${this.showTrek||this.showTouristicContent||this.showTouristicEvent?" grw-header-detail":""}`},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&e("grw-segmented-segment",{fontFamily:this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent?e(s,null,e("div",{class:"grw-handle-search-filters-container"},e("div",{class:"grw-handle-search-container"},e("grw-search",{fontFamily:this.fontFamily})),e("div",{class:"grw-handle-filters-container"},e("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label",fontFamily:this.fontFamily,action:()=>this.handleFilters(),icon:"filter_list",name:o[a.language].filter}))),this.enableOffline&&e("div",{part:"grw-offline-container",class:"grw-offline-container"},e("div",{class:"grw-offline-label"},"Afficher uniquement les itinéraires hors ligne"),e("grw-switch",{exportparts:"common-button,common-button-icon,common-button-label",fontFamily:this.fontFamily,action:()=>this.handleOffline()}))):e("div",{class:"grw-arrow-back-container"},e("button",{onClick:()=>this.handleBackButton(),class:"grw-arrow-back-icon"},e("span",{translate:false,part:"icon",class:"material-symbols material-symbols-outlined icon"},"arrow_back")))),e("div",{class:`grw-content-container ${this.showTrek||this.showTouristicContent||this.showTouristicEvent?"grw-content-trek":"grw-content-treks"}`},a.networkError&&e("div",{class:"grw-error-container"},"Une erreur est survenue.",e("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label",icon:"refresh",name:"Recharger la page",action:()=>this.reload()})),e("div",{class:this.isLargeView?"grw-large-view-app-treks-list-container":"grw-app-treks-list-container",style:{display:this.showTrek||this.showTouristicContent||this.showTouristicEvent?"none":"flex",position:this.showTrek?"absolute":"relative"}},a.mode==="treks"&&this.treks&&e("grw-treks-list",{"is-large-view":this.isLargeView,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}),a.mode==="touristicContents"&&this.touristicContents&&e("grw-touristic-contents-list",{"is-large-view":this.isLargeView,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}),a.mode==="touristicEvents"&&this.touristicEvents&&e("grw-touristic-events-list",{"is-large-view":this.isLargeView,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})),(this.showTrek&&!a.currentTrek||this.showTouristicContent&&!a.currentTouristicContent||this.showTouristicEvent&&!a.currentTouristicEvent||!a.treks&&a.mode==="treks"&&!this.showTrek||!a.touristicContents&&a.mode==="touristicContents"&&!this.showTouristicContent||!a.touristicEvents&&a.mode==="touristicEvents"&&!this.showTouristicEvent)&&e("div",{class:this.isLargeView?"grw-large-view-loader-container":"grw-loader-container"},e("grw-loader",{exportparts:"loader","color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),this.showTrek&&e("div",{class:this.isLargeView?"grw-large-view-app-trek-detail-container":"grw-app-trek-detail-container"},e("grw-trek-detail",{style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView,"emergency-number":this.emergencyNumber,defaultBackgroundLayerUrl:this.urlLayer.split(",http").map(((t,i)=>i===0?t:"http"+t))[0],defaultBackgroundLayerAttribution:this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline,"global-tiles-min-zoom-offline":this.globalTilesMinZoomOffline,"global-tiles-max-zoom-offline":this.globalTilesMaxZoomOffline,"trek-tiles-min-zoom-offline":this.trekTilesMinZoomOffline,"trek-tiles-max-zoom-offline":this.trekTilesMaxZoomOffline}),this.showOfflineModal&&e("div",{class:"modal-container"},e("div",{class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&e(s,null,e("div",{class:"modal-message-container"},"Êtes-vous sûr de vouloir rendre cet itinéraire disponible hors ligne ?"),e("div",{class:"modal-buttons-container"},e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},"ANNULER"),e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleOkDownloadModal()},"OK"))),this.showConfirmDeleteModal&&e(s,null,e("div",{class:"modal-message-container"},"Êtes-vous sûr de vouloir supprimer cet itinéraire du hors ligne ?"),e("div",{class:"modal-buttons-container"},e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},"ANNULER"),e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleOkDeleteModal()},"OK"))),this.showLoaderModal&&e(s,null,e("div",{class:"modal-message-container"},e("div",{class:"modal-loader"}),this.showDeletingMessage?"Suppression en cours":"Téléchargement en cours")),this.showSuccessModal&&e(s,null,e("div",{class:"modal-message-container"},this.showDeleteSuccessMessage?"L'itinéraire est supprimé du hors ligne":"L'itinéraire est disponible hors ligne"),e("div",{class:"modal-button-container"},e("button",{part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},"OK")))))),this.showTouristicContent&&e("div",{class:this.isLargeView?"grw-large-view-app-touristic-content-detail-container":"grw-app-touristic-content-detail-container"},e("grw-touristic-content-detail",{style:{visibility:!this.showTouristicContentMap||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicContentMap?"1":"0"},fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),this.showTouristicEvent&&e("div",{class:this.isLargeView?"grw-large-view-app-touristic-event-detail-container":"grw-app-touristic-event-detail-container"},e("grw-touristic-event-detail",{style:{visibility:!this.showTouristicEventMap||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicEventMap?"1":"0"},fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),!a.networkError&&e("grw-map",{exportparts:"map,elevation,map-bottom-space,map-loader-container,loader",class:this.isLargeView?"grw-large-view-app-map-container":"grw-app-map-container",style:{visibility:this.showHomeMap&&!this.showTrek||this.showTrekMap&&this.showTrek||this.showTouristicContentMap&&this.showTouristicContent||this.showTouristicEventMap&&this.showTouristicEvent||this.isLargeView?"visible":"hidden",zIndex:this.showHomeMap||this.showTrekMap||this.showTouristicContentMap||this.showTouristicEventMap?"1":"0"},center:this.center,zoom:this.zoom,"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-background":this.colorBackground,"color-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon,"is-large-view":this.isLargeView,"use-gradient":this.useGradient,"trek-tiles-max-zoom-offline":this.trekTilesMaxZoomOffline})),(!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent||this.showTrek&&a.currentTrek||this.showTouristicContent&&a.currentTouristicContent||this.showTouristicEvent&&a.currentTouristicEvent)&&e("div",{class:"grw-map-visibility-button-container"},e("grw-extended-fab",{exportparts:"map-visibility-button,map-visibility-button-icon,map-visibility-button-label",fontFamily:this.fontFamily,action:()=>this.handleShowMap(),icon:()=>this.getMapVisibilityIconButton(),name:()=>this.getMapVisibilityLabelButton(),display:this.isLargeView?"none":"flex"}))),!this.showTrek&&this.showFilters&&e("grw-filters",{fontFamily:this.fontFamily,handleFilters:()=>this.handleFilters()}))}get appElement(){return n(this)}static get watchers(){return{isLargeView:["watchPropHandler"]}}};d.style=c;export{d as grw_app};
2
- //# sourceMappingURL=p-ae17f2a9.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["grwAppCss","GrwApp","this","largeViewSize","handlePopStateBind","handlePopState","bind","onTrekCardPress","event","currentTouristicContentId","showTouristicContent","state","currentTouristicContent","currentTouristicEventId","showTouristicEvent","currentTouristicEvent","parentTrek","parentTrekId","currentTrekSteps","currentTrekId","currentTrek","detail","mode","showTrek","showTrekMap","url","URL","window","location","toString","searchParams","set","history","pushState","onParentTrekPress","delete","onTouristicContentCardPress","showTouristicContentMap","onTouristiceEventCardPress","showTouristicEventMap","onWindowResize","handleView","onCenterOnMap","isLargeView","onTrekDownloadConfirm","showLoaderModal","showSuccessModal","showDeleteSuccessMessage","showDeletingMessage","showConfirmDeleteModal","showOfflineModal","showConfirmModal","onTrekDownloadedSuccessConfirm","onTrekDeleteConfirm","onTrekDeleteSuccessConfirm","watchPropHandler","dispatchEvent","Event","componentWillLoad","treks","touristicContents","touristicEvents","trekParam","get","touristicContentParam","touristicEventParam","replaceState","isInitialHistoryWithDetails","Number","componentDidLoad","addEventListener","onDetailsClose","appElement","getBoundingClientRect","width","showHomeMap","handleFilters","showFilters","handleBackButton","back","handleShowMap","getMapVisibilityIconButton","mapIconButton","getMapVisibilityLabelButton","mapLabelButton","language","translate","showDetails","showRoute","showMap","showList","reload","disconnectedCallback","reset","removeEventListener","handleOkDeleteModal","trekDeletePress","emit","handleOkDownloadModal","trekDownloadPress","handleCancelModal","handleOffline","offlineTreks","currentTreks","handleTreksFiltersAndSearch","render","h","Host","style","fontFamily","colorPrimaryApp","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","colorSensitiveArea","appWidth","appHeight","enableOffline","languages","split","length","rounded","currentTouristicContents","currentTouristicEvents","class","exportparts","api","portals","inBbox","cities","districts","structures","themes","routes","practices","networkError","Fragment","action","icon","name","filter","part","onClick","display","position","visibility","zIndex","weather","emergencyNumber","defaultBackgroundLayerUrl","urlLayer","map","index","defaultBackgroundLayerAttribution","attributionLayer","globalTilesMinZoomOffline","globalTilesMaxZoomOffline","trekTilesMinZoomOffline","trekTilesMaxZoomOffline","center","zoom","nameLayer","colorTrekLine","colorPoiIcon","useGradient"],"sources":["./src/components/grw-app/grw-app.scss?tag=grw-app","./src/components/grw-app/grw-app.tsx"],"sourcesContent":["grw-app {\n display: block;\n position: relative;\n width: var(--app-width);\n height: var(--app-height);\n overflow: hidden;\n max-width: 100dvw;\n max-height: 100dvh;\n}\n\n.grw-app-container {\n position: relative;\n background-color: var(--color-background);\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.grw-languages-container {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n margin: 16px 16px 0px 0px;\n}\n\n.grw-header-container,\n.grw-large-view-header-container {\n height: var(--header-height);\n .grw-arrow-back-container {\n display: flex;\n align-items: center;\n height: 100%;\n margin: 0px 16px;\n .grw-arrow-back-icon {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n color: var(--color-on-surface);\n border: none;\n background-color: var(--color-background);\n border-radius: var(--border-radius, 50%);\n height: 48px;\n width: 48px;\n padding: 0px;\n text-align: left;\n }\n }\n}\n\n.grw-handle-search-filters-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0px 16px;\n height: 64px;\n\n .grw-handle-search-container {\n width: calc(50% + 48px);\n max-width: 220px;\n }\n .grw-handle-filters-container {\n margin-left: 16px;\n }\n}\n\n.grw-header-detail {\n height: 64px;\n}\n\n.grw-large-view-header-container {\n .grw-handle-search-filters-container {\n justify-content: flex-start;\n }\n}\n\n.grw-init-loader-container,\n.grw-loader-container,\n.grw-large-view-loader-container {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n background-color: var(--color-background);\n}\n\n.grw-content-container {\n position: relative;\n display: flex;\n}\n\n.grw-content-treks {\n height: calc(100% - var(--header-height) - var(--header-with-segment) - var(--header-with-languages));\n}\n\n.grw-content-trek {\n height: 100%;\n}\n\n.grw-large-view-app-treks-list-container,\n.grw-large-view-app-trek-detail-container,\n.grw-large-view-app-touristic-content-detail-container,\n.grw-large-view-app-touristic-event-detail-container,\n.grw-large-view-app-treks-list-container,\n.grw-large-view-app-trek-detail-container {\n display: flex;\n flex-direction: column;\n max-width: 100%;\n height: 100%;\n}\n\n.grw-app-map-container,\n.grw-large-view-app-map-container {\n width: 100%;\n height: 100%;\n}\n\n.grw-map-visibility-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n position: absolute;\n bottom: 24px;\n z-index: 4;\n}\n\n.grw-init-loader-container,\n.grw-loader-container {\n width: 100%;\n}\n\n.grw-app-treks-list-container,\n.grw-app-trek-detail-container,\n.grw-app-touristic-content-detail-container,\n.grw-app-touristic-event-detail-container {\n width: 100%;\n}\n\ngrw-treks-list,\ngrw-touristic-contents-list {\n max-height: calc(100vh - var(--header-height));\n}\n\ngrw-trek-detail {\n position: relative;\n max-height: calc(100vh - 64px - 48px);\n}\n\ngrw-touristic-content-detail,\ngrw-touristic-event-detail {\n position: relative;\n max-height: calc(100vh - 64px);\n}\n\n.grw-app-map-container {\n width: 100%;\n position: absolute;\n}\n\n.grw-large-view-loader-container {\n width: 50%;\n}\n\n.grw-large-view-app-treks-list-container,\n.grw-large-view-app-trek-detail-container,\n.grw-large-view-app-touristic-content-detail-container,\n.grw-large-view-app-touristic-event-detail-container {\n width: 50%;\n}\n\n.grw-large-view-app-map-container {\n position: relative;\n width: 50%;\n}\n\n.grw-error-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n margin-top: 16px;\n font-family: var(--font-family);\n font-size: 16px;\n grw-common-button {\n margin-top: 16px;\n }\n}\n\n.modal-container {\n z-index: 40000;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: var(--font-family);\n top: -64px;\n left: 0px;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.6);\n\n .modal-content-container {\n display: flex;\n justify-content: center;\n flex-direction: column;\n width: 380px;\n height: 120px;\n padding: 16px;\n margin: 0px 16px;\n background-color: var(--color-background);\n border-radius: var(--border-radius, 8px);\n }\n\n .modal-message-container {\n display: flex;\n align-items: center;\n justify-content: center;\n\n .modal-loader {\n width: 16px;\n height: 16px;\n border: 3px solid var(--color-primary-container);\n border-bottom-color: var(--color-on-primary-container);\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: rotation 1s linear infinite;\n margin-right: 16px;\n }\n\n @keyframes rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n }\n\n .modal-buttons-container,\n .modal-button-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 16px;\n .modal-button {\n cursor: pointer;\n user-select: none;\n font-size: 14px;\n font-weight: 500;\n height: 32px;\n box-shadow: var(--elevation-0);\n border: none;\n -webkit-tap-highlight-color: transparent;\n line-height: 20px;\n color: var(--color-on-primary-container);\n background-color: transparent;\n font-family: var(--font-family);\n }\n }\n .modal-button-container {\n justify-content: flex-end;\n }\n}\n\n.grw-offline-container {\n display: flex;\n align-items: center;\n margin: 0px 0px 0px 16px;\n height: 48px;\n .grw-offline-label {\n display: flex;\n }\n grw-switch {\n margin-top: -10px;\n }\n}\n","import { Component, Host, h, Listen, State, Prop, Element, Watch, Event, EventEmitter, Fragment } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state, { reset } from 'store/store';\nimport { handleTreksFiltersAndSearch } from 'utils/utils';\n\n@Component({\n tag: 'grw-app',\n styleUrls: ['grw-app.scss'],\n shadow: false,\n})\nexport class GrwApp {\n @Element() appElement: HTMLElement;\n @State() showTrek = false;\n @State() showTouristicContent = false;\n @State() showTouristicEvent = false;\n @State() showHomeMap = false;\n @State() showTrekMap = false;\n @State() showTouristicContentMap = false;\n @State() showTouristicEventMap = false;\n @State() showFilters = false;\n @State() isLargeView = false;\n @State() currentTrekId: number;\n @State() currentTouristicContentId: number;\n @State() currentTouristicEventId: number;\n @Prop() appWidth: string = '100%';\n @Prop() appHeight: string = '100vh';\n @Prop() api: string;\n @Prop() languages = 'fr';\n @Prop() inBbox: string;\n @Prop() cities: string;\n @Prop() districts: string;\n @Prop() structures: string;\n @Prop() themes: string;\n @Prop() portals: string;\n @Prop() routes: string;\n @Prop() practices: string;\n @Prop() center: string;\n @Prop() zoom: number;\n @Prop() nameLayer: string;\n @Prop() urlLayer: string;\n @Prop() attributionLayer: string;\n @Prop() weather = false;\n @Prop() emergencyNumber: number;\n\n @Prop() fontFamily = 'Roboto';\n @Prop() colorPrimaryApp = '#6750a4';\n @Prop() colorOnPrimary = '#ffffff';\n @Prop() colorSurface = '#1c1b1f';\n @Prop() colorOnSurface = '#49454e';\n @Prop() colorSurfaceVariant = '#fef7ff';\n @Prop() colorOnSurfaceVariant = '#1c1b1f';\n @Prop() colorPrimaryContainer = '#eaddff';\n @Prop() colorOnPrimaryContainer = '#21005e';\n @Prop() colorSecondaryContainer = '#e8def8';\n @Prop() colorOnSecondaryContainer = '#1d192b';\n @Prop() colorBackground = '#fef7ff';\n @Prop() colorSurfaceContainerHigh = '#ece6f0';\n @Prop() colorSurfaceContainerLow = '#f7f2fa';\n @Prop() fabBackgroundColor = '#eaddff';\n @Prop() fabColor = '#21005d';\n @Prop() rounded = true;\n\n @Prop() colorTrekLine = '#6b0030';\n @Prop() colorSensitiveArea = '#4974a5';\n @Prop() colorPoiIcon = '#974c6e';\n @Prop() useGradient = false;\n\n @Prop() treks = true;\n @Prop() touristicContents = false;\n @Prop() touristicEvents = false;\n\n @Prop() enableOffline = false;\n @Prop() globalTilesMinZoomOffline = 0;\n @Prop() globalTilesMaxZoomOffline = 11;\n @Prop() trekTilesMinZoomOffline = 12;\n @Prop() trekTilesMaxZoomOffline = 16;\n\n @State() showOfflineModal = false;\n @State() showConfirmModal = false;\n @State() showLoaderModal = false;\n @State() showSuccessModal = false;\n @State() showConfirmDeleteModal = false;\n @State() showDeletingMessage = false;\n @State() showDeleteSuccessMessage = false;\n\n @Event() trekDownloadPress: EventEmitter<number>;\n @Event() trekDeletePress: EventEmitter<number>;\n\n largeViewSize = 1024;\n handlePopStateBind: (event: any) => void = this.handlePopState.bind(this);\n\n @Listen('trekCardPress', { target: 'window' })\n onTrekCardPress(event: CustomEvent<number>) {\n this.currentTouristicContentId = null;\n this.showTouristicContent = false;\n state.currentTouristicContent = null;\n this.currentTouristicEventId = null;\n this.showTouristicEvent = false;\n state.currentTouristicEvent = null;\n const parentTrek = state.parentTrekId ? state.parentTrekId : state.currentTrekSteps ? this.currentTrekId : null;\n state.currentTrek = null;\n this.currentTrekId = event.detail;\n state.mode = 'treks';\n this.showTrek = true;\n this.showTrekMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.set('trek', this.currentTrekId.toString());\n if (state.currentTrekSteps) {\n url.searchParams.set('parenttrek', parentTrek.toString());\n }\n window.history.pushState({}, '', url);\n }\n\n @Listen('parentTrekPress', { target: 'window' })\n onParentTrekPress(event: CustomEvent<number>) {\n state.currentTrek = null;\n this.currentTrekId = event.detail;\n state.mode = 'treks';\n this.showTrek = true;\n this.showTrekMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.set('trek', this.currentTrekId.toString());\n url.searchParams.delete('parenttrek');\n window.history.pushState({}, '', url);\n }\n\n @Listen('touristicContentCardPress', { target: 'window' })\n onTouristicContentCardPress(event: CustomEvent<number>) {\n state.currentTrek = null;\n this.currentTrekId = null;\n this.showTrek = false;\n this.currentTouristicContentId = event.detail;\n state.mode = 'touristicContents';\n this.showTouristicContent = true;\n this.showTouristicContentMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.delete('trek');\n url.searchParams.set('touristiccontent', this.currentTouristicContentId.toString());\n window.history.pushState({}, '', url);\n }\n\n @Listen('touristicEventCardPress', { target: 'window' })\n onTouristiceEventCardPress(event: CustomEvent<number>) {\n state.currentTrek = null;\n this.currentTrekId = null;\n this.showTrek = false;\n this.currentTouristicEventId = event.detail;\n ``;\n state.mode = 'touristicEvents';\n this.showTouristicEvent = true;\n this.showTouristicEventMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.delete('trek');\n url.searchParams.set('touristicevent', this.currentTouristicEventId.toString());\n window.history.pushState({}, '', url);\n }\n\n @Listen('resize', { target: 'window' })\n onWindowResize() {\n this.handleView();\n }\n\n @Listen('centerOnMap', { target: 'window' })\n onCenterOnMap() {\n if (!this.isLargeView) {\n this.showTrekMap = true;\n }\n }\n\n @Listen('trekDownloadConfirm', { target: 'window' })\n onTrekDownloadConfirm() {\n this.showLoaderModal = false;\n this.showSuccessModal = false;\n this.showDeleteSuccessMessage = false;\n this.showDeletingMessage = false;\n this.showConfirmDeleteModal = false;\n this.showOfflineModal = true;\n this.showConfirmModal = true;\n }\n\n @Listen('trekDownloadedSuccessConfirm', { target: 'window' })\n onTrekDownloadedSuccessConfirm() {\n this.showLoaderModal = false;\n this.showSuccessModal = true;\n }\n\n @Listen('trekDeleteConfirm', { target: 'window' })\n onTrekDeleteConfirm() {\n this.showLoaderModal = false;\n this.showSuccessModal = false;\n this.showDeleteSuccessMessage = false;\n this.showOfflineModal = true;\n this.showConfirmModal = true;\n this.showConfirmDeleteModal = true;\n }\n\n @Listen('trekDeleteSuccessConfirm', { target: 'window' })\n onTrekDeleteSuccessConfirm() {\n this.showLoaderModal = false;\n this.showSuccessModal = true;\n this.showDeleteSuccessMessage = true;\n }\n\n @Watch('isLargeView')\n watchPropHandler() {\n window.dispatchEvent(new window.Event('resize'));\n }\n\n componentWillLoad() {\n if (this.treks) {\n state.mode = 'treks';\n } else if (this.touristicContents) {\n state.mode = 'touristicContents';\n } else if (this.touristicEvents) {\n state.mode = 'touristicEvents';\n }\n const url = new URL(window.location.toString());\n const trekParam = url.searchParams.get('trek');\n const parentTrekId = url.searchParams.get('parenttrek');\n const touristicContentParam = url.searchParams.get('touristiccontent');\n const touristicEventParam = url.searchParams.get('touristicevent');\n if (trekParam) {\n window.history.replaceState({ isInitialHistoryWithDetails: true }, '', url);\n state.parentTrekId = parentTrekId ? Number(parentTrekId) : null;\n this.currentTrekId = Number(trekParam);\n state.mode = 'treks';\n this.showTrek = true;\n } else if (touristicContentParam) {\n window.history.replaceState({ isInitialHistoryWithDetails: true }, '', url);\n this.currentTouristicContentId = Number(touristicContentParam);\n state.mode = 'touristicContents';\n this.showTouristicContent = true;\n } else if (touristicEventParam) {\n window.history.replaceState({ isInitialHistoryWithDetails: true }, '', url);\n this.currentTouristicEventId = Number(touristicEventParam);\n state.mode = 'touristicEvents';\n this.showTouristicEvent = true;\n }\n }\n\n componentDidLoad() {\n window.addEventListener('popstate', this.handlePopStateBind, false);\n this.handleView();\n }\n\n onDetailsClose() {\n if (this.treks) {\n state.mode = 'treks';\n } else if (this.touristicContents) {\n state.mode = 'touristicContents';\n } else if (this.touristicEvents) {\n state.mode = 'touristicEvents';\n }\n this.currentTouristicContentId = null;\n this.showTouristicContent = false;\n this.showTouristicContentMap = false;\n this.showTouristicEvent = false;\n this.showTouristicEventMap = false;\n state.currentTouristicContent = null;\n state.currentTouristicEvent = null;\n state.currentTrek = null;\n state.currentTrekSteps = null;\n state.parentTrekId = null;\n this.currentTrekId = null;\n this.showTrek = false;\n }\n\n handleView() {\n this.isLargeView = this.appElement.getBoundingClientRect().width >= this.largeViewSize;\n this.showHomeMap = this.isLargeView;\n this.showTrekMap = this.isLargeView;\n }\n\n handleFilters() {\n this.showFilters = !this.showFilters;\n }\n\n handleBackButton() {\n if (window.history.state && window.history.state.isInitialHistoryWithDetails) {\n this.onDetailsClose();\n const url = new URL(window.location.toString());\n url.searchParams.delete('trek');\n url.searchParams.delete('touristiccontent');\n url.searchParams.delete('touristicevent');\n window.history.pushState({}, '', url);\n } else {\n window.history.back();\n }\n }\n\n handlePopState() {\n const url = new URL(window.location.toString());\n const trekParam = Number(url.searchParams.get('trek'));\n const touristicContentParam = url.searchParams.get('touristiccontent');\n const touristicEventParam = url.searchParams.get('touristicevent');\n if (trekParam && this.currentTrekId !== trekParam) {\n this.currentTouristicContentId = null;\n this.showTouristicContent = false;\n this.showTouristicEvent = false;\n state.currentTouristicContent = null;\n state.currentTouristicEvent = null;\n state.currentTrek = null;\n this.currentTrekId = trekParam;\n state.mode = 'treks';\n this.showTrek = true;\n } else if (!trekParam && !touristicContentParam && !touristicEventParam) {\n this.onDetailsClose();\n }\n }\n\n handleShowMap() {\n if (this.currentTrekId) {\n this.showTrekMap = !this.showTrekMap;\n } else if (this.showTouristicContent) {\n this.showTouristicContentMap = !this.showTouristicContentMap;\n } else if (this.showTouristicEvent) {\n this.showTouristicEventMap = !this.showTouristicEventMap;\n } else {\n this.showHomeMap = !this.showHomeMap;\n }\n }\n\n getMapVisibilityIconButton() {\n let mapIconButton: string;\n\n if (this.showTrek) {\n mapIconButton = this.showTrekMap ? 'summarize' : 'map';\n } else if (this.showTouristicContent) {\n mapIconButton = this.showTouristicContentMap ? 'summarize' : 'map';\n } else if (this.showTouristicEvent) {\n mapIconButton = this.showTouristicEventMap ? 'summarize' : 'map';\n } else {\n mapIconButton = this.showHomeMap ? 'list' : 'map';\n }\n\n return mapIconButton;\n }\n\n getMapVisibilityLabelButton() {\n let mapLabelButton: string;\n\n if (state.language) {\n if (this.showTrek) {\n mapLabelButton = this.showTrekMap ? translate[state.language].showDetails : translate[state.language].showRoute;\n } else if (this.showTouristicContent) {\n mapLabelButton = this.showTouristicContentMap ? translate[state.language].showDetails : translate[state.language].showMap;\n } else if (this.showTouristicEvent) {\n mapLabelButton = this.showTouristicEventMap ? translate[state.language].showDetails : translate[state.language].showMap;\n } else {\n mapLabelButton = this.showHomeMap ? translate[state.language].showList : translate[state.language].showMap;\n }\n }\n\n return mapLabelButton;\n }\n\n reload() {\n window.location.reload();\n }\n\n disconnectedCallback() {\n reset();\n window.removeEventListener('popstate', this.handlePopStateBind);\n }\n\n handleOkDeleteModal() {\n this.trekDeletePress.emit();\n this.showDeletingMessage = true;\n this.showConfirmDeleteModal = false;\n this.showConfirmModal = false;\n this.showLoaderModal = true;\n }\n\n handleOkDownloadModal() {\n this.trekDownloadPress.emit();\n this.showConfirmModal = false;\n this.showLoaderModal = true;\n }\n\n handleCancelModal() {\n this.showOfflineModal = false;\n }\n\n handleOffline() {\n state.offlineTreks = !state.offlineTreks;\n state.currentTreks = handleTreksFiltersAndSearch();\n }\n\n render() {\n return (\n <Host\n style={{\n '--font-family': this.fontFamily,\n '--color-primary-app': this.colorPrimaryApp,\n '--color-on-primary': this.colorOnPrimary,\n '--color-surface': this.colorSurface,\n '--color-on-surface': this.colorOnSurface,\n '--color-surface-variant': this.colorSurfaceVariant,\n '--color-on-surface-variant': this.colorOnSurfaceVariant,\n '--color-primary-container': this.colorPrimaryContainer,\n '--color-on-primary-container': this.colorOnPrimaryContainer,\n '--color-secondary-container': this.colorSecondaryContainer,\n '--color-on-secondary-container': this.colorOnSecondaryContainer,\n '--color-background': this.colorBackground,\n '--color-surface-container-high': this.colorSurfaceContainerHigh,\n '--color-surface-container-low': this.colorSurfaceContainerLow,\n '--fab-background-color': this.fabBackgroundColor,\n '--fab-color': this.fabColor,\n '--color-sensitive-area': this.colorSensitiveArea,\n '--app-width': this.appWidth,\n '--app-height': this.appHeight,\n '--header-height':\n Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) > 1\n ? this.enableOffline\n ? '136px'\n : '188px'\n : this.enableOffline\n ? '116px'\n : '64px',\n '--header-with-segment': Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) > 1 ? '16px' : '0px',\n '--header-with-languages': this.languages.split(',').length > 1 ? '38px' : '0px',\n '--border-radius': this.rounded ? '' : '0px',\n }}\n >\n {!state.currentTreks &&\n !state.currentTrek &&\n !state.currentTouristicContent &&\n !state.currentTouristicEvent &&\n !state.currentTouristicContents &&\n !state.currentTouristicEvents && (\n <div class=\"grw-init-loader-container\">\n <grw-loader exportparts=\"loader\" color-primary-container={this.colorPrimaryContainer} color-on-primary-container={this.colorOnPrimaryContainer}></grw-loader>\n </div>\n )}\n {this.treks && state.mode === 'treks' && !this.showTrek && !this.showTouristicContent && !this.showTouristicEvent && !state.currentTreks && (\n <grw-treks-provider\n api={this.api}\n languages={this.languages}\n portals={this.portals}\n in-bbox={this.inBbox}\n cities={this.cities}\n districts={this.districts}\n structures={this.structures}\n themes={this.themes}\n routes={this.routes}\n practices={this.practices}\n ></grw-treks-provider>\n )}\n {this.showTrek && this.currentTrekId && !state.currentTrek && (\n <grw-trek-provider\n api={this.api}\n languages={this.languages}\n trek-id={this.currentTrekId}\n portals={this.portals}\n in-bbox={this.inBbox}\n cities={this.cities}\n districts={this.districts}\n structures={this.structures}\n themes={this.themes}\n routes={this.routes}\n practices={this.practices}\n ></grw-trek-provider>\n )}\n {this.showTouristicContent && this.currentTouristicContentId && (\n <grw-touristic-content-provider\n api={this.api}\n languages={this.languages}\n touristic-content-id={this.currentTouristicContentId}\n portals={this.portals}\n ></grw-touristic-content-provider>\n )}\n {this.showTouristicEvent && this.currentTouristicEventId && (\n <grw-touristic-event-provider\n api={this.api}\n languages={this.languages}\n touristic-event-id={this.currentTouristicEventId}\n portals={this.portals}\n ></grw-touristic-event-provider>\n )}\n {this.touristicContents && state.mode === 'touristicContents' && !state.currentTouristicContents && !this.showTouristicContent && (\n <grw-touristic-contents-provider\n api={this.api}\n languages={this.languages}\n in-bbox={this.inBbox}\n cities={this.cities}\n districts={this.districts}\n structures={this.structures}\n themes={this.themes}\n portals={this.portals}\n ></grw-touristic-contents-provider>\n )}\n {this.touristicEvents && state.mode === 'touristicEvents' && !state.currentTouristicEvents && !this.showTouristicEvent && (\n <grw-touristic-events-provider\n api={this.api}\n languages={this.languages}\n in-bbox={this.inBbox}\n cities={this.cities}\n districts={this.districts}\n structures={this.structures}\n themes={this.themes}\n portals={this.portals}\n ></grw-touristic-events-provider>\n )}\n {(state.currentTreks ||\n state.currentTrek ||\n state.touristicContents ||\n state.touristicEvents ||\n state.currentTouristicContent ||\n state.currentTouristicEvent ||\n state.networkError) && (\n <div class=\"grw-app-container\">\n {state.languages && state.languages.length > 1 && (\n <div class=\"grw-languages-container\">\n <grw-select-language></grw-select-language>\n </div>\n )}\n <div\n class={`${this.isLargeView ? 'grw-large-view-header-container' : 'grw-header-container'}${\n this.showTrek || this.showTouristicContent || this.showTouristicEvent ? ' grw-header-detail' : ''\n }`}\n >\n {Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) > 1 &&\n !this.showTrek &&\n !this.showTouristicContent &&\n !this.showTouristicEvent && (\n <grw-segmented-segment\n fontFamily={this.fontFamily}\n treks={this.treks}\n touristicContents={this.touristicContents}\n touristicEvents={this.touristicEvents}\n ></grw-segmented-segment>\n )}\n {!this.showTrek && !this.showTouristicContent && !this.showTouristicEvent ? (\n <Fragment>\n <div class=\"grw-handle-search-filters-container\">\n <div class=\"grw-handle-search-container\">\n <grw-search fontFamily={this.fontFamily}></grw-search>\n </div>\n <div class=\"grw-handle-filters-container\">\n <grw-common-button\n exportparts=\"common-button,common-button-icon,common-button-label\"\n fontFamily={this.fontFamily}\n action={() => this.handleFilters()}\n icon={'filter_list'}\n name={translate[state.language].filter}\n ></grw-common-button>\n </div>\n </div>\n {this.enableOffline && (\n <div part=\"grw-offline-container\" class=\"grw-offline-container\">\n <div class=\"grw-offline-label\">Afficher uniquement les itinéraires hors ligne</div>\n <grw-switch exportparts=\"common-button,common-button-icon,common-button-label\" fontFamily={this.fontFamily} action={() => this.handleOffline()}></grw-switch>\n </div>\n )}\n </Fragment>\n ) : (\n <div class=\"grw-arrow-back-container\">\n <button onClick={() => this.handleBackButton()} class=\"grw-arrow-back-icon\">\n {/* @ts-ignore */}\n <span translate={false} part=\"icon\" class=\"material-symbols material-symbols-outlined icon\">\n arrow_back\n </span>\n </button>\n </div>\n )}\n </div>\n\n <div class={`grw-content-container ${this.showTrek || this.showTouristicContent || this.showTouristicEvent ? 'grw-content-trek' : 'grw-content-treks'}`}>\n {state.networkError && (\n <div class=\"grw-error-container\">\n Une erreur est survenue.\n <grw-common-button\n exportparts=\"common-button,common-button-icon,common-button-label\"\n icon=\"refresh\"\n name=\"Recharger la page\"\n action={() => this.reload()}\n ></grw-common-button>\n </div>\n )}\n <div\n class={this.isLargeView ? 'grw-large-view-app-treks-list-container' : 'grw-app-treks-list-container'}\n style={{ display: this.showTrek || this.showTouristicContent || this.showTouristicEvent ? 'none' : 'flex', position: this.showTrek ? 'absolute' : 'relative' }}\n >\n {state.mode === 'treks' && this.treks && (\n <grw-treks-list\n is-large-view={this.isLargeView}\n fontFamily={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n ></grw-treks-list>\n )}\n {state.mode === 'touristicContents' && this.touristicContents && (\n <grw-touristic-contents-list\n is-large-view={this.isLargeView}\n fontFamily={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n ></grw-touristic-contents-list>\n )}\n {state.mode === 'touristicEvents' && this.touristicEvents && (\n <grw-touristic-events-list\n is-large-view={this.isLargeView}\n fontFamily={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n ></grw-touristic-events-list>\n )}\n </div>\n {((this.showTrek && !state.currentTrek) ||\n (this.showTouristicContent && !state.currentTouristicContent) ||\n (this.showTouristicEvent && !state.currentTouristicEvent) ||\n (!state.treks && state.mode === 'treks' && !this.showTrek) ||\n (!state.touristicContents && state.mode === 'touristicContents' && !this.showTouristicContent) ||\n (!state.touristicEvents && state.mode === 'touristicEvents' && !this.showTouristicEvent)) && (\n <div class={this.isLargeView ? 'grw-large-view-loader-container' : 'grw-loader-container'}>\n <grw-loader exportparts=\"loader\" color-primary-container={this.colorSecondaryContainer} color-on-primary-container={this.colorOnSecondaryContainer}></grw-loader>\n </div>\n )}\n {this.showTrek && (\n <div class={this.isLargeView ? 'grw-large-view-app-trek-detail-container' : 'grw-app-trek-detail-container'}>\n <grw-trek-detail\n style={{\n visibility: (!this.showTrekMap && this.showTrek) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTrekMap ? '1' : '0',\n }}\n fontFamily={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n weather={this.weather}\n is-large-view={this.isLargeView}\n emergency-number={this.emergencyNumber}\n defaultBackgroundLayerUrl={this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url))[0]}\n defaultBackgroundLayerAttribution={this.attributionLayer ? this.attributionLayer.split(',')[0] : []}\n enable-offline={this.enableOffline}\n global-tiles-min-zoom-offline={this.globalTilesMinZoomOffline}\n global-tiles-max-zoom-offline={this.globalTilesMaxZoomOffline}\n trek-tiles-min-zoom-offline={this.trekTilesMinZoomOffline}\n trek-tiles-max-zoom-offline={this.trekTilesMaxZoomOffline}\n ></grw-trek-detail>\n {this.showOfflineModal && (\n <div class=\"modal-container\">\n <div class=\"modal-content-container\">\n {this.showConfirmModal && !this.showConfirmDeleteModal && (\n <Fragment>\n <div class=\"modal-message-container\">Êtes-vous sûr de vouloir rendre cet itinéraire disponible hors ligne ?</div>\n <div class=\"modal-buttons-container\">\n <button part=\"modal-button\" class=\"modal-button\" onClick={() => this.handleCancelModal()}>\n ANNULER\n </button>\n <button part=\"modal-button\" class=\"modal-button\" onClick={() => this.handleOkDownloadModal()}>\n OK\n </button>\n </div>\n </Fragment>\n )}\n {this.showConfirmDeleteModal && (\n <Fragment>\n <div class=\"modal-message-container\">Êtes-vous sûr de vouloir supprimer cet itinéraire du hors ligne ?</div>\n <div class=\"modal-buttons-container\">\n <button part=\"modal-button\" class=\"modal-button\" onClick={() => this.handleCancelModal()}>\n ANNULER\n </button>\n <button part=\"modal-button\" class=\"modal-button\" onClick={() => this.handleOkDeleteModal()}>\n OK\n </button>\n </div>\n </Fragment>\n )}\n {this.showLoaderModal && (\n <Fragment>\n <div class=\"modal-message-container\">\n <div class=\"modal-loader\"></div>\n {this.showDeletingMessage ? 'Suppression en cours' : 'Téléchargement en cours'}\n </div>\n </Fragment>\n )}\n {this.showSuccessModal && (\n <Fragment>\n <div class=\"modal-message-container\">\n {this.showDeleteSuccessMessage ? \"L'itinéraire est supprimé du hors ligne\" : \"L'itinéraire est disponible hors ligne\"}\n </div>\n <div class=\"modal-button-container\">\n <button part=\"modal-button\" class=\"modal-button\" onClick={() => this.handleCancelModal()}>\n OK\n </button>\n </div>\n </Fragment>\n )}\n </div>\n </div>\n )}\n </div>\n )}\n {this.showTouristicContent && (\n <div class={this.isLargeView ? 'grw-large-view-app-touristic-content-detail-container' : 'grw-app-touristic-content-detail-container'}>\n <grw-touristic-content-detail\n style={{\n visibility: !this.showTouristicContentMap || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTouristicContentMap ? '1' : '0',\n }}\n fontFamily={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n ></grw-touristic-content-detail>\n </div>\n )}\n {this.showTouristicEvent && (\n <div class={this.isLargeView ? 'grw-large-view-app-touristic-event-detail-container' : 'grw-app-touristic-event-detail-container'}>\n <grw-touristic-event-detail\n style={{\n visibility: !this.showTouristicEventMap || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTouristicEventMap ? '1' : '0',\n }}\n fontFamily={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n ></grw-touristic-event-detail>\n </div>\n )}\n {!state.networkError && (\n <grw-map\n exportparts=\"map,elevation,map-bottom-space,map-loader-container,loader\"\n class={this.isLargeView ? 'grw-large-view-app-map-container' : 'grw-app-map-container'}\n style={{\n visibility:\n (this.showHomeMap && !this.showTrek) ||\n (this.showTrekMap && this.showTrek) ||\n (this.showTouristicContentMap && this.showTouristicContent) ||\n (this.showTouristicEventMap && this.showTouristicEvent) ||\n this.isLargeView\n ? 'visible'\n : 'hidden',\n zIndex: this.showHomeMap || this.showTrekMap || this.showTouristicContentMap || this.showTouristicEventMap ? '1' : '0',\n }}\n center={this.center}\n zoom={this.zoom}\n name-layer={this.nameLayer}\n url-layer={this.urlLayer}\n attribution-layer={this.attributionLayer}\n fontFamily={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-background={this.colorBackground}\n color-trek-line={this.colorTrekLine}\n color-sensitive-area={this.colorSensitiveArea}\n color-poi-icon={this.colorPoiIcon}\n is-large-view={this.isLargeView}\n use-gradient={this.useGradient}\n trek-tiles-max-zoom-offline={this.trekTilesMaxZoomOffline}\n ></grw-map>\n )}\n </div>\n {((!this.showTrek && !this.showTouristicContent && !this.showTouristicEvent) ||\n (this.showTrek && state.currentTrek) ||\n (this.showTouristicContent && state.currentTouristicContent) ||\n (this.showTouristicEvent && state.currentTouristicEvent)) && (\n <div class=\"grw-map-visibility-button-container\">\n <grw-extended-fab\n exportparts=\"map-visibility-button,map-visibility-button-icon,map-visibility-button-label\"\n fontFamily={this.fontFamily}\n action={() => this.handleShowMap()}\n icon={() => this.getMapVisibilityIconButton()}\n name={() => this.getMapVisibilityLabelButton()}\n display={this.isLargeView ? 'none' : 'flex'}\n ></grw-extended-fab>\n </div>\n )}\n </div>\n )}\n {!this.showTrek && this.showFilters && <grw-filters fontFamily={this.fontFamily} handleFilters={() => this.handleFilters()}></grw-filters>}\n </Host>\n );\n }\n}\n"],"mappings":"wJAAA,MAAMA,EAAY,ooM,MCULC,EAAM,M,+HA8EjBC,KAAAC,cAAgB,KAChBD,KAAAE,mBAA2CF,KAAKG,eAAeC,KAAKJ,M,cA7EhD,M,0BACY,M,wBACF,M,iBACP,M,iBACA,M,6BACY,M,2BACF,M,iBACV,M,iBACA,M,2HAII,O,eACC,Q,kCAER,K,mUAcF,M,+CAGG,S,qBACK,U,oBACD,U,kBACF,U,oBACE,U,yBACK,U,2BACE,U,2BACA,U,6BACE,U,6BACA,U,+BACE,U,qBACV,U,+BACU,U,8BACD,U,wBACN,U,cACV,U,aACD,K,mBAEM,U,wBACK,U,kBACN,U,iBACD,M,WAEN,K,uBACY,M,qBACF,M,mBAEF,M,+BACY,E,+BACA,G,6BACF,G,6BACA,G,sBAEN,M,sBACA,M,qBACD,M,sBACC,M,4BACM,M,yBACH,M,8BACK,K,CASpCK,gBAAgBC,GACdN,KAAKO,0BAA4B,KACjCP,KAAK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