@neshan-maps-platform/react-openlayers 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/React-Openlayers.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
var ce = {},
|
|
1
|
+
import Le, { createContext as dr, useReducer as pr, forwardRef as vr, useContext as mr, useRef as yr, useState as ue, useImperativeHandle as hr, useEffect as gr } from "react";
|
|
2
|
+
var ce = {}, _r = {
|
|
3
3
|
get exports() {
|
|
4
4
|
return ce;
|
|
5
5
|
},
|
|
6
|
-
set exports(
|
|
7
|
-
ce =
|
|
6
|
+
set exports(u) {
|
|
7
|
+
ce = u;
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, N = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,24 +17,24 @@ var ce = {}, hr = {
|
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
19
|
var Fe;
|
|
20
|
-
function
|
|
20
|
+
function Er() {
|
|
21
21
|
if (Fe)
|
|
22
|
-
return
|
|
22
|
+
return N;
|
|
23
23
|
Fe = 1;
|
|
24
|
-
var
|
|
25
|
-
function A(O,
|
|
26
|
-
var
|
|
27
|
-
x !== void 0 && (j = "" + x),
|
|
28
|
-
for (
|
|
29
|
-
|
|
24
|
+
var u = Le, p = Symbol.for("react.element"), S = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, v = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, F = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function A(O, m, x) {
|
|
26
|
+
var _, T = {}, j = null, C = null;
|
|
27
|
+
x !== void 0 && (j = "" + x), m.key !== void 0 && (j = "" + m.key), m.ref !== void 0 && (C = m.ref);
|
|
28
|
+
for (_ in m)
|
|
29
|
+
b.call(m, _) && !F.hasOwnProperty(_) && (T[_] = m[_]);
|
|
30
30
|
if (O && O.defaultProps)
|
|
31
|
-
for (
|
|
32
|
-
T[
|
|
33
|
-
return { $$typeof:
|
|
31
|
+
for (_ in m = O.defaultProps, m)
|
|
32
|
+
T[_] === void 0 && (T[_] = m[_]);
|
|
33
|
+
return { $$typeof: p, type: O, key: j, ref: C, props: T, _owner: v.current };
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return N.Fragment = S, N.jsx = A, N.jsxs = A, N;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var Y = {};
|
|
38
38
|
/**
|
|
39
39
|
* @license React
|
|
40
40
|
* react-jsx-runtime.development.js
|
|
@@ -45,90 +45,90 @@ var L = {};
|
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
47
|
var Ie;
|
|
48
|
-
function
|
|
48
|
+
function br() {
|
|
49
49
|
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var u = Le, p = Symbol.for("react.element"), S = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), O = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), P = Symbol.iterator, $ = "@@iterator";
|
|
51
|
+
function K(e) {
|
|
52
52
|
if (e === null || typeof e != "object")
|
|
53
53
|
return null;
|
|
54
|
-
var r = P && e[P] || e[
|
|
54
|
+
var r = P && e[P] || e[$];
|
|
55
55
|
return typeof r == "function" ? r : null;
|
|
56
56
|
}
|
|
57
|
-
var w =
|
|
58
|
-
function
|
|
57
|
+
var w = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
|
+
function y(e) {
|
|
59
59
|
{
|
|
60
60
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
61
61
|
t[n - 1] = arguments[n];
|
|
62
|
-
|
|
62
|
+
fe("error", e, t);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function fe(e, r, t) {
|
|
66
66
|
{
|
|
67
67
|
var n = w.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
68
68
|
i !== "" && (r += "%s", t = t.concat([i]));
|
|
69
|
-
var
|
|
69
|
+
var c = t.map(function(o) {
|
|
70
70
|
return String(o);
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
function
|
|
78
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
75
|
+
var H = !1, W = !1, X = !1, Z = !1, Q = !1, V;
|
|
76
|
+
V = Symbol.for("react.module.reference");
|
|
77
|
+
function B(e) {
|
|
78
|
+
return !!(typeof e == "string" || typeof e == "function" || e === b || e === F || Q || e === v || e === x || e === _ || Z || e === C || H || W || X || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === T || e.$$typeof === A || e.$$typeof === O || e.$$typeof === m || // This needs to include all possible module reference object
|
|
79
79
|
// types supported by any Flight configuration anywhere since
|
|
80
80
|
// we don't know which Flight build this will end up being used
|
|
81
81
|
// with.
|
|
82
|
-
e.$$typeof ===
|
|
82
|
+
e.$$typeof === V || e.getModuleId !== void 0));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function s(e, r, t) {
|
|
85
85
|
var n = e.displayName;
|
|
86
86
|
if (n)
|
|
87
87
|
return n;
|
|
88
88
|
var i = r.displayName || r.name || "";
|
|
89
89
|
return i !== "" ? t + "(" + i + ")" : t;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function g(e) {
|
|
92
92
|
return e.displayName || "Context";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function l(e) {
|
|
95
95
|
if (e == null)
|
|
96
96
|
return null;
|
|
97
|
-
if (typeof e.tag == "number" &&
|
|
97
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
98
98
|
return e.displayName || e.name || null;
|
|
99
99
|
if (typeof e == "string")
|
|
100
100
|
return e;
|
|
101
101
|
switch (e) {
|
|
102
|
-
case
|
|
102
|
+
case b:
|
|
103
103
|
return "Fragment";
|
|
104
104
|
case S:
|
|
105
105
|
return "Portal";
|
|
106
|
-
case
|
|
106
|
+
case F:
|
|
107
107
|
return "Profiler";
|
|
108
|
-
case
|
|
108
|
+
case v:
|
|
109
109
|
return "StrictMode";
|
|
110
110
|
case x:
|
|
111
111
|
return "Suspense";
|
|
112
|
-
case
|
|
112
|
+
case _:
|
|
113
113
|
return "SuspenseList";
|
|
114
114
|
}
|
|
115
115
|
if (typeof e == "object")
|
|
116
116
|
switch (e.$$typeof) {
|
|
117
117
|
case O:
|
|
118
118
|
var r = e;
|
|
119
|
-
return
|
|
119
|
+
return g(r) + ".Consumer";
|
|
120
120
|
case A:
|
|
121
121
|
var t = e;
|
|
122
|
-
return
|
|
123
|
-
case
|
|
124
|
-
return
|
|
122
|
+
return g(t._context) + ".Provider";
|
|
123
|
+
case m:
|
|
124
|
+
return s(e, e.render, "ForwardRef");
|
|
125
125
|
case T:
|
|
126
126
|
var n = e.displayName || null;
|
|
127
|
-
return n !== null ? n :
|
|
127
|
+
return n !== null ? n : l(e.type) || "Memo";
|
|
128
128
|
case j: {
|
|
129
|
-
var i = e,
|
|
129
|
+
var i = e, c = i._payload, o = i._init;
|
|
130
130
|
try {
|
|
131
|
-
return
|
|
131
|
+
return l(o(c));
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -136,14 +136,14 @@ function Er() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var h = Object.assign, D = 0, de, pe, ve, me, ye, he, ge;
|
|
140
140
|
function _e() {
|
|
141
141
|
}
|
|
142
142
|
_e.__reactDisabledLog = !0;
|
|
143
|
-
function
|
|
143
|
+
function We() {
|
|
144
144
|
{
|
|
145
|
-
if (
|
|
146
|
-
de = console.log, pe = console.info, ve = console.warn, me = console.error, ye = console.group,
|
|
145
|
+
if (D === 0) {
|
|
146
|
+
de = console.log, pe = console.info, ve = console.warn, me = console.error, ye = console.group, he = console.groupCollapsed, ge = console.groupEnd;
|
|
147
147
|
var e = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -160,77 +160,77 @@ function Er() {
|
|
|
160
160
|
groupEnd: e
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
D++;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Ve() {
|
|
167
167
|
{
|
|
168
|
-
if (
|
|
168
|
+
if (D--, D === 0) {
|
|
169
169
|
var e = {
|
|
170
170
|
configurable: !0,
|
|
171
171
|
enumerable: !0,
|
|
172
172
|
writable: !0
|
|
173
173
|
};
|
|
174
174
|
Object.defineProperties(console, {
|
|
175
|
-
log:
|
|
175
|
+
log: h({}, e, {
|
|
176
176
|
value: de
|
|
177
177
|
}),
|
|
178
|
-
info:
|
|
178
|
+
info: h({}, e, {
|
|
179
179
|
value: pe
|
|
180
180
|
}),
|
|
181
|
-
warn:
|
|
181
|
+
warn: h({}, e, {
|
|
182
182
|
value: ve
|
|
183
183
|
}),
|
|
184
|
-
error:
|
|
184
|
+
error: h({}, e, {
|
|
185
185
|
value: me
|
|
186
186
|
}),
|
|
187
|
-
group:
|
|
187
|
+
group: h({}, e, {
|
|
188
188
|
value: ye
|
|
189
189
|
}),
|
|
190
|
-
groupCollapsed:
|
|
191
|
-
value: ge
|
|
192
|
-
}),
|
|
193
|
-
groupEnd: b({}, e, {
|
|
190
|
+
groupCollapsed: h({}, e, {
|
|
194
191
|
value: he
|
|
192
|
+
}),
|
|
193
|
+
groupEnd: h({}, e, {
|
|
194
|
+
value: ge
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
D < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
function
|
|
201
|
+
var ee = w.ReactCurrentDispatcher, re;
|
|
202
|
+
function U(e, r, t) {
|
|
203
203
|
{
|
|
204
|
-
if (
|
|
204
|
+
if (re === void 0)
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
207
|
} catch (i) {
|
|
208
208
|
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
209
|
-
|
|
209
|
+
re = n && n[1] || "";
|
|
210
210
|
}
|
|
211
211
|
return `
|
|
212
|
-
` +
|
|
212
|
+
` + re + e;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var te = !1, q;
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
218
|
+
q = new Be();
|
|
219
219
|
}
|
|
220
220
|
function Ee(e, r) {
|
|
221
|
-
if (!e ||
|
|
221
|
+
if (!e || te)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
224
|
-
var t =
|
|
224
|
+
var t = q.get(e);
|
|
225
225
|
if (t !== void 0)
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
228
|
var n;
|
|
229
|
-
|
|
229
|
+
te = !0;
|
|
230
230
|
var i = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var c;
|
|
233
|
+
c = ee.current, ee.current = null, We();
|
|
234
234
|
try {
|
|
235
235
|
if (r) {
|
|
236
236
|
var o = function() {
|
|
@@ -266,102 +266,102 @@ function Er() {
|
|
|
266
266
|
} catch (k) {
|
|
267
267
|
if (k && n && typeof k.stack == "string") {
|
|
268
268
|
for (var a = k.stack.split(`
|
|
269
|
-
`),
|
|
270
|
-
`),
|
|
271
|
-
|
|
272
|
-
for (;
|
|
273
|
-
if (a[
|
|
274
|
-
if (
|
|
269
|
+
`), E = n.stack.split(`
|
|
270
|
+
`), f = a.length - 1, d = E.length - 1; f >= 1 && d >= 0 && a[f] !== E[d]; )
|
|
271
|
+
d--;
|
|
272
|
+
for (; f >= 1 && d >= 0; f--, d--)
|
|
273
|
+
if (a[f] !== E[d]) {
|
|
274
|
+
if (f !== 1 || d !== 1)
|
|
275
275
|
do
|
|
276
|
-
if (
|
|
276
|
+
if (f--, d--, d < 0 || a[f] !== E[d]) {
|
|
277
277
|
var R = `
|
|
278
|
-
` + a[
|
|
279
|
-
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
278
|
+
` + a[f].replace(" at new ", " at ");
|
|
279
|
+
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, R), R;
|
|
280
280
|
}
|
|
281
|
-
while (
|
|
281
|
+
while (f >= 1 && d >= 0);
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
|
|
286
|
+
te = !1, ee.current = c, Ve(), Error.prepareStackTrace = i;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
return typeof e == "function" &&
|
|
288
|
+
var M = e ? e.displayName || e.name : "", De = M ? U(M) : "";
|
|
289
|
+
return typeof e == "function" && q.set(e, De), De;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Ue(e, r, t) {
|
|
292
292
|
return Ee(e, !1);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function qe(e) {
|
|
295
295
|
var r = e.prototype;
|
|
296
296
|
return !!(r && r.isReactComponent);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function z(e, r, t) {
|
|
299
299
|
if (e == null)
|
|
300
300
|
return "";
|
|
301
301
|
if (typeof e == "function")
|
|
302
|
-
return Ee(e,
|
|
302
|
+
return Ee(e, qe(e));
|
|
303
303
|
if (typeof e == "string")
|
|
304
|
-
return
|
|
304
|
+
return U(e);
|
|
305
305
|
switch (e) {
|
|
306
306
|
case x:
|
|
307
|
-
return
|
|
308
|
-
case
|
|
309
|
-
return
|
|
307
|
+
return U("Suspense");
|
|
308
|
+
case _:
|
|
309
|
+
return U("SuspenseList");
|
|
310
310
|
}
|
|
311
311
|
if (typeof e == "object")
|
|
312
312
|
switch (e.$$typeof) {
|
|
313
|
-
case
|
|
314
|
-
return
|
|
313
|
+
case m:
|
|
314
|
+
return Ue(e.render);
|
|
315
315
|
case T:
|
|
316
|
-
return
|
|
316
|
+
return z(e.type, r, t);
|
|
317
317
|
case j: {
|
|
318
|
-
var n = e, i = n._payload,
|
|
318
|
+
var n = e, i = n._payload, c = n._init;
|
|
319
319
|
try {
|
|
320
|
-
return
|
|
320
|
+
return z(c(i), r, t);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
return "";
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
function
|
|
327
|
+
var J = Object.prototype.hasOwnProperty, be = {}, Re = w.ReactDebugCurrentFrame;
|
|
328
|
+
function G(e) {
|
|
329
329
|
if (e) {
|
|
330
|
-
var r = e._owner, t =
|
|
330
|
+
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
|
331
331
|
Re.setExtraStackFrame(t);
|
|
332
332
|
} else
|
|
333
333
|
Re.setExtraStackFrame(null);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function ze(e, r, t, n, i) {
|
|
336
336
|
{
|
|
337
|
-
var
|
|
337
|
+
var c = Function.call.bind(J);
|
|
338
338
|
for (var o in e)
|
|
339
|
-
if (
|
|
339
|
+
if (c(e, o)) {
|
|
340
340
|
var a = void 0;
|
|
341
341
|
try {
|
|
342
342
|
if (typeof e[o] != "function") {
|
|
343
|
-
var
|
|
344
|
-
throw
|
|
343
|
+
var E = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
344
|
+
throw E.name = "Invariant Violation", E;
|
|
345
345
|
}
|
|
346
346
|
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
|
-
} catch (
|
|
348
|
-
a =
|
|
347
|
+
} catch (f) {
|
|
348
|
+
a = f;
|
|
349
349
|
}
|
|
350
|
-
a && !(a instanceof Error) && (
|
|
350
|
+
a && !(a instanceof Error) && (G(i), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), G(null)), a instanceof Error && !(a.message in be) && (be[a.message] = !0, G(i), y("Failed %s type: %s", t, a.message), G(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
var
|
|
355
|
-
function
|
|
356
|
-
return
|
|
354
|
+
var Je = Array.isArray;
|
|
355
|
+
function ne(e) {
|
|
356
|
+
return Je(e);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Ge(e) {
|
|
359
359
|
{
|
|
360
360
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Ke(e) {
|
|
365
365
|
try {
|
|
366
366
|
return Te(e), !1;
|
|
367
367
|
} catch {
|
|
@@ -372,42 +372,42 @@ function Er() {
|
|
|
372
372
|
return "" + e;
|
|
373
373
|
}
|
|
374
374
|
function Ce(e) {
|
|
375
|
-
if (
|
|
376
|
-
return
|
|
375
|
+
if (Ke(e))
|
|
376
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), Te(e);
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var L = w.ReactCurrentOwner, He = {
|
|
379
379
|
key: !0,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
382
382
|
__source: !0
|
|
383
|
-
}, Pe, Se,
|
|
384
|
-
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
383
|
+
}, Pe, Se, ae;
|
|
384
|
+
ae = {};
|
|
385
|
+
function Xe(e) {
|
|
386
|
+
if (J.call(e, "ref")) {
|
|
387
387
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
388
388
|
if (r && r.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
return e.ref !== void 0;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
393
|
+
function Ze(e) {
|
|
394
|
+
if (J.call(e, "key")) {
|
|
395
395
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
396
396
|
if (r && r.isReactWarning)
|
|
397
397
|
return !1;
|
|
398
398
|
}
|
|
399
399
|
return e.key !== void 0;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
if (typeof e.ref == "string" &&
|
|
403
|
-
var t =
|
|
404
|
-
|
|
401
|
+
function Qe(e, r) {
|
|
402
|
+
if (typeof e.ref == "string" && L.current && r && L.current.stateNode !== r) {
|
|
403
|
+
var t = l(L.current.type);
|
|
404
|
+
ae[t] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', l(L.current.type), e.ref), ae[t] = !0);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function er(e, r) {
|
|
408
408
|
{
|
|
409
409
|
var t = function() {
|
|
410
|
-
Pe || (Pe = !0,
|
|
410
|
+
Pe || (Pe = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
411
411
|
};
|
|
412
412
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
413
413
|
get: t,
|
|
@@ -415,10 +415,10 @@ function Er() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function rr(e, r) {
|
|
419
419
|
{
|
|
420
420
|
var t = function() {
|
|
421
|
-
Se || (Se = !0,
|
|
421
|
+
Se || (Se = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
422
422
|
};
|
|
423
423
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
424
424
|
get: t,
|
|
@@ -426,17 +426,17 @@ function Er() {
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var
|
|
429
|
+
var tr = function(e, r, t, n, i, c, o) {
|
|
430
430
|
var a = {
|
|
431
431
|
// This tag allows us to uniquely identify this as a React Element
|
|
432
|
-
$$typeof:
|
|
432
|
+
$$typeof: p,
|
|
433
433
|
// Built-in properties that belong on the element
|
|
434
434
|
type: e,
|
|
435
435
|
key: r,
|
|
436
436
|
ref: t,
|
|
437
437
|
props: o,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
|
-
_owner:
|
|
439
|
+
_owner: c
|
|
440
440
|
};
|
|
441
441
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
442
442
|
configurable: !1,
|
|
@@ -455,41 +455,41 @@ function Er() {
|
|
|
455
455
|
value: i
|
|
456
456
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
457
457
|
};
|
|
458
|
-
function
|
|
458
|
+
function nr(e, r, t, n, i) {
|
|
459
459
|
{
|
|
460
|
-
var
|
|
461
|
-
t !== void 0 && (Ce(t), a = "" + t),
|
|
462
|
-
for (
|
|
463
|
-
|
|
460
|
+
var c, o = {}, a = null, E = null;
|
|
461
|
+
t !== void 0 && (Ce(t), a = "" + t), Ze(r) && (Ce(r.key), a = "" + r.key), Xe(r) && (E = r.ref, Qe(r, i));
|
|
462
|
+
for (c in r)
|
|
463
|
+
J.call(r, c) && !He.hasOwnProperty(c) && (o[c] = r[c]);
|
|
464
464
|
if (e && e.defaultProps) {
|
|
465
|
-
var
|
|
466
|
-
for (
|
|
467
|
-
o[
|
|
465
|
+
var f = e.defaultProps;
|
|
466
|
+
for (c in f)
|
|
467
|
+
o[c] === void 0 && (o[c] = f[c]);
|
|
468
468
|
}
|
|
469
|
-
if (a ||
|
|
470
|
-
var
|
|
471
|
-
a &&
|
|
469
|
+
if (a || E) {
|
|
470
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
471
|
+
a && er(o, d), E && rr(o, d);
|
|
472
472
|
}
|
|
473
|
-
return
|
|
473
|
+
return tr(e, a, E, i, n, L.current, o);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
function
|
|
476
|
+
var oe = w.ReactCurrentOwner, we = w.ReactDebugCurrentFrame;
|
|
477
|
+
function I(e) {
|
|
478
478
|
if (e) {
|
|
479
|
-
var r = e._owner, t =
|
|
479
|
+
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
|
480
480
|
we.setExtraStackFrame(t);
|
|
481
481
|
} else
|
|
482
482
|
we.setExtraStackFrame(null);
|
|
483
483
|
}
|
|
484
|
-
var
|
|
485
|
-
|
|
486
|
-
function
|
|
487
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
484
|
+
var ie;
|
|
485
|
+
ie = !1;
|
|
486
|
+
function se(e) {
|
|
487
|
+
return typeof e == "object" && e !== null && e.$$typeof === p;
|
|
488
488
|
}
|
|
489
489
|
function Oe() {
|
|
490
490
|
{
|
|
491
|
-
if (
|
|
492
|
-
var e =
|
|
491
|
+
if (oe.current) {
|
|
492
|
+
var e = l(oe.current.type);
|
|
493
493
|
if (e)
|
|
494
494
|
return `
|
|
495
495
|
|
|
@@ -498,7 +498,7 @@ Check the render method of \`` + e + "`.";
|
|
|
498
498
|
return "";
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function ar(e) {
|
|
502
502
|
{
|
|
503
503
|
if (e !== void 0) {
|
|
504
504
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -510,7 +510,7 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
var xe = {};
|
|
513
|
-
function
|
|
513
|
+
function or(e) {
|
|
514
514
|
{
|
|
515
515
|
var r = Oe();
|
|
516
516
|
if (!r) {
|
|
@@ -527,34 +527,34 @@ Check the top-level render call using <` + t + ">.");
|
|
|
527
527
|
if (!e._store || e._store.validated || e.key != null)
|
|
528
528
|
return;
|
|
529
529
|
e._store.validated = !0;
|
|
530
|
-
var t =
|
|
530
|
+
var t = or(r);
|
|
531
531
|
if (xe[t])
|
|
532
532
|
return;
|
|
533
533
|
xe[t] = !0;
|
|
534
534
|
var n = "";
|
|
535
|
-
e && e._owner && e._owner !==
|
|
535
|
+
e && e._owner && e._owner !== oe.current && (n = " It was passed a child from " + l(e._owner.type) + "."), I(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), I(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function ke(e, r) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof e != "object")
|
|
541
541
|
return;
|
|
542
|
-
if (
|
|
542
|
+
if (ne(e))
|
|
543
543
|
for (var t = 0; t < e.length; t++) {
|
|
544
544
|
var n = e[t];
|
|
545
|
-
|
|
545
|
+
se(n) && je(n, r);
|
|
546
546
|
}
|
|
547
|
-
else if (
|
|
547
|
+
else if (se(e))
|
|
548
548
|
e._store && (e._store.validated = !0);
|
|
549
549
|
else if (e) {
|
|
550
|
-
var i =
|
|
550
|
+
var i = K(e);
|
|
551
551
|
if (typeof i == "function" && i !== e.entries)
|
|
552
|
-
for (var
|
|
553
|
-
|
|
552
|
+
for (var c = i.call(e), o; !(o = c.next()).done; )
|
|
553
|
+
se(o.value) && je(o.value, r);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ir(e) {
|
|
558
558
|
{
|
|
559
559
|
var r = e.type;
|
|
560
560
|
if (r == null || typeof r == "string")
|
|
@@ -562,178 +562,180 @@ Check the top-level render call using <` + t + ">.");
|
|
|
562
562
|
var t;
|
|
563
563
|
if (typeof r == "function")
|
|
564
564
|
t = r.propTypes;
|
|
565
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
565
|
+
else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
|
|
566
566
|
// Inner props are checked in the reconciler.
|
|
567
567
|
r.$$typeof === T))
|
|
568
568
|
t = r.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (t) {
|
|
572
|
-
var n =
|
|
573
|
-
|
|
574
|
-
} else if (r.PropTypes !== void 0 && !
|
|
575
|
-
|
|
576
|
-
var i =
|
|
577
|
-
|
|
572
|
+
var n = l(r);
|
|
573
|
+
ze(t, e.props, "prop", n, e);
|
|
574
|
+
} else if (r.PropTypes !== void 0 && !ie) {
|
|
575
|
+
ie = !0;
|
|
576
|
+
var i = l(r);
|
|
577
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
579
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function sr(e) {
|
|
583
583
|
{
|
|
584
584
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
585
585
|
var n = r[t];
|
|
586
586
|
if (n !== "children" && n !== "key") {
|
|
587
|
-
|
|
587
|
+
I(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), I(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
e.ref !== null && (
|
|
591
|
+
e.ref !== null && (I(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function Ae(e, r, t, n, i,
|
|
594
|
+
function Ae(e, r, t, n, i, c) {
|
|
595
595
|
{
|
|
596
|
-
var o =
|
|
596
|
+
var o = B(e);
|
|
597
597
|
if (!o) {
|
|
598
598
|
var a = "";
|
|
599
599
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
600
|
-
var
|
|
601
|
-
|
|
602
|
-
var
|
|
603
|
-
e === null ?
|
|
600
|
+
var E = ar(i);
|
|
601
|
+
E ? a += E : a += Oe();
|
|
602
|
+
var f;
|
|
603
|
+
e === null ? f = "null" : ne(e) ? f = "array" : e !== void 0 && e.$$typeof === p ? (f = "<" + (l(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, a);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
return
|
|
605
|
+
var d = nr(e, r, t, i, c);
|
|
606
|
+
if (d == null)
|
|
607
|
+
return d;
|
|
608
608
|
if (o) {
|
|
609
609
|
var R = r.children;
|
|
610
610
|
if (R !== void 0)
|
|
611
611
|
if (n)
|
|
612
|
-
if (
|
|
613
|
-
for (var
|
|
614
|
-
ke(R[
|
|
612
|
+
if (ne(R)) {
|
|
613
|
+
for (var M = 0; M < R.length; M++)
|
|
614
|
+
ke(R[M], e);
|
|
615
615
|
Object.freeze && Object.freeze(R);
|
|
616
616
|
} else
|
|
617
|
-
|
|
617
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
618
|
else
|
|
619
619
|
ke(R, e);
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === b ? sr(d) : ir(d), d;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function ur(e, r, t) {
|
|
625
625
|
return Ae(e, r, t, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function cr(e, r, t) {
|
|
628
628
|
return Ae(e, r, t, !1);
|
|
629
629
|
}
|
|
630
|
-
var lr =
|
|
631
|
-
|
|
632
|
-
}()),
|
|
630
|
+
var lr = cr, fr = ur;
|
|
631
|
+
Y.Fragment = b, Y.jsx = lr, Y.jsxs = fr;
|
|
632
|
+
}()), Y;
|
|
633
633
|
}
|
|
634
|
-
(function(
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
636
|
-
})(
|
|
637
|
-
const
|
|
638
|
-
const
|
|
639
|
-
map:
|
|
634
|
+
(function(u) {
|
|
635
|
+
process.env.NODE_ENV === "production" ? u.exports = Er() : u.exports = br();
|
|
636
|
+
})(_r);
|
|
637
|
+
const le = ce.jsx;
|
|
638
|
+
const Rr = "_map_an20y_2", Tr = "_touch_an20y_26", Cr = "_floaten_an20y_45", Pr = "_float_an20y_45", Sr = {
|
|
639
|
+
map: Rr,
|
|
640
640
|
"map-popup-container": "_map-popup-container_an20y_7",
|
|
641
|
-
touch:
|
|
641
|
+
touch: Tr,
|
|
642
642
|
"mobile-layers-button": "_mobile-layers-button_an20y_30",
|
|
643
|
-
floaten:
|
|
644
|
-
float:
|
|
645
|
-
}, Ne = (
|
|
643
|
+
floaten: Cr,
|
|
644
|
+
float: Pr
|
|
645
|
+
}, Ne = (u) => u ? u instanceof Object ? [u.longitude, u.latitude] : u : void 0, wr = async () => {
|
|
646
646
|
try {
|
|
647
|
-
const
|
|
648
|
-
(S,
|
|
647
|
+
const p = await new Promise(
|
|
648
|
+
(S, b) => {
|
|
649
649
|
navigator.geolocation.getCurrentPosition(
|
|
650
|
-
(
|
|
651
|
-
S(
|
|
650
|
+
(v) => {
|
|
651
|
+
S(v);
|
|
652
652
|
},
|
|
653
|
-
(
|
|
653
|
+
(v) => b(v)
|
|
654
654
|
);
|
|
655
655
|
}
|
|
656
656
|
);
|
|
657
|
-
return
|
|
658
|
-
} catch (
|
|
659
|
-
|
|
657
|
+
return p && Ne(p.coords) || Object.values(Me());
|
|
658
|
+
} catch (u) {
|
|
659
|
+
console.error(u);
|
|
660
|
+
const p = Me();
|
|
661
|
+
return [p.longitude, p.latitude];
|
|
660
662
|
}
|
|
661
|
-
},
|
|
662
|
-
longitude:
|
|
663
|
-
latitude:
|
|
663
|
+
}, Me = () => ({
|
|
664
|
+
longitude: 51.36281969540723,
|
|
665
|
+
latitude: 35.69672648316882
|
|
664
666
|
}), Or = {
|
|
665
667
|
reverse: "https://api.neshan.org/v4/reverse",
|
|
666
668
|
search: "https://api.neshan.org/v1/search",
|
|
667
669
|
map: "https://static.neshan.org/sdk/openlayers/7.1.0/ol.js"
|
|
668
|
-
}, Ye =
|
|
670
|
+
}, Ye = dr({
|
|
669
671
|
map: null,
|
|
670
672
|
mapType: "neshan",
|
|
671
673
|
mapContainer: null,
|
|
672
|
-
setMap: (
|
|
674
|
+
setMap: (u) => {
|
|
673
675
|
},
|
|
674
|
-
setMapType: (
|
|
676
|
+
setMapType: (u) => {
|
|
675
677
|
},
|
|
676
|
-
setMapContainer: (
|
|
678
|
+
setMapContainer: (u) => {
|
|
677
679
|
}
|
|
678
680
|
}), $e = {
|
|
679
681
|
map: null,
|
|
680
682
|
mapType: "neshan",
|
|
681
683
|
mapContainer: null
|
|
682
|
-
}, xr = (
|
|
683
|
-
switch (
|
|
684
|
+
}, xr = (u, p) => {
|
|
685
|
+
switch (p.type) {
|
|
684
686
|
case "SET_MAP":
|
|
685
687
|
return {
|
|
686
|
-
...
|
|
687
|
-
map:
|
|
688
|
+
...u,
|
|
689
|
+
map: p.payload
|
|
688
690
|
};
|
|
689
691
|
case "SET_MAP_TYPE":
|
|
690
692
|
return {
|
|
691
|
-
...
|
|
692
|
-
title:
|
|
693
|
+
...u,
|
|
694
|
+
title: p.payload
|
|
693
695
|
};
|
|
694
696
|
default:
|
|
695
697
|
return $e;
|
|
696
698
|
}
|
|
697
|
-
}, jr = (
|
|
698
|
-
const [
|
|
699
|
-
...
|
|
700
|
-
setMap: (
|
|
699
|
+
}, jr = (u) => {
|
|
700
|
+
const [p, S] = pr(xr, $e), b = {
|
|
701
|
+
...p,
|
|
702
|
+
setMap: (v) => {
|
|
701
703
|
S({
|
|
702
704
|
type: "SET_MAP",
|
|
703
|
-
payload:
|
|
705
|
+
payload: v
|
|
704
706
|
});
|
|
705
707
|
},
|
|
706
|
-
setMapType: (
|
|
708
|
+
setMapType: (v) => {
|
|
707
709
|
S({
|
|
708
710
|
type: "SET_MAP_TYPE",
|
|
709
|
-
payload:
|
|
711
|
+
payload: v
|
|
710
712
|
});
|
|
711
713
|
},
|
|
712
|
-
setMapContainer: (
|
|
714
|
+
setMapContainer: (v) => {
|
|
713
715
|
S({
|
|
714
716
|
type: "SET_MAP_CONTAINER",
|
|
715
|
-
payload:
|
|
717
|
+
payload: v
|
|
716
718
|
});
|
|
717
719
|
}
|
|
718
720
|
};
|
|
719
|
-
return /* @__PURE__ */
|
|
720
|
-
}, Ar =
|
|
721
|
+
return /* @__PURE__ */ le(Ye.Provider, { value: b, children: u.children });
|
|
722
|
+
}, Ar = vr(
|
|
721
723
|
({
|
|
722
|
-
options:
|
|
723
|
-
mapKey:
|
|
724
|
+
options: u,
|
|
725
|
+
mapKey: p,
|
|
724
726
|
serviceKey: S = "",
|
|
725
|
-
zoom:
|
|
726
|
-
defaultType:
|
|
727
|
-
scale:
|
|
727
|
+
zoom: b = 12,
|
|
728
|
+
defaultType: v = "neshan",
|
|
729
|
+
scale: F,
|
|
728
730
|
center: A,
|
|
729
731
|
poi: O = !0,
|
|
730
|
-
traffic:
|
|
732
|
+
traffic: m = !0,
|
|
731
733
|
onInit: x,
|
|
732
|
-
className:
|
|
734
|
+
className: _,
|
|
733
735
|
style: T
|
|
734
736
|
}, j) => {
|
|
735
|
-
const C =
|
|
736
|
-
|
|
737
|
+
const C = mr(Ye), P = yr(null), [$, K] = ue(!1), [w, y] = ue(null), [fe, H] = ue();
|
|
738
|
+
hr(
|
|
737
739
|
j,
|
|
738
740
|
() => ({
|
|
739
741
|
get mapContainer() {
|
|
@@ -746,75 +748,82 @@ const br = "_map_an20y_2", Rr = "_touch_an20y_26", Tr = "_floaten_an20y_45", Cr
|
|
|
746
748
|
return C.map;
|
|
747
749
|
},
|
|
748
750
|
get isInitiated() {
|
|
749
|
-
return
|
|
751
|
+
return $;
|
|
750
752
|
}
|
|
751
753
|
}),
|
|
752
|
-
[P, C.map,
|
|
754
|
+
[P, C.map, $]
|
|
753
755
|
);
|
|
754
|
-
const
|
|
755
|
-
var
|
|
756
|
+
const W = () => {
|
|
757
|
+
var g, l;
|
|
756
758
|
if (w)
|
|
757
759
|
return w;
|
|
758
|
-
const
|
|
759
|
-
if (
|
|
760
|
-
return
|
|
761
|
-
Array.from(
|
|
760
|
+
const s = (l = (g = P.current) == null ? void 0 : g.querySelector(".ol-viewport")) == null ? void 0 : l.querySelectorAll("div:last-child");
|
|
761
|
+
if (s)
|
|
762
|
+
return y(
|
|
763
|
+
Array.from(s)[s.length - 1]
|
|
762
764
|
), w;
|
|
765
|
+
}, X = () => {
|
|
766
|
+
const s = W();
|
|
767
|
+
s == null || s.style.setProperty("scale", "" + F);
|
|
763
768
|
}, Z = () => {
|
|
764
|
-
const
|
|
765
|
-
|
|
766
|
-
}, Q = () => {
|
|
767
|
-
const l =
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}, B = async () => {
|
|
776
|
-
var p;
|
|
777
|
-
if (console.log(1), !P.current)
|
|
769
|
+
const s = W();
|
|
770
|
+
s == null || s.style.setProperty("bottom", "0.2em"), s == null || s.style.setProperty("left", "0.4em");
|
|
771
|
+
}, Q = (s, g = "my-openlayer") => {
|
|
772
|
+
const l = document.getElementById(g);
|
|
773
|
+
if (l)
|
|
774
|
+
return l;
|
|
775
|
+
const h = document.createElement("script");
|
|
776
|
+
return h.src = s, h.id = g, document.getElementsByTagName("head")[0].appendChild(h), h;
|
|
777
|
+
}, V = async () => {
|
|
778
|
+
var h;
|
|
779
|
+
if (!P.current)
|
|
778
780
|
return;
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
const _ = new ol.Map({
|
|
781
|
+
const s = Ne(A);
|
|
782
|
+
H(s);
|
|
783
|
+
const g = s || await wr(), l = new ol.Map({
|
|
783
784
|
target: P.current,
|
|
784
|
-
key:
|
|
785
|
-
mapType:
|
|
785
|
+
key: p || "",
|
|
786
|
+
mapType: v,
|
|
786
787
|
// poi: store.state.poiLayer,
|
|
787
788
|
poi: O,
|
|
788
789
|
// traffic: store.state.trafficLayer,
|
|
789
|
-
traffic:
|
|
790
|
+
traffic: m,
|
|
790
791
|
view: new ol.View({
|
|
791
792
|
// @ts-ignore
|
|
792
|
-
center: ol.proj.fromLonLat(
|
|
793
|
-
zoom:
|
|
793
|
+
center: ol.proj.fromLonLat(g),
|
|
794
|
+
zoom: b,
|
|
794
795
|
smoothExtentConstraint: !0
|
|
795
796
|
// projection: 'EPSG:4326' //Default was EPSG:3857
|
|
796
797
|
}),
|
|
797
798
|
controls: [],
|
|
798
|
-
...
|
|
799
|
+
...u
|
|
799
800
|
});
|
|
800
|
-
|
|
801
|
-
},
|
|
802
|
-
|
|
801
|
+
l.setMapType(v), C.setMap(l), (h = C.map) == null || h.setMapType(v), C.setMapType(v), K(!0), x && x(ol, l);
|
|
802
|
+
}, B = () => {
|
|
803
|
+
let s, g, l;
|
|
804
|
+
return s = new Promise((h, D) => {
|
|
805
|
+
l = D, g = h, V().then(() => {
|
|
806
|
+
X(), Z(), g();
|
|
807
|
+
}).catch(() => {
|
|
808
|
+
l();
|
|
809
|
+
});
|
|
810
|
+
}), { promise: s, cancelPromise: () => l() };
|
|
803
811
|
};
|
|
804
812
|
return gr(() => {
|
|
805
|
-
if (P.current && C.setMapContainer(P.current),
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
813
|
+
if (P.current && C.setMapContainer(P.current), typeof ol < "u") {
|
|
814
|
+
const s = B();
|
|
815
|
+
return () => s.cancelPromise();
|
|
816
|
+
} else {
|
|
817
|
+
const s = Q(Or.map), g = () => {
|
|
818
|
+
B();
|
|
819
|
+
};
|
|
820
|
+
return s.addEventListener("load", g), () => s.removeEventListener("load", g);
|
|
812
821
|
}
|
|
813
|
-
}, [
|
|
822
|
+
}, []), /* @__PURE__ */ le(jr, { children: /* @__PURE__ */ le(
|
|
814
823
|
"div",
|
|
815
824
|
{
|
|
816
825
|
ref: P,
|
|
817
|
-
className:
|
|
826
|
+
className: _ || Sr.map,
|
|
818
827
|
style: T
|
|
819
828
|
}
|
|
820
829
|
) });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(D,
|
|
1
|
+
(function(D,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],g):(D=typeof globalThis<"u"?globalThis:D||self,g(D.ReactOpenlayers={},D.React))})(this,function(D,g){"use strict";var $={},Ve={get exports(){return $},set exports(u){$=u}},Y={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var de;function Be(){if(de)return Y;de=1;var u=g,p=Symbol.for("react.element"),w=Symbol.for("react.fragment"),R=Object.prototype.hasOwnProperty,v=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I={key:!0,ref:!0,__self:!0,__source:!0};function F(x,m,j){var E,P={},k=null,C=null;j!==void 0&&(k=""+j),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(C=m.ref);for(E in m)R.call(m,E)&&!I.hasOwnProperty(E)&&(P[E]=m[E]);if(x&&x.defaultProps)for(E in m=x.defaultProps,m)P[E]===void 0&&(P[E]=m[E]);return{$$typeof:p,type:x,key:k,ref:C,props:P,_owner:v.current}}return Y.Fragment=w,Y.jsx=F,Y.jsxs=F,Y}var W={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+a[
|
|
17
|
+
*/var pe;function Ue(){return pe||(pe=1,process.env.NODE_ENV!=="production"&&function(){var u=g,p=Symbol.for("react.element"),w=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),x=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),S=Symbol.iterator,B="@@iterator";function q(e){if(e===null||typeof e!="object")return null;var r=S&&e[S]||e[B];return typeof r=="function"?r:null}var O=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];ge("error",e,t)}}function ge(e,r,t){{var n=O.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var c=t.map(function(o){return String(o)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var ee=!1,U=!1,re=!1,te=!1,ne=!1,z;z=Symbol.for("react.module.reference");function J(e){return!!(typeof e=="string"||typeof e=="function"||e===R||e===I||ne||e===v||e===j||e===E||te||e===C||ee||U||re||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===P||e.$$typeof===F||e.$$typeof===x||e.$$typeof===m||e.$$typeof===z||e.getModuleId!==void 0))}function s(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function _(e){return e.displayName||"Context"}function l(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case w:return"Portal";case I:return"Profiler";case v:return"StrictMode";case j:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var r=e;return _(r)+".Consumer";case F:var t=e;return _(t._context)+".Provider";case m:return s(e,e.render,"ForwardRef");case P:var n=e.displayName||null;return n!==null?n:l(e.type)||"Memo";case k:{var i=e,c=i._payload,o=i._init;try{return l(o(c))}catch{return null}}}return null}var h=Object.assign,M=0,_e,Ee,be,Re,Te,Pe,Ce;function Se(){}Se.__reactDisabledLog=!0;function Ze(){{if(M===0){_e=console.log,Ee=console.info,be=console.warn,Re=console.error,Te=console.group,Pe=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function $e(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:_e}),info:h({},e,{value:Ee}),warn:h({},e,{value:be}),error:h({},e,{value:Re}),group:h({},e,{value:Te}),groupCollapsed:h({},e,{value:Pe}),groupEnd:h({},e,{value:Ce})})}M<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=O.ReactCurrentDispatcher,oe;function G(e,r,t){{if(oe===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);oe=n&&n[1]||""}return`
|
|
18
|
+
`+oe+e}}var ie=!1,K;{var Qe=typeof WeakMap=="function"?WeakMap:Map;K=new Qe}function we(e,r){if(!e||ie)return"";{var t=K.get(e);if(t!==void 0)return t}var n;ie=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=ae.current,ae.current=null,Ze();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(A){n=A}Reflect.construct(e,[],o)}else{try{o.call()}catch(A){n=A}e.call(o.prototype)}}else{try{throw Error()}catch(A){n=A}e()}}catch(A){if(A&&n&&typeof A.stack=="string"){for(var a=A.stack.split(`
|
|
19
|
+
`),b=n.stack.split(`
|
|
20
|
+
`),f=a.length-1,d=b.length-1;f>=1&&d>=0&&a[f]!==b[d];)d--;for(;f>=1&&d>=0;f--,d--)if(a[f]!==b[d]){if(f!==1||d!==1)do if(f--,d--,d<0||a[f]!==b[d]){var T=`
|
|
21
|
+
`+a[f].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,T),T}while(f>=1&&d>=0);break}}}finally{ie=!1,ae.current=c,$e(),Error.prepareStackTrace=i}var N=e?e.displayName||e.name:"",We=N?G(N):"";return typeof e=="function"&&K.set(e,We),We}function qe(e,r,t){return we(e,!1)}function er(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function H(e,r,t){if(e==null)return"";if(typeof e=="function")return we(e,er(e));if(typeof e=="string")return G(e);switch(e){case j:return G("Suspense");case E:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return qe(e.render);case P:return H(e.type,r,t);case k:{var n=e,i=n._payload,c=n._init;try{return H(c(i),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,Oe={},xe=O.ReactDebugCurrentFrame;function Z(e){if(e){var r=e._owner,t=H(e.type,e._source,r?r.type:null);xe.setExtraStackFrame(t)}else xe.setExtraStackFrame(null)}function rr(e,r,t,n,i){{var c=Function.call.bind(X);for(var o in e)if(c(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var b=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(Z(i),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),Z(null)),a instanceof Error&&!(a.message in Oe)&&(Oe[a.message]=!0,Z(i),y("Failed %s type: %s",t,a.message),Z(null))}}}var tr=Array.isArray;function se(e){return tr(e)}function nr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ar(e){try{return je(e),!1}catch{return!0}}function je(e){return""+e}function ke(e){if(ar(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nr(e)),je(e)}var V=O.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Ae,De,ue;ue={};function ir(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function sr(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ur(e,r){if(typeof e.ref=="string"&&V.current&&r&&V.current.stateNode!==r){var t=l(V.current.type);ue[t]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',l(V.current.type),e.ref),ue[t]=!0)}}function cr(e,r){{var t=function(){Ae||(Ae=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function lr(e,r){{var t=function(){De||(De=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var fr=function(e,r,t,n,i,c,o){var a={$$typeof:p,type:e,key:r,ref:t,props:o,_owner:c};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function dr(e,r,t,n,i){{var c,o={},a=null,b=null;t!==void 0&&(ke(t),a=""+t),sr(r)&&(ke(r.key),a=""+r.key),ir(r)&&(b=r.ref,ur(r,i));for(c in r)X.call(r,c)&&!or.hasOwnProperty(c)&&(o[c]=r[c]);if(e&&e.defaultProps){var f=e.defaultProps;for(c in f)o[c]===void 0&&(o[c]=f[c])}if(a||b){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&cr(o,d),b&&lr(o,d)}return fr(e,a,b,i,n,V.current,o)}}var ce=O.ReactCurrentOwner,Fe=O.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=H(e.type,e._source,r?r.type:null);Fe.setExtraStackFrame(t)}else Fe.setExtraStackFrame(null)}var le;le=!1;function fe(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function Me(){{if(ce.current){var e=l(ce.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function pr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+r+":"+t+"."}return""}}var
|
|
25
|
+
Check your code at `+r+":"+t+"."}return""}}var Ie={};function vr(e){{var r=Me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
27
|
+
Check the top-level render call using <`+t+">.")}return r}}function Le(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=vr(r);if(Ie[t])return;Ie[t]=!0;var n="";e&&e._owner&&e._owner!==ce.current&&(n=" It was passed a child from "+l(e._owner.type)+"."),L(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),L(null)}}function Ne(e,r){{if(typeof e!="object")return;if(se(e))for(var t=0;t<e.length;t++){var n=e[t];fe(n)&&Le(n,r)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var i=q(e);if(typeof i=="function"&&i!==e.entries)for(var c=i.call(e),o;!(o=c.next()).done;)fe(o.value)&&Le(o.value,r)}}}function mr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===P))t=r.propTypes;else return;if(t){var n=l(r);rr(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!le){le=!0;var i=l(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){L(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),L(null);break}}e.ref!==null&&(L(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}function Ye(e,r,t,n,i,c){{var o=J(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=pr(i);b?a+=b:a+=Me();var f;e===null?f="null":se(e)?f="array":e!==void 0&&e.$$typeof===p?(f="<"+(l(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var d=dr(e,r,t,i,c);if(d==null)return d;if(o){var T=r.children;if(T!==void 0)if(n)if(se(T)){for(var N=0;N<T.length;N++)Ne(T[N],e);Object.freeze&&Object.freeze(T)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(T,e)}return e===R?yr(d):mr(d),d}}function hr(e,r,t){return Ye(e,r,t,!0)}function gr(e,r,t){return Ye(e,r,t,!1)}var _r=gr,Er=hr;W.Fragment=R,W.jsx=_r,W.jsxs=Er}()),W}(function(u){process.env.NODE_ENV==="production"?u.exports=Be():u.exports=Ue()})(Ve);const Q=$.jsx,br="",ze={map:"_map_an20y_2","map-popup-container":"_map-popup-container_an20y_7",touch:"_touch_an20y_26","mobile-layers-button":"_mobile-layers-button_an20y_30",floaten:"_floaten_an20y_45",float:"_float_an20y_45"},ve=u=>u?u instanceof Object?[u.longitude,u.latitude]:u:void 0,Je=async()=>{try{const p=await new Promise((w,R)=>{navigator.geolocation.getCurrentPosition(v=>{w(v)},v=>R(v))});return p&&ve(p.coords)||Object.values(me())}catch(u){console.error(u);const p=me();return[p.longitude,p.latitude]}},me=()=>({longitude:51.36281969540723,latitude:35.69672648316882}),Ge={reverse:"https://api.neshan.org/v4/reverse",search:"https://api.neshan.org/v1/search",map:"https://static.neshan.org/sdk/openlayers/7.1.0/ol.js"},ye=g.createContext({map:null,mapType:"neshan",mapContainer:null,setMap:u=>{},setMapType:u=>{},setMapContainer:u=>{}}),he={map:null,mapType:"neshan",mapContainer:null},Ke=(u,p)=>{switch(p.type){case"SET_MAP":return{...u,map:p.payload};case"SET_MAP_TYPE":return{...u,title:p.payload};default:return he}},He=u=>{const[p,w]=g.useReducer(Ke,he),R={...p,setMap:v=>{w({type:"SET_MAP",payload:v})},setMapType:v=>{w({type:"SET_MAP_TYPE",payload:v})},setMapContainer:v=>{w({type:"SET_MAP_CONTAINER",payload:v})}};return Q(ye.Provider,{value:R,children:u.children})},Xe=g.forwardRef(({options:u,mapKey:p,serviceKey:w="",zoom:R=12,defaultType:v="neshan",scale:I,center:F,poi:x=!0,traffic:m=!0,onInit:j,className:E,style:P},k)=>{const C=g.useContext(ye),S=g.useRef(null),[B,q]=g.useState(!1),[O,y]=g.useState(null),[ge,ee]=g.useState();g.useImperativeHandle(k,()=>({get mapContainer(){return S},get ol(){return typeof ol<"u"?ol:void 0},get map(){return C.map},get isInitiated(){return B}}),[S,C.map,B]);const U=()=>{var _,l;if(O)return O;const s=(l=(_=S.current)==null?void 0:_.querySelector(".ol-viewport"))==null?void 0:l.querySelectorAll("div:last-child");if(s)return y(Array.from(s)[s.length-1]),O},re=()=>{const s=U();s==null||s.style.setProperty("scale",""+I)},te=()=>{const s=U();s==null||s.style.setProperty("bottom","0.2em"),s==null||s.style.setProperty("left","0.4em")},ne=(s,_="my-openlayer")=>{const l=document.getElementById(_);if(l)return l;const h=document.createElement("script");return h.src=s,h.id=_,document.getElementsByTagName("head")[0].appendChild(h),h},z=async()=>{var h;if(!S.current)return;const s=ve(F);ee(s);const _=s||await Je(),l=new ol.Map({target:S.current,key:p||"",mapType:v,poi:x,traffic:m,view:new ol.View({center:ol.proj.fromLonLat(_),zoom:R,smoothExtentConstraint:!0}),controls:[],...u});l.setMapType(v),C.setMap(l),(h=C.map)==null||h.setMapType(v),C.setMapType(v),q(!0),j&&j(ol,l)},J=()=>{let s,_,l;return s=new Promise((h,M)=>{l=M,_=h,z().then(()=>{re(),te(),_()}).catch(()=>{l()})}),{promise:s,cancelPromise:()=>l()}};return g.useEffect(()=>{if(S.current&&C.setMapContainer(S.current),typeof ol<"u"){const s=J();return()=>s.cancelPromise()}else{const s=ne(Ge.map),_=()=>{J()};return s.addEventListener("load",_),()=>s.removeEventListener("load",_)}},[]),Q(He,{children:Q("div",{ref:S,className:E||ze.map,style:P})})});D.NeshanMap=Xe,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neshan-maps-platform/react-openlayers",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/types/components/index.ts",
|
|
7
7
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dev": "vite",
|
|
14
14
|
"build": "vite build && tsc",
|
|
15
15
|
"preview": "vite preview",
|
|
16
|
-
"
|
|
16
|
+
"prepublishOnly": "yarn build"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": "18.x",
|