@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
@@ -39,6 +39,7 @@ export class GrwApp {
39
39
  this.emergencyNumber = undefined;
40
40
  this.fontFamily = 'Roboto';
41
41
  this.colorPrimaryApp = '#6750a4';
42
+ this.colorPrimary = '#6750a4';
42
43
  this.colorOnPrimary = '#ffffff';
43
44
  this.colorSurface = '#1c1b1f';
44
45
  this.colorOnSurface = '#49454e';
@@ -350,6 +351,7 @@ export class GrwApp {
350
351
  return (h(Host, { style: {
351
352
  '--font-family': this.fontFamily,
352
353
  '--color-primary-app': this.colorPrimaryApp,
354
+ '--color-primary': this.colorPrimary,
353
355
  '--color-on-primary': this.colorOnPrimary,
354
356
  '--color-surface': this.colorSurface,
355
357
  '--color-on-surface': this.colorOnSurface,
@@ -369,8 +371,8 @@ export class GrwApp {
369
371
  '--app-height': this.appHeight,
370
372
  '--header-height': Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) > 1
371
373
  ? this.enableOffline
372
- ? '136px'
373
- : '188px'
374
+ ? '188px'
375
+ : '136px'
374
376
  : this.enableOffline
375
377
  ? '116px'
376
378
  : '64px',
@@ -795,6 +797,24 @@ export class GrwApp {
795
797
  "reflect": false,
796
798
  "defaultValue": "'#6750a4'"
797
799
  },
800
+ "colorPrimary": {
801
+ "type": "string",
802
+ "mutable": false,
803
+ "complexType": {
804
+ "original": "string",
805
+ "resolved": "string",
806
+ "references": {}
807
+ },
808
+ "required": false,
809
+ "optional": false,
810
+ "docs": {
811
+ "tags": [],
812
+ "text": ""
813
+ },
814
+ "attribute": "color-primary",
815
+ "reflect": false,
816
+ "defaultValue": "'#6750a4'"
817
+ },
798
818
  "colorOnPrimary": {
799
819
  "type": "string",
800
820
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"grw-app.js","sourceRoot":"","sources":["../../../src/components/grw-app/grw-app.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAgB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAO1D,MAAM,OAAO,MAAM;;IA8EjB,kBAAa,GAAG,IAAI,CAAC;IACrB,uBAAkB,GAAyB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBA7EtD,KAAK;gCACO,KAAK;8BACP,KAAK;uBACZ,KAAK;uBACL,KAAK;mCACO,KAAK;iCACP,KAAK;uBACf,KAAK;uBACL,KAAK;;;;oBAID,MAAM;qBACL,OAAO;;qBAEf,IAAI;;;;;;;;;;;;;;mBAcN,KAAK;;sBAGF,QAAQ;2BACH,SAAS;0BACV,SAAS;wBACX,SAAS;0BACP,SAAS;+BACJ,SAAS;iCACP,SAAS;iCACT,SAAS;mCACP,SAAS;mCACT,SAAS;qCACP,SAAS;2BACnB,SAAS;qCACC,SAAS;oCACV,SAAS;8BACf,SAAS;oBACnB,SAAS;mBACV,IAAI;yBAEE,SAAS;8BACJ,SAAS;wBACf,SAAS;uBACV,KAAK;iBAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
1
+ {"version":3,"file":"grw-app.js","sourceRoot":"","sources":["../../../src/components/grw-app/grw-app.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAgB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAO1D,MAAM,OAAO,MAAM;;IA+EjB,kBAAa,GAAG,IAAI,CAAC;IACrB,uBAAkB,GAAyB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBA9EtD,KAAK;gCACO,KAAK;8BACP,KAAK;uBACZ,KAAK;uBACL,KAAK;mCACO,KAAK;iCACP,KAAK;uBACf,KAAK;uBACL,KAAK;;;;oBAID,MAAM;qBACL,OAAO;;qBAEf,IAAI;;;;;;;;;;;;;;mBAcN,KAAK;;sBAGF,QAAQ;2BACH,SAAS;wBACZ,SAAS;0BACP,SAAS;wBACX,SAAS;0BACP,SAAS;+BACJ,SAAS;iCACP,SAAS;iCACT,SAAS;mCACP,SAAS;mCACT,SAAS;qCAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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() colorPrimary = '#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-primary': this.colorPrimary,\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 ? '188px'\n : '136px'\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"]}
@@ -105,7 +105,7 @@
105
105
  border: none;
106
106
  -webkit-tap-highlight-color: transparent;
107
107
  line-height: 20px;
108
- color: var(--color-on-primary-container);
108
+ color: var(--color-primary-app);
109
109
  background-color: transparent;
110
110
  font-family: var(--font-family);
111
111
  }
@@ -666,6 +666,8 @@ button.swiper-pagination-bullet {
666
666
  .touristic-content-card-large-view-container .touristic-content-img {
667
667
  width: 250px;
668
668
  height: 100%;
669
+ border-bottom-left-radius: var(--border-radius, 12px);
670
+ border-top-right-radius: var(--border-radius, 0px);
669
671
  }
670
672
 
671
673
  .is-inside-vertical-list {
@@ -85,7 +85,10 @@ export class GrwTouristicContentCard {
85
85
  /* @ts-ignore */
86
86
  crossorigin: "anonymous", src: defaultImageSrc, loading: "lazy" })))), h("div", { style: { display: this.offline ? 'none' : 'flex' }, part: "swiper-pagination", class: "swiper-pagination", ref: el => (this.paginationElTouristicContentRef = el) }), h("div", { style: { display: this.offline ? 'none' : 'flex' }, part: "swiper-button-prev", class: "swiper-button-prev", ref: el => (this.prevElTouristicContentRef = el) }), h("div", { style: { display: this.offline ? 'none' : 'flex' }, part: "swiper-button-next", class: "swiper-button-next", ref: el => (this.nextElTouristicContentRef = el) }))) : this.touristicContent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (h("img", { part: "touristic-content-img", class: "touristic-content-img",
87
87
  /* @ts-ignore */
88
- crossorigin: "anonymous", src: `${this.touristicContent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`, loading: "lazy" })) : (h("div", null))), h("div", { part: "touristic-content-sub-container", class: "touristic-content-sub-container" }, h("div", { part: "touristic-content-category-container", class: "touristic-content-category-container" }, touristicContentCategory && touristicContentCategory.pictogram && (h("img", { part: "touristic-content-category-img", class: "touristic-content-category-img",
88
+ crossorigin: "anonymous", src: `${this.touristicContent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`, loading: "lazy" })) : (h("img", {
89
+ /* @ts-ignore */
90
+ crossorigin: "anonymous", class: "image default-touristic-content-img", src: defaultImageSrc, loading: "lazy"
91
+ }))), h("div", { part: "touristic-content-sub-container", class: "touristic-content-sub-container" }, h("div", { part: "touristic-content-category-container", class: "touristic-content-category-container" }, touristicContentCategory && touristicContentCategory.pictogram && (h("img", { part: "touristic-content-category-img", class: "touristic-content-category-img",
89
92
  /* @ts-ignore */
90
93
  crossorigin: "anonymous", src: touristicContentCategory.pictogram })), h("div", { part: "touristic-content-category-name", class: "touristic-content-category-name" }, touristicContentCategory.label)), h("div", { part: "touristic-content-name", class: "touristic-content-name" }, this.touristicContent.name)), this.isInsideHorizontalList && (h("div", { part: "touristic-content-more-detail-container", class: "touristic-content-more-detail-container" }, h("button", { part: "more-details-button", class: "more-details-button", onClick: () => this.touristicContentCardPress.emit(this.touristicContent.id) }, "Plus de d\u00E9tails"))))));
91
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"grw-touristic-content-card.js","sourceRoot":"","sources":["../../../src/components/grw-touristic-content-card/grw-touristic-content-card.tsx"],"names":[],"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,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,EAC1G,OAAO,EAAC,MAAM,GACd,CACH,CAAC,CAAC,CAAC,CACF,cAAW,CACZ,CACG;QACN,WAAK,IAAI,EAAC,iCAAiC,EAAC,KAAK,EAAC,iCAAiC;UACjF,WAAK,IAAI,EAAC,sCAAsC,EAAC,KAAK,EAAC,sCAAsC;YAC1F,wBAAwB,IAAI,wBAAwB,CAAC,SAAS,IAAI,CACjE,WACE,IAAI,EAAC,gCAAgC,EACrC,KAAK,EAAC,gCAAgC;cACtC,gBAAgB;cAChB,WAAW,EAAC,WAAW,EACvB,GAAG,EAAE,wBAAwB,CAAC,SAAS,GACvC,CACH;YACD,WAAK,IAAI,EAAC,iCAAiC,EAAC,KAAK,EAAC,iCAAiC,IAChF,wBAAwB,CAAC,KAAK,CAC3B,CACF;UACN,WAAK,IAAI,EAAC,wBAAwB,EAAC,KAAK,EAAC,wBAAwB,IAC9D,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACvB,CACF;QACL,IAAI,CAAC,sBAAsB,IAAI,CAC9B,WAAK,IAAI,EAAC,yCAAyC,EAAC,KAAK,EAAC,yCAAyC;UACjG,cAAQ,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,2BAElI,CACL,CACP,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
1
+ {"version":3,"file":"grw-touristic-content-card.js","sourceRoot":"","sources":["../../../src/components/grw-touristic-content-card/grw-touristic-content-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAQlE,MAAM,OAAO,uBAAuB;;sBAQb,QAAQ;;uBAGP,KAAK;kCACM,KAAK;6BACT,KAAK;mBAKf,KAAK;;EAGxB,8BAA8B;IAC5B,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACvC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;EACtB,CAAC;EAGD,0BAA0B;IACxB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;EACvB,CAAC;EAED,gBAAgB;IACd,IAAI,CAAC,aAAa,EAAE,CAAC;IACrB,IAAI,IAAI,CAAC,yBAAyB,EAAE;MAClC,IAAI,CAAC,sBAAsB,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE;QACvE,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QA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yC;UACjG,cAAQ,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,2BAElI,CACL,CACP,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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 <img\n /* @ts-ignore */\n crossorigin=\"anonymous\"\n class=\"image default-touristic-content-img\"\n src={defaultImageSrc}\n loading=\"lazy\"\n />\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"]}
@@ -666,6 +666,8 @@ button.swiper-pagination-bullet {
666
666
  .touristic-event-card-large-view-container .touristic-event-img {
667
667
  width: 250px;
668
668
  height: 100%;
669
+ border-bottom-left-radius: var(--border-radius, 12px);
670
+ border-top-right-radius: var(--border-radius, 0px);
669
671
  }
670
672
 
671
673
  .is-inside-vertical-list {
@@ -86,7 +86,10 @@ export class GrwTouristicEvent {
86
86
  /* @ts-ignore */
87
87
  crossorigin: "anonymous", src: defaultImageSrc, loading: "lazy" })))), h("div", { style: { display: this.offline ? 'none' : 'flex' }, part: "swiper-pagination", class: "swiper-pagination", ref: el => (this.paginationElTouristicEventRef = el) }), h("div", { style: { display: this.offline ? 'none' : 'flex' }, part: "swiper-button-prev", class: "swiper-button-prev", ref: el => (this.prevElTouristicEventRef = el) }), h("div", { style: { display: this.offline ? 'none' : 'flex' }, part: "swiper-button-next", class: "swiper-button-next", ref: el => (this.nextElTouristicEventRef = el) }))) : this.touristicEvent.attachments.filter(attachment => attachment.type === 'image').length > 0 ? (h("img", { part: "touristic-event-img", class: "touristic-event-img",
88
88
  /* @ts-ignore */
89
- crossorigin: "anonymous", src: `${this.touristicEvent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`, loading: "lazy" })) : (h("div", null))), h("div", { part: "touristic-event-sub-container", class: "touristic-event-sub-container" }, h("div", { part: "touristic-event-type-container", class: "touristic-event-type-container" }, touristicEventType && touristicEventType.pictogram && (h("img", { part: "touristic-event-type-img", class: "touristic-event-type-img",
89
+ crossorigin: "anonymous", src: `${this.touristicEvent.attachments.filter(attachment => attachment.type === 'image')[0].thumbnail}`, loading: "lazy" })) : (h("img", {
90
+ /* @ts-ignore */
91
+ crossorigin: "anonymous", class: "image default-touristic-event-img", src: defaultImageSrc, loading: "lazy"
92
+ }))), h("div", { part: "touristic-event-sub-container", class: "touristic-event-sub-container" }, h("div", { part: "touristic-event-type-container", class: "touristic-event-type-container" }, touristicEventType && touristicEventType.pictogram && (h("img", { part: "touristic-event-type-img", class: "touristic-event-type-img",
90
93
  /* @ts-ignore */
91
94
  crossorigin: "anonymous", src: touristicEventType.pictogram })), touristicEventType && touristicEventType.type && (h("div", { part: "touristic-event-type-name", class: "touristic-event-type-name" }, touristicEventType.type))), h("div", { part: "touristic-event-name", class: "touristic-event-name" }, this.touristicEvent.name), (this.touristicEvent.begin_date || this.touristicEvent.end_date) && (h("div", { part: "touristic-event-date-container", class: "touristic-event-date-container" }, this.touristicEvent.begin_date === this.touristicEvent.end_date && (h("div", { part: "touristic-event-date", class: "touristic-event-date" }, translate[state.language].date, " : ", this.touristicEvent.begin_date)), this.touristicEvent.begin_date && this.touristicEvent.begin_date !== this.touristicEvent.end_date && (h("div", { part: "touristic-event-date", class: "touristic-event-date" }, translate[state.language].startDate, " : ", this.touristicEvent.begin_date)), this.touristicEvent.end_date && this.touristicEvent.begin_date !== this.touristicEvent.end_date && (h("div", { part: "touristic-event-date", class: "touristic-event-date" }, translate[state.language].endDate, " : ", this.touristicEvent.end_date))))), this.isInsideHorizontalList && (h("div", { part: "touristic-event-more-detail-container", class: "touristic-event-more-detail-container" }, h("button", { part: "more-details-button", class: "more-details-button", onClick: () => this.touristicEventCardPress.emit(this.touristicEvent.id) }, "Plus de d\u00E9tails"))))));
92
95
  }