@geotrekce/geotrek-rando-widget 0.30.0 → 0.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/grw-app.cjs.entry.js +1 -1
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-common-button_23.cjs.entry.js +14 -13
- package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
- package/dist/collection/components/grw-app/grw-app.js +1 -1
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +9 -9
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/collection/store/grw-treks-provider.js +5 -4
- package/dist/collection/store/grw-treks-provider.js.br +0 -0
- package/dist/collection/store/grw-treks-provider.js.gz +0 -0
- package/dist/collection/store/grw-treks-provider.js.map +1 -1
- package/dist/esm/grw-app.entry.js +1 -1
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-common-button_23.entry.js +14 -13
- package/dist/esm/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-common-button_23.entry.js +1 -1
- package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-de029003.entry.js → p-38d31358.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-38d31358.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-de029003.entry.js.gz → p-38d31358.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-de029003.entry.js.map → p-38d31358.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/p-5517eb99.system.js +1 -1
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-f77e20fe.system.entry.js → p-65c5fa1a.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-f77e20fe.system.entry.js.gz → p-65c5fa1a.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-6d3ddec9.system.entry.js → p-928cafc2.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6d3ddec9.system.entry.js.map → p-928cafc2.system.entry.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-722e446c.entry.js → p-c0721af7.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-722e446c.entry.js.gz → p-c0721af7.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.map +1 -0
- package/package.json +1 -1
- package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6d3ddec9.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-722e446c.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-722e446c.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-de029003.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f77e20fe.system.entry.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,h,F as Fragment,H as Host,g as getElement}from"./index-83d78b30.js";import{C as Capacitor,r as revokeObjectURL,h as handleTreksFiltersAndSearch,a as handleOutdoorSitesFiltersAndSearch,i as imagesRegExp}from"./utils-5feb9281.js";import{t as translate}from"./i18n-d4785001.js";import{s as state,r as reset}from"./store-882ab9be.js";var ArrowBackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/></svg>';var grwAppCss="grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);overflow:hidden;max-width:100dvw;max-height:100dvh}.grw-app-container{position:relative;background-color:var(--color-background);width:100%;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.grw-languages-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;margin:16px 16px 0px 0px}.grw-header-container,.grw-large-view-header-container{height:calc(var(--header-height) + var(--header-with-offline) + var(--header-with-languages))}.grw-header-container .grw-arrow-back-container,.grw-large-view-header-container .grw-arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.grw-header-container .grw-arrow-back-container .grw-arrow-back-icon,.grw-large-view-header-container .grw-arrow-back-container .grw-arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:var(--border-radius, 50%);height:48px;width:48px;padding:0px;text-align:left}.grw-handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.grw-handle-search-filters-container .grw-handle-search-container{width:calc(50% + 48px);max-width:220px}.grw-handle-search-filters-container .grw-handle-filters-container{margin-left:16px}.grw-header-detail{min-height:64px;height:64px}.grw-large-view-header-container .grw-handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.grw-init-loader-container,.grw-loader-container,.grw-large-view-loader-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.grw-content-container{position:relative;display:-ms-flexbox;display:flex}.grw-content-treks{height:calc(100% - var(--header-height) - var(--header-with-languages) - var(--header-with-offline))}.grw-content-trek{height:calc(100% - var(--header-height) - var(--header-with-languages))}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:100%;height:100%}.grw-app-map-container,.grw-large-view-app-map-container{width:100%;height:100%}.grw-map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4;pointer-events:none}.grw-init-loader-container,.grw-loader-container{width:100%}.grw-app-list-container,.grw-app-trek-detail-container,.grw-app-touristic-content-detail-container,.grw-app-touristic-event-detail-container,.grw-app-outdoor-site-detail-container,.grw-app-outdoor-course-detail-container{width:100%}grw-treks-list,grw-touristic-contents-list,grw-touristic-events-list,grw-outdoor-sites-list{max-height:calc(100vh - var(--header-height))}grw-trek-detail{position:relative;max-height:100%}grw-touristic-content-detail,grw-touristic-event-detail,grw-outdoor-site-detail{position:relative;max-height:100%}.grw-app-map-container{width:100%;position:absolute}.grw-large-view-loader-container{position:relative;width:50%}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{width:50%}.grw-large-view-app-map-container{position:relative;width:50%}.grw-error-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%;margin-top:16px;font-family:var(--font-family);font-size:16px}.grw-error-container grw-common-button{margin-top:16px}.grw-offline-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 0px 0px 16px;height:48px}.grw-offline-container .grw-offline-label{display:-ms-flexbox;display:flex}.grw-offline-container grw-switch{margin-top:-10px}";var GrwAppStyle0=grwAppCss;var GrwApp=function(){function t(t){registerInstance(this,t);this.showTrek=false;this.showTouristicContent=false;this.showTouristicEvent=false;this.showOutdoorSite=false;this.showOutdoorCourse=false;this.showOutdoorSiteMap=false;this.showOutdoorCourseMap=false;this.showHomeMap=false;this.showTrekMap=false;this.showTouristicContentMap=false;this.showTouristicEventMap=false;this.showFilters=false;this.isLargeView=false;this.appWidth="100%";this.appHeight="100vh";this.languages="fr";this.weather=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6750a4";this.colorPrimary="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.rounded=true;this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.largeViewSize=1024;this.elevationHeight=280;this.mobileElevationHeight=280;this.signages=false;this.arrowRepeat=20;this.handlePopStateBind=this.handlePopState.bind(this)}t.prototype.onTrekCardPress=function(t){this.currentTouristicContentId=null;this.showTouristicContent=false;state.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;state.currentTouristicEvent=null;var e=state.parentTrekId?state.parentTrekId:state.currentTrekSteps?this.currentTrekId:null;state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());if(state.currentTrekSteps){i.searchParams.set("parenttrek",e.toString())}window.history.pushState({},"",i)};t.prototype.onParentTrekPress=function(t){state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());e.searchParams.delete("parenttrek");window.history.pushState({},"",e)};t.prototype.onTouristicContentCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;state.mode="touristicContents";this.showTouristicContent=true;this.showTouristicContentMap=false;var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",e)};t.prototype.onTouristiceEventCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;state.mode="touristicEvents";this.showTouristicEvent=true;this.showTouristicEventMap=false;var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",e)};t.prototype.onOutdoorSiteCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=t.detail;this.showOutdoorSite=true;this.showOutdoorSiteMap=false;var e=new URL(window.location.toString());e.searchParams.set("outdoorsite",this.currentOutdoorSiteId.toString());window.history.pushState({},"",e)};t.prototype.onOutdoorCourseCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentOutdoorCourse=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=null;this.currentOutdoorCourseId=t.detail;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;this.showOutdoorCourse=true;this.showOutdoorSiteMap=false;var e=new URL(window.location.toString());e.searchParams.delete("outdoorsite");e.searchParams.set("outdoorcourse",this.currentOutdoorCourseId.toString());window.history.pushState({},"",e)};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};t.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};t.prototype.componentWillLoad=function(){if(this.treks){state.mode="treks"}else if(this.touristicContents){state.mode="touristicContents"}else if(this.touristicEvents){state.mode="touristicEvents"}else if(this.outdoor){state.mode="outdoor"}var t=new URL(window.location.toString());var e=t.searchParams.get("trek");var i=t.searchParams.get("parenttrek");var s=t.searchParams.get("touristiccontent");var a=t.searchParams.get("touristicevent");var r=t.searchParams.get("outdoorsite");var o=t.searchParams.get("outdoorcourse");if(e){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);state.parentTrekId=i?Number(i):null;this.currentTrekId=Number(e);state.mode="treks";this.showTrek=true}else if(s){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(s);state.mode="touristicContents";this.showTouristicContent=true}else if(a){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(a);state.mode="touristicEvents";this.showTouristicEvent=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorSiteId=Number(r);state.mode="outdoor";this.showOutdoorSite=true}else if(o){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorCourseId=Number(o);state.mode="outdoor";this.showOutdoorCourse=true}};t.prototype.componentDidLoad=function(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};t.prototype.onDetailsClose=function(){if(state.mode==="treks"){this.showTrek=false;this.showTrekMap=false;state.currentTrek=null;state.currentTrekSteps=null;state.parentTrekId=null;this.currentTrekId=null}else if(state.mode==="touristicContents"){state.currentTouristicContent=null;this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false}else if(state.mode==="touristicEvents"){state.currentTouristicEvent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;this.showTouristicEventMap=false}else if(state.mode==="outdoor"){state.currentOutdoorSite=null;this.currentOutdoorSiteId=null;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;state.currentOutdoorCourse=null;this.currentOutdoorCourseId=null;this.showOutdoorCourse=false;this.showOutdoorCourseMap=false}};t.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView};t.prototype.handleFilters=function(){this.showFilters=!this.showFilters};t.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){if(state.currentTrek&&state.currentTrek.offline&&!Capacitor.isNativePlatform()){revokeObjectURL(state.currentPois,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicEvents,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicContents,imagesRegExp,["url"]);revokeObjectURL(state.currentInformationDesks,imagesRegExp);revokeObjectURL(state.currentTrek,imagesRegExp,["url"])}this.onDetailsClose();var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");t.searchParams.delete("outdoorsite");t.searchParams.delete("outdoorcourse");window.history.pushState({},"",t)}else{window.history.back()}};t.prototype.handlePopState=function(){var t=new URL(window.location.toString());var e=Number(t.searchParams.get("trek"));var i=t.searchParams.get("touristiccontent");var s=t.searchParams.get("touristicevent");var a=Number(t.searchParams.get("outdoorsite"));if(e&&this.currentTrekId!==e){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;state.currentTouristicContent=null;state.currentTouristicEvent=null;state.currentTrek=null;this.currentTrekId=e;state.mode="treks";this.showTrek=true}else if(a&&this.currentOutdoorSiteId!==a){this.currentOutdoorSiteId=a;state.currentOutdoorSite=null;this.showOutdoorCourse=false;this.showOutdoorSite=true}else if(!e&&!i&&!s&&!a){this.onDetailsClose()}};t.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else if(this.showTouristicContent){this.showTouristicContentMap=!this.showTouristicContentMap}else if(this.showTouristicEvent){this.showTouristicEventMap=!this.showTouristicEventMap}else if(this.showOutdoorSite){this.showOutdoorSiteMap=!this.showOutdoorSiteMap}else{this.showHomeMap=!this.showHomeMap}};t.prototype.getMapVisibilityIconButton=function(){var t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap||this.showOutdoorCourseMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t};t.prototype.getMapVisibilityLabelButton=function(){var t;if(state.language){if(this.showTrek){t=this.showTrekMap?translate[state.language].showDetails:translate[state.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap?translate[state.language].showDetails:translate[state.language].showMap}else{t=this.showHomeMap?translate[state.language].showList:translate[state.language].showMap}}return t};t.prototype.reload=function(){window.location.reload()};t.prototype.disconnectedCallback=function(){reset();window.removeEventListener("popstate",this.handlePopStateBind)};t.prototype.handleOffline=function(){if(state.mode==="treks"){state.offlineTreks=!state.offlineTreks;state.currentTreks=handleTreksFiltersAndSearch()}else{state.offlineOutdoorSites=!state.offlineOutdoorSites;state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.getFiltersName=function(){var t=state.selectedActivitiesFilters+state.selectedLocationFilters+state.selectedThemesFilters;return"".concat(translate[state.language].filter).concat(t>0?" ("+t+")":"")};t.prototype.trekIsLoading=function(){return this.showTrek&&this.currentTrekId&&!state.currentTrek};t.prototype.render=function(){var t=this;return h(Host,{key:"00a8477335eb947c4a63bcc1e17e47189a8e2f90",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-primary":this.colorPrimary,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--color-sensitive-area":this.colorSensitiveArea,"--app-width":this.appWidth,"--app-height":this.appHeight,"--header-height":this.showTrek&&this.showTouristicContent&&this.showTouristicEvent?"116px":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1?"148px":"64px","--header-with-languages":this.languages.split(",").length>1?"38px":"0px","--header-with-offline":this.enableOffline?"48px":"0px","--border-radius":this.rounded?"":"0px"}},!state.currentTreks&&!state.currentTrek&&!state.currentTouristicContent&&!state.currentTouristicEvent&&!state.currentTouristicContents&&!state.currentTouristicEvents&&!state.currentOutdoorSites&&!state.currentOutdoorSite&&!state.currentOutdoorCourses&&!state.currentOutdoorCourse&&h("div",{key:"85a0280eebb127bf0c390b8838f176c7e6c82703",class:"grw-init-loader-container"},h("grw-loader",{key:"5314fa10dc2be016a27457dfafbe39c1addabfb8",exportparts:"loader","color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&state.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.currentTreks&&h("grw-treks-provider",{key:"67597372728428b7b5246072bc2c0770be39dbb9",api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels}),this.trekIsLoading()&&h("grw-trek-provider",{key:"e432450e2b4ac5764c838cb95c5d2fa6012b0605",api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels,signages:this.signages}),this.showTouristicContent&&this.currentTouristicContentId&&h("grw-touristic-content-provider",{key:"1c6394901c7f087da79dfc01d92bf511ca988d61",api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&h("grw-touristic-event-provider",{key:"e08e58443bbf48ceacbc8414442d4efcb650fce9",api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.showOutdoorSite&&this.currentOutdoorSiteId&&!state.currentOutdoorSite&&h("grw-outdoor-site-provider",{key:"36bf3e9eba1e48762d4cdff579b6d25a475f54e9",api:this.api,languages:this.languages,"outdoor-site-id":this.currentOutdoorSiteId,portals:this.portals}),this.showOutdoorCourse&&this.currentOutdoorCourseId&&!state.currentOutdoorCourse&&h("grw-outdoor-course-provider",{key:"03accd8bf96b3883e5933e6a39d3ed898d24355a",api:this.api,languages:this.languages,"outdoor-course-id":this.currentOutdoorCourseId,portals:this.portals}),this.touristicContents&&state.mode==="touristicContents"&&!state.currentTouristicContents&&!this.showTouristicContent&&h("grw-touristic-contents-provider",{key:"a031c054718e82d9ccb8a74aba3de6a8ecafbe19",api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.touristicEvents&&state.mode==="touristicEvents"&&!state.currentTouristicEvents&&!this.showTouristicEvent&&h("grw-touristic-events-provider",{key:"3664789f9eb856220b1238bff6de0c195a95caba",api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.outdoor&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.outdoorSites&&h("grw-outdoor-sites-provider",{key:"20f338cfbde51aa3b0f0f5052f298118b384c6d9",api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes}),(state.currentTreks||state.currentTrek||state.touristicContents||state.touristicEvents||state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSites||state.currentOutdoorSite||state.currentOutdoorCourses||state.currentOutdoorCourse||state.networkError)&&h("div",{key:"577a3459479010bc0470964c7c5dccda561a9ccf",class:"grw-app-container"},state.languages&&state.languages.length>1&&h("div",{key:"d5b457ec81dafc2af6952b7bd9ef05cae82ff2a7",class:"grw-languages-container"},h("grw-select-language",{key:"3e93e41ef9207ed3dfcc7408a457671fbe4a8337"})),h("div",{key:"b96a3b1688b9edd4be8ca9bff723188b18826008",class:"".concat(this.isLargeView?"grw-large-view-header-container":"grw-header-container").concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?" grw-header-detail":"")},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse&&h("grw-segmented-segment",{key:"ec1a14c048703e6b77e301cef21d47df0b322c51","font-family":this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents,outdoor:this.outdoor}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse?h(Fragment,null,h("div",{class:"grw-handle-search-filters-container"},h("div",{class:"grw-handle-search-container"},h("grw-search",{"font-family":this.fontFamily})),h("div",{class:"grw-handle-filters-container"},h("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleFilters()},icon:"filter_list",name:this.getFiltersName()}))),this.enableOffline&&(state.mode==="treks"||state.mode==="outdoor")&&h("div",{part:"grw-offline-container",class:"grw-offline-container"},h("div",{class:"grw-offline-label"},state.mode==="treks"?translate[state.language].onlyOfflineTreks:translate[state.language].onlyOfflineOutdoor),h("grw-switch",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleOffline()},checked:state.mode==="treks"?state.offlineTreks:state.offlineOutdoorSites}))):h("div",{class:"grw-arrow-back-container"},h("button",{onClick:function(){return t.handleBackButton()},class:"grw-arrow-back-icon"},h("span",{part:"icon",class:"icon",innerHTML:ArrowBackIcon})))),h("div",{key:"557b745339ae0b4b7d2b4bc1d9854236d481ea1d",class:"grw-content-container ".concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"grw-content-trek":"grw-content-treks")},state.networkError&&h("div",{key:"eb896c7d6849c944a3e179a5152c717003bc4abf",class:"grw-error-container"},"Une erreur est survenue.",h("grw-common-button",{key:"7ad1f6b8c69866c4b6979d3c7daa941334847c55",exportparts:"common-button,common-button-icon,common-button-label",icon:"refresh",name:"Recharger la page",action:function(){return t.reload()}})),(state.mode==="treks"&&this.treks&&state.treks||state.mode==="touristicContents"&&this.touristicContents&&state.touristicContents||state.mode==="touristicEvents"&&this.touristicEvents&&state.touristicEvents||state.mode==="outdoor"&&this.outdoor&&state.outdoorSites)&&h("div",{key:"1cd1cf594d28eb2c6a3f0fd4df9de09792441cc6",class:this.isLargeView?"grw-large-view-app-list-container":"grw-app-list-container",style:{display:this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"none":"flex",position:this.showTrek?"absolute":"relative"}},state.mode==="treks"&&this.treks&&state.treks&&h("grw-treks-list",{key:"a86143222866560b653d3a7ff34f967992bb1490","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"grw-app":true}),state.mode==="touristicContents"&&this.touristicContents&&state.touristicContents&&h("grw-touristic-contents-list",{key:"9531f514885300646efad33e3824be142baf64b9","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="touristicEvents"&&this.touristicEvents&&state.touristicEvents&&h("grw-touristic-events-list",{key:"4adda08a7ddc26acb8a486ee6f8298c74faa6d29","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="outdoor"&&this.outdoor&&state.outdoorSites&&h("grw-outdoor-sites-list",{key:"a4d48841e3d467abcd734334e53abe4de302acc2","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),(this.showTrek&&!state.currentTrek||this.showTouristicContent&&!state.currentTouristicContent||this.showTouristicEvent&&!state.currentTouristicEvent||this.showOutdoorSite&&!state.currentOutdoorSite||this.showOutdoorCourse&&!state.currentOutdoorCourse||!state.treks&&state.mode==="treks"&&!this.showTrek||!state.touristicContents&&state.mode==="touristicContents"&&!this.showTouristicContent||!state.touristicEvents&&state.mode==="touristicEvents"&&!this.showTouristicEvent||!state.outdoorSites&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse)&&h("div",{key:"8a507c6b993c5215e2232f555e4f1bf24f390700",class:this.isLargeView?"grw-large-view-loader-container":"grw-loader-container"},h("grw-loader",{key:"5290acdc573f9e8eaca2c1bad19156a04004453d",exportparts:"loader","color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),this.showTrek&&state.currentTrek&&h("div",{key:"bd9e49a3f9c01dc166ce0b008a715faba5a53ebd",class:this.isLargeView?"grw-large-view-app-trek-detail-container":"grw-app-trek-detail-container"},h("grw-trek-detail",{key:"e2ae144be7270d27a140ff00b7dd25465b28f2c4",style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView,"emergency-number":this.emergencyNumber,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline,"global-tiles-min-zoom-offline":this.globalTilesMinZoomOffline,"global-tiles-max-zoom-offline":this.globalTilesMaxZoomOffline,"tiles-min-zoom-offline":this.tilesMinZoomOffline,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true,rounded:this.rounded}),h("grw-offline-confirm-modal",{key:"474818d2d82f13ef9af8e734ed2bae9e4f1091e1",mode:"treks"})),this.showTouristicContent&&state.currentTouristicContent&&h("div",{key:"9a7047fa2b233ce6bcd405c656b5bb8d5c71e7f3",class:this.isLargeView?"grw-large-view-app-touristic-content-detail-container":"grw-app-touristic-content-detail-container"},h("grw-touristic-content-detail",{key:"a3ae87bea6a5bda9a17bd820d233dee5ec9cead5",style:{visibility:!this.showTouristicContentMap&&this.showTouristicContent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicContentMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,"grw-app":true})),this.showTouristicEvent&&state.currentTouristicEvent&&h("div",{key:"557aa542f5aa85ab79258bb5e33f51dd5c5220a4",class:this.isLargeView?"grw-large-view-app-touristic-event-detail-container":"grw-app-touristic-event-detail-container"},h("grw-touristic-event-detail",{key:"88ccdc996f10bb22ffde399924df575580a2800d",style:{visibility:!this.showTouristicEventMap&&this.showTouristicEvent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicEventMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,"grw-app":true})),this.showOutdoorSite&&state.currentOutdoorSite&&h("div",{key:"3f6a7224a53ebb93aee175badcb2cc357304bbf8",class:this.isLargeView?"grw-large-view-app-outdoor-site-detail-container":"grw-app-outdoor-site-detail-container"},h("grw-outdoor-site-detail",{key:"ef74294de2f7b00a1e657a3718774f3eaaabbb94",style:{visibility:!this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorSiteMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,weather:this.weather,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline,"grw-app":true}),h("grw-offline-confirm-modal",{key:"07c1652f43f99fa08e3a4b12c180eed17073c71a",mode:"treks"})),this.showOutdoorCourse&&state.currentOutdoorCourse&&h("div",{key:"873f413148b965ba46fb04b4d1b70c2442b65b0c",class:this.isLargeView?"grw-large-view-app-outdoor-course-detail-container":"grw-app-outdoor-course-detail-container"},h("grw-outdoor-course-detail",{key:"2d90e0f9df0f8e97ab350354f65f437cd44cfbdd",style:{visibility:!this.showOutdoorCourseMap&&this.showOutdoorCourse||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorCourseMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,"grw-app":true})),!state.networkError&&h("grw-map",{key:"152a958a712dc34467ea34989540e4686a010a31",exportparts:"map,elevation,map-bottom-space,map-loader-container,loader",class:this.isLargeView?"grw-large-view-app-map-container":"grw-app-map-container",style:{visibility:this.showHomeMap&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrekMap&&this.showTrek||this.showTouristicContentMap&&this.showTouristicContent||this.showTouristicEventMap&&this.showTouristicEvent||this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:this.showHomeMap||this.showTrekMap||this.showTouristicContentMap||this.showTouristicEventMap||this.showOutdoorSiteMap?"1":"0"},"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-background":this.colorBackground,"color-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true,"main-marker-size":this.mainMarkerSize,"selected-main-marker-size":this.selectedMainMarkerSize,"main-cluster-size":this.mainClusterSize,"common-marker-size":this.commonMarkerSize,"departure-arrival-marker-size":this.departureArrivalMarkerSize,"point-reference-marker-size":this.pointReferenceMarkerSize,"elevation-height":this.elevationHeight,"mobile-elevation-height":this.mobileElevationHeight,"large-view-size":this.largeViewSize,"is-large-view":this.isLargeView,"arrow-repeat":this.arrowRepeat})),(!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrek&&state.currentTrek||this.showTouristicContent&&state.currentTouristicContent||this.showTouristicEvent&&state.currentTouristicEvent||this.showOutdoorSite&&state.currentOutdoorSite)&&h("div",{key:"480335a512bc25163b83ca3855ecdee8904a3140",class:"grw-map-visibility-button-container"},h("grw-extended-fab",{key:"8ef4e95cc3649555281546dc903684217fdb4066",exportparts:"map-visibility-button,map-visibility-button-icon,map-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleShowMap()},icon:function(){return t.getMapVisibilityIconButton()},name:function(){return t.getMapVisibilityLabelButton()},display:this.isLargeView?"none":"flex"}))),!this.showTrek&&this.showFilters&&h("grw-filters",{key:"ffb7ad4b574b9ea99d3f8e6fcd662f311a6b88b5","font-family":this.fontFamily,handleFilters:function(){return t.handleFilters()}}))};Object.defineProperty(t.prototype,"appElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return t}();GrwApp.style=GrwAppStyle0;export{GrwApp as grw_app};
|
|
1
|
+
import{r as registerInstance,h,F as Fragment,H as Host,g as getElement}from"./index-83d78b30.js";import{C as Capacitor,r as revokeObjectURL,h as handleTreksFiltersAndSearch,a as handleOutdoorSitesFiltersAndSearch,i as imagesRegExp}from"./utils-5feb9281.js";import{t as translate}from"./i18n-d4785001.js";import{s as state,r as reset}from"./store-882ab9be.js";var ArrowBackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/></svg>';var grwAppCss="grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);overflow:hidden;max-width:100dvw;max-height:100dvh}.grw-app-container{position:relative;background-color:var(--color-background);width:100%;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.grw-languages-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;margin:16px 16px 0px 0px}.grw-header-container,.grw-large-view-header-container{height:calc(var(--header-height) + var(--header-with-offline) + var(--header-with-languages))}.grw-header-container .grw-arrow-back-container,.grw-large-view-header-container .grw-arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.grw-header-container .grw-arrow-back-container .grw-arrow-back-icon,.grw-large-view-header-container .grw-arrow-back-container .grw-arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:var(--border-radius, 50%);height:48px;width:48px;padding:0px;text-align:left}.grw-handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.grw-handle-search-filters-container .grw-handle-search-container{width:calc(50% + 48px);max-width:220px}.grw-handle-search-filters-container .grw-handle-filters-container{margin-left:16px}.grw-header-detail{min-height:64px;height:64px}.grw-large-view-header-container .grw-handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.grw-init-loader-container,.grw-loader-container,.grw-large-view-loader-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.grw-content-container{position:relative;display:-ms-flexbox;display:flex}.grw-content-treks{height:calc(100% - var(--header-height) - var(--header-with-languages) - var(--header-with-offline))}.grw-content-trek{height:calc(100% - var(--header-height) - var(--header-with-languages))}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:100%;height:100%}.grw-app-map-container,.grw-large-view-app-map-container{width:100%;height:100%}.grw-map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4;pointer-events:none}.grw-init-loader-container,.grw-loader-container{width:100%}.grw-app-list-container,.grw-app-trek-detail-container,.grw-app-touristic-content-detail-container,.grw-app-touristic-event-detail-container,.grw-app-outdoor-site-detail-container,.grw-app-outdoor-course-detail-container{width:100%}grw-treks-list,grw-touristic-contents-list,grw-touristic-events-list,grw-outdoor-sites-list{max-height:calc(100vh - var(--header-height))}grw-trek-detail{position:relative;max-height:100%}grw-touristic-content-detail,grw-touristic-event-detail,grw-outdoor-site-detail{position:relative;max-height:100%}.grw-app-map-container{width:100%;position:absolute}.grw-large-view-loader-container{position:relative;width:50%}.grw-large-view-app-list-container,.grw-large-view-app-trek-detail-container,.grw-large-view-app-touristic-content-detail-container,.grw-large-view-app-touristic-event-detail-container,.grw-large-view-app-outdoor-site-detail-container,.grw-large-view-app-outdoor-course-detail-container{width:50%}.grw-large-view-app-map-container{position:relative;width:50%}.grw-error-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%;margin-top:16px;font-family:var(--font-family);font-size:16px}.grw-error-container grw-common-button{margin-top:16px}.grw-offline-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 0px 0px 16px;height:48px}.grw-offline-container .grw-offline-label{display:-ms-flexbox;display:flex}.grw-offline-container grw-switch{margin-top:-10px}";var GrwAppStyle0=grwAppCss;var GrwApp=function(){function t(t){registerInstance(this,t);this.showTrek=false;this.showTouristicContent=false;this.showTouristicEvent=false;this.showOutdoorSite=false;this.showOutdoorCourse=false;this.showOutdoorSiteMap=false;this.showOutdoorCourseMap=false;this.showHomeMap=false;this.showTrekMap=false;this.showTouristicContentMap=false;this.showTouristicEventMap=false;this.showFilters=false;this.isLargeView=false;this.appWidth="100%";this.appHeight="100vh";this.languages="fr";this.weather=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6750a4";this.colorPrimary="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.rounded=true;this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.largeViewSize=1024;this.elevationHeight=280;this.mobileElevationHeight=280;this.signages=false;this.arrowRepeat=20;this.handlePopStateBind=this.handlePopState.bind(this)}t.prototype.onTrekCardPress=function(t){this.currentTouristicContentId=null;this.showTouristicContent=false;state.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;state.currentTouristicEvent=null;var e=state.parentTrekId?state.parentTrekId:state.currentTrekSteps?this.currentTrekId:null;state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());if(state.currentTrekSteps){i.searchParams.set("parenttrek",e.toString())}window.history.pushState({},"",i)};t.prototype.onParentTrekPress=function(t){state.currentTrek=null;this.currentTrekId=t.detail;state.mode="treks";this.showTrek=true;this.showTrekMap=false;var e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());e.searchParams.delete("parenttrek");window.history.pushState({},"",e)};t.prototype.onTouristicContentCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;state.mode="touristicContents";this.showTouristicContent=true;this.showTouristicContentMap=false;var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",e)};t.prototype.onTouristiceEventCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;state.mode="touristicEvents";this.showTouristicEvent=true;this.showTouristicEventMap=false;var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",e)};t.prototype.onOutdoorSiteCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=t.detail;this.showOutdoorSite=true;this.showOutdoorSiteMap=false;var e=new URL(window.location.toString());e.searchParams.set("outdoorsite",this.currentOutdoorSiteId.toString());window.history.pushState({},"",e)};t.prototype.onOutdoorCourseCardPress=function(t){state.currentTrek=null;this.currentTrekId=null;this.showTrek=false;state.mode="outdoor";state.currentOutdoorSite=null;state.currentOutdoorCourse=null;state.currentRelatedOutdoorSites=null;state.currentRelatedOutdoorCourses=null;this.currentOutdoorSiteId=null;this.currentOutdoorCourseId=t.detail;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;this.showOutdoorCourse=true;this.showOutdoorSiteMap=false;var e=new URL(window.location.toString());e.searchParams.delete("outdoorsite");e.searchParams.set("outdoorcourse",this.currentOutdoorCourseId.toString());window.history.pushState({},"",e)};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};t.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};t.prototype.componentWillLoad=function(){if(this.treks){state.mode="treks"}else if(this.touristicContents){state.mode="touristicContents"}else if(this.touristicEvents){state.mode="touristicEvents"}else if(this.outdoor){state.mode="outdoor"}var t=new URL(window.location.toString());var e=t.searchParams.get("trek");var i=t.searchParams.get("parenttrek");var s=t.searchParams.get("touristiccontent");var a=t.searchParams.get("touristicevent");var r=t.searchParams.get("outdoorsite");var o=t.searchParams.get("outdoorcourse");if(e){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);state.parentTrekId=i?Number(i):null;this.currentTrekId=Number(e);state.mode="treks";this.showTrek=true}else if(s){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(s);state.mode="touristicContents";this.showTouristicContent=true}else if(a){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(a);state.mode="touristicEvents";this.showTouristicEvent=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorSiteId=Number(r);state.mode="outdoor";this.showOutdoorSite=true}else if(o){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentOutdoorCourseId=Number(o);state.mode="outdoor";this.showOutdoorCourse=true}};t.prototype.componentDidLoad=function(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};t.prototype.onDetailsClose=function(){if(state.mode==="treks"){this.showTrek=false;this.showTrekMap=false;state.currentTrek=null;state.currentTrekSteps=null;state.parentTrekId=null;this.currentTrekId=null}else if(state.mode==="touristicContents"){state.currentTouristicContent=null;this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false}else if(state.mode==="touristicEvents"){state.currentTouristicEvent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;this.showTouristicEventMap=false}else if(state.mode==="outdoor"){state.currentOutdoorSite=null;this.currentOutdoorSiteId=null;this.showOutdoorSite=false;this.showOutdoorSiteMap=false;state.currentOutdoorCourse=null;this.currentOutdoorCourseId=null;this.showOutdoorCourse=false;this.showOutdoorCourseMap=false}};t.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView};t.prototype.handleFilters=function(){this.showFilters=!this.showFilters};t.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){if(state.currentTrek&&state.currentTrek.offline&&!Capacitor.isNativePlatform()){revokeObjectURL(state.currentPois,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicEvents,imagesRegExp,["url"]);revokeObjectURL(state.trekTouristicContents,imagesRegExp,["url"]);revokeObjectURL(state.currentInformationDesks,imagesRegExp);revokeObjectURL(state.currentTrek,imagesRegExp,["url"])}this.onDetailsClose();var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");t.searchParams.delete("outdoorsite");t.searchParams.delete("outdoorcourse");window.history.pushState({},"",t)}else{window.history.back()}};t.prototype.handlePopState=function(){var t=new URL(window.location.toString());var e=Number(t.searchParams.get("trek"));var i=t.searchParams.get("touristiccontent");var s=t.searchParams.get("touristicevent");var a=Number(t.searchParams.get("outdoorsite"));if(e&&this.currentTrekId!==e){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;state.currentTouristicContent=null;state.currentTouristicEvent=null;state.currentTrek=null;this.currentTrekId=e;state.mode="treks";this.showTrek=true}else if(a&&this.currentOutdoorSiteId!==a){this.currentOutdoorSiteId=a;state.currentOutdoorSite=null;this.showOutdoorCourse=false;this.showOutdoorSite=true}else if(!e&&!i&&!s&&!a){this.onDetailsClose()}};t.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else if(this.showTouristicContent){this.showTouristicContentMap=!this.showTouristicContentMap}else if(this.showTouristicEvent){this.showTouristicEventMap=!this.showTouristicEventMap}else if(this.showOutdoorSite){this.showOutdoorSiteMap=!this.showOutdoorSiteMap}else{this.showHomeMap=!this.showHomeMap}};t.prototype.getMapVisibilityIconButton=function(){var t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap||this.showOutdoorCourseMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t};t.prototype.getMapVisibilityLabelButton=function(){var t;if(state.language){if(this.showTrek){t=this.showTrekMap?translate[state.language].showDetails:translate[state.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?translate[state.language].showDetails:translate[state.language].showMap}else if(this.showOutdoorSite||this.showOutdoorCourse){t=this.showOutdoorSiteMap?translate[state.language].showDetails:translate[state.language].showMap}else{t=this.showHomeMap?translate[state.language].showList:translate[state.language].showMap}}return t};t.prototype.reload=function(){window.location.reload()};t.prototype.disconnectedCallback=function(){reset();window.removeEventListener("popstate",this.handlePopStateBind)};t.prototype.handleOffline=function(){if(state.mode==="treks"){state.offlineTreks=!state.offlineTreks;state.currentTreks=handleTreksFiltersAndSearch()}else{state.offlineOutdoorSites=!state.offlineOutdoorSites;state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.getFiltersName=function(){var t=state.selectedActivitiesFilters+state.selectedLocationFilters+state.selectedThemesFilters;return"".concat(translate[state.language].filter).concat(t>0?" ("+t+")":"")};t.prototype.trekIsLoading=function(){return this.showTrek&&this.currentTrekId&&!state.currentTrek};t.prototype.render=function(){var t=this;return h(Host,{key:"00a8477335eb947c4a63bcc1e17e47189a8e2f90",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-primary":this.colorPrimary,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--color-sensitive-area":this.colorSensitiveArea,"--app-width":this.appWidth,"--app-height":this.appHeight,"--header-height":this.showTrek&&this.showTouristicContent&&this.showTouristicEvent?"116px":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1?"148px":"64px","--header-with-languages":this.languages.split(",").length>1?"38px":"0px","--header-with-offline":this.enableOffline?"48px":"0px","--border-radius":this.rounded?"":"0px"}},!state.currentTreks&&!state.currentTrek&&!state.currentTouristicContent&&!state.currentTouristicEvent&&!state.currentTouristicContents&&!state.currentTouristicEvents&&!state.currentOutdoorSites&&!state.currentOutdoorSite&&!state.currentOutdoorCourses&&!state.currentOutdoorCourse&&h("div",{key:"85a0280eebb127bf0c390b8838f176c7e6c82703",class:"grw-init-loader-container"},h("grw-loader",{key:"5314fa10dc2be016a27457dfafbe39c1addabfb8",exportparts:"loader","color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&state.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.currentTreks&&h("grw-treks-provider",{key:"67597372728428b7b5246072bc2c0770be39dbb9",api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels}),this.trekIsLoading()&&h("grw-trek-provider",{key:"e432450e2b4ac5764c838cb95c5d2fa6012b0605",api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,routes:this.routes,practices:this.practices,labels:this.labels,signages:this.signages}),this.showTouristicContent&&this.currentTouristicContentId&&h("grw-touristic-content-provider",{key:"1c6394901c7f087da79dfc01d92bf511ca988d61",api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&h("grw-touristic-event-provider",{key:"e08e58443bbf48ceacbc8414442d4efcb650fce9",api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.showOutdoorSite&&this.currentOutdoorSiteId&&!state.currentOutdoorSite&&h("grw-outdoor-site-provider",{key:"36bf3e9eba1e48762d4cdff579b6d25a475f54e9",api:this.api,languages:this.languages,"outdoor-site-id":this.currentOutdoorSiteId,portals:this.portals}),this.showOutdoorCourse&&this.currentOutdoorCourseId&&!state.currentOutdoorCourse&&h("grw-outdoor-course-provider",{key:"03accd8bf96b3883e5933e6a39d3ed898d24355a",api:this.api,languages:this.languages,"outdoor-course-id":this.currentOutdoorCourseId,portals:this.portals}),this.touristicContents&&state.mode==="touristicContents"&&!state.currentTouristicContents&&!this.showTouristicContent&&h("grw-touristic-contents-provider",{key:"a031c054718e82d9ccb8a74aba3de6a8ecafbe19",api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.touristicEvents&&state.mode==="touristicEvents"&&!state.currentTouristicEvents&&!this.showTouristicEvent&&h("grw-touristic-events-provider",{key:"3664789f9eb856220b1238bff6de0c195a95caba",api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.outdoor&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse&&!this.showTouristicContent&&!this.showTouristicEvent&&!state.outdoorSites&&h("grw-outdoor-sites-provider",{key:"20f338cfbde51aa3b0f0f5052f298118b384c6d9",api:this.api,languages:this.languages,portals:this.portals,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes}),(state.currentTreks||state.currentTrek||state.touristicContents||state.touristicEvents||state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSites||state.currentOutdoorSite||state.currentOutdoorCourses||state.currentOutdoorCourse||state.networkError)&&h("div",{key:"577a3459479010bc0470964c7c5dccda561a9ccf",class:"grw-app-container"},state.languages&&state.languages.length>1&&h("div",{key:"d5b457ec81dafc2af6952b7bd9ef05cae82ff2a7",class:"grw-languages-container"},h("grw-select-language",{key:"3e93e41ef9207ed3dfcc7408a457671fbe4a8337"})),h("div",{key:"b96a3b1688b9edd4be8ca9bff723188b18826008",class:"".concat(this.isLargeView?"grw-large-view-header-container":"grw-header-container").concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?" grw-header-detail":"")},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)+Number(this.outdoor)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse&&h("grw-segmented-segment",{key:"ec1a14c048703e6b77e301cef21d47df0b322c51","font-family":this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents,outdoor:this.outdoor}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite&&!this.showOutdoorCourse?h(Fragment,null,h("div",{class:"grw-handle-search-filters-container"},h("div",{class:"grw-handle-search-container"},h("grw-search",{"font-family":this.fontFamily})),h("div",{class:"grw-handle-filters-container"},h("grw-common-button",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleFilters()},icon:"filter_list",name:this.getFiltersName()}))),this.enableOffline&&(state.mode==="treks"||state.mode==="outdoor")&&h("div",{part:"grw-offline-container",class:"grw-offline-container"},h("div",{class:"grw-offline-label"},state.mode==="treks"?translate[state.language].onlyOfflineTreks:translate[state.language].onlyOfflineOutdoor),h("grw-switch",{exportparts:"common-button,common-button-icon,common-button-label","font-family":this.fontFamily,action:function(){return t.handleOffline()},checked:state.mode==="treks"?state.offlineTreks:state.offlineOutdoorSites}))):h("div",{class:"grw-arrow-back-container"},h("button",{onClick:function(){return t.handleBackButton()},class:"grw-arrow-back-icon"},h("span",{part:"icon",class:"icon",innerHTML:ArrowBackIcon})))),h("div",{key:"557b745339ae0b4b7d2b4bc1d9854236d481ea1d",class:"grw-content-container ".concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"grw-content-trek":"grw-content-treks")},state.networkError&&h("div",{key:"eb896c7d6849c944a3e179a5152c717003bc4abf",class:"grw-error-container"},"Une erreur est survenue.",h("grw-common-button",{key:"7ad1f6b8c69866c4b6979d3c7daa941334847c55",exportparts:"common-button,common-button-icon,common-button-label",icon:"refresh",name:"Recharger la page",action:function(){return t.reload()}})),(state.mode==="treks"&&this.treks&&state.treks||state.mode==="touristicContents"&&this.touristicContents&&state.touristicContents||state.mode==="touristicEvents"&&this.touristicEvents&&state.touristicEvents||state.mode==="outdoor"&&this.outdoor&&state.outdoorSites)&&h("div",{key:"1cd1cf594d28eb2c6a3f0fd4df9de09792441cc6",class:this.isLargeView?"grw-large-view-app-list-container":"grw-app-list-container",style:{display:this.showTrek||this.showTouristicContent||this.showTouristicEvent||this.showOutdoorSite||this.showOutdoorCourse?"none":"flex",position:this.showTrek?"absolute":"relative"}},state.mode==="treks"&&this.treks&&state.treks&&h("grw-treks-list",{key:"a86143222866560b653d3a7ff34f967992bb1490","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"grw-app":true}),state.mode==="touristicContents"&&this.touristicContents&&state.touristicContents&&h("grw-touristic-contents-list",{key:"9531f514885300646efad33e3824be142baf64b9","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="touristicEvents"&&this.touristicEvents&&state.touristicEvents&&h("grw-touristic-events-list",{key:"4adda08a7ddc26acb8a486ee6f8298c74faa6d29","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),state.mode==="outdoor"&&this.outdoor&&state.outdoorSites&&h("grw-outdoor-sites-list",{key:"a4d48841e3d467abcd734334e53abe4de302acc2","is-large-view":this.isLargeView,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),(this.showTrek&&!state.currentTrek||this.showTouristicContent&&!state.currentTouristicContent||this.showTouristicEvent&&!state.currentTouristicEvent||this.showOutdoorSite&&!state.currentOutdoorSite||this.showOutdoorCourse&&!state.currentOutdoorCourse||!state.treks&&state.mode==="treks"&&!this.showTrek||!state.touristicContents&&state.mode==="touristicContents"&&!this.showTouristicContent||!state.touristicEvents&&state.mode==="touristicEvents"&&!this.showTouristicEvent||!state.outdoorSites&&state.mode==="outdoor"&&!this.showOutdoorSite&&!this.showOutdoorCourse)&&h("div",{key:"8a507c6b993c5215e2232f555e4f1bf24f390700",class:this.isLargeView?"grw-large-view-loader-container":"grw-loader-container"},h("grw-loader",{key:"5290acdc573f9e8eaca2c1bad19156a04004453d",exportparts:"loader","color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),this.showTrek&&state.currentTrek&&h("div",{key:"bd9e49a3f9c01dc166ce0b008a715faba5a53ebd",class:this.isLargeView?"grw-large-view-app-trek-detail-container":"grw-app-trek-detail-container"},h("grw-trek-detail",{key:"e2ae144be7270d27a140ff00b7dd25465b28f2c4",style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView,"emergency-number":this.emergencyNumber,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline,"global-tiles-min-zoom-offline":this.globalTilesMinZoomOffline,"global-tiles-max-zoom-offline":this.globalTilesMaxZoomOffline,"tiles-min-zoom-offline":this.tilesMinZoomOffline,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true,rounded:this.rounded}),h("grw-offline-confirm-modal",{key:"474818d2d82f13ef9af8e734ed2bae9e4f1091e1",mode:"treks"})),this.showTouristicContent&&state.currentTouristicContent&&h("div",{key:"9a7047fa2b233ce6bcd405c656b5bb8d5c71e7f3",class:this.isLargeView?"grw-large-view-app-touristic-content-detail-container":"grw-app-touristic-content-detail-container"},h("grw-touristic-content-detail",{key:"a3ae87bea6a5bda9a17bd820d233dee5ec9cead5",style:{visibility:!this.showTouristicContentMap&&this.showTouristicContent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicContentMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,"grw-app":true})),this.showTouristicEvent&&state.currentTouristicEvent&&h("div",{key:"557aa542f5aa85ab79258bb5e33f51dd5c5220a4",class:this.isLargeView?"grw-large-view-app-touristic-event-detail-container":"grw-app-touristic-event-detail-container"},h("grw-touristic-event-detail",{key:"88ccdc996f10bb22ffde399924df575580a2800d",style:{visibility:!this.showTouristicEventMap&&this.showTouristicEvent||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicEventMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,"grw-app":true})),this.showOutdoorSite&&state.currentOutdoorSite&&h("div",{key:"3f6a7224a53ebb93aee175badcb2cc357304bbf8",class:this.isLargeView?"grw-large-view-app-outdoor-site-detail-container":"grw-app-outdoor-site-detail-container"},h("grw-outdoor-site-detail",{key:"ef74294de2f7b00a1e657a3718774f3eaaabbb94",style:{visibility:!this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorSiteMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,weather:this.weather,"default-background-layer-url":this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}))[0],"default-background-layer-attribution":this.attributionLayer?this.attributionLayer.split(",")[0]:[],"enable-offline":this.enableOffline,"grw-app":true}),h("grw-offline-confirm-modal",{key:"07c1652f43f99fa08e3a4b12c180eed17073c71a",mode:"treks"})),this.showOutdoorCourse&&state.currentOutdoorCourse&&h("div",{key:"873f413148b965ba46fb04b4d1b70c2442b65b0c",class:this.isLargeView?"grw-large-view-app-outdoor-course-detail-container":"grw-app-outdoor-course-detail-container"},h("grw-outdoor-course-detail",{key:"2d90e0f9df0f8e97ab350354f65f437cd44cfbdd",style:{visibility:!this.showOutdoorCourseMap&&this.showOutdoorCourse||this.isLargeView?"visible":"hidden",zIndex:!this.showOutdoorCourseMap?"1":"0"},"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView,"grw-app":true})),!state.networkError&&h("grw-map",{key:"152a958a712dc34467ea34989540e4686a010a31",exportparts:"map,elevation,map-bottom-space,map-loader-container,loader",class:this.isLargeView?"grw-large-view-app-map-container":"grw-app-map-container",style:{visibility:this.showHomeMap&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrekMap&&this.showTrek||this.showTouristicContentMap&&this.showTouristicContent||this.showTouristicEventMap&&this.showTouristicEvent||this.showOutdoorSiteMap&&this.showOutdoorSite||this.isLargeView?"visible":"hidden",zIndex:this.showHomeMap||this.showTrekMap||this.showTouristicContentMap||this.showTouristicEventMap||this.showOutdoorSiteMap?"1":"0"},"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,"font-family":this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer,"color-background":this.colorBackground,"color-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"tiles-max-zoom-offline":this.tilesMaxZoomOffline,"grw-app":true,"main-marker-size":this.mainMarkerSize,"selected-main-marker-size":this.selectedMainMarkerSize,"main-cluster-size":this.mainClusterSize,"common-marker-size":this.commonMarkerSize,"departure-arrival-marker-size":this.departureArrivalMarkerSize,"point-reference-marker-size":this.pointReferenceMarkerSize,"elevation-height":this.elevationHeight,"mobile-elevation-height":this.mobileElevationHeight,"large-view-size":this.largeViewSize,"is-large-view":this.isLargeView,"arrow-repeat":this.arrowRepeat})),(!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!this.showOutdoorSite||this.showTrek&&state.currentTrek||this.showTouristicContent&&state.currentTouristicContent||this.showTouristicEvent&&state.currentTouristicEvent||this.showOutdoorSite&&state.currentOutdoorSite)&&h("div",{key:"480335a512bc25163b83ca3855ecdee8904a3140",class:"grw-map-visibility-button-container"},h("grw-extended-fab",{key:"3cad5ea4f530a54cd9f4967582541a75d38e057d",exportparts:"map-visibility-button,map-visibility-button-icon,map-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleShowMap()},icon:function(){return t.getMapVisibilityIconButton()},name:function(){return t.getMapVisibilityLabelButton()},display:this.isLargeView?"none":"flex","fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.showTrek&&this.showFilters&&h("grw-filters",{key:"d4bce6d7b4ccd591d96a4b58718c23b42f9cc65e","font-family":this.fontFamily,handleFilters:function(){return t.handleFilters()}}))};Object.defineProperty(t.prototype,"appElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return t}();GrwApp.style=GrwAppStyle0;export{GrwApp as grw_app};
|
|
2
2
|
//# sourceMappingURL=grw-app.entry.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["grwAppCss","GrwAppStyle0","GrwApp","hostRef","this","showTrek","showTouristicContent","showTouristicEvent","showOutdoorSite","showOutdoorCourse","showOutdoorSiteMap","showOutdoorCourseMap","showHomeMap","showTrekMap","showTouristicContentMap","showTouristicEventMap","showFilters","isLargeView","appWidth","appHeight","languages","weather","fontFamily","colorPrimaryApp","colorPrimary","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","rounded","colorTrekLine","colorSensitiveArea","colorMarkers","colorClusters","colorOutdoorArea","treks","touristicContents","touristicEvents","outdoor","enableOffline","globalTilesMinZoomOffline","globalTilesMaxZoomOffline","tilesMinZoomOffline","tilesMaxZoomOffline","mainMarkerSize","selectedMainMarkerSize","mainClusterSize","commonMarkerSize","departureArrivalMarkerSize","pointReferenceMarkerSize","largeViewSize","elevationHeight","mobileElevationHeight","signages","arrowRepeat","handlePopStateBind","handlePopState","bind","prototype","onTrekCardPress","event","currentTouristicContentId","state","currentTouristicContent","currentTouristicEventId","currentTouristicEvent","parentTrek","parentTrekId","currentTrekSteps","currentTrekId","currentTrek","detail","mode","url","URL","window","location","toString","searchParams","set","history","pushState","onParentTrekPress","delete","onTouristicContentCardPress","onTouristiceEventCardPress","onOutdoorSiteCardPress","currentOutdoorSite","currentRelatedOutdoorSites","currentRelatedOutdoorCourses","currentOutdoorSiteId","onOutdoorCourseCardPress","currentOutdoorCourse","currentOutdoorCourseId","onWindowResize","handleView","onCenterOnMap","watchPropHandler","dispatchEvent","Event","componentWillLoad","trekParam","get","touristicContentParam","touristicEventParam","outdoorSiteParam","outdoorCourseParam","replaceState","isInitialHistoryWithDetails","Number","componentDidLoad","addEventListener","onDetailsClose","appElement","getBoundingClientRect","width","handleFilters","handleBackButton","offline","Capacitor","isNativePlatform","revokeObjectURL","currentPois","imagesRegExp","trekTouristicEvents","trekTouristicContents","currentInformationDesks","back","handleShowMap","getMapVisibilityIconButton","mapIconButton","getMapVisibilityLabelButton","mapLabelButton","language","translate","showDetails","showRoute","showMap","showList","reload","disconnectedCallback","reset","removeEventListener","handleOffline","offlineTreks","currentTreks","handleTreksFiltersAndSearch","offlineOutdoorSites","currentOutdoorSites","handleOutdoorSitesFiltersAndSearch","getFiltersName","activeFilters","selectedActivitiesFilters","selectedLocationFilters","selectedThemesFilters","concat","filter","trekIsLoading","render","_this","h","Host","key","style","split","length","currentTouristicContents","currentTouristicEvents","currentOutdoorCourses","class","exportparts","api","portals","inBbox","cities","districts","structures","themes","routes","practices","labels","outdoorSites","networkError","Fragment","action","icon","name","part","onlyOfflineTreks","onlyOfflineOutdoor","checked","onClick","innerHTML","ArrowBackIcon","display","position","visibility","zIndex","emergencyNumber","urlLayer","map","index","attributionLayer","nameLayer"],"sources":["src/components/grw-app/grw-app.scss?tag=grw-app","src/components/grw-app/grw-app.tsx"],"sourcesContent":["grw-app {\n display: block;\n position: relative;\n width: var(--app-width);\n height: var(--app-height);\n overflow: hidden;\n max-width: 100dvw;\n max-height: 100dvh;\n}\n\n.grw-app-container {\n position: relative;\n background-color: var(--color-background);\n width: 100%;\n height: 100%;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n}\n\n.grw-languages-container {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n margin: 16px 16px 0px 0px;\n}\n\n.grw-header-container,\n.grw-large-view-header-container {\n height: calc(var(--header-height) + var(--header-with-offline) + var(--header-with-languages));\n .grw-arrow-back-container {\n display: flex;\n align-items: center;\n height: 100%;\n margin: 0px 16px;\n .grw-arrow-back-icon {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n color: var(--color-on-surface);\n border: none;\n background-color: var(--color-background);\n border-radius: var(--border-radius, 50%);\n height: 48px;\n width: 48px;\n padding: 0px;\n text-align: left;\n }\n }\n}\n\n.grw-handle-search-filters-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0px 16px;\n height: 64px;\n\n .grw-handle-search-container {\n width: calc(50% + 48px);\n max-width: 220px;\n }\n .grw-handle-filters-container {\n margin-left: 16px;\n }\n}\n\n.grw-header-detail {\n min-height: 64px;\n height: 64px;\n}\n\n.grw-large-view-header-container {\n .grw-handle-search-filters-container {\n justify-content: flex-start;\n }\n}\n\n.grw-init-loader-container,\n.grw-loader-container,\n.grw-large-view-loader-container {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n background-color: var(--color-background);\n}\n\n.grw-content-container {\n position: relative;\n display: flex;\n}\n\n.grw-content-treks {\n height: calc(100% - var(--header-height) - var(--header-with-languages) - var(--header-with-offline));\n}\n\n.grw-content-trek {\n height: calc(100% - var(--header-height) - var(--header-with-languages));\n}\n\n.grw-large-view-app-list-container,\n.grw-large-view-app-trek-detail-container,\n.grw-large-view-app-touristic-content-detail-container,\n.grw-large-view-app-touristic-event-detail-container,\n.grw-large-view-app-outdoor-site-detail-container,\n.grw-large-view-app-outdoor-course-detail-container,\n.grw-large-view-app-list-container,\n.grw-large-view-app-trek-detail-container {\n display: flex;\n flex-direction: column;\n max-width: 100%;\n height: 100%;\n}\n\n.grw-app-map-container,\n.grw-large-view-app-map-container {\n width: 100%;\n height: 100%;\n}\n\n.grw-map-visibility-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n position: absolute;\n bottom: 24px;\n z-index: 4;\n pointer-events: none;\n}\n\n.grw-init-loader-container,\n.grw-loader-container {\n width: 100%;\n}\n\n.grw-app-list-container,\n.grw-app-trek-detail-container,\n.grw-app-touristic-content-detail-container,\n.grw-app-touristic-event-detail-container,\n.grw-app-outdoor-site-detail-container,\n.grw-app-outdoor-course-detail-container {\n width: 100%;\n}\n\ngrw-treks-list,\ngrw-touristic-contents-list,\ngrw-touristic-events-list,\ngrw-outdoor-sites-list {\n max-height: calc(100vh - var(--header-height));\n}\n\ngrw-trek-detail {\n position: relative;\n max-height: 100%;\n}\n\ngrw-touristic-content-detail,\ngrw-touristic-event-detail,\ngrw-outdoor-site-detail {\n position: relative;\n max-height: 100%;\n}\n\n.grw-app-map-container {\n width: 100%;\n position: absolute;\n}\n\n.grw-large-view-loader-container {\n position: relative;\n width: 50%;\n}\n\n.grw-large-view-app-list-container,\n.grw-large-view-app-trek-detail-container,\n.grw-large-view-app-touristic-content-detail-container,\n.grw-large-view-app-touristic-event-detail-container,\n.grw-large-view-app-outdoor-site-detail-container,\n.grw-large-view-app-outdoor-course-detail-container {\n width: 50%;\n}\n\n.grw-large-view-app-map-container {\n position: relative;\n width: 50%;\n}\n\n.grw-error-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n margin-top: 16px;\n font-family: var(--font-family);\n font-size: 16px;\n grw-common-button {\n margin-top: 16px;\n }\n}\n\n.grw-offline-container {\n display: flex;\n align-items: center;\n margin: 0px 0px 0px 16px;\n height: 48px;\n .grw-offline-label {\n display: flex;\n }\n grw-switch {\n margin-top: -10px;\n }\n}\n","import { Capacitor } from '@capacitor/core';\nimport { Component, Host, h, Listen, State, Prop, Element, Watch, Fragment } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state, { reset } from 'store/store';\nimport { handleOutdoorSitesFiltersAndSearch, handleTreksFiltersAndSearch, imagesRegExp, revokeObjectURL } from 'utils/utils';\nimport ArrowBackIcon from '../../assets/arrow-back.svg';\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() showOutdoorSite = false;\n @State() showOutdoorCourse = false;\n @State() showOutdoorSiteMap = false;\n @State() showOutdoorCourseMap = false;\n\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 @State() currentOutdoorSiteId: number;\n @State() currentOutdoorCourseId: number;\n\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() labels: string;\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() colorMarkers = null;\n @Prop() colorClusters = null;\n @Prop() colorOutdoorArea = '#ffb700';\n\n @Prop() treks = true;\n @Prop() touristicContents = false;\n @Prop() touristicEvents = false;\n @Prop() outdoor = false;\n\n @Prop() enableOffline = false;\n @Prop() globalTilesMinZoomOffline = 0;\n @Prop() globalTilesMaxZoomOffline = 11;\n @Prop() tilesMinZoomOffline = 12;\n @Prop() tilesMaxZoomOffline = 16;\n\n @Prop() mainMarkerSize = 32;\n @Prop() selectedMainMarkerSize = 48;\n @Prop() mainClusterSize = 48;\n @Prop() commonMarkerSize = 48;\n @Prop() departureArrivalMarkerSize = 14;\n @Prop() pointReferenceMarkerSize = 24;\n\n @Prop() largeViewSize = 1024;\n @Prop() elevationHeight = 280;\n @Prop() mobileElevationHeight = 280;\n\n @Prop() signages = false;\n @Prop() arrowRepeat = 20;\n\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('outdoorSiteCardPress', { target: 'window' })\n onOutdoorSiteCardPress(event: CustomEvent<number>) {\n state.currentTrek = null;\n this.currentTrekId = null;\n this.showTrek = false;\n\n state.mode = 'outdoor';\n state.currentOutdoorSite = null;\n state.currentRelatedOutdoorSites = null;\n state.currentRelatedOutdoorCourses = null;\n this.currentOutdoorSiteId = event.detail;\n this.showOutdoorSite = true;\n this.showOutdoorSiteMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.set('outdoorsite', this.currentOutdoorSiteId.toString());\n window.history.pushState({}, '', url);\n }\n\n @Listen('outdoorCourseCardPress', { target: 'window' })\n onOutdoorCourseCardPress(event: CustomEvent<number>) {\n state.currentTrek = null;\n this.currentTrekId = null;\n this.showTrek = false;\n\n state.mode = 'outdoor';\n state.currentOutdoorSite = null;\n state.currentOutdoorCourse = null;\n state.currentRelatedOutdoorSites = null;\n state.currentRelatedOutdoorCourses = null;\n this.currentOutdoorSiteId = null;\n this.currentOutdoorCourseId = event.detail;\n this.showOutdoorSite = false;\n this.showOutdoorSiteMap = false;\n this.showOutdoorCourse = true;\n this.showOutdoorSiteMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.delete('outdoorsite');\n url.searchParams.set('outdoorcourse', this.currentOutdoorCourseId.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 @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 } else if (this.outdoor) {\n state.mode = 'outdoor';\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 const outdoorSiteParam = url.searchParams.get('outdoorsite');\n const outdoorCourseParam = url.searchParams.get('outdoorcourse');\n\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 } else if (outdoorSiteParam) {\n window.history.replaceState({ isInitialHistoryWithDetails: true }, '', url);\n this.currentOutdoorSiteId = Number(outdoorSiteParam);\n state.mode = 'outdoor';\n this.showOutdoorSite = true;\n } else if (outdoorCourseParam) {\n window.history.replaceState({ isInitialHistoryWithDetails: true }, '', url);\n this.currentOutdoorCourseId = Number(outdoorCourseParam);\n state.mode = 'outdoor';\n this.showOutdoorCourse = true;\n }\n }\n\n componentDidLoad() {\n window.addEventListener('popstate', this.handlePopStateBind, false);\n this.handleView();\n }\n\n onDetailsClose() {\n if (state.mode === 'treks') {\n this.showTrek = false;\n this.showTrekMap = false;\n state.currentTrek = null;\n state.currentTrekSteps = null;\n state.parentTrekId = null;\n this.currentTrekId = null;\n } else if (state.mode === 'touristicContents') {\n state.currentTouristicContent = null;\n this.currentTouristicContentId = null;\n this.showTouristicContent = false;\n this.showTouristicContentMap = false;\n } else if (state.mode === 'touristicEvents') {\n state.currentTouristicEvent = null;\n this.currentTouristicEventId = null;\n this.showTouristicEvent = false;\n this.showTouristicEventMap = false;\n } else if (state.mode === 'outdoor') {\n state.currentOutdoorSite = null;\n this.currentOutdoorSiteId = null;\n this.showOutdoorSite = false;\n this.showOutdoorSiteMap = false;\n state.currentOutdoorCourse = null;\n this.currentOutdoorCourseId = null;\n this.showOutdoorCourse = false;\n this.showOutdoorCourseMap = false;\n }\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 if (state.currentTrek && state.currentTrek.offline && !Capacitor.isNativePlatform()) {\n revokeObjectURL(state.currentPois, imagesRegExp, ['url']);\n revokeObjectURL(state.trekTouristicEvents, imagesRegExp, ['url']);\n revokeObjectURL(state.trekTouristicContents, imagesRegExp, ['url']);\n revokeObjectURL(state.currentInformationDesks, imagesRegExp);\n revokeObjectURL(state.currentTrek, imagesRegExp, ['url']);\n }\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 url.searchParams.delete('outdoorsite');\n url.searchParams.delete('outdoorcourse');\n\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 const outdoorSiteParam = Number(url.searchParams.get('outdoorsite'));\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 (outdoorSiteParam && this.currentOutdoorSiteId !== outdoorSiteParam) {\n this.currentOutdoorSiteId = outdoorSiteParam;\n state.currentOutdoorSite = null;\n this.showOutdoorCourse = false;\n this.showOutdoorSite = true;\n } else if (!trekParam && !touristicContentParam && !touristicEventParam && !outdoorSiteParam) {\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 if (this.showOutdoorSite) {\n this.showOutdoorSiteMap = !this.showOutdoorSiteMap;\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 if (this.showOutdoorSite || this.showOutdoorCourse) {\n mapIconButton = this.showOutdoorSiteMap || this.showOutdoorCourseMap ? '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 if (this.showOutdoorSite || this.showOutdoorCourse) {\n mapLabelButton = this.showOutdoorSiteMap ? 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 handleOffline() {\n if (state.mode === 'treks') {\n state.offlineTreks = !state.offlineTreks;\n state.currentTreks = handleTreksFiltersAndSearch();\n } else {\n state.offlineOutdoorSites = !state.offlineOutdoorSites;\n state.currentOutdoorSites = handleOutdoorSitesFiltersAndSearch();\n }\n }\n\n getFiltersName() {\n const activeFilters = state.selectedActivitiesFilters + state.selectedLocationFilters + state.selectedThemesFilters;\n return `${translate[state.language].filter}${activeFilters > 0 ? ' (' + activeFilters + ')' : ''}`;\n }\n\n trekIsLoading() {\n return this.showTrek && this.currentTrekId && !state.currentTrek;\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 this.showTrek && this.showTouristicContent && this.showTouristicEvent\n ? '116px'\n : Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) + Number(this.outdoor) > 1\n ? '148px'\n : '64px',\n '--header-with-languages': this.languages.split(',').length > 1 ? '38px' : '0px',\n '--header-with-offline': this.enableOffline ? '48px' : '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 !state.currentOutdoorSites &&\n !state.currentOutdoorSite &&\n !state.currentOutdoorCourses &&\n !state.currentOutdoorCourse && (\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 labels={this.labels}\n ></grw-treks-provider>\n )}\n {this.trekIsLoading() && (\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 labels={this.labels}\n signages={this.signages}\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.showOutdoorSite && this.currentOutdoorSiteId && !state.currentOutdoorSite && (\n <grw-outdoor-site-provider api={this.api} languages={this.languages} outdoor-site-id={this.currentOutdoorSiteId} portals={this.portals}></grw-outdoor-site-provider>\n )}\n {this.showOutdoorCourse && this.currentOutdoorCourseId && !state.currentOutdoorCourse && (\n <grw-outdoor-course-provider\n api={this.api}\n languages={this.languages}\n outdoor-course-id={this.currentOutdoorCourseId}\n portals={this.portals}\n ></grw-outdoor-course-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 {this.outdoor &&\n state.mode === 'outdoor' &&\n !this.showOutdoorSite &&\n !this.showOutdoorCourse &&\n !this.showTouristicContent &&\n !this.showTouristicEvent &&\n !state.outdoorSites && (\n <grw-outdoor-sites-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 ></grw-outdoor-sites-provider>\n )}\n\n {(state.currentTreks ||\n state.currentTrek ||\n state.touristicContents ||\n state.touristicEvents ||\n state.currentTouristicContent ||\n state.currentTouristicEvent ||\n state.currentOutdoorSites ||\n state.currentOutdoorSite ||\n state.currentOutdoorCourses ||\n state.currentOutdoorCourse ||\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 || this.showOutdoorSite || this.showOutdoorCourse ? ' grw-header-detail' : ''\n }`}\n >\n {Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) + Number(this.outdoor) > 1 &&\n !this.showTrek &&\n !this.showTouristicContent &&\n !this.showTouristicEvent &&\n !this.showOutdoorSite &&\n !this.showOutdoorCourse && (\n <grw-segmented-segment\n font-family={this.fontFamily}\n treks={this.treks}\n touristicContents={this.touristicContents}\n touristicEvents={this.touristicEvents}\n outdoor={this.outdoor}\n ></grw-segmented-segment>\n )}\n {!this.showTrek && !this.showTouristicContent && !this.showTouristicEvent && !this.showOutdoorSite && !this.showOutdoorCourse ? (\n <Fragment>\n <div class=\"grw-handle-search-filters-container\">\n <div class=\"grw-handle-search-container\">\n <grw-search font-family={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 font-family={this.fontFamily}\n action={() => this.handleFilters()}\n icon={'filter_list'}\n name={this.getFiltersName()}\n ></grw-common-button>\n </div>\n </div>\n {this.enableOffline && (state.mode === 'treks' || state.mode === 'outdoor') && (\n <div part=\"grw-offline-container\" class=\"grw-offline-container\">\n <div class=\"grw-offline-label\">{state.mode === 'treks' ? translate[state.language].onlyOfflineTreks : translate[state.language].onlyOfflineOutdoor}</div>\n <grw-switch\n exportparts=\"common-button,common-button-icon,common-button-label\"\n font-family={this.fontFamily}\n action={() => this.handleOffline()}\n checked={state.mode === 'treks' ? state.offlineTreks : state.offlineOutdoorSites}\n ></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 <span part=\"icon\" class=\"icon\" innerHTML={ArrowBackIcon}></span>\n </button>\n </div>\n )}\n </div>\n\n <div\n class={`grw-content-container ${\n this.showTrek || this.showTouristicContent || this.showTouristicEvent || this.showOutdoorSite || this.showOutdoorCourse ? 'grw-content-trek' : 'grw-content-treks'\n }`}\n >\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 {((state.mode === 'treks' && this.treks && state.treks) ||\n (state.mode === 'touristicContents' && this.touristicContents && state.touristicContents) ||\n (state.mode === 'touristicEvents' && this.touristicEvents && state.touristicEvents) ||\n (state.mode === 'outdoor' && this.outdoor && state.outdoorSites)) && (\n <div\n class={this.isLargeView ? 'grw-large-view-app-list-container' : 'grw-app-list-container'}\n style={{\n display: this.showTrek || this.showTouristicContent || this.showTouristicEvent || this.showOutdoorSite || this.showOutdoorCourse ? 'none' : 'flex',\n position: this.showTrek ? 'absolute' : 'relative',\n }}\n >\n {state.mode === 'treks' && this.treks && state.treks && (\n <grw-treks-list\n is-large-view={this.isLargeView}\n font-family={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-app={true}\n ></grw-treks-list>\n )}\n {state.mode === 'touristicContents' && this.touristicContents && state.touristicContents && (\n <grw-touristic-contents-list\n is-large-view={this.isLargeView}\n font-family={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 && state.touristicEvents && (\n <grw-touristic-events-list\n is-large-view={this.isLargeView}\n font-family={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 {state.mode === 'outdoor' && this.outdoor && state.outdoorSites && (\n <grw-outdoor-sites-list\n is-large-view={this.isLargeView}\n font-family={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-outdoor-sites-list>\n )}\n </div>\n )}\n {((this.showTrek && !state.currentTrek) ||\n (this.showTouristicContent && !state.currentTouristicContent) ||\n (this.showTouristicEvent && !state.currentTouristicEvent) ||\n (this.showOutdoorSite && !state.currentOutdoorSite) ||\n (this.showOutdoorCourse && !state.currentOutdoorCourse) ||\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 (!state.outdoorSites && state.mode === 'outdoor' && !this.showOutdoorSite && !this.showOutdoorCourse)) && (\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 && state.currentTrek && (\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 font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-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 default-background-layer-url={this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url))[0]}\n default-background-layer-attribution={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 tiles-min-zoom-offline={this.tilesMinZoomOffline}\n tiles-max-zoom-offline={this.tilesMaxZoomOffline}\n grw-app={true}\n rounded={this.rounded}\n ></grw-trek-detail>\n <grw-offline-confirm-modal mode=\"treks\"></grw-offline-confirm-modal>\n </div>\n )}\n {this.showTouristicContent && state.currentTouristicContent && (\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.showTouristicContent) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTouristicContentMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n grw-app={true}\n ></grw-touristic-content-detail>\n </div>\n )}\n {this.showTouristicEvent && state.currentTouristicEvent && (\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.showTouristicEvent) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTouristicEventMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n grw-app={true}\n ></grw-touristic-event-detail>\n </div>\n )}\n {this.showOutdoorSite && state.currentOutdoorSite && (\n <div class={this.isLargeView ? 'grw-large-view-app-outdoor-site-detail-container' : 'grw-app-outdoor-site-detail-container'}>\n <grw-outdoor-site-detail\n style={{\n visibility: (!this.showOutdoorSiteMap && this.showOutdoorSite) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showOutdoorSiteMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n weather={this.weather}\n default-background-layer-url={this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url))[0]}\n default-background-layer-attribution={this.attributionLayer ? this.attributionLayer.split(',')[0] : []}\n enable-offline={this.enableOffline}\n grw-app={true}\n ></grw-outdoor-site-detail>\n <grw-offline-confirm-modal mode=\"treks\"></grw-offline-confirm-modal>\n </div>\n )}\n {this.showOutdoorCourse && state.currentOutdoorCourse && (\n <div class={this.isLargeView ? 'grw-large-view-app-outdoor-course-detail-container' : 'grw-app-outdoor-course-detail-container'}>\n <grw-outdoor-course-detail\n style={{\n visibility: (!this.showOutdoorCourseMap && this.showOutdoorCourse) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showOutdoorCourseMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n grw-app={true}\n ></grw-outdoor-course-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 && !this.showTouristicContent && !this.showTouristicEvent && !this.showOutdoorSite) ||\n (this.showTrekMap && this.showTrek) ||\n (this.showTouristicContentMap && this.showTouristicContent) ||\n (this.showTouristicEventMap && this.showTouristicEvent) ||\n (this.showOutdoorSiteMap && this.showOutdoorSite) ||\n this.isLargeView\n ? 'visible'\n : 'hidden',\n zIndex: this.showHomeMap || this.showTrekMap || this.showTouristicContentMap || this.showTouristicEventMap || this.showOutdoorSiteMap ? '1' : '0',\n }}\n name-layer={this.nameLayer}\n url-layer={this.urlLayer}\n attribution-layer={this.attributionLayer}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-background={this.colorBackground}\n color-trek-line={this.colorTrekLine}\n color-sensitive-area={this.colorSensitiveArea}\n color-markers={this.colorMarkers ? this.colorMarkers : this.colorPrimaryApp}\n color-clusters={this.colorClusters ? this.colorClusters : this.colorPrimaryApp}\n tiles-max-zoom-offline={this.tilesMaxZoomOffline}\n grw-app={true}\n main-marker-size={this.mainMarkerSize}\n selected-main-marker-size={this.selectedMainMarkerSize}\n main-cluster-size={this.mainClusterSize}\n common-marker-size={this.commonMarkerSize}\n departure-arrival-marker-size={this.departureArrivalMarkerSize}\n point-reference-marker-size={this.pointReferenceMarkerSize}\n elevation-height={this.elevationHeight}\n mobile-elevation-height={this.mobileElevationHeight}\n large-view-size={this.largeViewSize}\n is-large-view={this.isLargeView}\n arrow-repeat={this.arrowRepeat}\n ></grw-map>\n )}\n </div>\n {((!this.showTrek && !this.showTouristicContent && !this.showTouristicEvent && !this.showOutdoorSite) ||\n (this.showTrek && state.currentTrek) ||\n (this.showTouristicContent && state.currentTouristicContent) ||\n (this.showTouristicEvent && state.currentTouristicEvent) ||\n (this.showOutdoorSite && state.currentOutdoorSite)) && (\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 font-family={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 font-family={this.fontFamily} handleFilters={() => this.handleFilters()}></grw-filters>}\n </Host>\n );\n }\n}\n"],"mappings":"0jBAAA,IAAMA,UAAY,+hJAClB,IAAAC,aAAeD,U,ICWFE,OAAM,WALnB,SAAAA,EAAAC,G,yBAOWC,KAAAC,SAAW,MACXD,KAAAE,qBAAuB,MACvBF,KAAAG,mBAAqB,MACrBH,KAAAI,gBAAkB,MAClBJ,KAAAK,kBAAoB,MACpBL,KAAAM,mBAAqB,MACrBN,KAAAO,qBAAuB,MAEvBP,KAAAQ,YAAc,MACdR,KAAAS,YAAc,MACdT,KAAAU,wBAA0B,MAC1BV,KAAAW,sBAAwB,MACxBX,KAAAY,YAAc,MACdZ,KAAAa,YAAc,MAOfb,KAAAc,SAAmB,OACnBd,KAAAe,UAAoB,QAEpBf,KAAAgB,UAAY,KAaZhB,KAAAiB,QAAU,MAGVjB,KAAAkB,WAAa,SACblB,KAAAmB,gBAAkB,UAClBnB,KAAAoB,aAAe,UACfpB,KAAAqB,eAAiB,UACjBrB,KAAAsB,aAAe,UACftB,KAAAuB,eAAiB,UACjBvB,KAAAwB,oBAAsB,UACtBxB,KAAAyB,sBAAwB,UACxBzB,KAAA0B,sBAAwB,UACxB1B,KAAA2B,wBAA0B,UAC1B3B,KAAA4B,wBAA0B,UAC1B5B,KAAA6B,0BAA4B,UAC5B7B,KAAA8B,gBAAkB,UAClB9B,KAAA+B,0BAA4B,UAC5B/B,KAAAgC,yBAA2B,UAC3BhC,KAAAiC,mBAAqB,UACrBjC,KAAAkC,SAAW,UACXlC,KAAAmC,QAAU,KAEVnC,KAAAoC,cAAgB,UAChBpC,KAAAqC,mBAAqB,UACrBrC,KAAAsC,aAAe,KACftC,KAAAuC,cAAgB,KAChBvC,KAAAwC,iBAAmB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7Cb,KAAKC,UAAYD,KAAKY,aAAe0J,EAAA,eAAAE,IAAA,yDAA0BxK,KAAKkB,WAAYwG,cAAe,WAAM,OAAA2C,EAAK3C,eAAL,I,0QAr6B5F,G","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["grwAppCss","GrwAppStyle0","GrwApp","hostRef","this","showTrek","showTouristicContent","showTouristicEvent","showOutdoorSite","showOutdoorCourse","showOutdoorSiteMap","showOutdoorCourseMap","showHomeMap","showTrekMap","showTouristicContentMap","showTouristicEventMap","showFilters","isLargeView","appWidth","appHeight","languages","weather","fontFamily","colorPrimaryApp","colorPrimary","colorOnPrimary","colorSurface","colorOnSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorPrimaryContainer","colorOnPrimaryContainer","colorSecondaryContainer","colorOnSecondaryContainer","colorBackground","colorSurfaceContainerHigh","colorSurfaceContainerLow","fabBackgroundColor","fabColor","rounded","colorTrekLine","colorSensitiveArea","colorMarkers","colorClusters","colorOutdoorArea","treks","touristicContents","touristicEvents","outdoor","enableOffline","globalTilesMinZoomOffline","globalTilesMaxZoomOffline","tilesMinZoomOffline","tilesMaxZoomOffline","mainMarkerSize","selectedMainMarkerSize","mainClusterSize","commonMarkerSize","departureArrivalMarkerSize","pointReferenceMarkerSize","largeViewSize","elevationHeight","mobileElevationHeight","signages","arrowRepeat","handlePopStateBind","handlePopState","bind","prototype","onTrekCardPress","event","currentTouristicContentId","state","currentTouristicContent","currentTouristicEventId","currentTouristicEvent","parentTrek","parentTrekId","currentTrekSteps","currentTrekId","currentTrek","detail","mode","url","URL","window","location","toString","searchParams","set","history","pushState","onParentTrekPress","delete","onTouristicContentCardPress","onTouristiceEventCardPress","onOutdoorSiteCardPress","currentOutdoorSite","currentRelatedOutdoorSites","currentRelatedOutdoorCourses","currentOutdoorSiteId","onOutdoorCourseCardPress","currentOutdoorCourse","currentOutdoorCourseId","onWindowResize","handleView","onCenterOnMap","watchPropHandler","dispatchEvent","Event","componentWillLoad","trekParam","get","touristicContentParam","touristicEventParam","outdoorSiteParam","outdoorCourseParam","replaceState","isInitialHistoryWithDetails","Number","componentDidLoad","addEventListener","onDetailsClose","appElement","getBoundingClientRect","width","handleFilters","handleBackButton","offline","Capacitor","isNativePlatform","revokeObjectURL","currentPois","imagesRegExp","trekTouristicEvents","trekTouristicContents","currentInformationDesks","back","handleShowMap","getMapVisibilityIconButton","mapIconButton","getMapVisibilityLabelButton","mapLabelButton","language","translate","showDetails","showRoute","showMap","showList","reload","disconnectedCallback","reset","removeEventListener","handleOffline","offlineTreks","currentTreks","handleTreksFiltersAndSearch","offlineOutdoorSites","currentOutdoorSites","handleOutdoorSitesFiltersAndSearch","getFiltersName","activeFilters","selectedActivitiesFilters","selectedLocationFilters","selectedThemesFilters","concat","filter","trekIsLoading","render","_this","h","Host","key","style","split","length","currentTouristicContents","currentTouristicEvents","currentOutdoorCourses","class","exportparts","api","portals","inBbox","cities","districts","structures","themes","routes","practices","labels","outdoorSites","networkError","Fragment","action","icon","name","part","onlyOfflineTreks","onlyOfflineOutdoor","checked","onClick","innerHTML","ArrowBackIcon","display","position","visibility","zIndex","emergencyNumber","urlLayer","map","index","attributionLayer","nameLayer"],"sources":["src/components/grw-app/grw-app.scss?tag=grw-app","src/components/grw-app/grw-app.tsx"],"sourcesContent":["grw-app {\n display: block;\n position: relative;\n width: var(--app-width);\n height: var(--app-height);\n overflow: hidden;\n max-width: 100dvw;\n max-height: 100dvh;\n}\n\n.grw-app-container {\n position: relative;\n background-color: var(--color-background);\n width: 100%;\n height: 100%;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n}\n\n.grw-languages-container {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n margin: 16px 16px 0px 0px;\n}\n\n.grw-header-container,\n.grw-large-view-header-container {\n height: calc(var(--header-height) + var(--header-with-offline) + var(--header-with-languages));\n .grw-arrow-back-container {\n display: flex;\n align-items: center;\n height: 100%;\n margin: 0px 16px;\n .grw-arrow-back-icon {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n color: var(--color-on-surface);\n border: none;\n background-color: var(--color-background);\n border-radius: var(--border-radius, 50%);\n height: 48px;\n width: 48px;\n padding: 0px;\n text-align: left;\n }\n }\n}\n\n.grw-handle-search-filters-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0px 16px;\n height: 64px;\n\n .grw-handle-search-container {\n width: calc(50% + 48px);\n max-width: 220px;\n }\n .grw-handle-filters-container {\n margin-left: 16px;\n }\n}\n\n.grw-header-detail {\n min-height: 64px;\n height: 64px;\n}\n\n.grw-large-view-header-container {\n .grw-handle-search-filters-container {\n justify-content: flex-start;\n }\n}\n\n.grw-init-loader-container,\n.grw-loader-container,\n.grw-large-view-loader-container {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n background-color: var(--color-background);\n}\n\n.grw-content-container {\n position: relative;\n display: flex;\n}\n\n.grw-content-treks {\n height: calc(100% - var(--header-height) - var(--header-with-languages) - var(--header-with-offline));\n}\n\n.grw-content-trek {\n height: calc(100% - var(--header-height) - var(--header-with-languages));\n}\n\n.grw-large-view-app-list-container,\n.grw-large-view-app-trek-detail-container,\n.grw-large-view-app-touristic-content-detail-container,\n.grw-large-view-app-touristic-event-detail-container,\n.grw-large-view-app-outdoor-site-detail-container,\n.grw-large-view-app-outdoor-course-detail-container,\n.grw-large-view-app-list-container,\n.grw-large-view-app-trek-detail-container {\n display: flex;\n flex-direction: column;\n max-width: 100%;\n height: 100%;\n}\n\n.grw-app-map-container,\n.grw-large-view-app-map-container {\n width: 100%;\n height: 100%;\n}\n\n.grw-map-visibility-button-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n position: absolute;\n bottom: 24px;\n z-index: 4;\n pointer-events: none;\n}\n\n.grw-init-loader-container,\n.grw-loader-container {\n width: 100%;\n}\n\n.grw-app-list-container,\n.grw-app-trek-detail-container,\n.grw-app-touristic-content-detail-container,\n.grw-app-touristic-event-detail-container,\n.grw-app-outdoor-site-detail-container,\n.grw-app-outdoor-course-detail-container {\n width: 100%;\n}\n\ngrw-treks-list,\ngrw-touristic-contents-list,\ngrw-touristic-events-list,\ngrw-outdoor-sites-list {\n max-height: calc(100vh - var(--header-height));\n}\n\ngrw-trek-detail {\n position: relative;\n max-height: 100%;\n}\n\ngrw-touristic-content-detail,\ngrw-touristic-event-detail,\ngrw-outdoor-site-detail {\n position: relative;\n max-height: 100%;\n}\n\n.grw-app-map-container {\n width: 100%;\n position: absolute;\n}\n\n.grw-large-view-loader-container {\n position: relative;\n width: 50%;\n}\n\n.grw-large-view-app-list-container,\n.grw-large-view-app-trek-detail-container,\n.grw-large-view-app-touristic-content-detail-container,\n.grw-large-view-app-touristic-event-detail-container,\n.grw-large-view-app-outdoor-site-detail-container,\n.grw-large-view-app-outdoor-course-detail-container {\n width: 50%;\n}\n\n.grw-large-view-app-map-container {\n position: relative;\n width: 50%;\n}\n\n.grw-error-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n margin-top: 16px;\n font-family: var(--font-family);\n font-size: 16px;\n grw-common-button {\n margin-top: 16px;\n }\n}\n\n.grw-offline-container {\n display: flex;\n align-items: center;\n margin: 0px 0px 0px 16px;\n height: 48px;\n .grw-offline-label {\n display: flex;\n }\n grw-switch {\n margin-top: -10px;\n }\n}\n","import { Capacitor } from '@capacitor/core';\nimport { Component, Host, h, Listen, State, Prop, Element, Watch, Fragment } from '@stencil/core';\nimport { translate } from 'i18n/i18n';\nimport state, { reset } from 'store/store';\nimport { handleOutdoorSitesFiltersAndSearch, handleTreksFiltersAndSearch, imagesRegExp, revokeObjectURL } from 'utils/utils';\nimport ArrowBackIcon from '../../assets/arrow-back.svg';\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() showOutdoorSite = false;\n @State() showOutdoorCourse = false;\n @State() showOutdoorSiteMap = false;\n @State() showOutdoorCourseMap = false;\n\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 @State() currentOutdoorSiteId: number;\n @State() currentOutdoorCourseId: number;\n\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() labels: string;\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() colorMarkers = null;\n @Prop() colorClusters = null;\n @Prop() colorOutdoorArea = '#ffb700';\n\n @Prop() treks = true;\n @Prop() touristicContents = false;\n @Prop() touristicEvents = false;\n @Prop() outdoor = false;\n\n @Prop() enableOffline = false;\n @Prop() globalTilesMinZoomOffline = 0;\n @Prop() globalTilesMaxZoomOffline = 11;\n @Prop() tilesMinZoomOffline = 12;\n @Prop() tilesMaxZoomOffline = 16;\n\n @Prop() mainMarkerSize = 32;\n @Prop() selectedMainMarkerSize = 48;\n @Prop() mainClusterSize = 48;\n @Prop() commonMarkerSize = 48;\n @Prop() departureArrivalMarkerSize = 14;\n @Prop() pointReferenceMarkerSize = 24;\n\n @Prop() largeViewSize = 1024;\n @Prop() elevationHeight = 280;\n @Prop() mobileElevationHeight = 280;\n\n @Prop() signages = false;\n @Prop() arrowRepeat = 20;\n\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('outdoorSiteCardPress', { target: 'window' })\n onOutdoorSiteCardPress(event: CustomEvent<number>) {\n state.currentTrek = null;\n this.currentTrekId = null;\n this.showTrek = false;\n\n state.mode = 'outdoor';\n state.currentOutdoorSite = null;\n state.currentRelatedOutdoorSites = null;\n state.currentRelatedOutdoorCourses = null;\n this.currentOutdoorSiteId = event.detail;\n this.showOutdoorSite = true;\n this.showOutdoorSiteMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.set('outdoorsite', this.currentOutdoorSiteId.toString());\n window.history.pushState({}, '', url);\n }\n\n @Listen('outdoorCourseCardPress', { target: 'window' })\n onOutdoorCourseCardPress(event: CustomEvent<number>) {\n state.currentTrek = null;\n this.currentTrekId = null;\n this.showTrek = false;\n\n state.mode = 'outdoor';\n state.currentOutdoorSite = null;\n state.currentOutdoorCourse = null;\n state.currentRelatedOutdoorSites = null;\n state.currentRelatedOutdoorCourses = null;\n this.currentOutdoorSiteId = null;\n this.currentOutdoorCourseId = event.detail;\n this.showOutdoorSite = false;\n this.showOutdoorSiteMap = false;\n this.showOutdoorCourse = true;\n this.showOutdoorSiteMap = false;\n const url = new URL(window.location.toString());\n url.searchParams.delete('outdoorsite');\n url.searchParams.set('outdoorcourse', this.currentOutdoorCourseId.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 @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 } else if (this.outdoor) {\n state.mode = 'outdoor';\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 const outdoorSiteParam = url.searchParams.get('outdoorsite');\n const outdoorCourseParam = url.searchParams.get('outdoorcourse');\n\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 } else if (outdoorSiteParam) {\n window.history.replaceState({ isInitialHistoryWithDetails: true }, '', url);\n this.currentOutdoorSiteId = Number(outdoorSiteParam);\n state.mode = 'outdoor';\n this.showOutdoorSite = true;\n } else if (outdoorCourseParam) {\n window.history.replaceState({ isInitialHistoryWithDetails: true }, '', url);\n this.currentOutdoorCourseId = Number(outdoorCourseParam);\n state.mode = 'outdoor';\n this.showOutdoorCourse = true;\n }\n }\n\n componentDidLoad() {\n window.addEventListener('popstate', this.handlePopStateBind, false);\n this.handleView();\n }\n\n onDetailsClose() {\n if (state.mode === 'treks') {\n this.showTrek = false;\n this.showTrekMap = false;\n state.currentTrek = null;\n state.currentTrekSteps = null;\n state.parentTrekId = null;\n this.currentTrekId = null;\n } else if (state.mode === 'touristicContents') {\n state.currentTouristicContent = null;\n this.currentTouristicContentId = null;\n this.showTouristicContent = false;\n this.showTouristicContentMap = false;\n } else if (state.mode === 'touristicEvents') {\n state.currentTouristicEvent = null;\n this.currentTouristicEventId = null;\n this.showTouristicEvent = false;\n this.showTouristicEventMap = false;\n } else if (state.mode === 'outdoor') {\n state.currentOutdoorSite = null;\n this.currentOutdoorSiteId = null;\n this.showOutdoorSite = false;\n this.showOutdoorSiteMap = false;\n state.currentOutdoorCourse = null;\n this.currentOutdoorCourseId = null;\n this.showOutdoorCourse = false;\n this.showOutdoorCourseMap = false;\n }\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 if (state.currentTrek && state.currentTrek.offline && !Capacitor.isNativePlatform()) {\n revokeObjectURL(state.currentPois, imagesRegExp, ['url']);\n revokeObjectURL(state.trekTouristicEvents, imagesRegExp, ['url']);\n revokeObjectURL(state.trekTouristicContents, imagesRegExp, ['url']);\n revokeObjectURL(state.currentInformationDesks, imagesRegExp);\n revokeObjectURL(state.currentTrek, imagesRegExp, ['url']);\n }\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 url.searchParams.delete('outdoorsite');\n url.searchParams.delete('outdoorcourse');\n\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 const outdoorSiteParam = Number(url.searchParams.get('outdoorsite'));\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 (outdoorSiteParam && this.currentOutdoorSiteId !== outdoorSiteParam) {\n this.currentOutdoorSiteId = outdoorSiteParam;\n state.currentOutdoorSite = null;\n this.showOutdoorCourse = false;\n this.showOutdoorSite = true;\n } else if (!trekParam && !touristicContentParam && !touristicEventParam && !outdoorSiteParam) {\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 if (this.showOutdoorSite) {\n this.showOutdoorSiteMap = !this.showOutdoorSiteMap;\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 if (this.showOutdoorSite || this.showOutdoorCourse) {\n mapIconButton = this.showOutdoorSiteMap || this.showOutdoorCourseMap ? '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 if (this.showOutdoorSite || this.showOutdoorCourse) {\n mapLabelButton = this.showOutdoorSiteMap ? 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 handleOffline() {\n if (state.mode === 'treks') {\n state.offlineTreks = !state.offlineTreks;\n state.currentTreks = handleTreksFiltersAndSearch();\n } else {\n state.offlineOutdoorSites = !state.offlineOutdoorSites;\n state.currentOutdoorSites = handleOutdoorSitesFiltersAndSearch();\n }\n }\n\n getFiltersName() {\n const activeFilters = state.selectedActivitiesFilters + state.selectedLocationFilters + state.selectedThemesFilters;\n return `${translate[state.language].filter}${activeFilters > 0 ? ' (' + activeFilters + ')' : ''}`;\n }\n\n trekIsLoading() {\n return this.showTrek && this.currentTrekId && !state.currentTrek;\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 this.showTrek && this.showTouristicContent && this.showTouristicEvent\n ? '116px'\n : Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) + Number(this.outdoor) > 1\n ? '148px'\n : '64px',\n '--header-with-languages': this.languages.split(',').length > 1 ? '38px' : '0px',\n '--header-with-offline': this.enableOffline ? '48px' : '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 !state.currentOutdoorSites &&\n !state.currentOutdoorSite &&\n !state.currentOutdoorCourses &&\n !state.currentOutdoorCourse && (\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 labels={this.labels}\n ></grw-treks-provider>\n )}\n {this.trekIsLoading() && (\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 labels={this.labels}\n signages={this.signages}\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.showOutdoorSite && this.currentOutdoorSiteId && !state.currentOutdoorSite && (\n <grw-outdoor-site-provider api={this.api} languages={this.languages} outdoor-site-id={this.currentOutdoorSiteId} portals={this.portals}></grw-outdoor-site-provider>\n )}\n {this.showOutdoorCourse && this.currentOutdoorCourseId && !state.currentOutdoorCourse && (\n <grw-outdoor-course-provider\n api={this.api}\n languages={this.languages}\n outdoor-course-id={this.currentOutdoorCourseId}\n portals={this.portals}\n ></grw-outdoor-course-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 {this.outdoor &&\n state.mode === 'outdoor' &&\n !this.showOutdoorSite &&\n !this.showOutdoorCourse &&\n !this.showTouristicContent &&\n !this.showTouristicEvent &&\n !state.outdoorSites && (\n <grw-outdoor-sites-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 ></grw-outdoor-sites-provider>\n )}\n\n {(state.currentTreks ||\n state.currentTrek ||\n state.touristicContents ||\n state.touristicEvents ||\n state.currentTouristicContent ||\n state.currentTouristicEvent ||\n state.currentOutdoorSites ||\n state.currentOutdoorSite ||\n state.currentOutdoorCourses ||\n state.currentOutdoorCourse ||\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 || this.showOutdoorSite || this.showOutdoorCourse ? ' grw-header-detail' : ''\n }`}\n >\n {Number(this.treks) + Number(this.touristicContents) + Number(this.touristicEvents) + Number(this.outdoor) > 1 &&\n !this.showTrek &&\n !this.showTouristicContent &&\n !this.showTouristicEvent &&\n !this.showOutdoorSite &&\n !this.showOutdoorCourse && (\n <grw-segmented-segment\n font-family={this.fontFamily}\n treks={this.treks}\n touristicContents={this.touristicContents}\n touristicEvents={this.touristicEvents}\n outdoor={this.outdoor}\n ></grw-segmented-segment>\n )}\n {!this.showTrek && !this.showTouristicContent && !this.showTouristicEvent && !this.showOutdoorSite && !this.showOutdoorCourse ? (\n <Fragment>\n <div class=\"grw-handle-search-filters-container\">\n <div class=\"grw-handle-search-container\">\n <grw-search font-family={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 font-family={this.fontFamily}\n action={() => this.handleFilters()}\n icon={'filter_list'}\n name={this.getFiltersName()}\n ></grw-common-button>\n </div>\n </div>\n {this.enableOffline && (state.mode === 'treks' || state.mode === 'outdoor') && (\n <div part=\"grw-offline-container\" class=\"grw-offline-container\">\n <div class=\"grw-offline-label\">{state.mode === 'treks' ? translate[state.language].onlyOfflineTreks : translate[state.language].onlyOfflineOutdoor}</div>\n <grw-switch\n exportparts=\"common-button,common-button-icon,common-button-label\"\n font-family={this.fontFamily}\n action={() => this.handleOffline()}\n checked={state.mode === 'treks' ? state.offlineTreks : state.offlineOutdoorSites}\n ></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 <span part=\"icon\" class=\"icon\" innerHTML={ArrowBackIcon}></span>\n </button>\n </div>\n )}\n </div>\n\n <div\n class={`grw-content-container ${\n this.showTrek || this.showTouristicContent || this.showTouristicEvent || this.showOutdoorSite || this.showOutdoorCourse ? 'grw-content-trek' : 'grw-content-treks'\n }`}\n >\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 {((state.mode === 'treks' && this.treks && state.treks) ||\n (state.mode === 'touristicContents' && this.touristicContents && state.touristicContents) ||\n (state.mode === 'touristicEvents' && this.touristicEvents && state.touristicEvents) ||\n (state.mode === 'outdoor' && this.outdoor && state.outdoorSites)) && (\n <div\n class={this.isLargeView ? 'grw-large-view-app-list-container' : 'grw-app-list-container'}\n style={{\n display: this.showTrek || this.showTouristicContent || this.showTouristicEvent || this.showOutdoorSite || this.showOutdoorCourse ? 'none' : 'flex',\n position: this.showTrek ? 'absolute' : 'relative',\n }}\n >\n {state.mode === 'treks' && this.treks && state.treks && (\n <grw-treks-list\n is-large-view={this.isLargeView}\n font-family={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-app={true}\n ></grw-treks-list>\n )}\n {state.mode === 'touristicContents' && this.touristicContents && state.touristicContents && (\n <grw-touristic-contents-list\n is-large-view={this.isLargeView}\n font-family={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 && state.touristicEvents && (\n <grw-touristic-events-list\n is-large-view={this.isLargeView}\n font-family={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 {state.mode === 'outdoor' && this.outdoor && state.outdoorSites && (\n <grw-outdoor-sites-list\n is-large-view={this.isLargeView}\n font-family={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-outdoor-sites-list>\n )}\n </div>\n )}\n {((this.showTrek && !state.currentTrek) ||\n (this.showTouristicContent && !state.currentTouristicContent) ||\n (this.showTouristicEvent && !state.currentTouristicEvent) ||\n (this.showOutdoorSite && !state.currentOutdoorSite) ||\n (this.showOutdoorCourse && !state.currentOutdoorCourse) ||\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 (!state.outdoorSites && state.mode === 'outdoor' && !this.showOutdoorSite && !this.showOutdoorCourse)) && (\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 && state.currentTrek && (\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 font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-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 default-background-layer-url={this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url))[0]}\n default-background-layer-attribution={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 tiles-min-zoom-offline={this.tilesMinZoomOffline}\n tiles-max-zoom-offline={this.tilesMaxZoomOffline}\n grw-app={true}\n rounded={this.rounded}\n ></grw-trek-detail>\n <grw-offline-confirm-modal mode=\"treks\"></grw-offline-confirm-modal>\n </div>\n )}\n {this.showTouristicContent && state.currentTouristicContent && (\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.showTouristicContent) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTouristicContentMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n grw-app={true}\n ></grw-touristic-content-detail>\n </div>\n )}\n {this.showTouristicEvent && state.currentTouristicEvent && (\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.showTouristicEvent) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showTouristicEventMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n grw-app={true}\n ></grw-touristic-event-detail>\n </div>\n )}\n {this.showOutdoorSite && state.currentOutdoorSite && (\n <div class={this.isLargeView ? 'grw-large-view-app-outdoor-site-detail-container' : 'grw-app-outdoor-site-detail-container'}>\n <grw-outdoor-site-detail\n style={{\n visibility: (!this.showOutdoorSiteMap && this.showOutdoorSite) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showOutdoorSiteMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n weather={this.weather}\n default-background-layer-url={this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url))[0]}\n default-background-layer-attribution={this.attributionLayer ? this.attributionLayer.split(',')[0] : []}\n enable-offline={this.enableOffline}\n grw-app={true}\n ></grw-outdoor-site-detail>\n <grw-offline-confirm-modal mode=\"treks\"></grw-offline-confirm-modal>\n </div>\n )}\n {this.showOutdoorCourse && state.currentOutdoorCourse && (\n <div class={this.isLargeView ? 'grw-large-view-app-outdoor-course-detail-container' : 'grw-app-outdoor-course-detail-container'}>\n <grw-outdoor-course-detail\n style={{\n visibility: (!this.showOutdoorCourseMap && this.showOutdoorCourse) || this.isLargeView ? 'visible' : 'hidden',\n zIndex: !this.showOutdoorCourseMap ? '1' : '0',\n }}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-secondary-container={this.colorSecondaryContainer}\n color-on-secondary-container={this.colorOnSecondaryContainer}\n color-surface-container-low={this.colorSurfaceContainerLow}\n color-background={this.colorBackground}\n is-large-view={this.isLargeView}\n grw-app={true}\n ></grw-outdoor-course-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 && !this.showTouristicContent && !this.showTouristicEvent && !this.showOutdoorSite) ||\n (this.showTrekMap && this.showTrek) ||\n (this.showTouristicContentMap && this.showTouristicContent) ||\n (this.showTouristicEventMap && this.showTouristicEvent) ||\n (this.showOutdoorSiteMap && this.showOutdoorSite) ||\n this.isLargeView\n ? 'visible'\n : 'hidden',\n zIndex: this.showHomeMap || this.showTrekMap || this.showTouristicContentMap || this.showTouristicEventMap || this.showOutdoorSiteMap ? '1' : '0',\n }}\n name-layer={this.nameLayer}\n url-layer={this.urlLayer}\n attribution-layer={this.attributionLayer}\n font-family={this.fontFamily}\n color-primary-app={this.colorPrimaryApp}\n color-on-surface={this.colorOnSurface}\n color-primary-container={this.colorPrimaryContainer}\n color-on-primary-container={this.colorOnPrimaryContainer}\n color-background={this.colorBackground}\n color-trek-line={this.colorTrekLine}\n color-sensitive-area={this.colorSensitiveArea}\n color-markers={this.colorMarkers ? this.colorMarkers : this.colorPrimaryApp}\n color-clusters={this.colorClusters ? this.colorClusters : this.colorPrimaryApp}\n tiles-max-zoom-offline={this.tilesMaxZoomOffline}\n grw-app={true}\n main-marker-size={this.mainMarkerSize}\n selected-main-marker-size={this.selectedMainMarkerSize}\n main-cluster-size={this.mainClusterSize}\n common-marker-size={this.commonMarkerSize}\n departure-arrival-marker-size={this.departureArrivalMarkerSize}\n point-reference-marker-size={this.pointReferenceMarkerSize}\n elevation-height={this.elevationHeight}\n mobile-elevation-height={this.mobileElevationHeight}\n large-view-size={this.largeViewSize}\n is-large-view={this.isLargeView}\n arrow-repeat={this.arrowRepeat}\n ></grw-map>\n )}\n </div>\n {((!this.showTrek && !this.showTouristicContent && !this.showTouristicEvent && !this.showOutdoorSite) ||\n (this.showTrek && state.currentTrek) ||\n (this.showTouristicContent && state.currentTouristicContent) ||\n (this.showTouristicEvent && state.currentTouristicEvent) ||\n (this.showOutdoorSite && state.currentOutdoorSite)) && (\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 font-family={this.fontFamily}\n action={() => this.handleShowMap()}\n icon={() => this.getMapVisibilityIconButton()}\n name={() => this.getMapVisibilityLabelButton()}\n display={this.isLargeView ? 'none' : 'flex'}\n fab-background-color={this.fabBackgroundColor}\n fab-color={this.fabColor}\n ></grw-extended-fab>\n </div>\n )}\n </div>\n )}\n {!this.showTrek && this.showFilters && <grw-filters font-family={this.fontFamily} handleFilters={() => this.handleFilters()}></grw-filters>}\n </Host>\n );\n }\n}\n"],"mappings":"0jBAAA,IAAMA,UAAY,+hJAClB,IAAAC,aAAeD,U,ICWFE,OAAM,WALnB,SAAAA,EAAAC,G,yBAOWC,KAAAC,SAAW,MACXD,KAAAE,qBAAuB,MACvBF,KAAAG,mBAAqB,MACrBH,KAAAI,gB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