aoi-comp 1.0.14 → 1.0.16
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/{BufferResource-DwkktoH2.js → BufferResource-CJ6gTLVt.js} +2 -2
- package/dist/{CanvasPool-CbJemwqD.js → CanvasPool-DxPWPREy.js} +1 -1
- package/dist/{Geometry-CQNqhx0Z.js → Geometry-Cgp_B-U6.js} +1 -1
- package/dist/{RenderTargetSystem-BHmTK9nr.js → RenderTargetSystem-CI7Pyqfs.js} +1 -1
- package/dist/{browserAll-BLacNsSI.js → browserAll-C01g8dM4.js} +3 -3
- package/dist/{canvasUtils-BRobvpth.js → canvasUtils-BDyuJAnf.js} +1 -1
- package/dist/comps.js +4098 -4095
- package/dist/{getTextureBatchBindGroup-B2MLavMF.js → getTextureBatchBindGroup-BOQSIxaA.js} +1 -1
- package/dist/{hooks-Dbbx_ZCW.js → hooks-Bg2vQv8s.js} +187 -187
- package/dist/hooks.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{init--NRY9BXQ.js → init-ByqgxCRA.js} +2 -2
- package/dist/{init-DCipAX9y.js → init-DUQko66x.js} +3 -3
- package/dist/{packages-Sbaw1wWA.js → packages-CrmSAScp.js} +732 -207
- package/dist/utils.js +2 -2
- package/dist/webworkerAll-BmBCi8yO.js +2 -0
- package/package.json +1 -1
- package/dist/webworkerAll-B-8Lcex_.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as e, u as t } from "./Geometry-
|
|
1
|
+
import { V as e, u as t } from "./Geometry-Cgp_B-U6.js";
|
|
2
2
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gpu/getTextureBatchBindGroup.mjs
|
|
3
3
|
var n = {};
|
|
4
4
|
function r(e, t, r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, D as t, I as n, J as r, O as i, T as a, Z as o, at as s, b as c, c as l, d as u, et as d, gt as f, it as p, nt as m, p as h, pt as g, q as _, s as v, t as y, vt as b, y as x, z as S } from "./packages-CrmSAScp.js";
|
|
2
2
|
import { message as C } from "antd";
|
|
3
3
|
import { createContext as w, use as T, useCallback as E, useContext as D, useEffect as O, useMemo as k, useRef as A, useState as j } from "react";
|
|
4
4
|
//#region node_modules/.pnpm/react-i18next@17.0.13_i18ne_77b937ecedfb676debf3096b5685165d/node_modules/react-i18next/dist/es/utils.js
|
|
@@ -45,30 +45,30 @@ var M = (e, t, n, r) => {
|
|
|
45
45
|
getUsedNamespaces() {
|
|
46
46
|
return Object.keys(this.usedNamespaces);
|
|
47
47
|
}
|
|
48
|
-
},
|
|
49
|
-
var t =
|
|
48
|
+
}, ee = /* @__PURE__ */ f(((e) => {
|
|
49
|
+
var t = b("react");
|
|
50
50
|
function n(e, t) {
|
|
51
51
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
52
52
|
}
|
|
53
53
|
var r = typeof Object.is == "function" ? Object.is : n, i = t.useState, a = t.useEffect, o = t.useLayoutEffect, s = t.useDebugValue;
|
|
54
|
-
function
|
|
54
|
+
function c(e, t) {
|
|
55
55
|
var n = t(), r = i({ inst: {
|
|
56
56
|
value: n,
|
|
57
57
|
getSnapshot: t
|
|
58
|
-
} }), c = r[0].inst,
|
|
58
|
+
} }), c = r[0].inst, u = r[1];
|
|
59
59
|
return o(function() {
|
|
60
|
-
c.value = n, c.getSnapshot = t,
|
|
60
|
+
c.value = n, c.getSnapshot = t, l(c) && u({ inst: c });
|
|
61
61
|
}, [
|
|
62
62
|
e,
|
|
63
63
|
n,
|
|
64
64
|
t
|
|
65
65
|
]), a(function() {
|
|
66
|
-
return
|
|
67
|
-
|
|
66
|
+
return l(c) && u({ inst: c }), e(function() {
|
|
67
|
+
l(c) && u({ inst: c });
|
|
68
68
|
});
|
|
69
69
|
}, [e]), s(n), n;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function l(e) {
|
|
72
72
|
var t = e.getSnapshot;
|
|
73
73
|
e = e.value;
|
|
74
74
|
try {
|
|
@@ -78,39 +78,39 @@ var M = (e, t, n, r) => {
|
|
|
78
78
|
return !0;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function u(e, t) {
|
|
82
82
|
return t();
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ?
|
|
86
|
-
})),
|
|
84
|
+
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
|
|
85
|
+
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
|
|
86
|
+
})), te = /* @__PURE__ */ f(((e) => {
|
|
87
87
|
process.env.NODE_ENV !== "production" && (function() {
|
|
88
88
|
function t(e, t) {
|
|
89
89
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
90
90
|
}
|
|
91
91
|
function n(e, t) {
|
|
92
|
-
|
|
92
|
+
d || a.startTransition === void 0 || (d = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
93
93
|
var n = t();
|
|
94
|
-
if (!
|
|
94
|
+
if (!f) {
|
|
95
95
|
var i = t();
|
|
96
|
-
o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"),
|
|
96
|
+
o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
|
|
97
97
|
}
|
|
98
98
|
i = s({ inst: {
|
|
99
99
|
value: n,
|
|
100
100
|
getSnapshot: t
|
|
101
101
|
} });
|
|
102
|
-
var
|
|
103
|
-
return
|
|
104
|
-
|
|
102
|
+
var p = i[0].inst, m = i[1];
|
|
103
|
+
return l(function() {
|
|
104
|
+
p.value = n, p.getSnapshot = t, r(p) && m({ inst: p });
|
|
105
105
|
}, [
|
|
106
106
|
e,
|
|
107
107
|
n,
|
|
108
108
|
t
|
|
109
|
-
]),
|
|
110
|
-
return r(
|
|
111
|
-
r(
|
|
109
|
+
]), c(function() {
|
|
110
|
+
return r(p) && m({ inst: p }), e(function() {
|
|
111
|
+
r(p) && m({ inst: p });
|
|
112
112
|
});
|
|
113
|
-
}, [e]),
|
|
113
|
+
}, [e]), u(n), n;
|
|
114
114
|
}
|
|
115
115
|
function r(e) {
|
|
116
116
|
var t = e.getSnapshot;
|
|
@@ -126,12 +126,12 @@ var M = (e, t, n, r) => {
|
|
|
126
126
|
return t();
|
|
127
127
|
}
|
|
128
128
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
129
|
-
var a =
|
|
130
|
-
e.useSyncExternalStore = a.useSyncExternalStore === void 0 ?
|
|
129
|
+
var a = b("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
|
|
130
|
+
e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
131
131
|
})();
|
|
132
|
-
})),
|
|
133
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
134
|
-
})))(),
|
|
132
|
+
})), ne = (/* @__PURE__ */ f(((e, t) => {
|
|
133
|
+
t.exports = process.env.NODE_ENV === "production" ? ee() : te();
|
|
134
|
+
})))(), re = {
|
|
135
135
|
t: (e, t) => {
|
|
136
136
|
if (z(t)) return t;
|
|
137
137
|
if (B(t) && z(t.defaultValue)) return t.defaultValue;
|
|
@@ -143,53 +143,53 @@ var M = (e, t, n, r) => {
|
|
|
143
143
|
return e;
|
|
144
144
|
},
|
|
145
145
|
ready: !1
|
|
146
|
-
},
|
|
147
|
-
let { i18n: n } = t, { i18n: r, defaultNS: i } = D(V) || {}, a = n || r ||
|
|
146
|
+
}, U = () => () => {}, W = (e, t = {}) => {
|
|
147
|
+
let { i18n: n } = t, { i18n: r, defaultNS: i } = D(V) || {}, a = n || r || p();
|
|
148
148
|
a && !a.reportNamespaces && (a.reportNamespaces = new H()), a || P(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");
|
|
149
149
|
let o = k(() => ({
|
|
150
|
-
...
|
|
150
|
+
...s(),
|
|
151
151
|
...a?.options?.react,
|
|
152
152
|
...t
|
|
153
|
-
}), [a, t]), { useSuspense:
|
|
154
|
-
a?.reportNamespaces?.addUsedNamespaces?.(
|
|
155
|
-
let
|
|
156
|
-
if (!a) return
|
|
153
|
+
}), [a, t]), { useSuspense: c, keyPrefix: l } = o, u = e || i || a?.options?.defaultNS, d = z(u) ? [u] : u || ["translation"], f = k(() => d, d);
|
|
154
|
+
a?.reportNamespaces?.addUsedNamespaces?.(f);
|
|
155
|
+
let m = A(0), h = E((e) => {
|
|
156
|
+
if (!a) return U;
|
|
157
157
|
let { bindI18n: t, bindI18nStore: n } = o, r = () => {
|
|
158
|
-
|
|
158
|
+
m.current += 1, e();
|
|
159
159
|
};
|
|
160
160
|
return t && a.on(t, r), n && a.store.on(n, r), () => {
|
|
161
161
|
t && t.split(" ").forEach((e) => a.off(e, r)), n && n.split(" ").forEach((e) => a.store.off(e, r));
|
|
162
162
|
};
|
|
163
|
-
}, [a, o]),
|
|
164
|
-
if (!a) return
|
|
165
|
-
let e = !!(a.isInitialized || a.initializedStoreOnce) &&
|
|
166
|
-
if (i && i.ready === e && i.lng === n && i.keyPrefix ===
|
|
163
|
+
}, [a, o]), g = A(), _ = E(() => {
|
|
164
|
+
if (!a) return re;
|
|
165
|
+
let e = !!(a.isInitialized || a.initializedStoreOnce) && f.every((e) => R(e, a, o)), n = t.lng || a.language, r = m.current, i = g.current;
|
|
166
|
+
if (i && i.ready === e && i.lng === n && i.keyPrefix === l && i.revision === r) return i;
|
|
167
167
|
let s = {
|
|
168
|
-
t: a.getFixedT(n, o.nsMode === "fallback" ?
|
|
168
|
+
t: a.getFixedT(n, o.nsMode === "fallback" ? f : f[0], l, { scopeNs: f }),
|
|
169
169
|
ready: e,
|
|
170
170
|
lng: n,
|
|
171
|
-
keyPrefix:
|
|
171
|
+
keyPrefix: l,
|
|
172
172
|
revision: r
|
|
173
173
|
};
|
|
174
|
-
return
|
|
174
|
+
return g.current = s, s;
|
|
175
175
|
}, [
|
|
176
176
|
a,
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
f,
|
|
178
|
+
l,
|
|
179
179
|
o,
|
|
180
180
|
t.lng
|
|
181
|
-
]), [v, y] = j(0), { t: b, ready: x } = (0,
|
|
181
|
+
]), [v, y] = j(0), { t: b, ready: x } = (0, ne.useSyncExternalStore)(h, _, _);
|
|
182
182
|
O(() => {
|
|
183
|
-
if (a && !x && !
|
|
183
|
+
if (a && !x && !c) {
|
|
184
184
|
let e = () => y((e) => e + 1);
|
|
185
|
-
t.lng ? L(a, t.lng,
|
|
185
|
+
t.lng ? L(a, t.lng, f, e) : I(a, f, e);
|
|
186
186
|
}
|
|
187
187
|
}, [
|
|
188
188
|
a,
|
|
189
189
|
t.lng,
|
|
190
|
-
|
|
190
|
+
f,
|
|
191
191
|
x,
|
|
192
|
-
|
|
192
|
+
c,
|
|
193
193
|
v
|
|
194
194
|
]);
|
|
195
195
|
let S = a || {}, C = A(null), w = A(), T = (e) => {
|
|
@@ -208,7 +208,7 @@ var M = (e, t, n, r) => {
|
|
|
208
208
|
}, M = k(() => {
|
|
209
209
|
let e = S, t = e?.language, n = e;
|
|
210
210
|
e && (C.current && C.current.__original === e && w.current === t ? n = C.current : (n = T(e), C.current = n, w.current = t));
|
|
211
|
-
let r = !x && !
|
|
211
|
+
let r = !x && !c ? (...e) => (P(a, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), b(...e)) : b, i = [
|
|
212
212
|
r,
|
|
213
213
|
n,
|
|
214
214
|
x
|
|
@@ -222,39 +222,39 @@ var M = (e, t, n, r) => {
|
|
|
222
222
|
S.language,
|
|
223
223
|
S.languages
|
|
224
224
|
]);
|
|
225
|
-
if (a &&
|
|
225
|
+
if (a && c && !x) {
|
|
226
226
|
let e = !1;
|
|
227
227
|
try {
|
|
228
228
|
e = process.env.NODE_ENV !== "production";
|
|
229
229
|
} catch {}
|
|
230
230
|
throw e && P(a, "SUSPENDED_WHILE_LOADING", "useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"), new Promise((e) => {
|
|
231
231
|
let n = () => e();
|
|
232
|
-
t.lng ? L(a, t.lng,
|
|
232
|
+
t.lng ? L(a, t.lng, f, n) : I(a, f, n);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
return M;
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
let t = T(
|
|
239
|
-
if (!t) throw Error(
|
|
236
|
+
}, G = { app: w("app") }, K = (e = "app") => {
|
|
237
|
+
G[e] || (G[e] = w(e));
|
|
238
|
+
let t = T(G[e]);
|
|
239
|
+
if (!t) throw Error(o.use.contextErr({ key: e }));
|
|
240
240
|
return t;
|
|
241
|
-
},
|
|
241
|
+
}, q = (e) => {
|
|
242
242
|
let t = A(), n = A();
|
|
243
243
|
return t.current = e, n.current ||= (...e) => t.current(...e), n.current;
|
|
244
|
-
},
|
|
245
|
-
let [
|
|
246
|
-
let
|
|
247
|
-
|
|
248
|
-
...
|
|
249
|
-
[e]:
|
|
244
|
+
}, J = (e = {}) => {
|
|
245
|
+
let [t, n] = j(Object.keys(e).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), r = A(e), i = A(!1), o = q((e) => {
|
|
246
|
+
let r = `vast-${e}-${a("-")}`;
|
|
247
|
+
n({
|
|
248
|
+
...t,
|
|
249
|
+
[e]: r
|
|
250
250
|
});
|
|
251
|
-
}),
|
|
252
|
-
let
|
|
253
|
-
if (typeof
|
|
254
|
-
let
|
|
255
|
-
get(
|
|
256
|
-
let
|
|
257
|
-
return
|
|
251
|
+
}), s = (t, n = e) => {
|
|
252
|
+
let i = t ? n[t] : n;
|
|
253
|
+
if (typeof i != "object" || !i) return;
|
|
254
|
+
let a = new Proxy(i, {
|
|
255
|
+
get(e, n, r) {
|
|
256
|
+
let i = m(e), a = Reflect.get(e, n, i === "map" || i === "set" ? e : r);
|
|
257
|
+
return d(a, "function") ? [
|
|
258
258
|
"add",
|
|
259
259
|
"set",
|
|
260
260
|
"delete",
|
|
@@ -267,35 +267,35 @@ var M = (e, t, n, r) => {
|
|
|
267
267
|
"sort",
|
|
268
268
|
"splice",
|
|
269
269
|
"unshift"
|
|
270
|
-
].includes(
|
|
271
|
-
let i =
|
|
272
|
-
return
|
|
273
|
-
} : (...
|
|
270
|
+
].includes(n) ? (...r) => {
|
|
271
|
+
let i = a.apply(e, r);
|
|
272
|
+
return o(t ?? n), i;
|
|
273
|
+
} : (...t) => a.apply(e, t) : a;
|
|
274
274
|
},
|
|
275
|
-
set(e,
|
|
276
|
-
if (Reflect.get(e,
|
|
277
|
-
let a = Reflect.set(e,
|
|
278
|
-
return
|
|
275
|
+
set(e, n, r, i) {
|
|
276
|
+
if (Reflect.get(e, n, i) === r) return !0;
|
|
277
|
+
let a = Reflect.set(e, n, r, i);
|
|
278
|
+
return o(t ?? n), a;
|
|
279
279
|
},
|
|
280
|
-
deleteProperty(e,
|
|
281
|
-
if (!Reflect.has(e,
|
|
282
|
-
let r = Reflect.deleteProperty(e,
|
|
283
|
-
return
|
|
280
|
+
deleteProperty(e, n) {
|
|
281
|
+
if (!Reflect.has(e, n)) return !0;
|
|
282
|
+
let r = Reflect.deleteProperty(e, n);
|
|
283
|
+
return o(t ?? n), r;
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
|
-
if (
|
|
287
|
-
else return
|
|
286
|
+
if (t) r.current[t] = a;
|
|
287
|
+
else return a;
|
|
288
288
|
};
|
|
289
|
-
if (!
|
|
290
|
-
|
|
291
|
-
for (let
|
|
292
|
-
|
|
289
|
+
if (!i.current) {
|
|
290
|
+
r.current = s();
|
|
291
|
+
for (let t in e) s(t);
|
|
292
|
+
i.current = !0;
|
|
293
293
|
}
|
|
294
294
|
return O(() => () => {
|
|
295
|
-
for (let e in
|
|
296
|
-
|
|
297
|
-
}, []), [
|
|
298
|
-
},
|
|
295
|
+
for (let e in r.current) delete r.current[e];
|
|
296
|
+
i.current = !1;
|
|
297
|
+
}, []), [t, r.current];
|
|
298
|
+
}, Y = (e, t) => {
|
|
299
299
|
let [n, r] = j(!0), i = A({
|
|
300
300
|
isMounted: !1,
|
|
301
301
|
lastCallId: 0
|
|
@@ -312,7 +312,7 @@ var M = (e, t, n, r) => {
|
|
|
312
312
|
return n || r(!0), e(...t).then((e) => (i.isMounted && a === i.lastCallId && r(!1), e), (e) => (i.isMounted && a === i.lastCallId && r(!1), e));
|
|
313
313
|
}, t);
|
|
314
314
|
return [n, a];
|
|
315
|
-
},
|
|
315
|
+
}, X = (e = "simple", t = []) => {
|
|
316
316
|
let n = {
|
|
317
317
|
exe: y.exe,
|
|
318
318
|
cv: y.cv,
|
|
@@ -325,7 +325,7 @@ var M = (e, t, n, r) => {
|
|
|
325
325
|
"defects",
|
|
326
326
|
"running",
|
|
327
327
|
...t
|
|
328
|
-
]).current, i = T(
|
|
328
|
+
]).current, i = T(G.app);
|
|
329
329
|
switch (e) {
|
|
330
330
|
case "privatize": return Object.assign(n, i);
|
|
331
331
|
case "simple": return r.reduce((e, t) => (e[t] = i[t], e), n);
|
|
@@ -334,86 +334,86 @@ var M = (e, t, n, r) => {
|
|
|
334
334
|
setRunning: i.setRunning,
|
|
335
335
|
proAction: i.proAction
|
|
336
336
|
}];
|
|
337
|
-
default: throw Error(
|
|
337
|
+
default: throw Error(o.use.patternErr({ pattern: e }));
|
|
338
338
|
}
|
|
339
|
-
},
|
|
339
|
+
}, Z = (e, t, n = { immediate: !1 }) => {
|
|
340
340
|
let r = A({
|
|
341
341
|
oldValue: null,
|
|
342
342
|
isInit: n.immediate,
|
|
343
343
|
isWatch: !0
|
|
344
344
|
}).current;
|
|
345
345
|
return O(() => {
|
|
346
|
-
r.isWatch && (r.isInit ? (
|
|
346
|
+
r.isWatch && (r.isInit ? (l(t, r.oldValue) || e(t, r.oldValue), r.oldValue = v(t)) : r.isInit = !0);
|
|
347
347
|
}, t), () => {
|
|
348
348
|
r.isWatch = !1;
|
|
349
349
|
};
|
|
350
|
-
},
|
|
351
|
-
if (!e) throw Error(
|
|
352
|
-
let { t } =
|
|
350
|
+
}, ie = (e = "") => {
|
|
351
|
+
if (!e) throw Error(o.use.prefixErr());
|
|
352
|
+
let { t } = W("translation", { keyPrefix: e });
|
|
353
353
|
return t;
|
|
354
|
-
},
|
|
355
|
-
let
|
|
356
|
-
return O(() => (n &&
|
|
357
|
-
},
|
|
358
|
-
let
|
|
354
|
+
}, ae = (e, t, n = !1) => {
|
|
355
|
+
let i = q(e);
|
|
356
|
+
return O(() => (n && i(), r(t, i), () => _(t, i)), []), i;
|
|
357
|
+
}, Q = (e, t) => {
|
|
358
|
+
let n = A({
|
|
359
359
|
immediate: !1,
|
|
360
360
|
fps: 17,
|
|
361
361
|
beforeFn: null
|
|
362
362
|
}).current;
|
|
363
|
-
if (
|
|
364
|
-
else if (
|
|
365
|
-
else if (
|
|
366
|
-
else if (
|
|
367
|
-
let
|
|
368
|
-
O(() => (
|
|
369
|
-
},
|
|
370
|
-
let [
|
|
371
|
-
width:
|
|
372
|
-
height:
|
|
373
|
-
}),
|
|
363
|
+
if (d(t, "boolean")) n.immediate = t;
|
|
364
|
+
else if (d(t, "number")) n.fps = t;
|
|
365
|
+
else if (d(t, "function")) n.beforeFn = t;
|
|
366
|
+
else if (d(t, "object")) for (let e in t) Object.hasOwn(n, e) && (n[e] = t[e]);
|
|
367
|
+
let r = c(e, 60 * n.fps);
|
|
368
|
+
O(() => (n.beforeFn?.(), n.immediate && r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), []);
|
|
369
|
+
}, $ = (e, t, n) => {
|
|
370
|
+
let [r, i] = j({
|
|
371
|
+
width: n?.width || 0,
|
|
372
|
+
height: n?.height || 0
|
|
373
|
+
}), a = A(), o = A({
|
|
374
374
|
immediate: !1,
|
|
375
375
|
fps: 12,
|
|
376
376
|
beforeFn: null
|
|
377
377
|
}).current;
|
|
378
|
-
if (
|
|
379
|
-
else if (
|
|
380
|
-
else if (
|
|
381
|
-
else if (
|
|
382
|
-
let
|
|
383
|
-
let n =
|
|
384
|
-
(
|
|
385
|
-
width:
|
|
378
|
+
if (d(n, "boolean")) o.immediate = n;
|
|
379
|
+
else if (d(n, "number")) o.fps = n;
|
|
380
|
+
else if (d(n, "function")) o.beforeFn = n;
|
|
381
|
+
else if (d(n, "object")) for (let e in n) Object.hasOwn(o, e) && (o[e] = n[e]);
|
|
382
|
+
let s = () => a.current?.observe?.(t.current), l = () => a.current?.unobserve?.(t.current), u = q((t) => {
|
|
383
|
+
let n = t[0].contentRect, { width: a, height: o } = n;
|
|
384
|
+
(a !== r.width || o !== r.height) && e?.(n, r), i({
|
|
385
|
+
width: a,
|
|
386
386
|
height: o
|
|
387
387
|
});
|
|
388
388
|
});
|
|
389
389
|
return O(() => {
|
|
390
|
-
if (
|
|
391
|
-
}, [
|
|
392
|
-
if (!
|
|
393
|
-
let e =
|
|
394
|
-
|
|
390
|
+
if (t.current) return a.current = new ResizeObserver(c(u, 10 * o.fps)), a.current.observe(t.current), () => a.current?.disconnect?.();
|
|
391
|
+
}, [t, e]), Q(() => {
|
|
392
|
+
if (!t.current) return;
|
|
393
|
+
let e = t.current;
|
|
394
|
+
i({
|
|
395
395
|
width: e.offsetWidth,
|
|
396
396
|
height: e.offsetHeight
|
|
397
397
|
});
|
|
398
|
-
},
|
|
399
|
-
observe:
|
|
400
|
-
unobserve:
|
|
398
|
+
}, n), [r, {
|
|
399
|
+
observe: s,
|
|
400
|
+
unobserve: l
|
|
401
401
|
}];
|
|
402
402
|
}, oe = (e = "app", t = !1) => {
|
|
403
|
-
let { context: n } =
|
|
404
|
-
let c = n || `msg_${
|
|
403
|
+
let { context: n } = X("privatize"), r = A(C.useMessage()), i = A([]), o = (e, t, { key: n, duration: o = 3, onClose: s } = {}) => {
|
|
404
|
+
let c = n || `msg_${a()}`;
|
|
405
405
|
return i.current.push(c), r.current[0].open({
|
|
406
406
|
key: c,
|
|
407
407
|
type: e,
|
|
408
408
|
content: t,
|
|
409
|
-
duration:
|
|
409
|
+
duration: o,
|
|
410
410
|
classNames: { root: "aoi-message" },
|
|
411
411
|
onClose: () => {
|
|
412
412
|
let e = i.current.indexOf(c);
|
|
413
413
|
e !== -1 && i.current.splice(e, 1), s?.();
|
|
414
414
|
}
|
|
415
415
|
}), c;
|
|
416
|
-
}, s = (e, t = {}) =>
|
|
416
|
+
}, s = (e, t = {}) => o("success", e, t), c = (e, t = {}) => o("error", e, t);
|
|
417
417
|
return O(() => {
|
|
418
418
|
if (!n.msgs) return;
|
|
419
419
|
let i = n.msgs.get(e);
|
|
@@ -423,10 +423,10 @@ var M = (e, t, n, r) => {
|
|
|
423
423
|
}, []), [{
|
|
424
424
|
success: s,
|
|
425
425
|
error: c,
|
|
426
|
-
info: (e, t = {}) =>
|
|
427
|
-
warning: (e, t = {}) =>
|
|
426
|
+
info: (e, t = {}) => o("info", e, t),
|
|
427
|
+
warning: (e, t = {}) => o("warning", e, t),
|
|
428
428
|
loading: (e, t = {}) => {
|
|
429
|
-
let n =
|
|
429
|
+
let n = o("loading", e, {
|
|
430
430
|
duration: 0,
|
|
431
431
|
...t
|
|
432
432
|
});
|
|
@@ -437,42 +437,42 @@ var M = (e, t, n, r) => {
|
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
}, t ? r.current[1] : void 0];
|
|
440
|
-
}, se = (
|
|
441
|
-
let [
|
|
442
|
-
h(
|
|
440
|
+
}, se = (e, r = {}) => {
|
|
441
|
+
let [i, a] = j(r), s = A(d(e, "function")).current, c = () => {
|
|
442
|
+
h(e, (e) => {
|
|
443
443
|
let t = {};
|
|
444
|
-
for (let n in
|
|
445
|
-
|
|
444
|
+
for (let n in r) t[n] = e?.[n] ?? r[n];
|
|
445
|
+
a(t);
|
|
446
446
|
});
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
let { db: l } = y, u =
|
|
451
|
-
|
|
452
|
-
...
|
|
453
|
-
[
|
|
454
|
-
}),
|
|
455
|
-
key:
|
|
447
|
+
}, l = (n) => {
|
|
448
|
+
t(e, n);
|
|
449
|
+
}, u = q((t, r, c = null) => {
|
|
450
|
+
let { db: l } = y, u = i[t];
|
|
451
|
+
i[t] = r, a({
|
|
452
|
+
...i,
|
|
453
|
+
[t]: r
|
|
454
|
+
}), s && e(t, r), c?.(o.tool.setOk(), { key: n }), l && l.logOperate(S.INFO, { setProject: {
|
|
455
|
+
key: t,
|
|
456
456
|
oldValue: u,
|
|
457
|
-
value:
|
|
457
|
+
value: r
|
|
458
458
|
} });
|
|
459
|
-
}), f =
|
|
460
|
-
|
|
461
|
-
...
|
|
462
|
-
...
|
|
463
|
-
}),
|
|
459
|
+
}), f = q((t, r = null) => {
|
|
460
|
+
a({
|
|
461
|
+
...i,
|
|
462
|
+
...t
|
|
463
|
+
}), s && e(t), r?.(o.tool.setOk(), { key: n });
|
|
464
464
|
});
|
|
465
465
|
O(() => {
|
|
466
|
-
|
|
466
|
+
s || c();
|
|
467
467
|
}, []);
|
|
468
|
-
let p =
|
|
469
|
-
|
|
470
|
-
}, [
|
|
471
|
-
return
|
|
468
|
+
let p = Z(([e]) => {
|
|
469
|
+
l(e);
|
|
470
|
+
}, [i]);
|
|
471
|
+
return s && p(), [i, {
|
|
472
472
|
setData: f,
|
|
473
|
-
setKey:
|
|
473
|
+
setKey: u
|
|
474
474
|
}];
|
|
475
|
-
}, ce = (
|
|
475
|
+
}, ce = (t, n = e) => {
|
|
476
476
|
let [r, i] = j([]), [a, o] = j(0), [s, c] = j({
|
|
477
477
|
current: 1,
|
|
478
478
|
pageSize: n[0]
|
|
@@ -483,43 +483,43 @@ var M = (e, t, n, r) => {
|
|
|
483
483
|
pageSize: s.pageSize,
|
|
484
484
|
options: n,
|
|
485
485
|
total: a,
|
|
486
|
-
setValue: (
|
|
486
|
+
setValue: (e, n) => {
|
|
487
487
|
let r = s.pageSize, a = s.current;
|
|
488
|
-
|
|
488
|
+
u(n) && (a = 1, !t && (l.current = e), o(n), c({
|
|
489
489
|
current: a,
|
|
490
490
|
pageSize: r
|
|
491
491
|
}));
|
|
492
|
-
let
|
|
493
|
-
i(
|
|
492
|
+
let d = (a - 1) * r, f = d + r;
|
|
493
|
+
i(t ? e : e.slice(d, f));
|
|
494
494
|
},
|
|
495
|
-
onChange: (
|
|
496
|
-
let r = (
|
|
497
|
-
current:
|
|
495
|
+
onChange: (e, n) => {
|
|
496
|
+
let r = (e - 1) * n, a = r + n, o = {
|
|
497
|
+
current: e,
|
|
498
498
|
pageSize: n
|
|
499
499
|
};
|
|
500
|
-
|
|
500
|
+
t ? t(o) : i(l.current.slice(r, a)), c(o);
|
|
501
501
|
}
|
|
502
502
|
}];
|
|
503
503
|
}, le = (e) => {
|
|
504
|
-
let t = A([]), n = A(null), [r,
|
|
504
|
+
let t = A([]), n = A(null), [r, s] = j(null), c = () => {
|
|
505
505
|
let e = t.current.shift();
|
|
506
|
-
e ? (n.current = e,
|
|
507
|
-
}, l =
|
|
508
|
-
e._id =
|
|
506
|
+
e ? (n.current = e, s(e._id)) : (n.current = null, s(null));
|
|
507
|
+
}, l = q((e) => {
|
|
508
|
+
e._id = a("#"), t.current.push(e), !r && !n.current && c();
|
|
509
509
|
});
|
|
510
510
|
return O(() => {
|
|
511
511
|
let { exe: t, db: n } = y;
|
|
512
512
|
t && t.on("summaryDataUploaded(HeilsSummaryDataInfo)", async (t) => {
|
|
513
513
|
if (!t) {
|
|
514
|
-
let e =
|
|
515
|
-
|
|
514
|
+
let e = o.main.dataEmpty({ data: x(t) });
|
|
515
|
+
i.warning(e, o.exe.disposeErr()), n.logMessage(S.WARN, { dataEmpty: { data: t } });
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
518
|
y.dev && console.log("Received data ...");
|
|
519
519
|
let r = await e?.(t);
|
|
520
520
|
if (!r) {
|
|
521
|
-
let e =
|
|
522
|
-
|
|
521
|
+
let e = o.main.dataErr({ data: x(t) });
|
|
522
|
+
i.error(e, o.exe.disposeErr()), n.logMessage(S.ERROR, { dataErr: { data: t } }), y.dev && console.error(t);
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
525
|
l(r);
|
|
@@ -533,7 +533,7 @@ var M = (e, t, n, r) => {
|
|
|
533
533
|
let [e, t] = j({
|
|
534
534
|
ok: 0,
|
|
535
535
|
ng: 0
|
|
536
|
-
}), n =
|
|
536
|
+
}), n = q((n) => {
|
|
537
537
|
let r = { ...e };
|
|
538
538
|
r[n ? "ok" : "ng"] += 1, t(r);
|
|
539
539
|
});
|
|
@@ -542,11 +542,11 @@ var M = (e, t, n, r) => {
|
|
|
542
542
|
data: k(() => [{
|
|
543
543
|
label: "OK",
|
|
544
544
|
value: e.ok,
|
|
545
|
-
color:
|
|
545
|
+
color: g.ok
|
|
546
546
|
}, {
|
|
547
547
|
label: "NG",
|
|
548
548
|
value: e.ng,
|
|
549
|
-
color:
|
|
549
|
+
color: g.ng
|
|
550
550
|
}], [e]),
|
|
551
551
|
increment: n,
|
|
552
552
|
clear: () => {
|
|
@@ -559,4 +559,4 @@ var M = (e, t, n, r) => {
|
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
561
|
//#endregion
|
|
562
|
-
export { P as S,
|
|
562
|
+
export { P as S, W as _, le as a, z as b, $ as c, q as d, ie as f, Z as g, J as h, Y as i, ae as l, X as m, G as n, se as o, Q as p, K as r, oe as s, ue as t, ce as u, V as v, M as x, B as y };
|
package/dist/hooks.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./hooks-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./hooks-Bg2vQv8s.js";
|
|
2
2
|
export { l as Contexts, f as useAppContext, o as useAsync, e as useDataQueue, u as useFileState, p as useMessage, t as useObserver, s as useOnEvent, h as usePagination, n as usePersistFn, r as usePrefixT, d as useResize, m as useRunStatis, c as useStore, a as useVastState, i as useWatch };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./packages-
|
|
1
|
+
import { n as e, t } from "./packages-CrmSAScp.js";
|
|
2
2
|
export { t as AoiGlobal, e as aoiInit };
|