@maptiler/geocoding-control 0.0.79 → 0.0.82
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/ClearIcon.svelte.d.ts +23 -0
- package/GeocodingControl.svelte +685 -0
- package/GeocodingControl.svelte.d.ts +66 -0
- package/LoadingIcon.svelte.d.ts +23 -0
- package/{src/lib/MarkerIcon.svelte → MarkerIcon.svelte} +1 -2
- package/MarkerIcon.svelte.d.ts +16 -0
- package/README.md +7 -7
- package/ReverseGeocodingIcon.svelte.d.ts +23 -0
- package/SearchIcon.svelte.d.ts +23 -0
- package/leaflet-controller.js +1 -0
- package/leaflet-controller.js.map +1 -0
- package/leaflet-controller.umd.js +1 -0
- package/leaflet-controller.umd.js.map +1 -0
- package/leaflet.js +3943 -3970
- package/leaflet.js.map +1 -0
- package/leaflet.umd.js +6 -5
- package/leaflet.umd.js.map +1 -0
- package/maplibregl-controller.js +1 -0
- package/maplibregl-controller.js.map +1 -0
- package/maplibregl-controller.umd.js +1 -0
- package/maplibregl-controller.umd.js.map +1 -0
- package/maplibregl.js +4028 -4055
- package/maplibregl.js.map +1 -0
- package/maplibregl.umd.js +6 -5
- package/maplibregl.umd.js.map +1 -0
- package/package.json +20 -20
- package/react.js +470 -552
- package/react.js.map +1 -0
- package/react.umd.js +2 -1
- package/react.umd.js.map +1 -0
- package/style.css +1 -1
- package/src/AppLeaflet.svelte +0 -55
- package/src/AppMaplibregl.svelte +0 -45
- package/src/lib/GeocodingControl.svelte +0 -851
- package/src/lib/LeafletGeocodingControl.ts +0 -154
- package/src/lib/MaplibreglGeocodingControl.ts +0 -160
- package/src/lib/ReactGeocodingControl.ts +0 -158
- package/src/lib/leafletMapController.ts +0 -305
- package/src/lib/maplibreglMapController.ts +0 -366
- package/src/lib/mask.ts +0 -70
- package/src/lib/types.ts +0 -235
- package/src/main-copy.ts +0 -59
- package/src/main.ts +0 -65
- package/src/vite-env.d.ts +0 -2
- /package/{src/lib/ClearIcon.svelte → ClearIcon.svelte} +0 -0
- /package/{src/lib/LoadingIcon.svelte → LoadingIcon.svelte} +0 -0
- /package/{src/lib/ReverseGeocodingIcon.svelte → ReverseGeocodingIcon.svelte} +0 -0
- /package/{src/lib/SearchIcon.svelte → SearchIcon.svelte} +0 -0
- /package/{maplibre.d.ts → maplibregl.d.ts} +0 -0
package/react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { forwardRef as
|
|
2
|
-
function
|
|
1
|
+
import { forwardRef as Et, useRef as Ke, useEffect as Pe, useImperativeHandle as zt, createElement as Bt } from "react";
|
|
2
|
+
function z() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Ct(t, e) {
|
|
5
5
|
for (const n in e)
|
|
6
6
|
t[n] = e[n];
|
|
7
7
|
return t;
|
|
@@ -9,29 +9,29 @@ function Lt(t, e) {
|
|
|
9
9
|
function it(t) {
|
|
10
10
|
return t();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Qe() {
|
|
13
13
|
return /* @__PURE__ */ Object.create(null);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function X(t) {
|
|
16
16
|
t.forEach(it);
|
|
17
17
|
}
|
|
18
18
|
function ct(t) {
|
|
19
19
|
return typeof t == "function";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ye(t, e) {
|
|
22
22
|
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Lt(t) {
|
|
25
25
|
return Object.keys(t).length === 0;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function St(t, e, n, r) {
|
|
28
28
|
if (t) {
|
|
29
|
-
const c =
|
|
29
|
+
const c = ut(t, e, n, r);
|
|
30
30
|
return t[0](c);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return t[1] && r ?
|
|
33
|
+
function ut(t, e, n, r) {
|
|
34
|
+
return t[1] && r ? Ct(n.ctx.slice(), t[1](r(e))) : n.ctx;
|
|
35
35
|
}
|
|
36
36
|
function At(t, e, n, r) {
|
|
37
37
|
if (t[2] && r) {
|
|
@@ -40,8 +40,8 @@ function At(t, e, n, r) {
|
|
|
40
40
|
return c;
|
|
41
41
|
if (typeof c == "object") {
|
|
42
42
|
const u = [], i = Math.max(e.dirty.length, c.length);
|
|
43
|
-
for (let
|
|
44
|
-
u[
|
|
43
|
+
for (let d = 0; d < i; d += 1)
|
|
44
|
+
u[d] = e.dirty[d] | c[d];
|
|
45
45
|
return u;
|
|
46
46
|
}
|
|
47
47
|
return e.dirty | c;
|
|
@@ -50,7 +50,7 @@ function At(t, e, n, r) {
|
|
|
50
50
|
}
|
|
51
51
|
function Pt(t, e, n, r, c, u) {
|
|
52
52
|
if (c) {
|
|
53
|
-
const i =
|
|
53
|
+
const i = ut(e, n, r, u);
|
|
54
54
|
t.p(i, c);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -63,35 +63,35 @@ function Nt(t) {
|
|
|
63
63
|
}
|
|
64
64
|
return -1;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function qe(t) {
|
|
67
67
|
return t ?? "";
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function b(t, e) {
|
|
70
70
|
t.appendChild(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function O(t, e, n) {
|
|
73
73
|
t.insertBefore(e, n || null);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function j(t) {
|
|
76
76
|
t.parentNode && t.parentNode.removeChild(t);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function It(t, e) {
|
|
79
79
|
for (let n = 0; n < t.length; n += 1)
|
|
80
80
|
t[n] && t[n].d(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function E(t) {
|
|
83
83
|
return document.createElement(t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function se(t) {
|
|
86
86
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ne(t) {
|
|
89
89
|
return document.createTextNode(t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function q() {
|
|
92
|
+
return ne(" ");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function I(t, e, n, r) {
|
|
95
95
|
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
|
|
96
96
|
}
|
|
97
97
|
function jt(t) {
|
|
@@ -99,39 +99,39 @@ function jt(t) {
|
|
|
99
99
|
return e.preventDefault(), t.call(this, e);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function f(t, e, n) {
|
|
103
103
|
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
104
104
|
}
|
|
105
105
|
function Gt(t) {
|
|
106
106
|
return Array.from(t.childNodes);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function he(t, e) {
|
|
109
109
|
e = "" + e, t.wholeText !== e && (t.data = e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ue(t, e) {
|
|
112
112
|
t.value = e ?? "";
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function J(t, e, n) {
|
|
115
115
|
t.classList[n ? "add" : "remove"](e);
|
|
116
116
|
}
|
|
117
117
|
function Ot(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
118
118
|
const c = document.createEvent("CustomEvent");
|
|
119
119
|
return c.initCustomEvent(t, n, r, e), c;
|
|
120
120
|
}
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
let me;
|
|
122
|
+
function de(t) {
|
|
123
|
+
me = t;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
if (!
|
|
125
|
+
function ot() {
|
|
126
|
+
if (!me)
|
|
127
127
|
throw new Error("Function called outside component initialization");
|
|
128
|
-
return
|
|
128
|
+
return me;
|
|
129
129
|
}
|
|
130
130
|
function Dt(t) {
|
|
131
|
-
|
|
131
|
+
ot().$$.on_destroy.push(t);
|
|
132
132
|
}
|
|
133
133
|
function Ft() {
|
|
134
|
-
const t =
|
|
134
|
+
const t = ot();
|
|
135
135
|
return (e, n, { cancelable: r = !1 } = {}) => {
|
|
136
136
|
const c = t.$$.callbacks[e];
|
|
137
137
|
if (c) {
|
|
@@ -143,143 +143,143 @@ function Ft() {
|
|
|
143
143
|
return !0;
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
const
|
|
149
|
-
let
|
|
146
|
+
const ue = [], Ie = [];
|
|
147
|
+
let oe = [];
|
|
148
|
+
const We = [], Vt = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let je = !1;
|
|
150
150
|
function Ht() {
|
|
151
|
-
|
|
151
|
+
je || (je = !0, Vt.then(st));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
153
|
+
function Ge(t) {
|
|
154
|
+
oe.push(t);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
156
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
157
|
+
let ce = 0;
|
|
158
|
+
function st() {
|
|
159
|
+
if (ce !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const t =
|
|
161
|
+
const t = me;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const e =
|
|
166
|
-
|
|
164
|
+
for (; ce < ue.length; ) {
|
|
165
|
+
const e = ue[ce];
|
|
166
|
+
ce++, de(e), Kt(e.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (e) {
|
|
169
|
-
throw
|
|
169
|
+
throw ue.length = 0, ce = 0, e;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
172
|
-
|
|
173
|
-
for (let e = 0; e <
|
|
174
|
-
const n =
|
|
175
|
-
|
|
171
|
+
for (de(null), ue.length = 0, ce = 0; Ie.length; )
|
|
172
|
+
Ie.pop()();
|
|
173
|
+
for (let e = 0; e < oe.length; e += 1) {
|
|
174
|
+
const n = oe[e];
|
|
175
|
+
Ne.has(n) || (Ne.add(n), n());
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
} while (
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
oe.length = 0;
|
|
178
|
+
} while (ue.length);
|
|
179
|
+
for (; We.length; )
|
|
180
|
+
We.pop()();
|
|
181
|
+
je = !1, Ne.clear(), de(t);
|
|
182
182
|
}
|
|
183
183
|
function Kt(t) {
|
|
184
184
|
if (t.fragment !== null) {
|
|
185
|
-
t.update(),
|
|
185
|
+
t.update(), X(t.before_update);
|
|
186
186
|
const e = t.dirty;
|
|
187
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
187
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ge);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
function Qt(t) {
|
|
191
191
|
const e = [], n = [];
|
|
192
|
-
|
|
192
|
+
oe.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), oe = e;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
let
|
|
196
|
-
function
|
|
197
|
-
|
|
194
|
+
const xe = /* @__PURE__ */ new Set();
|
|
195
|
+
let te;
|
|
196
|
+
function Ze() {
|
|
197
|
+
te = {
|
|
198
198
|
r: 0,
|
|
199
199
|
c: [],
|
|
200
|
-
p:
|
|
200
|
+
p: te
|
|
201
201
|
// parent group
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function Je() {
|
|
205
|
+
te.r || X(te.c), te = te.p;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
t && t.i && (
|
|
207
|
+
function G(t, e) {
|
|
208
|
+
t && t.i && (xe.delete(t), t.i(e));
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Q(t, e, n, r) {
|
|
211
211
|
if (t && t.o) {
|
|
212
|
-
if (
|
|
212
|
+
if (xe.has(t))
|
|
213
213
|
return;
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
xe.add(t), te.c.push(() => {
|
|
215
|
+
xe.delete(t), r && (n && t.d(1), r());
|
|
216
216
|
}), t.o(e);
|
|
217
217
|
} else
|
|
218
218
|
r && r();
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Ee(t) {
|
|
221
221
|
t && t.c();
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function _e(t, e, n, r) {
|
|
224
224
|
const { fragment: c, after_update: u } = t.$$;
|
|
225
|
-
c && c.m(e, n), r ||
|
|
225
|
+
c && c.m(e, n), r || Ge(() => {
|
|
226
226
|
const i = t.$$.on_mount.map(it).filter(ct);
|
|
227
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...i) :
|
|
228
|
-
}), u.forEach(
|
|
227
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...i) : X(i), t.$$.on_mount = [];
|
|
228
|
+
}), u.forEach(Ge);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function ge(t, e) {
|
|
231
231
|
const n = t.$$;
|
|
232
|
-
n.fragment !== null && (Qt(n.after_update),
|
|
232
|
+
n.fragment !== null && (Qt(n.after_update), X(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
233
233
|
}
|
|
234
234
|
function qt(t, e) {
|
|
235
|
-
t.$$.dirty[0] === -1 && (
|
|
235
|
+
t.$$.dirty[0] === -1 && (ue.push(t), Ht(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const
|
|
239
|
-
|
|
237
|
+
function be(t, e, n, r, c, u, i, d = [-1]) {
|
|
238
|
+
const o = me;
|
|
239
|
+
de(t);
|
|
240
240
|
const a = t.$$ = {
|
|
241
241
|
fragment: null,
|
|
242
242
|
ctx: [],
|
|
243
243
|
// state
|
|
244
244
|
props: u,
|
|
245
|
-
update:
|
|
245
|
+
update: z,
|
|
246
246
|
not_equal: c,
|
|
247
|
-
bound:
|
|
247
|
+
bound: Qe(),
|
|
248
248
|
// lifecycle
|
|
249
249
|
on_mount: [],
|
|
250
250
|
on_destroy: [],
|
|
251
251
|
on_disconnect: [],
|
|
252
252
|
before_update: [],
|
|
253
253
|
after_update: [],
|
|
254
|
-
context: new Map(e.context || (
|
|
254
|
+
context: new Map(e.context || (o ? o.$$.context : [])),
|
|
255
255
|
// everything else
|
|
256
|
-
callbacks:
|
|
257
|
-
dirty:
|
|
256
|
+
callbacks: Qe(),
|
|
257
|
+
dirty: d,
|
|
258
258
|
skip_bound: !1,
|
|
259
|
-
root: e.target ||
|
|
259
|
+
root: e.target || o.$$.root
|
|
260
260
|
};
|
|
261
261
|
i && i(a.root);
|
|
262
|
-
let
|
|
263
|
-
if (a.ctx = n ? n(t, e.props || {}, (
|
|
264
|
-
const
|
|
265
|
-
return a.ctx && c(a.ctx[
|
|
266
|
-
}) : [], a.update(),
|
|
262
|
+
let R = !1;
|
|
263
|
+
if (a.ctx = n ? n(t, e.props || {}, (x, B, ...C) => {
|
|
264
|
+
const P = C.length ? C[0] : B;
|
|
265
|
+
return a.ctx && c(a.ctx[x], a.ctx[x] = P) && (!a.skip_bound && a.bound[x] && a.bound[x](P), R && qt(t, x)), B;
|
|
266
|
+
}) : [], a.update(), R = !0, X(a.before_update), a.fragment = r ? r(a.ctx) : !1, e.target) {
|
|
267
267
|
if (e.hydrate) {
|
|
268
|
-
const
|
|
269
|
-
a.fragment && a.fragment.l(
|
|
268
|
+
const x = Gt(e.target);
|
|
269
|
+
a.fragment && a.fragment.l(x), x.forEach(j);
|
|
270
270
|
} else
|
|
271
271
|
a.fragment && a.fragment.c();
|
|
272
|
-
e.intro &&
|
|
272
|
+
e.intro && G(t.$$.fragment), _e(t, e.target, e.anchor, e.customElement), st();
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
de(o);
|
|
275
275
|
}
|
|
276
|
-
class
|
|
276
|
+
class we {
|
|
277
277
|
$destroy() {
|
|
278
|
-
|
|
278
|
+
ge(this, 1), this.$destroy = z;
|
|
279
279
|
}
|
|
280
280
|
$on(e, n) {
|
|
281
281
|
if (!ct(n))
|
|
282
|
-
return
|
|
282
|
+
return z;
|
|
283
283
|
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
284
284
|
return r.push(n), () => {
|
|
285
285
|
const c = r.indexOf(n);
|
|
@@ -287,150 +287,95 @@ class ge {
|
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
$set(e) {
|
|
290
|
-
this.$$set && !
|
|
290
|
+
this.$$set && !Lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
function Ut(t) {
|
|
294
294
|
let e, n;
|
|
295
295
|
return {
|
|
296
296
|
c() {
|
|
297
|
-
e =
|
|
297
|
+
e = se("svg"), n = se("path"), f(n, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), f(e, "viewBox", "0 0 60.006 21.412"), f(e, "width", "14"), f(e, "height", "20"), f(e, "class", "svelte-en2qvf");
|
|
298
298
|
},
|
|
299
299
|
m(r, c) {
|
|
300
|
-
|
|
300
|
+
O(r, e, c), b(e, n);
|
|
301
301
|
},
|
|
302
|
-
p:
|
|
303
|
-
i:
|
|
304
|
-
o:
|
|
302
|
+
p: z,
|
|
303
|
+
i: z,
|
|
304
|
+
o: z,
|
|
305
305
|
d(r) {
|
|
306
|
-
r &&
|
|
306
|
+
r && j(e);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
class Wt extends
|
|
310
|
+
class Wt extends we {
|
|
311
311
|
constructor(e) {
|
|
312
|
-
super(),
|
|
312
|
+
super(), be(this, e, null, Ut, ye, {});
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
function Zt(t) {
|
|
316
316
|
let e, n;
|
|
317
317
|
return {
|
|
318
318
|
c() {
|
|
319
|
-
e =
|
|
319
|
+
e = se("svg"), n = se("path"), f(n, "d", "M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "width", "16"), f(e, "height", "16"), f(e, "class", "svelte-en2qvf");
|
|
320
320
|
},
|
|
321
321
|
m(r, c) {
|
|
322
|
-
|
|
322
|
+
O(r, e, c), b(e, n);
|
|
323
323
|
},
|
|
324
|
-
p:
|
|
325
|
-
i:
|
|
326
|
-
o:
|
|
324
|
+
p: z,
|
|
325
|
+
i: z,
|
|
326
|
+
o: z,
|
|
327
327
|
d(r) {
|
|
328
|
-
r &&
|
|
328
|
+
r && j(e);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
class Jt extends
|
|
332
|
+
class Jt extends we {
|
|
333
333
|
constructor(e) {
|
|
334
|
-
super(),
|
|
334
|
+
super(), be(this, e, null, Zt, ye, {});
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
function Xt(t) {
|
|
338
338
|
let e;
|
|
339
339
|
return {
|
|
340
340
|
c() {
|
|
341
|
-
e =
|
|
341
|
+
e = E("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', f(e, "class", "svelte-7cmwmc");
|
|
342
342
|
},
|
|
343
343
|
m(n, r) {
|
|
344
|
-
|
|
344
|
+
O(n, e, r);
|
|
345
345
|
},
|
|
346
|
-
p:
|
|
347
|
-
i:
|
|
348
|
-
o:
|
|
346
|
+
p: z,
|
|
347
|
+
i: z,
|
|
348
|
+
o: z,
|
|
349
349
|
d(n) {
|
|
350
|
-
n &&
|
|
350
|
+
n && j(e);
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
class Yt extends
|
|
354
|
+
class Yt extends we {
|
|
355
355
|
constructor(e) {
|
|
356
|
-
super(),
|
|
356
|
+
super(), be(this, e, null, Xt, ye, {});
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function $t(t) {
|
|
360
|
-
let e, n, r;
|
|
361
|
-
return {
|
|
362
|
-
c() {
|
|
363
|
-
e = $("svg"), n = $("path"), o(n, "stroke-width", "4"), o(n, "fill-rule", "evenodd"), o(n, "clip-rule", "evenodd"), o(n, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), o(n, "class", "svelte-1k1cmht"), o(e, "width", r = /*displayIn*/
|
|
364
|
-
t[0] !== "list" ? void 0 : "20"), o(e, "viewBox", "0 0 70 85"), o(e, "fill", "none"), o(e, "class", "svelte-1k1cmht"), Q(
|
|
365
|
-
e,
|
|
366
|
-
"in-map",
|
|
367
|
-
/*displayIn*/
|
|
368
|
-
t[0] !== "list"
|
|
369
|
-
), Q(
|
|
370
|
-
e,
|
|
371
|
-
"list-icon",
|
|
372
|
-
/*displayIn*/
|
|
373
|
-
t[0] === "list"
|
|
374
|
-
);
|
|
375
|
-
},
|
|
376
|
-
m(c, u) {
|
|
377
|
-
K(c, e, u), _(e, n);
|
|
378
|
-
},
|
|
379
|
-
p(c, [u]) {
|
|
380
|
-
u & /*displayIn*/
|
|
381
|
-
1 && r !== (r = /*displayIn*/
|
|
382
|
-
c[0] !== "list" ? void 0 : "20") && o(e, "width", r), u & /*displayIn*/
|
|
383
|
-
1 && Q(
|
|
384
|
-
e,
|
|
385
|
-
"in-map",
|
|
386
|
-
/*displayIn*/
|
|
387
|
-
c[0] !== "list"
|
|
388
|
-
), u & /*displayIn*/
|
|
389
|
-
1 && Q(
|
|
390
|
-
e,
|
|
391
|
-
"list-icon",
|
|
392
|
-
/*displayIn*/
|
|
393
|
-
c[0] === "list"
|
|
394
|
-
);
|
|
395
|
-
},
|
|
396
|
-
i: w,
|
|
397
|
-
o: w,
|
|
398
|
-
d(c) {
|
|
399
|
-
c && D(e);
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
function en(t, e, n) {
|
|
404
|
-
let { displayIn: r } = e;
|
|
405
|
-
return t.$$set = (c) => {
|
|
406
|
-
"displayIn" in c && n(0, r = c.displayIn);
|
|
407
|
-
}, [r];
|
|
408
|
-
}
|
|
409
|
-
class tn extends ge {
|
|
410
|
-
constructor(e) {
|
|
411
|
-
super(), _e(this, e, en, $t, me, { displayIn: 0 });
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
function nn(t) {
|
|
415
360
|
let e, n;
|
|
416
361
|
return {
|
|
417
362
|
c() {
|
|
418
|
-
e =
|
|
363
|
+
e = se("svg"), n = se("path"), f(n, "d", "M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"), f(e, "viewBox", "0 0 18 18"), f(e, "xml:space", "preserve"), f(e, "width", "20"), f(e, "class", "svelte-en2qvf");
|
|
419
364
|
},
|
|
420
365
|
m(r, c) {
|
|
421
|
-
|
|
366
|
+
O(r, e, c), b(e, n);
|
|
422
367
|
},
|
|
423
|
-
p:
|
|
424
|
-
i:
|
|
425
|
-
o:
|
|
368
|
+
p: z,
|
|
369
|
+
i: z,
|
|
370
|
+
o: z,
|
|
426
371
|
d(r) {
|
|
427
|
-
r &&
|
|
372
|
+
r && j(e);
|
|
428
373
|
}
|
|
429
374
|
};
|
|
430
375
|
}
|
|
431
|
-
class
|
|
376
|
+
class en extends we {
|
|
432
377
|
constructor(e) {
|
|
433
|
-
super(),
|
|
378
|
+
super(), be(this, e, null, $t, ye, {});
|
|
434
379
|
}
|
|
435
380
|
}
|
|
436
381
|
function Xe(t, e, n) {
|
|
@@ -441,19 +386,19 @@ function Ye(t) {
|
|
|
441
386
|
let e, n;
|
|
442
387
|
return e = new Yt({}), {
|
|
443
388
|
c() {
|
|
444
|
-
|
|
389
|
+
Ee(e.$$.fragment);
|
|
445
390
|
},
|
|
446
391
|
m(r, c) {
|
|
447
|
-
|
|
392
|
+
_e(e, r, c), n = !0;
|
|
448
393
|
},
|
|
449
394
|
i(r) {
|
|
450
|
-
n || (
|
|
395
|
+
n || (G(e.$$.fragment, r), n = !0);
|
|
451
396
|
},
|
|
452
397
|
o(r) {
|
|
453
|
-
|
|
398
|
+
Q(e.$$.fragment, r), n = !1;
|
|
454
399
|
},
|
|
455
400
|
d(r) {
|
|
456
|
-
|
|
401
|
+
ge(e, r);
|
|
457
402
|
}
|
|
458
403
|
};
|
|
459
404
|
}
|
|
@@ -461,35 +406,35 @@ function $e(t) {
|
|
|
461
406
|
let e, n, r, c, u;
|
|
462
407
|
return n = new Wt({}), {
|
|
463
408
|
c() {
|
|
464
|
-
e =
|
|
409
|
+
e = E("button"), Ee(n.$$.fragment), f(e, "type", "button"), f(
|
|
465
410
|
e,
|
|
466
411
|
"title",
|
|
467
412
|
/*reverseButtonTitle*/
|
|
468
413
|
t[9]
|
|
469
|
-
),
|
|
414
|
+
), f(e, "class", "svelte-1xi1e9d"), J(
|
|
470
415
|
e,
|
|
471
416
|
"active",
|
|
472
417
|
/*reverseActive*/
|
|
473
418
|
t[0]
|
|
474
419
|
);
|
|
475
420
|
},
|
|
476
|
-
m(i,
|
|
477
|
-
|
|
421
|
+
m(i, d) {
|
|
422
|
+
O(i, e, d), _e(n, e, null), r = !0, c || (u = I(
|
|
478
423
|
e,
|
|
479
424
|
"click",
|
|
480
425
|
/*click_handler_2*/
|
|
481
426
|
t[56]
|
|
482
427
|
), c = !0);
|
|
483
428
|
},
|
|
484
|
-
p(i,
|
|
485
|
-
(!r ||
|
|
486
|
-
512) &&
|
|
429
|
+
p(i, d) {
|
|
430
|
+
(!r || d[0] & /*reverseButtonTitle*/
|
|
431
|
+
512) && f(
|
|
487
432
|
e,
|
|
488
433
|
"title",
|
|
489
434
|
/*reverseButtonTitle*/
|
|
490
435
|
i[9]
|
|
491
|
-
), (!r ||
|
|
492
|
-
1) &&
|
|
436
|
+
), (!r || d[0] & /*reverseActive*/
|
|
437
|
+
1) && J(
|
|
493
438
|
e,
|
|
494
439
|
"active",
|
|
495
440
|
/*reverseActive*/
|
|
@@ -497,153 +442,131 @@ function $e(t) {
|
|
|
497
442
|
);
|
|
498
443
|
},
|
|
499
444
|
i(i) {
|
|
500
|
-
r || (
|
|
445
|
+
r || (G(n.$$.fragment, i), r = !0);
|
|
501
446
|
},
|
|
502
447
|
o(i) {
|
|
503
|
-
|
|
448
|
+
Q(n.$$.fragment, i), r = !1;
|
|
504
449
|
},
|
|
505
450
|
d(i) {
|
|
506
|
-
i &&
|
|
451
|
+
i && j(e), ge(n), c = !1, u();
|
|
507
452
|
}
|
|
508
453
|
};
|
|
509
454
|
}
|
|
510
|
-
function
|
|
511
|
-
let e, n, r, c
|
|
455
|
+
function tn(t) {
|
|
456
|
+
let e, n, r, c = (
|
|
512
457
|
/*listFeatures*/
|
|
513
458
|
t[12]
|
|
514
|
-
),
|
|
515
|
-
for (let
|
|
516
|
-
i
|
|
517
|
-
const m = (f) => O(i[f], 1, 1, () => {
|
|
518
|
-
i[f] = null;
|
|
519
|
-
});
|
|
459
|
+
), u = [];
|
|
460
|
+
for (let i = 0; i < c.length; i += 1)
|
|
461
|
+
u[i] = tt(Xe(t, c, i));
|
|
520
462
|
return {
|
|
521
463
|
c() {
|
|
522
|
-
e =
|
|
523
|
-
for (let
|
|
524
|
-
i
|
|
525
|
-
|
|
464
|
+
e = E("ul");
|
|
465
|
+
for (let i = 0; i < u.length; i += 1)
|
|
466
|
+
u[i].c();
|
|
467
|
+
f(e, "class", "svelte-1xi1e9d");
|
|
526
468
|
},
|
|
527
|
-
m(
|
|
528
|
-
|
|
529
|
-
for (let
|
|
530
|
-
|
|
531
|
-
n
|
|
532
|
-
|
|
469
|
+
m(i, d) {
|
|
470
|
+
O(i, e, d);
|
|
471
|
+
for (let o = 0; o < u.length; o += 1)
|
|
472
|
+
u[o] && u[o].m(e, null);
|
|
473
|
+
n || (r = [
|
|
474
|
+
I(
|
|
533
475
|
e,
|
|
534
476
|
"mouseleave",
|
|
535
477
|
/*mouseleave_handler*/
|
|
536
478
|
t[59]
|
|
537
479
|
),
|
|
538
|
-
|
|
480
|
+
I(
|
|
539
481
|
e,
|
|
540
482
|
"blur",
|
|
541
483
|
/*blur_handler_1*/
|
|
542
484
|
t[60]
|
|
543
485
|
)
|
|
544
|
-
],
|
|
486
|
+
], n = !0);
|
|
545
487
|
},
|
|
546
|
-
p(
|
|
547
|
-
if (
|
|
488
|
+
p(i, d) {
|
|
489
|
+
if (d[0] & /*selectedItemIndex, pick, listFeatures, showPlaceType*/
|
|
548
490
|
2110464) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
let
|
|
552
|
-
for (
|
|
553
|
-
const
|
|
554
|
-
|
|
491
|
+
c = /*listFeatures*/
|
|
492
|
+
i[12];
|
|
493
|
+
let o;
|
|
494
|
+
for (o = 0; o < c.length; o += 1) {
|
|
495
|
+
const a = Xe(i, c, o);
|
|
496
|
+
u[o] ? u[o].p(a, d) : (u[o] = tt(a), u[o].c(), u[o].m(e, null));
|
|
555
497
|
}
|
|
556
|
-
for (
|
|
557
|
-
|
|
558
|
-
|
|
498
|
+
for (; o < u.length; o += 1)
|
|
499
|
+
u[o].d(1);
|
|
500
|
+
u.length = c.length;
|
|
559
501
|
}
|
|
560
502
|
},
|
|
561
|
-
i
|
|
562
|
-
|
|
563
|
-
for (let a = 0; a < u.length; a += 1)
|
|
564
|
-
L(i[a]);
|
|
565
|
-
n = !0;
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
o(f) {
|
|
569
|
-
i = i.filter(Boolean);
|
|
570
|
-
for (let a = 0; a < i.length; a += 1)
|
|
571
|
-
O(i[a]);
|
|
572
|
-
n = !1;
|
|
573
|
-
},
|
|
574
|
-
d(f) {
|
|
575
|
-
f && D(e), xt(i, f), r = !1, ee(c);
|
|
503
|
+
d(i) {
|
|
504
|
+
i && j(e), It(u, i), n = !1, X(r);
|
|
576
505
|
}
|
|
577
506
|
};
|
|
578
507
|
}
|
|
579
|
-
function
|
|
508
|
+
function nn(t) {
|
|
580
509
|
let e, n;
|
|
581
510
|
return {
|
|
582
511
|
c() {
|
|
583
|
-
e =
|
|
512
|
+
e = E("div"), n = ne(
|
|
584
513
|
/*noResultsMessage*/
|
|
585
514
|
t[7]
|
|
586
|
-
),
|
|
515
|
+
), f(e, "class", "no-results svelte-1xi1e9d");
|
|
587
516
|
},
|
|
588
517
|
m(r, c) {
|
|
589
|
-
|
|
518
|
+
O(r, e, c), b(e, n);
|
|
590
519
|
},
|
|
591
520
|
p(r, c) {
|
|
592
521
|
c[0] & /*noResultsMessage*/
|
|
593
|
-
128 &&
|
|
522
|
+
128 && he(
|
|
594
523
|
n,
|
|
595
524
|
/*noResultsMessage*/
|
|
596
525
|
r[7]
|
|
597
526
|
);
|
|
598
527
|
},
|
|
599
|
-
i: w,
|
|
600
|
-
o: w,
|
|
601
528
|
d(r) {
|
|
602
|
-
r &&
|
|
529
|
+
r && j(e);
|
|
603
530
|
}
|
|
604
531
|
};
|
|
605
532
|
}
|
|
606
|
-
function
|
|
533
|
+
function rn(t) {
|
|
607
534
|
let e = "", n;
|
|
608
535
|
return {
|
|
609
536
|
c() {
|
|
610
|
-
n =
|
|
537
|
+
n = ne(e);
|
|
611
538
|
},
|
|
612
539
|
m(r, c) {
|
|
613
|
-
|
|
540
|
+
O(r, n, c);
|
|
614
541
|
},
|
|
615
|
-
p:
|
|
616
|
-
i: w,
|
|
617
|
-
o: w,
|
|
542
|
+
p: z,
|
|
618
543
|
d(r) {
|
|
619
|
-
r &&
|
|
544
|
+
r && j(n);
|
|
620
545
|
}
|
|
621
546
|
};
|
|
622
547
|
}
|
|
623
|
-
function
|
|
548
|
+
function ln(t) {
|
|
624
549
|
let e, n;
|
|
625
550
|
return {
|
|
626
551
|
c() {
|
|
627
|
-
e =
|
|
552
|
+
e = E("div"), n = ne(
|
|
628
553
|
/*errorMessage*/
|
|
629
554
|
t[6]
|
|
630
|
-
),
|
|
555
|
+
), f(e, "class", "error svelte-1xi1e9d");
|
|
631
556
|
},
|
|
632
557
|
m(r, c) {
|
|
633
|
-
|
|
558
|
+
O(r, e, c), b(e, n);
|
|
634
559
|
},
|
|
635
560
|
p(r, c) {
|
|
636
561
|
c[0] & /*errorMessage*/
|
|
637
|
-
64 &&
|
|
562
|
+
64 && he(
|
|
638
563
|
n,
|
|
639
564
|
/*errorMessage*/
|
|
640
565
|
r[6]
|
|
641
566
|
);
|
|
642
567
|
},
|
|
643
|
-
i: w,
|
|
644
|
-
o: w,
|
|
645
568
|
d(r) {
|
|
646
|
-
r &&
|
|
569
|
+
r && j(e);
|
|
647
570
|
}
|
|
648
571
|
};
|
|
649
572
|
}
|
|
@@ -656,37 +579,35 @@ function et(t) {
|
|
|
656
579
|
), r;
|
|
657
580
|
return {
|
|
658
581
|
c() {
|
|
659
|
-
e =
|
|
582
|
+
e = E("span"), r = ne(n), f(e, "class", "line2 svelte-1xi1e9d");
|
|
660
583
|
},
|
|
661
|
-
m(i,
|
|
662
|
-
|
|
584
|
+
m(i, d) {
|
|
585
|
+
O(i, e, d), b(e, r);
|
|
663
586
|
},
|
|
664
|
-
p(i,
|
|
665
|
-
var
|
|
666
|
-
|
|
587
|
+
p(i, d) {
|
|
588
|
+
var o, a;
|
|
589
|
+
d[0] & /*listFeatures*/
|
|
667
590
|
4096 && n !== (n = /*feature*/
|
|
668
|
-
(((a = (
|
|
669
|
-
i[69].place_type[0]) + "") &&
|
|
591
|
+
(((a = (o = i[69].properties) == null ? void 0 : o.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
|
|
592
|
+
i[69].place_type[0]) + "") && he(r, n);
|
|
670
593
|
},
|
|
671
594
|
d(i) {
|
|
672
|
-
i &&
|
|
595
|
+
i && j(e);
|
|
673
596
|
}
|
|
674
597
|
};
|
|
675
598
|
}
|
|
676
599
|
function tt(t) {
|
|
677
|
-
let e, n, r, c, u
|
|
600
|
+
let e, n, r, c, u = (
|
|
678
601
|
/*feature*/
|
|
679
602
|
t[69].place_name.replace(/,.*/, "") + ""
|
|
680
|
-
),
|
|
603
|
+
), i, d, o, a = (
|
|
681
604
|
/*feature*/
|
|
682
605
|
t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
|
|
683
|
-
),
|
|
684
|
-
n = new tn({ props: { displayIn: "list" } });
|
|
685
|
-
let z = (
|
|
606
|
+
), R, x, B, C, P, D, h = (
|
|
686
607
|
/*showPlaceType*/
|
|
687
608
|
t[10] && et(t)
|
|
688
609
|
);
|
|
689
|
-
function
|
|
610
|
+
function F() {
|
|
690
611
|
return (
|
|
691
612
|
/*mouseenter_handler*/
|
|
692
613
|
t[57](
|
|
@@ -695,7 +616,7 @@ function tt(t) {
|
|
|
695
616
|
)
|
|
696
617
|
);
|
|
697
618
|
}
|
|
698
|
-
function
|
|
619
|
+
function U() {
|
|
699
620
|
return (
|
|
700
621
|
/*focus_handler_1*/
|
|
701
622
|
t[58](
|
|
@@ -706,9 +627,9 @@ function tt(t) {
|
|
|
706
627
|
}
|
|
707
628
|
return {
|
|
708
629
|
c() {
|
|
709
|
-
e =
|
|
630
|
+
e = E("li"), n = E("span"), r = E("span"), c = E("span"), i = ne(u), d = q(), o = E("span"), R = ne(a), x = q(), h && h.c(), B = q(), f(c, "class", "primary svelte-1xi1e9d"), f(o, "class", "secondary svelte-1xi1e9d"), f(r, "class", "line1 svelte-1xi1e9d"), f(n, "class", "texts svelte-1xi1e9d"), f(e, "tabindex", "0"), f(e, "data-selected", C = /*selectedItemIndex*/
|
|
710
631
|
t[13] === /*i*/
|
|
711
|
-
t[71]),
|
|
632
|
+
t[71]), f(e, "class", "svelte-1xi1e9d"), J(
|
|
712
633
|
e,
|
|
713
634
|
"selected",
|
|
714
635
|
/*selectedItemIndex*/
|
|
@@ -716,23 +637,23 @@ function tt(t) {
|
|
|
716
637
|
t[71]
|
|
717
638
|
);
|
|
718
639
|
},
|
|
719
|
-
m(
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
],
|
|
640
|
+
m(_, m) {
|
|
641
|
+
O(_, e, m), b(e, n), b(n, r), b(r, c), b(c, i), b(r, d), b(r, o), b(o, R), b(n, x), h && h.m(n, null), b(e, B), P || (D = [
|
|
642
|
+
I(e, "mouseenter", F),
|
|
643
|
+
I(e, "focus", U)
|
|
644
|
+
], P = !0);
|
|
724
645
|
},
|
|
725
|
-
p(
|
|
726
|
-
t =
|
|
727
|
-
4096
|
|
728
|
-
t[69].place_name.replace(/,.*/, "") + "") &&
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
t[
|
|
732
|
-
8192 &&
|
|
646
|
+
p(_, m) {
|
|
647
|
+
t = _, m[0] & /*listFeatures*/
|
|
648
|
+
4096 && u !== (u = /*feature*/
|
|
649
|
+
t[69].place_name.replace(/,.*/, "") + "") && he(i, u), m[0] & /*listFeatures*/
|
|
650
|
+
4096 && a !== (a = /*feature*/
|
|
651
|
+
t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && he(R, a), /*showPlaceType*/
|
|
652
|
+
t[10] ? h ? h.p(t, m) : (h = et(t), h.c(), h.m(n, null)) : h && (h.d(1), h = null), m[0] & /*selectedItemIndex*/
|
|
653
|
+
8192 && C !== (C = /*selectedItemIndex*/
|
|
733
654
|
t[13] === /*i*/
|
|
734
|
-
t[71])
|
|
735
|
-
8192
|
|
655
|
+
t[71]) && f(e, "data-selected", C), m[0] & /*selectedItemIndex*/
|
|
656
|
+
8192 && J(
|
|
736
657
|
e,
|
|
737
658
|
"selected",
|
|
738
659
|
/*selectedItemIndex*/
|
|
@@ -740,80 +661,80 @@ function tt(t) {
|
|
|
740
661
|
t[71]
|
|
741
662
|
);
|
|
742
663
|
},
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
},
|
|
746
|
-
o(P) {
|
|
747
|
-
O(n.$$.fragment, P), B = !1;
|
|
748
|
-
},
|
|
749
|
-
d(P) {
|
|
750
|
-
P && D(e), he(n), z && z.d(), C = !1, ee(F);
|
|
664
|
+
d(_) {
|
|
665
|
+
_ && j(e), h && h.d(), P = !1, X(D);
|
|
751
666
|
}
|
|
752
667
|
};
|
|
753
668
|
}
|
|
754
|
-
function
|
|
755
|
-
let e, n, r, c, u, i,
|
|
756
|
-
c = new
|
|
757
|
-
let
|
|
669
|
+
function cn(t) {
|
|
670
|
+
let e, n, r, c, u, i, d, o, a, R, x, B, C, P, D, h, F, U;
|
|
671
|
+
c = new en({}), R = new Jt({});
|
|
672
|
+
let _ = (
|
|
758
673
|
/*abortController*/
|
|
759
674
|
t[17] && Ye()
|
|
760
|
-
),
|
|
675
|
+
), m = (
|
|
761
676
|
/*enableReverse*/
|
|
762
677
|
t[5] === !0 && $e(t)
|
|
763
678
|
);
|
|
764
|
-
const
|
|
679
|
+
const g = (
|
|
765
680
|
/*#slots*/
|
|
766
681
|
t[48].default
|
|
767
|
-
),
|
|
768
|
-
|
|
682
|
+
), L = St(
|
|
683
|
+
g,
|
|
769
684
|
t,
|
|
770
685
|
/*$$scope*/
|
|
771
686
|
t[47],
|
|
772
687
|
null
|
|
773
|
-
)
|
|
774
|
-
function
|
|
775
|
-
var
|
|
776
|
-
|
|
688
|
+
);
|
|
689
|
+
function fe(s, p) {
|
|
690
|
+
var v, re;
|
|
691
|
+
if (
|
|
777
692
|
/*error*/
|
|
778
|
-
s[16]
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
693
|
+
s[16]
|
|
694
|
+
)
|
|
695
|
+
return ln;
|
|
696
|
+
if (!/*focusedDelayed*/
|
|
697
|
+
s[14])
|
|
698
|
+
return rn;
|
|
699
|
+
if (
|
|
700
|
+
/*listFeatures*/
|
|
701
|
+
((v = s[12]) == null ? void 0 : v.length) === 0
|
|
702
|
+
)
|
|
703
|
+
return nn;
|
|
704
|
+
if (
|
|
705
|
+
/*focusedDelayed*/
|
|
706
|
+
s[14] && /*listFeatures*/
|
|
707
|
+
((re = s[12]) != null && re.length)
|
|
708
|
+
)
|
|
709
|
+
return tn;
|
|
790
710
|
}
|
|
791
|
-
|
|
711
|
+
let K = fe(t), k = K && K(t);
|
|
712
|
+
return {
|
|
792
713
|
c() {
|
|
793
|
-
e =
|
|
714
|
+
e = E("form"), n = E("div"), r = E("button"), Ee(c.$$.fragment), u = q(), i = E("input"), d = q(), o = E("div"), a = E("button"), Ee(R.$$.fragment), x = q(), _ && _.c(), B = q(), m && m.c(), C = q(), L && L.c(), P = q(), k && k.c(), f(r, "type", "button"), f(r, "class", "svelte-1xi1e9d"), f(
|
|
794
715
|
i,
|
|
795
716
|
"placeholder",
|
|
796
717
|
/*placeholder*/
|
|
797
718
|
t[8]
|
|
798
|
-
),
|
|
719
|
+
), f(
|
|
799
720
|
i,
|
|
800
721
|
"aria-label",
|
|
801
722
|
/*placeholder*/
|
|
802
723
|
t[8]
|
|
803
|
-
),
|
|
724
|
+
), f(i, "class", "svelte-1xi1e9d"), f(a, "type", "button"), f(
|
|
804
725
|
a,
|
|
805
726
|
"title",
|
|
806
727
|
/*clearButtonTitle*/
|
|
807
728
|
t[3]
|
|
808
|
-
),
|
|
729
|
+
), f(a, "class", "svelte-1xi1e9d"), J(
|
|
809
730
|
a,
|
|
810
731
|
"displayable",
|
|
811
732
|
/*searchValue*/
|
|
812
733
|
t[1] !== ""
|
|
813
|
-
), o
|
|
734
|
+
), f(o, "class", "clear-button-container svelte-1xi1e9d"), f(n, "class", "input-group svelte-1xi1e9d"), f(e, "tabindex", "0"), f(e, "class", D = qe(
|
|
814
735
|
/*className*/
|
|
815
736
|
t[2]
|
|
816
|
-
) + " svelte-
|
|
737
|
+
) + " svelte-1xi1e9d"), J(
|
|
817
738
|
e,
|
|
818
739
|
"can-collapse",
|
|
819
740
|
/*collapsed*/
|
|
@@ -821,127 +742,123 @@ function un(t) {
|
|
|
821
742
|
t[1] === ""
|
|
822
743
|
);
|
|
823
744
|
},
|
|
824
|
-
m(s,
|
|
825
|
-
|
|
745
|
+
m(s, p) {
|
|
746
|
+
O(s, e, p), b(e, n), b(n, r), _e(c, r, null), b(n, u), b(n, i), t[50](i), Ue(
|
|
826
747
|
i,
|
|
827
748
|
/*searchValue*/
|
|
828
749
|
t[1]
|
|
829
|
-
),
|
|
830
|
-
|
|
750
|
+
), b(n, d), b(n, o), b(o, a), _e(R, a, null), b(o, x), _ && _.m(o, null), b(n, B), m && m.m(n, null), b(n, C), L && L.m(n, null), b(e, P), k && k.m(e, null), h = !0, F || (U = [
|
|
751
|
+
I(
|
|
831
752
|
r,
|
|
832
753
|
"click",
|
|
833
754
|
/*click_handler*/
|
|
834
755
|
t[49]
|
|
835
756
|
),
|
|
836
|
-
|
|
757
|
+
I(
|
|
837
758
|
i,
|
|
838
759
|
"input",
|
|
839
760
|
/*input_1_input_handler*/
|
|
840
761
|
t[51]
|
|
841
762
|
),
|
|
842
|
-
|
|
763
|
+
I(
|
|
843
764
|
i,
|
|
844
765
|
"focus",
|
|
845
766
|
/*focus_handler*/
|
|
846
767
|
t[52]
|
|
847
768
|
),
|
|
848
|
-
|
|
769
|
+
I(
|
|
849
770
|
i,
|
|
850
771
|
"blur",
|
|
851
772
|
/*blur_handler*/
|
|
852
773
|
t[53]
|
|
853
774
|
),
|
|
854
|
-
|
|
775
|
+
I(
|
|
855
776
|
i,
|
|
856
777
|
"keydown",
|
|
857
778
|
/*handleKeyDown*/
|
|
858
779
|
t[19]
|
|
859
780
|
),
|
|
860
|
-
|
|
781
|
+
I(
|
|
861
782
|
i,
|
|
862
783
|
"input",
|
|
863
784
|
/*input_handler*/
|
|
864
785
|
t[54]
|
|
865
786
|
),
|
|
866
|
-
|
|
787
|
+
I(
|
|
867
788
|
a,
|
|
868
789
|
"click",
|
|
869
790
|
/*click_handler_1*/
|
|
870
791
|
t[55]
|
|
871
792
|
),
|
|
872
|
-
|
|
793
|
+
I(e, "submit", jt(
|
|
873
794
|
/*handleOnSubmit*/
|
|
874
795
|
t[18]
|
|
875
796
|
))
|
|
876
797
|
], F = !0);
|
|
877
798
|
},
|
|
878
|
-
p(s,
|
|
879
|
-
(!
|
|
880
|
-
256) &&
|
|
799
|
+
p(s, p) {
|
|
800
|
+
(!h || p[0] & /*placeholder*/
|
|
801
|
+
256) && f(
|
|
881
802
|
i,
|
|
882
803
|
"placeholder",
|
|
883
804
|
/*placeholder*/
|
|
884
805
|
s[8]
|
|
885
|
-
), (!
|
|
886
|
-
256) &&
|
|
806
|
+
), (!h || p[0] & /*placeholder*/
|
|
807
|
+
256) && f(
|
|
887
808
|
i,
|
|
888
809
|
"aria-label",
|
|
889
810
|
/*placeholder*/
|
|
890
811
|
s[8]
|
|
891
|
-
),
|
|
812
|
+
), p[0] & /*searchValue*/
|
|
892
813
|
2 && i.value !== /*searchValue*/
|
|
893
|
-
s[1] &&
|
|
814
|
+
s[1] && Ue(
|
|
894
815
|
i,
|
|
895
816
|
/*searchValue*/
|
|
896
817
|
s[1]
|
|
897
|
-
), (!
|
|
898
|
-
8) &&
|
|
818
|
+
), (!h || p[0] & /*clearButtonTitle*/
|
|
819
|
+
8) && f(
|
|
899
820
|
a,
|
|
900
821
|
"title",
|
|
901
822
|
/*clearButtonTitle*/
|
|
902
823
|
s[3]
|
|
903
|
-
), (!
|
|
904
|
-
2) &&
|
|
824
|
+
), (!h || p[0] & /*searchValue*/
|
|
825
|
+
2) && J(
|
|
905
826
|
a,
|
|
906
827
|
"displayable",
|
|
907
828
|
/*searchValue*/
|
|
908
829
|
s[1] !== ""
|
|
909
830
|
), /*abortController*/
|
|
910
|
-
s[17] ?
|
|
911
|
-
131072 &&
|
|
912
|
-
|
|
913
|
-
}),
|
|
914
|
-
s[5] === !0 ?
|
|
915
|
-
32 &&
|
|
916
|
-
|
|
917
|
-
}),
|
|
831
|
+
s[17] ? _ ? p[0] & /*abortController*/
|
|
832
|
+
131072 && G(_, 1) : (_ = Ye(), _.c(), G(_, 1), _.m(o, null)) : _ && (Ze(), Q(_, 1, 1, () => {
|
|
833
|
+
_ = null;
|
|
834
|
+
}), Je()), /*enableReverse*/
|
|
835
|
+
s[5] === !0 ? m ? (m.p(s, p), p[0] & /*enableReverse*/
|
|
836
|
+
32 && G(m, 1)) : (m = $e(s), m.c(), G(m, 1), m.m(n, C)) : m && (Ze(), Q(m, 1, 1, () => {
|
|
837
|
+
m = null;
|
|
838
|
+
}), Je()), L && L.p && (!h || p[1] & /*$$scope*/
|
|
918
839
|
65536) && Pt(
|
|
919
|
-
|
|
920
|
-
|
|
840
|
+
L,
|
|
841
|
+
g,
|
|
921
842
|
s,
|
|
922
843
|
/*$$scope*/
|
|
923
844
|
s[47],
|
|
924
|
-
|
|
925
|
-
|
|
845
|
+
h ? At(
|
|
846
|
+
g,
|
|
926
847
|
/*$$scope*/
|
|
927
848
|
s[47],
|
|
928
|
-
|
|
849
|
+
p,
|
|
929
850
|
null
|
|
930
851
|
) : Nt(
|
|
931
852
|
/*$$scope*/
|
|
932
853
|
s[47]
|
|
933
854
|
),
|
|
934
855
|
null
|
|
935
|
-
)
|
|
936
|
-
|
|
937
|
-
p = ye(s), p === J ? ~p && A[p].p(s, T) : (k && (Be(), O(A[J], 1, 1, () => {
|
|
938
|
-
A[J] = null;
|
|
939
|
-
}), Le()), ~p ? (k = A[p], k ? k.p(s, T) : (k = A[p] = Z[p](s), k.c()), L(k, 1), k.m(e, null)) : k = null), (!C || T[0] & /*className*/
|
|
940
|
-
4 && B !== (B = We(
|
|
856
|
+
), K === (K = fe(s)) && k ? k.p(s, p) : (k && k.d(1), k = K && K(s), k && (k.c(), k.m(e, null))), (!h || p[0] & /*className*/
|
|
857
|
+
4 && D !== (D = qe(
|
|
941
858
|
/*className*/
|
|
942
859
|
s[2]
|
|
943
|
-
) + " svelte-
|
|
944
|
-
22) &&
|
|
860
|
+
) + " svelte-1xi1e9d")) && f(e, "class", D), (!h || p[0] & /*className, collapsed, searchValue*/
|
|
861
|
+
22) && J(
|
|
945
862
|
e,
|
|
946
863
|
"can-collapse",
|
|
947
864
|
/*collapsed*/
|
|
@@ -950,17 +867,17 @@ function un(t) {
|
|
|
950
867
|
);
|
|
951
868
|
},
|
|
952
869
|
i(s) {
|
|
953
|
-
|
|
870
|
+
h || (G(c.$$.fragment, s), G(R.$$.fragment, s), G(_), G(m), G(L, s), h = !0);
|
|
954
871
|
},
|
|
955
872
|
o(s) {
|
|
956
|
-
|
|
873
|
+
Q(c.$$.fragment, s), Q(R.$$.fragment, s), Q(_), Q(m), Q(L, s), h = !1;
|
|
957
874
|
},
|
|
958
875
|
d(s) {
|
|
959
|
-
s &&
|
|
876
|
+
s && j(e), ge(c), t[50](null), ge(R), _ && _.d(), m && m.d(), L && L.d(s), k && k.d(), F = !1, X(U);
|
|
960
877
|
}
|
|
961
878
|
};
|
|
962
879
|
}
|
|
963
|
-
function
|
|
880
|
+
function un(t, e, n) {
|
|
964
881
|
const r = e[1], c = e[0], u = r - c;
|
|
965
882
|
return t === r && n ? t : ((t - c) % u + u) % u + c;
|
|
966
883
|
}
|
|
@@ -968,215 +885,215 @@ function nt(t) {
|
|
|
968
885
|
let e = [...t];
|
|
969
886
|
return e[2] < e[0] && (e[2] += 360), e;
|
|
970
887
|
}
|
|
971
|
-
function
|
|
972
|
-
let r, { $$slots: c = {}, $$scope: u } = e, { class: i = void 0 } = e, { apiKey:
|
|
888
|
+
function on(t, e, n) {
|
|
889
|
+
let r, { $$slots: c = {}, $$scope: u } = e, { class: i = void 0 } = e, { apiKey: d } = e, { bbox: o = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: R = !1 } = e, { collapsed: x = !1 } = e, { country: B = void 0 } = e, { debounceSearch: C = 200 } = e, { enableReverse: P = !1 } = e, { errorMessage: D = "Searching failed" } = e, { filter: h = () => !0 } = e, { flyTo: F = !0 } = e, { fuzzyMatch: U = !0 } = e, { language: _ = void 0 } = e, { limit: m = void 0 } = e, { mapController: g = void 0 } = e, { minLength: L = 2 } = e, { noResultsMessage: fe = "No results found" } = e, { placeholder: K = "Search" } = e, { proximity: k = void 0 } = e, { reverseActive: s = P === "always" } = e, { reverseButtonTitle: p = "toggle reverse geocoding" } = e, { searchValue: v = "" } = e, { showFullGeometry: re = !0 } = e, { showPlaceType: Oe = !1 } = e, { showResultsWhileTyping: ke = !0 } = e, { trackProximity: ve = !0 } = e, { types: Me = void 0 } = e, { zoom: Te = 16 } = e, { fetchParameters: ze = {} } = e;
|
|
973
890
|
function ft() {
|
|
974
|
-
|
|
891
|
+
V.focus();
|
|
975
892
|
}
|
|
976
893
|
function at() {
|
|
977
|
-
|
|
894
|
+
V.blur();
|
|
978
895
|
}
|
|
979
|
-
function
|
|
980
|
-
n(1,
|
|
981
|
-
|
|
896
|
+
function De(l, T = !0) {
|
|
897
|
+
n(1, v = l), T ? (n(13, M = -1), Ve()) : (Ce(), setTimeout(() => {
|
|
898
|
+
V.focus(), V.select();
|
|
982
899
|
}));
|
|
983
900
|
}
|
|
984
|
-
let
|
|
985
|
-
const
|
|
901
|
+
let le = !1, y, S, w, Fe = "", V, M = -1, W, pe = [], Y, ie, Re;
|
|
902
|
+
const Z = Ft();
|
|
986
903
|
Dt(() => {
|
|
987
|
-
|
|
904
|
+
g && (g.setEventHandler(void 0), g.indicateReverse(!1), g.setSelectedMarker(-1), g.setMarkers(void 0, void 0));
|
|
988
905
|
});
|
|
989
|
-
function
|
|
990
|
-
if (
|
|
991
|
-
n(45,
|
|
992
|
-
else if (
|
|
993
|
-
const
|
|
994
|
-
|
|
995
|
-
n(44,
|
|
996
|
-
}).catch((
|
|
906
|
+
function Ve(l) {
|
|
907
|
+
if (ie && (clearTimeout(ie), ie = void 0), M > -1 && y)
|
|
908
|
+
n(45, w = y[M]), n(1, v = w.place_name.replace(/,.*/, "")), n(16, W = void 0), n(44, S = void 0), n(13, M = -1);
|
|
909
|
+
else if (v) {
|
|
910
|
+
const T = l || !He();
|
|
911
|
+
Be(v, { exact: !0 }).then(() => {
|
|
912
|
+
n(44, S = y), n(45, w = void 0), T && dt();
|
|
913
|
+
}).catch((H) => n(16, W = H));
|
|
997
914
|
}
|
|
998
915
|
}
|
|
999
|
-
function
|
|
1000
|
-
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(
|
|
916
|
+
function He() {
|
|
917
|
+
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(v);
|
|
1001
918
|
}
|
|
1002
|
-
async function
|
|
1003
|
-
n(16,
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1007
|
-
if (
|
|
1008
|
-
|
|
919
|
+
async function Be(l, { byId: T = !1, exact: H = !1 } = {}) {
|
|
920
|
+
n(16, W = void 0);
|
|
921
|
+
const ae = He(), N = new URLSearchParams();
|
|
922
|
+
_ != null && N.set("language", Array.isArray(_) ? _.join(",") : _), Me && N.set("types", Me.join(",")), ae || (o && N.set("bbox", o.map((ee) => ee.toFixed(6)).join(",")), B && N.set("country", Array.isArray(B) ? B.join(",") : B)), T || (k && N.set("proximity", k.map((ee) => ee.toFixed(6)).join(",")), (H || !ke) && N.set("autocomplete", "false"), N.set("fuzzyMatch", String(U))), m !== void 0 && N.set("limit", String(m)), N.set("key", d);
|
|
923
|
+
const $ = "https://api.maptiler.com/geocoding/" + encodeURIComponent(l) + ".json?" + N.toString();
|
|
924
|
+
if ($ === Fe) {
|
|
925
|
+
T ? (n(12, y = void 0), n(45, w = pe[0])) : n(12, y = pe);
|
|
1009
926
|
return;
|
|
1010
927
|
}
|
|
1011
|
-
|
|
1012
|
-
const
|
|
1013
|
-
n(17,
|
|
1014
|
-
let
|
|
928
|
+
Fe = $, Y == null || Y.abort();
|
|
929
|
+
const A = new AbortController();
|
|
930
|
+
n(17, Y = A);
|
|
931
|
+
let Se;
|
|
1015
932
|
try {
|
|
1016
|
-
|
|
1017
|
-
|
|
933
|
+
Se = await fetch($, { signal: A.signal, ...ze }).finally(() => {
|
|
934
|
+
A === Y && n(17, Y = void 0);
|
|
1018
935
|
});
|
|
1019
|
-
} catch (
|
|
1020
|
-
if (
|
|
936
|
+
} catch (ee) {
|
|
937
|
+
if (ee && typeof ee == "object" && ee.name === "AbortError")
|
|
1021
938
|
return;
|
|
1022
939
|
throw new Error();
|
|
1023
940
|
}
|
|
1024
|
-
if (!
|
|
941
|
+
if (!Se.ok)
|
|
1025
942
|
throw new Error();
|
|
1026
|
-
const
|
|
1027
|
-
|
|
943
|
+
const Ae = await Se.json();
|
|
944
|
+
Z("response", { url: $, featureCollection: Ae }), T ? (n(12, y = void 0), n(45, w = Ae.features[0]), pe = [w]) : (n(12, y = Ae.features.filter(h)), pe = y, ae && V.focus());
|
|
1028
945
|
}
|
|
1029
946
|
function dt() {
|
|
1030
|
-
var
|
|
1031
|
-
if (!(
|
|
947
|
+
var H, ae, N, $;
|
|
948
|
+
if (!(S != null && S.length) || !F)
|
|
1032
949
|
return;
|
|
1033
|
-
const l = [180, 90, -180, -90],
|
|
1034
|
-
for (const
|
|
1035
|
-
(
|
|
1036
|
-
|
|
950
|
+
const l = [180, 90, -180, -90], T = !S.some((A) => !A.matching_text);
|
|
951
|
+
for (const A of S)
|
|
952
|
+
(T || !A.matching_text) && (l[0] = Math.min(l[0], ((H = A.bbox) == null ? void 0 : H[0]) ?? A.center[0]), l[1] = Math.min(l[1], ((ae = A.bbox) == null ? void 0 : ae[1]) ?? A.center[1]), l[2] = Math.max(l[2], ((N = A.bbox) == null ? void 0 : N[2]) ?? A.center[0]), l[3] = Math.max(l[3], (($ = A.bbox) == null ? void 0 : $[3]) ?? A.center[1]));
|
|
953
|
+
g && S.length > 0 && (w && l[0] === l[2] && l[1] === l[3] ? g.flyTo(w.center, Te) : g.fitBounds(nt(l), 50));
|
|
1037
954
|
}
|
|
1038
955
|
function ht(l) {
|
|
1039
|
-
n(0,
|
|
956
|
+
n(0, s = P === "always"), De(un(l[0], [-180, 180], !0).toFixed(6) + "," + l[1].toFixed(6));
|
|
1040
957
|
}
|
|
1041
958
|
function mt(l) {
|
|
1042
|
-
if (!
|
|
959
|
+
if (!y)
|
|
1043
960
|
return;
|
|
1044
|
-
let
|
|
1045
|
-
|
|
961
|
+
let T = l.key === "ArrowDown" ? 1 : l.key === "ArrowUp" ? -1 : 0;
|
|
962
|
+
T ? (M === -1 && T === -1 && n(13, M = y.length), n(13, M += T), M >= y.length && n(13, M = -1), l.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(l.key) && n(13, M = -1);
|
|
1046
963
|
}
|
|
1047
|
-
function
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1050
|
-
const
|
|
1051
|
-
|
|
964
|
+
function Ce(l = !0) {
|
|
965
|
+
if (ke && v.length > L) {
|
|
966
|
+
ie && clearTimeout(ie);
|
|
967
|
+
const T = v;
|
|
968
|
+
ie = window.setTimeout(
|
|
1052
969
|
() => {
|
|
1053
|
-
|
|
970
|
+
Be(T).catch((H) => n(16, W = H));
|
|
1054
971
|
},
|
|
1055
|
-
l ?
|
|
972
|
+
l ? C : 0
|
|
1056
973
|
);
|
|
1057
974
|
} else
|
|
1058
|
-
n(12,
|
|
975
|
+
n(12, y = void 0), n(16, W = void 0);
|
|
1059
976
|
}
|
|
1060
|
-
function
|
|
1061
|
-
n(45,
|
|
977
|
+
function Le(l) {
|
|
978
|
+
n(45, w = l), n(1, v = l.place_name), n(13, M = -1);
|
|
1062
979
|
}
|
|
1063
|
-
const _t = () =>
|
|
980
|
+
const _t = () => V.focus();
|
|
1064
981
|
function gt(l) {
|
|
1065
|
-
|
|
1066
|
-
|
|
982
|
+
Ie[l ? "unshift" : "push"](() => {
|
|
983
|
+
V = l, n(15, V);
|
|
1067
984
|
});
|
|
1068
985
|
}
|
|
1069
986
|
function yt() {
|
|
1070
|
-
|
|
987
|
+
v = this.value, n(1, v), n(11, le), n(25, R);
|
|
1071
988
|
}
|
|
1072
|
-
const bt = () => n(11,
|
|
1073
|
-
n(1,
|
|
1074
|
-
},
|
|
989
|
+
const bt = () => n(11, le = !0), wt = () => n(11, le = !1), kt = () => Ce(), vt = () => {
|
|
990
|
+
n(1, v = ""), V.focus();
|
|
991
|
+
}, Mt = () => n(0, s = !s), Tt = (l) => n(13, M = l), pt = (l) => Le(l), Rt = () => n(13, M = -1), xt = () => {
|
|
1075
992
|
};
|
|
1076
993
|
return t.$$set = (l) => {
|
|
1077
|
-
"class" in l && n(2, i = l.class), "apiKey" in l && n(23,
|
|
994
|
+
"class" in l && n(2, i = l.class), "apiKey" in l && n(23, d = l.apiKey), "bbox" in l && n(24, o = l.bbox), "clearButtonTitle" in l && n(3, a = l.clearButtonTitle), "clearOnBlur" in l && n(25, R = l.clearOnBlur), "collapsed" in l && n(4, x = l.collapsed), "country" in l && n(26, B = l.country), "debounceSearch" in l && n(27, C = l.debounceSearch), "enableReverse" in l && n(5, P = l.enableReverse), "errorMessage" in l && n(6, D = l.errorMessage), "filter" in l && n(28, h = l.filter), "flyTo" in l && n(29, F = l.flyTo), "fuzzyMatch" in l && n(30, U = l.fuzzyMatch), "language" in l && n(31, _ = l.language), "limit" in l && n(32, m = l.limit), "mapController" in l && n(33, g = l.mapController), "minLength" in l && n(34, L = l.minLength), "noResultsMessage" in l && n(7, fe = l.noResultsMessage), "placeholder" in l && n(8, K = l.placeholder), "proximity" in l && n(22, k = l.proximity), "reverseActive" in l && n(0, s = l.reverseActive), "reverseButtonTitle" in l && n(9, p = l.reverseButtonTitle), "searchValue" in l && n(1, v = l.searchValue), "showFullGeometry" in l && n(35, re = l.showFullGeometry), "showPlaceType" in l && n(10, Oe = l.showPlaceType), "showResultsWhileTyping" in l && n(36, ke = l.showResultsWhileTyping), "trackProximity" in l && n(37, ve = l.trackProximity), "types" in l && n(38, Me = l.types), "zoom" in l && n(39, Te = l.zoom), "fetchParameters" in l && n(40, ze = l.fetchParameters), "$$scope" in l && n(47, u = l.$$scope);
|
|
1078
995
|
}, t.$$.update = () => {
|
|
1079
996
|
if (t.$$.dirty[1] & /*trackProximity*/
|
|
1080
|
-
64 && (
|
|
997
|
+
64 && (ve || n(22, k = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
1081
998
|
33556480 && setTimeout(() => {
|
|
1082
|
-
n(14, Re =
|
|
999
|
+
n(14, Re = le), R && !le && n(1, v = "");
|
|
1083
1000
|
}), t.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1084
|
-
4098 && (
|
|
1085
|
-
16400 &&
|
|
1001
|
+
4098 && (v || (n(45, w = void 0), n(12, y = void 0), n(16, W = void 0), n(44, S = y))), t.$$.dirty[1] & /*showFullGeometry, picked*/
|
|
1002
|
+
16400 && re && w && !w.address && w.geometry.type === "Point" && Be(w.id, { byId: !0 }).catch((l) => n(16, W = l)), t.$$.dirty[0] & /*flyTo*/
|
|
1086
1003
|
536870912 | t.$$.dirty[1] & /*mapController, picked, zoom*/
|
|
1087
|
-
16644 &&
|
|
1004
|
+
16644 && g && w && F && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? g.flyTo(w.center, Te) : g.fitBounds(nt(w.bbox), 50), n(12, y = void 0), n(44, S = void 0), n(13, M = -1)), t.$$.dirty[0] & /*listFeatures*/
|
|
1088
1005
|
4096 | t.$$.dirty[1] & /*markedFeatures*/
|
|
1089
|
-
8192 &&
|
|
1090
|
-
24580 &&
|
|
1091
|
-
2 && n(13,
|
|
1006
|
+
8192 && S !== y && n(44, S = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1007
|
+
24580 && g && g.setMarkers(S, w), t.$$.dirty[0] & /*searchValue*/
|
|
1008
|
+
2 && n(13, M = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1092
1009
|
20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1093
|
-
68 &&
|
|
1010
|
+
68 && g && g.setEventHandler((l) => {
|
|
1094
1011
|
switch (l.type) {
|
|
1095
1012
|
case "mapClick":
|
|
1096
|
-
|
|
1013
|
+
s && ht(l.coordinates);
|
|
1097
1014
|
break;
|
|
1098
1015
|
case "proximityChange":
|
|
1099
|
-
n(22,
|
|
1016
|
+
n(22, k = ve ? l.proximity : void 0);
|
|
1100
1017
|
break;
|
|
1101
1018
|
case "markerClick":
|
|
1102
1019
|
{
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1020
|
+
const T = y == null ? void 0 : y.find((H) => H.id === l.id);
|
|
1021
|
+
T && Le(T);
|
|
1105
1022
|
}
|
|
1106
1023
|
break;
|
|
1107
1024
|
case "markerMouseEnter":
|
|
1108
|
-
n(13,
|
|
1025
|
+
n(13, M = Re ? (y == null ? void 0 : y.findIndex((T) => T.id === l.id)) ?? -1 : -1);
|
|
1109
1026
|
break;
|
|
1110
1027
|
case "markerMouseLeave":
|
|
1111
|
-
n(13,
|
|
1028
|
+
n(13, M = -1);
|
|
1112
1029
|
break;
|
|
1113
1030
|
}
|
|
1114
1031
|
}), t.$$.dirty[0] & /*selectedItemIndex*/
|
|
1115
1032
|
8192 | t.$$.dirty[1] & /*mapController*/
|
|
1116
|
-
4 && (
|
|
1117
|
-
12288 && n(46, r =
|
|
1033
|
+
4 && (g == null || g.setSelectedMarker(M)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
1034
|
+
12288 && n(46, r = y == null ? void 0 : y[M]), t.$$.dirty[0] & /*searchValue*/
|
|
1118
1035
|
2 | t.$$.dirty[1] & /*mapController*/
|
|
1119
1036
|
4) {
|
|
1120
|
-
const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(
|
|
1121
|
-
|
|
1037
|
+
const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(v);
|
|
1038
|
+
g == null || g.setReverseMarker(l ? [Number(l[1]), Number(l[2])] : void 0);
|
|
1122
1039
|
}
|
|
1123
1040
|
t.$$.dirty[1] & /*selected*/
|
|
1124
|
-
32768 &&
|
|
1125
|
-
16384 &&
|
|
1126
|
-
20480 &&
|
|
1127
|
-
4096 &&
|
|
1128
|
-
8192 &&
|
|
1129
|
-
1 &&
|
|
1130
|
-
2 &&
|
|
1041
|
+
32768 && Z("select", r), t.$$.dirty[1] & /*picked*/
|
|
1042
|
+
16384 && Z("pick", w), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
1043
|
+
20480 && Z("optionsVisibilityChange", Re && !!y), t.$$.dirty[0] & /*listFeatures*/
|
|
1044
|
+
4096 && Z("featuresListed", y), t.$$.dirty[1] & /*markedFeatures*/
|
|
1045
|
+
8192 && Z("featuresMarked", S), t.$$.dirty[0] & /*reverseActive*/
|
|
1046
|
+
1 && Z("reverseToggle", s), t.$$.dirty[0] & /*searchValue*/
|
|
1047
|
+
2 && Z("queryChange", v), t.$$.dirty[0] & /*reverseActive*/
|
|
1131
1048
|
1 | t.$$.dirty[1] & /*mapController*/
|
|
1132
|
-
4 &&
|
|
1049
|
+
4 && g && g.indicateReverse(s);
|
|
1133
1050
|
}, [
|
|
1134
|
-
A,
|
|
1135
1051
|
s,
|
|
1052
|
+
v,
|
|
1136
1053
|
i,
|
|
1137
1054
|
a,
|
|
1138
|
-
|
|
1139
|
-
G,
|
|
1140
|
-
p,
|
|
1055
|
+
x,
|
|
1141
1056
|
P,
|
|
1057
|
+
D,
|
|
1058
|
+
fe,
|
|
1059
|
+
K,
|
|
1060
|
+
p,
|
|
1061
|
+
Oe,
|
|
1062
|
+
le,
|
|
1063
|
+
y,
|
|
1142
1064
|
M,
|
|
1143
|
-
ye,
|
|
1144
|
-
J,
|
|
1145
|
-
oe,
|
|
1146
|
-
g,
|
|
1147
|
-
R,
|
|
1148
1065
|
Re,
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1066
|
+
V,
|
|
1067
|
+
W,
|
|
1068
|
+
Y,
|
|
1069
|
+
Ve,
|
|
1153
1070
|
mt,
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
Z,
|
|
1157
|
-
m,
|
|
1158
|
-
f,
|
|
1159
|
-
h,
|
|
1160
|
-
I,
|
|
1161
|
-
N,
|
|
1071
|
+
Ce,
|
|
1072
|
+
Le,
|
|
1162
1073
|
k,
|
|
1074
|
+
d,
|
|
1075
|
+
o,
|
|
1076
|
+
R,
|
|
1163
1077
|
B,
|
|
1164
1078
|
C,
|
|
1079
|
+
h,
|
|
1165
1080
|
F,
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1081
|
+
U,
|
|
1082
|
+
_,
|
|
1083
|
+
m,
|
|
1084
|
+
g,
|
|
1085
|
+
L,
|
|
1086
|
+
re,
|
|
1087
|
+
ke,
|
|
1088
|
+
ve,
|
|
1172
1089
|
Me,
|
|
1173
1090
|
Te,
|
|
1174
|
-
|
|
1091
|
+
ze,
|
|
1175
1092
|
ft,
|
|
1176
1093
|
at,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1094
|
+
De,
|
|
1095
|
+
S,
|
|
1096
|
+
w,
|
|
1180
1097
|
r,
|
|
1181
1098
|
u,
|
|
1182
1099
|
c,
|
|
@@ -1187,21 +1104,21 @@ function an(t, e, n) {
|
|
|
1187
1104
|
wt,
|
|
1188
1105
|
kt,
|
|
1189
1106
|
vt,
|
|
1190
|
-
pt,
|
|
1191
|
-
zt,
|
|
1192
1107
|
Mt,
|
|
1193
1108
|
Tt,
|
|
1194
|
-
|
|
1109
|
+
pt,
|
|
1110
|
+
Rt,
|
|
1111
|
+
xt
|
|
1195
1112
|
];
|
|
1196
1113
|
}
|
|
1197
|
-
class
|
|
1114
|
+
class sn extends we {
|
|
1198
1115
|
constructor(e) {
|
|
1199
|
-
super(),
|
|
1116
|
+
super(), be(
|
|
1200
1117
|
this,
|
|
1201
1118
|
e,
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1119
|
+
on,
|
|
1120
|
+
cn,
|
|
1121
|
+
ye,
|
|
1205
1122
|
{
|
|
1206
1123
|
class: 2,
|
|
1207
1124
|
apiKey: 23,
|
|
@@ -1260,7 +1177,7 @@ const rt = [
|
|
|
1260
1177
|
"response",
|
|
1261
1178
|
"reversetoggle",
|
|
1262
1179
|
"select"
|
|
1263
|
-
],
|
|
1180
|
+
], fn = [
|
|
1264
1181
|
"apiKey",
|
|
1265
1182
|
"bbox",
|
|
1266
1183
|
"clearButtonTitle",
|
|
@@ -1290,39 +1207,39 @@ const rt = [
|
|
|
1290
1207
|
function lt(t) {
|
|
1291
1208
|
return "on" + t[0].toUpperCase() + t.slice(1);
|
|
1292
1209
|
}
|
|
1293
|
-
const
|
|
1294
|
-
const r =
|
|
1210
|
+
const dn = Et(function(e, n) {
|
|
1211
|
+
const r = Ke(), c = Ke(), u = { ...e };
|
|
1295
1212
|
for (const i of rt)
|
|
1296
1213
|
delete u[lt(i)];
|
|
1297
|
-
|
|
1214
|
+
Pe(() => {
|
|
1298
1215
|
if (!r.current)
|
|
1299
1216
|
throw new Error();
|
|
1300
|
-
const i = new
|
|
1217
|
+
const i = new sn({
|
|
1301
1218
|
target: r.current,
|
|
1302
1219
|
props: u
|
|
1303
1220
|
});
|
|
1304
1221
|
return c.current = i, () => i.$destroy();
|
|
1305
1222
|
}, []);
|
|
1306
|
-
for (const i of
|
|
1307
|
-
|
|
1223
|
+
for (const i of fn)
|
|
1224
|
+
Pe(() => {
|
|
1308
1225
|
c.current && e[i] !== void 0 && c.current.$set({ [i]: e[i] });
|
|
1309
1226
|
}, [e[i]]);
|
|
1310
1227
|
for (const i of rt) {
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1313
|
-
var
|
|
1314
|
-
(
|
|
1228
|
+
const d = e[lt(i)];
|
|
1229
|
+
Pe(() => {
|
|
1230
|
+
var o;
|
|
1231
|
+
(o = c.current) == null || o.$on(
|
|
1315
1232
|
i,
|
|
1316
|
-
|
|
1317
|
-
|
|
1233
|
+
d ? (a) => {
|
|
1234
|
+
d(a.detail);
|
|
1318
1235
|
} : void 0
|
|
1319
1236
|
);
|
|
1320
|
-
}, [
|
|
1237
|
+
}, [d]);
|
|
1321
1238
|
}
|
|
1322
|
-
return
|
|
1323
|
-
setQuery: (i,
|
|
1324
|
-
var
|
|
1325
|
-
return (
|
|
1239
|
+
return zt(n, () => ({
|
|
1240
|
+
setQuery: (i, d = !0) => {
|
|
1241
|
+
var o;
|
|
1242
|
+
return (o = c.current) == null ? void 0 : o.setQuery(i, d);
|
|
1326
1243
|
},
|
|
1327
1244
|
focus: () => {
|
|
1328
1245
|
var i;
|
|
@@ -1335,5 +1252,6 @@ const _n = Rt(function(e, n) {
|
|
|
1335
1252
|
})), Bt("div", { ref: r });
|
|
1336
1253
|
});
|
|
1337
1254
|
export {
|
|
1338
|
-
|
|
1255
|
+
dn as GeocodingControl
|
|
1339
1256
|
};
|
|
1257
|
+
//# sourceMappingURL=react.js.map
|