@geotrekce/geotrek-rando-widget 0.0.12 → 0.0.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/grw-app.cjs.entry.js +13 -11
- package/dist/cjs/grw-filter_6.cjs.entry.js +2 -3
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +8 -3
- package/dist/cjs/grw-trek-card.cjs.entry.js +2 -2
- package/dist/cjs/{index-2c4fcc1d.js → index-66d58516.js} +3 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{store-b55b295a.js → store-d301af22.js} +1 -1
- package/dist/collection/components/grw-app/grw-app.js +12 -10
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +6 -1
- package/dist/collection/store/grw-trek-provider.js +0 -1
- package/dist/components/grw-app.js +11 -9
- package/dist/components/grw-sensitive-area-detail2.js +6 -1
- package/dist/components/grw-trek-provider2.js +0 -1
- package/dist/esm/geotrek-rando-widget.js +1 -1
- package/dist/esm/grw-app.entry.js +13 -11
- package/dist/esm/grw-filter_6.entry.js +2 -3
- package/dist/esm/grw-information-desk-detail_3.entry.js +8 -3
- package/dist/esm/grw-trek-card.entry.js +2 -2
- package/dist/esm/{index-2762ee98.js → index-899307bb.js} +3 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{store-c98ddf7e.js → store-70461a28.js} +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-filter_6.entry.js +2 -2
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js +1 -1
- package/dist/esm-es5/{index-2762ee98.js → index-899307bb.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{store-c98ddf7e.js → store-70461a28.js} +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
- package/dist/geotrek-rando-widget/{p-8f56c5dc.system.js → p-067c02c4.system.js} +1 -1
- package/dist/geotrek-rando-widget/{p-2e151f05.js → p-18038011.js} +1 -1
- package/dist/geotrek-rando-widget/{p-df08ffe5.system.entry.js → p-2712caa8.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/{p-a4852254.system.entry.js → p-2bd0278f.system.entry.js} +1 -1
- package/dist/geotrek-rando-widget/{p-e69e41d7.entry.js → p-3ed52659.entry.js} +1 -1
- package/dist/geotrek-rando-widget/p-4690907e.js +2 -0
- package/dist/geotrek-rando-widget/{p-a869fc72.entry.js → p-48d5dde7.entry.js} +1 -1
- package/dist/geotrek-rando-widget/{p-9453dd9d.entry.js → p-533fc2bb.entry.js} +1 -1
- package/dist/geotrek-rando-widget/{p-61e3f612.system.js → p-82ca029f.system.js} +1 -1
- package/dist/geotrek-rando-widget/{p-ef1f14b8.system.js → p-8f9914f4.system.js} +2 -2
- package/dist/geotrek-rando-widget/{p-b10f0740.system.entry.js → p-e1431f36.system.entry.js} +1 -1
- package/dist/geotrek-rando-widget/{p-55413f00.system.entry.js → p-e38f4ff4.system.entry.js} +1 -1
- package/dist/geotrek-rando-widget/p-f5d98aae.entry.js +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +1 -0
- package/dist/types/store/grw-trek-provider.d.ts +0 -1
- package/package.json +1 -1
- package/dist/geotrek-rando-widget/p-11e1961e.entry.js +0 -1
- package/dist/geotrek-rando-widget/p-5af3d927.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e="geotrek-rando-widget";let t,n,l=null,s=!1;const o="undefined"!=typeof window?window:{},i=o.CSS,c=o.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=(()=>(c.head.attachShadow+"").indexOf("[native")>-1)(),u=e=>Promise.resolve(e),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=y(e,n),i=h(t,s),c=$(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},h=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(l){ne(l)}},y=(e,t)=>8&t?o:e,$=e=>0!=(2&e),m=new WeakMap,p=e=>"sc-"+e.h,b={},w=e=>"object"==(e=typeof e)||"function"===e,g=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1;const c=[],r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!w(l))&&(l+=""),o&&i?c[c.length-1].$+=l:c.push(o?k(null,l):l),i=o)};if(r(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=k(e,null);return a.m=t,c.length>0&&(a.p=c),a.g=s,a},k=(e,t)=>({t:0,k:e,$:t,j:null,p:null,m:null,g:null}),j={},S=(e,t,n,l,s,i)=>{if(n!==l){let a=te(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=v(n),o=v(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if(a||"o"!==t[0]||"n"!==t[1]){const o=w(l);if((a||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?a=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(c){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!a||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):te(o,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},_=/\s/,v=e=>e?e.split(_):[],C=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.m||b,i=t.m||b;for(l in o)l in i||S(s,l,o[l],void 0,n,t.t);for(l in i)S(s,l,o[l],i[l],n,t.t)},O=(e,n,l)=>{const s=n.p[l];let o,i,r=0;if(null!==s.$)o=s.j=c.createTextNode(s.$);else if(o=s.j=c.createElement(s.k),C(null,s,!1),null!=t&&o["s-si"]!==t&&o.classList.add(o["s-si"]=t),s.p)for(r=0;r<s.p.length;++r)i=O(e,s,r),i&&o.appendChild(i);return o},M=(e,t,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=O(null,l,o),c&&(s[o].j=c,r.insertBefore(c,t)))},N=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.j.remove()},x=(e,t)=>e.k===t.k&&e.g===t.g,E=(e,t)=>{const n=t.j=e.j,l=e.p,s=t.p,o=t.$;null===o?(C(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,a=0,u=t.length-1,f=t[0],d=t[u],h=l.length-1,y=l[0],$=l[h];for(;i<=u&&c<=h;)if(null==f)f=t[++i];else if(null==d)d=t[--u];else if(null==y)y=l[++c];else if(null==$)$=l[--h];else if(x(f,y))E(f,y),f=t[++i],y=l[++c];else if(x(d,$))E(d,$),d=t[--u],$=l[--h];else if(x(f,$))E(f,$),e.insertBefore(f.j,d.j.nextSibling),f=t[++i],$=l[--h];else if(x(d,y))E(d,y),e.insertBefore(d.j,f.j),d=t[--u],y=l[++c];else{for(r=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].g&&t[a].g===y.g){r=a;break}r>=0?(o=t[r],o.k!==y.k?s=O(t&&t[c],n,r):(E(o,y),t[r]=void 0,s=o.j),y=l[++c]):(s=O(t&&t[c],n,c),y=l[++c]),s&&f.j.parentNode.insertBefore(s,f.j)}i>u?M(e,null==l[h+1]?null:l[h+1].j,n,l,c,h):c>h&&N(t,i,u)})(n,l,t,s):null!==s?(null!==e.$&&(n.textContent=""),M(n,null,t,s,0,s.length-1)):null!==l&&N(l,0,l.length-1)):e.$!==o&&(n.data=o)},L=e=>Y(e).S,P=(e,t,n)=>{const l=L(e);return{emit:e=>A(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},A=(e,t,n)=>{const l=r.ce(t,n);return e.dispatchEvent(l),l},R=(e,t)=>{t&&!e._&&t["s-p"]&&t["s-p"].push(new Promise((t=>e._=t)))},T=(e,t)=>{if(e.t|=16,!(4&e.t))return R(e,e.v),de((()=>W(e,t)));e.t|=512},W=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>z(n,e,t))),e.u=null),l=z(n,"componentWillLoad")),B(l,(()=>F(e,n,t)))},F=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.C,n=e.S,l=t.t,s=((e,t)=>{let n=p(t);const l=oe.get(n);if(e=11===e.nodeType?e:c,l)if("string"==typeof l){let t,s=m.get(e=e.head||e);s||m.set(e,s=new Set),s.has(n)||(t=c.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(a&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);H(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>q(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},H=(e,s)=>{try{l=s,s=s.render(),e.t&=-17,e.t|=2,((e,l)=>{const s=e.S,o=e.O||k(null,null),i=(e=>e&&e.k===j)(l)?l:g(null,null,l);n=s.tagName,i.k=null,i.t|=4,e.O=i,i.j=o.j=s.shadowRoot||s,t=s["s-sc"],E(o,i)})(e,s)}catch(o){ne(o,e.S)}return l=null,null},U=()=>l,q=e=>{const t=e.S,n=e.i,l=e.v;64&e.t||(e.t|=64,G(t),z(n,"componentDidLoad"),e.M(t),l||V()),e._&&(e._(),e._=void 0),512&e.t&&fe((()=>T(e,!1))),e.t&=-517},D=e=>{{const t=Y(e),n=t.S.isConnected;return n&&2==(18&t.t)&&T(t,!1),n}},V=()=>{G(c.documentElement),fe((()=>A(o,"appload",{detail:{namespace:"geotrek-rando-widget"}})))},z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){ne(l)}},B=(e,t)=>e&&e.then?e.then(t):t(),G=e=>e.classList.add("hydrated"),I=(e,t,n)=>{if(t.N){e.watchers&&(t.L=e.watchers);const l=Object.entries(t.N),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>Y(this).P.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=Y(e),o=s.S,i=s.P.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.N[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.P.set(t,n),r)){if(l.L&&128&c){const e=l.L[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(l){ne(l,o)}}))}2==(18&c)&&T(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},J=e=>{z(e,"connectedCallback")},K=(e,t)=>{class n extends Array{item(e){return this[e]}}if(8&t.t){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map((e=>1===e.nodeType))}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0==(1&r.t)&&2&Y(this).t){const t=new n;for(let n=0;n<e.length;n++){const l=e[n]["s-nr"];l&&t.push(l)}return t}return n.from(e)}})}},Q=(e,t={})=>{const n=[],l=t.exclude||[],s=o.customElements,i=c.head,u=i.querySelector("meta[charset]"),h=c.createElement("style"),y=[];let $,m=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",c.baseURI).href,e.map((e=>{e[1].map((t=>{const o={t:t[0],h:t[1],N:t[2],A:t[3]};o.N=t[2],o.A=t[3],o.L={},!a&&1&o.t&&(o.t|=8);const i=o.h,c=class extends HTMLElement{constructor(e){super(e),ee(e=this,o),1&o.t&&(a?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e)),K(e,o)}connectedCallback(){$&&(clearTimeout($),$=null),m?y.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=Y(e),n=t.C,l=()=>{};if(1&t.t)d(e,t,n.A),J(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){R(t,t.v=n);break}}n.N&&Object.entries(n.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=se(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.L=s.watchers,I(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(c){ne(c)}t.t&=-9,t.t|=128,e(),J(t.i)}if(s.style){let e=s.style;const t=p(n);if(!oe.has(t)){const l=()=>{};8&n.t&&(e=await __sc_import_geotrek_rando_widget("./p-4eaf20b7.js").then((n=>n.scopeCss(e,t,!1)))),((e,t,n)=>{let l=oe.get(e);f&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,oe.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.v,i=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=Y(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),z(t,"disconnectedCallback")}})()))}componentOnReady(){return Y(this).R}};o.T=e[0],l.includes(i)||s.get(i)||(n.push(i),s.define(i,I(c,o,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),i.insertBefore(h,u?u.nextSibling:i.firstChild),m=!1,y.length?y.map((e=>e.connectedCallback())):r.jmp((()=>$=setTimeout(V,30)))},X=new WeakMap,Y=e=>X.get(e),Z=(e,t)=>X.set(t.i=e,t),ee=(e,t)=>{const n={t:0,S:e,C:t,P:new Map};return n.R=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[],d(e,n,t.A),X.set(e,n)},te=(e,t)=>t in e,ne=(e,t)=>(0,console.error)(e,t),le=new Map,se=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=le.get(n);return l?l[t]:__sc_import_geotrek_rando_widget(`./${n}.entry.js`).then((e=>(le.set(n,e),e[t])),ne)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},oe=new Map,ie=[],ce=[],re=(e,t)=>n=>{e.push(n),s||(s=!0,t&&4&r.t?fe(ue):r.raf(ue))},ae=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){ne(t)}e.length=0},ue=()=>{ae(ie),ae(ce),(s=ie.length>0)&&r.raf(ue)},fe=e=>u().then(e),de=re(ce,!0);export{i as C,j as H,e as N,u as a,Q as b,U as c,c as d,P as e,D as f,L as g,g as h,r as p,Z as r,o as w}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,e,h as r,H as a}from"./p-
|
|
1
|
+
import{r as i,e,h as r,H as a}from"./p-4690907e.js";import{s as t,o as n}from"./p-18038011.js";import{d as s,f as c,l as o,a as l,b as d,c as h}from"./p-f3f7d6be.js";const b=class{constructor(r){i(this,r),this.trekCardPress=e(this,"trekCardPress",7),this.colorPrimary="#6b0030",this.colorPrimaryTint="#974c6e",this.isLargeView=!1}connectedCallback(){this.currentTrek=this.trek?this.trek:t.currentTrek,this.currentTrek&&(this.difficulty=t.difficulties.find((i=>i.id===this.currentTrek.difficulty)),this.route=t.routes.find((i=>i.id===this.currentTrek.route)),this.practice=t.practices.find((i=>i.id===this.currentTrek.practice)),this.themes=t.themes.filter((i=>this.currentTrek.themes.includes(i.id)))),n("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:t.currentTrek,this.currentTrek&&(this.difficulty=t.difficulties.find((i=>i.id===this.currentTrek.difficulty)),this.route=t.routes.find((i=>i.id===this.currentTrek.route)),this.practice=t.practices.find((i=>i.id===this.currentTrek.practice)),this.themes=t.themes.filter((i=>this.currentTrek.themes.includes(i.id))))}))}render(){var i,e,t,n,b,p,m,g;return r(a,{onClick:()=>this.trekCardPress.emit(this.currentTrek.id),style:{width:this.isLargeView?"100%":"auto","--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint}},this.currentTrek&&r("div",{class:this.isLargeView?"trek-card-large-view-container":"trek-card-container"},this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].thumbnail&&r("img",{class:"image",src:`${this.currentTrek.attachments[0].thumbnail}`,loading:"lazy"}),r("div",{class:"sub-container"},r("div",{class:"departure"},null===(i=this.currentTrek)||void 0===i?void 0:i.departure),r("div",{class:"name"},null===(e=this.currentTrek)||void 0===e?void 0:e.name),r("div",{class:"themes-container"},this.themes.map((i=>r("div",{class:"theme"},i.label)))),r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},(null===(t=this.difficulty)||void 0===t?void 0:t.pictogram)&&r("img",{src:this.difficulty.pictogram}),null===(n=this.difficulty)||void 0===n?void 0:n.label),r("div",{class:"icon-label duration"},r("div",{class:"svg-icon",innerHTML:s}),c(this.currentTrek.duration))),r("div",{class:"row"},r("div",{class:"icon-label length"},r("div",{class:"svg-icon",innerHTML:o}),l(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("div",{class:"svg-icon",innerHTML:d}),h(this.currentTrek.ascent))),r("div",{class:"row"},r("div",{class:"icon-label route"},(null===(b=this.route)||void 0===b?void 0:b.pictogram)&&r("img",{src:this.route.pictogram}),null===(p=this.route)||void 0===p?void 0:p.route),r("div",{class:"icon-label practice"},(null===(m=this.practice)||void 0===m?void 0:m.pictogram)&&r("img",{src:this.practice.pictogram}),null===(g=this.practice)||void 0===g?void 0:g.name))))))}};b.style='.trek-card-container,.trek-card-large-view-container{font-family:"Roboto";border-radius:8px;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);cursor:pointer}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover}.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:12px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-primary);font-size:24px;font-weight:bold;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:rgba(0, 0, 0, 0.7);font-size:16px;margin:4px 0px}.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-primary-tint);color:#ffffff;border-radius:8px;padding:8px;margin:0px 8px 8px 0px}.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}.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 .svg-icon svg,.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 .svg-icon svg{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)}.trek-card-container{width:350px;height:auto}.trek-card-container .image{width:100%}.trek-card-large-view-container{height:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}';export{b as grw_trek_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as e,H as s}from"./p-
|
|
1
|
+
import{r as i,h as e,H as s}from"./p-4690907e.js";import{s as t}from"./p-18038011.js";const a=class{constructor(e){i(this,e)}render(){return e(s,null,this.informationDesk.photo_url&&e("div",{class:"information-desk-img"},e("img",{src:this.informationDesk.photo_url,loading:"lazy"})),e("div",{class:"information-desk-sub-container"},this.informationDesk.name&&e("div",{class:"information-desk-name"},this.informationDesk.name),this.informationDesk.description&&e("div",{class:"information-desk-description",innerHTML:this.informationDesk.description}),this.informationDesk.postal_code||this.informationDesk.municipality||this.informationDesk.street&&e("div",null,this.informationDesk.postal_code,` ${this.informationDesk.municipality}`,` ${this.informationDesk.street}`),this.informationDesk.phone&&e("div",null,e("a",{href:`tel:${this.informationDesk.phone}`},this.informationDesk.phone)),this.informationDesk.email&&e("div",null,e("a",{href:`mailto:${this.informationDesk.email}`},this.informationDesk.email)),this.informationDesk.website&&e("div",null,e("a",{href:`${this.informationDesk.website}`},this.informationDesk.website))))}};a.style=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host a{color:var(--color-primary)}.information-desk-img{width:180px}.information-desk-img img{width:180px;border-radius:8px}.information-desk-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.information-desk-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.information-desk-description{font-size:16px}";const n=class{constructor(e){i(this,e)}render(){return e(s,null,this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].thumbnail&&e("div",{class:"poi-img"},e("img",{src:this.poi.attachments[0].thumbnail,loading:"lazy"})),e("div",{class:"poi-sub-container"},e("div",{class:"poi-name"},this.poi.name),e("div",{class:"poi-description",innerHTML:this.poi.description})))}};n.style=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host a{color:var(--color-primary)}.poi-img{width:180px}.poi-img img{width:180px;border-radius:8px}.poi-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.poi-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.poi-description{font-size:16px}";const r=class{constructor(e){i(this,e)}render(){return e(s,null,e("div",{class:"sensitive-area-title"},this.sensitiveArea.name),e("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&e("div",{class:"sensitive-area-practice-container"},e("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),e("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map(((i,s)=>{const a=t.practices.find((e=>e.id===i));if(a)return e("div",{innerHTML:`${a.name.toUpperCase()}${s+1!==this.sensitiveArea.practices.length?" - ":""}`})})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&e("div",{class:"sensitive-area-period-container"},e("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),e("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map(((i,s)=>{if(i)return e("div",{innerHTML:`${new Date(0,s+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()}${this.sensitiveArea.period.slice(s+1).find((i=>i))?" - ":""}`})})))),e("div",{class:"sensitive-area-contact-container"},e("div",{class:"sensitive-area-contact-title"},"Contact"),e("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))}};r.style=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host a{color:var(--color-primary)}.sensitive-area-title{color:var(--color-primary);font-size:24px;padding:12px 0px;font-weight:bold}.sensitive-area-description{font-size:16px}.sensitive-area-period-container .sensitive-area-period-title,.sensitive-area-period-container .sensitive-area-practice-title,.sensitive-area-period-container .sensitive-area-contact-title,.sensitive-area-practice-container .sensitive-area-period-title,.sensitive-area-practice-container .sensitive-area-practice-title,.sensitive-area-practice-container .sensitive-area-contact-title,.sensitive-area-contact-container .sensitive-area-period-title,.sensitive-area-contact-container .sensitive-area-practice-title,.sensitive-area-contact-container .sensitive-area-contact-title{color:var(--color-primary);font-size:24px;padding:12px 0px}.sensitive-area-period-container .sensitive-area-period-values,.sensitive-area-period-container .sensitive-area-practice-values,.sensitive-area-practice-container .sensitive-area-period-values,.sensitive-area-practice-container .sensitive-area-practice-values,.sensitive-area-contact-container .sensitive-area-period-values,.sensitive-area-contact-container .sensitive-area-practice-values{display:-ms-flexbox;display:flex}";export{a as grw_information_desk_detail,n as grw_poi_detail,r as grw_sensitive_area_detail}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-8f9914f4.system.js"],(function(e){"use strict";var n,r;return{setters:[function(e){n=e.c;r=e.f}],execute:function(){var t=function(e,n,r){var t=e.get(n);if(!t){e.set(n,[r])}else if(!t.includes(r)){t.push(r)}};var u=function(e,n){var r;return function(){var t=[];for(var u=0;u<arguments.length;u++){t[u]=arguments[u]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,t)}),n)}};var i=function(e){return!("isConnected"in e)||e.isConnected};var o=u((function(e){for(var n=0,r=e.keys();n<r.length;n++){var t=r[n];e.set(t,e.get(t).filter(i))}}),2e3);var s=function(){if(typeof n!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(r){var u=n();if(u){t(e,r,u)}},set:function(n){var t=e.get(n);if(t){e.set(n,t.filter(r))}o(e)},reset:function(){e.forEach((function(e){return e.forEach(r)}));o(e)}}};var f=function(e){return typeof e==="function"?e():e};var c=function(e,n){if(n===void 0){n=function(e,n){return e!==n}}var r=f(e);var t=new Map(Object.entries(r!==null&&r!==void 0?r:{}));var u={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;t=new Map(Object.entries((n=f(e))!==null&&n!==void 0?n:{}));u.reset.forEach((function(e){return e()}))};var o=function(){u.dispose.forEach((function(e){return e()}));i()};var s=function(e){u.get.forEach((function(n){return n(e)}));return t.get(e)};var c=function(e,r){var i=t.get(e);if(n(r,i,e)){t.set(e,r);u.set.forEach((function(n){return n(e,r,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(r,{get:function(e,n){return s(n)},ownKeys:function(e){return Array.from(t.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,n){return t.has(n)},set:function(e,n,r){c(n,r);return true}});var v=function(e,n){u[e].push(n);return function(){a(u[e],n)}};var p=function(n,r){var t=v("set",(function(e,t){if(e===n){r(t)}}));var u=v("reset",(function(){return r(f(e)[n])}));return function(){t();u()}};var h=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var r=e.reduce((function(e,n){if(n.set){e.push(v("set",n.set))}if(n.get){e.push(v("get",n.get))}if(n.reset){e.push(v("reset",n.reset))}if(n.dispose){e.push(v("dispose",n.dispose))}return e}),[]);return function(){return r.forEach((function(e){return e()}))}};var g=function(e){var n=t.get(e);u.set.forEach((function(r){return r(e,n,n)}))};return{state:l,get:s,set:c,on:v,onChange:p,use:h,dispose:o,reset:i,forceUpdate:g}};var a=function(e,n){var r=e.indexOf(n);if(r>=0){e[r]=e[e.length-1];e.length--}};var l=function(e,n){var r=c(e,n);r.use(s());return r};var v=l({api:"",treks:null,currentTreks:null,treksWithinBounds:null,currentMapTreksBounds:null,difficulties:[],routes:[],practices:[],themes:[],durations:[],currentSensitiveAreas:null,labels:null,sources:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,treksNetworkError:false,trekNetworkError:false}),p=v.state,h=v.onChange;e({s:p,o:h})}}}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function l(e){try{o(n.next(e))}catch(t){i(t)}}function s(e){try{o(n["throw"](e))}catch(t){i(t)}}function o(e){e.done?r(e.value):a(e.value).then(l,s)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return o([e,t])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(s){l=[6,s];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register([],(function(e,t){"use strict";return{execute:function(){var r=this;var n=e("N","geotrek-rando-widget");var a;var i;var l=false;var s=null;var o=false;var f=e("w",typeof window!=="undefined"?window:{});var u=e("C",f.CSS);var $=e("d",f.document||{head:{}});var c=e("p",{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}});var v=function(){return($.head.attachShadow+"").indexOf("[native")>-1}();var d=e("a",(function(e){return Promise.resolve(e)}));var h=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var p=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],i=r[2];var l=y(e,n);var s=m(t,i);var o=g(n);c.ael(l,a,s,o);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return c.rel(l,a,s,o)}))}))}};var m=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(n){_e(n)}}};var y=function(e,t){if(t&8)return f;return e};var g=function(e){return(e&2)!==0};var b="{visibility:hidden}.hydrated{visibility:inherit}";var w=function(e,t){if(t===void 0){t=""}{return function(){return}}};var _=function(e,t){{return function(){return}}};var S=new WeakMap;var N=function(e,t,r){var n=ke.get(e);if(h&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}ke.set(e,n)};var k=function(e,t,r,n){var a=x(t);var i=ke.get(a);e=e.nodeType===11?e:$;if(i){if(typeof i==="string"){e=e.head||e;var l=S.get(e);var s=void 0;if(!l){S.set(e,l=new Set)}if(!l.has(a)){{if(c.$cssShim$){s=c.$cssShim$.createHostStyle(n,a,i,!!(t.$flags$&10));var o=s["s-sc"];if(o){a=o;l=null}}else{s=$.createElement("style");s.innerHTML=i}e.insertBefore(s,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var R=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=w("attachStyles",t.$tagName$);var i=k(v&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$,r);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var x=function(e,t){return"sc-"+e.$tagName$};var C={};var E=function(e){return e!=null};var L=function(e){e=typeof e;return e==="object"||e==="function"};var j=e("h",(function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=null;var l=false;var s=false;var o=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!L(a)){a=String(a)}if(l&&s){o[o.length-1].$text$+=a}else{o.push(l?P(null,a):a)}s=l}}};f(r);if(t){if(t.key){i=t.key}{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var $=P(e,null);$.$attrs$=t;if(o.length>0){$.$children$=o}{$.$key$=i}return $}));var P=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}return r};var O=e("H",{});var A=function(e){return e&&e.$tag$===O};var M=function(e,t,r,n,a,i){if(r!==n){var l=we(e,t);var s=t.toLowerCase();if(t==="class"){var o=e.classList;var u=T(r);var $=T(n);o.remove.apply(o,u.filter((function(e){return e&&!$.includes(e)})));o.add.apply(o,$.filter((function(e){return e&&!u.includes(e)})))}else if(t==="style"){{for(var v in r){if(!n||n[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in n){if(!r||n[v]!==r[v]){if(v.includes("-")){e.style.setProperty(v,n[v])}else{e.style[v]=n[v]}}}}else if(t==="key");else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(we(f,s)){t=s.slice(2)}else{t=s[2]+t.slice(3)}if(r){c.rel(e,t,r,false)}if(n){c.ael(e,t,n,false)}}else{var d=L(n);if((l||d&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var h=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!=h){e[t]=h}}else{e[t]=n}}catch(p){}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!l||i&4||a)&&!d){n=n===true?"":n;{e.setAttribute(t,n)}}}}};var I=/\s/;var T=function(e){return!e?[]:e.split(I)};var z=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||C;var l=t.$attrs$||C;{for(n in i){if(!(n in l)){M(a,n,i[n],undefined,r,t.$flags$)}}}for(n in l){M(a,n,i[n],l[n],r,t.$flags$)}};var q=function(e,t,r,n){var i=t.$children$[r];var s=0;var o;var f;if(i.$text$!==null){o=i.$elm$=$.createTextNode(i.$text$)}else{o=i.$elm$=$.createElement(i.$tag$);{z(null,i,l)}if(E(a)&&o["s-si"]!==a){o.classList.add(o["s-si"]=a)}if(i.$children$){for(s=0;s<i.$children$.length;++s){f=q(e,i,s);if(f){o.appendChild(f)}}}}return o};var B=function(e,t,r,n,a,l){var s=e;var o;if(s.shadowRoot&&s.tagName===i){s=s.shadowRoot}for(;a<=l;++a){if(n[a]){o=q(null,r,a);if(o){n[a].$elm$=o;s.insertBefore(o,t)}}}};var H=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;a.remove()}}};var U=function(e,t,r,n){var a=0;var i=0;var l=0;var s=0;var o=t.length-1;var f=t[0];var u=t[o];var $=n.length-1;var c=n[0];var v=n[$];var d;var h;while(a<=o&&i<=$){if(f==null){f=t[++a]}else if(u==null){u=t[--o]}else if(c==null){c=n[++i]}else if(v==null){v=n[--$]}else if(V(f,c)){F(f,c);f=t[++a];c=n[++i]}else if(V(u,v)){F(u,v);u=t[--o];v=n[--$]}else if(V(f,v)){F(f,v);e.insertBefore(f.$elm$,u.$elm$.nextSibling);f=t[++a];v=n[--$]}else if(V(u,c)){F(u,c);e.insertBefore(u.$elm$,f.$elm$);u=t[--o];c=n[++i]}else{l=-1;{for(s=a;s<=o;++s){if(t[s]&&t[s].$key$!==null&&t[s].$key$===c.$key$){l=s;break}}}if(l>=0){h=t[l];if(h.$tag$!==c.$tag$){d=q(t&&t[i],r,l)}else{F(h,c);t[l]=undefined;d=h.$elm$}c=n[++i]}else{d=q(t&&t[i],r,i);c=n[++i]}if(d){{f.$elm$.parentNode.insertBefore(d,f.$elm$)}}}}if(a>o){B(e,n[$+1]==null?null:n[$+1].$elm$,r,n,i,$)}else if(i>$){H(t,a,o)}};var V=function(e,t){if(e.$tag$===t.$tag$){{return e.$key$===t.$key$}}return false};var F=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var i=t.$text$;if(i===null){{{z(e,t,l)}}if(n!==null&&a!==null){U(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}B(r,null,t,a,0,a.length-1)}else if(n!==null){H(n,0,n.length-1)}}else if(e.$text$!==i){r.data=i}};var G=function(e,t){var r=e.$hostElement$;var n=e.$vnode$||P(null,null);var l=A(t)?t:j(null,null,t);i=r.tagName;l.$tag$=null;l.$flags$|=4;e.$vnode$=l;l.$elm$=n.$elm$=r.shadowRoot||r;{a=r["s-sc"]}F(n,l)};var W=e("g",(function(e){return ye(e).$hostElement$}));var D=e("e",(function(e,t,r){var n=W(e);return{emit:function(e){return J(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}}));var J=function(e,t,r){var n=c.ce(t,r);e.dispatchEvent(n);return n};var K=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var Q=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}K(e,e.$ancestorComponent$);var r=function(){return X(e,t)};return Pe(r)};var X=function(e,t){var r=w("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return ae(n,t,r)}));e.$queuedListeners$=null}}}r();return ie(a,(function(){return Y(e,n,t)}))};var Y=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,s,o;return __generator(this,(function(f){r=e.$hostElement$;a=w("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){R(e)}l=w("render",e.$cmpMeta$.$tagName$);{Z(e,t)}if(c.$cssShim$){c.$cssShim$.updateHost(r)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{s=r["s-p"];o=function(){return te(e)};if(s.length===0){o()}else{Promise.all(s).then(o);e.$flags$|=4;s.length=0}}return[2]}))}))};var Z=function(e,t,r){try{s=t;t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{G(e,t)}}}}catch(n){_e(n,e.$hostElement$)}s=null;return null};var ee=e("c",(function(){return s}));var te=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=w("postUpdate",t);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{le(r)}{ae(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!i){ne()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){je((function(){return Q(e,false)}))}e.$flags$&=~(4|512)}};var re=e("f",(function(e){{var t=ye(e);var r=t.$hostElement$.isConnected;if(r&&(t.$flags$&(2|16))===2){Q(t,false)}return r}}));var ne=function(e){{le($.documentElement)}je((function(){return J(f,"appload",{detail:{namespace:n}})}))};var ae=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(n){_e(n)}}return undefined};var ie=function(e,t){return e&&e.then?e.then(t):t()};var le=function(e){return e.classList.add("hydrated")};var se=function(e,t){if(e!=null&&!L(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=function(e,t){return ye(e).$instanceValues$.get(t)};var fe=function(e,t,r,n){var a=ye(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(t);var s=a.$flags$;var o=a.$lazyInstance$;r=se(r,n.$members$[t][0]);var f=Number.isNaN(l)&&Number.isNaN(r);var u=r!==l&&!f;if((!(s&8)||l===undefined)&&u){a.$instanceValues$.set(t,r);if(o){if(n.$watchers$&&s&128){var $=n.$watchers$[t];if($){$.map((function(e){try{o[e](r,l,t)}catch(n){_e(n,i)}}))}}if((s&(2|16))===2){Q(a,false)}}}};var ue=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return oe(this,n)},set:function(e){fe(this,n,e,t)},configurable:true,enumerable:true})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;c.jmp((function(){var t=i.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var t=e[0],r=e[1];var n=r[1]||t;i.set(n,t);return n}))}}return e};var $e=function(e,n,a,i,l){return __awaiter(r,void 0,void 0,(function(){var e,r,i,s,o,f,u;return __generator(this,(function($){switch($.label){case 0:if(!((n.$flags$&32)===0))return[3,5];n.$flags$|=32;l=Ne(a);if(!l.then)return[3,2];e=_();return[4,l];case 1:l=$.sent();e();$.label=2;case 2:if(!l.isProxied){{a.$watchers$=l.watchers}ue(l,a,2);l.isProxied=true}r=w("createInstance",a.$tagName$);{n.$flags$|=8}try{new l(n)}catch(c){_e(c)}{n.$flags$&=~8}{n.$flags$|=128}r();ce(n.$lazyInstance$);if(!l.style)return[3,5];i=l.style;s=x(a);if(!!ke.has(s))return[3,5];o=w("registerStyles",a.$tagName$);if(!(a.$flags$&8))return[3,4];return[4,t.import("./p-b1530d9c.system.js").then((function(e){return e.scopeCss(i,s,false)}))];case 3:i=$.sent();$.label=4;case 4:N(s,i,!!(a.$flags$&1));o();$.label=5;case 5:f=n.$ancestorComponent$;u=function(){return Q(n,true)};if(f&&f["s-rc"]){f["s-rc"].push(u)}else{u()}return[2]}}))}))};var ce=function(e){{ae(e,"connectedCallback")}};var ve=function(e){if((c.$flags$&1)===0){var t=ye(e);var r=t.$cmpMeta$;var n=w("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){K(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{$e(e,t,r)}}else{p(e,t,r.$listeners$);ce(t.$lazyInstance$)}n()}};var de=function(e){if((c.$flags$&1)===0){var t=ye(e);var r=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}if(c.$cssShim$){c.$cssShim$.removeHost(e)}{ae(r,"disconnectedCallback")}}};var he=function(e,t){var r=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.$flags$&8){var n=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=n.call(this);if((c.$flags$&1)===0&&ye(this).$flags$&2){var t=new r;for(var a=0;a<e.length;a++){var i=e[a]["s-nr"];if(i){t.push(i)}}return t}return r.from(e)}})}};var pe=e("b",(function(e,t){if(t===void 0){t={}}var r=w();var n=[];var a=t.exclude||[];var i=f.customElements;var l=$.head;var s=l.querySelector("meta[charset]");var o=$.createElement("style");var u=[];var d;var h=true;Object.assign(c,t);c.$resourcesUrl$=new URL(t.resourcesUrl||"./",$.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$watchers$={}}if(!v&&r.$flags$&1){r.$flags$|=8}var l=r.$tagName$;var s=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;be(t,r);if(r.$flags$&1){if(v){{t.attachShadow({mode:"open"})}}else if(!("shadowRoot"in t)){t.shadowRoot=t}}{he(t,r)}return n}t.prototype.connectedCallback=function(){var e=this;if(d){clearTimeout(d);d=null}if(h){u.push(this)}else{c.jmp((function(){return ve(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;c.jmp((function(){return de(e)}))};t.prototype.componentOnReady=function(){return ye(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){n.push(l);i.define(l,ue(s,r,1))}}))}));{o.innerHTML=n+b;o.setAttribute("data-styles","");l.insertBefore(o,s?s.nextSibling:l.firstChild)}h=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{c.jmp((function(){return d=setTimeout(ne,30)}))}}r()}));var me=new WeakMap;var ye=function(e){return me.get(e)};var ge=e("r",(function(e,t){return me.set(t.$lazyInstance$=e,t)}));var be=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}p(e,r,t.$listeners$);return me.set(e,r)};var we=function(e,t){return t in e};var _e=function(e,t){return(0,console.error)(e,t)};var Se=new Map;var Ne=function(e,r,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=Se.get(i);if(l){return l[a]}
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{Se.set(i,e)}return e[a]}),_e)};var ke=new Map;var Re=[];var xe=[];var Ce=function(e,t){return function(r){e.push(r);if(!o){o=true;if(t&&c.$flags$&4){je(
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function l(e){try{o(n.next(e))}catch(t){i(t)}}function s(e){try{o(n["throw"](e))}catch(t){i(t)}}function o(e){e.done?r(e.value):a(e.value).then(l,s)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return o([e,t])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(s){l=[6,s];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register([],(function(e,t){"use strict";return{execute:function(){var r=this;var n=e("N","geotrek-rando-widget");var a;var i;var l=false;var s=null;var o=false;var f=e("w",typeof window!=="undefined"?window:{});var u=e("C",f.CSS);var $=e("d",f.document||{head:{}});var c=e("p",{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}});var v=function(){return($.head.attachShadow+"").indexOf("[native")>-1}();var d=e("a",(function(e){return Promise.resolve(e)}));var h=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var p=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],i=r[2];var l=y(e,n);var s=m(t,i);var o=g(n);c.ael(l,a,s,o);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return c.rel(l,a,s,o)}))}))}};var m=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(n){_e(n)}}};var y=function(e,t){if(t&8)return f;return e};var g=function(e){return(e&2)!==0};var b="{visibility:hidden}.hydrated{visibility:inherit}";var w=function(e,t){if(t===void 0){t=""}{return function(){return}}};var _=function(e,t){{return function(){return}}};var S=new WeakMap;var N=function(e,t,r){var n=ke.get(e);if(h&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}ke.set(e,n)};var k=function(e,t,r,n){var a=x(t);var i=ke.get(a);e=e.nodeType===11?e:$;if(i){if(typeof i==="string"){e=e.head||e;var l=S.get(e);var s=void 0;if(!l){S.set(e,l=new Set)}if(!l.has(a)){{if(c.$cssShim$){s=c.$cssShim$.createHostStyle(n,a,i,!!(t.$flags$&10));var o=s["s-sc"];if(o){a=o;l=null}}else{s=$.createElement("style");s.innerHTML=i}e.insertBefore(s,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var R=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=w("attachStyles",t.$tagName$);var i=k(v&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$,r);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var x=function(e,t){return"sc-"+e.$tagName$};var C={};var L=function(e){return e!=null};var E=function(e){e=typeof e;return e==="object"||e==="function"};var j=e("h",(function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=null;var l=false;var s=false;var o=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!E(a)){a=String(a)}if(l&&s){o[o.length-1].$text$+=a}else{o.push(l?P(null,a):a)}s=l}}};f(r);if(t){if(t.key){i=t.key}{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var $=P(e,null);$.$attrs$=t;if(o.length>0){$.$children$=o}{$.$key$=i}return $}));var P=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}return r};var O=e("H",{});var A=function(e){return e&&e.$tag$===O};var M=function(e,t,r,n,a,i){if(r!==n){var l=we(e,t);var s=t.toLowerCase();if(t==="class"){var o=e.classList;var u=T(r);var $=T(n);o.remove.apply(o,u.filter((function(e){return e&&!$.includes(e)})));o.add.apply(o,$.filter((function(e){return e&&!u.includes(e)})))}else if(t==="style"){{for(var v in r){if(!n||n[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in n){if(!r||n[v]!==r[v]){if(v.includes("-")){e.style.setProperty(v,n[v])}else{e.style[v]=n[v]}}}}else if(t==="key");else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(we(f,s)){t=s.slice(2)}else{t=s[2]+t.slice(3)}if(r){c.rel(e,t,r,false)}if(n){c.ael(e,t,n,false)}}else{var d=E(n);if((l||d&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var h=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!=h){e[t]=h}}else{e[t]=n}}catch(p){}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!l||i&4||a)&&!d){n=n===true?"":n;{e.setAttribute(t,n)}}}}};var I=/\s/;var T=function(e){return!e?[]:e.split(I)};var z=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||C;var l=t.$attrs$||C;{for(n in i){if(!(n in l)){M(a,n,i[n],undefined,r,t.$flags$)}}}for(n in l){M(a,n,i[n],l[n],r,t.$flags$)}};var q=function(e,t,r,n){var i=t.$children$[r];var s=0;var o;var f;if(i.$text$!==null){o=i.$elm$=$.createTextNode(i.$text$)}else{o=i.$elm$=$.createElement(i.$tag$);{z(null,i,l)}if(L(a)&&o["s-si"]!==a){o.classList.add(o["s-si"]=a)}if(i.$children$){for(s=0;s<i.$children$.length;++s){f=q(e,i,s);if(f){o.appendChild(f)}}}}return o};var B=function(e,t,r,n,a,l){var s=e;var o;if(s.shadowRoot&&s.tagName===i){s=s.shadowRoot}for(;a<=l;++a){if(n[a]){o=q(null,r,a);if(o){n[a].$elm$=o;s.insertBefore(o,t)}}}};var H=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;a.remove()}}};var U=function(e,t,r,n){var a=0;var i=0;var l=0;var s=0;var o=t.length-1;var f=t[0];var u=t[o];var $=n.length-1;var c=n[0];var v=n[$];var d;var h;while(a<=o&&i<=$){if(f==null){f=t[++a]}else if(u==null){u=t[--o]}else if(c==null){c=n[++i]}else if(v==null){v=n[--$]}else if(V(f,c)){W(f,c);f=t[++a];c=n[++i]}else if(V(u,v)){W(u,v);u=t[--o];v=n[--$]}else if(V(f,v)){W(f,v);e.insertBefore(f.$elm$,u.$elm$.nextSibling);f=t[++a];v=n[--$]}else if(V(u,c)){W(u,c);e.insertBefore(u.$elm$,f.$elm$);u=t[--o];c=n[++i]}else{l=-1;{for(s=a;s<=o;++s){if(t[s]&&t[s].$key$!==null&&t[s].$key$===c.$key$){l=s;break}}}if(l>=0){h=t[l];if(h.$tag$!==c.$tag$){d=q(t&&t[i],r,l)}else{W(h,c);t[l]=undefined;d=h.$elm$}c=n[++i]}else{d=q(t&&t[i],r,i);c=n[++i]}if(d){{f.$elm$.parentNode.insertBefore(d,f.$elm$)}}}}if(a>o){B(e,n[$+1]==null?null:n[$+1].$elm$,r,n,i,$)}else if(i>$){H(t,a,o)}};var V=function(e,t){if(e.$tag$===t.$tag$){{return e.$key$===t.$key$}}return false};var W=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var i=t.$text$;if(i===null){{{z(e,t,l)}}if(n!==null&&a!==null){U(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}B(r,null,t,a,0,a.length-1)}else if(n!==null){H(n,0,n.length-1)}}else if(e.$text$!==i){r.data=i}};var F=function(e,t){var r=e.$hostElement$;var n=e.$vnode$||P(null,null);var l=A(t)?t:j(null,null,t);i=r.tagName;l.$tag$=null;l.$flags$|=4;e.$vnode$=l;l.$elm$=n.$elm$=r.shadowRoot||r;{a=r["s-sc"]}W(n,l)};var G=e("g",(function(e){return ye(e).$hostElement$}));var D=e("e",(function(e,t,r){var n=G(e);return{emit:function(e){return J(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}}));var J=function(e,t,r){var n=c.ce(t,r);e.dispatchEvent(n);return n};var K=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var Q=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}K(e,e.$ancestorComponent$);var r=function(){return X(e,t)};return Pe(r)};var X=function(e,t){var r=w("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return ae(n,t,r)}));e.$queuedListeners$=null}}{a=ae(n,"componentWillLoad")}}r();return ie(a,(function(){return Y(e,n,t)}))};var Y=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,s,o;return __generator(this,(function(f){r=e.$hostElement$;a=w("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){R(e)}l=w("render",e.$cmpMeta$.$tagName$);{Z(e,t)}if(c.$cssShim$){c.$cssShim$.updateHost(r)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{s=r["s-p"];o=function(){return te(e)};if(s.length===0){o()}else{Promise.all(s).then(o);e.$flags$|=4;s.length=0}}return[2]}))}))};var Z=function(e,t,r){try{s=t;t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{F(e,t)}}}}catch(n){_e(n,e.$hostElement$)}s=null;return null};var ee=e("c",(function(){return s}));var te=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=w("postUpdate",t);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{le(r)}{ae(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!i){ne()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){je((function(){return Q(e,false)}))}e.$flags$&=~(4|512)}};var re=e("f",(function(e){{var t=ye(e);var r=t.$hostElement$.isConnected;if(r&&(t.$flags$&(2|16))===2){Q(t,false)}return r}}));var ne=function(e){{le($.documentElement)}je((function(){return J(f,"appload",{detail:{namespace:n}})}))};var ae=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(n){_e(n)}}return undefined};var ie=function(e,t){return e&&e.then?e.then(t):t()};var le=function(e){return e.classList.add("hydrated")};var se=function(e,t){if(e!=null&&!E(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=function(e,t){return ye(e).$instanceValues$.get(t)};var fe=function(e,t,r,n){var a=ye(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(t);var s=a.$flags$;var o=a.$lazyInstance$;r=se(r,n.$members$[t][0]);var f=Number.isNaN(l)&&Number.isNaN(r);var u=r!==l&&!f;if((!(s&8)||l===undefined)&&u){a.$instanceValues$.set(t,r);if(o){if(n.$watchers$&&s&128){var $=n.$watchers$[t];if($){$.map((function(e){try{o[e](r,l,t)}catch(n){_e(n,i)}}))}}if((s&(2|16))===2){Q(a,false)}}}};var ue=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return oe(this,n)},set:function(e){fe(this,n,e,t)},configurable:true,enumerable:true})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;c.jmp((function(){var t=i.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var t=e[0],r=e[1];var n=r[1]||t;i.set(n,t);return n}))}}return e};var $e=function(e,n,a,i,l){return __awaiter(r,void 0,void 0,(function(){var e,r,i,s,o,f,u;return __generator(this,(function($){switch($.label){case 0:if(!((n.$flags$&32)===0))return[3,5];n.$flags$|=32;l=Ne(a);if(!l.then)return[3,2];e=_();return[4,l];case 1:l=$.sent();e();$.label=2;case 2:if(!l.isProxied){{a.$watchers$=l.watchers}ue(l,a,2);l.isProxied=true}r=w("createInstance",a.$tagName$);{n.$flags$|=8}try{new l(n)}catch(c){_e(c)}{n.$flags$&=~8}{n.$flags$|=128}r();ce(n.$lazyInstance$);if(!l.style)return[3,5];i=l.style;s=x(a);if(!!ke.has(s))return[3,5];o=w("registerStyles",a.$tagName$);if(!(a.$flags$&8))return[3,4];return[4,t.import("./p-b1530d9c.system.js").then((function(e){return e.scopeCss(i,s,false)}))];case 3:i=$.sent();$.label=4;case 4:N(s,i,!!(a.$flags$&1));o();$.label=5;case 5:f=n.$ancestorComponent$;u=function(){return Q(n,true)};if(f&&f["s-rc"]){f["s-rc"].push(u)}else{u()}return[2]}}))}))};var ce=function(e){{ae(e,"connectedCallback")}};var ve=function(e){if((c.$flags$&1)===0){var t=ye(e);var r=t.$cmpMeta$;var n=w("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){K(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{$e(e,t,r)}}else{p(e,t,r.$listeners$);ce(t.$lazyInstance$)}n()}};var de=function(e){if((c.$flags$&1)===0){var t=ye(e);var r=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}if(c.$cssShim$){c.$cssShim$.removeHost(e)}{ae(r,"disconnectedCallback")}}};var he=function(e,t){var r=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.$flags$&8){var n=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=n.call(this);if((c.$flags$&1)===0&&ye(this).$flags$&2){var t=new r;for(var a=0;a<e.length;a++){var i=e[a]["s-nr"];if(i){t.push(i)}}return t}return r.from(e)}})}};var pe=e("b",(function(e,t){if(t===void 0){t={}}var r=w();var n=[];var a=t.exclude||[];var i=f.customElements;var l=$.head;var s=l.querySelector("meta[charset]");var o=$.createElement("style");var u=[];var d;var h=true;Object.assign(c,t);c.$resourcesUrl$=new URL(t.resourcesUrl||"./",$.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$watchers$={}}if(!v&&r.$flags$&1){r.$flags$|=8}var l=r.$tagName$;var s=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;be(t,r);if(r.$flags$&1){if(v){{t.attachShadow({mode:"open"})}}else if(!("shadowRoot"in t)){t.shadowRoot=t}}{he(t,r)}return n}t.prototype.connectedCallback=function(){var e=this;if(d){clearTimeout(d);d=null}if(h){u.push(this)}else{c.jmp((function(){return ve(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;c.jmp((function(){return de(e)}))};t.prototype.componentOnReady=function(){return ye(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){n.push(l);i.define(l,ue(s,r,1))}}))}));{o.innerHTML=n+b;o.setAttribute("data-styles","");l.insertBefore(o,s?s.nextSibling:l.firstChild)}h=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{c.jmp((function(){return d=setTimeout(ne,30)}))}}r()}));var me=new WeakMap;var ye=function(e){return me.get(e)};var ge=e("r",(function(e,t){return me.set(t.$lazyInstance$=e,t)}));var be=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}p(e,r,t.$listeners$);return me.set(e,r)};var we=function(e,t){return t in e};var _e=function(e,t){return(0,console.error)(e,t)};var Se=new Map;var Ne=function(e,r,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=Se.get(i);if(l){return l[a]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{Se.set(i,e)}return e[a]}),_e)};var ke=new Map;var Re=[];var xe=[];var Ce=function(e,t){return function(r){e.push(r);if(!o){o=true;if(t&&c.$flags$&4){je(Ee)}else{c.raf(Ee)}}}};var Le=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(r){_e(r)}}e.length=0};var Ee=function(){Le(Re);{Le(xe);if(o=Re.length>0){c.raf(Ee)}}};var je=function(e){return d().then(e)};var Pe=Ce(xe,true)}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-8f9914f4.system.js","./p-82ca029f.system.js","./p-a99db140.system.js"],(function(e){"use strict";var r,t,i,n,c,a,o,s,l,d,u,f;return{setters:[function(e){r=e.r;t=e.e;i=e.h;n=e.H},function(e){c=e.s;a=e.o},function(e){o=e.d;s=e.f;l=e.l;d=e.a;u=e.b;f=e.c}],execute:function(){var m='.trek-card-container,.trek-card-large-view-container{font-family:"Roboto";border-radius:8px;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);cursor:pointer}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover}.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:12px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-primary);font-size:24px;font-weight:bold;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:rgba(0, 0, 0, 0.7);font-size:16px;margin:4px 0px}.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-primary-tint);color:#ffffff;border-radius:8px;padding:8px;margin:0px 8px 8px 0px}.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}.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 .svg-icon svg,.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 .svg-icon svg{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)}.trek-card-container{width:350px;height:auto}.trek-card-container .image{width:100%}.trek-card-large-view-container{height:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}';var b=e("grw_trek_card",function(){function e(e){r(this,e);this.trekCardPress=t(this,"trekCardPress",7);this.colorPrimary="#6b0030";this.colorPrimaryTint="#974c6e";this.isLargeView=false}e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:c.currentTrek;if(this.currentTrek){this.difficulty=c.difficulties.find((function(r){return r.id===e.currentTrek.difficulty}));this.route=c.routes.find((function(r){return r.id===e.currentTrek.route}));this.practice=c.practices.find((function(r){return r.id===e.currentTrek.practice}));this.themes=c.themes.filter((function(r){return e.currentTrek.themes.includes(r.id)}))}a("currentTrek",(function(){e.currentTrek=e.trek?e.trek:c.currentTrek;if(e.currentTrek){e.difficulty=c.difficulties.find((function(r){return r.id===e.currentTrek.difficulty}));e.route=c.routes.find((function(r){return r.id===e.currentTrek.route}));e.practice=c.practices.find((function(r){return r.id===e.currentTrek.practice}));e.themes=c.themes.filter((function(r){return e.currentTrek.themes.includes(r.id)}))}}))};e.prototype.render=function(){var e=this;var r,t,c,a,m,b,p,h;return i(n,{onClick:function(){return e.trekCardPress.emit(e.currentTrek.id)},style:{width:this.isLargeView?"100%":"auto","--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint}},this.currentTrek&&i("div",{class:this.isLargeView?"trek-card-large-view-container":"trek-card-container"},this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].thumbnail&&i("img",{class:"image",src:"".concat(this.currentTrek.attachments[0].thumbnail),loading:"lazy"}),i("div",{class:"sub-container"},i("div",{class:"departure"},(r=this.currentTrek)===null||r===void 0?void 0:r.departure),i("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),i("div",{class:"themes-container"},this.themes.map((function(e){return i("div",{class:"theme"},e.label)}))),i("div",{class:"icons-labels-container"},i("div",{class:"row"},i("div",{class:"icon-label difficulty"},((c=this.difficulty)===null||c===void 0?void 0:c.pictogram)&&i("img",{src:this.difficulty.pictogram}),(a=this.difficulty)===null||a===void 0?void 0:a.label),i("div",{class:"icon-label duration"},i("div",{class:"svg-icon",innerHTML:o}),s(this.currentTrek.duration))),i("div",{class:"row"},i("div",{class:"icon-label length"},i("div",{class:"svg-icon",innerHTML:l}),d(this.currentTrek.length_2d)),i("div",{class:"icon-label ascent"},i("div",{class:"svg-icon",innerHTML:u}),f(this.currentTrek.ascent))),i("div",{class:"row"},i("div",{class:"icon-label route"},((m=this.route)===null||m===void 0?void 0:m.pictogram)&&i("img",{src:this.route.pictogram}),(b=this.route)===null||b===void 0?void 0:b.route),i("div",{class:"icon-label practice"},((p=this.practice)===null||p===void 0?void 0:p.pictogram)&&i("img",{src:this.practice.pictogram}),(h=this.practice)===null||h===void 0?void 0:h.name))))))};return e}());b.style=m}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ef1f14b8.system.js","./p-61e3f612.system.js"],(function(e){"use strict";var t,r,i,o,n,a;return{setters:[function(e){t=e.r;r=e.h;i=e.H;o=e.g},function(e){n=e.o;a=e.s}],execute:function(){var s='<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><polyline points="244 400 100 256 244 112" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/><line x1="120" y1="256" x2="412" y2="256" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/></svg>';var l='.app-container{position:relative;height:100%;max-height:100vh;font-family:"Roboto"}.header-container,.large-view-header-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background-color:var(--color-primary);height:64px}.header-container .arrow-back-icon,.large-view-header-container .arrow-back-icon{width:48px;height:auto;margin-left:24px}.header-container .arrow-back-icon svg,.large-view-header-container .arrow-back-icon svg{cursor:pointer;width:48px;height:auto}.header-container .handle-filters-container,.large-view-header-container .handle-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container .handle-filters-container .handle-filters-button,.large-view-header-container .handle-filters-container .handle-filters-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;color:var(--color-primary);background-color:#ffffff;margin-left:12px;border-radius:8px;padding:8px}.header-container .handle-filters-container .current-treks-within-bounds-length,.large-view-header-container .handle-filters-container .current-treks-within-bounds-length{margin-left:12px;color:#ffffff}.header-container .attribution-container,.large-view-header-container .attribution-container{position:absolute;right:24px}.header-container .attribution-container a,.large-view-header-container .attribution-container a{color:#ffffff;text-decoration:none}.options-container{height:calc(100% - 64px);position:absolute;width:100%;z-index:1100;top:64px}.filters-container{position:absolute;width:100%;background-color:#ffffff;padding:36px 0px;z-index:1100}.filters-container .close-filters-button{cursor:pointer;font-weight:bold;position:absolute;top:12px;right:12px;padding:12px;border-radius:12px;color:var(--color-primary);border:1px var(--color-primary) solid}.filters-container .close-filters-button:hover{background-color:var(--color-primary);color:#ffffff}.filters-container .filter-margin-top{margin-top:24px}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:calc(100% - 64px);position:absolute;z-index:1099;top:64px}.init-loader-container,.loader-container,.large-view-loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.init-loader-container .loader,.loader-container .loader,.large-view-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-tint);border-bottom-color:var(--color-primary);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - 64px)}.app-treks-list-container,.app-trek-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{height:100%}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:absolute;bottom:24px;width:100%;z-index:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.map-visibility-button div{background-color:var(--color-primary);color:#ffffff;padding:12px;border-radius:24px;width:120px;text-align:center}.header-container .title{font-size:24px}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}.app-map-container{position:relative;width:100%;position:absolute}.large-view-header-container .title{font-size:32px}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}';var c=e("grw_app",function(){function e(e){t(this,e);this.showTrek=false;this.showTreksMap=false;this.showTrekMap=false;this.showFilters=false;this.isLargeView=false;this.language="fr";this.colorPrimary="#6b0030";this.colorPrimaryShade="#4a0021";this.colorPrimaryTint="#974c6e";this.colorTrekLine="#6b0030";this.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this)}e.prototype.onTrekCardPress=function(e){this.currentTrekId=e.detail;this.showTrek=!this.showTrek;var t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString());window.history.pushState({},"",t)};e.prototype.onWindowResize=function(){this.handleView()};e.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};e.prototype.componentDidLoad=function(){var e=this;n("trekNetworkError",(function(){if(a.trekNetworkError){var t=new URL(window.location.toString());t.searchParams.delete("trek");window.history.replaceState({},"",t);e.onTrekDetailsClose()}}));this.handleView();window.addEventListener("popstate",this.handlePopStateBind,false);var t=new URL(window.location.toString());var r=t.searchParams.get("trek");if(r){window.history.replaceState({isInitialHistoryWithTrek:true},"",t);this.currentTrekId=Number(r);this.showTrek=!this.showTrek}};e.prototype.onTrekDetailsClose=function(){a.currentTrek=null;this.currentTrekId=null;this.showTrek=!this.showTrek};e.prototype.handleView=function(){this.isLargeView=this.element.getBoundingClientRect().width>=this.largeViewSize;this.showTreksMap=this.isLargeView;this.showTrekMap=this.isLargeView};e.prototype.handleFilters=function(){this.showFilters=!this.showFilters};e.prototype.handleBackButton=function(){if(window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();var e=new URL(window.location.toString());e.searchParams.delete("trek");window.history.pushState({},"",e)}else{window.history.back()}};e.prototype.handlePopState=function(){var e=new URL(window.location.toString());var t=e.searchParams.get("trek");if(t){this.currentTrekId=Number(t);this.showTrek=!this.showTrek}else{this.onTrekDetailsClose()}};e.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else{this.showTreksMap=!this.showTreksMap}};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.handlePopStateBind)};e.prototype.render=function(){var e=this;return r(i,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint,"--color-primary-shade":this.colorPrimaryShade}},r("grw-treks-provider",{api:this.api,language:this.language,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals,routes:this.routes,practices:this.practices}),!a.currentTreks&&!a.currentTrek&&r("div",{class:"init-loader-container"},r("span",{class:"loader"})),this.showTrek&&this.currentTrekId&&r("grw-trek-provider",{api:a.api,language:this.language,"trek-id":this.currentTrekId}),(a.currentTreks||a.currentTrek)&&r("div",{class:"app-container"},r("div",{class:this.isLargeView?"large-view-header-container":"header-container"},this.showTrek?r("div",{onClick:function(){return e.handleBackButton()},class:"arrow-back-icon",innerHTML:s}):r("div",{class:"handle-filters-container"},r("div",{onClick:function(){return e.handleFilters()},class:"handle-filters-button"},"FILTRER"),a.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},"".concat(a.treksWithinBounds.length," randonnée").concat(a.treksWithinBounds.length>1?"s":""))),!this.showTrek&&this.showFilters&&r("div",{class:"options-container"},r("div",{class:"filters-container"},r("div",{onClick:function(){return e.handleFilters()},class:"close-filters-button"},"X"),r("div",null,r("grw-filter",{filterName:"Pratique",filterType:"practices",filterNameProperty:"name"})),r("div",{class:"filter-margin-top"},r("grw-filter",{filterName:"Difficulté",filterType:"difficulties",filterNameProperty:"label"})),r("div",{class:"filter-margin-top"},r("grw-filter",{filterName:"Durée",filterType:"durations",filterNameProperty:"name"}))),r("div",{onClick:function(){return e.handleFilters()},class:"back-filters-container"})),r("div",{class:"attribution-container"},r("a",{target:"_blank",href:"https://geotrek.fr"},"GEOTREK"))),r("div",{class:"content-container"},r("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek?"none":"flex",position:this.showTrek?"absolute":"relative"}},r("grw-treks-list",{"is-large-view":this.isLargeView,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint})),this.showTrek&&!a.currentTrek&&r("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},r("span",{class:"loader"})),a.currentTrek&&r("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},r("grw-trek-detail",{"color-primary":this.colorPrimary,"color-primary-shade":this.colorPrimaryShade,"color-primary-tint":this.colorPrimaryTint})),r("grw-map",{class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showTreksMap&&!this.showTrek||this.showTrekMap&&this.showTrek?"visible":"hidden"},"url-layer":this.urlLayer,center:this.center,zoom:this.zoom,attribution:this.attribution,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint,"color-trek-line":this.colorTrekLine,"color-departure-icon":this.colorDepartureIcon,"color-arrival-icon":this.colorArrivalIcon,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon})),r("div",{class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},r("div",{onClick:function(){return e.handleShowMap()}},this.showTrek?this.showTrekMap?"Voir la fiche":"Voir la carte":this.showTreksMap?"Voir la liste":"Voir la carte"))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return e}());c.style=l}}}));
|
|
1
|
+
System.register(["./p-8f9914f4.system.js","./p-82ca029f.system.js"],(function(e){"use strict";var t,r,i,o,n,a;return{setters:[function(e){t=e.r;r=e.h;i=e.H;o=e.g},function(e){n=e.o;a=e.s}],execute:function(){var s='<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><polyline points="244 400 100 256 244 112" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/><line x1="120" y1="256" x2="412" y2="256" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/></svg>';var l='.app-container{position:relative;height:100%;max-height:100vh;font-family:"Roboto"}.header-container,.large-view-header-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background-color:var(--color-primary);height:64px}.header-container .arrow-back-icon,.large-view-header-container .arrow-back-icon{width:48px;height:auto;margin-left:24px}.header-container .arrow-back-icon svg,.large-view-header-container .arrow-back-icon svg{cursor:pointer;width:48px;height:auto}.header-container .handle-filters-container,.large-view-header-container .handle-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container .handle-filters-container .handle-filters-button,.large-view-header-container .handle-filters-container .handle-filters-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;color:var(--color-primary);background-color:#ffffff;margin-left:12px;border-radius:8px;padding:8px}.header-container .handle-filters-container .current-treks-within-bounds-length,.large-view-header-container .handle-filters-container .current-treks-within-bounds-length{margin-left:12px;color:#ffffff}.header-container .attribution-container,.large-view-header-container .attribution-container{position:absolute;right:24px}.header-container .attribution-container a,.large-view-header-container .attribution-container a{color:#ffffff;text-decoration:none}.options-container{height:calc(100% - 64px);position:absolute;width:100%;z-index:1100;top:64px}.filters-container{position:absolute;width:100%;background-color:#ffffff;padding:36px 0px;z-index:1100}.filters-container .close-filters-button{cursor:pointer;font-weight:bold;position:absolute;top:12px;right:12px;padding:12px;border-radius:12px;color:var(--color-primary);border:1px var(--color-primary) solid}.filters-container .close-filters-button:hover{background-color:var(--color-primary);color:#ffffff}.filters-container .filter-margin-top{margin-top:24px}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:calc(100% - 64px);position:absolute;z-index:1099;top:64px}.init-loader-container,.loader-container,.large-view-loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.init-loader-container .loader,.loader-container .loader,.large-view-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-tint);border-bottom-color:var(--color-primary);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - 64px)}.app-treks-list-container,.app-trek-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{height:100%}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:absolute;bottom:24px;width:100%;z-index:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.map-visibility-button div{background-color:var(--color-primary);color:#ffffff;padding:12px;border-radius:24px;width:120px;text-align:center}.header-container .title{font-size:24px}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}.app-map-container{position:relative;width:100%;position:absolute}.large-view-header-container .title{font-size:32px}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}';var c=e("grw_app",function(){function e(e){t(this,e);this.showTrek=false;this.showTreksMap=false;this.showTrekMap=false;this.showFilters=false;this.isLargeView=false;this.language="fr";this.colorPrimary="#6b0030";this.colorPrimaryShade="#4a0021";this.colorPrimaryTint="#974c6e";this.colorTrekLine="#6b0030";this.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this)}e.prototype.onTrekCardPress=function(e){this.currentTrekId=e.detail;this.showTrek=!this.showTrek;var t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString());window.history.pushState({},"",t)};e.prototype.onWindowResize=function(){this.handleView()};e.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};e.prototype.componentWillLoad=function(){var e=new URL(window.location.toString());var t=e.searchParams.get("trek");if(t){window.history.replaceState({isInitialHistoryWithTrek:true},"",e);this.currentTrekId=Number(t);this.showTrek=!this.showTrek}};e.prototype.componentDidLoad=function(){var e=this;n("trekNetworkError",(function(){if(a.trekNetworkError){var t=new URL(window.location.toString());t.searchParams.delete("trek");window.history.replaceState({},"",t);e.onTrekDetailsClose()}}));window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};e.prototype.onTrekDetailsClose=function(){a.currentTrek=null;this.currentTrekId=null;this.showTrek=!this.showTrek};e.prototype.handleView=function(){this.isLargeView=this.element.getBoundingClientRect().width>=this.largeViewSize;this.showTreksMap=this.isLargeView;this.showTrekMap=this.isLargeView};e.prototype.handleFilters=function(){this.showFilters=!this.showFilters};e.prototype.handleBackButton=function(){if(window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();var e=new URL(window.location.toString());e.searchParams.delete("trek");window.history.pushState({},"",e)}else{window.history.back()}};e.prototype.handlePopState=function(){var e=new URL(window.location.toString());var t=e.searchParams.get("trek");if(t){this.currentTrekId=Number(t);this.showTrek=!this.showTrek}else{this.onTrekDetailsClose()}};e.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else{this.showTreksMap=!this.showTreksMap}};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.handlePopStateBind)};e.prototype.render=function(){var e=this;return r(i,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint,"--color-primary-shade":this.colorPrimaryShade}},!a.currentTreks&&!a.currentTrek&&r("div",{class:"init-loader-container"},r("span",{class:"loader"})),!this.showTrek&&!a.treks&&r("grw-treks-provider",{api:this.api,language:this.language,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals,routes:this.routes,practices:this.practices}),this.showTrek&&this.currentTrekId&&r("grw-trek-provider",{api:this.api,language:this.language,"trek-id":this.currentTrekId}),(a.currentTreks||a.currentTrek)&&r("div",{class:"app-container"},r("div",{class:this.isLargeView?"large-view-header-container":"header-container"},this.showTrek?r("div",{onClick:function(){return e.handleBackButton()},class:"arrow-back-icon",innerHTML:s}):r("div",{class:"handle-filters-container"},r("div",{onClick:function(){return e.handleFilters()},class:"handle-filters-button"},"FILTRER"),a.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},"".concat(a.treksWithinBounds.length," randonnée").concat(a.treksWithinBounds.length>1?"s":""))),!this.showTrek&&this.showFilters&&r("div",{class:"options-container"},r("div",{class:"filters-container"},r("div",{onClick:function(){return e.handleFilters()},class:"close-filters-button"},"X"),r("div",null,r("grw-filter",{filterName:"Pratique",filterType:"practices",filterNameProperty:"name"})),r("div",{class:"filter-margin-top"},r("grw-filter",{filterName:"Difficulté",filterType:"difficulties",filterNameProperty:"label"})),r("div",{class:"filter-margin-top"},r("grw-filter",{filterName:"Durée",filterType:"durations",filterNameProperty:"name"}))),r("div",{onClick:function(){return e.handleFilters()},class:"back-filters-container"})),r("div",{class:"attribution-container"},r("a",{target:"_blank",href:"https://geotrek.fr"},"GEOTREK"))),r("div",{class:"content-container"},r("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek?"none":"flex",position:this.showTrek?"absolute":"relative"}},r("grw-treks-list",{"is-large-view":this.isLargeView,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint})),this.showTrek&&!a.currentTrek&&r("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},r("span",{class:"loader"})),a.currentTrek&&r("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},r("grw-trek-detail",{"color-primary":this.colorPrimary,"color-primary-shade":this.colorPrimaryShade,"color-primary-tint":this.colorPrimaryTint})),r("grw-map",{class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showTreksMap&&!this.showTrek||this.showTrekMap&&this.showTrek?"visible":"hidden"},"url-layer":this.urlLayer,center:this.center,zoom:this.zoom,attribution:this.attribution,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint,"color-trek-line":this.colorTrekLine,"color-departure-icon":this.colorDepartureIcon,"color-arrival-icon":this.colorArrivalIcon,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon})),r("div",{class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},r("div",{onClick:function(){return e.handleShowMap()}},this.showTrek?this.showTrekMap?"Voir la fiche":"Voir la carte":this.showTreksMap?"Voir la liste":"Voir la carte"))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return e}());c.style=l}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as t,H as e,g as r}from"./p-4690907e.js";import{o,s as n}from"./p-18038011.js";const a=class{constructor(t){i(this,t),this.showTrek=!1,this.showTreksMap=!1,this.showTrekMap=!1,this.showFilters=!1,this.isLargeView=!1,this.language="fr",this.colorPrimary="#6b0030",this.colorPrimaryShade="#4a0021",this.colorPrimaryTint="#974c6e",this.colorTrekLine="#6b0030",this.colorDepartureIcon="#006b3b",this.colorArrivalIcon="#85003b",this.colorSensitiveArea="#4974a5",this.colorPoiIcon="#974c6e",this.largeViewSize=1024,this.handlePopStateBind=this.handlePopState.bind(this)}onTrekCardPress(i){this.currentTrekId=i.detail,this.showTrek=!this.showTrek;const t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString()),window.history.pushState({},"",t)}onWindowResize(){this.handleView()}watchPropHandler(){window.dispatchEvent(new window.Event("resize"))}componentWillLoad(){const i=new URL(window.location.toString()),t=i.searchParams.get("trek");t&&(window.history.replaceState({isInitialHistoryWithTrek:!0},"",i),this.currentTrekId=Number(t),this.showTrek=!this.showTrek)}componentDidLoad(){o("trekNetworkError",(()=>{if(n.trekNetworkError){const i=new URL(window.location.toString());i.searchParams.delete("trek"),window.history.replaceState({},"",i),this.onTrekDetailsClose()}})),window.addEventListener("popstate",this.handlePopStateBind,!1),this.handleView()}onTrekDetailsClose(){n.currentTrek=null,this.currentTrekId=null,this.showTrek=!this.showTrek}handleView(){this.isLargeView=this.element.getBoundingClientRect().width>=this.largeViewSize,this.showTreksMap=this.isLargeView,this.showTrekMap=this.isLargeView}handleFilters(){this.showFilters=!this.showFilters}handleBackButton(){if(window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();const i=new URL(window.location.toString());i.searchParams.delete("trek"),window.history.pushState({},"",i)}else window.history.back()}handlePopState(){const i=new URL(window.location.toString()).searchParams.get("trek");i?(this.currentTrekId=Number(i),this.showTrek=!this.showTrek):this.onTrekDetailsClose()}handleShowMap(){this.currentTrekId?this.showTrekMap=!this.showTrekMap:this.showTreksMap=!this.showTreksMap}disconnectedCallback(){window.removeEventListener("popstate",this.handlePopStateBind)}render(){return t(e,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint,"--color-primary-shade":this.colorPrimaryShade}},!n.currentTreks&&!n.currentTrek&&t("div",{class:"init-loader-container"},t("span",{class:"loader"})),!this.showTrek&&!n.treks&&t("grw-treks-provider",{api:this.api,language:this.language,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals,routes:this.routes,practices:this.practices}),this.showTrek&&this.currentTrekId&&t("grw-trek-provider",{api:this.api,language:this.language,"trek-id":this.currentTrekId}),(n.currentTreks||n.currentTrek)&&t("div",{class:"app-container"},t("div",{class:this.isLargeView?"large-view-header-container":"header-container"},this.showTrek?t("div",{onClick:()=>this.handleBackButton(),class:"arrow-back-icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><polyline points="244 400 100 256 244 112" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/><line x1="120" y1="256" x2="412" y2="256" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/></svg>'}):t("div",{class:"handle-filters-container"},t("div",{onClick:()=>this.handleFilters(),class:"handle-filters-button"},"FILTRER"),n.treksWithinBounds&&t("div",{class:"current-treks-within-bounds-length"},`${n.treksWithinBounds.length} randonnée${n.treksWithinBounds.length>1?"s":""}`)),!this.showTrek&&this.showFilters&&t("div",{class:"options-container"},t("div",{class:"filters-container"},t("div",{onClick:()=>this.handleFilters(),class:"close-filters-button"},"X"),t("div",null,t("grw-filter",{filterName:"Pratique",filterType:"practices",filterNameProperty:"name"})),t("div",{class:"filter-margin-top"},t("grw-filter",{filterName:"Difficulté",filterType:"difficulties",filterNameProperty:"label"})),t("div",{class:"filter-margin-top"},t("grw-filter",{filterName:"Durée",filterType:"durations",filterNameProperty:"name"}))),t("div",{onClick:()=>this.handleFilters(),class:"back-filters-container"})),t("div",{class:"attribution-container"},t("a",{target:"_blank",href:"https://geotrek.fr"},"GEOTREK"))),t("div",{class:"content-container"},t("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek?"none":"flex",position:this.showTrek?"absolute":"relative"}},t("grw-treks-list",{"is-large-view":this.isLargeView,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint})),this.showTrek&&!n.currentTrek&&t("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},t("span",{class:"loader"})),n.currentTrek&&t("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},t("grw-trek-detail",{"color-primary":this.colorPrimary,"color-primary-shade":this.colorPrimaryShade,"color-primary-tint":this.colorPrimaryTint})),t("grw-map",{class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showTreksMap&&!this.showTrek||this.showTrekMap&&this.showTrek?"visible":"hidden"},"url-layer":this.urlLayer,center:this.center,zoom:this.zoom,attribution:this.attribution,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint,"color-trek-line":this.colorTrekLine,"color-departure-icon":this.colorDepartureIcon,"color-arrival-icon":this.colorArrivalIcon,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon})),t("div",{class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},t("div",{onClick:()=>this.handleShowMap()},this.showTrek?this.showTrekMap?"Voir la fiche":"Voir la carte":this.showTreksMap?"Voir la liste":"Voir la carte"))))}get element(){return r(this)}static get watchers(){return{isLargeView:["watchPropHandler"]}}};a.style='.app-container{position:relative;height:100%;max-height:100vh;font-family:"Roboto"}.header-container,.large-view-header-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background-color:var(--color-primary);height:64px}.header-container .arrow-back-icon,.large-view-header-container .arrow-back-icon{width:48px;height:auto;margin-left:24px}.header-container .arrow-back-icon svg,.large-view-header-container .arrow-back-icon svg{cursor:pointer;width:48px;height:auto}.header-container .handle-filters-container,.large-view-header-container .handle-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container .handle-filters-container .handle-filters-button,.large-view-header-container .handle-filters-container .handle-filters-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;color:var(--color-primary);background-color:#ffffff;margin-left:12px;border-radius:8px;padding:8px}.header-container .handle-filters-container .current-treks-within-bounds-length,.large-view-header-container .handle-filters-container .current-treks-within-bounds-length{margin-left:12px;color:#ffffff}.header-container .attribution-container,.large-view-header-container .attribution-container{position:absolute;right:24px}.header-container .attribution-container a,.large-view-header-container .attribution-container a{color:#ffffff;text-decoration:none}.options-container{height:calc(100% - 64px);position:absolute;width:100%;z-index:1100;top:64px}.filters-container{position:absolute;width:100%;background-color:#ffffff;padding:36px 0px;z-index:1100}.filters-container .close-filters-button{cursor:pointer;font-weight:bold;position:absolute;top:12px;right:12px;padding:12px;border-radius:12px;color:var(--color-primary);border:1px var(--color-primary) solid}.filters-container .close-filters-button:hover{background-color:var(--color-primary);color:#ffffff}.filters-container .filter-margin-top{margin-top:24px}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:calc(100% - 64px);position:absolute;z-index:1099;top:64px}.init-loader-container,.loader-container,.large-view-loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.init-loader-container .loader,.loader-container .loader,.large-view-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-tint);border-bottom-color:var(--color-primary);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - 64px)}.app-treks-list-container,.app-trek-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{height:100%}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:absolute;bottom:24px;width:100%;z-index:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.map-visibility-button div{background-color:var(--color-primary);color:#ffffff;padding:12px;border-radius:24px;width:120px;text-align:center}.header-container .title{font-size:24px}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}.app-map-container{position:relative;width:100%;position:absolute}.large-view-header-container .title{font-size:32px}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}';export{a as grw_app}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as t,H as e,g as r}from"./p-5af3d927.js";import{o,s as a}from"./p-2e151f05.js";const n=class{constructor(t){i(this,t),this.showTrek=!1,this.showTreksMap=!1,this.showTrekMap=!1,this.showFilters=!1,this.isLargeView=!1,this.language="fr",this.colorPrimary="#6b0030",this.colorPrimaryShade="#4a0021",this.colorPrimaryTint="#974c6e",this.colorTrekLine="#6b0030",this.colorDepartureIcon="#006b3b",this.colorArrivalIcon="#85003b",this.colorSensitiveArea="#4974a5",this.colorPoiIcon="#974c6e",this.largeViewSize=1024,this.handlePopStateBind=this.handlePopState.bind(this)}onTrekCardPress(i){this.currentTrekId=i.detail,this.showTrek=!this.showTrek;const t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString()),window.history.pushState({},"",t)}onWindowResize(){this.handleView()}watchPropHandler(){window.dispatchEvent(new window.Event("resize"))}componentDidLoad(){o("trekNetworkError",(()=>{if(a.trekNetworkError){const i=new URL(window.location.toString());i.searchParams.delete("trek"),window.history.replaceState({},"",i),this.onTrekDetailsClose()}})),this.handleView(),window.addEventListener("popstate",this.handlePopStateBind,!1);const i=new URL(window.location.toString()),t=i.searchParams.get("trek");t&&(window.history.replaceState({isInitialHistoryWithTrek:!0},"",i),this.currentTrekId=Number(t),this.showTrek=!this.showTrek)}onTrekDetailsClose(){a.currentTrek=null,this.currentTrekId=null,this.showTrek=!this.showTrek}handleView(){this.isLargeView=this.element.getBoundingClientRect().width>=this.largeViewSize,this.showTreksMap=this.isLargeView,this.showTrekMap=this.isLargeView}handleFilters(){this.showFilters=!this.showFilters}handleBackButton(){if(window.history.state.isInitialHistoryWithTrek){this.onTrekDetailsClose();const i=new URL(window.location.toString());i.searchParams.delete("trek"),window.history.pushState({},"",i)}else window.history.back()}handlePopState(){const i=new URL(window.location.toString()).searchParams.get("trek");i?(this.currentTrekId=Number(i),this.showTrek=!this.showTrek):this.onTrekDetailsClose()}handleShowMap(){this.currentTrekId?this.showTrekMap=!this.showTrekMap:this.showTreksMap=!this.showTreksMap}disconnectedCallback(){window.removeEventListener("popstate",this.handlePopStateBind)}render(){return t(e,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint,"--color-primary-shade":this.colorPrimaryShade}},t("grw-treks-provider",{api:this.api,language:this.language,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals,routes:this.routes,practices:this.practices}),!a.currentTreks&&!a.currentTrek&&t("div",{class:"init-loader-container"},t("span",{class:"loader"})),this.showTrek&&this.currentTrekId&&t("grw-trek-provider",{api:a.api,language:this.language,"trek-id":this.currentTrekId}),(a.currentTreks||a.currentTrek)&&t("div",{class:"app-container"},t("div",{class:this.isLargeView?"large-view-header-container":"header-container"},this.showTrek?t("div",{onClick:()=>this.handleBackButton(),class:"arrow-back-icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><polyline points="244 400 100 256 244 112" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/><line x1="120" y1="256" x2="412" y2="256" style="fill:none;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px"/></svg>'}):t("div",{class:"handle-filters-container"},t("div",{onClick:()=>this.handleFilters(),class:"handle-filters-button"},"FILTRER"),a.treksWithinBounds&&t("div",{class:"current-treks-within-bounds-length"},`${a.treksWithinBounds.length} randonnée${a.treksWithinBounds.length>1?"s":""}`)),!this.showTrek&&this.showFilters&&t("div",{class:"options-container"},t("div",{class:"filters-container"},t("div",{onClick:()=>this.handleFilters(),class:"close-filters-button"},"X"),t("div",null,t("grw-filter",{filterName:"Pratique",filterType:"practices",filterNameProperty:"name"})),t("div",{class:"filter-margin-top"},t("grw-filter",{filterName:"Difficulté",filterType:"difficulties",filterNameProperty:"label"})),t("div",{class:"filter-margin-top"},t("grw-filter",{filterName:"Durée",filterType:"durations",filterNameProperty:"name"}))),t("div",{onClick:()=>this.handleFilters(),class:"back-filters-container"})),t("div",{class:"attribution-container"},t("a",{target:"_blank",href:"https://geotrek.fr"},"GEOTREK"))),t("div",{class:"content-container"},t("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek?"none":"flex",position:this.showTrek?"absolute":"relative"}},t("grw-treks-list",{"is-large-view":this.isLargeView,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint})),this.showTrek&&!a.currentTrek&&t("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},t("span",{class:"loader"})),a.currentTrek&&t("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},t("grw-trek-detail",{"color-primary":this.colorPrimary,"color-primary-shade":this.colorPrimaryShade,"color-primary-tint":this.colorPrimaryTint})),t("grw-map",{class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showTreksMap&&!this.showTrek||this.showTrekMap&&this.showTrek?"visible":"hidden"},"url-layer":this.urlLayer,center:this.center,zoom:this.zoom,attribution:this.attribution,"color-primary":this.colorPrimary,"color-primary-tint":this.colorPrimaryTint,"color-trek-line":this.colorTrekLine,"color-departure-icon":this.colorDepartureIcon,"color-arrival-icon":this.colorArrivalIcon,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon})),t("div",{class:"map-visibility-button",style:{display:this.isLargeView?"none":"flex"}},t("div",{onClick:()=>this.handleShowMap()},this.showTrek?this.showTrekMap?"Voir la fiche":"Voir la carte":this.showTreksMap?"Voir la liste":"Voir la carte"))))}get element(){return r(this)}static get watchers(){return{isLargeView:["watchPropHandler"]}}};n.style='.app-container{position:relative;height:100%;max-height:100vh;font-family:"Roboto"}.header-container,.large-view-header-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background-color:var(--color-primary);height:64px}.header-container .arrow-back-icon,.large-view-header-container .arrow-back-icon{width:48px;height:auto;margin-left:24px}.header-container .arrow-back-icon svg,.large-view-header-container .arrow-back-icon svg{cursor:pointer;width:48px;height:auto}.header-container .handle-filters-container,.large-view-header-container .handle-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.header-container .handle-filters-container .handle-filters-button,.large-view-header-container .handle-filters-container .handle-filters-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;color:var(--color-primary);background-color:#ffffff;margin-left:12px;border-radius:8px;padding:8px}.header-container .handle-filters-container .current-treks-within-bounds-length,.large-view-header-container .handle-filters-container .current-treks-within-bounds-length{margin-left:12px;color:#ffffff}.header-container .attribution-container,.large-view-header-container .attribution-container{position:absolute;right:24px}.header-container .attribution-container a,.large-view-header-container .attribution-container a{color:#ffffff;text-decoration:none}.options-container{height:calc(100% - 64px);position:absolute;width:100%;z-index:1100;top:64px}.filters-container{position:absolute;width:100%;background-color:#ffffff;padding:36px 0px;z-index:1100}.filters-container .close-filters-button{cursor:pointer;font-weight:bold;position:absolute;top:12px;right:12px;padding:12px;border-radius:12px;color:var(--color-primary);border:1px var(--color-primary) solid}.filters-container .close-filters-button:hover{background-color:var(--color-primary);color:#ffffff}.filters-container .filter-margin-top{margin-top:24px}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:calc(100% - 64px);position:absolute;z-index:1099;top:64px}.init-loader-container,.loader-container,.large-view-loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.init-loader-container .loader,.loader-container .loader,.large-view-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-tint);border-bottom-color:var(--color-primary);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - 64px)}.app-treks-list-container,.app-trek-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{height:100%}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:absolute;bottom:24px;width:100%;z-index:400;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.map-visibility-button div{background-color:var(--color-primary);color:#ffffff;padding:12px;border-radius:24px;width:120px;text-align:center}.header-container .title{font-size:24px}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}.app-map-container{position:relative;width:100%;position:absolute}.large-view-header-container .title{font-size:32px}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}';export{n as grw_app}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e="geotrek-rando-widget";let t,n,l=null,s=!1;const o="undefined"!=typeof window?window:{},i=o.CSS,c=o.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=(()=>(c.head.attachShadow+"").indexOf("[native")>-1)(),u=e=>Promise.resolve(e),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=y(e,n),i=h(t,s),c=$(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},h=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(l){ne(l)}},y=(e,t)=>8&t?o:e,$=e=>0!=(2&e),m=new WeakMap,p=e=>"sc-"+e.h,b={},w=e=>"object"==(e=typeof e)||"function"===e,g=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1;const c=[],r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!w(l))&&(l+=""),o&&i?c[c.length-1].$+=l:c.push(o?k(null,l):l),i=o)};if(r(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=k(e,null);return a.m=t,c.length>0&&(a.p=c),a.g=s,a},k=(e,t)=>({t:0,k:e,$:t,j:null,p:null,m:null,g:null}),j={},S=(e,t,n,l,s,i)=>{if(n!==l){let a=te(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=v(n),o=v(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if(a||"o"!==t[0]||"n"!==t[1]){const o=w(l);if((a||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?a=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(c){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!a||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):te(o,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},_=/\s/,v=e=>e?e.split(_):[],C=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.m||b,i=t.m||b;for(l in o)l in i||S(s,l,o[l],void 0,n,t.t);for(l in i)S(s,l,o[l],i[l],n,t.t)},O=(e,n,l)=>{const s=n.p[l];let o,i,r=0;if(null!==s.$)o=s.j=c.createTextNode(s.$);else if(o=s.j=c.createElement(s.k),C(null,s,!1),null!=t&&o["s-si"]!==t&&o.classList.add(o["s-si"]=t),s.p)for(r=0;r<s.p.length;++r)i=O(e,s,r),i&&o.appendChild(i);return o},M=(e,t,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=O(null,l,o),c&&(s[o].j=c,r.insertBefore(c,t)))},N=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.j.remove()},x=(e,t)=>e.k===t.k&&e.g===t.g,E=(e,t)=>{const n=t.j=e.j,l=e.p,s=t.p,o=t.$;null===o?(C(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,a=0,u=t.length-1,f=t[0],d=t[u],h=l.length-1,y=l[0],$=l[h];for(;i<=u&&c<=h;)if(null==f)f=t[++i];else if(null==d)d=t[--u];else if(null==y)y=l[++c];else if(null==$)$=l[--h];else if(x(f,y))E(f,y),f=t[++i],y=l[++c];else if(x(d,$))E(d,$),d=t[--u],$=l[--h];else if(x(f,$))E(f,$),e.insertBefore(f.j,d.j.nextSibling),f=t[++i],$=l[--h];else if(x(d,y))E(d,y),e.insertBefore(d.j,f.j),d=t[--u],y=l[++c];else{for(r=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].g&&t[a].g===y.g){r=a;break}r>=0?(o=t[r],o.k!==y.k?s=O(t&&t[c],n,r):(E(o,y),t[r]=void 0,s=o.j),y=l[++c]):(s=O(t&&t[c],n,c),y=l[++c]),s&&f.j.parentNode.insertBefore(s,f.j)}i>u?M(e,null==l[h+1]?null:l[h+1].j,n,l,c,h):c>h&&N(t,i,u)})(n,l,t,s):null!==s?(null!==e.$&&(n.textContent=""),M(n,null,t,s,0,s.length-1)):null!==l&&N(l,0,l.length-1)):e.$!==o&&(n.data=o)},P=e=>Y(e).S,A=(e,t,n)=>{const l=P(e);return{emit:e=>L(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},L=(e,t,n)=>{const l=r.ce(t,n);return e.dispatchEvent(l),l},R=(e,t)=>{t&&!e._&&t["s-p"]&&t["s-p"].push(new Promise((t=>e._=t)))},T=(e,t)=>{if(e.t|=16,!(4&e.t))return R(e,e.v),de((()=>F(e,t)));e.t|=512},F=(e,t)=>{const n=e.i;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>z(n,e,t))),e.u=null)),B(void 0,(()=>H(e,n,t)))},H=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.C,n=e.S,l=t.t,s=((e,t)=>{let n=p(t);const l=oe.get(n);if(e=11===e.nodeType?e:c,l)if("string"==typeof l){let t,s=m.get(e=e.head||e);s||m.set(e,s=new Set),s.has(n)||(t=c.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(a&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);U(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>q(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},U=(e,s)=>{try{l=s,s=s.render(),e.t&=-17,e.t|=2,((e,l)=>{const s=e.S,o=e.O||k(null,null),i=(e=>e&&e.k===j)(l)?l:g(null,null,l);n=s.tagName,i.k=null,i.t|=4,e.O=i,i.j=o.j=s.shadowRoot||s,t=s["s-sc"],E(o,i)})(e,s)}catch(o){ne(o,e.S)}return l=null,null},W=()=>l,q=e=>{const t=e.S,n=e.i,l=e.v;64&e.t||(e.t|=64,G(t),z(n,"componentDidLoad"),e.M(t),l||V()),e._&&(e._(),e._=void 0),512&e.t&&fe((()=>T(e,!1))),e.t&=-517},D=e=>{{const t=Y(e),n=t.S.isConnected;return n&&2==(18&t.t)&&T(t,!1),n}},V=()=>{G(c.documentElement),fe((()=>L(o,"appload",{detail:{namespace:"geotrek-rando-widget"}})))},z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){ne(l)}},B=(e,t)=>e&&e.then?e.then(t):t(),G=e=>e.classList.add("hydrated"),I=(e,t,n)=>{if(t.N){e.watchers&&(t.P=e.watchers);const l=Object.entries(t.N),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>Y(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=Y(e),o=s.S,i=s.A.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||w(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.N[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.A.set(t,n),r)){if(l.P&&128&c){const e=l.P[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(l){ne(l,o)}}))}2==(18&c)&&T(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},J=e=>{z(e,"connectedCallback")},K=(e,t)=>{class n extends Array{item(e){return this[e]}}if(8&t.t){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map((e=>1===e.nodeType))}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0==(1&r.t)&&2&Y(this).t){const t=new n;for(let n=0;n<e.length;n++){const l=e[n]["s-nr"];l&&t.push(l)}return t}return n.from(e)}})}},Q=(e,t={})=>{const n=[],l=t.exclude||[],s=o.customElements,i=c.head,u=i.querySelector("meta[charset]"),h=c.createElement("style"),y=[];let $,m=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",c.baseURI).href,e.map((e=>{e[1].map((t=>{const o={t:t[0],h:t[1],N:t[2],L:t[3]};o.N=t[2],o.L=t[3],o.P={},!a&&1&o.t&&(o.t|=8);const i=o.h,c=class extends HTMLElement{constructor(e){super(e),ee(e=this,o),1&o.t&&(a?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e)),K(e,o)}connectedCallback(){$&&(clearTimeout($),$=null),m?y.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=Y(e),n=t.C,l=()=>{};if(1&t.t)d(e,t,n.L),J(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){R(t,t.v=n);break}}n.N&&Object.entries(n.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=se(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.P=s.watchers,I(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(c){ne(c)}t.t&=-9,t.t|=128,e(),J(t.i)}if(s.style){let e=s.style;const t=p(n);if(!oe.has(t)){const l=()=>{};8&n.t&&(e=await __sc_import_geotrek_rando_widget("./p-4eaf20b7.js").then((n=>n.scopeCss(e,t,!1)))),((e,t,n)=>{let l=oe.get(e);f&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,oe.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.v,i=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=Y(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),z(t,"disconnectedCallback")}})()))}componentOnReady(){return Y(this).R}};o.T=e[0],l.includes(i)||s.get(i)||(n.push(i),s.define(i,I(c,o,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),i.insertBefore(h,u?u.nextSibling:i.firstChild),m=!1,y.length?y.map((e=>e.connectedCallback())):r.jmp((()=>$=setTimeout(V,30)))},X=new WeakMap,Y=e=>X.get(e),Z=(e,t)=>X.set(t.i=e,t),ee=(e,t)=>{const n={t:0,S:e,C:t,A:new Map};return n.R=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[],d(e,n,t.L),X.set(e,n)},te=(e,t)=>t in e,ne=(e,t)=>(0,console.error)(e,t),le=new Map,se=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=le.get(n);return l?l[t]:__sc_import_geotrek_rando_widget(`./${n}.entry.js`).then((e=>(le.set(n,e),e[t])),ne)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},oe=new Map,ie=[],ce=[],re=(e,t)=>n=>{e.push(n),s||(s=!0,t&&4&r.t?fe(ue):r.raf(ue))},ae=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){ne(t)}e.length=0},ue=()=>{ae(ie),ae(ce),(s=ie.length>0)&&r.raf(ue)},fe=e=>u().then(e),de=re(ce,!0);export{i as C,j as H,e as N,u as a,Q as b,W as c,c as d,A as e,D as f,P as g,g as h,r as p,Z as r,o as w}
|