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