@maptiler/geocoding-control 0.0.82 → 0.0.83
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/GeocodingControl.svelte +5 -0
- package/README.md +6 -7
- package/leaflet.js +13 -13
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +4 -2
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +9 -5
- package/maplibregl.js +805 -795
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +5 -5
- package/maplibregl.umd.js.map +1 -1
- package/package.json +6 -2
- package/react.js +217 -217
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
package/react.js
CHANGED
|
@@ -6,16 +6,16 @@ function Ct(t, e) {
|
|
|
6
6
|
t[n] = e[n];
|
|
7
7
|
return t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ct(t) {
|
|
10
10
|
return t();
|
|
11
11
|
}
|
|
12
12
|
function Qe() {
|
|
13
13
|
return /* @__PURE__ */ Object.create(null);
|
|
14
14
|
}
|
|
15
15
|
function X(t) {
|
|
16
|
-
t.forEach(
|
|
16
|
+
t.forEach(ct);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function it(t) {
|
|
19
19
|
return typeof t == "function";
|
|
20
20
|
}
|
|
21
21
|
function ye(t, e) {
|
|
@@ -26,8 +26,8 @@ function Lt(t) {
|
|
|
26
26
|
}
|
|
27
27
|
function St(t, e, n, r) {
|
|
28
28
|
if (t) {
|
|
29
|
-
const
|
|
30
|
-
return t[0](
|
|
29
|
+
const i = ut(t, e, n, r);
|
|
30
|
+
return t[0](i);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function ut(t, e, n, r) {
|
|
@@ -35,23 +35,23 @@ function ut(t, e, n, r) {
|
|
|
35
35
|
}
|
|
36
36
|
function At(t, e, n, r) {
|
|
37
37
|
if (t[2] && r) {
|
|
38
|
-
const
|
|
38
|
+
const i = t[2](r(n));
|
|
39
39
|
if (e.dirty === void 0)
|
|
40
|
-
return
|
|
41
|
-
if (typeof
|
|
42
|
-
const u = [],
|
|
43
|
-
for (let d = 0; d <
|
|
44
|
-
u[d] = e.dirty[d] |
|
|
40
|
+
return i;
|
|
41
|
+
if (typeof i == "object") {
|
|
42
|
+
const u = [], c = Math.max(e.dirty.length, i.length);
|
|
43
|
+
for (let d = 0; d < c; d += 1)
|
|
44
|
+
u[d] = e.dirty[d] | i[d];
|
|
45
45
|
return u;
|
|
46
46
|
}
|
|
47
|
-
return e.dirty |
|
|
47
|
+
return e.dirty | i;
|
|
48
48
|
}
|
|
49
49
|
return e.dirty;
|
|
50
50
|
}
|
|
51
|
-
function Pt(t, e, n, r,
|
|
52
|
-
if (
|
|
53
|
-
const
|
|
54
|
-
t.p(
|
|
51
|
+
function Pt(t, e, n, r, i, u) {
|
|
52
|
+
if (i) {
|
|
53
|
+
const c = ut(e, n, r, u);
|
|
54
|
+
t.p(c, i);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
function Nt(t) {
|
|
@@ -115,8 +115,8 @@ 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
|
-
const
|
|
119
|
-
return
|
|
118
|
+
const i = document.createEvent("CustomEvent");
|
|
119
|
+
return i.initCustomEvent(t, n, r, e), i;
|
|
120
120
|
}
|
|
121
121
|
let me;
|
|
122
122
|
function de(t) {
|
|
@@ -133,11 +133,11 @@ function Dt(t) {
|
|
|
133
133
|
function Ft() {
|
|
134
134
|
const t = ot();
|
|
135
135
|
return (e, n, { cancelable: r = !1 } = {}) => {
|
|
136
|
-
const
|
|
137
|
-
if (
|
|
136
|
+
const i = t.$$.callbacks[e];
|
|
137
|
+
if (i) {
|
|
138
138
|
const u = Ot(e, n, { cancelable: r });
|
|
139
|
-
return
|
|
140
|
-
|
|
139
|
+
return i.slice().forEach((c) => {
|
|
140
|
+
c.call(t, u);
|
|
141
141
|
}), !u.defaultPrevented;
|
|
142
142
|
}
|
|
143
143
|
return !0;
|
|
@@ -154,21 +154,21 @@ function Ge(t) {
|
|
|
154
154
|
oe.push(t);
|
|
155
155
|
}
|
|
156
156
|
const Ne = /* @__PURE__ */ new Set();
|
|
157
|
-
let
|
|
157
|
+
let ie = 0;
|
|
158
158
|
function st() {
|
|
159
|
-
if (
|
|
159
|
+
if (ie !== 0)
|
|
160
160
|
return;
|
|
161
161
|
const t = me;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const e = ue[
|
|
166
|
-
|
|
164
|
+
for (; ie < ue.length; ) {
|
|
165
|
+
const e = ue[ie];
|
|
166
|
+
ie++, de(e), Kt(e.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (e) {
|
|
169
|
-
throw ue.length = 0,
|
|
169
|
+
throw ue.length = 0, ie = 0, e;
|
|
170
170
|
}
|
|
171
|
-
for (de(null), ue.length = 0,
|
|
171
|
+
for (de(null), ue.length = 0, ie = 0; Ie.length; )
|
|
172
172
|
Ie.pop()();
|
|
173
173
|
for (let e = 0; e < oe.length; e += 1) {
|
|
174
174
|
const n = oe[e];
|
|
@@ -221,10 +221,10 @@ function Ee(t) {
|
|
|
221
221
|
t && t.c();
|
|
222
222
|
}
|
|
223
223
|
function _e(t, e, n, r) {
|
|
224
|
-
const { fragment:
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...
|
|
224
|
+
const { fragment: i, after_update: u } = t.$$;
|
|
225
|
+
i && i.m(e, n), r || Ge(() => {
|
|
226
|
+
const c = t.$$.on_mount.map(ct).filter(it);
|
|
227
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...c) : X(c), t.$$.on_mount = [];
|
|
228
228
|
}), u.forEach(Ge);
|
|
229
229
|
}
|
|
230
230
|
function ge(t, e) {
|
|
@@ -234,7 +234,7 @@ function ge(t, e) {
|
|
|
234
234
|
function qt(t, e) {
|
|
235
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 be(t, e, n, r,
|
|
237
|
+
function be(t, e, n, r, i, u, c, d = [-1]) {
|
|
238
238
|
const o = me;
|
|
239
239
|
de(t);
|
|
240
240
|
const a = t.$$ = {
|
|
@@ -243,7 +243,7 @@ function be(t, e, n, r, c, u, i, d = [-1]) {
|
|
|
243
243
|
// state
|
|
244
244
|
props: u,
|
|
245
245
|
update: z,
|
|
246
|
-
not_equal:
|
|
246
|
+
not_equal: i,
|
|
247
247
|
bound: Qe(),
|
|
248
248
|
// lifecycle
|
|
249
249
|
on_mount: [],
|
|
@@ -258,11 +258,11 @@ function be(t, e, n, r, c, u, i, d = [-1]) {
|
|
|
258
258
|
skip_bound: !1,
|
|
259
259
|
root: e.target || o.$$.root
|
|
260
260
|
};
|
|
261
|
-
|
|
261
|
+
c && c(a.root);
|
|
262
262
|
let R = !1;
|
|
263
263
|
if (a.ctx = n ? n(t, e.props || {}, (x, B, ...C) => {
|
|
264
264
|
const P = C.length ? C[0] : B;
|
|
265
|
-
return a.ctx &&
|
|
265
|
+
return a.ctx && i(a.ctx[x], a.ctx[x] = P) && (!a.skip_bound && a.bound[x] && a.bound[x](P), R && qt(t, x)), B;
|
|
266
266
|
}) : [], a.update(), R = !0, X(a.before_update), a.fragment = r ? r(a.ctx) : !1, e.target) {
|
|
267
267
|
if (e.hydrate) {
|
|
268
268
|
const x = Gt(e.target);
|
|
@@ -278,12 +278,12 @@ class we {
|
|
|
278
278
|
ge(this, 1), this.$destroy = z;
|
|
279
279
|
}
|
|
280
280
|
$on(e, n) {
|
|
281
|
-
if (!
|
|
281
|
+
if (!it(n))
|
|
282
282
|
return z;
|
|
283
283
|
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
284
284
|
return r.push(n), () => {
|
|
285
|
-
const
|
|
286
|
-
|
|
285
|
+
const i = r.indexOf(n);
|
|
286
|
+
i !== -1 && r.splice(i, 1);
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
$set(e) {
|
|
@@ -296,8 +296,8 @@ function Ut(t) {
|
|
|
296
296
|
c() {
|
|
297
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
|
-
m(r,
|
|
300
|
-
O(r, e,
|
|
299
|
+
m(r, i) {
|
|
300
|
+
O(r, e, i), b(e, n);
|
|
301
301
|
},
|
|
302
302
|
p: z,
|
|
303
303
|
i: z,
|
|
@@ -318,8 +318,8 @@ function Zt(t) {
|
|
|
318
318
|
c() {
|
|
319
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
|
-
m(r,
|
|
322
|
-
O(r, e,
|
|
321
|
+
m(r, i) {
|
|
322
|
+
O(r, e, i), b(e, n);
|
|
323
323
|
},
|
|
324
324
|
p: z,
|
|
325
325
|
i: z,
|
|
@@ -362,8 +362,8 @@ function $t(t) {
|
|
|
362
362
|
c() {
|
|
363
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");
|
|
364
364
|
},
|
|
365
|
-
m(r,
|
|
366
|
-
O(r, e,
|
|
365
|
+
m(r, i) {
|
|
366
|
+
O(r, e, i), b(e, n);
|
|
367
367
|
},
|
|
368
368
|
p: z,
|
|
369
369
|
i: z,
|
|
@@ -388,8 +388,8 @@ function Ye(t) {
|
|
|
388
388
|
c() {
|
|
389
389
|
Ee(e.$$.fragment);
|
|
390
390
|
},
|
|
391
|
-
m(r,
|
|
392
|
-
_e(e, r,
|
|
391
|
+
m(r, i) {
|
|
392
|
+
_e(e, r, i), n = !0;
|
|
393
393
|
},
|
|
394
394
|
i(r) {
|
|
395
395
|
n || (G(e.$$.fragment, r), n = !0);
|
|
@@ -403,7 +403,7 @@ function Ye(t) {
|
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
405
|
function $e(t) {
|
|
406
|
-
let e, n, r,
|
|
406
|
+
let e, n, r, i, u;
|
|
407
407
|
return n = new Wt({}), {
|
|
408
408
|
c() {
|
|
409
409
|
e = E("button"), Ee(n.$$.fragment), f(e, "type", "button"), f(
|
|
@@ -411,63 +411,63 @@ function $e(t) {
|
|
|
411
411
|
"title",
|
|
412
412
|
/*reverseButtonTitle*/
|
|
413
413
|
t[9]
|
|
414
|
-
), f(e, "class", "svelte-
|
|
414
|
+
), f(e, "class", "svelte-gpexd2"), J(
|
|
415
415
|
e,
|
|
416
416
|
"active",
|
|
417
417
|
/*reverseActive*/
|
|
418
418
|
t[0]
|
|
419
419
|
);
|
|
420
420
|
},
|
|
421
|
-
m(
|
|
422
|
-
O(
|
|
421
|
+
m(c, d) {
|
|
422
|
+
O(c, e, d), _e(n, e, null), r = !0, i || (u = I(
|
|
423
423
|
e,
|
|
424
424
|
"click",
|
|
425
425
|
/*click_handler_2*/
|
|
426
426
|
t[56]
|
|
427
|
-
),
|
|
427
|
+
), i = !0);
|
|
428
428
|
},
|
|
429
|
-
p(
|
|
429
|
+
p(c, d) {
|
|
430
430
|
(!r || d[0] & /*reverseButtonTitle*/
|
|
431
431
|
512) && f(
|
|
432
432
|
e,
|
|
433
433
|
"title",
|
|
434
434
|
/*reverseButtonTitle*/
|
|
435
|
-
|
|
435
|
+
c[9]
|
|
436
436
|
), (!r || d[0] & /*reverseActive*/
|
|
437
437
|
1) && J(
|
|
438
438
|
e,
|
|
439
439
|
"active",
|
|
440
440
|
/*reverseActive*/
|
|
441
|
-
|
|
441
|
+
c[0]
|
|
442
442
|
);
|
|
443
443
|
},
|
|
444
|
-
i(
|
|
445
|
-
r || (G(n.$$.fragment,
|
|
444
|
+
i(c) {
|
|
445
|
+
r || (G(n.$$.fragment, c), r = !0);
|
|
446
446
|
},
|
|
447
|
-
o(
|
|
448
|
-
Q(n.$$.fragment,
|
|
447
|
+
o(c) {
|
|
448
|
+
Q(n.$$.fragment, c), r = !1;
|
|
449
449
|
},
|
|
450
|
-
d(
|
|
451
|
-
|
|
450
|
+
d(c) {
|
|
451
|
+
c && j(e), ge(n), i = !1, u();
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
function tn(t) {
|
|
456
|
-
let e, n, r,
|
|
456
|
+
let e, n, r, i = (
|
|
457
457
|
/*listFeatures*/
|
|
458
458
|
t[12]
|
|
459
459
|
), u = [];
|
|
460
|
-
for (let
|
|
461
|
-
u[
|
|
460
|
+
for (let c = 0; c < i.length; c += 1)
|
|
461
|
+
u[c] = tt(Xe(t, i, c));
|
|
462
462
|
return {
|
|
463
463
|
c() {
|
|
464
464
|
e = E("ul");
|
|
465
|
-
for (let
|
|
466
|
-
u[
|
|
467
|
-
f(e, "class", "svelte-
|
|
465
|
+
for (let c = 0; c < u.length; c += 1)
|
|
466
|
+
u[c].c();
|
|
467
|
+
f(e, "class", "svelte-gpexd2");
|
|
468
468
|
},
|
|
469
|
-
m(
|
|
470
|
-
O(
|
|
469
|
+
m(c, d) {
|
|
470
|
+
O(c, e, d);
|
|
471
471
|
for (let o = 0; o < u.length; o += 1)
|
|
472
472
|
u[o] && u[o].m(e, null);
|
|
473
473
|
n || (r = [
|
|
@@ -485,23 +485,23 @@ function tn(t) {
|
|
|
485
485
|
)
|
|
486
486
|
], n = !0);
|
|
487
487
|
},
|
|
488
|
-
p(
|
|
488
|
+
p(c, d) {
|
|
489
489
|
if (d[0] & /*selectedItemIndex, pick, listFeatures, showPlaceType*/
|
|
490
490
|
2110464) {
|
|
491
|
-
|
|
492
|
-
|
|
491
|
+
i = /*listFeatures*/
|
|
492
|
+
c[12];
|
|
493
493
|
let o;
|
|
494
|
-
for (o = 0; o <
|
|
495
|
-
const a = Xe(
|
|
494
|
+
for (o = 0; o < i.length; o += 1) {
|
|
495
|
+
const a = Xe(c, i, o);
|
|
496
496
|
u[o] ? u[o].p(a, d) : (u[o] = tt(a), u[o].c(), u[o].m(e, null));
|
|
497
497
|
}
|
|
498
498
|
for (; o < u.length; o += 1)
|
|
499
499
|
u[o].d(1);
|
|
500
|
-
u.length =
|
|
500
|
+
u.length = i.length;
|
|
501
501
|
}
|
|
502
502
|
},
|
|
503
|
-
d(
|
|
504
|
-
|
|
503
|
+
d(c) {
|
|
504
|
+
c && j(e), It(u, c), n = !1, X(r);
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
507
|
}
|
|
@@ -512,13 +512,13 @@ function nn(t) {
|
|
|
512
512
|
e = E("div"), n = ne(
|
|
513
513
|
/*noResultsMessage*/
|
|
514
514
|
t[7]
|
|
515
|
-
), f(e, "class", "no-results svelte-
|
|
515
|
+
), f(e, "class", "no-results svelte-gpexd2");
|
|
516
516
|
},
|
|
517
|
-
m(r,
|
|
518
|
-
O(r, e,
|
|
517
|
+
m(r, i) {
|
|
518
|
+
O(r, e, i), b(e, n);
|
|
519
519
|
},
|
|
520
|
-
p(r,
|
|
521
|
-
|
|
520
|
+
p(r, i) {
|
|
521
|
+
i[0] & /*noResultsMessage*/
|
|
522
522
|
128 && he(
|
|
523
523
|
n,
|
|
524
524
|
/*noResultsMessage*/
|
|
@@ -536,8 +536,8 @@ function rn(t) {
|
|
|
536
536
|
c() {
|
|
537
537
|
n = ne(e);
|
|
538
538
|
},
|
|
539
|
-
m(r,
|
|
540
|
-
O(r, n,
|
|
539
|
+
m(r, i) {
|
|
540
|
+
O(r, n, i);
|
|
541
541
|
},
|
|
542
542
|
p: z,
|
|
543
543
|
d(r) {
|
|
@@ -552,13 +552,13 @@ function ln(t) {
|
|
|
552
552
|
e = E("div"), n = ne(
|
|
553
553
|
/*errorMessage*/
|
|
554
554
|
t[6]
|
|
555
|
-
), f(e, "class", "error svelte-
|
|
555
|
+
), f(e, "class", "error svelte-gpexd2");
|
|
556
556
|
},
|
|
557
|
-
m(r,
|
|
558
|
-
O(r, e,
|
|
557
|
+
m(r, i) {
|
|
558
|
+
O(r, e, i), b(e, n);
|
|
559
559
|
},
|
|
560
|
-
p(r,
|
|
561
|
-
|
|
560
|
+
p(r, i) {
|
|
561
|
+
i[0] & /*errorMessage*/
|
|
562
562
|
64 && he(
|
|
563
563
|
n,
|
|
564
564
|
/*errorMessage*/
|
|
@@ -571,36 +571,36 @@ function ln(t) {
|
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
573
|
function et(t) {
|
|
574
|
-
var
|
|
574
|
+
var i, u;
|
|
575
575
|
let e, n = (
|
|
576
576
|
/*feature*/
|
|
577
|
-
(((u = (
|
|
577
|
+
(((u = (i = t[69].properties) == null ? void 0 : i.place_type_name) == null ? void 0 : u[0]) ?? /*feature*/
|
|
578
578
|
t[69].place_type[0]) + ""
|
|
579
579
|
), r;
|
|
580
580
|
return {
|
|
581
581
|
c() {
|
|
582
|
-
e = E("span"), r = ne(n), f(e, "class", "line2 svelte-
|
|
582
|
+
e = E("span"), r = ne(n), f(e, "class", "line2 svelte-gpexd2");
|
|
583
583
|
},
|
|
584
|
-
m(
|
|
585
|
-
O(
|
|
584
|
+
m(c, d) {
|
|
585
|
+
O(c, e, d), b(e, r);
|
|
586
586
|
},
|
|
587
|
-
p(
|
|
587
|
+
p(c, d) {
|
|
588
588
|
var o, a;
|
|
589
589
|
d[0] & /*listFeatures*/
|
|
590
590
|
4096 && n !== (n = /*feature*/
|
|
591
|
-
(((a = (o =
|
|
592
|
-
|
|
591
|
+
(((a = (o = c[69].properties) == null ? void 0 : o.place_type_name) == null ? void 0 : a[0]) ?? /*feature*/
|
|
592
|
+
c[69].place_type[0]) + "") && he(r, n);
|
|
593
593
|
},
|
|
594
|
-
d(
|
|
595
|
-
|
|
594
|
+
d(c) {
|
|
595
|
+
c && j(e);
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
599
|
function tt(t) {
|
|
600
|
-
let e, n, r,
|
|
600
|
+
let e, n, r, i, u = (
|
|
601
601
|
/*feature*/
|
|
602
602
|
t[69].place_name.replace(/,.*/, "") + ""
|
|
603
|
-
),
|
|
603
|
+
), c, d, o, a = (
|
|
604
604
|
/*feature*/
|
|
605
605
|
t[69].place_name.replace(/[^,]*,?\s*/, "") + ""
|
|
606
606
|
), R, x, B, C, P, D, h = (
|
|
@@ -627,9 +627,9 @@ function tt(t) {
|
|
|
627
627
|
}
|
|
628
628
|
return {
|
|
629
629
|
c() {
|
|
630
|
-
e = E("li"), n = E("span"), r = E("span"),
|
|
630
|
+
e = E("li"), n = E("span"), r = E("span"), i = E("span"), c = ne(u), d = q(), o = E("span"), R = ne(a), x = q(), h && h.c(), B = q(), f(i, "class", "primary svelte-gpexd2"), f(o, "class", "secondary svelte-gpexd2"), f(r, "class", "line1 svelte-gpexd2"), f(n, "class", "texts svelte-gpexd2"), f(e, "tabindex", "0"), f(e, "data-selected", C = /*selectedItemIndex*/
|
|
631
631
|
t[13] === /*i*/
|
|
632
|
-
t[71]), f(e, "class", "svelte-
|
|
632
|
+
t[71]), f(e, "class", "svelte-gpexd2"), J(
|
|
633
633
|
e,
|
|
634
634
|
"selected",
|
|
635
635
|
/*selectedItemIndex*/
|
|
@@ -638,7 +638,7 @@ function tt(t) {
|
|
|
638
638
|
);
|
|
639
639
|
},
|
|
640
640
|
m(_, m) {
|
|
641
|
-
O(_, e, m), b(e, n), b(n, r), b(r,
|
|
641
|
+
O(_, e, m), b(e, n), b(n, r), b(r, i), b(i, c), b(r, d), b(r, o), b(o, R), b(n, x), h && h.m(n, null), b(e, B), P || (D = [
|
|
642
642
|
I(e, "mouseenter", F),
|
|
643
643
|
I(e, "focus", U)
|
|
644
644
|
], P = !0);
|
|
@@ -646,7 +646,7 @@ function tt(t) {
|
|
|
646
646
|
p(_, m) {
|
|
647
647
|
t = _, m[0] & /*listFeatures*/
|
|
648
648
|
4096 && u !== (u = /*feature*/
|
|
649
|
-
t[69].place_name.replace(/,.*/, "") + "") && he(
|
|
649
|
+
t[69].place_name.replace(/,.*/, "") + "") && he(c, u), m[0] & /*listFeatures*/
|
|
650
650
|
4096 && a !== (a = /*feature*/
|
|
651
651
|
t[69].place_name.replace(/[^,]*,?\s*/, "") + "") && he(R, a), /*showPlaceType*/
|
|
652
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*/
|
|
@@ -667,8 +667,8 @@ function tt(t) {
|
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
669
|
function cn(t) {
|
|
670
|
-
let e, n, r,
|
|
671
|
-
|
|
670
|
+
let e, n, r, i, u, c, d, o, a, R, x, B, C, P, D, h, F, U;
|
|
671
|
+
i = new en({}), R = new Jt({});
|
|
672
672
|
let _ = (
|
|
673
673
|
/*abortController*/
|
|
674
674
|
t[17] && Ye()
|
|
@@ -686,8 +686,8 @@ function cn(t) {
|
|
|
686
686
|
t[47],
|
|
687
687
|
null
|
|
688
688
|
);
|
|
689
|
-
function fe(s,
|
|
690
|
-
var
|
|
689
|
+
function fe(s, T) {
|
|
690
|
+
var p, re;
|
|
691
691
|
if (
|
|
692
692
|
/*error*/
|
|
693
693
|
s[16]
|
|
@@ -698,7 +698,7 @@ function cn(t) {
|
|
|
698
698
|
return rn;
|
|
699
699
|
if (
|
|
700
700
|
/*listFeatures*/
|
|
701
|
-
((
|
|
701
|
+
((p = s[12]) == null ? void 0 : p.length) === 0
|
|
702
702
|
)
|
|
703
703
|
return nn;
|
|
704
704
|
if (
|
|
@@ -711,30 +711,30 @@ function cn(t) {
|
|
|
711
711
|
let K = fe(t), k = K && K(t);
|
|
712
712
|
return {
|
|
713
713
|
c() {
|
|
714
|
-
e = E("form"), n = E("div"), r = E("button"), Ee(
|
|
715
|
-
|
|
714
|
+
e = E("form"), n = E("div"), r = E("button"), Ee(i.$$.fragment), u = q(), c = 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-gpexd2"), f(
|
|
715
|
+
c,
|
|
716
716
|
"placeholder",
|
|
717
717
|
/*placeholder*/
|
|
718
718
|
t[8]
|
|
719
719
|
), f(
|
|
720
|
-
|
|
720
|
+
c,
|
|
721
721
|
"aria-label",
|
|
722
722
|
/*placeholder*/
|
|
723
723
|
t[8]
|
|
724
|
-
), f(
|
|
724
|
+
), f(c, "class", "svelte-gpexd2"), f(a, "type", "button"), f(
|
|
725
725
|
a,
|
|
726
726
|
"title",
|
|
727
727
|
/*clearButtonTitle*/
|
|
728
728
|
t[3]
|
|
729
|
-
), f(a, "class", "svelte-
|
|
729
|
+
), f(a, "class", "svelte-gpexd2"), J(
|
|
730
730
|
a,
|
|
731
731
|
"displayable",
|
|
732
732
|
/*searchValue*/
|
|
733
733
|
t[1] !== ""
|
|
734
|
-
), f(o, "class", "clear-button-container svelte-
|
|
734
|
+
), f(o, "class", "clear-button-container svelte-gpexd2"), f(n, "class", "input-group svelte-gpexd2"), f(e, "tabindex", "0"), f(e, "class", D = qe(
|
|
735
735
|
/*className*/
|
|
736
736
|
t[2]
|
|
737
|
-
) + " svelte-
|
|
737
|
+
) + " svelte-gpexd2"), J(
|
|
738
738
|
e,
|
|
739
739
|
"can-collapse",
|
|
740
740
|
/*collapsed*/
|
|
@@ -742,9 +742,9 @@ function cn(t) {
|
|
|
742
742
|
t[1] === ""
|
|
743
743
|
);
|
|
744
744
|
},
|
|
745
|
-
m(s,
|
|
746
|
-
O(s, e,
|
|
747
|
-
|
|
745
|
+
m(s, T) {
|
|
746
|
+
O(s, e, T), b(e, n), b(n, r), _e(i, r, null), b(n, u), b(n, c), t[50](c), Ue(
|
|
747
|
+
c,
|
|
748
748
|
/*searchValue*/
|
|
749
749
|
t[1]
|
|
750
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 = [
|
|
@@ -755,31 +755,31 @@ function cn(t) {
|
|
|
755
755
|
t[49]
|
|
756
756
|
),
|
|
757
757
|
I(
|
|
758
|
-
|
|
758
|
+
c,
|
|
759
759
|
"input",
|
|
760
760
|
/*input_1_input_handler*/
|
|
761
761
|
t[51]
|
|
762
762
|
),
|
|
763
763
|
I(
|
|
764
|
-
|
|
764
|
+
c,
|
|
765
765
|
"focus",
|
|
766
766
|
/*focus_handler*/
|
|
767
767
|
t[52]
|
|
768
768
|
),
|
|
769
769
|
I(
|
|
770
|
-
|
|
770
|
+
c,
|
|
771
771
|
"blur",
|
|
772
772
|
/*blur_handler*/
|
|
773
773
|
t[53]
|
|
774
774
|
),
|
|
775
775
|
I(
|
|
776
|
-
|
|
776
|
+
c,
|
|
777
777
|
"keydown",
|
|
778
778
|
/*handleKeyDown*/
|
|
779
779
|
t[19]
|
|
780
780
|
),
|
|
781
781
|
I(
|
|
782
|
-
|
|
782
|
+
c,
|
|
783
783
|
"input",
|
|
784
784
|
/*input_handler*/
|
|
785
785
|
t[54]
|
|
@@ -796,46 +796,46 @@ function cn(t) {
|
|
|
796
796
|
))
|
|
797
797
|
], F = !0);
|
|
798
798
|
},
|
|
799
|
-
p(s,
|
|
800
|
-
(!h ||
|
|
799
|
+
p(s, T) {
|
|
800
|
+
(!h || T[0] & /*placeholder*/
|
|
801
801
|
256) && f(
|
|
802
|
-
|
|
802
|
+
c,
|
|
803
803
|
"placeholder",
|
|
804
804
|
/*placeholder*/
|
|
805
805
|
s[8]
|
|
806
|
-
), (!h ||
|
|
806
|
+
), (!h || T[0] & /*placeholder*/
|
|
807
807
|
256) && f(
|
|
808
|
-
|
|
808
|
+
c,
|
|
809
809
|
"aria-label",
|
|
810
810
|
/*placeholder*/
|
|
811
811
|
s[8]
|
|
812
|
-
),
|
|
813
|
-
2 &&
|
|
812
|
+
), T[0] & /*searchValue*/
|
|
813
|
+
2 && c.value !== /*searchValue*/
|
|
814
814
|
s[1] && Ue(
|
|
815
|
-
|
|
815
|
+
c,
|
|
816
816
|
/*searchValue*/
|
|
817
817
|
s[1]
|
|
818
|
-
), (!h ||
|
|
818
|
+
), (!h || T[0] & /*clearButtonTitle*/
|
|
819
819
|
8) && f(
|
|
820
820
|
a,
|
|
821
821
|
"title",
|
|
822
822
|
/*clearButtonTitle*/
|
|
823
823
|
s[3]
|
|
824
|
-
), (!h ||
|
|
824
|
+
), (!h || T[0] & /*searchValue*/
|
|
825
825
|
2) && J(
|
|
826
826
|
a,
|
|
827
827
|
"displayable",
|
|
828
828
|
/*searchValue*/
|
|
829
829
|
s[1] !== ""
|
|
830
830
|
), /*abortController*/
|
|
831
|
-
s[17] ? _ ?
|
|
831
|
+
s[17] ? _ ? T[0] & /*abortController*/
|
|
832
832
|
131072 && G(_, 1) : (_ = Ye(), _.c(), G(_, 1), _.m(o, null)) : _ && (Ze(), Q(_, 1, 1, () => {
|
|
833
833
|
_ = null;
|
|
834
834
|
}), Je()), /*enableReverse*/
|
|
835
|
-
s[5] === !0 ? m ? (m.p(s,
|
|
835
|
+
s[5] === !0 ? m ? (m.p(s, T), T[0] & /*enableReverse*/
|
|
836
836
|
32 && G(m, 1)) : (m = $e(s), m.c(), G(m, 1), m.m(n, C)) : m && (Ze(), Q(m, 1, 1, () => {
|
|
837
837
|
m = null;
|
|
838
|
-
}), Je()), L && L.p && (!h ||
|
|
838
|
+
}), Je()), L && L.p && (!h || T[1] & /*$$scope*/
|
|
839
839
|
65536) && Pt(
|
|
840
840
|
L,
|
|
841
841
|
g,
|
|
@@ -846,18 +846,18 @@ function cn(t) {
|
|
|
846
846
|
g,
|
|
847
847
|
/*$$scope*/
|
|
848
848
|
s[47],
|
|
849
|
-
|
|
849
|
+
T,
|
|
850
850
|
null
|
|
851
851
|
) : Nt(
|
|
852
852
|
/*$$scope*/
|
|
853
853
|
s[47]
|
|
854
854
|
),
|
|
855
855
|
null
|
|
856
|
-
), K === (K = fe(s)) && k ? k.p(s,
|
|
856
|
+
), K === (K = fe(s)) && k ? k.p(s, T) : (k && k.d(1), k = K && K(s), k && (k.c(), k.m(e, null))), (!h || T[0] & /*className*/
|
|
857
857
|
4 && D !== (D = qe(
|
|
858
858
|
/*className*/
|
|
859
859
|
s[2]
|
|
860
|
-
) + " svelte-
|
|
860
|
+
) + " svelte-gpexd2")) && f(e, "class", D), (!h || T[0] & /*className, collapsed, searchValue*/
|
|
861
861
|
22) && J(
|
|
862
862
|
e,
|
|
863
863
|
"can-collapse",
|
|
@@ -867,62 +867,62 @@ function cn(t) {
|
|
|
867
867
|
);
|
|
868
868
|
},
|
|
869
869
|
i(s) {
|
|
870
|
-
h || (G(
|
|
870
|
+
h || (G(i.$$.fragment, s), G(R.$$.fragment, s), G(_), G(m), G(L, s), h = !0);
|
|
871
871
|
},
|
|
872
872
|
o(s) {
|
|
873
|
-
Q(
|
|
873
|
+
Q(i.$$.fragment, s), Q(R.$$.fragment, s), Q(_), Q(m), Q(L, s), h = !1;
|
|
874
874
|
},
|
|
875
875
|
d(s) {
|
|
876
|
-
s && j(e), ge(
|
|
876
|
+
s && j(e), ge(i), t[50](null), ge(R), _ && _.d(), m && m.d(), L && L.d(s), k && k.d(), F = !1, X(U);
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
function un(t, e, n) {
|
|
881
|
-
const r = e[1],
|
|
882
|
-
return t === r && n ? t : ((t -
|
|
881
|
+
const r = e[1], i = e[0], u = r - i;
|
|
882
|
+
return t === r && n ? t : ((t - i) % u + u) % u + i;
|
|
883
883
|
}
|
|
884
884
|
function nt(t) {
|
|
885
885
|
let e = [...t];
|
|
886
886
|
return e[2] < e[0] && (e[2] += 360), e;
|
|
887
887
|
}
|
|
888
888
|
function on(t, e, n) {
|
|
889
|
-
let r, { $$slots:
|
|
889
|
+
let r, { $$slots: i = {}, $$scope: u } = e, { class: c = 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: T = "toggle reverse geocoding" } = e, { searchValue: p = "" } = e, { showFullGeometry: re = !0 } = e, { showPlaceType: Oe = !1 } = e, { showResultsWhileTyping: ke = !0 } = e, { trackProximity: pe = !0 } = e, { types: ve = void 0 } = e, { zoom: Me = 16 } = e, { fetchParameters: ze = {} } = e;
|
|
890
890
|
function ft() {
|
|
891
891
|
V.focus();
|
|
892
892
|
}
|
|
893
893
|
function at() {
|
|
894
894
|
V.blur();
|
|
895
895
|
}
|
|
896
|
-
function De(l,
|
|
897
|
-
n(1,
|
|
896
|
+
function De(l, M = !0) {
|
|
897
|
+
n(1, p = l), M ? (n(13, v = -1), Ve()) : (Ce(), setTimeout(() => {
|
|
898
898
|
V.focus(), V.select();
|
|
899
899
|
}));
|
|
900
900
|
}
|
|
901
|
-
let le = !1, y, S, w, Fe = "", V,
|
|
901
|
+
let le = !1, y, S, w, Fe = "", V, v = -1, W, Te = [], Y, ce, Re;
|
|
902
902
|
const Z = Ft();
|
|
903
903
|
Dt(() => {
|
|
904
904
|
g && (g.setEventHandler(void 0), g.indicateReverse(!1), g.setSelectedMarker(-1), g.setMarkers(void 0, void 0));
|
|
905
905
|
});
|
|
906
906
|
function Ve(l) {
|
|
907
|
-
if (
|
|
908
|
-
n(45, w = y[
|
|
909
|
-
else if (
|
|
910
|
-
const
|
|
911
|
-
Be(
|
|
912
|
-
n(44, S = y), n(45, w = void 0),
|
|
907
|
+
if (ce && (clearTimeout(ce), ce = void 0), v > -1 && y)
|
|
908
|
+
n(45, w = y[v]), n(1, p = w.place_name.replace(/,.*/, "")), n(16, W = void 0), n(44, S = void 0), n(13, v = -1);
|
|
909
|
+
else if (p) {
|
|
910
|
+
const M = l || !He();
|
|
911
|
+
Be(p, { exact: !0 }).then(() => {
|
|
912
|
+
n(44, S = y), n(45, w = void 0), M && dt();
|
|
913
913
|
}).catch((H) => n(16, W = H));
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
function He() {
|
|
917
|
-
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(
|
|
917
|
+
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(p);
|
|
918
918
|
}
|
|
919
|
-
async function Be(l, { byId:
|
|
919
|
+
async function Be(l, { byId: M = !1, exact: H = !1 } = {}) {
|
|
920
920
|
n(16, W = void 0);
|
|
921
921
|
const ae = He(), N = new URLSearchParams();
|
|
922
|
-
_ != null && N.set("language", Array.isArray(_) ? _.join(",") : _),
|
|
922
|
+
_ != null && N.set("language", Array.isArray(_) ? _.join(",") : _), ve && N.set("types", ve.join(",")), ae || (o && N.set("bbox", o.map((ee) => ee.toFixed(6)).join(",")), B && N.set("country", Array.isArray(B) ? B.join(",") : B)), M || (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
923
|
const $ = "https://api.maptiler.com/geocoding/" + encodeURIComponent(l) + ".json?" + N.toString();
|
|
924
924
|
if ($ === Fe) {
|
|
925
|
-
|
|
925
|
+
M ? (n(12, y = void 0), n(45, w = Te[0])) : n(12, y = Te);
|
|
926
926
|
return;
|
|
927
927
|
}
|
|
928
928
|
Fe = $, Y == null || Y.abort();
|
|
@@ -941,16 +941,16 @@ function on(t, e, n) {
|
|
|
941
941
|
if (!Se.ok)
|
|
942
942
|
throw new Error();
|
|
943
943
|
const Ae = await Se.json();
|
|
944
|
-
Z("response", { url: $, featureCollection: Ae }),
|
|
944
|
+
Z("response", { url: $, featureCollection: Ae }), M ? (n(12, y = void 0), n(45, w = Ae.features[0]), Te = [w]) : (n(12, y = Ae.features.filter(h)), Te = y, ae && V.focus());
|
|
945
945
|
}
|
|
946
946
|
function dt() {
|
|
947
947
|
var H, ae, N, $;
|
|
948
948
|
if (!(S != null && S.length) || !F)
|
|
949
949
|
return;
|
|
950
|
-
const l = [180, 90, -180, -90],
|
|
950
|
+
const l = [180, 90, -180, -90], M = !S.some((A) => !A.matching_text);
|
|
951
951
|
for (const A of S)
|
|
952
|
-
(
|
|
953
|
-
g && S.length > 0 && (w && l[0] === l[2] && l[1] === l[3] ? g.flyTo(w.center,
|
|
952
|
+
(M || !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, Me) : g.fitBounds(nt(l), 50));
|
|
954
954
|
}
|
|
955
955
|
function ht(l) {
|
|
956
956
|
n(0, s = P === "always"), De(un(l[0], [-180, 180], !0).toFixed(6) + "," + l[1].toFixed(6));
|
|
@@ -958,16 +958,16 @@ function on(t, e, n) {
|
|
|
958
958
|
function mt(l) {
|
|
959
959
|
if (!y)
|
|
960
960
|
return;
|
|
961
|
-
let
|
|
962
|
-
|
|
961
|
+
let M = l.key === "ArrowDown" ? 1 : l.key === "ArrowUp" ? -1 : 0;
|
|
962
|
+
M ? (v === -1 && M === -1 && n(13, v = y.length), n(13, v += M), v >= y.length && n(13, v = -1), l.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(l.key) && n(13, v = -1);
|
|
963
963
|
}
|
|
964
964
|
function Ce(l = !0) {
|
|
965
|
-
if (ke &&
|
|
966
|
-
|
|
967
|
-
const
|
|
968
|
-
|
|
965
|
+
if (ke && p.length > L) {
|
|
966
|
+
ce && clearTimeout(ce);
|
|
967
|
+
const M = p;
|
|
968
|
+
ce = window.setTimeout(
|
|
969
969
|
() => {
|
|
970
|
-
Be(
|
|
970
|
+
Be(M).catch((H) => n(16, W = H));
|
|
971
971
|
},
|
|
972
972
|
l ? C : 0
|
|
973
973
|
);
|
|
@@ -975,7 +975,7 @@ function on(t, e, n) {
|
|
|
975
975
|
n(12, y = void 0), n(16, W = void 0);
|
|
976
976
|
}
|
|
977
977
|
function Le(l) {
|
|
978
|
-
n(45, w = l), n(1,
|
|
978
|
+
n(45, w = l), n(1, p = l.place_name), n(13, v = -1);
|
|
979
979
|
}
|
|
980
980
|
const _t = () => V.focus();
|
|
981
981
|
function gt(l) {
|
|
@@ -984,28 +984,28 @@ function on(t, e, n) {
|
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
986
|
function yt() {
|
|
987
|
-
|
|
987
|
+
p = this.value, n(1, p), n(11, le), n(25, R);
|
|
988
988
|
}
|
|
989
|
-
const bt = () => n(11, le = !0), wt = () => n(11, le = !1), kt = () => Ce(),
|
|
990
|
-
n(1,
|
|
991
|
-
},
|
|
989
|
+
const bt = () => n(11, le = !0), wt = () => n(11, le = !1), kt = () => Ce(), pt = () => {
|
|
990
|
+
n(1, p = ""), V.focus();
|
|
991
|
+
}, vt = () => n(0, s = !s), Mt = (l) => n(13, v = l), Tt = (l) => Le(l), Rt = () => n(13, v = -1), xt = () => {
|
|
992
992
|
};
|
|
993
993
|
return t.$$set = (l) => {
|
|
994
|
-
"class" in l && n(2,
|
|
994
|
+
"class" in l && n(2, c = 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, T = l.reverseButtonTitle), "searchValue" in l && n(1, p = 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, pe = l.trackProximity), "types" in l && n(38, ve = l.types), "zoom" in l && n(39, Me = l.zoom), "fetchParameters" in l && n(40, ze = l.fetchParameters), "$$scope" in l && n(47, u = l.$$scope);
|
|
995
995
|
}, t.$$.update = () => {
|
|
996
996
|
if (t.$$.dirty[1] & /*trackProximity*/
|
|
997
|
-
64 && (
|
|
997
|
+
64 && (pe || n(22, k = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
998
998
|
33556480 && setTimeout(() => {
|
|
999
|
-
n(14, Re = le), R && !le && n(1,
|
|
999
|
+
n(14, Re = le), R && !le && n(1, p = "");
|
|
1000
1000
|
}), t.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
1001
|
-
4098 && (
|
|
1001
|
+
4098 && (p || (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
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*/
|
|
1003
1003
|
536870912 | t.$$.dirty[1] & /*mapController, picked, zoom*/
|
|
1004
|
-
16644 && g && w && F && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? g.flyTo(w.center,
|
|
1004
|
+
16644 && g && w && F && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? g.flyTo(w.center, Me) : g.fitBounds(nt(w.bbox), 50), n(12, y = void 0), n(44, S = void 0), n(13, v = -1)), t.$$.dirty[0] & /*listFeatures*/
|
|
1005
1005
|
4096 | t.$$.dirty[1] & /*markedFeatures*/
|
|
1006
1006
|
8192 && S !== y && n(44, S = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
|
|
1007
1007
|
24580 && g && g.setMarkers(S, w), t.$$.dirty[0] & /*searchValue*/
|
|
1008
|
-
2 && n(13,
|
|
1008
|
+
2 && n(13, v = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
1009
1009
|
20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
|
|
1010
1010
|
68 && g && g.setEventHandler((l) => {
|
|
1011
1011
|
switch (l.type) {
|
|
@@ -1013,28 +1013,28 @@ function on(t, e, n) {
|
|
|
1013
1013
|
s && ht(l.coordinates);
|
|
1014
1014
|
break;
|
|
1015
1015
|
case "proximityChange":
|
|
1016
|
-
n(22, k =
|
|
1016
|
+
n(22, k = pe ? l.proximity : void 0);
|
|
1017
1017
|
break;
|
|
1018
1018
|
case "markerClick":
|
|
1019
1019
|
{
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1020
|
+
const M = y == null ? void 0 : y.find((H) => H.id === l.id);
|
|
1021
|
+
M && Le(M);
|
|
1022
1022
|
}
|
|
1023
1023
|
break;
|
|
1024
1024
|
case "markerMouseEnter":
|
|
1025
|
-
n(13,
|
|
1025
|
+
n(13, v = Re ? (y == null ? void 0 : y.findIndex((M) => M.id === l.id)) ?? -1 : -1);
|
|
1026
1026
|
break;
|
|
1027
1027
|
case "markerMouseLeave":
|
|
1028
|
-
n(13,
|
|
1028
|
+
n(13, v = -1);
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
1031
|
}), t.$$.dirty[0] & /*selectedItemIndex*/
|
|
1032
1032
|
8192 | t.$$.dirty[1] & /*mapController*/
|
|
1033
|
-
4 && (g == null || g.setSelectedMarker(
|
|
1034
|
-
12288 && n(46, r = y == null ? void 0 : y[
|
|
1033
|
+
4 && (g == null || g.setSelectedMarker(v)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
1034
|
+
12288 && n(46, r = y == null ? void 0 : y[v]), t.$$.dirty[0] & /*searchValue*/
|
|
1035
1035
|
2 | t.$$.dirty[1] & /*mapController*/
|
|
1036
1036
|
4) {
|
|
1037
|
-
const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(
|
|
1037
|
+
const l = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(p);
|
|
1038
1038
|
g == null || g.setReverseMarker(l ? [Number(l[1]), Number(l[2])] : void 0);
|
|
1039
1039
|
}
|
|
1040
1040
|
t.$$.dirty[1] & /*selected*/
|
|
@@ -1044,24 +1044,24 @@ function on(t, e, n) {
|
|
|
1044
1044
|
4096 && Z("featuresListed", y), t.$$.dirty[1] & /*markedFeatures*/
|
|
1045
1045
|
8192 && Z("featuresMarked", S), t.$$.dirty[0] & /*reverseActive*/
|
|
1046
1046
|
1 && Z("reverseToggle", s), t.$$.dirty[0] & /*searchValue*/
|
|
1047
|
-
2 && Z("queryChange",
|
|
1047
|
+
2 && Z("queryChange", p), t.$$.dirty[0] & /*reverseActive*/
|
|
1048
1048
|
1 | t.$$.dirty[1] & /*mapController*/
|
|
1049
1049
|
4 && g && g.indicateReverse(s);
|
|
1050
1050
|
}, [
|
|
1051
1051
|
s,
|
|
1052
|
-
|
|
1053
|
-
|
|
1052
|
+
p,
|
|
1053
|
+
c,
|
|
1054
1054
|
a,
|
|
1055
1055
|
x,
|
|
1056
1056
|
P,
|
|
1057
1057
|
D,
|
|
1058
1058
|
fe,
|
|
1059
1059
|
K,
|
|
1060
|
-
|
|
1060
|
+
T,
|
|
1061
1061
|
Oe,
|
|
1062
1062
|
le,
|
|
1063
1063
|
y,
|
|
1064
|
-
|
|
1064
|
+
v,
|
|
1065
1065
|
Re,
|
|
1066
1066
|
V,
|
|
1067
1067
|
W,
|
|
@@ -1085,9 +1085,9 @@ function on(t, e, n) {
|
|
|
1085
1085
|
L,
|
|
1086
1086
|
re,
|
|
1087
1087
|
ke,
|
|
1088
|
+
pe,
|
|
1088
1089
|
ve,
|
|
1089
1090
|
Me,
|
|
1090
|
-
Te,
|
|
1091
1091
|
ze,
|
|
1092
1092
|
ft,
|
|
1093
1093
|
at,
|
|
@@ -1096,17 +1096,17 @@ function on(t, e, n) {
|
|
|
1096
1096
|
w,
|
|
1097
1097
|
r,
|
|
1098
1098
|
u,
|
|
1099
|
-
|
|
1099
|
+
i,
|
|
1100
1100
|
_t,
|
|
1101
1101
|
gt,
|
|
1102
1102
|
yt,
|
|
1103
1103
|
bt,
|
|
1104
1104
|
wt,
|
|
1105
1105
|
kt,
|
|
1106
|
+
pt,
|
|
1106
1107
|
vt,
|
|
1107
1108
|
Mt,
|
|
1108
1109
|
Tt,
|
|
1109
|
-
pt,
|
|
1110
1110
|
Rt,
|
|
1111
1111
|
xt
|
|
1112
1112
|
];
|
|
@@ -1208,28 +1208,28 @@ function lt(t) {
|
|
|
1208
1208
|
return "on" + t[0].toUpperCase() + t.slice(1);
|
|
1209
1209
|
}
|
|
1210
1210
|
const dn = Et(function(e, n) {
|
|
1211
|
-
const r = Ke(),
|
|
1212
|
-
for (const
|
|
1213
|
-
delete u[lt(
|
|
1211
|
+
const r = Ke(), i = Ke(), u = { ...e };
|
|
1212
|
+
for (const c of rt)
|
|
1213
|
+
delete u[lt(c)];
|
|
1214
1214
|
Pe(() => {
|
|
1215
1215
|
if (!r.current)
|
|
1216
1216
|
throw new Error();
|
|
1217
|
-
const
|
|
1217
|
+
const c = new sn({
|
|
1218
1218
|
target: r.current,
|
|
1219
1219
|
props: u
|
|
1220
1220
|
});
|
|
1221
|
-
return
|
|
1221
|
+
return i.current = c, () => c.$destroy();
|
|
1222
1222
|
}, []);
|
|
1223
|
-
for (const
|
|
1223
|
+
for (const c of fn)
|
|
1224
1224
|
Pe(() => {
|
|
1225
|
-
|
|
1226
|
-
}, [e[
|
|
1227
|
-
for (const
|
|
1228
|
-
const d = e[lt(
|
|
1225
|
+
i.current && e[c] !== void 0 && i.current.$set({ [c]: e[c] });
|
|
1226
|
+
}, [e[c]]);
|
|
1227
|
+
for (const c of rt) {
|
|
1228
|
+
const d = e[lt(c)];
|
|
1229
1229
|
Pe(() => {
|
|
1230
1230
|
var o;
|
|
1231
|
-
(o =
|
|
1232
|
-
|
|
1231
|
+
(o = i.current) == null || o.$on(
|
|
1232
|
+
c,
|
|
1233
1233
|
d ? (a) => {
|
|
1234
1234
|
d(a.detail);
|
|
1235
1235
|
} : void 0
|
|
@@ -1237,17 +1237,17 @@ const dn = Et(function(e, n) {
|
|
|
1237
1237
|
}, [d]);
|
|
1238
1238
|
}
|
|
1239
1239
|
return zt(n, () => ({
|
|
1240
|
-
setQuery: (
|
|
1240
|
+
setQuery: (c, d = !0) => {
|
|
1241
1241
|
var o;
|
|
1242
|
-
return (o =
|
|
1242
|
+
return (o = i.current) == null ? void 0 : o.setQuery(c, d);
|
|
1243
1243
|
},
|
|
1244
1244
|
focus: () => {
|
|
1245
|
-
var
|
|
1246
|
-
return (
|
|
1245
|
+
var c;
|
|
1246
|
+
return (c = i.current) == null ? void 0 : c.focus();
|
|
1247
1247
|
},
|
|
1248
1248
|
blur: () => {
|
|
1249
|
-
var
|
|
1250
|
-
return (
|
|
1249
|
+
var c;
|
|
1250
|
+
return (c = i.current) == null ? void 0 : c.blur();
|
|
1251
1251
|
}
|
|
1252
1252
|
})), Bt("div", { ref: r });
|
|
1253
1253
|
});
|