@fullkekw/popup 2.0.5 → 2.0.6

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