@geotrekce/geotrek-rando-widget 0.0.3 → 0.0.4
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 +2 -2
- package/dist/cjs/{grw-app_10.cjs.entry.js → grw-app_11.cjs.entry.js} +172 -58
- package/dist/cjs/{index-c6f73e30.js → index-c2c4531d.js} +46 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/grw-app/grw-app.css +69 -5
- package/dist/collection/components/grw-app/grw-app.js +24 -5
- package/dist/collection/components/grw-filter/grw-filter.css +29 -0
- package/dist/collection/components/grw-filter/grw-filter.js +132 -0
- package/dist/collection/components/grw-map/grw-map.js +37 -31
- package/dist/collection/components/grw-trek-card/grw-trek-card.css +66 -32
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +34 -10
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
- package/dist/collection/components/grw-treks-list/grw-treks-list.css +16 -3
- package/dist/collection/components/grw-treks-list/grw-treks-list.js +27 -5
- package/dist/collection/store/grw-trek-provider.js +24 -10
- package/dist/collection/store/grw-treks-provider.js +12 -3
- package/dist/collection/store/store.js +3 -0
- package/dist/collection/stories/App.js +8 -10
- package/dist/collection/stories/App.stories.js +4 -3
- package/dist/collection/stories/TrekMap.stories.js +3 -2
- package/dist/collection/stories/TreksList.js +8 -8
- package/dist/collection/stories/TreksMap.stories.js +3 -2
- package/dist/components/grw-app.js +15 -4
- package/dist/components/grw-filter.d.ts +11 -0
- package/dist/components/grw-filter.js +6 -0
- package/dist/components/grw-filter2.js +95 -0
- package/dist/components/grw-map2.js +37 -31
- package/dist/components/grw-trek-card2.js +10 -5
- package/dist/components/grw-trek-provider2.js +24 -10
- package/dist/components/grw-treks-list2.js +9 -6
- package/dist/components/grw-treks-provider2.js +12 -3
- package/dist/components/store.js +3 -0
- package/dist/esm/geotrek-rando-widget.js +2 -2
- package/dist/esm/{grw-app_10.entry.js → grw-app_11.entry.js} +172 -59
- package/dist/esm/{index-7aa9e822.js → index-fe16e7b6.js} +46 -1
- package/dist/esm/loader.js +2 -2
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/p-8c206aec.js +2 -0
- package/dist/geotrek-rando-widget/p-ed8706fb.entry.js +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +2 -0
- package/dist/types/components/grw-filter/grw-filter.d.ts +9 -0
- package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +6 -4
- package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +1 -0
- package/dist/types/components.d.ts +23 -0
- package/dist/types/store/store.d.ts +7 -1
- package/dist/types/types/types.d.ts +23 -0
- package/package.json +1 -1
- package/readme.md +4 -5
- package/dist/geotrek-rando-widget/p-332ba9ab.js +0 -2
- package/dist/geotrek-rando-widget/p-73bc92fe.entry.js +0 -1
|
@@ -32,6 +32,11 @@ export namespace Components {
|
|
|
32
32
|
"urlLayer": string;
|
|
33
33
|
"zoom": any;
|
|
34
34
|
}
|
|
35
|
+
interface GrwFilter {
|
|
36
|
+
"filterName": string;
|
|
37
|
+
"filterNameProperty": string;
|
|
38
|
+
"filterType": string;
|
|
39
|
+
}
|
|
35
40
|
interface GrwInformationDeskDetail {
|
|
36
41
|
"informationDesk": InformationDesk;
|
|
37
42
|
}
|
|
@@ -57,6 +62,7 @@ export namespace Components {
|
|
|
57
62
|
interface GrwTrekCard {
|
|
58
63
|
"colorPrimary": string;
|
|
59
64
|
"colorPrimaryTint": string;
|
|
65
|
+
"isLargeView": boolean;
|
|
60
66
|
"trek": Trek;
|
|
61
67
|
}
|
|
62
68
|
interface GrwTrekDetail {
|
|
@@ -73,6 +79,7 @@ export namespace Components {
|
|
|
73
79
|
interface GrwTreksList {
|
|
74
80
|
"colorPrimary": string;
|
|
75
81
|
"colorPrimaryTint": string;
|
|
82
|
+
"isLargeView": boolean;
|
|
76
83
|
}
|
|
77
84
|
interface GrwTreksProvider {
|
|
78
85
|
"api": string;
|
|
@@ -102,6 +109,12 @@ declare global {
|
|
|
102
109
|
prototype: HTMLGrwAppElement;
|
|
103
110
|
new (): HTMLGrwAppElement;
|
|
104
111
|
};
|
|
112
|
+
interface HTMLGrwFilterElement extends Components.GrwFilter, HTMLStencilElement {
|
|
113
|
+
}
|
|
114
|
+
var HTMLGrwFilterElement: {
|
|
115
|
+
prototype: HTMLGrwFilterElement;
|
|
116
|
+
new (): HTMLGrwFilterElement;
|
|
117
|
+
};
|
|
105
118
|
interface HTMLGrwInformationDeskDetailElement extends Components.GrwInformationDeskDetail, HTMLStencilElement {
|
|
106
119
|
}
|
|
107
120
|
var HTMLGrwInformationDeskDetailElement: {
|
|
@@ -158,6 +171,7 @@ declare global {
|
|
|
158
171
|
};
|
|
159
172
|
interface HTMLElementTagNameMap {
|
|
160
173
|
"grw-app": HTMLGrwAppElement;
|
|
174
|
+
"grw-filter": HTMLGrwFilterElement;
|
|
161
175
|
"grw-information-desk-detail": HTMLGrwInformationDeskDetailElement;
|
|
162
176
|
"grw-map": HTMLGrwMapElement;
|
|
163
177
|
"grw-poi-detail": HTMLGrwPoiDetailElement;
|
|
@@ -195,6 +209,11 @@ declare namespace LocalJSX {
|
|
|
195
209
|
"urlLayer"?: string;
|
|
196
210
|
"zoom"?: any;
|
|
197
211
|
}
|
|
212
|
+
interface GrwFilter {
|
|
213
|
+
"filterName"?: string;
|
|
214
|
+
"filterNameProperty"?: string;
|
|
215
|
+
"filterType"?: string;
|
|
216
|
+
}
|
|
198
217
|
interface GrwInformationDeskDetail {
|
|
199
218
|
"informationDesk"?: InformationDesk;
|
|
200
219
|
}
|
|
@@ -221,6 +240,7 @@ declare namespace LocalJSX {
|
|
|
221
240
|
interface GrwTrekCard {
|
|
222
241
|
"colorPrimary"?: string;
|
|
223
242
|
"colorPrimaryTint"?: string;
|
|
243
|
+
"isLargeView"?: boolean;
|
|
224
244
|
"onTrekCardPress"?: (event: GrwTrekCardCustomEvent<number>) => void;
|
|
225
245
|
"trek"?: Trek;
|
|
226
246
|
}
|
|
@@ -238,6 +258,7 @@ declare namespace LocalJSX {
|
|
|
238
258
|
interface GrwTreksList {
|
|
239
259
|
"colorPrimary"?: string;
|
|
240
260
|
"colorPrimaryTint"?: string;
|
|
261
|
+
"isLargeView"?: boolean;
|
|
241
262
|
}
|
|
242
263
|
interface GrwTreksProvider {
|
|
243
264
|
"api"?: string;
|
|
@@ -253,6 +274,7 @@ declare namespace LocalJSX {
|
|
|
253
274
|
}
|
|
254
275
|
interface IntrinsicElements {
|
|
255
276
|
"grw-app": GrwApp;
|
|
277
|
+
"grw-filter": GrwFilter;
|
|
256
278
|
"grw-information-desk-detail": GrwInformationDeskDetail;
|
|
257
279
|
"grw-map": GrwMap;
|
|
258
280
|
"grw-poi-detail": GrwPoiDetail;
|
|
@@ -269,6 +291,7 @@ declare module "@stencil/core" {
|
|
|
269
291
|
export namespace JSX {
|
|
270
292
|
interface IntrinsicElements {
|
|
271
293
|
"grw-app": LocalJSX.GrwApp & JSXBase.HTMLAttributes<HTMLGrwAppElement>;
|
|
294
|
+
"grw-filter": LocalJSX.GrwFilter & JSXBase.HTMLAttributes<HTMLGrwFilterElement>;
|
|
272
295
|
"grw-information-desk-detail": LocalJSX.GrwInformationDeskDetail & JSXBase.HTMLAttributes<HTMLGrwInformationDeskDetailElement>;
|
|
273
296
|
"grw-map": LocalJSX.GrwMap & JSXBase.HTMLAttributes<HTMLGrwMapElement>;
|
|
274
297
|
"grw-poi-detail": LocalJSX.GrwPoiDetail & JSXBase.HTMLAttributes<HTMLGrwPoiDetailElement>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { Difficulties, InformationDesks, Pois, Practices, Routes, SensitiveAreas, Trek, Treks } from 'types/types';
|
|
1
|
+
import { Difficulties, Durations, InformationDesks, Pois, Practices, Routes, SensitiveAreas, Themes, Trek, Treks } from 'types/types';
|
|
2
2
|
declare const state: {
|
|
3
3
|
api: string;
|
|
4
4
|
treks: Treks;
|
|
5
|
+
currentTreks: Treks;
|
|
5
6
|
difficulties: Difficulties;
|
|
6
7
|
routes: Routes;
|
|
7
8
|
practices: Practices;
|
|
9
|
+
themes: Themes;
|
|
10
|
+
durations: Durations;
|
|
8
11
|
currentSensitiveAreas: SensitiveAreas;
|
|
9
12
|
currentPois: Pois;
|
|
10
13
|
currentTrek: Trek;
|
|
@@ -12,9 +15,12 @@ declare const state: {
|
|
|
12
15
|
}, onChange: import("@stencil/store/dist/types").OnChangeHandler<{
|
|
13
16
|
api: string;
|
|
14
17
|
treks: Treks;
|
|
18
|
+
currentTreks: Treks;
|
|
15
19
|
difficulties: Difficulties;
|
|
16
20
|
routes: Routes;
|
|
17
21
|
practices: Practices;
|
|
22
|
+
themes: Themes;
|
|
23
|
+
durations: Durations;
|
|
18
24
|
currentSensitiveAreas: SensitiveAreas;
|
|
19
25
|
currentPois: Pois;
|
|
20
26
|
currentTrek: Trek;
|
|
@@ -9,9 +9,11 @@ export declare type Trek = {
|
|
|
9
9
|
difficulty: number;
|
|
10
10
|
route: number;
|
|
11
11
|
practice: number;
|
|
12
|
+
themes: number[];
|
|
12
13
|
duration: number;
|
|
13
14
|
length_2d: number;
|
|
14
15
|
ascent: number;
|
|
16
|
+
departure: string;
|
|
15
17
|
geometry?: LineString;
|
|
16
18
|
departure_geom?: Position;
|
|
17
19
|
gpx?: string;
|
|
@@ -47,6 +49,21 @@ export declare type Practice = {
|
|
|
47
49
|
id: number;
|
|
48
50
|
name: string;
|
|
49
51
|
pictogram: string;
|
|
52
|
+
selected: boolean;
|
|
53
|
+
};
|
|
54
|
+
export declare type Themes = Theme[];
|
|
55
|
+
export declare type Theme = {
|
|
56
|
+
id: number;
|
|
57
|
+
label: string;
|
|
58
|
+
pictogram: string;
|
|
59
|
+
};
|
|
60
|
+
export declare type Durations = Duration[];
|
|
61
|
+
export declare type Duration = {
|
|
62
|
+
id: number;
|
|
63
|
+
name: string;
|
|
64
|
+
minValue: number;
|
|
65
|
+
maxValue: number;
|
|
66
|
+
selected: boolean;
|
|
50
67
|
};
|
|
51
68
|
export declare type SensitiveAreas = SensitiveArea[];
|
|
52
69
|
export declare type SensitiveArea = {
|
|
@@ -89,3 +106,9 @@ export declare type InformationDeskType = {
|
|
|
89
106
|
label: string;
|
|
90
107
|
pictogram: string;
|
|
91
108
|
};
|
|
109
|
+
export declare type Filters = Filter[];
|
|
110
|
+
export declare type Filter = {
|
|
111
|
+
property: string;
|
|
112
|
+
trekProperty: string;
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Geotrek Rando Widget
|
|
2
2
|
|
|
3
|
-
Web components of
|
|
3
|
+
Web components of [Geotrek Rando](https://geotrek.fr/).\
|
|
4
4
|
You can use a complete app or each component independantly.
|
|
5
5
|
|
|
6
6
|
## Usage
|
|
7
7
|
|
|
8
|
-
To use the latest version,
|
|
8
|
+
To use the latest version, copy-paste this inside `<head></head>`
|
|
9
9
|
|
|
10
10
|
```
|
|
11
11
|
<link rel="stylesheet" href="https://unpkg.com/@geotrekce/geotrek-rando-widget@latest/dist/geotrek-rando-widget/geotrek-rando-widget.css" />
|
|
@@ -15,8 +15,7 @@ To use the latest version, Copy-Paste this inside <head></head>
|
|
|
15
15
|
|
|
16
16
|
You can replace _latest_ with a specific version.
|
|
17
17
|
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
Storybook helps you to [explore Geotrek Rando Widget and create you own component](https://geotrekce.github.io/Geotrek-rando-widget/).
|
|
18
|
+
## Explore
|
|
21
19
|
|
|
20
|
+
You can explore Geotrek Rando Widget and create your own component [here](https://geotrekce.github.io/Geotrek-rando-widget/).\
|
|
22
21
|
Once you made your component, you can get the code to copy-paste by clicking on _Docs_ then _Show code_.
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,t,n=null,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},c={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)},r=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),a=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),r=u(t,s),i=d(n);c.ael(o,l,r,i),(t.o=t.o||[]).push((()=>c.rel(o,l,r,i)))}))},u=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){X(e)}},f=(e,t)=>8&t?s:e,d=e=>0!=(2&e),h=new WeakMap,y=e=>"sc-"+e.h,$={},m=e=>"object"==(e=typeof e)||"function"===e,p=(e,t,...n)=>{let l=null,s=!1,o=!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&&((s="function"!=typeof e&&!m(l))&&(l+=""),s&&o?c[c.length-1].$+=l:c.push(s?b(null,l):l),o=s)};if(r(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=b(e,null);return i.m=t,c.length>0&&(i.p=c),i},b=(e,t)=>({t:0,g:e,$:t,S:null,p:null,m:null}),w={},g=(e,t,n,l,o,r)=>{if(n!==l){let i=Q(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=j(n),o=j(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(i||"o"!==t[0]||"n"!==t[1]){const s=m(l);if((i||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):Q(s,a)?a.slice(2):a[2]+t.slice(3),n&&c.rel(e,t,n,!1),l&&c.ael(e,t,l,!1)}},S=/\s/,j=e=>e?e.split(S):[],k=(e,t,n,l)=>{const s=11===t.S.nodeType&&t.S.host?t.S.host:t.S,o=e&&e.m||$,c=t.m||$;for(l in o)l in c||g(s,l,o[l],void 0,n,t.t);for(l in c)g(s,l,o[l],c[l],n,t.t)},v=(t,n,l)=>{const s=n.p[l];let c,r,i=0;if(null!==s.$)c=s.S=o.createTextNode(s.$);else if(c=s.S=o.createElement(s.g),k(null,s,!1),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),s.p)for(i=0;i<s.p.length;++i)r=v(t,s,i),r&&c.appendChild(r);return c},M=(e,n,l,s,o,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=v(null,l,o),r&&(s[o].S=r,i.insertBefore(r,n)))},C=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.S.remove()},O=(e,t)=>e.g===t.g,L=(e,t)=>{const n=t.S=e.S,l=e.p,s=t.p,o=t.$;null===o?(k(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,c=0,r=t.length-1,i=t[0],a=t[r],u=l.length-1,f=l[0],d=l[u];for(;o<=r&&c<=u;)null==i?i=t[++o]:null==a?a=t[--r]:null==f?f=l[++c]:null==d?d=l[--u]:O(i,f)?(L(i,f),i=t[++o],f=l[++c]):O(a,d)?(L(a,d),a=t[--r],d=l[--u]):O(i,d)?(L(i,d),e.insertBefore(i.S,a.S.nextSibling),i=t[++o],d=l[--u]):O(a,f)?(L(a,f),e.insertBefore(a.S,i.S),a=t[--r],f=l[++c]):(s=v(t&&t[c],n,c),f=l[++c],s&&i.S.parentNode.insertBefore(s,i.S));o>r?M(e,null==l[u+1]?null:l[u+1].S,n,l,c,u):c>u&&C(t,o,r)})(n,l,t,s):null!==s?(null!==e.$&&(n.textContent=""),M(n,null,t,s,0,s.length-1)):null!==l&&C(l,0,l.length-1)):e.$!==o&&(n.data=o)},P=e=>I(e).j,x=(e,t,n)=>{const l=P(e);return{emit:e=>E(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},E=(e,t,n)=>{const l=c.ce(t,n);return e.dispatchEvent(l),l},N=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},T=(e,t)=>{if(e.t|=16,!(4&e.t))return N(e,e.v),re((()=>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])=>D(n,e,t))),e.u=null),l=D(n,"componentWillLoad")),V(l,(()=>A(e,n,t)))},A=async(e,t,n)=>{const l=e.j,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.j,l=t.t,s=((e,t)=>{let n=y(t);const l=ee.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=h.get(e=e.head||e);s||h.set(e,s=new Set),s.has(n)||(t=o.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})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);F(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>R(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},F=(l,s)=>{try{n=s,s=s.render(),l.t&=-17,l.t|=2,((n,l)=>{const s=n.j,o=n.C||b(null,null),c=(e=>e&&e.g===w)(l)?l:p(null,null,l);t=s.tagName,c.g=null,c.t|=4,n.C=c,c.S=o.S=s.shadowRoot||s,e=s["s-sc"],L(o,c)})(l,s)}catch(e){X(e,l.j)}return n=null,null},H=()=>n,R=e=>{const t=e.j,n=e.i,l=e.v;64&e.t||(e.t|=64,_(t),D(n,"componentDidLoad"),e.O(t),l||q()),e.k&&(e.k(),e.k=void 0),512&e.t&&ce((()=>T(e,!1))),e.t&=-517},U=e=>{{const t=I(e),n=t.j.isConnected;return n&&2==(18&t.t)&&T(t,!1),n}},q=()=>{_(o.documentElement),ce((()=>E(s,"appload",{detail:{namespace:"geotrek-rando-widget"}})))},D=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){X(e)}},V=(e,t)=>e&&e.then?e.then(t):t(),_=e=>e.classList.add("hydrated"),z=(e,t,n)=>{if(t.L){e.watchers&&(t.P=e.watchers);const l=Object.entries(t.L),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>I(this).N.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=I(e),o=s.j,c=s.N.get(t),r=s.t,i=s.i;if(n=((e,t)=>null==e||m(e)?e:2&t?parseFloat(e):1&t?e+"":e)(n,l.L[t][0]),(!(8&r)||void 0===c)&&n!==c&&(!Number.isNaN(c)||!Number.isNaN(n))&&(s.N.set(t,n),i)){if(l.P&&128&r){const e=l.P[t];e&&e.map((e=>{try{i[e](n,c,t)}catch(e){X(e,o)}}))}2==(18&r)&&T(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){c.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},B=(e,t={})=>{const n=[],l=t.exclude||[],r=s.customElements,u=o.head,f=u.querySelector("meta[charset]"),d=o.createElement("style"),h=[];let $,m=!0;Object.assign(c,t),c.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],L:t[2],T:t[3]};s.L=t[2],s.T=t[3],s.P={};const o=s.h,u=class extends HTMLElement{constructor(e){super(e),K(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),m?h.push(this):c.jmp((()=>(e=>{if(0==(1&c.t)){const t=I(e),n=t.M,l=()=>{};if(1&t.t)a(e,t,n.T);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(t,t.v=n);break}}n.L&&Object.entries(n.L).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=Z(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.P=s.watchers,z(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){X(e)}t.t&=-9,t.t|=128,e()}if(s.style){let e=s.style;const t=y(n);if(!ee.has(t)){const l=()=>{};((e,t,n)=>{let l=ee.get(e);i&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,ee.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.v,c=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){c.jmp((()=>(()=>{if(0==(1&c.t)){const e=I(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),D(t,"disconnectedCallback")}})()))}componentOnReady(){return I(this).W}};s.A=e[0],l.includes(o)||r.get(o)||(n.push(o),r.define(o,z(u,s,1)))}))})),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),u.insertBefore(d,f?f.nextSibling:u.firstChild),m=!1,h.length?h.map((e=>e.connectedCallback())):c.jmp((()=>$=setTimeout(q,30)))},G=new WeakMap,I=e=>G.get(e),J=(e,t)=>G.set(t.i=e,t),K=(e,t)=>{const n={t:0,j:e,M:t,N:new Map};return n.W=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],a(e,n,t.T),G.set(e,n)},Q=(e,t)=>t in e,X=(e,t)=>(0,console.error)(e,t),Y=new Map,Z=e=>{const t=e.h.replace(/-/g,"_"),n=e.A,l=Y.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Y.set(n,e),e[t])),X)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ee=new Map,te=[],ne=[],le=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&c.t?ce(oe):c.raf(oe))},se=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){X(e)}e.length=0},oe=()=>{se(te),se(ne),(l=te.length>0)&&c.raf(oe)},ce=e=>r().then(e),re=le(ne,!0);export{w as H,P as a,B as b,x as c,U as f,H as g,p as h,r as p,J as r}
|