@fullkekw/popup 2.0.5 → 2.0.7
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/README.md +4 -2
- package/dist/Interfaces.d.ts +7 -4
- package/dist/index.es.js +338 -336
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createPortal as
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
import Ue, { createContext as Er, useState as D, useEffect as Y, useContext as ze, useMemo as _r } from "react";
|
|
2
|
+
import { createPortal as Rr } from "react-dom";
|
|
3
|
+
function xr(y) {
|
|
4
|
+
return y && y.__esModule && Object.prototype.hasOwnProperty.call(y, "default") ? y.default : y;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var Q = { exports: {} }, q = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,21 +13,21 @@ var G = { exports: {} }, V = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof:
|
|
16
|
+
var Le;
|
|
17
|
+
function wr() {
|
|
18
|
+
if (Le) return q;
|
|
19
|
+
Le = 1;
|
|
20
|
+
var y = Ue, w = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, p = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function f(v, d, T) {
|
|
22
|
+
var h, c = {}, g = null, u = null;
|
|
23
|
+
T !== void 0 && (g = "" + T), d.key !== void 0 && (g = "" + d.key), d.ref !== void 0 && (u = d.ref);
|
|
24
|
+
for (h in d) R.call(d, h) && !a.hasOwnProperty(h) && (c[h] = d[h]);
|
|
25
|
+
if (v && v.defaultProps) for (h in d = v.defaultProps, d) c[h] === void 0 && (c[h] = d[h]);
|
|
26
|
+
return { $$typeof: w, type: v, key: g, ref: u, props: c, _owner: p.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return q.Fragment = _, q.jsx = f, q.jsxs = f, q;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var J = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -37,91 +37,91 @@ var U = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var Me;
|
|
41
41
|
function Or() {
|
|
42
|
-
return
|
|
43
|
-
var
|
|
44
|
-
function
|
|
42
|
+
return Me || (Me = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var y = Ue, w = Symbol.for("react.element"), _ = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), v = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), P = Symbol.iterator, m = "@@iterator";
|
|
44
|
+
function j(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = P && e[P] || e[m];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var A = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function x(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
54
54
|
t[n - 1] = arguments[n];
|
|
55
|
-
|
|
55
|
+
B("error", e, t);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function B(e, r, t) {
|
|
59
59
|
{
|
|
60
|
-
var n =
|
|
61
|
-
|
|
62
|
-
var l = t.map(function(
|
|
63
|
-
return String(
|
|
60
|
+
var n = A.ReactDebugCurrentFrame, s = n.getStackAddendum();
|
|
61
|
+
s !== "" && (r += "%s", t = t.concat([s]));
|
|
62
|
+
var l = t.map(function(i) {
|
|
63
|
+
return String(i);
|
|
64
64
|
});
|
|
65
65
|
l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
68
|
+
var K = !1, re = !1, C = !1, te = !1, ne = !1, V;
|
|
69
|
+
V = Symbol.for("react.module.reference");
|
|
70
|
+
function I(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === a || ne || e === p || e === T || e === h || te || e === u || K || re || C || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === c || e.$$typeof === f || e.$$typeof === v || e.$$typeof === d || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
e.$$typeof ===
|
|
75
|
+
e.$$typeof === V || e.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function ae(e, r, t) {
|
|
78
78
|
var n = e.displayName;
|
|
79
79
|
if (n)
|
|
80
80
|
return n;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var s = r.displayName || r.name || "";
|
|
82
|
+
return s !== "" ? t + "(" + s + ")" : t;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ge(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function F(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
switch (e) {
|
|
95
|
-
case
|
|
95
|
+
case R:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case _:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case a:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case p:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case T:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case h:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case v:
|
|
111
111
|
var r = e;
|
|
112
|
-
return
|
|
113
|
-
case
|
|
112
|
+
return ge(r) + ".Consumer";
|
|
113
|
+
case f:
|
|
114
114
|
var t = e;
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
return
|
|
118
|
-
case
|
|
115
|
+
return ge(t._context) + ".Provider";
|
|
116
|
+
case d:
|
|
117
|
+
return ae(e, e.render, "ForwardRef");
|
|
118
|
+
case c:
|
|
119
119
|
var n = e.displayName || null;
|
|
120
|
-
return n !== null ? n :
|
|
121
|
-
case
|
|
122
|
-
var
|
|
120
|
+
return n !== null ? n : F(e.type) || "Memo";
|
|
121
|
+
case g: {
|
|
122
|
+
var s = e, l = s._payload, i = s._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return F(i(l));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function Or() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
132
|
+
var N = Object.assign, U = 0, me, ye, be, he, Ee, _e, Re;
|
|
133
|
+
function xe() {
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
xe.__reactDisabledLog = !0;
|
|
136
136
|
function Be() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (U === 0) {
|
|
139
|
+
me = console.log, ye = console.info, be = console.warn, he = console.error, Ee = console.group, _e = console.groupCollapsed, Re = console.groupEnd;
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: xe,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -153,199 +153,199 @@ function Or() {
|
|
|
153
153
|
groupEnd: e
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
U++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
function Ke() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (U--, U === 0) {
|
|
162
162
|
var e = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
169
|
-
value:
|
|
168
|
+
log: N({}, e, {
|
|
169
|
+
value: me
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
172
|
-
value:
|
|
171
|
+
info: N({}, e, {
|
|
172
|
+
value: ye
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
175
|
-
value:
|
|
174
|
+
warn: N({}, e, {
|
|
175
|
+
value: be
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
178
|
-
value:
|
|
177
|
+
error: N({}, e, {
|
|
178
|
+
value: he
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
181
|
-
value:
|
|
180
|
+
group: N({}, e, {
|
|
181
|
+
value: Ee
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
184
|
-
value:
|
|
183
|
+
groupCollapsed: N({}, e, {
|
|
184
|
+
value: _e
|
|
185
185
|
}),
|
|
186
|
-
groupEnd:
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: N({}, e, {
|
|
187
|
+
value: Re
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
U < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var oe = A.ReactCurrentDispatcher, ie;
|
|
195
|
+
function G(e, r, t) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ie === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var n =
|
|
202
|
-
|
|
200
|
+
} catch (s) {
|
|
201
|
+
var n = s.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ie = n && n[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ie + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var ue = !1, X;
|
|
209
209
|
{
|
|
210
210
|
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
-
|
|
211
|
+
X = new Ge();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!e ||
|
|
213
|
+
function we(e, r) {
|
|
214
|
+
if (!e || ue)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var t =
|
|
217
|
+
var t = X.get(e);
|
|
218
218
|
if (t !== void 0)
|
|
219
219
|
return t;
|
|
220
220
|
}
|
|
221
221
|
var n;
|
|
222
|
-
|
|
223
|
-
var
|
|
222
|
+
ue = !0;
|
|
223
|
+
var s = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var l;
|
|
226
|
-
l =
|
|
226
|
+
l = oe.current, oe.current = null, Be();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var i = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
239
|
-
} catch (
|
|
240
|
-
n =
|
|
238
|
+
Reflect.construct(i, []);
|
|
239
|
+
} catch (S) {
|
|
240
|
+
n = S;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], i);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
246
|
-
} catch (
|
|
247
|
-
n =
|
|
245
|
+
i.call();
|
|
246
|
+
} catch (S) {
|
|
247
|
+
n = S;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(i.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
n =
|
|
254
|
+
} catch (S) {
|
|
255
|
+
n = S;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var o =
|
|
262
|
-
`),
|
|
263
|
-
`), b = o.length - 1, E =
|
|
259
|
+
} catch (S) {
|
|
260
|
+
if (S && n && typeof S.stack == "string") {
|
|
261
|
+
for (var o = S.stack.split(`
|
|
262
|
+
`), O = n.stack.split(`
|
|
263
|
+
`), b = o.length - 1, E = O.length - 1; b >= 1 && E >= 0 && o[b] !== O[E]; )
|
|
264
264
|
E--;
|
|
265
265
|
for (; b >= 1 && E >= 0; b--, E--)
|
|
266
|
-
if (o[b] !==
|
|
266
|
+
if (o[b] !== O[E]) {
|
|
267
267
|
if (b !== 1 || E !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (b--, E--, E < 0 || o[b] !==
|
|
270
|
-
var
|
|
269
|
+
if (b--, E--, E < 0 || o[b] !== O[E]) {
|
|
270
|
+
var k = `
|
|
271
271
|
` + o[b].replace(" at new ", " at ");
|
|
272
|
-
return e.displayName &&
|
|
272
|
+
return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, k), k;
|
|
273
273
|
}
|
|
274
274
|
while (b >= 1 && E >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
ue = !1, oe.current = l, Ke(), Error.prepareStackTrace = s;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof e == "function" &&
|
|
281
|
+
var M = e ? e.displayName || e.name : "", $ = M ? G(M) : "";
|
|
282
|
+
return typeof e == "function" && X.set(e, $), $;
|
|
283
283
|
}
|
|
284
284
|
function Xe(e, r, t) {
|
|
285
|
-
return
|
|
285
|
+
return we(e, !1);
|
|
286
286
|
}
|
|
287
287
|
function He(e) {
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function H(e, r, t) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
|
-
return
|
|
295
|
+
return we(e, He(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return G(e);
|
|
298
298
|
switch (e) {
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
299
|
+
case T:
|
|
300
|
+
return G("Suspense");
|
|
301
|
+
case h:
|
|
302
|
+
return G("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case d:
|
|
307
307
|
return Xe(e.render);
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var n = e,
|
|
308
|
+
case c:
|
|
309
|
+
return H(e.type, r, t);
|
|
310
|
+
case g: {
|
|
311
|
+
var n = e, s = n._payload, l = n._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return H(l(s), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var z = Object.prototype.hasOwnProperty, Oe = {}, Se = A.ReactDebugCurrentFrame;
|
|
321
|
+
function Z(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner, t =
|
|
324
|
-
|
|
323
|
+
var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
|
|
324
|
+
Se.setExtraStackFrame(t);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
Se.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Ze(e, r, t, n,
|
|
328
|
+
function Ze(e, r, t, n, s) {
|
|
329
329
|
{
|
|
330
|
-
var l = Function.call.bind(
|
|
331
|
-
for (var
|
|
332
|
-
if (l(e,
|
|
330
|
+
var l = Function.call.bind(z);
|
|
331
|
+
for (var i in e)
|
|
332
|
+
if (l(e, i)) {
|
|
333
333
|
var o = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
335
|
+
if (typeof e[i] != "function") {
|
|
336
|
+
var O = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw O.name = "Invariant Violation", O;
|
|
338
338
|
}
|
|
339
|
-
o = e[
|
|
339
|
+
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (b) {
|
|
341
341
|
o = b;
|
|
342
342
|
}
|
|
343
|
-
o && !(o instanceof Error) && (
|
|
343
|
+
o && !(o instanceof Error) && (Z(s), x("%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, i, typeof o), Z(null)), o instanceof Error && !(o.message in Oe) && (Oe[o.message] = !0, Z(s), x("Failed %s type: %s", t, o.message), Z(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var Qe = Array.isArray;
|
|
348
|
-
function
|
|
348
|
+
function se(e) {
|
|
349
349
|
return Qe(e);
|
|
350
350
|
}
|
|
351
351
|
function er(e) {
|
|
@@ -356,26 +356,26 @@ function Or() {
|
|
|
356
356
|
}
|
|
357
357
|
function rr(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return Te(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Te(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Pe(e) {
|
|
368
368
|
if (rr(e))
|
|
369
|
-
return
|
|
369
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), Te(e);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Ce = A.ReactCurrentOwner, tr = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
376
|
+
}, je, ke;
|
|
377
377
|
function nr(e) {
|
|
378
|
-
if (
|
|
378
|
+
if (z.call(e, "ref")) {
|
|
379
379
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
380
380
|
if (r && r.isReactWarning)
|
|
381
381
|
return !1;
|
|
@@ -383,7 +383,7 @@ function Or() {
|
|
|
383
383
|
return e.ref !== void 0;
|
|
384
384
|
}
|
|
385
385
|
function ar(e) {
|
|
386
|
-
if (
|
|
386
|
+
if (z.call(e, "key")) {
|
|
387
387
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
388
388
|
if (r && r.isReactWarning)
|
|
389
389
|
return !1;
|
|
@@ -391,12 +391,12 @@ function Or() {
|
|
|
391
391
|
return e.key !== void 0;
|
|
392
392
|
}
|
|
393
393
|
function or(e, r) {
|
|
394
|
-
typeof e.ref == "string" &&
|
|
394
|
+
typeof e.ref == "string" && Ce.current;
|
|
395
395
|
}
|
|
396
396
|
function ir(e, r) {
|
|
397
397
|
{
|
|
398
398
|
var t = function() {
|
|
399
|
-
|
|
399
|
+
je || (je = !0, x("%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));
|
|
400
400
|
};
|
|
401
401
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
402
|
get: t,
|
|
@@ -407,7 +407,7 @@ function Or() {
|
|
|
407
407
|
function ur(e, r) {
|
|
408
408
|
{
|
|
409
409
|
var t = function() {
|
|
410
|
-
|
|
410
|
+
ke || (ke = !0, x("%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));
|
|
411
411
|
};
|
|
412
412
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
413
|
get: t,
|
|
@@ -415,15 +415,15 @@ function Or() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var sr = function(e, r, t, n,
|
|
418
|
+
var sr = function(e, r, t, n, s, l, i) {
|
|
419
419
|
var o = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
-
$$typeof:
|
|
421
|
+
$$typeof: w,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: e,
|
|
424
424
|
key: r,
|
|
425
425
|
ref: t,
|
|
426
|
-
props:
|
|
426
|
+
props: i,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: l
|
|
429
429
|
};
|
|
@@ -441,44 +441,44 @@ function Or() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: s
|
|
445
445
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
446
446
|
};
|
|
447
|
-
function fr(e, r, t, n,
|
|
447
|
+
function fr(e, r, t, n, s) {
|
|
448
448
|
{
|
|
449
|
-
var l,
|
|
450
|
-
t !== void 0 && (
|
|
449
|
+
var l, i = {}, o = null, O = null;
|
|
450
|
+
t !== void 0 && (Pe(t), o = "" + t), ar(r) && (Pe(r.key), o = "" + r.key), nr(r) && (O = r.ref, or(r, s));
|
|
451
451
|
for (l in r)
|
|
452
|
-
|
|
452
|
+
z.call(r, l) && !tr.hasOwnProperty(l) && (i[l] = r[l]);
|
|
453
453
|
if (e && e.defaultProps) {
|
|
454
454
|
var b = e.defaultProps;
|
|
455
455
|
for (l in b)
|
|
456
|
-
|
|
456
|
+
i[l] === void 0 && (i[l] = b[l]);
|
|
457
457
|
}
|
|
458
|
-
if (o ||
|
|
458
|
+
if (o || O) {
|
|
459
459
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
-
o && ir(
|
|
460
|
+
o && ir(i, E), O && ur(i, E);
|
|
461
461
|
}
|
|
462
|
-
return sr(e, o,
|
|
462
|
+
return sr(e, o, O, s, n, Ce.current, i);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
465
|
+
var fe = A.ReactCurrentOwner, De = A.ReactDebugCurrentFrame;
|
|
466
|
+
function L(e) {
|
|
467
467
|
if (e) {
|
|
468
|
-
var r = e._owner, t =
|
|
469
|
-
|
|
468
|
+
var r = e._owner, t = H(e.type, e._source, r ? r.type : null);
|
|
469
|
+
De.setExtraStackFrame(t);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
De.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
476
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
473
|
+
var ce;
|
|
474
|
+
ce = !1;
|
|
475
|
+
function le(e) {
|
|
476
|
+
return typeof e == "object" && e !== null && e.$$typeof === w;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Ie() {
|
|
479
479
|
{
|
|
480
|
-
if (
|
|
481
|
-
var e =
|
|
480
|
+
if (fe.current) {
|
|
481
|
+
var e = F(fe.current.type);
|
|
482
482
|
if (e)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -490,10 +490,10 @@ Check the render method of \`` + e + "`.";
|
|
|
490
490
|
function cr(e) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var Ae = {};
|
|
494
494
|
function lr(e) {
|
|
495
495
|
{
|
|
496
|
-
var r =
|
|
496
|
+
var r = Ie();
|
|
497
497
|
if (!r) {
|
|
498
498
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
499
|
t && (r = `
|
|
@@ -503,35 +503,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
503
503
|
return r;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Fe(e, r) {
|
|
507
507
|
{
|
|
508
508
|
if (!e._store || e._store.validated || e.key != null)
|
|
509
509
|
return;
|
|
510
510
|
e._store.validated = !0;
|
|
511
511
|
var t = lr(r);
|
|
512
|
-
if (
|
|
512
|
+
if (Ae[t])
|
|
513
513
|
return;
|
|
514
|
-
|
|
514
|
+
Ae[t] = !0;
|
|
515
515
|
var n = "";
|
|
516
|
-
e && e._owner && e._owner !==
|
|
516
|
+
e && e._owner && e._owner !== fe.current && (n = " It was passed a child from " + F(e._owner.type) + "."), L(e), x('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);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Ne(e, r) {
|
|
520
520
|
{
|
|
521
521
|
if (typeof e != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
523
|
+
if (se(e))
|
|
524
524
|
for (var t = 0; t < e.length; t++) {
|
|
525
525
|
var n = e[t];
|
|
526
|
-
|
|
526
|
+
le(n) && Fe(n, r);
|
|
527
527
|
}
|
|
528
|
-
else if (
|
|
528
|
+
else if (le(e))
|
|
529
529
|
e._store && (e._store.validated = !0);
|
|
530
530
|
else if (e) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var l =
|
|
534
|
-
|
|
531
|
+
var s = j(e);
|
|
532
|
+
if (typeof s == "function" && s !== e.entries)
|
|
533
|
+
for (var l = s.call(e), i; !(i = l.next()).done; )
|
|
534
|
+
le(i.value) && Fe(i.value, r);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -543,21 +543,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
543
543
|
var t;
|
|
544
544
|
if (typeof r == "function")
|
|
545
545
|
t = r.propTypes;
|
|
546
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
546
|
+
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
r.$$typeof ===
|
|
548
|
+
r.$$typeof === c))
|
|
549
549
|
t = r.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
552
|
if (t) {
|
|
553
|
-
var n =
|
|
553
|
+
var n = F(r);
|
|
554
554
|
Ze(t, e.props, "prop", n, e);
|
|
555
|
-
} else if (r.PropTypes !== void 0 && !
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
|
|
555
|
+
} else if (r.PropTypes !== void 0 && !ce) {
|
|
556
|
+
ce = !0;
|
|
557
|
+
var s = F(r);
|
|
558
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function pr(e) {
|
|
@@ -565,221 +565,223 @@ Check the top-level render call using <` + t + ">.");
|
|
|
565
565
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
566
566
|
var n = r[t];
|
|
567
567
|
if (n !== "children" && n !== "key") {
|
|
568
|
-
|
|
568
|
+
L(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), L(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
e.ref !== null && (
|
|
572
|
+
e.ref !== null && (L(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
575
|
+
var $e = {};
|
|
576
|
+
function We(e, r, t, n, s, l) {
|
|
577
577
|
{
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
578
|
+
var i = I(e);
|
|
579
|
+
if (!i) {
|
|
580
580
|
var o = "";
|
|
581
581
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
-
var
|
|
583
|
-
|
|
582
|
+
var O = cr();
|
|
583
|
+
O ? o += O : o += Ie();
|
|
584
584
|
var b;
|
|
585
|
-
e === null ? b = "null" :
|
|
585
|
+
e === null ? b = "null" : se(e) ? b = "array" : e !== void 0 && e.$$typeof === w ? (b = "<" + (F(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, o);
|
|
586
586
|
}
|
|
587
|
-
var E = fr(e, r, t,
|
|
587
|
+
var E = fr(e, r, t, s, l);
|
|
588
588
|
if (E == null)
|
|
589
589
|
return E;
|
|
590
|
-
if (
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
590
|
+
if (i) {
|
|
591
|
+
var k = r.children;
|
|
592
|
+
if (k !== void 0)
|
|
593
593
|
if (n)
|
|
594
|
-
if (
|
|
595
|
-
for (var
|
|
596
|
-
|
|
597
|
-
Object.freeze && Object.freeze(
|
|
594
|
+
if (se(k)) {
|
|
595
|
+
for (var M = 0; M < k.length; M++)
|
|
596
|
+
Ne(k[M], e);
|
|
597
|
+
Object.freeze && Object.freeze(k);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
|
-
|
|
601
|
+
Ne(k, e);
|
|
602
602
|
}
|
|
603
|
-
if (
|
|
604
|
-
var
|
|
603
|
+
if (z.call(r, "key")) {
|
|
604
|
+
var $ = F(e), S = Object.keys(r).filter(function(hr) {
|
|
605
605
|
return hr !== "key";
|
|
606
|
-
}),
|
|
607
|
-
if (
|
|
608
|
-
var br =
|
|
609
|
-
|
|
606
|
+
}), de = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!$e[$ + de]) {
|
|
608
|
+
var br = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
613
613
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, de, $, br, $), $e[$ + de] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return e ===
|
|
617
|
+
return e === R ? pr(E) : dr(E), E;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function vr(e, r, t) {
|
|
621
|
-
return
|
|
621
|
+
return We(e, r, t, !0);
|
|
622
622
|
}
|
|
623
623
|
function gr(e, r, t) {
|
|
624
|
-
return
|
|
624
|
+
return We(e, r, t, !1);
|
|
625
625
|
}
|
|
626
626
|
var mr = gr, yr = vr;
|
|
627
|
-
|
|
628
|
-
}()),
|
|
627
|
+
J.Fragment = R, J.jsx = mr, J.jsxs = yr;
|
|
628
|
+
}()), J;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
632
|
-
return
|
|
630
|
+
var Ye;
|
|
631
|
+
function Sr() {
|
|
632
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Q.exports = wr() : Q.exports = Or()), Q.exports;
|
|
633
633
|
}
|
|
634
|
-
var
|
|
634
|
+
var W = Sr(), pe = { exports: {} };
|
|
635
635
|
/*!
|
|
636
636
|
Copyright (c) 2018 Jed Watson.
|
|
637
637
|
Licensed under the MIT License (MIT), see
|
|
638
638
|
http://jedwatson.github.io/classnames
|
|
639
639
|
*/
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
return
|
|
640
|
+
var Ve;
|
|
641
|
+
function Tr() {
|
|
642
|
+
return Ve || (Ve = 1, function(y) {
|
|
643
643
|
(function() {
|
|
644
|
-
var
|
|
644
|
+
var w = {}.hasOwnProperty;
|
|
645
645
|
function _() {
|
|
646
|
-
for (var
|
|
647
|
-
var
|
|
648
|
-
|
|
646
|
+
for (var a = "", f = 0; f < arguments.length; f++) {
|
|
647
|
+
var v = arguments[f];
|
|
648
|
+
v && (a = p(a, R(v)));
|
|
649
649
|
}
|
|
650
|
-
return
|
|
650
|
+
return a;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
if (typeof
|
|
654
|
-
return
|
|
655
|
-
if (typeof
|
|
652
|
+
function R(a) {
|
|
653
|
+
if (typeof a == "string" || typeof a == "number")
|
|
654
|
+
return a;
|
|
655
|
+
if (typeof a != "object")
|
|
656
656
|
return "";
|
|
657
|
-
if (Array.isArray(
|
|
658
|
-
return _.apply(null,
|
|
659
|
-
if (
|
|
660
|
-
return
|
|
661
|
-
var
|
|
662
|
-
for (var
|
|
663
|
-
|
|
664
|
-
return
|
|
657
|
+
if (Array.isArray(a))
|
|
658
|
+
return _.apply(null, a);
|
|
659
|
+
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
660
|
+
return a.toString();
|
|
661
|
+
var f = "";
|
|
662
|
+
for (var v in a)
|
|
663
|
+
w.call(a, v) && a[v] && (f = p(f, v));
|
|
664
|
+
return f;
|
|
665
665
|
}
|
|
666
|
-
function p(
|
|
667
|
-
return
|
|
666
|
+
function p(a, f) {
|
|
667
|
+
return f ? a ? a + " " + f : a + f : a;
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
y.exports ? (_.default = _, y.exports = _) : window.classNames = _;
|
|
670
670
|
})();
|
|
671
|
-
}(
|
|
671
|
+
}(pe)), pe.exports;
|
|
672
672
|
}
|
|
673
|
-
var
|
|
674
|
-
const
|
|
673
|
+
var Pr = Tr();
|
|
674
|
+
const ee = /* @__PURE__ */ xr(Pr), qe = {
|
|
675
675
|
disableScroll: !0,
|
|
676
676
|
exitOnDocument: !0,
|
|
677
677
|
exitOnEscape: !0,
|
|
678
678
|
preventStateChange: !1
|
|
679
|
-
},
|
|
680
|
-
const [
|
|
681
|
-
nodes:
|
|
679
|
+
}, ve = Er({}), Cr = ({ className: y, settings: w, children: _, ...R }) => {
|
|
680
|
+
const [p] = D(Je(w ?? {}, qe)), [a, f] = D([]), v = {
|
|
681
|
+
nodes: a,
|
|
682
682
|
toggleNode: d,
|
|
683
|
-
registerNode:
|
|
684
|
-
toggleDocument:
|
|
683
|
+
registerNode: T,
|
|
684
|
+
toggleDocument: h
|
|
685
685
|
};
|
|
686
|
-
|
|
686
|
+
Y(() => {
|
|
687
687
|
if (typeof window > "u") return;
|
|
688
|
-
window.addEventListener("keydown",
|
|
689
|
-
function
|
|
688
|
+
window.addEventListener("keydown", c);
|
|
689
|
+
function c(g) {
|
|
690
690
|
if (g.key === "Escape") {
|
|
691
|
-
const
|
|
692
|
-
if (!
|
|
693
|
-
d(
|
|
691
|
+
const P = Math.max(...a.filter((j) => j.open).map((j) => j.zIndex)), m = a.find((j) => j.open && j.zIndex === P);
|
|
692
|
+
if (!m || !m.settings.exitOnEscape || !(p != null && p.exitOnEscape)) return;
|
|
693
|
+
d(m.id);
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
return () => {
|
|
697
|
-
window.removeEventListener("keydown",
|
|
697
|
+
window.removeEventListener("keydown", c);
|
|
698
698
|
};
|
|
699
|
-
}, [
|
|
700
|
-
function d(
|
|
701
|
-
let
|
|
702
|
-
if (typeof
|
|
703
|
-
if ((
|
|
704
|
-
const
|
|
705
|
-
|
|
699
|
+
}, [a]);
|
|
700
|
+
function d(c, g) {
|
|
701
|
+
let u;
|
|
702
|
+
if (typeof c == "string" ? u = { ...a.find((m) => m.id === c) } : u = { ...c }, !u.id) return;
|
|
703
|
+
if ((p.preventStateChange || u.settings.preventStateChange) && g === void 0) return console.warn("Popup action prevented");
|
|
704
|
+
const P = g ?? !(u != null && u.open);
|
|
705
|
+
u.open = P, u.zIndex = P ? Math.max(...a.map((m) => m.zIndex), 0) + 1 : 0, f((m) => [...m.filter((j) => j.id !== u.id), u]), p.disableScroll && u.settings.disableScroll && P && document.body.classList.add("fkw-popup--noScroll"), !P && !a.filter((m) => m.id !== u.id).some((m) => m.open) && document.body.classList.remove("fkw-popup--noScroll");
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
|
|
707
|
+
function T(c) {
|
|
708
|
+
f((g) => [...g, c]), c.open && d(c, !0);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
const
|
|
712
|
-
!
|
|
710
|
+
function h(c, g) {
|
|
711
|
+
const u = { ...a.find((m) => m.id === c) };
|
|
712
|
+
!u.id || !u.settings.exitOnDocument || g.target.closest(".fkw-popup") || !u.settings.exitOnDocument || !p.exitOnDocument || d(u.id);
|
|
713
713
|
}
|
|
714
|
-
return /* @__PURE__ */
|
|
714
|
+
return /* @__PURE__ */ W.jsxs(ve.Provider, { value: v, children: [
|
|
715
715
|
_,
|
|
716
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ W.jsx("section", { className: ee("fkw-popup-container", y), id: "fkw-popup-container", ...R })
|
|
717
717
|
] });
|
|
718
|
-
},
|
|
719
|
-
const u =
|
|
720
|
-
return
|
|
721
|
-
|
|
718
|
+
}, jr = ({ children: y, className: w, layerClassName: _, style: R, id: p, settings: a, isOpen: f, setIsOpen: v, animation: d, renderOnDemand: T, onExit: h, onOpen: c, ...g }) => {
|
|
719
|
+
const u = ze(ve), [P] = D(d ?? "scale"), [m] = D(Je(a ?? {}, qe)), [j, A] = D(!1), [x, B] = D(!1), [K, re] = D(null), [C, te] = D(!1), [ne, V] = D(0);
|
|
720
|
+
return _r(() => {
|
|
721
|
+
T ? C && B(!0) : B(!0), C && c && c(), !C && h && h();
|
|
722
|
+
}, [C]), Y(() => {
|
|
723
|
+
re(document.querySelector("#fkw-popup-container")), A(!0), u.registerNode({
|
|
722
724
|
id: p,
|
|
723
725
|
open: !1,
|
|
724
726
|
zIndex: 0,
|
|
725
|
-
settings:
|
|
727
|
+
settings: m
|
|
726
728
|
});
|
|
727
|
-
}, []),
|
|
728
|
-
const
|
|
729
|
-
|
|
730
|
-
|
|
729
|
+
}, []), Y(() => {
|
|
730
|
+
const I = u.nodes.find((ae) => ae.id === p);
|
|
731
|
+
I && (te(I.open), I.zIndex !== 0 ? V(I.zIndex) : setTimeout(() => {
|
|
732
|
+
V(I.zIndex);
|
|
731
733
|
}, 200));
|
|
732
|
-
}, [u]),
|
|
733
|
-
|
|
734
|
-
}, [
|
|
735
|
-
|
|
736
|
-
}, [
|
|
734
|
+
}, [u]), Y(() => {
|
|
735
|
+
v === void 0 || f === C || v(C);
|
|
736
|
+
}, [C]), Y(() => {
|
|
737
|
+
f === void 0 || f === C || u.toggleNode(p, f);
|
|
738
|
+
}, [f]), !j || !K ? null : Rr(/* @__PURE__ */ W.jsx(W.Fragment, { children: /* @__PURE__ */ W.jsx(
|
|
737
739
|
"section",
|
|
738
740
|
{
|
|
739
741
|
id: p,
|
|
740
|
-
className:
|
|
741
|
-
style: { zIndex: 1e4 +
|
|
742
|
-
onClick:
|
|
743
|
-
children: /* @__PURE__ */
|
|
742
|
+
className: ee("fkw-popup-layer", C && "fkw-popup-layer--open", _),
|
|
743
|
+
style: { zIndex: 1e4 + ne, cursor: m.exitOnDocument && !m.preventStateChange ? "pointer" : "auto", ...R },
|
|
744
|
+
onClick: m.exitOnDocument && !m.preventStateChange ? (I) => u.toggleDocument(p, I) : void 0,
|
|
745
|
+
children: /* @__PURE__ */ W.jsx(
|
|
744
746
|
"article",
|
|
745
747
|
{
|
|
746
|
-
className:
|
|
748
|
+
className: ee("fkw-popup", C && "fkw-popup--open", P && `fkw-popup-animation--${P}`, w),
|
|
747
749
|
role: "dialog",
|
|
748
750
|
"aria-modal": !0,
|
|
749
|
-
"aria-hidden": !
|
|
750
|
-
...
|
|
751
|
-
children:
|
|
751
|
+
"aria-hidden": !C,
|
|
752
|
+
...g,
|
|
753
|
+
children: x && y
|
|
752
754
|
}
|
|
753
755
|
)
|
|
754
756
|
}
|
|
755
|
-
) }),
|
|
756
|
-
},
|
|
757
|
-
const
|
|
758
|
-
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
}, [
|
|
762
|
-
function g
|
|
763
|
-
|
|
757
|
+
) }), K);
|
|
758
|
+
}, kr = ({ children: y, as: w, className: _, onClick: R, disabled: p, popupId: a, ...f }) => {
|
|
759
|
+
const v = ze(ve), d = w ?? "button", [T, h] = D(!1);
|
|
760
|
+
Y(() => {
|
|
761
|
+
const g = v.nodes.find((u) => u.id === a);
|
|
762
|
+
g && h(g.open);
|
|
763
|
+
}, [v]);
|
|
764
|
+
function c(g) {
|
|
765
|
+
v.toggleNode(a), R && R(g);
|
|
764
766
|
}
|
|
765
|
-
return /* @__PURE__ */
|
|
767
|
+
return /* @__PURE__ */ W.jsx(d, { className: ee("fkw-popup-button", T && "fkw-popup-button--active", _), role: "button", onClick: c, "aria-haspopup": "dialog", tabIndex: 0, disabled: p, "aria-disabled": p, "data-fkw-popup-operator": a, "aria-label": T ? "Close Popup" : "Open Popup", ...f, children: y });
|
|
766
768
|
};
|
|
767
|
-
function
|
|
768
|
-
const _ = { ...
|
|
769
|
-
for (const
|
|
770
|
-
_[
|
|
769
|
+
function Je(y, w) {
|
|
770
|
+
const _ = { ...w };
|
|
771
|
+
for (const R in y)
|
|
772
|
+
_[R] = y[R];
|
|
771
773
|
return _;
|
|
772
774
|
}
|
|
773
|
-
const
|
|
775
|
+
const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
774
776
|
__proto__: null,
|
|
775
|
-
PopupButton:
|
|
776
|
-
PopupLayer:
|
|
777
|
-
PopupWindow:
|
|
777
|
+
PopupButton: kr,
|
|
778
|
+
PopupLayer: Cr,
|
|
779
|
+
PopupWindow: jr
|
|
778
780
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
779
781
|
export {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
kr as PopupButton,
|
|
783
|
+
Cr as PopupLayer,
|
|
784
|
+
jr as PopupWindow,
|
|
785
|
+
Ar as default
|
|
784
786
|
};
|
|
785
787
|
//# sourceMappingURL=index.es.js.map
|