@geotrekce/geotrek-rando-widget 0.2.11 → 0.2.13
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/geotrek-rando-widget.cjs.js +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js +6 -2
- 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-filter_8.cjs.entry.js +21 -44
- package/dist/cjs/grw-filter_8.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_8.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_8.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-trek-card.cjs.entry.js +1 -1
- package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/{utils-db06d6fd.js → utils-51ed599a.js} +2 -2
- package/dist/cjs/utils-51ed599a.js.br +0 -0
- package/dist/cjs/utils-51ed599a.js.gz +0 -0
- package/dist/cjs/utils-51ed599a.js.map +1 -0
- package/dist/collection/components/grw-app/grw-app.js +24 -2
- 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-map/grw-map.css +3 -25
- package/dist/collection/components/grw-map/grw-map.css.br +0 -0
- package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js +35 -41
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +2 -2
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
- package/dist/collection/stories/App.js +2 -0
- package/dist/collection/stories/App.js.br +0 -0
- package/dist/collection/stories/App.js.gz +0 -0
- package/dist/collection/stories/App.stories.js +1 -0
- package/dist/collection/stories/App.stories.js.br +0 -0
- package/dist/collection/stories/App.stories.js.gz +0 -0
- package/dist/collection/stories/TrekMap.js +2 -0
- package/dist/collection/stories/TrekMap.js.br +0 -0
- package/dist/collection/stories/TrekMap.js.gz +0 -0
- package/dist/collection/stories/TrekMap.stories.js +1 -0
- package/dist/collection/stories/TrekMap.stories.js.br +0 -0
- package/dist/collection/stories/TrekMap.stories.js.gz +0 -0
- package/dist/collection/utils/utils.js +1 -1
- package/dist/collection/utils/utils.js.br +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +6 -2
- 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-filter_8.entry.js +21 -44
- package/dist/esm/grw-filter_8.entry.js.br +0 -0
- package/dist/esm/grw-filter_8.entry.js.gz +0 -0
- package/dist/esm/grw-filter_8.entry.js.map +1 -1
- package/dist/esm/grw-trek-card.entry.js +1 -1
- package/dist/esm/grw-trek-card.entry.js.br +0 -0
- package/dist/esm/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/{utils-3e167809.js → utils-85317c68.js} +2 -2
- package/dist/esm/utils-85317c68.js.br +0 -0
- package/dist/esm/utils-85317c68.js.gz +0 -0
- package/dist/esm/utils-85317c68.js.map +1 -0
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.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-filter_8.entry.js +3 -3
- package/dist/esm-es5/grw-filter_8.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_8.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_8.entry.js.map +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/{utils-3e167809.js → utils-85317c68.js} +2 -2
- package/dist/esm-es5/utils-85317c68.js.br +0 -0
- package/dist/esm-es5/utils-85317c68.js.gz +0 -0
- package/dist/esm-es5/utils-85317c68.js.map +1 -0
- 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/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/{p-9d132a89.js → p-00f05696.js} +2 -2
- package/dist/geotrek-rando-widget/p-00f05696.js.br +0 -0
- package/dist/geotrek-rando-widget/p-00f05696.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-00f05696.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-f36b2116.entry.js → p-02514aa7.entry.js} +4 -4
- package/dist/geotrek-rando-widget/p-02514aa7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-02514aa7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-02514aa7.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-4144f3ba.system.entry.js → p-0ec7146e.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0ec7146e.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js +1 -1
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-148f5f1d.system.js.map +1 -1
- package/dist/geotrek-rando-widget/{p-3653420b.system.entry.js → p-4aaf071e.system.entry.js} +4 -4
- package/dist/geotrek-rando-widget/p-4aaf071e.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4aaf071e.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4aaf071e.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-c837a0f0.entry.js → p-d7444266.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d7444266.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d7444266.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-89249159.system.js → p-dae5ab8a.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-dae5ab8a.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e8ecd0eb.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-fd346455.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-fd346455.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fd346455.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fd346455.system.entry.js.map +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +1 -0
- package/dist/types/components/grw-map/grw-map.d.ts +2 -1
- package/dist/types/components.d.ts +4 -0
- package/package.json +2 -1
- package/dist/cjs/utils-db06d6fd.js.br +0 -0
- package/dist/cjs/utils-db06d6fd.js.gz +0 -0
- package/dist/cjs/utils-db06d6fd.js.map +0 -1
- package/dist/esm/utils-3e167809.js.br +0 -0
- package/dist/esm/utils-3e167809.js.gz +0 -0
- package/dist/esm/utils-3e167809.js.map +0 -1
- package/dist/esm-es5/utils-3e167809.js.br +0 -0
- package/dist/esm-es5/utils-3e167809.js.gz +0 -0
- package/dist/esm-es5/utils-3e167809.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3653420b.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3653420b.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-3653420b.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-4144f3ba.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4144f3ba.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5b497eb5.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-89249159.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-89249159.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-89249159.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-9d132a89.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9d132a89.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9d132a89.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c5d67727.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c837a0f0.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c837a0f0.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f36b2116.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f36b2116.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f36b2116.entry.js.map +0 -1
- /package/dist/geotrek-rando-widget/{p-4144f3ba.system.entry.js.map → p-0ec7146e.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-c837a0f0.entry.js.map → p-d7444266.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-82644551.js";import{s as state,o as onChange,r as reset}from"./store-af9549c8.js";import{f as formatDuration,a as formatLength,b as formatAscent}from"./utils-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-82644551.js";import{s as state,o as onChange,r as reset}from"./store-af9549c8.js";import{f as formatDuration,a as formatLength,b as formatAscent}from"./utils-85317c68.js";var grwTrekCardCss='.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:"Roboto";border-radius:12px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover;border-top-left-radius:12px;border-top-right-radius:12px}.trek-card-container .sub-container,.trek-card-large-view-container .sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .sub-container .themes-container,.trek-card-large-view-container .sub-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-card-container .sub-container .themes-container .theme,.trek-card-large-view-container .sub-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-card-container .sub-container .icons-labels-container,.trek-card-large-view-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:var(--color-on-surface);font-size:14px;line-height:20px;font-weight:500}.trek-card-container .sub-container .icons-labels-container .row,.trek-card-large-view-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-card-container .sub-container .icons-labels-container .row:not(:last-child),.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:12px}.trek-card-container .sub-container .icons-labels-container .row .icon-label,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:50%}.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 4px}.trek-card-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-container .sub-container .icons-labels-container .row .icon-label span,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span{font-family:"Material Symbols Outlined";font-size:24px;width:24px;height:auto;margin-right:8px}.trek-card-container .sub-container .icons-labels-container .row .practice img,.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-card-container{width:350px}.trek-card-container .image{width:100%;max-height:200px}.trek-card-large-view-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}';var GrwTrekCard=function(){function e(e){registerInstance(this,e);this.trekCardPress=createEvent(this,"trekCardPress",7);this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.departureCity=undefined;this.trek=undefined;this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:state.currentTrek;if(this.currentTrek){this.difficulty=state.difficulties.find((function(r){return r.id===e.currentTrek.difficulty}));this.route=state.routes.find((function(r){return r.id===e.currentTrek.route}));this.practice=state.practices.find((function(r){return r.id===e.currentTrek.practice}));this.themes=state.themes.filter((function(r){return e.currentTrek.themes.includes(r.id)}));this.departureCity=state.cities.find((function(r){return r.id===e.currentTrek.departure_city}))}onChange("currentTrek",(function(){e.currentTrek=e.trek?e.trek:state.currentTrek;if(e.currentTrek){e.difficulty=state.difficulties.find((function(r){return r.id===e.currentTrek.difficulty}));e.route=state.routes.find((function(r){return r.id===e.currentTrek.route}));e.practice=state.practices.find((function(r){return r.id===e.currentTrek.practice}));e.themes=state.themes.filter((function(r){return e.currentTrek.themes.includes(r.id)}));e.departureCity=state.cities.find((function(r){return r.id===e.currentTrek.departure_city}))}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){reset()}};e.prototype.render=function(){var e=this;var r,t,i,n,a,o,c;return h(Host,{style:{width:this.isLargeView?"100%":"auto","--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.currentTrek&&h("div",{class:this.isLargeView?"trek-card-large-view-container":"trek-card-container",onClick:function(){return e.trekCardPress.emit(e.currentTrek.id)}},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0&&h("img",{class:"image",src:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}),h("div",{class:"sub-container"},this.departureCity&&h("div",{class:"departure"},this.departureCity.name),h("div",{class:"name"},(r=this.currentTrek)===null||r===void 0?void 0:r.name),h("div",{class:"themes-container"},this.themes.map((function(e){return h("div",{class:"theme"},e.label)}))),h("div",{class:"icons-labels-container"},h("div",{class:"row"},h("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&h("img",{src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),h("div",{class:"icon-label duration"},h("span",{class:"material-symbols-outlined"},"timelapse"),formatDuration(this.currentTrek.duration))),h("div",{class:"row"},h("div",{class:"icon-label length"},h("span",{class:"material-symbols-outlined"},"open_in_full"),formatLength(this.currentTrek.length_2d)),h("div",{class:"icon-label ascent"},h("span",{class:"material-symbols-outlined"},"moving"),formatAscent(this.currentTrek.ascent))),h("div",{class:"row"},h("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&h("img",{src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route),h("div",{class:"icon-label practice"},((o=this.practice)===null||o===void 0?void 0:o.pictogram)&&h("img",{src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name))))))};return e}();GrwTrekCard.style=grwTrekCardCss;export{GrwTrekCard as grw_trek_card};
|
|
2
2
|
//# sourceMappingURL=grw-trek-card.entry.js.map
|
|
Binary file
|
|
Binary file
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as CSS,p as plt,w as win,a as promiseResolve,b as bootstrapLazy}from"./index-82644551.js";export{s as setNonce}from"./index-82644551.js";var patchEsm=function(){if(!(CSS&&CSS.supports&&CSS.supports("color","var(--c)"))){return import("./css-shim-8cc70a22.js").then((function(){if(plt.$cssShim$=win.__cssshim){return plt.$cssShim$.i()}else{return 0}}))}return promiseResolve()};var defineCustomElements=function(r,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["grw-trek-card",[[1,"grw-trek-card",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],departureCity:[32]}]]],["grw-information-desk-detail_3",[[1,"grw-information-desk-detail",{informationDesk:[16],displayShortDescription:[32]}],[1,"grw-poi-detail",{poi:[16],displayShortDescription:[32],displayFullscreen:[32]}],[1,"grw-sensitive-area-detail",{sensitiveArea:[16]}]]],["grw-filter_8",[[1,"grw-trek-detail",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],weather:[4],isLargeView:[4,"is-large-view"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],labels:[32],sources:[32],accessibilities:[32],accessibilityLevel:[32],displayFullscreen:[32],cities:[32],options:[32]}],[1,"grw-treks-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],treksToDisplay:[32]}],[1,"grw-filter",{filterType:[1,"filter-type"],filterName:[1,"filter-name"],filterNameProperty:[1,"filter-name-property"]},[[8,"resetFilter","onResetFilter"]]],[0,"grw-map",{urlLayer:[1,"url-layer"],attribution:[1],center:[1],zoom:[2],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorBackground:[1,"color-background"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isLargeView:[4,"is-large-view"],mapIsReady:[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-search"],[1,"grw-select-language"],[1,"grw-trek-provider",{languages:[1],api:[1],trekId:[1,"trek-id"]}],[1,"grw-treks-provider",{languages:[1],api:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1]}]]],["grw-app",[[0,"grw-app",{appWidth:[1,"app-width"],appHeight:[1,"app-height"],api:[1],languages:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1],urlLayer:[1,"url-layer"],center:[1],zoom:[2],attribution:[1],linkName:[1,"link-name"],linkTarget:[1,"link-target"],weather:[4],colorPrimaryApp:[1,"color-primary-app"],colorOnPrimary:[1,"color-on-primary"],colorSurface:[1,"color-surface"],colorOnSurface:[1,"color-on-surface"],colorSurfaceVariant:[1,"color-surface-variant"],colorOnSurfaceVariant:[1,"color-on-surface-variant"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],colorSurfaceContainerHigh:[1,"color-surface-container-high"],colorSurfaceContainerLow:[1,"color-surface-container-low"],fabBackgroundColor:[1,"fab-background-color"],fabColor:[1,"fab-color"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],showTrek:[32],showTreksMap:[32],showTrekMap:[32],showFilters:[32],isLargeView:[32],currentTrekId:[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]],o)}))};export{defineCustomElements};
|
|
1
|
+
import{C as CSS,p as plt,w as win,a as promiseResolve,b as bootstrapLazy}from"./index-82644551.js";export{s as setNonce}from"./index-82644551.js";var patchEsm=function(){if(!(CSS&&CSS.supports&&CSS.supports("color","var(--c)"))){return import("./css-shim-8cc70a22.js").then((function(){if(plt.$cssShim$=win.__cssshim){return plt.$cssShim$.i()}else{return 0}}))}return promiseResolve()};var defineCustomElements=function(r,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["grw-trek-card",[[1,"grw-trek-card",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],departureCity:[32]}]]],["grw-information-desk-detail_3",[[1,"grw-information-desk-detail",{informationDesk:[16],displayShortDescription:[32]}],[1,"grw-poi-detail",{poi:[16],displayShortDescription:[32],displayFullscreen:[32]}],[1,"grw-sensitive-area-detail",{sensitiveArea:[16]}]]],["grw-filter_8",[[1,"grw-trek-detail",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],weather:[4],isLargeView:[4,"is-large-view"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],labels:[32],sources:[32],accessibilities:[32],accessibilityLevel:[32],displayFullscreen:[32],cities:[32],options:[32]}],[1,"grw-treks-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],treksToDisplay:[32]}],[1,"grw-filter",{filterType:[1,"filter-type"],filterName:[1,"filter-name"],filterNameProperty:[1,"filter-name-property"]},[[8,"resetFilter","onResetFilter"]]],[0,"grw-map",{urlLayer:[1,"url-layer"],attribution:[1],center:[1],zoom:[2],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorBackground:[1,"color-background"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isLargeView:[4,"is-large-view"],mapIsReady:[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-search"],[1,"grw-select-language"],[1,"grw-trek-provider",{languages:[1],api:[1],trekId:[1,"trek-id"]}],[1,"grw-treks-provider",{languages:[1],api:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1]}]]],["grw-app",[[0,"grw-app",{appWidth:[1,"app-width"],appHeight:[1,"app-height"],api:[1],languages:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1],urlLayer:[1,"url-layer"],center:[1],zoom:[2],attribution:[1],linkName:[1,"link-name"],linkTarget:[1,"link-target"],weather:[4],colorPrimaryApp:[1,"color-primary-app"],colorOnPrimary:[1,"color-on-primary"],colorSurface:[1,"color-surface"],colorOnSurface:[1,"color-on-surface"],colorSurfaceVariant:[1,"color-surface-variant"],colorOnSurfaceVariant:[1,"color-on-surface-variant"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],colorSurfaceContainerHigh:[1,"color-surface-container-high"],colorSurfaceContainerLow:[1,"color-surface-container-low"],fabBackgroundColor:[1,"fab-background-color"],fabColor:[1,"fab-color"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],showTrek:[32],showTreksMap:[32],showTrekMap:[32],showFilters:[32],isLargeView:[32],currentTrekId:[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]],o)}))};export{defineCustomElements};
|
|
2
2
|
//# sourceMappingURL=loader.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchEsm","CSS","supports","import","then","plt","$cssShim$","win","__cssshim","i","promiseResolve","defineCustomElements","options","window","Promise","resolve","bootstrapLazy","trek","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isLargeView","resetStoreOnDisconnected","currentTrek","difficulty","route","practice","themes","departureCity","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","colorPrimaryContainer","colorOnPrimaryContainer","colorBackground","weather","labels","sources","accessibilities","accessibilityLevel","cities","treksToDisplay","filterType","filterName","filterNameProperty","urlLayer","attribution","center","zoom","colorTrekLine","colorDepartureIcon","colorArrivalIcon","colorSensitiveArea","colorPoiIcon","mapIsReady","languages","api","trekId","inBbox","districts","structures","portals","routes","practices","appWidth","appHeight","linkName","linkTarget","colorOnPrimary","colorSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorSurfaceContainerHigh","fabBackgroundColor","fabColor","showTrek","showTreksMap","showTrekMap","showFilters","currentTrekId"],"sources":["node_modules/@stencil/core/internal/client/patch-esm.js","@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Esm v3.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD } from '@stencil/core/internal/app-data';\nimport { CSS, plt, win, promiseResolve } from '@stencil/core';\nconst patchEsm = () => {\n // NOTE!! This fn cannot use async/await!\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n // @ts-ignore\n if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-css-shim\" */ './css-shim.js').then(() => {\n if ((plt.$cssShim$ = win.__cssshim)) {\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n return plt.$cssShim$.i();\n }\n else {\n // for better minification\n return 0;\n }\n });\n }\n return promiseResolve();\n};\nexport { patchEsm };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchEsm } from '@stencil/core/internal/client/patch-esm';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return Promise.resolve();\n return patchEsm().then(() => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n });\n};\n"],"mappings":"kJAKA,IAAMA,SAAW,WAIb,KAA0BC,KAAOA,IAAIC,UAAYD,IAAIC,SAAS,QAAS,aAAc,CAEjF,OAAOC,OAAoD,0BAAiBC,MAAK,WAC7E,GAAKC,IAAIC,UAAYC,IAAIC,UAAY,CAEjC,OAAOH,IAAIC,UAAUG,G,KAEp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win","__cssshim","i","promiseResolve","defineCustomElements","options","window","Promise","resolve","bootstrapLazy","trek","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isLargeView","resetStoreOnDisconnected","currentTrek","difficulty","route","practice","themes","departureCity","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","colorPrimaryContainer","colorOnPrimaryContainer","colorBackground","weather","labels","sources","accessibilities","accessibilityLevel","cities","treksToDisplay","filterType","filterName","filterNameProperty","urlLayer","attribution","center","zoom","colorTrekLine","colorDepartureIcon","colorArrivalIcon","colorSensitiveArea","colorPoiIcon","useGradient","mapIsReady","languages","api","trekId","inBbox","districts","structures","portals","routes","practices","appWidth","appHeight","linkName","linkTarget","colorOnPrimary","colorSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorSurfaceContainerHigh","fabBackgroundColor","fabColor","showTrek","showTreksMap","showTrekMap","showFilters","currentTrekId"],"sources":["node_modules/@stencil/core/internal/client/patch-esm.js","@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Esm v3.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD } from '@stencil/core/internal/app-data';\nimport { CSS, plt, win, promiseResolve } from '@stencil/core';\nconst patchEsm = () => {\n // NOTE!! This fn cannot use async/await!\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n // @ts-ignore\n if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-css-shim\" */ './css-shim.js').then(() => {\n if ((plt.$cssShim$ = win.__cssshim)) {\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n return plt.$cssShim$.i();\n }\n else {\n // for better minification\n return 0;\n }\n });\n }\n return promiseResolve();\n};\nexport { patchEsm };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchEsm } from '@stencil/core/internal/client/patch-esm';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return Promise.resolve();\n return patchEsm().then(() => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n });\n};\n"],"mappings":"kJAKA,IAAMA,SAAW,WAIb,KAA0BC,KAAOA,IAAIC,UAAYD,IAAIC,SAAS,QAAS,aAAc,CAEjF,OAAOC,OAAoD,0BAAiBC,MAAK,WAC7E,GAAKC,IAAIC,UAAYC,IAAIC,UAAY,CAEjC,OAAOH,IAAIC,UAAUG,G,KAEpB,CAED,OAAO,C,CAEvB,G,CAEI,OAAOC,gBACX,ECnBY,IAACC,qBAAuB,SAACJ,EAAKK,GACxC,UAAWC,SAAW,YAAa,OAAOC,QAAQC,UAClD,OAAOf,WAAWI,MAAK,WAEvB,OAAOY,cAAc,sCAAsC,CAACC,KAAA,KAAAC,gBAAA,wBAAAC,eAAA,uBAAAC,wBAAA,gCAAAC,0BAAA,mCAAAC,yBAAA,kCAAAC,YAAA,oBAAAC,yBAAA,kCAAAC,YAAA,KAAAC,WAAA,KAAAC,MAAA,KAAAC,SAAA,KAAAC,OAAA,KAAAC,cAAA,6EAAAC,gBAAA,KAAAC,wBAAA,4BAAAC,IAAA,KAAAD,wBAAA,KAAAE,kBAAA,uCAAAC,cAAA,gDAAAlB,KAAA,KAAAC,gBAAA,wBAAAC,eAAA,uBAAAiB,sBAAA,8BAAAC,wBAAA,iCAAAjB,wBAAA,gCAAAC,0BAAA,mCAAAiB,gBAAA,uBAAAd,yBAAA,kCAAAe,QAAA,IAAAhB,YAAA,oBAAAE,YAAA,KAAAC,WAAA,KAAAC,MAAA,KAAAC,SAAA,KAAAC,OAAA,KAAAW,OAAA,KAAAC,QAAA,KAAAC,gBAAA,KAAAC,mBAAA,KAAAT,kBAAA,KAAAU,OAAA,KAAAhC,QAAA,4BAAAM,gBAAA,wBAAAC,eAAA,uBAAAC,wBAAA,gCAAAC,0BAAA,mCAAAC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AAxE,EAC9D,GACA,S"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var a=0,n=e.length,i;a<n;a++){if(i||!(a in e)){if(!i)i=Array.prototype.slice.call(e,0,a);i[a]=e[a]}}return r.concat(i||Array.prototype.slice.call(e))};import{s as state}from"./store-af9549c8.js";function formatDuration(r){var e;if(r<24){e="".concat(Math.floor(r),"h");if(r%1>0){e+="".concat(Math.round(60*(r%1)),"min")}}else{e="".concat(r/24,"j")}return e}function formatLength(r){return"".concat(Math.round(r/1e3),"km")}function formatAscent(r){return"".concat(r,"m")}function handleFiltersAndSearch(){var r=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include"}];var e=false;var t=[];var a=function(r){var a=state[r.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(a.length>0){if(t.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(r){return a.includes(r)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return a.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var a=state[r.property].find((function(r){return r.id===t}));if(e[r.trekProperty]>=a.minValue&&e[r.trekProperty]<=a.maxValue){return{value:true}}};for(var n=0,i=a;n<i.length;n++){var o=i[n];var s=t(o);if(typeof s==="object")return s.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(r){return a.includes(r)}))})),true)}else{t=__spreadArray([],state.treks.filter((function(e){return a.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){var n;var i;var o=function(e){var t=state[r.property].find((function(r){return r.id===e}));if(isNaN(n)||t.minValue<n){n=t.minValue}if(isNaN(i)||t.maxValue>i){i=t.maxValue}};for(var s=0,p=a;s<p.length;s++){var u=p[s];o(u)}t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty]>=n&&e[r.trekProperty]<=i})),true)}}}};for(var n=0,i=r;n<i.length;n++){var o=i[n];a(o)}var s=e?t:state.treks;return Boolean(state.searchValue)?s.filter((function(r){return r.name.
|
|
2
|
-
//# sourceMappingURL=utils-
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var a=0,n=e.length,i;a<n;a++){if(i||!(a in e)){if(!i)i=Array.prototype.slice.call(e,0,a);i[a]=e[a]}}return r.concat(i||Array.prototype.slice.call(e))};import{s as state}from"./store-af9549c8.js";function formatDuration(r){var e;if(r<24){e="".concat(Math.floor(r),"h");if(r%1>0){e+="".concat(Math.round(60*(r%1)),"min")}}else{e="".concat(r/24,"j")}return e}function formatLength(r){return"".concat(Math.round(r/1e3),"km")}function formatAscent(r){return"".concat(r,"m")}function handleFiltersAndSearch(){var r=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include"}];var e=false;var t=[];var a=function(r){var a=state[r.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(a.length>0){if(t.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(r){return a.includes(r)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return a.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var a=state[r.property].find((function(r){return r.id===t}));if(e[r.trekProperty]>=a.minValue&&e[r.trekProperty]<=a.maxValue){return{value:true}}};for(var n=0,i=a;n<i.length;n++){var o=i[n];var s=t(o);if(typeof s==="object")return s.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(r){return a.includes(r)}))})),true)}else{t=__spreadArray([],state.treks.filter((function(e){return a.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){var n;var i;var o=function(e){var t=state[r.property].find((function(r){return r.id===e}));if(isNaN(n)||t.minValue<n){n=t.minValue}if(isNaN(i)||t.maxValue>i){i=t.maxValue}};for(var s=0,p=a;s<p.length;s++){var u=p[s];o(u)}t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty]>=n&&e[r.trekProperty]<=i})),true)}}}};for(var n=0,i=r;n<i.length;n++){var o=i[n];a(o)}var s=e?t:state.treks;return Boolean(state.searchValue)?s.filter((function(r){return r.name.toLowerCase().includes(state.searchValue.toLowerCase())})):s}export{formatLength as a,formatAscent as b,formatDuration as f,handleFiltersAndSearch as h};
|
|
2
|
+
//# sourceMappingURL=utils-85317c68.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatDuration","duration","formattedDuration","concat","Math","floor","round","formatLength","length","formatAscent","ascent","handleFiltersAndSearch","filters","property","trekProperty","trekPropertyIsArray","type","isUsingFilter","filtersTreks","filter","currentFiltersId","state","currentFilter","selected","map","id","__spreadArray","treks","trek","some","includes","currentFilterId","find","minValue","maxValue","_i","currentFiltersId_2","minValue_1","maxValue_1","isNaN","_a","currentFiltersId_1","filters_1","searchTreks","Boolean","searchValue","currentTrek","name","toLowerCase"],"sources":["src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { Filters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport function handleFiltersAndSearch(): Treks {\n const filters: Filters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include' },\n ];\n\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of filters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase()))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AAOL,cAAtC,IAAqD,K,OAEhG,GAAIK,EAAOH,OAAS,WAAY,CACrC,IAAIqB,EACJ,IAAIC,E,eACOP,GACT,IAAMT,EAAgBD,MAAMF,EAAON,UAAUmB,MAAK,SAAAnB,GAAY,OAAAA,EAASY,KAAOM,CAAhB,IAC9D,GAAIQ,MAAMF,IAAaf,EAAcW,SAAWI,EAAU,CACxDA,EAAWf,EAAcW,Q,CAE3B,GAAIM,MAAMD,IAAahB,EAAcY,SAAWI,EAAU,CACxDA,EAAWhB,EAAcY,Q,GAN7B,IAA8B,IAAAM,EAAA,EAAAC,EAAArB,EAAAoB,EAAAC,EAAAjC,OAAAgC,IAAgB,CAAzC,IAAMT,EAAeU,EAAAD,G,EAAfT,E,CASXb,EAAYQ,cAAA,GAAOL,MAAMM,MAAMR,QAAO,SAAAS,GAAQ,OAAAA,EAAKT,EAAOL,eAAiBuB,GAAYT,EAAKT,EAAOL,eAAiBwB,CAAtE,IAA+E,K,KA7CrI,IAAqB,IAAAH,EAAA,EAAAO,EAAA9B,EAAAuB,EAAAO,EAAAlC,OAAA2B,IAAO,CAAvB,IAAMhB,EAAMuB,EAAAP,G,EAANhB,E,CAmDX,IAAMwB,EAAc1B,EAAgBC,EAAeG,MAAMM,MACzD,OAAOiB,QAAQvB,MAAMwB,aAAeF,EAAYxB,QAAO,SAAA2B,GAAe,OAAAA,EAAYC,KAAKC,cAAclB,SAAST,MAAMwB,YAAYG,cAA1D,IAA4EL,CACpJ,Q"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as r,w as o,d as e,N as n,a,b as i}from"./p-b4e1f9ae.js";export{s as setNonce}from"./p-b4e1f9ae.js";function c(r){var o,e,n;return(n=(e=(o=r.head)===null||o===void 0?void 0:o.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&n!==void 0?n:undefined}const t=r=>`__sc_import_${r.replace(/\s|-/g,"_")}`;const l=()=>{{r.o=o.__cssshim}const i=Array.from(e.querySelectorAll("script")).find((r=>new RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(r.src)||r.getAttribute("data-stencil-namespace")===n));const c=(i||{})["data-opts"]||{};if("onbeforeload"in i&&!history.scrollRestoration){return{then(){}}}{c.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,o.location.href)).href;{p(c.resourcesUrl,i)}if(!o.customElements){return __sc_import_geotrek_rando_widget("./p-b5fc5b41.js").then((()=>c))}}return a(c)};const p=(a,i)=>{const s=t(n);try{o[s]=new Function("w",`return import(w);//${Math.random()}`)}catch(l){const n=new Map;o[s]=t=>{var l;const p=new URL(t,a).href;let d=n.get(p);if(!d){const a=e.createElement("script");a.type="module";a.crossOrigin=i.crossOrigin;a.src=URL.createObjectURL(new Blob([`import * as m from '${p}'; window.${s}.m = m;`],{type:"application/javascript"}));const t=(l=r.i)!==null&&l!==void 0?l:c(e);if(t!=null){a.setAttribute("nonce",t)}d=new Promise((r=>{a.onload=()=>{r(o[s].m);a.remove()}}));n.set(p,d);e.head.appendChild(a)}return d}}};l().then((r=>i([["p-
|
|
1
|
+
import{p as r,w as o,d as e,N as n,a,b as i}from"./p-b4e1f9ae.js";export{s as setNonce}from"./p-b4e1f9ae.js";function c(r){var o,e,n;return(n=(e=(o=r.head)===null||o===void 0?void 0:o.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&n!==void 0?n:undefined}const t=r=>`__sc_import_${r.replace(/\s|-/g,"_")}`;const l=()=>{{r.o=o.__cssshim}const i=Array.from(e.querySelectorAll("script")).find((r=>new RegExp(`/${n}(\\.esm)?\\.js($|\\?|#)`).test(r.src)||r.getAttribute("data-stencil-namespace")===n));const c=(i||{})["data-opts"]||{};if("onbeforeload"in i&&!history.scrollRestoration){return{then(){}}}{c.resourcesUrl=new URL(".",new URL(i.getAttribute("data-resources-url")||i.src,o.location.href)).href;{p(c.resourcesUrl,i)}if(!o.customElements){return __sc_import_geotrek_rando_widget("./p-b5fc5b41.js").then((()=>c))}}return a(c)};const p=(a,i)=>{const s=t(n);try{o[s]=new Function("w",`return import(w);//${Math.random()}`)}catch(l){const n=new Map;o[s]=t=>{var l;const p=new URL(t,a).href;let d=n.get(p);if(!d){const a=e.createElement("script");a.type="module";a.crossOrigin=i.crossOrigin;a.src=URL.createObjectURL(new Blob([`import * as m from '${p}'; window.${s}.m = m;`],{type:"application/javascript"}));const t=(l=r.i)!==null&&l!==void 0?l:c(e);if(t!=null){a.setAttribute("nonce",t)}d=new Promise((r=>{a.onload=()=>{r(o[s].m);a.remove()}}));n.set(p,d);e.head.appendChild(a)}return d}}};l().then((r=>i([["p-d7444266",[[1,"grw-trek-card",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],departureCity:[32]}]]],["p-d7e384ea",[[1,"grw-information-desk-detail",{informationDesk:[16],displayShortDescription:[32]}],[1,"grw-poi-detail",{poi:[16],displayShortDescription:[32],displayFullscreen:[32]}],[1,"grw-sensitive-area-detail",{sensitiveArea:[16]}]]],["p-02514aa7",[[1,"grw-trek-detail",{trek:[16],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],weather:[4],isLargeView:[4,"is-large-view"],currentTrek:[32],difficulty:[32],route:[32],practice:[32],themes:[32],labels:[32],sources:[32],accessibilities:[32],accessibilityLevel:[32],displayFullscreen:[32],cities:[32],options:[32]}],[1,"grw-treks-list",{colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorSurfaceContainerLow:[1,"color-surface-container-low"],isLargeView:[4,"is-large-view"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],treksToDisplay:[32]}],[1,"grw-filter",{filterType:[1,"filter-type"],filterName:[1,"filter-name"],filterNameProperty:[1,"filter-name-property"]},[[8,"resetFilter","onResetFilter"]]],[0,"grw-map",{urlLayer:[1,"url-layer"],attribution:[1],center:[1],zoom:[2],colorPrimaryApp:[1,"color-primary-app"],colorOnSurface:[1,"color-on-surface"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorBackground:[1,"color-background"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],resetStoreOnDisconnected:[4,"reset-store-on-disconnected"],isLargeView:[4,"is-large-view"],mapIsReady:[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"descriptionReferenceIsInViewport","descriptionReferenceIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationDeskIsInViewport","onInformationDesksIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"]]],[1,"grw-search"],[1,"grw-select-language"],[1,"grw-trek-provider",{languages:[1],api:[1],trekId:[1,"trek-id"]}],[1,"grw-treks-provider",{languages:[1],api:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1]}]]],["p-e8ecd0eb",[[0,"grw-app",{appWidth:[1,"app-width"],appHeight:[1,"app-height"],api:[1],languages:[1],inBbox:[1,"in-bbox"],cities:[1],districts:[1],structures:[1],themes:[1],portals:[1],routes:[1],practices:[1],urlLayer:[1,"url-layer"],center:[1],zoom:[2],attribution:[1],linkName:[1,"link-name"],linkTarget:[1,"link-target"],weather:[4],colorPrimaryApp:[1,"color-primary-app"],colorOnPrimary:[1,"color-on-primary"],colorSurface:[1,"color-surface"],colorOnSurface:[1,"color-on-surface"],colorSurfaceVariant:[1,"color-surface-variant"],colorOnSurfaceVariant:[1,"color-on-surface-variant"],colorPrimaryContainer:[1,"color-primary-container"],colorOnPrimaryContainer:[1,"color-on-primary-container"],colorSecondaryContainer:[1,"color-secondary-container"],colorOnSecondaryContainer:[1,"color-on-secondary-container"],colorBackground:[1,"color-background"],colorSurfaceContainerHigh:[1,"color-surface-container-high"],colorSurfaceContainerLow:[1,"color-surface-container-low"],fabBackgroundColor:[1,"fab-background-color"],fabColor:[1,"fab-color"],colorTrekLine:[1,"color-trek-line"],colorDepartureIcon:[1,"color-departure-icon"],colorArrivalIcon:[1,"color-arrival-icon"],colorSensitiveArea:[1,"color-sensitive-area"],colorPoiIcon:[1,"color-poi-icon"],useGradient:[4,"use-gradient"],showTrek:[32],showTreksMap:[32],showTrekMap:[32],showFilters:[32],isLargeView:[32],currentTrekId:[32]},[[8,"trekCardPress","onTrekCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]]]]]],r)));
|
|
2
2
|
//# sourceMappingURL=geotrek-rando-widget.esm.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["queryNonceMetaTagContent","doc","_a","_b","_c","head","querySelector","getAttribute","undefined","getDynamicImportFunction","namespace","replace","patchBrowser","plt","$cssShim$","win","__cssshim","scriptElm","Array","from","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","opts","history","scrollRestoration","then","resourcesUrl","URL","location","href","patchDynamicImport","customElements","__sc_import_geotrek_rando_widget","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap","Map","url","mod","get","script","createElement","type","crossOrigin","createObjectURL","Blob","nonce","$nonce$","setAttribute","Promise","resolve","onload","m","remove","set","appendChild","options","bootstrapLazy","trek","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isLargeView","resetStoreOnDisconnected","currentTrek","difficulty","route","practice","themes","departureCity","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","colorPrimaryContainer","colorOnPrimaryContainer","colorBackground","weather","labels","sources","accessibilities","accessibilityLevel","cities","treksToDisplay","filterType","filterName","filterNameProperty","urlLayer","attribution","center","zoom","colorTrekLine","colorDepartureIcon","colorArrivalIcon","colorSensitiveArea","colorPoiIcon","mapIsReady","languages","api","trekId","inBbox","districts","structures","portals","routes","practices","appWidth","appHeight","linkName","linkTarget","colorOnPrimary","colorSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorSurfaceContainerHigh","fabBackgroundColor","fabColor","showTrek","showTreksMap","showTrekMap","showFilters","currentTrekId"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"6GAaA,SAASA,EAAyBC,GAC9B,IAAIC,EAAIC,EAAIC,EACZ,OAAQA,GAAMD,GAAMD,EAAKD,EAAII,QAAU,MAAQH,SAAY,OAAS,EAAIA,EAAGI,cAAc,6BAA+B,MAAQH,SAAY,OAAS,EAAIA,EAAGI,aAAa,cAAgB,MAAQH,SAAY,EAAIA,EAAKI,SAC1N,CAEA,MAAMC,EAA4BC,GAAc,eAAeA,EAAUC,QAAQ,QAAS,OAC1F,MAAMC,EAAe,KAMK,CAGlBC,EAAIC,EAAYC,EAAIC,SAC5B,CAiBI,MAAMC,EAIAC,MAAMC,K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A,IAAAC,IAAA,IAAAC,OAAA,yCAAAF,UAAA,IAAAC,IAAA,IAAAE,OAAA,cAAAlB,OAAA,IAAAmB,UAAA,IAAAC,WAAA,IAAAnC,OAAA,IAAAoC,QAAA,IAAAC,OAAA,IAAAC,UAAA,qCAAAC,SAAA,gBAAAC,UAAA,iBAAAT,IAAA,IAAAD,UAAA,IAAAG,OAAA,cAAAlB,OAAA,IAAAmB,UAAA,IAAAC,WAAA,IAAAnC,OAAA,IAAAoC,QAAA,IAAAC,OAAA,IAAAC,UAAA,IAAAlB,SAAA,gBAAAE,OAAA,IAAAC,KAAA,IAAAF,YAAA,IAAAoB,SAAA,gBAAAC,WAAA,kBAAAhC,QAAA,IAAArB,gBAAA,wBAAAsD,eAAA,uBAAAC,aAAA,oBAAAtD,eAAA,uBAAAuD,oBAAA,4BAAAC,sBAAA,+BAAAvC,sBAAA,8BAAAC,wBAAA,iCAAAjB,wBAAA,gCAAAC,0BAAA,mCAAAiB,gBAAA,uBAAAsC,0BAAA,mCAAAtD,yBAAA,kCAAAuD,mBAAA,2BAAAC,SAAA,gBAAAzB,cAAA,sBAAAC,mBAAA,2BAAAC,iBAAA,yBAAAC,mBAAA,2BAAAC,aAAA,qBAAAsB,SAAA,KAAAC,aAAA,KAAAC,YAAA,KAAAC,YAAA,KAAA3D,YAAA,KAAA4D,cAAA,kHAAApE"}
|
|
1
|
+
{"version":3,"names":["queryNonceMetaTagContent","doc","_a","_b","_c","head","querySelector","getAttribute","undefined","getDynamicImportFunction","namespace","replace","patchBrowser","plt","$cssShim$","win","__cssshim","scriptElm","Array","from","querySelectorAll","find","s","RegExp","NAMESPACE","test","src","opts","history","scrollRestoration","then","resourcesUrl","URL","location","href","patchDynamicImport","customElements","__sc_import_geotrek_rando_widget","promiseResolve","base","orgScriptElm","importFunctionName","Function","Math","random","e","moduleMap","Map","url","mod","get","script","createElement","type","crossOrigin","createObjectURL","Blob","nonce","$nonce$","setAttribute","Promise","resolve","onload","m","remove","set","appendChild","options","bootstrapLazy","trek","colorPrimaryApp","colorOnSurface","colorSecondaryContainer","colorOnSecondaryContainer","colorSurfaceContainerLow","isLargeView","resetStoreOnDisconnected","currentTrek","difficulty","route","practice","themes","departureCity","informationDesk","displayShortDescription","poi","displayFullscreen","sensitiveArea","colorPrimaryContainer","colorOnPrimaryContainer","colorBackground","weather","labels","sources","accessibilities","accessibilityLevel","cities","treksToDisplay","filterType","filterName","filterNameProperty","urlLayer","attribution","center","zoom","colorTrekLine","colorDepartureIcon","colorArrivalIcon","colorSensitiveArea","colorPoiIcon","useGradient","mapIsReady","languages","api","trekId","inBbox","districts","structures","portals","routes","practices","appWidth","appHeight","linkName","linkTarget","colorOnPrimary","colorSurface","colorSurfaceVariant","colorOnSurfaceVariant","colorSurfaceContainerHigh","fabBackgroundColor","fabColor","showTrek","showTreksMap","showTrekMap","showFilters","currentTrekId"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.4.1 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"6GAaA,SAASA,EAAyBC,GAC9B,IAAIC,EAAIC,EAAIC,EACZ,OAAQA,GAAMD,GAAMD,EAAKD,EAAII,QAAU,MAAQH,SAAY,OAAS,EAAIA,EAAGI,cAAc,6BAA+B,MAAQH,SAAY,OAAS,EAAIA,EAAGI,aAAa,cAAgB,MAAQH,SAAY,EAAIA,EAAKI,SAC1N,CAEA,MAAMC,EAA4BC,GAAc,eAAeA,EAAUC,QAAQ,QAAS,OAC1F,MAAMC,EAAe,KAMK,CAGlBC,EAAIC,EAAYC,EAAIC,SAC5B,CAiBI,MAAMC,EAIAC,MAAMC,KAAKlB,EAAImB,iBAAiB,WAAWC,MAAMC,GAAM,IAAIC,OAAO,IAAKC,4BAAoCC,KAAKH,EAAEI,MACh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,OAAA,IAAAoB,UAAA,IAAAC,WAAA,IAAApC,OAAA,IAAAqC,QAAA,IAAAC,OAAA,IAAAC,UAAA,qCAAAC,SAAA,gBAAAC,UAAA,iBAAAT,IAAA,IAAAD,UAAA,IAAAG,OAAA,cAAAnB,OAAA,IAAAoB,UAAA,IAAAC,WAAA,IAAApC,OAAA,IAAAqC,QAAA,IAAAC,OAAA,IAAAC,UAAA,IAAAnB,SAAA,gBAAAE,OAAA,IAAAC,KAAA,IAAAF,YAAA,IAAAqB,SAAA,gBAAAC,WAAA,kBAAAjC,QAAA,IAAArB,gBAAA,wBAAAuD,eAAA,uBAAAC,aAAA,oBAAAvD,eAAA,uBAAAwD,oBAAA,4BAAAC,sBAAA,+BAAAxC,sBAAA,8BAAAC,wBAAA,iCAAAjB,wBAAA,gCAAAC,0BAAA,mCAAAiB,gBAAA,uBAAAuC,0BAAA,mCAAAvD,yBAAA,kCAAAwD,mBAAA,2BAAAC,SAAA,gBAAA1B,cAAA,sBAAAC,mBAAA,2BAAAC,iBAAA,yBAAAC,mBAAA,2BAAAC,aAAA,qBAAAC,YAAA,mBAAAsB,SAAA,KAAAC,aAAA,KAAAC,YAAA,KAAAC,YAAA,KAAA5D,YAAA,KAAA6D,cAAA,kHAAArE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./p-764c52b8.js";function r(e){let r;if(e<24){r=`${Math.floor(e)}h`;if(e%1>0){r+=`${Math.round(60*(e%1))}min`}}else{r=`${e/24}j`}return r}function t(e){return`${Math.round(e/1e3)}km`}function s(e){return`${e}m`}function i(){const r=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include"}];let t=false;let s=[];for(const o of r){const r=e[o.property].filter((e=>e.selected)).map((e=>e.id));if(r.length>0){if(s.length>0){if(o.type==="include"){if(o.trekPropertyIsArray){s=[...e.treks.filter((e=>e[o.trekProperty].some((e=>r.includes(e)))))]}else{s=[...s.filter((e=>r.includes(e[o.trekProperty])))]}}else if(o.type==="interval"){s=[...s.filter((t=>{for(const s of r){const r=e[o.property].find((e=>e.id===s));if(t[o.trekProperty]>=r.minValue&&t[o.trekProperty]<=r.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(o.type==="include"){if(o.trekPropertyIsArray){s=[...e.treks.filter((e=>e[o.trekProperty].some((e=>r.includes(e)))))]}else{s=[...e.treks.filter((e=>r.includes(e[o.trekProperty])))]}}else if(o.type==="interval"){let t;let i;for(const s of r){const r=e[o.property].find((e=>e.id===s));if(isNaN(t)||r.minValue<t){t=r.minValue}if(isNaN(i)||r.maxValue>i){i=r.maxValue}}s=[...e.treks.filter((e=>e[o.trekProperty]>=t&&e[o.trekProperty]<=i))]}}}}const i=t?s:e.treks;return Boolean(e.searchValue)?i.filter((r=>r.name.
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{s as e}from"./p-764c52b8.js";function r(e){let r;if(e<24){r=`${Math.floor(e)}h`;if(e%1>0){r+=`${Math.round(60*(e%1))}min`}}else{r=`${e/24}j`}return r}function t(e){return`${Math.round(e/1e3)}km`}function s(e){return`${e}m`}function i(){const r=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include"}];let t=false;let s=[];for(const o of r){const r=e[o.property].filter((e=>e.selected)).map((e=>e.id));if(r.length>0){if(s.length>0){if(o.type==="include"){if(o.trekPropertyIsArray){s=[...e.treks.filter((e=>e[o.trekProperty].some((e=>r.includes(e)))))]}else{s=[...s.filter((e=>r.includes(e[o.trekProperty])))]}}else if(o.type==="interval"){s=[...s.filter((t=>{for(const s of r){const r=e[o.property].find((e=>e.id===s));if(t[o.trekProperty]>=r.minValue&&t[o.trekProperty]<=r.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(o.type==="include"){if(o.trekPropertyIsArray){s=[...e.treks.filter((e=>e[o.trekProperty].some((e=>r.includes(e)))))]}else{s=[...e.treks.filter((e=>r.includes(e[o.trekProperty])))]}}else if(o.type==="interval"){let t;let i;for(const s of r){const r=e[o.property].find((e=>e.id===s));if(isNaN(t)||r.minValue<t){t=r.minValue}if(isNaN(i)||r.maxValue>i){i=r.maxValue}}s=[...e.treks.filter((e=>e[o.trekProperty]>=t&&e[o.trekProperty]<=i))]}}}}const i=t?s:e.treks;return Boolean(e.searchValue)?i.filter((r=>r.name.toLowerCase().includes(e.searchValue.toLowerCase()))):i}export{t as a,s as b,r as f,i as h};
|
|
2
|
+
//# sourceMappingURL=p-00f05696.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatDuration","duration","formattedDuration","Math","floor","round","formatLength","length","formatAscent","ascent","handleFiltersAndSearch","filters","property","trekProperty","trekPropertyIsArray","type","isUsingFilter","filtersTreks","filter","currentFiltersId","state","currentFilter","selected","map","id","treks","trek","some","includes","currentFilterId","find","minValue","maxValue","isNaN","searchTreks","Boolean","searchValue","currentTrek","name","toLowerCase"],"sources":["./src/utils/utils.ts"],"sourcesContent":["import state from 'store/store';\nimport { Filters, Treks } from 'types/types';\n\nexport function formatDuration(duration: number) {\n let formattedDuration;\n if (duration < 24) {\n formattedDuration = `${Math.floor(duration)}h`;\n if (duration % 1 > 0) {\n formattedDuration += `${Math.round(60 * (duration % 1))}min`;\n }\n } else {\n formattedDuration = `${duration / 24}j`;\n }\n return formattedDuration;\n}\n\nexport function formatLength(length: number) {\n return `${Math.round(length / 1000)}km`;\n}\n\nexport function formatAscent(ascent: number) {\n return `${ascent}m`;\n}\n\nexport function handleFiltersAndSearch(): Treks {\n const filters: Filters = [\n { property: 'practices', trekProperty: 'practice', trekPropertyIsArray: false, type: 'include' },\n { property: 'difficulties', trekProperty: 'difficulty', trekPropertyIsArray: false, type: 'include' },\n { property: 'durations', trekProperty: 'duration', trekPropertyIsArray: false, type: 'interval' },\n { property: 'lengths', trekProperty: 'length_2d', trekPropertyIsArray: false, type: 'interval' },\n { property: 'elevations', trekProperty: 'ascent', trekPropertyIsArray: false, type: 'interval' },\n { property: 'themes', trekProperty: 'themes', trekPropertyIsArray: true, type: 'include' },\n { property: 'routes', trekProperty: 'route', trekPropertyIsArray: false, type: 'include' },\n { property: 'accessibilities', trekProperty: 'accessibilities', trekPropertyIsArray: true, type: 'include' },\n { property: 'cities', trekProperty: 'cities', trekPropertyIsArray: true, type: 'include' },\n { property: 'labels', trekProperty: 'labels', trekPropertyIsArray: true, type: 'include' },\n ];\n\n let isUsingFilter = false;\n let filtersTreks = [];\n for (const filter of filters) {\n const currentFiltersId: number[] = state[filter.property].filter(currentFilter => currentFilter.selected).map(currentFilter => currentFilter.id);\n if (currentFiltersId.length > 0) {\n if (filtersTreks.length > 0) {\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...filtersTreks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n filtersTreks = [\n ...filtersTreks.filter(trek => {\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (trek[filter.trekProperty] >= currentFilter.minValue && trek[filter.trekProperty] <= currentFilter.maxValue) {\n return true;\n }\n }\n return false;\n }),\n ];\n }\n } else {\n if (!isUsingFilter) {\n isUsingFilter = true;\n }\n if (filter.type === 'include') {\n if (filter.trekPropertyIsArray) {\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty].some(trekProperty => currentFiltersId.includes(trekProperty)))];\n } else {\n filtersTreks = [...state.treks.filter(trek => currentFiltersId.includes(trek[filter.trekProperty]))];\n }\n } else if (filter.type === 'interval') {\n let minValue: number;\n let maxValue: number;\n for (const currentFilterId of currentFiltersId) {\n const currentFilter = state[filter.property].find(property => property.id === currentFilterId);\n if (isNaN(minValue) || currentFilter.minValue < minValue) {\n minValue = currentFilter.minValue;\n }\n if (isNaN(maxValue) || currentFilter.maxValue > maxValue) {\n maxValue = currentFilter.maxValue;\n }\n }\n filtersTreks = [...state.treks.filter(trek => trek[filter.trekProperty] >= minValue && trek[filter.trekProperty] <= maxValue)];\n }\n }\n }\n }\n\n const searchTreks = isUsingFilter ? filtersTreks : state.treks;\n return Boolean(state.searchValue) ? searchTreks.filter(currentTrek => currentTrek.name.toLowerCase().includes(state.searchValue.toLowerCase())) : searchTreks;\n}\n"],"mappings":"6CAGgBA,EAAeC,GAC7B,IAAIC,EACJ,GAAID,EAAW,GAAI,CACjBC,EAAoB,GAAGC,KAAKC,MAAMH,MAClC,GAAIA,EAAW,EAAI,EAAG,CACpBC,GAAqB,GAAGC,KAAKE,MAAM,IAAMJ,EAAW,Q,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