jsxc-react-hook 0.0.5 → 0.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/dist/Jsxc.d.ts +3 -0
- package/dist/jsxc-react-hook.js +255 -600
- package/dist/jsxc-react-hook.umd.cjs +7 -15
- package/dist/style.css +3 -3
- package/package.json +3 -3
- package/src/Sel.tsx +2 -2
- package/src/lib/assets/.fuse_hidden00043c3c00000004 +2 -0
- package/src/main.tsx +0 -1
- package/vite.config.ts +1 -1
package/dist/jsxc-react-hook.js
CHANGED
@@ -1,673 +1,327 @@
|
|
1
1
|
import './style.css';
|
2
|
-
import
|
3
|
-
var
|
2
|
+
import re, { useEffect as te } from "react";
|
3
|
+
var L = { exports: {} }, x = {};
|
4
4
|
/**
|
5
5
|
* @license React
|
6
|
-
* react-jsx-runtime.production.
|
6
|
+
* react-jsx-runtime.production.js
|
7
7
|
*
|
8
|
-
* Copyright (c)
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
9
9
|
*
|
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
|
14
|
-
function
|
15
|
-
if (
|
16
|
-
return
|
17
|
-
|
18
|
-
var
|
19
|
-
function
|
20
|
-
var
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
return
|
13
|
+
var B;
|
14
|
+
function ne() {
|
15
|
+
if (B)
|
16
|
+
return x;
|
17
|
+
B = 1;
|
18
|
+
var s = Symbol.for("react.transitional.element"), m = Symbol.for("react.fragment");
|
19
|
+
function u(d, a, c) {
|
20
|
+
var p = null;
|
21
|
+
if (c !== void 0 && (p = "" + c), a.key !== void 0 && (p = "" + a.key), "key" in a) {
|
22
|
+
c = {};
|
23
|
+
for (var E in a)
|
24
|
+
E !== "key" && (c[E] = a[E]);
|
25
|
+
} else
|
26
|
+
c = a;
|
27
|
+
return a = c.ref, {
|
28
|
+
$$typeof: s,
|
29
|
+
type: d,
|
30
|
+
key: p,
|
31
|
+
ref: a !== void 0 ? a : null,
|
32
|
+
props: c
|
33
|
+
};
|
28
34
|
}
|
29
|
-
return
|
35
|
+
return x.Fragment = m, x.jsx = u, x.jsxs = u, x;
|
30
36
|
}
|
31
|
-
var
|
37
|
+
var _ = {};
|
32
38
|
/**
|
33
39
|
* @license React
|
34
40
|
* react-jsx-runtime.development.js
|
35
41
|
*
|
36
|
-
* Copyright (c)
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
37
43
|
*
|
38
44
|
* This source code is licensed under the MIT license found in the
|
39
45
|
* LICENSE file in the root directory of this source tree.
|
40
46
|
*/
|
41
|
-
var
|
42
|
-
function
|
43
|
-
return
|
44
|
-
|
45
|
-
function A(e) {
|
46
|
-
if (e === null || typeof e != "object")
|
47
|
-
return null;
|
48
|
-
var r = M && e[M] || e[I];
|
49
|
-
return typeof r == "function" ? r : null;
|
50
|
-
}
|
51
|
-
var g = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
52
|
-
function l(e) {
|
53
|
-
{
|
54
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
55
|
-
t[n - 1] = arguments[n];
|
56
|
-
ke("error", e, t);
|
57
|
-
}
|
58
|
-
}
|
59
|
-
function ke(e, r, t) {
|
60
|
-
{
|
61
|
-
var n = g.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
62
|
-
i !== "" && (r += "%s", t = t.concat([i]));
|
63
|
-
var s = t.map(function(o) {
|
64
|
-
return String(o);
|
65
|
-
});
|
66
|
-
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
67
|
-
}
|
68
|
-
}
|
69
|
-
var Ae = !1, De = !1, Fe = !1, Ie = !1, We = !1, ae;
|
70
|
-
ae = Symbol.for("react.module.reference");
|
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
|
73
|
-
// types supported by any Flight configuration anywhere since
|
74
|
-
// we don't know which Flight build this will end up being used
|
75
|
-
// with.
|
76
|
-
e.$$typeof === ae || e.getModuleId !== void 0));
|
77
|
-
}
|
78
|
-
function Ye(e, r, t) {
|
79
|
-
var n = e.displayName;
|
80
|
-
if (n)
|
81
|
-
return n;
|
82
|
-
var i = r.displayName || r.name || "";
|
83
|
-
return i !== "" ? t + "(" + i + ")" : t;
|
84
|
-
}
|
85
|
-
function oe(e) {
|
86
|
-
return e.displayName || "Context";
|
87
|
-
}
|
88
|
-
function m(e) {
|
47
|
+
var G;
|
48
|
+
function oe() {
|
49
|
+
return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
|
50
|
+
function s(e) {
|
89
51
|
if (e == null)
|
90
52
|
return null;
|
91
|
-
if (typeof e
|
92
|
-
return e.displayName || e.name || null;
|
53
|
+
if (typeof e == "function")
|
54
|
+
return e.$$typeof === Q ? null : e.displayName || e.name || null;
|
93
55
|
if (typeof e == "string")
|
94
56
|
return e;
|
95
57
|
switch (e) {
|
96
|
-
case
|
58
|
+
case R:
|
97
59
|
return "Fragment";
|
98
|
-
case
|
99
|
-
return "Portal";
|
100
|
-
case k:
|
60
|
+
case N:
|
101
61
|
return "Profiler";
|
102
|
-
case
|
62
|
+
case C:
|
103
63
|
return "StrictMode";
|
104
|
-
case
|
64
|
+
case A:
|
105
65
|
return "Suspense";
|
106
|
-
case
|
66
|
+
case X:
|
107
67
|
return "SuspenseList";
|
68
|
+
case Z:
|
69
|
+
return "Activity";
|
108
70
|
}
|
109
71
|
if (typeof e == "object")
|
110
|
-
switch (
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
return
|
117
|
-
case
|
118
|
-
return
|
119
|
-
case
|
120
|
-
var
|
121
|
-
return
|
122
|
-
case
|
123
|
-
|
72
|
+
switch (typeof e.tag == "number" && console.error(
|
73
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
74
|
+
), e.$$typeof) {
|
75
|
+
case S:
|
76
|
+
return "Portal";
|
77
|
+
case j:
|
78
|
+
return (e.displayName || "Context") + ".Provider";
|
79
|
+
case h:
|
80
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
81
|
+
case i:
|
82
|
+
var r = e.render;
|
83
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
84
|
+
case H:
|
85
|
+
return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
|
86
|
+
case W:
|
87
|
+
r = e._payload, e = e._init;
|
124
88
|
try {
|
125
|
-
return
|
89
|
+
return s(e(r));
|
126
90
|
} catch {
|
127
|
-
return null;
|
128
91
|
}
|
129
|
-
}
|
130
92
|
}
|
131
93
|
return null;
|
132
94
|
}
|
133
|
-
|
134
|
-
|
135
|
-
}
|
136
|
-
ve.__reactDisabledLog = !0;
|
137
|
-
function Le() {
|
138
|
-
{
|
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;
|
141
|
-
var e = {
|
142
|
-
configurable: !0,
|
143
|
-
enumerable: !0,
|
144
|
-
value: ve,
|
145
|
-
writable: !0
|
146
|
-
};
|
147
|
-
Object.defineProperties(console, {
|
148
|
-
info: e,
|
149
|
-
log: e,
|
150
|
-
warn: e,
|
151
|
-
error: e,
|
152
|
-
group: e,
|
153
|
-
groupCollapsed: e,
|
154
|
-
groupEnd: e
|
155
|
-
});
|
156
|
-
}
|
157
|
-
W++;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
function Ue() {
|
161
|
-
{
|
162
|
-
if (W--, W === 0) {
|
163
|
-
var e = {
|
164
|
-
configurable: !0,
|
165
|
-
enumerable: !0,
|
166
|
-
writable: !0
|
167
|
-
};
|
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, {
|
179
|
-
value: ce
|
180
|
-
}),
|
181
|
-
group: C({}, e, {
|
182
|
-
value: le
|
183
|
-
}),
|
184
|
-
groupCollapsed: C({}, e, {
|
185
|
-
value: fe
|
186
|
-
}),
|
187
|
-
groupEnd: C({}, e, {
|
188
|
-
value: de
|
189
|
-
})
|
190
|
-
});
|
191
|
-
}
|
192
|
-
W < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
193
|
-
}
|
194
|
-
}
|
195
|
-
var z = g.ReactCurrentDispatcher, G;
|
196
|
-
function V(e, r, t) {
|
197
|
-
{
|
198
|
-
if (G === void 0)
|
199
|
-
try {
|
200
|
-
throw Error();
|
201
|
-
} catch (i) {
|
202
|
-
var n = i.stack.trim().match(/\n( *(at )?)/);
|
203
|
-
G = n && n[1] || "";
|
204
|
-
}
|
205
|
-
return `
|
206
|
-
` + G + e;
|
207
|
-
}
|
208
|
-
}
|
209
|
-
var X = !1, N;
|
210
|
-
{
|
211
|
-
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
212
|
-
N = new Me();
|
95
|
+
function m(e) {
|
96
|
+
return "" + e;
|
213
97
|
}
|
214
|
-
function
|
215
|
-
if (!e || X)
|
216
|
-
return "";
|
217
|
-
{
|
218
|
-
var t = N.get(e);
|
219
|
-
if (t !== void 0)
|
220
|
-
return t;
|
221
|
-
}
|
222
|
-
var n;
|
223
|
-
X = !0;
|
224
|
-
var i = Error.prepareStackTrace;
|
225
|
-
Error.prepareStackTrace = void 0;
|
226
|
-
var s;
|
227
|
-
s = z.current, z.current = null, Le();
|
98
|
+
function u(e) {
|
228
99
|
try {
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
if (Object.defineProperty(o.prototype, "props", {
|
234
|
-
set: function() {
|
235
|
-
throw Error();
|
236
|
-
}
|
237
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
238
|
-
try {
|
239
|
-
Reflect.construct(o, []);
|
240
|
-
} catch (p) {
|
241
|
-
n = p;
|
242
|
-
}
|
243
|
-
Reflect.construct(e, [], o);
|
244
|
-
} else {
|
245
|
-
try {
|
246
|
-
o.call();
|
247
|
-
} catch (p) {
|
248
|
-
n = p;
|
249
|
-
}
|
250
|
-
e.call(o.prototype);
|
251
|
-
}
|
252
|
-
} else {
|
253
|
-
try {
|
254
|
-
throw Error();
|
255
|
-
} catch (p) {
|
256
|
-
n = p;
|
257
|
-
}
|
258
|
-
e();
|
259
|
-
}
|
260
|
-
} catch (p) {
|
261
|
-
if (p && n && typeof p.stack == "string") {
|
262
|
-
for (var a = p.stack.split(`
|
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)
|
269
|
-
do
|
270
|
-
if (u--, c--, c < 0 || a[u] !== v[c]) {
|
271
|
-
var h = `
|
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;
|
274
|
-
}
|
275
|
-
while (u >= 1 && c >= 0);
|
276
|
-
break;
|
277
|
-
}
|
278
|
-
}
|
279
|
-
} finally {
|
280
|
-
X = !1, z.current = s, Ue(), Error.prepareStackTrace = i;
|
281
|
-
}
|
282
|
-
var F = e ? e.displayName || e.name : "", O = F ? V(F) : "";
|
283
|
-
return typeof e == "function" && N.set(e, O), O;
|
284
|
-
}
|
285
|
-
function Ve(e, r, t) {
|
286
|
-
return pe(e, !1);
|
287
|
-
}
|
288
|
-
function Ne(e) {
|
289
|
-
var r = e.prototype;
|
290
|
-
return !!(r && r.isReactComponent);
|
291
|
-
}
|
292
|
-
function J(e, r, t) {
|
293
|
-
if (e == null)
|
294
|
-
return "";
|
295
|
-
if (typeof e == "function")
|
296
|
-
return pe(e, Ne(e));
|
297
|
-
if (typeof e == "string")
|
298
|
-
return V(e);
|
299
|
-
switch (e) {
|
300
|
-
case R:
|
301
|
-
return V("Suspense");
|
302
|
-
case d:
|
303
|
-
return V("SuspenseList");
|
100
|
+
m(e);
|
101
|
+
var r = !1;
|
102
|
+
} catch {
|
103
|
+
r = !0;
|
304
104
|
}
|
305
|
-
if (
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
try {
|
314
|
-
return J(s(i), r, t);
|
315
|
-
} catch {
|
316
|
-
}
|
317
|
-
}
|
318
|
-
}
|
319
|
-
return "";
|
320
|
-
}
|
321
|
-
var $ = Object.prototype.hasOwnProperty, ge = {}, he = g.ReactDebugCurrentFrame;
|
322
|
-
function q(e) {
|
323
|
-
if (e) {
|
324
|
-
var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
|
325
|
-
he.setExtraStackFrame(t);
|
326
|
-
} else
|
327
|
-
he.setExtraStackFrame(null);
|
328
|
-
}
|
329
|
-
function Je(e, r, t, n, i) {
|
330
|
-
{
|
331
|
-
var s = Function.call.bind($);
|
332
|
-
for (var o in e)
|
333
|
-
if (s(e, o)) {
|
334
|
-
var a = void 0;
|
335
|
-
try {
|
336
|
-
if (typeof e[o] != "function") {
|
337
|
-
var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
338
|
-
throw v.name = "Invariant Violation", v;
|
339
|
-
}
|
340
|
-
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
341
|
-
} catch (u) {
|
342
|
-
a = u;
|
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));
|
345
|
-
}
|
105
|
+
if (r) {
|
106
|
+
r = console;
|
107
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
108
|
+
return t.call(
|
109
|
+
r,
|
110
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
111
|
+
n
|
112
|
+
), m(e);
|
346
113
|
}
|
347
114
|
}
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
{
|
354
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
355
|
-
return t;
|
356
|
-
}
|
357
|
-
}
|
358
|
-
function Ke(e) {
|
115
|
+
function d(e) {
|
116
|
+
if (e === R)
|
117
|
+
return "<>";
|
118
|
+
if (typeof e == "object" && e !== null && e.$$typeof === W)
|
119
|
+
return "<...>";
|
359
120
|
try {
|
360
|
-
|
121
|
+
var r = s(e);
|
122
|
+
return r ? "<" + r + ">" : "<...>";
|
361
123
|
} catch {
|
362
|
-
return
|
124
|
+
return "<...>";
|
363
125
|
}
|
364
126
|
}
|
365
|
-
function
|
366
|
-
|
367
|
-
|
368
|
-
function me(e) {
|
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);
|
127
|
+
function a() {
|
128
|
+
var e = Y.A;
|
129
|
+
return e === null ? null : e.getOwner();
|
371
130
|
}
|
372
|
-
|
373
|
-
|
374
|
-
ref: !0,
|
375
|
-
__self: !0,
|
376
|
-
__source: !0
|
377
|
-
}, be, Ee, Z;
|
378
|
-
Z = {};
|
379
|
-
function Ge(e) {
|
380
|
-
if ($.call(e, "ref")) {
|
381
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
382
|
-
if (r && r.isReactWarning)
|
383
|
-
return !1;
|
384
|
-
}
|
385
|
-
return e.ref !== void 0;
|
131
|
+
function c() {
|
132
|
+
return Error("react-stack-top-frame");
|
386
133
|
}
|
387
|
-
function
|
388
|
-
if (
|
134
|
+
function p(e) {
|
135
|
+
if (M.call(e, "key")) {
|
389
136
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
390
137
|
if (r && r.isReactWarning)
|
391
138
|
return !1;
|
392
139
|
}
|
393
140
|
return e.key !== void 0;
|
394
141
|
}
|
395
|
-
function
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
function Ze(e, r) {
|
402
|
-
{
|
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));
|
405
|
-
};
|
406
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
407
|
-
get: t,
|
408
|
-
configurable: !0
|
409
|
-
});
|
142
|
+
function E(e, r) {
|
143
|
+
function t() {
|
144
|
+
U || (U = !0, console.error(
|
145
|
+
"%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://react.dev/link/special-props)",
|
146
|
+
r
|
147
|
+
));
|
410
148
|
}
|
149
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
150
|
+
get: t,
|
151
|
+
configurable: !0
|
152
|
+
});
|
411
153
|
}
|
412
|
-
function
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
418
|
-
get: t,
|
419
|
-
configurable: !0
|
420
|
-
});
|
421
|
-
}
|
154
|
+
function O() {
|
155
|
+
var e = s(this.type);
|
156
|
+
return J[e] || (J[e] = !0, console.error(
|
157
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
158
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
422
159
|
}
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
$$typeof: j,
|
427
|
-
// Built-in properties that belong on the element
|
160
|
+
function g(e, r, t, n, f, l, $, D) {
|
161
|
+
return t = l.ref, e = {
|
162
|
+
$$typeof: b,
|
428
163
|
type: e,
|
429
164
|
key: r,
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
165
|
+
props: l,
|
166
|
+
_owner: f
|
167
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
168
|
+
enumerable: !1,
|
169
|
+
get: O
|
170
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
436
171
|
configurable: !1,
|
437
172
|
enumerable: !1,
|
438
173
|
writable: !0,
|
439
|
-
value:
|
440
|
-
}), Object.defineProperty(
|
174
|
+
value: 0
|
175
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
441
176
|
configurable: !1,
|
442
177
|
enumerable: !1,
|
443
|
-
writable: !
|
444
|
-
value:
|
445
|
-
}), Object.defineProperty(
|
178
|
+
writable: !0,
|
179
|
+
value: null
|
180
|
+
}), Object.defineProperty(e, "_debugStack", {
|
446
181
|
configurable: !1,
|
447
182
|
enumerable: !1,
|
448
|
-
writable: !
|
449
|
-
value:
|
450
|
-
}), Object.
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
}
|
470
|
-
var Q = g.ReactCurrentOwner, Re = g.ReactDebugCurrentFrame;
|
471
|
-
function D(e) {
|
472
|
-
if (e) {
|
473
|
-
var r = e._owner, t = J(e.type, e._source, r ? r.type : null);
|
474
|
-
Re.setExtraStackFrame(t);
|
475
|
-
} else
|
476
|
-
Re.setExtraStackFrame(null);
|
477
|
-
}
|
478
|
-
var ee;
|
479
|
-
ee = !1;
|
480
|
-
function re(e) {
|
481
|
-
return typeof e == "object" && e !== null && e.$$typeof === j;
|
482
|
-
}
|
483
|
-
function _e() {
|
484
|
-
{
|
485
|
-
if (Q.current) {
|
486
|
-
var e = m(Q.current.type);
|
487
|
-
if (e)
|
488
|
-
return `
|
489
|
-
|
490
|
-
Check the render method of \`` + e + "`.";
|
491
|
-
}
|
492
|
-
return "";
|
493
|
-
}
|
494
|
-
}
|
495
|
-
function tr(e) {
|
496
|
-
return "";
|
497
|
-
}
|
498
|
-
var we = {};
|
499
|
-
function nr(e) {
|
500
|
-
{
|
501
|
-
var r = _e();
|
502
|
-
if (!r) {
|
503
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
504
|
-
t && (r = `
|
505
|
-
|
506
|
-
Check the top-level render call using <` + t + ">.");
|
507
|
-
}
|
508
|
-
return r;
|
509
|
-
}
|
510
|
-
}
|
511
|
-
function je(e, r) {
|
512
|
-
{
|
513
|
-
if (!e._store || e._store.validated || e.key != null)
|
514
|
-
return;
|
515
|
-
e._store.validated = !0;
|
516
|
-
var t = nr(r);
|
517
|
-
if (we[t])
|
518
|
-
return;
|
519
|
-
we[t] = !0;
|
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);
|
522
|
-
}
|
523
|
-
}
|
524
|
-
function xe(e, r) {
|
525
|
-
{
|
526
|
-
if (typeof e != "object")
|
527
|
-
return;
|
528
|
-
if (H(e))
|
529
|
-
for (var t = 0; t < e.length; t++) {
|
530
|
-
var n = e[t];
|
531
|
-
re(n) && je(n, r);
|
532
|
-
}
|
533
|
-
else if (re(e))
|
534
|
-
e._store && (e._store.validated = !0);
|
535
|
-
else if (e) {
|
536
|
-
var i = A(e);
|
537
|
-
if (typeof i == "function" && i !== e.entries)
|
538
|
-
for (var s = i.call(e), o; !(o = s.next()).done; )
|
539
|
-
re(o.value) && je(o.value, r);
|
540
|
-
}
|
541
|
-
}
|
542
|
-
}
|
543
|
-
function ar(e) {
|
544
|
-
{
|
545
|
-
var r = e.type;
|
546
|
-
if (r == null || typeof r == "string")
|
547
|
-
return;
|
548
|
-
var t;
|
549
|
-
if (typeof r == "function")
|
550
|
-
t = r.propTypes;
|
551
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
552
|
-
// Inner props are checked in the reconciler.
|
553
|
-
r.$$typeof === y))
|
554
|
-
t = r.propTypes;
|
183
|
+
writable: !0,
|
184
|
+
value: $
|
185
|
+
}), Object.defineProperty(e, "_debugTask", {
|
186
|
+
configurable: !1,
|
187
|
+
enumerable: !1,
|
188
|
+
writable: !0,
|
189
|
+
value: D
|
190
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
191
|
+
}
|
192
|
+
function T(e, r, t, n, f, l, $, D) {
|
193
|
+
var o = r.children;
|
194
|
+
if (o !== void 0)
|
195
|
+
if (n)
|
196
|
+
if (K(o)) {
|
197
|
+
for (n = 0; n < o.length; n++)
|
198
|
+
y(o[n]);
|
199
|
+
Object.freeze && Object.freeze(o);
|
200
|
+
} else
|
201
|
+
console.error(
|
202
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
203
|
+
);
|
555
204
|
else
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
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.");
|
566
|
-
}
|
567
|
-
}
|
568
|
-
function or(e) {
|
569
|
-
{
|
570
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
571
|
-
var n = r[t];
|
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);
|
574
|
-
break;
|
575
|
-
}
|
576
|
-
}
|
577
|
-
e.ref !== null && (D(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
578
|
-
}
|
579
|
-
}
|
580
|
-
var Te = {};
|
581
|
-
function Ce(e, r, t, n, i, s) {
|
582
|
-
{
|
583
|
-
var o = $e(e);
|
584
|
-
if (!o) {
|
585
|
-
var a = "";
|
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
|
-
var v = tr();
|
588
|
-
v ? a += v : a += _e();
|
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);
|
591
|
-
}
|
592
|
-
var c = rr(e, r, t, i, s);
|
593
|
-
if (c == null)
|
594
|
-
return c;
|
595
|
-
if (o) {
|
596
|
-
var h = r.children;
|
597
|
-
if (h !== void 0)
|
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);
|
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.");
|
605
|
-
else
|
606
|
-
xe(h, e);
|
607
|
-
}
|
608
|
-
if ($.call(r, "key")) {
|
609
|
-
var O = m(e), p = Object.keys(r).filter(function(fr) {
|
610
|
-
return fr !== "key";
|
611
|
-
}), te = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
|
612
|
-
if (!Te[O + te]) {
|
613
|
-
var lr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
|
614
|
-
l(`A props object containing a "key" prop is being spread into JSX:
|
205
|
+
y(o);
|
206
|
+
if (M.call(r, "key")) {
|
207
|
+
o = s(e);
|
208
|
+
var v = Object.keys(r).filter(function(ee) {
|
209
|
+
return ee !== "key";
|
210
|
+
});
|
211
|
+
n = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", V[o + n] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
|
212
|
+
`A props object containing a "key" prop is being spread into JSX:
|
615
213
|
let props = %s;
|
616
214
|
<%s {...props} />
|
617
215
|
React keys must be passed directly to JSX without using spread:
|
618
216
|
let props = %s;
|
619
|
-
<%s key={someKey} {...props} />`,
|
620
|
-
|
621
|
-
|
622
|
-
|
217
|
+
<%s key={someKey} {...props} />`,
|
218
|
+
n,
|
219
|
+
o,
|
220
|
+
v,
|
221
|
+
o
|
222
|
+
), V[o + n] = !0);
|
623
223
|
}
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
224
|
+
if (o = null, t !== void 0 && (u(t), o = "" + t), p(r) && (u(r.key), o = "" + r.key), "key" in r) {
|
225
|
+
t = {};
|
226
|
+
for (var F in r)
|
227
|
+
F !== "key" && (t[F] = r[F]);
|
228
|
+
} else
|
229
|
+
t = r;
|
230
|
+
return o && E(
|
231
|
+
t,
|
232
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
233
|
+
), g(
|
234
|
+
e,
|
235
|
+
o,
|
236
|
+
l,
|
237
|
+
f,
|
238
|
+
a(),
|
239
|
+
t,
|
240
|
+
$,
|
241
|
+
D
|
242
|
+
);
|
243
|
+
}
|
244
|
+
function y(e) {
|
245
|
+
typeof e == "object" && e !== null && e.$$typeof === b && e._store && (e._store.validated = 1);
|
246
|
+
}
|
247
|
+
var w = re, b = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), h = Symbol.for("react.consumer"), j = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), Y = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, K = Array.isArray, I = console.createTask ? console.createTask : function() {
|
248
|
+
return null;
|
249
|
+
};
|
250
|
+
w = {
|
251
|
+
"react-stack-bottom-frame": function(e) {
|
252
|
+
return e();
|
253
|
+
}
|
254
|
+
};
|
255
|
+
var U, J = {}, q = w["react-stack-bottom-frame"].bind(
|
256
|
+
w,
|
257
|
+
c
|
258
|
+
)(), z = I(d(c)), V = {};
|
259
|
+
_.Fragment = R, _.jsx = function(e, r, t, n, f) {
|
260
|
+
var l = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
261
|
+
return T(
|
262
|
+
e,
|
263
|
+
r,
|
264
|
+
t,
|
265
|
+
!1,
|
266
|
+
n,
|
267
|
+
f,
|
268
|
+
l ? Error("react-stack-top-frame") : q,
|
269
|
+
l ? I(d(e)) : z
|
270
|
+
);
|
271
|
+
}, _.jsxs = function(e, r, t, n, f) {
|
272
|
+
var l = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
273
|
+
return T(
|
274
|
+
e,
|
275
|
+
r,
|
276
|
+
t,
|
277
|
+
!0,
|
278
|
+
n,
|
279
|
+
f,
|
280
|
+
l ? Error("react-stack-top-frame") : q,
|
281
|
+
l ? I(d(e)) : z
|
282
|
+
);
|
283
|
+
};
|
284
|
+
}()), _;
|
634
285
|
}
|
635
|
-
process.env.NODE_ENV === "production" ?
|
636
|
-
var
|
637
|
-
let
|
638
|
-
async function
|
639
|
-
if (!
|
286
|
+
process.env.NODE_ENV === "production" ? L.exports = ne() : L.exports = oe();
|
287
|
+
var k = L.exports;
|
288
|
+
let P = "";
|
289
|
+
async function se(s) {
|
290
|
+
if (!P)
|
640
291
|
throw "user jid is empty, please initialize jsxc";
|
641
|
-
await window.jsxc.getAccount(
|
292
|
+
await window.jsxc.getAccount(P).account.getConnection().getRosterService().addContact(new window.jsxc.JID(s), ""), window.jsxc.getAccount(P).getContact(s).openChatWindow();
|
642
293
|
}
|
643
|
-
function
|
644
|
-
const
|
645
|
-
jqueryUrl:
|
646
|
-
marginTop:
|
647
|
-
marginLeft:
|
294
|
+
function ce(s) {
|
295
|
+
const m = "roster-append", u = "windowlist-append", d = "dialog-append", {
|
296
|
+
jqueryUrl: a = "https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js",
|
297
|
+
marginTop: c = "40px",
|
298
|
+
marginLeft: p = "40px",
|
648
299
|
marginBottom: E = "40px",
|
649
|
-
marginRight:
|
650
|
-
contactId:
|
651
|
-
showMenu:
|
300
|
+
marginRight: O = "40px",
|
301
|
+
contactId: g = null,
|
302
|
+
showMenu: T,
|
652
303
|
fullscreen: y,
|
653
|
-
boshUrl:
|
654
|
-
id:
|
655
|
-
pw:
|
656
|
-
|
657
|
-
|
304
|
+
boshUrl: w,
|
305
|
+
id: b,
|
306
|
+
pw: S,
|
307
|
+
showAudioButton: R,
|
308
|
+
showVideoButton: C,
|
309
|
+
showOfflineButton: N
|
310
|
+
} = s;
|
311
|
+
return P = b, te(() => {
|
658
312
|
if (window.jsxc) {
|
659
|
-
|
313
|
+
g && window.jsxc.getAccount(b).getContact(g).openChatWindow();
|
660
314
|
return;
|
661
315
|
}
|
662
316
|
y && (document.getElementsByTagName("body")[0].className = "jsxc-fullscreen");
|
663
|
-
const
|
664
|
-
|
665
|
-
let
|
666
|
-
|
667
|
-
const
|
668
|
-
|
317
|
+
const h = document.createElement("script");
|
318
|
+
h.type = "text/javascript", h.src = a, document.head.appendChild(h);
|
319
|
+
let j = document.createElement("script");
|
320
|
+
j.type = "text/javascript", j.src = "/jsxc.bundle.js", document.head.appendChild(j);
|
321
|
+
const i = document.documentElement;
|
322
|
+
i.style.setProperty("--jsxc-margin-top", c), i.style.setProperty("--jsxc-margin-left", p), i.style.setProperty("--jsxc-margin-bottom", E), i.style.setProperty("--jsxc-margin-right", O), j.onload = () => {
|
669
323
|
localStorage.removeItem("jsxc2:accounts");
|
670
|
-
let
|
324
|
+
let A = new window.JSXC({
|
671
325
|
/* loadConnectionOptions: function(username: any, password: any) {
|
672
326
|
return Promise.resolve({
|
673
327
|
xmpp: {
|
@@ -676,20 +330,21 @@ function yr(w) {
|
|
676
330
|
}
|
677
331
|
});
|
678
332
|
},*/
|
679
|
-
rosterAppend: "#" +
|
680
|
-
dialogAppend: "#" +
|
681
|
-
windowListAppend: "#" +
|
333
|
+
rosterAppend: "#" + m,
|
334
|
+
dialogAppend: "#" + d,
|
335
|
+
windowListAppend: "#" + u,
|
336
|
+
lang: "zh"
|
682
337
|
});
|
683
|
-
window.jsxc =
|
684
|
-
},
|
338
|
+
window.jsxc = A, A.start(w, b, S);
|
339
|
+
}, T === "no" && i.style.setProperty("--jsxc-show-menu", "none"), R === "no" && i.style.setProperty("--jsxc-show-audio-button", "none"), C === "no" && i.style.setProperty("--jsxc-show-video-button", "none"), N === "no" && i.style.setProperty("--jsxc-show-offline-button", "none");
|
685
340
|
}, []), // <Keepalive>
|
686
|
-
/* @__PURE__ */
|
687
|
-
/* @__PURE__ */
|
688
|
-
/* @__PURE__ */
|
689
|
-
/* @__PURE__ */
|
341
|
+
/* @__PURE__ */ k.jsxs("div", { id: "jsxc-containers", style: { width: "100%", height: "100%" }, children: [
|
342
|
+
/* @__PURE__ */ k.jsx("div", { style: { width: "100%", height: "100%" }, id: m }),
|
343
|
+
/* @__PURE__ */ k.jsx("div", { style: { width: "100%", height: "100%" }, id: d }),
|
344
|
+
/* @__PURE__ */ k.jsx("div", { style: { width: "100%", height: "100%" }, id: u })
|
690
345
|
] });
|
691
346
|
}
|
692
347
|
export {
|
693
|
-
|
694
|
-
|
348
|
+
ce as Jsxc,
|
349
|
+
se as directOpenChatWindow
|
695
350
|
};
|