jsxc-react-hook 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  import './style.css';
2
- import Pe, { useEffect as dr } from "react";
3
- var ne = { exports: {} }, L = {};
2
+ import De, { useEffect as dr } from "react";
3
+ var ie = { exports: {} }, L = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -10,23 +10,23 @@ var ne = { exports: {} }, L = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var Oe;
13
+ var ke;
14
14
  function vr() {
15
- if (Oe)
15
+ if (ke)
16
16
  return L;
17
- Oe = 1;
18
- var w = Pe, j = Symbol.for("react.element"), S = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, P = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function T(E, f, R) {
20
- var d, y = {}, _ = null, x = null;
17
+ ke = 1;
18
+ var w = De, j = Symbol.for("react.element"), S = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, k = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function C(E, f, R) {
20
+ var d, h = {}, _ = null, x = null;
21
21
  R !== void 0 && (_ = "" + R), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (x = f.ref);
22
22
  for (d in f)
23
- b.call(f, d) && !k.hasOwnProperty(d) && (y[d] = f[d]);
23
+ b.call(f, d) && !A.hasOwnProperty(d) && (h[d] = f[d]);
24
24
  if (E && E.defaultProps)
25
25
  for (d in f = E.defaultProps, f)
26
- y[d] === void 0 && (y[d] = f[d]);
27
- return { $$typeof: j, type: E, key: _, ref: x, props: y, _owner: P.current };
26
+ h[d] === void 0 && (h[d] = f[d]);
27
+ return { $$typeof: j, type: E, key: _, ref: x, props: h, _owner: k.current };
28
28
  }
29
- return L.Fragment = S, L.jsx = T, L.jsxs = T, L;
29
+ return L.Fragment = S, L.jsx = C, L.jsxs = C, L;
30
30
  }
31
31
  var U = {};
32
32
  /**
@@ -38,27 +38,27 @@ var U = {};
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
- var Se;
41
+ var Ae;
42
42
  function pr() {
43
- return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
44
- var w = Pe, j = Symbol.for("react.element"), S = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), M = Symbol.iterator, I = "@@iterator";
45
- function A(e) {
43
+ return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var w = De, j = Symbol.for("react.element"), S = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), V = Symbol.iterator, G = "@@iterator";
45
+ function X(e) {
46
46
  if (e === null || typeof e != "object")
47
47
  return null;
48
- var r = M && e[M] || e[I];
48
+ var r = V && e[V] || e[G];
49
49
  return typeof r == "function" ? r : null;
50
50
  }
51
- var g = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function l(e) {
51
+ var T = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function c(e) {
53
53
  {
54
54
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
55
55
  t[n - 1] = arguments[n];
56
- ke("error", e, t);
56
+ D("error", e, t);
57
57
  }
58
58
  }
59
- function ke(e, r, t) {
59
+ function D(e, r, t) {
60
60
  {
61
- var n = g.ReactDebugCurrentFrame, i = n.getStackAddendum();
61
+ var n = T.ReactDebugCurrentFrame, i = n.getStackAddendum();
62
62
  i !== "" && (r += "%s", t = t.concat([i]));
63
63
  var s = t.map(function(o) {
64
64
  return String(o);
@@ -66,14 +66,14 @@ function pr() {
66
66
  s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
67
67
  }
68
68
  }
69
- var Ae = !1, De = !1, Fe = !1, Ie = !1, We = !1, ae;
70
- ae = Symbol.for("react.module.reference");
69
+ var y = !1, M = !1, Fe = !1, Ie = !1, We = !1, se;
70
+ se = Symbol.for("react.module.reference");
71
71
  function $e(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === k || We || e === P || e === R || e === d || Ie || e === x || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === y || e.$$typeof === T || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object
72
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === A || We || e === k || e === R || e === d || Ie || e === x || y || M || Fe || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === h || e.$$typeof === C || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
76
- e.$$typeof === ae || e.getModuleId !== void 0));
76
+ e.$$typeof === se || e.getModuleId !== void 0));
77
77
  }
78
78
  function Ye(e, r, t) {
79
79
  var n = e.displayName;
@@ -82,13 +82,13 @@ function pr() {
82
82
  var i = r.displayName || r.name || "";
83
83
  return i !== "" ? t + "(" + i + ")" : t;
84
84
  }
85
- function oe(e) {
85
+ function ue(e) {
86
86
  return e.displayName || "Context";
87
87
  }
88
88
  function m(e) {
89
89
  if (e == null)
90
90
  return null;
91
- if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
+ if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
92
  return e.displayName || e.name || null;
93
93
  if (typeof e == "string")
94
94
  return e;
@@ -97,9 +97,9 @@ function pr() {
97
97
  return "Fragment";
98
98
  case S:
99
99
  return "Portal";
100
- case k:
100
+ case A:
101
101
  return "Profiler";
102
- case P:
102
+ case k:
103
103
  return "StrictMode";
104
104
  case R:
105
105
  return "Suspense";
@@ -110,13 +110,13 @@ function pr() {
110
110
  switch (e.$$typeof) {
111
111
  case E:
112
112
  var r = e;
113
- return oe(r) + ".Consumer";
114
- case T:
113
+ return ue(r) + ".Consumer";
114
+ case C:
115
115
  var t = e;
116
- return oe(t._context) + ".Provider";
116
+ return ue(t._context) + ".Provider";
117
117
  case f:
118
118
  return Ye(e, e.render, "ForwardRef");
119
- case y:
119
+ case h:
120
120
  var n = e.displayName || null;
121
121
  return n !== null ? n : m(e.type) || "Memo";
122
122
  case _: {
@@ -130,18 +130,18 @@ function pr() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var C = Object.assign, W = 0, ie, se, ue, ce, le, fe, de;
134
- function ve() {
133
+ var P = Object.assign, W = 0, ce, le, fe, de, ve, pe, ge;
134
+ function he() {
135
135
  }
136
- ve.__reactDisabledLog = !0;
136
+ he.__reactDisabledLog = !0;
137
137
  function Le() {
138
138
  {
139
139
  if (W === 0) {
140
- ie = console.log, se = console.info, ue = console.warn, ce = console.error, le = console.group, fe = console.groupCollapsed, de = console.groupEnd;
140
+ ce = console.log, le = console.info, fe = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, ge = console.groupEnd;
141
141
  var e = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
- value: ve,
144
+ value: he,
145
145
  writable: !0
146
146
  };
147
147
  Object.defineProperties(console, {
@@ -166,65 +166,65 @@ function pr() {
166
166
  writable: !0
167
167
  };
168
168
  Object.defineProperties(console, {
169
- log: C({}, e, {
170
- value: ie
171
- }),
172
- info: C({}, e, {
173
- value: se
174
- }),
175
- warn: C({}, e, {
176
- value: ue
177
- }),
178
- error: C({}, e, {
169
+ log: P({}, e, {
179
170
  value: ce
180
171
  }),
181
- group: C({}, e, {
172
+ info: P({}, e, {
182
173
  value: le
183
174
  }),
184
- groupCollapsed: C({}, e, {
175
+ warn: P({}, e, {
185
176
  value: fe
186
177
  }),
187
- groupEnd: C({}, e, {
178
+ error: P({}, e, {
188
179
  value: de
180
+ }),
181
+ group: P({}, e, {
182
+ value: ve
183
+ }),
184
+ groupCollapsed: P({}, e, {
185
+ value: pe
186
+ }),
187
+ groupEnd: P({}, e, {
188
+ value: ge
189
189
  })
190
190
  });
191
191
  }
192
- W < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ W < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var z = g.ReactCurrentDispatcher, G;
196
- function V(e, r, t) {
195
+ var H = T.ReactCurrentDispatcher, Z;
196
+ function N(e, r, t) {
197
197
  {
198
- if (G === void 0)
198
+ if (Z === void 0)
199
199
  try {
200
200
  throw Error();
201
201
  } catch (i) {
202
202
  var n = i.stack.trim().match(/\n( *(at )?)/);
203
- G = n && n[1] || "";
203
+ Z = n && n[1] || "";
204
204
  }
205
205
  return `
206
- ` + G + e;
206
+ ` + Z + e;
207
207
  }
208
208
  }
209
- var X = !1, N;
209
+ var Q = !1, B;
210
210
  {
211
- var Me = typeof WeakMap == "function" ? WeakMap : Map;
212
- N = new Me();
211
+ var Ve = typeof WeakMap == "function" ? WeakMap : Map;
212
+ B = new Ve();
213
213
  }
214
- function pe(e, r) {
215
- if (!e || X)
214
+ function ye(e, r) {
215
+ if (!e || Q)
216
216
  return "";
217
217
  {
218
- var t = N.get(e);
218
+ var t = B.get(e);
219
219
  if (t !== void 0)
220
220
  return t;
221
221
  }
222
222
  var n;
223
- X = !0;
223
+ Q = !0;
224
224
  var i = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
226
  var s;
227
- s = z.current, z.current = null, Le();
227
+ s = H.current, H.current = null, Le();
228
228
  try {
229
229
  if (r) {
230
230
  var o = function() {
@@ -261,29 +261,29 @@ function pr() {
261
261
  if (p && n && typeof p.stack == "string") {
262
262
  for (var a = p.stack.split(`
263
263
  `), v = n.stack.split(`
264
- `), u = a.length - 1, c = v.length - 1; u >= 1 && c >= 0 && a[u] !== v[c]; )
265
- c--;
266
- for (; u >= 1 && c >= 0; u--, c--)
267
- if (a[u] !== v[c]) {
268
- if (u !== 1 || c !== 1)
264
+ `), u = a.length - 1, l = v.length - 1; u >= 1 && l >= 0 && a[u] !== v[l]; )
265
+ l--;
266
+ for (; u >= 1 && l >= 0; u--, l--)
267
+ if (a[u] !== v[l]) {
268
+ if (u !== 1 || l !== 1)
269
269
  do
270
- if (u--, c--, c < 0 || a[u] !== v[c]) {
271
- var h = `
270
+ if (u--, l--, l < 0 || a[u] !== v[l]) {
271
+ var g = `
272
272
  ` + a[u].replace(" at new ", " at ");
273
- return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, h), h;
273
+ return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, g), g;
274
274
  }
275
- while (u >= 1 && c >= 0);
275
+ while (u >= 1 && l >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- X = !1, z.current = s, Ue(), Error.prepareStackTrace = i;
280
+ Q = !1, H.current = s, Ue(), Error.prepareStackTrace = i;
281
281
  }
282
- var F = e ? e.displayName || e.name : "", O = F ? V(F) : "";
283
- return typeof e == "function" && N.set(e, O), O;
282
+ var I = e ? e.displayName || e.name : "", O = I ? N(I) : "";
283
+ return typeof e == "function" && B.set(e, O), O;
284
284
  }
285
- function Ve(e, r, t) {
286
- return pe(e, !1);
285
+ function Me(e, r, t) {
286
+ return ye(e, !1);
287
287
  }
288
288
  function Ne(e) {
289
289
  var r = e.prototype;
@@ -293,20 +293,20 @@ function pr() {
293
293
  if (e == null)
294
294
  return "";
295
295
  if (typeof e == "function")
296
- return pe(e, Ne(e));
296
+ return ye(e, Ne(e));
297
297
  if (typeof e == "string")
298
- return V(e);
298
+ return N(e);
299
299
  switch (e) {
300
300
  case R:
301
- return V("Suspense");
301
+ return N("Suspense");
302
302
  case d:
303
- return V("SuspenseList");
303
+ return N("SuspenseList");
304
304
  }
305
305
  if (typeof e == "object")
306
306
  switch (e.$$typeof) {
307
307
  case f:
308
- return Ve(e.render);
309
- case y:
308
+ return Me(e.render);
309
+ case h:
310
310
  return J(e.type, r, t);
311
311
  case _: {
312
312
  var n = e, i = n._payload, s = n._init;
@@ -318,15 +318,15 @@ function pr() {
318
318
  }
319
319
  return "";
320
320
  }
321
- var $ = Object.prototype.hasOwnProperty, ge = {}, he = g.ReactDebugCurrentFrame;
321
+ var $ = Object.prototype.hasOwnProperty, me = {}, be = T.ReactDebugCurrentFrame;
322
322
  function q(e) {
323
323
  if (e) {
324
324
  var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
325
- he.setExtraStackFrame(t);
325
+ be.setExtraStackFrame(t);
326
326
  } else
327
- he.setExtraStackFrame(null);
327
+ be.setExtraStackFrame(null);
328
328
  }
329
- function Je(e, r, t, n, i) {
329
+ function Be(e, r, t, n, i) {
330
330
  {
331
331
  var s = Function.call.bind($);
332
332
  for (var o in e)
@@ -341,15 +341,15 @@ function pr() {
341
341
  } catch (u) {
342
342
  a = u;
343
343
  }
344
- a && !(a instanceof Error) && (q(i), l("%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), q(null)), a instanceof Error && !(a.message in ge) && (ge[a.message] = !0, q(i), l("Failed %s type: %s", t, a.message), q(null));
344
+ a && !(a instanceof Error) && (q(i), c("%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), q(null)), a instanceof Error && !(a.message in me) && (me[a.message] = !0, q(i), c("Failed %s type: %s", t, a.message), q(null));
345
345
  }
346
346
  }
347
347
  }
348
- var qe = Array.isArray;
349
- function H(e) {
350
- return qe(e);
348
+ var Je = Array.isArray;
349
+ function ee(e) {
350
+ return Je(e);
351
351
  }
352
- function Be(e) {
352
+ function qe(e) {
353
353
  {
354
354
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
355
  return t;
@@ -357,25 +357,25 @@ function pr() {
357
357
  }
358
358
  function Ke(e) {
359
359
  try {
360
- return ye(e), !1;
360
+ return Ee(e), !1;
361
361
  } catch {
362
362
  return !0;
363
363
  }
364
364
  }
365
- function ye(e) {
365
+ function Ee(e) {
366
366
  return "" + e;
367
367
  }
368
- function me(e) {
368
+ function Re(e) {
369
369
  if (Ke(e))
370
- return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ye(e);
370
+ return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), Ee(e);
371
371
  }
372
- var Y = g.ReactCurrentOwner, ze = {
372
+ var Y = T.ReactCurrentOwner, ze = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
376
376
  __source: !0
377
- }, be, Ee, Z;
378
- Z = {};
377
+ }, _e, we, re;
378
+ re = {};
379
379
  function Ge(e) {
380
380
  if ($.call(e, "ref")) {
381
381
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -395,13 +395,13 @@ function pr() {
395
395
  function He(e, r) {
396
396
  if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) {
397
397
  var t = m(Y.current.type);
398
- Z[t] || (l('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', m(Y.current.type), e.ref), Z[t] = !0);
398
+ re[t] || (c('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', m(Y.current.type), e.ref), re[t] = !0);
399
399
  }
400
400
  }
401
401
  function Ze(e, r) {
402
402
  {
403
403
  var t = function() {
404
- be || (be = !0, l("%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));
404
+ _e || (_e = !0, c("%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));
405
405
  };
406
406
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
407
407
  get: t,
@@ -412,7 +412,7 @@ function pr() {
412
412
  function Qe(e, r) {
413
413
  {
414
414
  var t = function() {
415
- Ee || (Ee = !0, l("%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));
415
+ we || (we = !0, c("%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));
416
416
  };
417
417
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
418
  get: t,
@@ -452,7 +452,7 @@ function pr() {
452
452
  function rr(e, r, t, n, i) {
453
453
  {
454
454
  var s, o = {}, a = null, v = null;
455
- t !== void 0 && (me(t), a = "" + t), Xe(r) && (me(r.key), a = "" + r.key), Ge(r) && (v = r.ref, He(r, i));
455
+ t !== void 0 && (Re(t), a = "" + t), Xe(r) && (Re(r.key), a = "" + r.key), Ge(r) && (v = r.ref, He(r, i));
456
456
  for (s in r)
457
457
  $.call(r, s) && !ze.hasOwnProperty(s) && (o[s] = r[s]);
458
458
  if (e && e.defaultProps) {
@@ -461,29 +461,29 @@ function pr() {
461
461
  o[s] === void 0 && (o[s] = u[s]);
462
462
  }
463
463
  if (a || v) {
464
- var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- a && Ze(o, c), v && Qe(o, c);
464
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
+ a && Ze(o, l), v && Qe(o, l);
466
466
  }
467
467
  return er(e, a, v, i, n, Y.current, o);
468
468
  }
469
469
  }
470
- var Q = g.ReactCurrentOwner, Re = g.ReactDebugCurrentFrame;
471
- function D(e) {
470
+ var te = T.ReactCurrentOwner, je = T.ReactDebugCurrentFrame;
471
+ function F(e) {
472
472
  if (e) {
473
473
  var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
474
- Re.setExtraStackFrame(t);
474
+ je.setExtraStackFrame(t);
475
475
  } else
476
- Re.setExtraStackFrame(null);
476
+ je.setExtraStackFrame(null);
477
477
  }
478
- var ee;
479
- ee = !1;
480
- function re(e) {
478
+ var ne;
479
+ ne = !1;
480
+ function ae(e) {
481
481
  return typeof e == "object" && e !== null && e.$$typeof === j;
482
482
  }
483
- function _e() {
483
+ function xe() {
484
484
  {
485
- if (Q.current) {
486
- var e = m(Q.current.type);
485
+ if (te.current) {
486
+ var e = m(te.current.type);
487
487
  if (e)
488
488
  return `
489
489
 
@@ -495,10 +495,10 @@ Check the render method of \`` + e + "`.";
495
495
  function tr(e) {
496
496
  return "";
497
497
  }
498
- var we = {};
498
+ var Te = {};
499
499
  function nr(e) {
500
500
  {
501
- var r = _e();
501
+ var r = xe();
502
502
  if (!r) {
503
503
  var t = typeof e == "string" ? e : e.displayName || e.name;
504
504
  t && (r = `
@@ -508,35 +508,35 @@ Check the top-level render call using <` + t + ">.");
508
508
  return r;
509
509
  }
510
510
  }
511
- function je(e, r) {
511
+ function Ce(e, r) {
512
512
  {
513
513
  if (!e._store || e._store.validated || e.key != null)
514
514
  return;
515
515
  e._store.validated = !0;
516
516
  var t = nr(r);
517
- if (we[t])
517
+ if (Te[t])
518
518
  return;
519
- we[t] = !0;
519
+ Te[t] = !0;
520
520
  var n = "";
521
- e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + m(e._owner.type) + "."), D(e), l('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), D(null);
521
+ e && e._owner && e._owner !== te.current && (n = " It was passed a child from " + m(e._owner.type) + "."), F(e), c('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), F(null);
522
522
  }
523
523
  }
524
- function xe(e, r) {
524
+ function Pe(e, r) {
525
525
  {
526
526
  if (typeof e != "object")
527
527
  return;
528
- if (H(e))
528
+ if (ee(e))
529
529
  for (var t = 0; t < e.length; t++) {
530
530
  var n = e[t];
531
- re(n) && je(n, r);
531
+ ae(n) && Ce(n, r);
532
532
  }
533
- else if (re(e))
533
+ else if (ae(e))
534
534
  e._store && (e._store.validated = !0);
535
535
  else if (e) {
536
- var i = A(e);
536
+ var i = X(e);
537
537
  if (typeof i == "function" && i !== e.entries)
538
538
  for (var s = i.call(e), o; !(o = s.next()).done; )
539
- re(o.value) && je(o.value, r);
539
+ ae(o.value) && Ce(o.value, r);
540
540
  }
541
541
  }
542
542
  }
@@ -550,19 +550,19 @@ Check the top-level render call using <` + t + ">.");
550
550
  t = r.propTypes;
551
551
  else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
552
552
  // Inner props are checked in the reconciler.
553
- r.$$typeof === y))
553
+ r.$$typeof === h))
554
554
  t = r.propTypes;
555
555
  else
556
556
  return;
557
557
  if (t) {
558
558
  var n = m(r);
559
- Je(t, e.props, "prop", n, e);
560
- } else if (r.PropTypes !== void 0 && !ee) {
561
- ee = !0;
559
+ Be(t, e.props, "prop", n, e);
560
+ } else if (r.PropTypes !== void 0 && !ne) {
561
+ ne = !0;
562
562
  var i = m(r);
563
- l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
563
+ c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
564
564
  }
565
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
566
  }
567
567
  }
568
568
  function or(e) {
@@ -570,104 +570,107 @@ Check the top-level render call using <` + t + ">.");
570
570
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
571
571
  var n = r[t];
572
572
  if (n !== "children" && n !== "key") {
573
- D(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
573
+ F(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
574
574
  break;
575
575
  }
576
576
  }
577
- e.ref !== null && (D(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
577
+ e.ref !== null && (F(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
578
578
  }
579
579
  }
580
- var Te = {};
581
- function Ce(e, r, t, n, i, s) {
580
+ var Oe = {};
581
+ function Se(e, r, t, n, i, s) {
582
582
  {
583
583
  var o = $e(e);
584
584
  if (!o) {
585
585
  var a = "";
586
586
  (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.");
587
587
  var v = tr();
588
- v ? a += v : a += _e();
588
+ v ? a += v : a += xe();
589
589
  var u;
590
- e === null ? u = "null" : H(e) ? u = "array" : e !== void 0 && e.$$typeof === j ? (u = "<" + (m(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, a);
590
+ e === null ? u = "null" : ee(e) ? u = "array" : e !== void 0 && e.$$typeof === j ? (u = "<" + (m(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, a);
591
591
  }
592
- var c = rr(e, r, t, i, s);
593
- if (c == null)
594
- return c;
592
+ var l = rr(e, r, t, i, s);
593
+ if (l == null)
594
+ return l;
595
595
  if (o) {
596
- var h = r.children;
597
- if (h !== void 0)
596
+ var g = r.children;
597
+ if (g !== void 0)
598
598
  if (n)
599
- if (H(h)) {
600
- for (var F = 0; F < h.length; F++)
601
- xe(h[F], e);
602
- Object.freeze && Object.freeze(h);
599
+ if (ee(g)) {
600
+ for (var I = 0; I < g.length; I++)
601
+ Pe(g[I], e);
602
+ Object.freeze && Object.freeze(g);
603
603
  } else
604
- l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
605
  else
606
- xe(h, e);
606
+ Pe(g, e);
607
607
  }
608
608
  if ($.call(r, "key")) {
609
609
  var O = m(e), p = Object.keys(r).filter(function(fr) {
610
610
  return fr !== "key";
611
- }), te = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
612
- if (!Te[O + te]) {
611
+ }), oe = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
612
+ if (!Oe[O + oe]) {
613
613
  var lr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
614
- l(`A props object containing a "key" prop is being spread into JSX:
614
+ c(`A props object containing a "key" prop is being spread into JSX:
615
615
  let props = %s;
616
616
  <%s {...props} />
617
617
  React keys must be passed directly to JSX without using spread:
618
618
  let props = %s;
619
- <%s key={someKey} {...props} />`, te, O, lr, O), Te[O + te] = !0;
619
+ <%s key={someKey} {...props} />`, oe, O, lr, O), Oe[O + oe] = !0;
620
620
  }
621
621
  }
622
- return e === b ? or(c) : ar(c), c;
622
+ return e === b ? or(l) : ar(l), l;
623
623
  }
624
624
  }
625
625
  function ir(e, r, t) {
626
- return Ce(e, r, t, !0);
626
+ return Se(e, r, t, !0);
627
627
  }
628
628
  function sr(e, r, t) {
629
- return Ce(e, r, t, !1);
629
+ return Se(e, r, t, !1);
630
630
  }
631
631
  var ur = sr, cr = ir;
632
632
  U.Fragment = b, U.jsx = ur, U.jsxs = cr;
633
633
  }()), U;
634
634
  }
635
- process.env.NODE_ENV === "production" ? ne.exports = vr() : ne.exports = pr();
636
- var B = ne.exports;
637
- let K = "";
635
+ process.env.NODE_ENV === "production" ? ie.exports = vr() : ie.exports = pr();
636
+ var K = ie.exports;
637
+ let z = "";
638
638
  async function hr(w) {
639
- if (!K)
639
+ if (!z)
640
640
  throw "user jid is empty, please initialize jsxc";
641
- await window.jsxc.getAccount(K).account.getConnection().getRosterService().addContact(new window.jsxc.JID(w), ""), window.jsxc.getAccount(K).getContact(w).openChatWindow();
641
+ await window.jsxc.getAccount(z).account.getConnection().getRosterService().addContact(new window.jsxc.JID(w), ""), window.jsxc.getAccount(z).getContact(w).openChatWindow();
642
642
  }
643
643
  function yr(w) {
644
644
  const j = "roster-append", S = "windowlist-append", b = "dialog-append", {
645
- jqueryUrl: P = "https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js",
646
- marginTop: k = "40px",
647
- marginLeft: T = "40px",
645
+ jqueryUrl: k = "https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js",
646
+ marginTop: A = "40px",
647
+ marginLeft: C = "40px",
648
648
  marginBottom: E = "40px",
649
649
  marginRight: f = "40px",
650
650
  contactId: R = null,
651
651
  showMenu: d,
652
- fullscreen: y,
652
+ fullscreen: h,
653
653
  boshUrl: _,
654
654
  id: x,
655
- pw: M
655
+ pw: V,
656
+ showAudioButton: G,
657
+ showVideoButton: X,
658
+ showOfflineButton: T
656
659
  } = w;
657
- return K = x, dr(() => {
660
+ return z = x, dr(() => {
658
661
  if (window.jsxc) {
659
662
  R && window.jsxc.getAccount(x).getContact(R).openChatWindow();
660
663
  return;
661
664
  }
662
- y && (document.getElementsByTagName("body")[0].className = "jsxc-fullscreen");
663
- const I = document.createElement("script");
664
- I.type = "text/javascript", I.src = P, document.head.appendChild(I);
665
- let A = document.createElement("script");
666
- A.type = "text/javascript", A.src = "/jsxc.bundle.js", document.head.appendChild(A);
667
- const g = document.documentElement;
668
- g.style.setProperty("--jsxc-margin-top", k), g.style.setProperty("--jsxc-margin-left", T), g.style.setProperty("--jsxc-margin-bottom", E), g.style.setProperty("--jsxc-margin-right", f), A.onload = () => {
665
+ h && (document.getElementsByTagName("body")[0].className = "jsxc-fullscreen");
666
+ const c = document.createElement("script");
667
+ c.type = "text/javascript", c.src = k, document.head.appendChild(c);
668
+ let D = document.createElement("script");
669
+ D.type = "text/javascript", D.src = "/jsxc.bundle.js", document.head.appendChild(D);
670
+ const y = document.documentElement;
671
+ y.style.setProperty("--jsxc-margin-top", A), y.style.setProperty("--jsxc-margin-left", C), y.style.setProperty("--jsxc-margin-bottom", E), y.style.setProperty("--jsxc-margin-right", f), D.onload = () => {
669
672
  localStorage.removeItem("jsxc2:accounts");
670
- let l = new window.JSXC({
673
+ let M = new window.JSXC({
671
674
  /* loadConnectionOptions: function(username: any, password: any) {
672
675
  return Promise.resolve({
673
676
  xmpp: {
@@ -678,15 +681,16 @@ function yr(w) {
678
681
  },*/
679
682
  rosterAppend: "#" + j,
680
683
  dialogAppend: "#" + b,
681
- windowListAppend: "#" + S
684
+ windowListAppend: "#" + S,
685
+ lang: "zh"
682
686
  });
683
- window.jsxc = l, l.start(_, x, M);
684
- }, d === "yes" && (g.style.setProperty("--jsxc-show-menu", "none"), console.log("not show jsxc menu"));
687
+ window.jsxc = M, M.start(_, x, V);
688
+ }, d === "no" && y.style.setProperty("--jsxc-show-menu", "none"), G === "no" && y.style.setProperty("--jsxc-show-audio-button", "none"), X === "no" && y.style.setProperty("--jsxc-show-video-button", "none"), T === "no" && y.style.setProperty("--jsxc-show-offline-button", "none");
685
689
  }, []), // <Keepalive>
686
- /* @__PURE__ */ B.jsxs("div", { id: "jsxc-containers", style: { width: "100%", height: "100%" }, children: [
687
- /* @__PURE__ */ B.jsx("div", { style: { width: "100%", height: "100%" }, id: j }),
688
- /* @__PURE__ */ B.jsx("div", { style: { width: "100%", height: "100%" }, id: b }),
689
- /* @__PURE__ */ B.jsx("div", { style: { width: "100%", height: "100%" }, id: S })
690
+ /* @__PURE__ */ K.jsxs("div", { id: "jsxc-containers", style: { width: "100%", height: "100%" }, children: [
691
+ /* @__PURE__ */ K.jsx("div", { style: { width: "100%", height: "100%" }, id: j }),
692
+ /* @__PURE__ */ K.jsx("div", { style: { width: "100%", height: "100%" }, id: b }),
693
+ /* @__PURE__ */ K.jsx("div", { style: { width: "100%", height: "100%" }, id: S })
690
694
  ] });
691
695
  }
692
696
  export {