@gpustack/core-ui 1.0.19 → 1.0.20
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,7 +1,7 @@
|
|
|
1
1
|
import { o as e, r as t, t as n } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
2
|
import { i as r, n as i, r as a, t as o } from "./useIntl-CQ7P5Olk.js";
|
|
3
3
|
import { t as s } from "./lodash-DVkZQU_K.js";
|
|
4
|
-
import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-
|
|
4
|
+
import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-CLpz1xT8.js";
|
|
5
5
|
import { A as m, _ as h, a as g, c as _, f as v, g as y, n as b, s as x, y as S } from "./utils-CIKJeIzI.js";
|
|
6
6
|
import { t as C } from "./editor-wrap-BGZYfHpj.js";
|
|
7
7
|
import w from "axios";
|
|
@@ -2369,7 +2369,21 @@ async function Li(e) {
|
|
|
2369
2369
|
return { message: "Failed to parse error response" };
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
|
-
|
|
2372
|
+
function Ri(e, t) {
|
|
2373
|
+
if (console.log("error==========", e), !e) return t;
|
|
2374
|
+
if (typeof e == "string") return e;
|
|
2375
|
+
let n = e.message || e.error || e.detail || e.reason || e.statusText;
|
|
2376
|
+
if (n) return String(n);
|
|
2377
|
+
try {
|
|
2378
|
+
return JSON.stringify(e);
|
|
2379
|
+
} catch {
|
|
2380
|
+
return t;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
function zi(e) {
|
|
2384
|
+
return e.endsWith("\n") ? e : `${e}\n`;
|
|
2385
|
+
}
|
|
2386
|
+
var Bi = class {
|
|
2373
2387
|
buffer = [];
|
|
2374
2388
|
contentLength = null;
|
|
2375
2389
|
progress = 0;
|
|
@@ -2416,9 +2430,9 @@ var Ri = class {
|
|
|
2416
2430
|
getBuffer() {
|
|
2417
2431
|
return this.buffer;
|
|
2418
2432
|
}
|
|
2419
|
-
},
|
|
2433
|
+
}, Vi = () => {
|
|
2420
2434
|
let { config: e } = a(), { apiBaseUrl: t } = e, n = z(null), r = z({}), i = z(null), o = async (e, t, n = 100) => {
|
|
2421
|
-
let r = e?.body?.getReader(), a = new TextDecoder("utf-8"), o = new
|
|
2435
|
+
let r = e?.body?.getReader(), a = new TextDecoder("utf-8"), o = new Bi({
|
|
2422
2436
|
contentLength: e.headers.get("content-length"),
|
|
2423
2437
|
callback: t
|
|
2424
2438
|
}), s = (0, Z.throttle)(async () => {
|
|
@@ -2457,12 +2471,13 @@ var Ri = class {
|
|
|
2457
2471
|
});
|
|
2458
2472
|
if (!i.ok) {
|
|
2459
2473
|
let e = await Li(i);
|
|
2460
|
-
a ? a(e) : r(e
|
|
2474
|
+
console.log("error================> 2", e, i), a ? a(e) : r(zi(Ri(e, `Request failed: ${i.status} ${i.statusText}`)));
|
|
2461
2475
|
return;
|
|
2462
2476
|
}
|
|
2463
2477
|
await o(i, r);
|
|
2464
2478
|
} catch (e) {
|
|
2465
|
-
e?.name
|
|
2479
|
+
if (console.log("errror==============>", e), e?.name === "AbortError") return n.current;
|
|
2480
|
+
console.error("Chunk request error:", e), a ? a(e) : r(zi(Ri(e, "Network request failed")));
|
|
2466
2481
|
}
|
|
2467
2482
|
return n.current;
|
|
2468
2483
|
}, c = zt((e) => (r.current = { ...e }, s(r.current), n));
|
|
@@ -2474,23 +2489,23 @@ var Ri = class {
|
|
|
2474
2489
|
n.current?.abort?.(), i.current?.cancel?.(), window.removeEventListener("beforeunload", e);
|
|
2475
2490
|
};
|
|
2476
2491
|
}, []), { setChunkFetch: c };
|
|
2477
|
-
},
|
|
2478
|
-
StatusColorMap: () =>
|
|
2479
|
-
StatusMaps: () =>
|
|
2480
|
-
WatchEventType: () =>
|
|
2481
|
-
breakpoints: () =>
|
|
2482
|
-
}),
|
|
2492
|
+
}, Hi = /* @__PURE__ */ t({
|
|
2493
|
+
StatusColorMap: () => Gi,
|
|
2494
|
+
StatusMaps: () => Ki,
|
|
2495
|
+
WatchEventType: () => Wi,
|
|
2496
|
+
breakpoints: () => Ui
|
|
2497
|
+
}), Ui = {
|
|
2483
2498
|
xs: 0,
|
|
2484
2499
|
sm: 576,
|
|
2485
2500
|
md: 768,
|
|
2486
2501
|
lg: 992,
|
|
2487
2502
|
xl: 1200,
|
|
2488
2503
|
xxl: 1600
|
|
2489
|
-
},
|
|
2504
|
+
}, Wi = {
|
|
2490
2505
|
CREATE: 1,
|
|
2491
2506
|
UPDATE: 2,
|
|
2492
2507
|
DELETE: 3
|
|
2493
|
-
},
|
|
2508
|
+
}, Gi = {
|
|
2494
2509
|
error: {
|
|
2495
2510
|
text: "var(--ant-red-6)",
|
|
2496
2511
|
bg: "var(--ant-red-1)"
|
|
@@ -2512,7 +2527,7 @@ var Ri = class {
|
|
|
2512
2527
|
border: "var(--ant-color-border)",
|
|
2513
2528
|
bg: "var(--ant-color-fill)"
|
|
2514
2529
|
}
|
|
2515
|
-
},
|
|
2530
|
+
}, Ki = {
|
|
2516
2531
|
error: "error",
|
|
2517
2532
|
warning: "warning",
|
|
2518
2533
|
transitioning: "transitioning",
|
|
@@ -2525,38 +2540,38 @@ window.__GPUSTACK_WATCH_REQUEST_CLEAR__ = {
|
|
|
2525
2540
|
watchIDValue: 0,
|
|
2526
2541
|
requestList: []
|
|
2527
2542
|
};
|
|
2528
|
-
var
|
|
2543
|
+
var qi = () => (window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue + 1, window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue), Ji = (e) => {
|
|
2529
2544
|
window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList.push(e);
|
|
2530
|
-
},
|
|
2545
|
+
}, Yi = (e) => {
|
|
2531
2546
|
let t = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList;
|
|
2532
2547
|
for (let n = 0; n < e; n++) t[n]?.cancel?.();
|
|
2533
2548
|
window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList = t.slice(e);
|
|
2534
|
-
},
|
|
2549
|
+
}, Xi = (e) => {
|
|
2535
2550
|
let t = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList.filter((t) => t.id !== e);
|
|
2536
2551
|
window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList = t;
|
|
2537
|
-
},
|
|
2552
|
+
}, Zi = () => {
|
|
2538
2553
|
let { CancelToken: e } = w;
|
|
2539
2554
|
return e.source();
|
|
2540
|
-
},
|
|
2555
|
+
}, Qi = (e, t, n) => {
|
|
2541
2556
|
let r = e.slice(n.current);
|
|
2542
2557
|
return n.current = t, r;
|
|
2543
|
-
},
|
|
2558
|
+
}, $i = () => {
|
|
2544
2559
|
let { services: e } = a(), { request: t } = e, n = window.__GPUSTACK_WATCH_REQUEST_CLEAR__.requestList, [r, i] = B(0), o = z(null), s = z({}), c = z(0), l = z(0), u = z(5), d = {
|
|
2545
2560
|
params: {},
|
|
2546
2561
|
contentType: "json"
|
|
2547
2562
|
}, f = z(null), p = z(0), m = z(null), h = () => {
|
|
2548
2563
|
c.current = 0, l.current = 0, p.current = 0, i(0);
|
|
2549
2564
|
}, g = () => {
|
|
2550
|
-
let { CancelToken: e } = w, t = e.source(), n =
|
|
2565
|
+
let { CancelToken: e } = w, t = e.source(), n = qi();
|
|
2551
2566
|
return {
|
|
2552
2567
|
id: n,
|
|
2553
2568
|
token: t.token,
|
|
2554
2569
|
cancel() {
|
|
2555
|
-
t.cancel(),
|
|
2570
|
+
t.cancel(), Xi(n);
|
|
2556
2571
|
}
|
|
2557
2572
|
};
|
|
2558
|
-
}, _ = (e) => Z.default.map(e, (e) => (e.type ===
|
|
2559
|
-
h(), o.current?.cancel?.(), o.current = g(),
|
|
2573
|
+
}, _ = (e) => Z.default.map(e, (e) => (e.type === Wi.DELETE && (e.ids = e.data?.id ? [e.data.id] : []), e.collection = e.data ? [e.data] : [], e)), v = async ({ url: e, handler: r, beforeReconnect: a, params: s = {}, contentType: d = "json" }) => {
|
|
2574
|
+
h(), o.current?.cancel?.(), o.current = g(), Ji(o.current), n.length >= 4 && Yi(n.length - 4 || 1), d === "json" && (m.current?.terminate(), m.current = new Worker(new URL(
|
|
2560
2575
|
/* @vite-ignore */
|
|
2561
2576
|
"" + new URL("assets/json-parser-worker-DtJw0BTZ.js", import.meta.url).href,
|
|
2562
2577
|
"" + import.meta.url
|
|
@@ -2576,7 +2591,7 @@ var Gi = () => (window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue = window.__
|
|
|
2576
2591
|
async onDownloadProgress(e) {
|
|
2577
2592
|
let { response: t, readyState: n } = e.currentTarget;
|
|
2578
2593
|
if (i(n), c.current = e.loaded || 0, l.current = e.total || 0, d === "json") {
|
|
2579
|
-
let n =
|
|
2594
|
+
let n = Qi(t, e.loaded, p);
|
|
2580
2595
|
m.current.postMessage(n);
|
|
2581
2596
|
} else r(t);
|
|
2582
2597
|
}
|
|
@@ -2608,7 +2623,7 @@ var Gi = () => (window.__GPUSTACK_WATCH_REQUEST_CLEAR__.watchIDValue = window.__
|
|
|
2608
2623
|
};
|
|
2609
2624
|
//#endregion
|
|
2610
2625
|
//#region src/lib/hooks/use-container-scroll.ts
|
|
2611
|
-
function
|
|
2626
|
+
function ea(e, t) {
|
|
2612
2627
|
let n = z(!1), r = z(e), i = z(t), a = z(t?.toBottom);
|
|
2613
2628
|
z(null);
|
|
2614
2629
|
let o = R(() => Z.default.debounce(() => {
|
|
@@ -2631,14 +2646,14 @@ function Qi(e, t) {
|
|
|
2631
2646
|
}
|
|
2632
2647
|
//#endregion
|
|
2633
2648
|
//#region src/lib/hooks/use-deferred-request.ts
|
|
2634
|
-
function
|
|
2649
|
+
function ta(e, t = 100) {
|
|
2635
2650
|
return Bt(async (...n) => (await new Promise((e) => {
|
|
2636
2651
|
setTimeout(e, t);
|
|
2637
2652
|
}), await e(...n)), { manual: !0 });
|
|
2638
2653
|
}
|
|
2639
2654
|
//#endregion
|
|
2640
2655
|
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
|
|
2641
|
-
var
|
|
2656
|
+
var na = /* @__PURE__ */ n(((e, t) => {
|
|
2642
2657
|
(function(n, r) {
|
|
2643
2658
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
2644
2659
|
})(e, (function() {
|
|
@@ -2935,8 +2950,8 @@ var ea = /* @__PURE__ */ n(((e, t) => {
|
|
|
2935
2950
|
}));
|
|
2936
2951
|
//#endregion
|
|
2937
2952
|
//#region src/lib/hooks/use-download-stream.ts
|
|
2938
|
-
function
|
|
2939
|
-
let e = z(null), t = z(null), n = z(!1), r = z("log"), i = z(null), { setChunkFetch: a } =
|
|
2953
|
+
function ra() {
|
|
2954
|
+
let e = z(null), t = z(null), n = z(!1), r = z("log"), i = z(null), { setChunkFetch: a } = Vi(), o = (e) => {
|
|
2940
2955
|
let t = new Blob([e], { type: "text/plain" }), n = URL.createObjectURL(t), i = document.createElement("a");
|
|
2941
2956
|
i.href = n, i.download = r.current, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(n);
|
|
2942
2957
|
}, s = (e, r) => {
|
|
@@ -3001,7 +3016,7 @@ function ta() {
|
|
|
3001
3016
|
}
|
|
3002
3017
|
//#endregion
|
|
3003
3018
|
//#region src/lib/hooks/use-download-logs.tsx
|
|
3004
|
-
var
|
|
3019
|
+
var ia = /* @__PURE__ */ e(na(), 1), aa = (e) => /* @__PURE__ */ H("div", {
|
|
3005
3020
|
style: {
|
|
3006
3021
|
width: 280,
|
|
3007
3022
|
textOverflow: "ellipsis",
|
|
@@ -3009,11 +3024,11 @@ var na = /* @__PURE__ */ e(ea(), 1), ra = (e) => /* @__PURE__ */ H("div", {
|
|
|
3009
3024
|
overflow: "hidden"
|
|
3010
3025
|
},
|
|
3011
3026
|
children: e
|
|
3012
|
-
}),
|
|
3013
|
-
let { downloadStream: e } =
|
|
3027
|
+
}), oa = (e) => `${e}_${(0, ia.default)().format("YYYY-MM-DD_HH-mm-ss")}.txt`, sa = () => {
|
|
3028
|
+
let { downloadStream: e } = ra(), t = o(), [n, r] = It.useNotification({ stack: { threshold: 1 } }), i = (e) => {
|
|
3014
3029
|
n.open({
|
|
3015
3030
|
duration: e.duration,
|
|
3016
|
-
message:
|
|
3031
|
+
message: aa(e.filename),
|
|
3017
3032
|
key: e.filename,
|
|
3018
3033
|
closeIcon: /* @__PURE__ */ H("span", { children: t.formatMessage({ id: "common.button.cancel" }) }),
|
|
3019
3034
|
description: /* @__PURE__ */ H(bt, {
|
|
@@ -3029,7 +3044,7 @@ var na = /* @__PURE__ */ e(ea(), 1), ra = (e) => /* @__PURE__ */ H("div", {
|
|
|
3029
3044
|
onDownloadLog: async (t) => {
|
|
3030
3045
|
e({
|
|
3031
3046
|
url: t.url,
|
|
3032
|
-
filename:
|
|
3047
|
+
filename: oa(t.name),
|
|
3033
3048
|
downloadNotification: i
|
|
3034
3049
|
});
|
|
3035
3050
|
},
|
|
@@ -3038,7 +3053,7 @@ var na = /* @__PURE__ */ e(ea(), 1), ra = (e) => /* @__PURE__ */ H("div", {
|
|
|
3038
3053
|
};
|
|
3039
3054
|
//#endregion
|
|
3040
3055
|
//#region src/lib/hooks/use-expanded-row-keys.ts
|
|
3041
|
-
function
|
|
3056
|
+
function ca(e = []) {
|
|
3042
3057
|
let [t, n] = B(e), [r, i] = B(null);
|
|
3043
3058
|
return {
|
|
3044
3059
|
expandedRowKeys: t,
|
|
@@ -3063,9 +3078,9 @@ function oa(e = []) {
|
|
|
3063
3078
|
}
|
|
3064
3079
|
//#endregion
|
|
3065
3080
|
//#region src/lib/hooks/use-query-data-list.ts
|
|
3066
|
-
function
|
|
3081
|
+
function la(e) {
|
|
3067
3082
|
let { key: t, fetchList: n, getLabel: r, getValue: i, responseType: a = "array", errorMsg: o } = e, s = z(null), [c, l] = B([]), { runAsync: u, loading: d, cancel: f } = Bt(async (e, t) => {
|
|
3068
|
-
s.current?.cancel(), s.current =
|
|
3083
|
+
s.current?.cancel(), s.current = Zi();
|
|
3069
3084
|
let o = await n(e, {
|
|
3070
3085
|
token: s.current?.token,
|
|
3071
3086
|
...t || {}
|
|
@@ -3093,9 +3108,9 @@ function sa(e) {
|
|
|
3093
3108
|
fetchData: (e, t) => u(e, t)
|
|
3094
3109
|
};
|
|
3095
3110
|
}
|
|
3096
|
-
function
|
|
3111
|
+
function ua(e) {
|
|
3097
3112
|
let { key: t, fetchDetail: n, getData: r, errorMsg: i, delay: a } = e, o = z(null), [s, c] = B({}), { runAsync: l, loading: u, cancel: d } = Bt(async (e, t) => {
|
|
3098
|
-
o.current?.cancel(), o.current =
|
|
3113
|
+
o.current?.cancel(), o.current = Zi();
|
|
3099
3114
|
let i = await n(e, {
|
|
3100
3115
|
token: o.current?.token,
|
|
3101
3116
|
...t || {}
|
|
@@ -3123,14 +3138,14 @@ function ca(e) {
|
|
|
3123
3138
|
}
|
|
3124
3139
|
//#endregion
|
|
3125
3140
|
//#region src/lib/hooks/use-request-token.ts
|
|
3126
|
-
function
|
|
3141
|
+
function da() {
|
|
3127
3142
|
let { source: e } = w.CancelToken;
|
|
3128
3143
|
return e;
|
|
3129
3144
|
}
|
|
3130
3145
|
//#endregion
|
|
3131
3146
|
//#region src/lib/hooks/use-responsive.ts
|
|
3132
|
-
var
|
|
3133
|
-
let [t, n] = B(e), r = (e) => e <
|
|
3147
|
+
var fa = ({ defaultSpan: e = 8 }) => {
|
|
3148
|
+
let [t, n] = B(e), r = (e) => e < Ui.md ? 24 : e < Ui.lg ? 12 : 8;
|
|
3134
3149
|
return {
|
|
3135
3150
|
span: t,
|
|
3136
3151
|
handleResize: zt(Z.default.throttle((e) => {
|
|
@@ -3140,7 +3155,7 @@ var ua = ({ defaultSpan: e = 8 }) => {
|
|
|
3140
3155
|
};
|
|
3141
3156
|
//#endregion
|
|
3142
3157
|
//#region src/lib/hooks/use-table-row-selection.ts
|
|
3143
|
-
function
|
|
3158
|
+
function pa() {
|
|
3144
3159
|
let [e, t] = B([]), [n, r] = B([]);
|
|
3145
3160
|
return {
|
|
3146
3161
|
selectedRowKeys: e,
|
|
@@ -3169,7 +3184,7 @@ function da() {
|
|
|
3169
3184
|
}
|
|
3170
3185
|
//#endregion
|
|
3171
3186
|
//#region src/lib/hooks/use-table-sort.ts
|
|
3172
|
-
function
|
|
3187
|
+
function ma({ defaultSortOrder: e = "descend" }) {
|
|
3173
3188
|
let [t, n] = B(e);
|
|
3174
3189
|
return {
|
|
3175
3190
|
sortOrder: t,
|
|
@@ -3178,7 +3193,7 @@ function fa({ defaultSortOrder: e = "descend" }) {
|
|
|
3178
3193
|
}
|
|
3179
3194
|
};
|
|
3180
3195
|
}
|
|
3181
|
-
function
|
|
3196
|
+
function ha() {
|
|
3182
3197
|
let [e, t] = B([]);
|
|
3183
3198
|
return {
|
|
3184
3199
|
sortOrder: e,
|
|
@@ -3193,7 +3208,7 @@ function pa() {
|
|
|
3193
3208
|
}
|
|
3194
3209
|
//#endregion
|
|
3195
3210
|
//#region src/lib/hooks/use-update-chunk-list.ts
|
|
3196
|
-
function
|
|
3211
|
+
function ga(e) {
|
|
3197
3212
|
let { events: t = [
|
|
3198
3213
|
"CREATE",
|
|
3199
3214
|
"DELETE",
|
|
@@ -3215,18 +3230,18 @@ function ma(e) {
|
|
|
3215
3230
|
let l = a?.collection || [];
|
|
3216
3231
|
e?.computedID && (l = l?.map((t) => (t.id = e?.computedID?.(t), t))), e?.filterFun && (l = a?.collection?.filter(e?.filterFun)), e?.mapFun && (l = a?.collection?.map(e?.mapFun));
|
|
3217
3232
|
let u = a?.ids || [];
|
|
3218
|
-
if (a?.type ===
|
|
3233
|
+
if (a?.type === Wi.CREATE && t.includes("CREATE")) {
|
|
3219
3234
|
let t = [];
|
|
3220
3235
|
i.current = [...l.reduce((e, r) => {
|
|
3221
3236
|
let a = i.current?.findIndex((e) => e.id === r.id), o = { ...r };
|
|
3222
3237
|
return a === -1 && !n?.current ? e.push(o) : n?.current || (i.current[a] = o), n?.current && Date.parse(r.created_at) >= n.current && t.push(o), e;
|
|
3223
3238
|
}, []), ...i.current].slice(0, o), e.onCreate?.(t);
|
|
3224
3239
|
}
|
|
3225
|
-
if (a?.type ===
|
|
3240
|
+
if (a?.type === Wi.DELETE && t.includes("DELETE")) {
|
|
3226
3241
|
let t = [];
|
|
3227
3242
|
i.current = i.current?.filter((e) => (n?.current && u?.includes(e.id) && t.push(e), !u?.includes(e.id))), s(u), e.setDataList?.([...i.current], { deletedIds: [...r.current] }), e.onDelete?.(t);
|
|
3228
3243
|
}
|
|
3229
|
-
a?.type ===
|
|
3244
|
+
a?.type === Wi.UPDATE && t.includes("UPDATE") && l?.forEach((r) => {
|
|
3230
3245
|
let a = i.current?.findIndex((e) => e.id === r.id), s = { ...r };
|
|
3231
3246
|
a > -1 ? i.current[a] = s : a === -1 && t.includes("INSERT") && (i.current = [s, ...i.current.slice(0, o - 1)], e.onUpdate && n?.current && Date.parse(r.created_at) >= n.current && e.onUpdate?.([s]));
|
|
3232
3247
|
}), c(), e?.callback && e?.callback(i.current);
|
|
@@ -3237,8 +3252,8 @@ function ma(e) {
|
|
|
3237
3252
|
}
|
|
3238
3253
|
//#endregion
|
|
3239
3254
|
//#region src/lib/hooks/use-watch-list.ts
|
|
3240
|
-
function
|
|
3241
|
-
let t = e, { services: n } = a(), { request: r } = n, [i, o] = B([]), s = z(null), c = z(null), { setChunkRequest: l, createAxiosToken: u } =
|
|
3255
|
+
function _a(e) {
|
|
3256
|
+
let t = e, { services: n } = a(), { request: r } = n, [i, o] = B([]), s = z(null), c = z(null), { setChunkRequest: l, createAxiosToken: u } = $i(), { updateChunkedList: d, cacheDataListRef: f } = ga({
|
|
3242
3257
|
dataList: i,
|
|
3243
3258
|
limit: 100,
|
|
3244
3259
|
setDataList: o
|
|
@@ -3280,23 +3295,23 @@ function ha(e) {
|
|
|
3280
3295
|
}
|
|
3281
3296
|
//#endregion
|
|
3282
3297
|
//#region src/lib/hooks/use-window-resize.ts
|
|
3283
|
-
function
|
|
3298
|
+
function va() {
|
|
3284
3299
|
let [e, t] = B({
|
|
3285
3300
|
width: window.innerWidth,
|
|
3286
3301
|
height: window.innerHeight
|
|
3287
3302
|
}), n = R(() => {
|
|
3288
3303
|
let t = e.width;
|
|
3289
|
-
return t <
|
|
3304
|
+
return t < Ui.sm ? {
|
|
3290
3305
|
isMobile: !0,
|
|
3291
3306
|
isTablet: !1,
|
|
3292
3307
|
isDesktop: !1,
|
|
3293
3308
|
currentPoint: "sm"
|
|
3294
|
-
} : t <
|
|
3309
|
+
} : t < Ui.md ? {
|
|
3295
3310
|
isMobile: !1,
|
|
3296
3311
|
isTablet: !0,
|
|
3297
3312
|
isDesktop: !1,
|
|
3298
3313
|
currentPoint: "md"
|
|
3299
|
-
} : t <
|
|
3314
|
+
} : t < Ui.lg ? {
|
|
3300
3315
|
isMobile: !1,
|
|
3301
3316
|
isTablet: !1,
|
|
3302
3317
|
isDesktop: !0,
|
|
@@ -3324,16 +3339,16 @@ function ga() {
|
|
|
3324
3339
|
}
|
|
3325
3340
|
//#endregion
|
|
3326
3341
|
//#region src/lib/hooks/useCoreUISlots.ts
|
|
3327
|
-
var
|
|
3342
|
+
var ya = {}, ba = () => {
|
|
3328
3343
|
let { slots: e } = a();
|
|
3329
|
-
return e ??
|
|
3330
|
-
},
|
|
3344
|
+
return e ?? ya;
|
|
3345
|
+
}, xa = () => {
|
|
3331
3346
|
let { hooks: e } = a();
|
|
3332
3347
|
return e.useCurrentUser();
|
|
3333
|
-
},
|
|
3348
|
+
}, Sa = ((e) => {
|
|
3334
3349
|
let { hooks: t } = a();
|
|
3335
3350
|
return t.useTableFetch(e);
|
|
3336
|
-
}),
|
|
3351
|
+
}), Ca = Y.div`
|
|
3337
3352
|
padding: 8px 12px;
|
|
3338
3353
|
padding-right: 4px;
|
|
3339
3354
|
.title {
|
|
@@ -3351,11 +3366,11 @@ var _a = {}, va = () => {
|
|
|
3351
3366
|
gap: 8px;
|
|
3352
3367
|
justify-content: flex-end;
|
|
3353
3368
|
}
|
|
3354
|
-
`,
|
|
3369
|
+
`, wa = Y.div`
|
|
3355
3370
|
font-weight: 500;
|
|
3356
3371
|
margin-bottom: 8px;
|
|
3357
3372
|
margin-top: 4px;
|
|
3358
|
-
`,
|
|
3373
|
+
`, Ta = Y.span`
|
|
3359
3374
|
color: var(--ant-color-text-secondary);
|
|
3360
3375
|
> span {
|
|
3361
3376
|
display: flex;
|
|
@@ -3366,7 +3381,7 @@ var _a = {}, va = () => {
|
|
|
3366
3381
|
display: none;
|
|
3367
3382
|
}
|
|
3368
3383
|
}
|
|
3369
|
-
`,
|
|
3384
|
+
`, Ea = (e) => {
|
|
3370
3385
|
let t = o(), { localStore: n } = a(), { readColumnSettings: r, writeColumnSettings: i } = n || {}, { tableName: s, contentHeight: c, width: u = 420, columns: d, selectedColumns: f, defaultSelectedColumns: p, grouped: m, onReset: h, onChange: g, fixedColumns: _ } = e, [v, y] = E.useState(!1), [b, x] = E.useState(p || []);
|
|
3371
3386
|
E.useEffect(() => {
|
|
3372
3387
|
v && x(f ?? p ?? []);
|
|
@@ -3393,7 +3408,7 @@ var _a = {}, va = () => {
|
|
|
3393
3408
|
trigger: "click",
|
|
3394
3409
|
arrow: !1,
|
|
3395
3410
|
placement: "bottomRight",
|
|
3396
|
-
content: /* @__PURE__ */ U(
|
|
3411
|
+
content: /* @__PURE__ */ U(Ca, { children: [
|
|
3397
3412
|
!m && /* @__PURE__ */ H("div", {
|
|
3398
3413
|
className: "title",
|
|
3399
3414
|
children: t.formatMessage({ id: "benchmark.table.columnSettings" })
|
|
@@ -3404,13 +3419,13 @@ var _a = {}, va = () => {
|
|
|
3404
3419
|
children: /* @__PURE__ */ H(K.Group, {
|
|
3405
3420
|
value: b,
|
|
3406
3421
|
onChange: C,
|
|
3407
|
-
children: /* @__PURE__ */ H(V, { children: m ? d.map((e, t) => /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(
|
|
3422
|
+
children: /* @__PURE__ */ H(V, { children: m ? d.map((e, t) => /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(wa, { children: e.title }), /* @__PURE__ */ H(xt, { children: e.children?.map((e) => /* @__PURE__ */ H(st, {
|
|
3408
3423
|
span: 12,
|
|
3409
3424
|
children: /* @__PURE__ */ H(K, {
|
|
3410
3425
|
disabled: _?.includes(e.dataIndex || ""),
|
|
3411
3426
|
value: e.dataIndex,
|
|
3412
3427
|
style: { marginBottom: 8 },
|
|
3413
|
-
children: /* @__PURE__ */ H(
|
|
3428
|
+
children: /* @__PURE__ */ H(Ta, { children: e.title })
|
|
3414
3429
|
})
|
|
3415
3430
|
}, e.dataIndex)) })] }, t)) : /* @__PURE__ */ H(xt, { children: d.map((e) => /* @__PURE__ */ H(st, {
|
|
3416
3431
|
span: 12,
|
|
@@ -3418,7 +3433,7 @@ var _a = {}, va = () => {
|
|
|
3418
3433
|
disabled: _?.includes(e.dataIndex || ""),
|
|
3419
3434
|
value: e.dataIndex,
|
|
3420
3435
|
style: { marginBottom: 8 },
|
|
3421
|
-
children: /* @__PURE__ */ H(
|
|
3436
|
+
children: /* @__PURE__ */ H(Ta, { children: e.title })
|
|
3422
3437
|
})
|
|
3423
3438
|
}, e.dataIndex)) }) })
|
|
3424
3439
|
})
|
|
@@ -3468,25 +3483,25 @@ var _a = {}, va = () => {
|
|
|
3468
3483
|
})
|
|
3469
3484
|
})
|
|
3470
3485
|
});
|
|
3471
|
-
},
|
|
3472
|
-
let e = P(
|
|
3486
|
+
}, Da = O({}), Oa = () => {
|
|
3487
|
+
let e = P(Da);
|
|
3473
3488
|
if (!e) throw Error("useColumnWrapperContext must be used within a WrapperProvider");
|
|
3474
3489
|
return e;
|
|
3475
|
-
},
|
|
3490
|
+
}, ka = Y.div`
|
|
3476
3491
|
flex: 1;
|
|
3477
3492
|
display: flex;
|
|
3478
3493
|
flex-direction: column;
|
|
3479
3494
|
justify-content: space-between;
|
|
3480
3495
|
position: relative;
|
|
3481
3496
|
width: 100%;
|
|
3482
|
-
`,
|
|
3497
|
+
`, Aa = Y.div`
|
|
3483
3498
|
flex: 1;
|
|
3484
3499
|
position: relative;
|
|
3485
3500
|
overflow-y: auto;
|
|
3486
|
-
`,
|
|
3501
|
+
`, ja = Y.div`
|
|
3487
3502
|
padding-block: 0;
|
|
3488
3503
|
background-color: var(--ant-color-bg-elevated);
|
|
3489
|
-
`,
|
|
3504
|
+
`, Ma = ({ children: e, footer: t, maxHeight: n, styles: r = {} }) => {
|
|
3490
3505
|
let i = E.useRef(null), a = E.useRef(null), o = E.useRef(null), { initialize: s, instance: c, scrollEventElement: l, scrollToBottom: u, scrollToTarget: f, getScrollElementScrollableHeight: p } = d({ options: { scrollbars: { autoHide: "move" } } });
|
|
3491
3506
|
E.useEffect(() => {
|
|
3492
3507
|
i.current && s(i.current);
|
|
@@ -3494,7 +3509,7 @@ var _a = {}, va = () => {
|
|
|
3494
3509
|
let m = N((e) => {
|
|
3495
3510
|
o.current.style.paddingBottom = `${e}px`;
|
|
3496
3511
|
}, []);
|
|
3497
|
-
return /* @__PURE__ */ H(
|
|
3512
|
+
return /* @__PURE__ */ H(Da.Provider, {
|
|
3498
3513
|
value: {
|
|
3499
3514
|
scroller: i,
|
|
3500
3515
|
osInstance: c,
|
|
@@ -3504,12 +3519,12 @@ var _a = {}, va = () => {
|
|
|
3504
3519
|
scrollToTarget: f,
|
|
3505
3520
|
setSScrollContentPaddingBottom: m
|
|
3506
3521
|
},
|
|
3507
|
-
children: /* @__PURE__ */ U(
|
|
3522
|
+
children: /* @__PURE__ */ U(ka, {
|
|
3508
3523
|
style: {
|
|
3509
3524
|
height: n || "100%",
|
|
3510
3525
|
...r.wrapper
|
|
3511
3526
|
},
|
|
3512
|
-
children: [/* @__PURE__ */ H(
|
|
3527
|
+
children: [/* @__PURE__ */ H(Aa, {
|
|
3513
3528
|
ref: i,
|
|
3514
3529
|
style: {
|
|
3515
3530
|
padding: "16px 24px",
|
|
@@ -3519,25 +3534,25 @@ var _a = {}, va = () => {
|
|
|
3519
3534
|
ref: o,
|
|
3520
3535
|
children: e
|
|
3521
3536
|
})
|
|
3522
|
-
}), t && /* @__PURE__ */ H(
|
|
3537
|
+
}), t && /* @__PURE__ */ H(ja, {
|
|
3523
3538
|
ref: a,
|
|
3524
3539
|
children: t
|
|
3525
3540
|
})]
|
|
3526
3541
|
})
|
|
3527
3542
|
});
|
|
3528
|
-
},
|
|
3543
|
+
}, Na = {
|
|
3529
3544
|
color: "var(--color-white-tertiary)",
|
|
3530
3545
|
itemColorHover: "var(--color-white-secondary)",
|
|
3531
3546
|
itemSelectedColor: "var(--color-white-primary)",
|
|
3532
3547
|
thumbBgColor: "var(--color-white-primary)",
|
|
3533
3548
|
fontWeight: 400
|
|
3534
|
-
},
|
|
3549
|
+
}, Pa = {
|
|
3535
3550
|
color: "var(--ant-segmented-item-color)",
|
|
3536
3551
|
itemColorHover: "var(--ant-segmented-item-hover-color)",
|
|
3537
3552
|
itemSelectedColor: "var(--ant-segmented-item-selected-color)",
|
|
3538
3553
|
thumbBgColor: "var(--ant-color-primary)",
|
|
3539
3554
|
fontWeight: 500
|
|
3540
|
-
},
|
|
3555
|
+
}, Fa = Y.div`
|
|
3541
3556
|
.ant-segmented.segment-line {
|
|
3542
3557
|
padding: 0;
|
|
3543
3558
|
background-color: transparent;
|
|
@@ -3599,12 +3614,12 @@ var _a = {}, va = () => {
|
|
|
3599
3614
|
display: none;
|
|
3600
3615
|
}
|
|
3601
3616
|
}
|
|
3602
|
-
`,
|
|
3617
|
+
`, Ia = (e) => {
|
|
3603
3618
|
let { height: t = 32, size: n = "small", options: r = [], className: i = "segment-line", theme: a = "dark", showTitle: o = !1, ...s } = e;
|
|
3604
|
-
return /* @__PURE__ */ H(
|
|
3619
|
+
return /* @__PURE__ */ H(Fa, {
|
|
3605
3620
|
className: o ? "with-title" : "",
|
|
3606
3621
|
$height: t,
|
|
3607
|
-
$theme: a === "dark" ?
|
|
3622
|
+
$theme: a === "dark" ? Na : Pa,
|
|
3608
3623
|
children: /* @__PURE__ */ H(St, {
|
|
3609
3624
|
...s,
|
|
3610
3625
|
size: n,
|
|
@@ -3612,17 +3627,17 @@ var _a = {}, va = () => {
|
|
|
3612
3627
|
className: i
|
|
3613
3628
|
})
|
|
3614
3629
|
});
|
|
3615
|
-
},
|
|
3630
|
+
}, La = Y.div`
|
|
3616
3631
|
width: 100%;
|
|
3617
3632
|
padding-inline: 12px 10px;
|
|
3618
3633
|
display: flex;
|
|
3619
3634
|
align-items: center;
|
|
3620
3635
|
justify-content: space-between;
|
|
3621
3636
|
background-color: var(--color-editor-header-bg);
|
|
3622
|
-
`,
|
|
3637
|
+
`, Ra = (e) => {
|
|
3623
3638
|
let { code: t, copyText: n = "", defaultValue: r, options: i = [], headerHeight: a = 40, height: o = 380, showTitle: s = !1, lang: c, onChange: l } = e || {}, [d, f] = E.useState(r || "");
|
|
3624
3639
|
return /* @__PURE__ */ H(C, {
|
|
3625
|
-
header: /* @__PURE__ */ U(
|
|
3640
|
+
header: /* @__PURE__ */ U(La, { children: [/* @__PURE__ */ H(Ia, {
|
|
3626
3641
|
height: a,
|
|
3627
3642
|
defaultValue: r,
|
|
3628
3643
|
value: d,
|
|
@@ -3645,22 +3660,22 @@ var _a = {}, va = () => {
|
|
|
3645
3660
|
copyable: !1
|
|
3646
3661
|
})
|
|
3647
3662
|
});
|
|
3648
|
-
},
|
|
3663
|
+
}, za = {
|
|
3649
3664
|
"content-wrapper": "style-module__content-wrapper___Iy8gK",
|
|
3650
3665
|
content: "style-module__content___HqnAN",
|
|
3651
3666
|
title: "style-module__title___o8-uH"
|
|
3652
|
-
},
|
|
3653
|
-
className:
|
|
3667
|
+
}, Ba = ({ children: e, title: t = !1, titleStyle: n, contentStyle: r }) => /* @__PURE__ */ U("div", {
|
|
3668
|
+
className: za["content-wrapper"],
|
|
3654
3669
|
children: [t && /* @__PURE__ */ H("div", {
|
|
3655
|
-
className:
|
|
3670
|
+
className: za.title,
|
|
3656
3671
|
style: { ...n },
|
|
3657
3672
|
children: t
|
|
3658
3673
|
}), /* @__PURE__ */ H("div", {
|
|
3659
|
-
className:
|
|
3674
|
+
className: za.content,
|
|
3660
3675
|
style: { ...r },
|
|
3661
3676
|
children: e
|
|
3662
3677
|
})]
|
|
3663
|
-
}),
|
|
3678
|
+
}), Va = Rt(({ css: e }) => ({
|
|
3664
3679
|
"delete-modal-content": e`
|
|
3665
3680
|
display: flex;
|
|
3666
3681
|
font-size: var(--font-size-middle);
|
|
@@ -3688,7 +3703,7 @@ var _a = {}, va = () => {
|
|
|
3688
3703
|
margin-top: 8px;
|
|
3689
3704
|
}
|
|
3690
3705
|
`
|
|
3691
|
-
})),
|
|
3706
|
+
})), Ha = Y.div`
|
|
3692
3707
|
margin-top: 20px;
|
|
3693
3708
|
margin-left: 30px;
|
|
3694
3709
|
display: flex;
|
|
@@ -3698,8 +3713,8 @@ var _a = {}, va = () => {
|
|
|
3698
3713
|
font-weight: 700;
|
|
3699
3714
|
color: var(--ant-color-warning);
|
|
3700
3715
|
}
|
|
3701
|
-
`,
|
|
3702
|
-
let n = o(), { styles: r } =
|
|
3716
|
+
`, Ua = A((e, t) => {
|
|
3717
|
+
let n = o(), { styles: r } = Va(), { saveScrollHeight: i, restoreScrollHeight: a } = Ii(), [s, c] = B(!1), [l, u] = B({ checked: !1 }), [d, f] = B(!1), [p, m] = B({}), h = (e) => {
|
|
3703
3718
|
i(), m(e), u({ checked: e.checkConfig?.defautlChecked || !1 }), c(!0);
|
|
3704
3719
|
}, g = () => {
|
|
3705
3720
|
c(!1), a();
|
|
@@ -3759,7 +3774,7 @@ var _a = {}, va = () => {
|
|
|
3759
3774
|
name: p.name
|
|
3760
3775
|
}) : "" }
|
|
3761
3776
|
}),
|
|
3762
|
-
p.checkConfig && /* @__PURE__ */ H(
|
|
3777
|
+
p.checkConfig && /* @__PURE__ */ H(Ha, { children: /* @__PURE__ */ H(K, {
|
|
3763
3778
|
checked: l.checked,
|
|
3764
3779
|
onChange: (e) => u({ checked: e.target.checked }),
|
|
3765
3780
|
children: /* @__PURE__ */ H("span", {
|
|
@@ -3769,16 +3784,16 @@ var _a = {}, va = () => {
|
|
|
3769
3784
|
}) })
|
|
3770
3785
|
]
|
|
3771
3786
|
});
|
|
3772
|
-
}),
|
|
3787
|
+
}), Wa = { "divider-line": "index-module__divider-line___W2S2g" }, Ga = () => /* @__PURE__ */ H("div", { className: Wa["divider-line"] }), Ka = Y.div`
|
|
3773
3788
|
display: flex;
|
|
3774
3789
|
align-items: center;
|
|
3775
3790
|
flex-wrap: wrap;
|
|
3776
3791
|
.title {
|
|
3777
3792
|
margin-right: 8px;
|
|
3778
3793
|
}
|
|
3779
|
-
`,
|
|
3794
|
+
`, qa = ({ link: e, title: t }) => {
|
|
3780
3795
|
let n = o();
|
|
3781
|
-
return /* @__PURE__ */ U(
|
|
3796
|
+
return /* @__PURE__ */ U(Ka, { children: [t && /* @__PURE__ */ H("span", {
|
|
3782
3797
|
className: "title",
|
|
3783
3798
|
children: t
|
|
3784
3799
|
}), /* @__PURE__ */ U(G, {
|
|
@@ -3792,7 +3807,7 @@ var _a = {}, va = () => {
|
|
|
3792
3807
|
className: "font-size-14"
|
|
3793
3808
|
})]
|
|
3794
3809
|
})] });
|
|
3795
|
-
},
|
|
3810
|
+
}, Ja = { middle: "index-module__middle___pMpZ3" }, Ya = ({ items: e, size: t = "middle", trigger: n = ["hover"], showText: r, disabled: i, variant: a, color: s, extra: c, onSelect: l }) => {
|
|
3796
3811
|
let u = o(), d = ki(), f = Z.default.filter(e, (e) => e?.access ? d?.[e.access] : !0), p = (e) => {
|
|
3797
3812
|
let t = Z.default.find(f, { key: e.key });
|
|
3798
3813
|
l(e.key, t);
|
|
@@ -3803,7 +3818,7 @@ var _a = {}, va = () => {
|
|
|
3803
3818
|
return f?.length ? /* @__PURE__ */ H(V, { children: f?.length === 1 ? /* @__PURE__ */ H(J, {
|
|
3804
3819
|
title: u.formatMessage({ id: m?.label }),
|
|
3805
3820
|
children: /* @__PURE__ */ H(G, {
|
|
3806
|
-
className:
|
|
3821
|
+
className: Ja[t],
|
|
3807
3822
|
icon: m?.icon,
|
|
3808
3823
|
size: t,
|
|
3809
3824
|
...m?.props,
|
|
@@ -3812,7 +3827,7 @@ var _a = {}, va = () => {
|
|
|
3812
3827
|
}) : /* @__PURE__ */ U(Et.Compact, { children: [/* @__PURE__ */ H(V, { children: r ? /* @__PURE__ */ U(G, {
|
|
3813
3828
|
...m?.props,
|
|
3814
3829
|
disabled: m?.disabled || i,
|
|
3815
|
-
className:
|
|
3830
|
+
className: Ja[t],
|
|
3816
3831
|
onClick: h,
|
|
3817
3832
|
size: t,
|
|
3818
3833
|
icon: m?.icon,
|
|
@@ -3823,7 +3838,7 @@ var _a = {}, va = () => {
|
|
|
3823
3838
|
title: u.formatMessage({ id: m?.label }),
|
|
3824
3839
|
children: /* @__PURE__ */ H(G, {
|
|
3825
3840
|
...m?.props,
|
|
3826
|
-
className:
|
|
3841
|
+
className: Ja[t],
|
|
3827
3842
|
onClick: h,
|
|
3828
3843
|
size: t,
|
|
3829
3844
|
icon: m?.icon,
|
|
@@ -3850,15 +3865,15 @@ var _a = {}, va = () => {
|
|
|
3850
3865
|
size: t,
|
|
3851
3866
|
variant: a,
|
|
3852
3867
|
color: "default",
|
|
3853
|
-
className:
|
|
3868
|
+
className: Ja[t]
|
|
3854
3869
|
}, "menu")
|
|
3855
3870
|
})] }) }) : /* @__PURE__ */ H("span", {});
|
|
3856
|
-
},
|
|
3871
|
+
}, Xa = ({ schema: e, onSubmit: t }) => /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H(q, {
|
|
3857
3872
|
form: q.useFormInstance(),
|
|
3858
3873
|
onFinish: (e) => {
|
|
3859
3874
|
t(e);
|
|
3860
3875
|
}
|
|
3861
|
-
}) }),
|
|
3876
|
+
}) }), Za = (e) => {
|
|
3862
3877
|
let { required: t, description: n, label: r, labelExtra: i } = e || {};
|
|
3863
3878
|
return r ? /* @__PURE__ */ U("span", {
|
|
3864
3879
|
className: "label-text",
|
|
@@ -3881,7 +3896,7 @@ var _a = {}, va = () => {
|
|
|
3881
3896
|
})] })
|
|
3882
3897
|
}), i]
|
|
3883
3898
|
}) : null;
|
|
3884
|
-
},
|
|
3899
|
+
}, Qa = Y.div`
|
|
3885
3900
|
position: relative;
|
|
3886
3901
|
padding: 14px;
|
|
3887
3902
|
padding-top: 34px;
|
|
@@ -3897,16 +3912,16 @@ var _a = {}, va = () => {
|
|
|
3897
3912
|
top: 12px;
|
|
3898
3913
|
color: var(--ant-color-text-tertiary);
|
|
3899
3914
|
}
|
|
3900
|
-
`,
|
|
3915
|
+
`, $a = Y.div`
|
|
3901
3916
|
margin-top: 8px;
|
|
3902
|
-
`,
|
|
3917
|
+
`, eo = ({ required: e, children: t, label: n, description: r, labelExtra: i, onAdd: a, btnText: s, disabled: c, button: l, styles: u }) => {
|
|
3903
3918
|
let d = o();
|
|
3904
|
-
return /* @__PURE__ */ U(
|
|
3919
|
+
return /* @__PURE__ */ U(Qa, {
|
|
3905
3920
|
style: u?.wrapper,
|
|
3906
3921
|
children: [
|
|
3907
3922
|
n && /* @__PURE__ */ H("span", {
|
|
3908
3923
|
className: "label",
|
|
3909
|
-
children: /* @__PURE__ */ H(
|
|
3924
|
+
children: /* @__PURE__ */ H(Za, {
|
|
3910
3925
|
required: e,
|
|
3911
3926
|
label: n,
|
|
3912
3927
|
description: r,
|
|
@@ -3914,7 +3929,7 @@ var _a = {}, va = () => {
|
|
|
3914
3929
|
})
|
|
3915
3930
|
}),
|
|
3916
3931
|
t,
|
|
3917
|
-
!c && /* @__PURE__ */ H(
|
|
3932
|
+
!c && /* @__PURE__ */ H($a, { children: l || /* @__PURE__ */ U(G, {
|
|
3918
3933
|
variant: "filled",
|
|
3919
3934
|
color: "default",
|
|
3920
3935
|
block: !0,
|
|
@@ -3924,19 +3939,19 @@ var _a = {}, va = () => {
|
|
|
3924
3939
|
}) })
|
|
3925
3940
|
]
|
|
3926
3941
|
});
|
|
3927
|
-
}, { Link:
|
|
3942
|
+
}, { Link: to } = Nt, no = Y.div`
|
|
3928
3943
|
display: flex;
|
|
3929
3944
|
justify-content: center;
|
|
3930
3945
|
align-items: center;
|
|
3931
3946
|
padding-block: 12px;
|
|
3932
|
-
`,
|
|
3947
|
+
`, ro = () => /* @__PURE__ */ H(no, { children: /* @__PURE__ */ H(to, { children: /* @__PURE__ */ H(Oe, {}) }) }), io = ({ loading: e, notFoundContent: t }) => {
|
|
3933
3948
|
let n = o();
|
|
3934
|
-
return e ? /* @__PURE__ */ H(
|
|
3949
|
+
return e ? /* @__PURE__ */ H(ro, {}) : /* @__PURE__ */ H(no, { children: t || /* @__PURE__ */ H(ft, {
|
|
3935
3950
|
style: { marginBlock: 0 },
|
|
3936
3951
|
description: n.formatMessage({ id: "common.data.empty" }),
|
|
3937
3952
|
image: ft.PRESENTED_IMAGE_SIMPLE
|
|
3938
3953
|
}) });
|
|
3939
|
-
},
|
|
3954
|
+
}, ao = "transparent", oo = Y.div`
|
|
3940
3955
|
position: relative;
|
|
3941
3956
|
display: flex;
|
|
3942
3957
|
justify-content: flex-start;
|
|
@@ -3995,7 +4010,7 @@ var _a = {}, va = () => {
|
|
|
3995
4010
|
}
|
|
3996
4011
|
}
|
|
3997
4012
|
}
|
|
3998
|
-
`,
|
|
4013
|
+
`, so = Y.div.attrs((e) => ({ className: (0, X.default)({
|
|
3999
4014
|
__wrapper__: !0,
|
|
4000
4015
|
"no-wrapper-style": e.$noWrapperStyle,
|
|
4001
4016
|
"no-label": e.$nolabel
|
|
@@ -4018,7 +4033,7 @@ var _a = {}, va = () => {
|
|
|
4018
4033
|
&.no-label {
|
|
4019
4034
|
padding-block: 0;
|
|
4020
4035
|
}
|
|
4021
|
-
`,
|
|
4036
|
+
`, co = Y.div.attrs((e) => ({ className: (0, X.default)({
|
|
4022
4037
|
"isfoucs-has-value": e.$isFocus,
|
|
4023
4038
|
"blur-no-value": !e.$isFocus,
|
|
4024
4039
|
"has-prefix": e.$hasPrefix
|
|
@@ -4046,15 +4061,15 @@ var _a = {}, va = () => {
|
|
|
4046
4061
|
&.has-prefix {
|
|
4047
4062
|
top: 10px !important;
|
|
4048
4063
|
}
|
|
4049
|
-
`,
|
|
4064
|
+
`, lo = Y.div.attrs({ className: "__inner__" })`
|
|
4050
4065
|
width: 100%;
|
|
4051
4066
|
display: flex;
|
|
4052
|
-
`,
|
|
4067
|
+
`, uo = Y.div`
|
|
4053
4068
|
position: absolute;
|
|
4054
4069
|
right: 12px;
|
|
4055
4070
|
top: 8px;
|
|
4056
4071
|
z-index: 10;
|
|
4057
|
-
`,
|
|
4072
|
+
`, fo = Y.div`
|
|
4058
4073
|
position: relative;
|
|
4059
4074
|
border-radius: 0 var(--ant-border-radius) var(--ant-border-radius) 0;
|
|
4060
4075
|
color: var(--ant-color-text-tertiary);
|
|
@@ -4064,9 +4079,9 @@ var _a = {}, va = () => {
|
|
|
4064
4079
|
display: flex;
|
|
4065
4080
|
align-items: center;
|
|
4066
4081
|
background-color: var(--ant-color-fill-secondary);
|
|
4067
|
-
`,
|
|
4082
|
+
`, po = ({ children: e, label: t, isFocus: n, status: r, className: i, disabled: a, classList: o, description: s, required: c, extra: l, variant: u, addAfter: d, hasPrefix: f, noWrapperStyle: p, labelExtra: m, onClick: h }) => {
|
|
4068
4083
|
let { token: g } = Lt.useToken();
|
|
4069
|
-
return /* @__PURE__ */ U(
|
|
4084
|
+
return /* @__PURE__ */ U(oo, {
|
|
4070
4085
|
className: (0, X.default)(r ? `validate-status-${r}` : "", i, o, u, {
|
|
4071
4086
|
"seal-input-wrapper-addafter": d,
|
|
4072
4087
|
"seal-input-wrapper-disabled": a
|
|
@@ -4084,29 +4099,29 @@ var _a = {}, va = () => {
|
|
|
4084
4099
|
"--ant-input-active-shadow": `0 0 0 2px ${g.controlOutline}`,
|
|
4085
4100
|
"--ant-input-active-bg": g.colorBgContainer
|
|
4086
4101
|
},
|
|
4087
|
-
children: [/* @__PURE__ */ U(
|
|
4102
|
+
children: [/* @__PURE__ */ U(so, {
|
|
4088
4103
|
$noWrapperStyle: p,
|
|
4089
4104
|
$nolabel: !t,
|
|
4090
4105
|
onClick: h,
|
|
4091
4106
|
children: [
|
|
4092
|
-
t && /* @__PURE__ */ H(
|
|
4107
|
+
t && /* @__PURE__ */ H(co, {
|
|
4093
4108
|
$isFocus: n,
|
|
4094
4109
|
$hasPrefix: f,
|
|
4095
4110
|
onClick: h,
|
|
4096
4111
|
className: "label-wrapper",
|
|
4097
|
-
children: /* @__PURE__ */ H(
|
|
4112
|
+
children: /* @__PURE__ */ H(Za, {
|
|
4098
4113
|
label: t,
|
|
4099
4114
|
required: c,
|
|
4100
4115
|
description: s,
|
|
4101
4116
|
labelExtra: m
|
|
4102
4117
|
})
|
|
4103
4118
|
}),
|
|
4104
|
-
l && /* @__PURE__ */ H(
|
|
4105
|
-
/* @__PURE__ */ H(
|
|
4119
|
+
l && /* @__PURE__ */ H(uo, { children: l }),
|
|
4120
|
+
/* @__PURE__ */ H(lo, { children: e })
|
|
4106
4121
|
]
|
|
4107
|
-
}), d && /* @__PURE__ */ H(
|
|
4122
|
+
}), d && /* @__PURE__ */ H(fo, { children: d })]
|
|
4108
4123
|
});
|
|
4109
|
-
},
|
|
4124
|
+
}, mo = Y.div`
|
|
4110
4125
|
flex: 1;
|
|
4111
4126
|
.seal-select-wrapper {
|
|
4112
4127
|
border: none;
|
|
@@ -4313,7 +4328,7 @@ var _a = {}, va = () => {
|
|
|
4313
4328
|
}
|
|
4314
4329
|
}
|
|
4315
4330
|
}
|
|
4316
|
-
`,
|
|
4331
|
+
`, ho = Nt.Link, go = (e) => {
|
|
4317
4332
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, trim: o = !0, onSelect: s, onBlur: c, checkStatus: l, extra: u, style: d, addAfter: f, suffixIcon: p, loading: m, allowClear: h, clearSpaceOnBlur: g, showSearch: _, ...v } = e, [y, b] = B(!1), x = z(null), S = "";
|
|
4318
4333
|
try {
|
|
4319
4334
|
a && (S = q?.Item?.useStatus?.()?.status || "");
|
|
@@ -4337,10 +4352,10 @@ var _a = {}, va = () => {
|
|
|
4337
4352
|
s?.(e, t);
|
|
4338
4353
|
}, O = (t) => {
|
|
4339
4354
|
o && (t.target.value = t.target.value?.trim()), e.onInput?.(t);
|
|
4340
|
-
}, k = () => m ? /* @__PURE__ */ H(
|
|
4341
|
-
return /* @__PURE__ */ H(
|
|
4355
|
+
}, k = () => m ? /* @__PURE__ */ H(ho, { children: /* @__PURE__ */ H(Oe, {}) }) : p || null, A = (e) => m ? /* @__PURE__ */ H(ro, {}) : e || null;
|
|
4356
|
+
return /* @__PURE__ */ H(mo, {
|
|
4342
4357
|
style: d,
|
|
4343
|
-
children: /* @__PURE__ */ H(
|
|
4358
|
+
children: /* @__PURE__ */ H(po, {
|
|
4344
4359
|
className: "seal-select-wrapper",
|
|
4345
4360
|
status: l || S,
|
|
4346
4361
|
extra: u,
|
|
@@ -4371,7 +4386,7 @@ var _a = {}, va = () => {
|
|
|
4371
4386
|
})
|
|
4372
4387
|
})
|
|
4373
4388
|
});
|
|
4374
|
-
},
|
|
4389
|
+
}, _o = Y.div`
|
|
4375
4390
|
.seal-input-number {
|
|
4376
4391
|
padding-right: 0;
|
|
4377
4392
|
.isfoucs-has-value {
|
|
@@ -4447,7 +4462,7 @@ var _a = {}, va = () => {
|
|
|
4447
4462
|
box-shadow: none;
|
|
4448
4463
|
padding-block: 5px;
|
|
4449
4464
|
padding-inline: ${14}px;
|
|
4450
|
-
background-color: ${
|
|
4465
|
+
background-color: ${ao};
|
|
4451
4466
|
}
|
|
4452
4467
|
.ant-input.seal-textarea {
|
|
4453
4468
|
flex: 1;
|
|
@@ -4462,7 +4477,7 @@ var _a = {}, va = () => {
|
|
|
4462
4477
|
border: none;
|
|
4463
4478
|
box-shadow: none;
|
|
4464
4479
|
padding: 0;
|
|
4465
|
-
background-color: ${
|
|
4480
|
+
background-color: ${ao};
|
|
4466
4481
|
flex: 1;
|
|
4467
4482
|
|
|
4468
4483
|
&:hover .ant-input-number-handler-wrap,
|
|
@@ -4558,7 +4573,7 @@ var _a = {}, va = () => {
|
|
|
4558
4573
|
.ant-input-number-input:placeholder-shown {
|
|
4559
4574
|
font-size: var(--ant-font-size);
|
|
4560
4575
|
}
|
|
4561
|
-
`,
|
|
4576
|
+
`, vo = (e) => {
|
|
4562
4577
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4563
4578
|
try {
|
|
4564
4579
|
if (a) {
|
|
@@ -4582,7 +4597,7 @@ var _a = {}, va = () => {
|
|
|
4582
4597
|
}, h = (t) => {
|
|
4583
4598
|
e.onInput?.(t);
|
|
4584
4599
|
};
|
|
4585
|
-
return /* @__PURE__ */ H(
|
|
4600
|
+
return /* @__PURE__ */ H(_o, { children: /* @__PURE__ */ H(po, {
|
|
4586
4601
|
status: u,
|
|
4587
4602
|
label: t,
|
|
4588
4603
|
isFocus: s,
|
|
@@ -4602,7 +4617,7 @@ var _a = {}, va = () => {
|
|
|
4602
4617
|
onChange: f
|
|
4603
4618
|
})
|
|
4604
4619
|
}) });
|
|
4605
|
-
},
|
|
4620
|
+
}, yo = (e) => {
|
|
4606
4621
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4607
4622
|
try {
|
|
4608
4623
|
a && (u = q?.Item?.useStatus?.()?.status || "");
|
|
@@ -4623,7 +4638,7 @@ var _a = {}, va = () => {
|
|
|
4623
4638
|
}, h = (...t) => {
|
|
4624
4639
|
e.onSearch?.(...t);
|
|
4625
4640
|
};
|
|
4626
|
-
return /* @__PURE__ */ H(
|
|
4641
|
+
return /* @__PURE__ */ H(_o, { children: /* @__PURE__ */ H(po, {
|
|
4627
4642
|
status: u,
|
|
4628
4643
|
label: t,
|
|
4629
4644
|
isFocus: s,
|
|
@@ -4641,7 +4656,7 @@ var _a = {}, va = () => {
|
|
|
4641
4656
|
onChange: f
|
|
4642
4657
|
})
|
|
4643
4658
|
}) });
|
|
4644
|
-
},
|
|
4659
|
+
}, bo = (e) => {
|
|
4645
4660
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4646
4661
|
try {
|
|
4647
4662
|
a && (u = q?.Item?.useStatus?.()?.status || "");
|
|
@@ -4660,7 +4675,7 @@ var _a = {}, va = () => {
|
|
|
4660
4675
|
}, m = (t) => {
|
|
4661
4676
|
t.target.value = t.target.value?.trim?.(), l.current?.input?.value || c(!1), e.onBlur?.(t);
|
|
4662
4677
|
};
|
|
4663
|
-
return /* @__PURE__ */ H(
|
|
4678
|
+
return /* @__PURE__ */ H(_o, { children: /* @__PURE__ */ H(po, {
|
|
4664
4679
|
status: u,
|
|
4665
4680
|
label: t,
|
|
4666
4681
|
isFocus: s,
|
|
@@ -4680,13 +4695,13 @@ var _a = {}, va = () => {
|
|
|
4680
4695
|
onChange: f
|
|
4681
4696
|
})
|
|
4682
4697
|
}) });
|
|
4683
|
-
},
|
|
4698
|
+
}, xo = Y.div.attrs({ className: "seal-textarea-label" })`
|
|
4684
4699
|
display: flex;
|
|
4685
4700
|
align-items: center;
|
|
4686
4701
|
justify-content: flex-start;
|
|
4687
4702
|
padding-bottom: 2px;
|
|
4688
4703
|
background-color: var(--ant-color-bg-container);
|
|
4689
|
-
`,
|
|
4704
|
+
`, So = (e) => {
|
|
4690
4705
|
let { label: t, placeholder: n, onChange: r, onFocus: i, onBlur: a, onInput: o, style: s, required: c, isInFormItems: l = !0, description: u, variant: d, extra: f, addAfter: p, trim: m, scaleSize: h, alwaysFocus: g, ..._ } = e, [v, y] = B(!1), b = z(null), x = "";
|
|
4691
4706
|
try {
|
|
4692
4707
|
l && (x = q?.Item?.useStatus?.()?.status || "");
|
|
@@ -4720,11 +4735,11 @@ var _a = {}, va = () => {
|
|
|
4720
4735
|
}, D = (e) => {
|
|
4721
4736
|
o?.(e);
|
|
4722
4737
|
};
|
|
4723
|
-
return /* @__PURE__ */ H(
|
|
4738
|
+
return /* @__PURE__ */ H(_o, {
|
|
4724
4739
|
className: "textarea-input-wrapper",
|
|
4725
|
-
children: /* @__PURE__ */ H(
|
|
4740
|
+
children: /* @__PURE__ */ H(po, {
|
|
4726
4741
|
status: x,
|
|
4727
|
-
label: t && /* @__PURE__ */ H(
|
|
4742
|
+
label: t && /* @__PURE__ */ H(xo, { children: t }),
|
|
4728
4743
|
isFocus: g || v,
|
|
4729
4744
|
required: c,
|
|
4730
4745
|
description: u,
|
|
@@ -4748,8 +4763,8 @@ var _a = {}, va = () => {
|
|
|
4748
4763
|
})
|
|
4749
4764
|
})
|
|
4750
4765
|
});
|
|
4751
|
-
},
|
|
4752
|
-
TextArea:
|
|
4766
|
+
}, Co = {
|
|
4767
|
+
TextArea: So,
|
|
4753
4768
|
Input: (e) => {
|
|
4754
4769
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, variant: o, addAfter: s, checkStatus: c, trim: l = !0, loading: u, labelExtra: d, style: f, ...p } = e, [m, h] = B(!1), g = z(null), _ = "";
|
|
4755
4770
|
try {
|
|
@@ -4774,9 +4789,9 @@ var _a = {}, va = () => {
|
|
|
4774
4789
|
}, S = (t) => {
|
|
4775
4790
|
e.onInput?.(t);
|
|
4776
4791
|
};
|
|
4777
|
-
return /* @__PURE__ */ H(
|
|
4792
|
+
return /* @__PURE__ */ H(_o, {
|
|
4778
4793
|
style: f,
|
|
4779
|
-
children: /* @__PURE__ */ H(
|
|
4794
|
+
children: /* @__PURE__ */ H(po, {
|
|
4780
4795
|
status: c || _,
|
|
4781
4796
|
label: t,
|
|
4782
4797
|
labelExtra: d,
|
|
@@ -4800,10 +4815,10 @@ var _a = {}, va = () => {
|
|
|
4800
4815
|
})
|
|
4801
4816
|
});
|
|
4802
4817
|
},
|
|
4803
|
-
Password:
|
|
4804
|
-
Number:
|
|
4805
|
-
Search:
|
|
4806
|
-
},
|
|
4818
|
+
Password: bo,
|
|
4819
|
+
Number: vo,
|
|
4820
|
+
Search: yo
|
|
4821
|
+
}, wo = { footer: "styles-module__footer___OVLXu" }, To = A((e, t) => {
|
|
4807
4822
|
let { notFoundContent: n, loading: r, ...i } = e, [a, o] = E.useState(!1), s = E.useRef(null);
|
|
4808
4823
|
I(t, () => ({ ...s.current || {} }));
|
|
4809
4824
|
let c = (t) => {
|
|
@@ -4813,7 +4828,7 @@ var _a = {}, va = () => {
|
|
|
4813
4828
|
}, u = () => e.suffixIcon ? e.suffixIcon : e.showSearch && a ? void 0 : /* @__PURE__ */ H(Q, { type: "icon-down" });
|
|
4814
4829
|
return /* @__PURE__ */ H(Ct, {
|
|
4815
4830
|
...i,
|
|
4816
|
-
notFoundContent: /* @__PURE__ */ H(
|
|
4831
|
+
notFoundContent: /* @__PURE__ */ H(io, {
|
|
4817
4832
|
loading: r,
|
|
4818
4833
|
notFoundContent: n
|
|
4819
4834
|
}),
|
|
@@ -4823,11 +4838,11 @@ var _a = {}, va = () => {
|
|
|
4823
4838
|
onBlur: l,
|
|
4824
4839
|
suffixIcon: u(),
|
|
4825
4840
|
popupRender: e.footer ? (t) => /* @__PURE__ */ U(V, { children: [t, e.footer && /* @__PURE__ */ H("div", {
|
|
4826
|
-
className:
|
|
4841
|
+
className: wo.footer,
|
|
4827
4842
|
children: e.footer
|
|
4828
4843
|
})] }) : void 0
|
|
4829
4844
|
});
|
|
4830
|
-
}),
|
|
4845
|
+
}), Eo = (e) => {
|
|
4831
4846
|
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, notFoundContent: u = null, loading: d, footer: f, alwaysFocus: p = !1, styles: m, ...h } = e, g = o(), [_, y] = B(!1), b = z(null), x = "";
|
|
4832
4847
|
try {
|
|
4833
4848
|
x = l ? q?.Item?.useStatus?.()?.status || "" : e.status || "";
|
|
@@ -4847,7 +4862,7 @@ var _a = {}, va = () => {
|
|
|
4847
4862
|
}, E = (t) => {
|
|
4848
4863
|
c && e.value === null ? y(!0) : e.value || y(!1), e.onBlur?.(t);
|
|
4849
4864
|
};
|
|
4850
|
-
return /* @__PURE__ */ H(
|
|
4865
|
+
return /* @__PURE__ */ H(mo, { children: /* @__PURE__ */ H(po, {
|
|
4851
4866
|
className: "seal-select-wrapper",
|
|
4852
4867
|
status: x,
|
|
4853
4868
|
label: t,
|
|
@@ -4856,7 +4871,7 @@ var _a = {}, va = () => {
|
|
|
4856
4871
|
description: a,
|
|
4857
4872
|
disabled: e.disabled,
|
|
4858
4873
|
onClick: C,
|
|
4859
|
-
children: /* @__PURE__ */ H(
|
|
4874
|
+
children: /* @__PURE__ */ H(To, {
|
|
4860
4875
|
...h,
|
|
4861
4876
|
styles: m,
|
|
4862
4877
|
placeholder: n,
|
|
@@ -4866,19 +4881,19 @@ var _a = {}, va = () => {
|
|
|
4866
4881
|
onFocus: T,
|
|
4867
4882
|
onBlur: E,
|
|
4868
4883
|
onChange: w,
|
|
4869
|
-
notFoundContent: /* @__PURE__ */ H(
|
|
4884
|
+
notFoundContent: /* @__PURE__ */ H(io, {
|
|
4870
4885
|
loading: d,
|
|
4871
4886
|
notFoundContent: u
|
|
4872
4887
|
}),
|
|
4873
4888
|
children: r
|
|
4874
4889
|
})
|
|
4875
4890
|
}) });
|
|
4876
|
-
},
|
|
4891
|
+
}, Do = {
|
|
4877
4892
|
default: 500,
|
|
4878
4893
|
large: 600,
|
|
4879
4894
|
small: 400,
|
|
4880
4895
|
mini: 300
|
|
4881
|
-
},
|
|
4896
|
+
}, Oo = Y.div`
|
|
4882
4897
|
.__wrapper__ {
|
|
4883
4898
|
height: 100%;
|
|
4884
4899
|
justify-content: center;
|
|
@@ -4929,7 +4944,7 @@ var _a = {}, va = () => {
|
|
|
4929
4944
|
}
|
|
4930
4945
|
}
|
|
4931
4946
|
}
|
|
4932
|
-
`,
|
|
4947
|
+
`, ko = (e) => {
|
|
4933
4948
|
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, max: o, min: s, step: c, defaultValue: l, checkStatus: u, inputnumber: d = !1, labelWidth: f, tooltip: p = { open: !1 }, ...m } = e, h = "";
|
|
4934
4949
|
try {
|
|
4935
4950
|
a && (h = q?.Item?.useStatus?.()?.status || "");
|
|
@@ -4939,15 +4954,15 @@ var _a = {}, va = () => {
|
|
|
4939
4954
|
let g = (t) => {
|
|
4940
4955
|
e.onChange?.(t);
|
|
4941
4956
|
};
|
|
4942
|
-
return /* @__PURE__ */ H(
|
|
4957
|
+
return /* @__PURE__ */ H(Oo, {
|
|
4943
4958
|
className: "slider-wrapper",
|
|
4944
|
-
children: /* @__PURE__ */ H(
|
|
4959
|
+
children: /* @__PURE__ */ H(po, {
|
|
4945
4960
|
required: r,
|
|
4946
4961
|
status: u || h,
|
|
4947
4962
|
label: /* @__PURE__ */ U("span", {
|
|
4948
4963
|
className: "slider-label",
|
|
4949
|
-
style: { width: f ||
|
|
4950
|
-
children: [/* @__PURE__ */ H(
|
|
4964
|
+
style: { width: f || Do.mini },
|
|
4965
|
+
children: [/* @__PURE__ */ H(Za, {
|
|
4951
4966
|
label: t,
|
|
4952
4967
|
description: i
|
|
4953
4968
|
}), d ? /* @__PURE__ */ H(gt, {
|
|
@@ -4990,7 +5005,7 @@ var _a = {}, va = () => {
|
|
|
4990
5005
|
})
|
|
4991
5006
|
})
|
|
4992
5007
|
});
|
|
4993
|
-
},
|
|
5008
|
+
}, Ao = Y.div`
|
|
4994
5009
|
display: flex;
|
|
4995
5010
|
align-items: center;
|
|
4996
5011
|
justify-content: space-between;
|
|
@@ -4999,7 +5014,7 @@ var _a = {}, va = () => {
|
|
|
4999
5014
|
.ant-switch {
|
|
5000
5015
|
margin-top: 0 !important;
|
|
5001
5016
|
}
|
|
5002
|
-
`,
|
|
5017
|
+
`, jo = (e) => {
|
|
5003
5018
|
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, defaultValue: o, checkStatus: s, labelWidth: c, size: l = "small", ...u } = e, d = "";
|
|
5004
5019
|
try {
|
|
5005
5020
|
a && (d = q?.Item?.useStatus?.()?.status || "");
|
|
@@ -5009,12 +5024,12 @@ var _a = {}, va = () => {
|
|
|
5009
5024
|
let f = (t, n) => {
|
|
5010
5025
|
e.onChange?.(t, n);
|
|
5011
5026
|
};
|
|
5012
|
-
return /* @__PURE__ */ H(
|
|
5027
|
+
return /* @__PURE__ */ H(po, {
|
|
5013
5028
|
required: r,
|
|
5014
5029
|
status: s || d,
|
|
5015
5030
|
className: "no-focus",
|
|
5016
5031
|
disabled: e.disabled,
|
|
5017
|
-
children: /* @__PURE__ */ U(
|
|
5032
|
+
children: /* @__PURE__ */ U(Ao, { children: [/* @__PURE__ */ H(Za, {
|
|
5018
5033
|
label: t,
|
|
5019
5034
|
description: i
|
|
5020
5035
|
}), /* @__PURE__ */ H(Ot, {
|
|
@@ -5030,17 +5045,17 @@ var _a = {}, va = () => {
|
|
|
5030
5045
|
onChange: f
|
|
5031
5046
|
})] })
|
|
5032
5047
|
});
|
|
5033
|
-
},
|
|
5034
|
-
InputNumber:
|
|
5035
|
-
Select:
|
|
5036
|
-
Slider:
|
|
5037
|
-
TextArea:
|
|
5038
|
-
Input:
|
|
5048
|
+
}, Mo = {
|
|
5049
|
+
InputNumber: Co.Number,
|
|
5050
|
+
Select: Eo,
|
|
5051
|
+
Slider: ko,
|
|
5052
|
+
TextArea: Co.TextArea,
|
|
5053
|
+
Input: Co.Input,
|
|
5039
5054
|
Checkbox: K,
|
|
5040
|
-
Switch:
|
|
5041
|
-
AutoComplete:
|
|
5042
|
-
},
|
|
5043
|
-
let g =
|
|
5055
|
+
Switch: jo,
|
|
5056
|
+
AutoComplete: go
|
|
5057
|
+
}, No = ({ widget: e, title: t, required: n, placeholder: r, options: i, description: a, enum: o, style: s, value: c, min: l, max: u, status: d, checked: f, isInFormItems: p, disabled: m, onChange: h }) => {
|
|
5058
|
+
let g = Mo[e], _ = o?.map((e) => ({
|
|
5044
5059
|
label: e,
|
|
5045
5060
|
value: e
|
|
5046
5061
|
}));
|
|
@@ -5063,17 +5078,17 @@ var _a = {}, va = () => {
|
|
|
5063
5078
|
},
|
|
5064
5079
|
onChange: h
|
|
5065
5080
|
}) : null;
|
|
5066
|
-
},
|
|
5081
|
+
}, Po = Y.div`
|
|
5067
5082
|
display: flex;
|
|
5068
5083
|
align-items: center;
|
|
5069
5084
|
justify-content: space-between;
|
|
5070
5085
|
margin-bottom: 8px;
|
|
5071
|
-
`,
|
|
5086
|
+
`, Fo = Y.div`
|
|
5072
5087
|
display: flex;
|
|
5073
5088
|
align-items: center;
|
|
5074
5089
|
gap: 8px;
|
|
5075
5090
|
width: 100%;
|
|
5076
|
-
`,
|
|
5091
|
+
`, Io = ({ schemaList: e, data: t, onChange: n, validateStatus: r, disabled: i }) => {
|
|
5077
5092
|
let a = (e, t) => {
|
|
5078
5093
|
if (t?.target?.type === "checkbox") {
|
|
5079
5094
|
let r = t.target?.checked;
|
|
@@ -5083,7 +5098,7 @@ var _a = {}, va = () => {
|
|
|
5083
5098
|
n?.({ [e]: r });
|
|
5084
5099
|
}
|
|
5085
5100
|
};
|
|
5086
|
-
return /* @__PURE__ */ H(V, { children: e.map((e) => /* @__PURE__ */ k(
|
|
5101
|
+
return /* @__PURE__ */ H(V, { children: e.map((e) => /* @__PURE__ */ k(No, {
|
|
5087
5102
|
status: r?.[e.name],
|
|
5088
5103
|
widget: e.type,
|
|
5089
5104
|
...e,
|
|
@@ -5094,7 +5109,7 @@ var _a = {}, va = () => {
|
|
|
5094
5109
|
isInFormItems: !1,
|
|
5095
5110
|
onChange: (t) => a(e.name, t)
|
|
5096
5111
|
})) });
|
|
5097
|
-
},
|
|
5112
|
+
}, Lo = ({ dataList: e = [], label: t, btnText: n, properties: r = {}, requiredFields: i = [], minItems: a = 0, validateStatusList: o = [], disabled: s, onAdd: c, onDelete: l, onChange: u }) => {
|
|
5098
5113
|
let [d, f] = E.useState(e || []), p = R(() => Object.entries(r).map(([e, t]) => ({
|
|
5099
5114
|
...t,
|
|
5100
5115
|
required: i.includes(e),
|
|
@@ -5119,12 +5134,12 @@ var _a = {}, va = () => {
|
|
|
5119
5134
|
!e.length && a > 0 && m();
|
|
5120
5135
|
}, []), F(() => {
|
|
5121
5136
|
f(e);
|
|
5122
|
-
}, [e]), /* @__PURE__ */ H(
|
|
5137
|
+
}, [e]), /* @__PURE__ */ H(eo, {
|
|
5123
5138
|
label: t,
|
|
5124
5139
|
btnText: n,
|
|
5125
5140
|
onAdd: m,
|
|
5126
5141
|
disabled: s,
|
|
5127
|
-
children: d.map((e, t) => /* @__PURE__ */ U(
|
|
5142
|
+
children: d.map((e, t) => /* @__PURE__ */ U(Po, { children: [/* @__PURE__ */ H(Fo, { children: /* @__PURE__ */ H(Io, {
|
|
5128
5143
|
schemaList: p,
|
|
5129
5144
|
data: e,
|
|
5130
5145
|
validateStatus: o?.[t],
|
|
@@ -5146,7 +5161,7 @@ var _a = {}, va = () => {
|
|
|
5146
5161
|
};
|
|
5147
5162
|
//#endregion
|
|
5148
5163
|
//#region src/lib/components/dynamic-form/hooks/use-validate-fields.ts
|
|
5149
|
-
function
|
|
5164
|
+
function Ro(e) {
|
|
5150
5165
|
let { requiredFields: t, setValidateStatusList: n } = e, r = z(!1), i = (e, t) => !e, a = (e, t) => !0;
|
|
5151
5166
|
return {
|
|
5152
5167
|
listMapValidator: async (e, o) => {
|
|
@@ -5183,11 +5198,11 @@ nn.use([
|
|
|
5183
5198
|
an,
|
|
5184
5199
|
on
|
|
5185
5200
|
]);
|
|
5186
|
-
var
|
|
5201
|
+
var zo = nn, Bo = A(({ options: e, width: t, height: n, chartHeight: r }, i) => {
|
|
5187
5202
|
let a = z(null), o = z(), s = z(!1), c = z(), l = z(!1);
|
|
5188
5203
|
I(i, () => ({ chart: o.current }));
|
|
5189
5204
|
let u = () => {
|
|
5190
|
-
a.current && (o.current?.clear(), o.current =
|
|
5205
|
+
a.current && (o.current?.clear(), o.current = zo.init(a.current));
|
|
5191
5206
|
}, d = (e) => {
|
|
5192
5207
|
o.current && (o.current?.clear(), o.current?.setOption(e, {
|
|
5193
5208
|
notMerge: !0,
|
|
@@ -5232,13 +5247,13 @@ var Lo = nn, Ro = A(({ options: e, width: t, height: n, chartHeight: r }, i) =>
|
|
|
5232
5247
|
}
|
|
5233
5248
|
})
|
|
5234
5249
|
});
|
|
5235
|
-
}),
|
|
5250
|
+
}), Vo = {
|
|
5236
5251
|
left: 0,
|
|
5237
5252
|
right: 0,
|
|
5238
5253
|
bottom: 20,
|
|
5239
5254
|
containLabel: !0
|
|
5240
5255
|
};
|
|
5241
|
-
function
|
|
5256
|
+
function Ho() {
|
|
5242
5257
|
let { config: e } = a(), { isDarkTheme: t, theme: n } = e, { useToken: r } = Lt, { token: i } = r(), o = R(() => ({
|
|
5243
5258
|
titleColor: i.colorText,
|
|
5244
5259
|
splitLineColor: i.colorBorder,
|
|
@@ -5274,7 +5289,7 @@ function Bo() {
|
|
|
5274
5289
|
}), `<div class="${r >= 12 ? "tooltip-wrapper tooltip-grid" : "tooltip-wrapper"}">${n}</div>`;
|
|
5275
5290
|
}
|
|
5276
5291
|
},
|
|
5277
|
-
grid:
|
|
5292
|
+
grid: Vo,
|
|
5278
5293
|
legend: {
|
|
5279
5294
|
itemWidth: 8,
|
|
5280
5295
|
itemHeight: 8,
|
|
@@ -5429,7 +5444,7 @@ function Bo() {
|
|
|
5429
5444
|
}
|
|
5430
5445
|
//#endregion
|
|
5431
5446
|
//#region src/lib/components/empty-data/index.tsx
|
|
5432
|
-
var
|
|
5447
|
+
var Uo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
5433
5448
|
style: {
|
|
5434
5449
|
width: "100%",
|
|
5435
5450
|
height: e || "100%"
|
|
@@ -5447,8 +5462,8 @@ var Vo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5447
5462
|
style: { height: "100%" },
|
|
5448
5463
|
children: /* @__PURE__ */ H(ft, { image: ft.PRESENTED_IMAGE_SIMPLE })
|
|
5449
5464
|
})]
|
|
5450
|
-
}),
|
|
5451
|
-
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, title: s, stack: c = "total" } = e, { barItemConfig: l, grid: u, legend: d, title: f, tooltip: p, xAxis: m, yAxis: h } =
|
|
5465
|
+
}), Wo = (e) => {
|
|
5466
|
+
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, title: s, stack: c = "total" } = e, { barItemConfig: l, grid: u, legend: d, title: f, tooltip: p, xAxis: m, yAxis: h } = Ho(), g = typeof s == "string" ? s : s?.text ?? "", _ = R(() => {
|
|
5452
5467
|
let e = {
|
|
5453
5468
|
title: { text: "" },
|
|
5454
5469
|
grid: u,
|
|
@@ -5503,23 +5518,23 @@ var Vo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5503
5518
|
l,
|
|
5504
5519
|
c
|
|
5505
5520
|
]);
|
|
5506
|
-
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(
|
|
5521
|
+
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(Bo, {
|
|
5507
5522
|
height: r,
|
|
5508
5523
|
options: _,
|
|
5509
5524
|
width: i || "100%"
|
|
5510
|
-
}) : /* @__PURE__ */ H(
|
|
5525
|
+
}) : /* @__PURE__ */ H(Uo, {
|
|
5511
5526
|
height: r,
|
|
5512
5527
|
title: g
|
|
5513
5528
|
}) });
|
|
5514
|
-
},
|
|
5515
|
-
let { gaugeItemConfig: t, title: n, chartColorMap: r } =
|
|
5516
|
-
return !i && i !== 0 ? /* @__PURE__ */ H(
|
|
5529
|
+
}, Go = (e) => e <= 50 || e === void 0 ? "rgb(84, 204, 152, 80%)" : e <= 80 ? "rgba(250, 173, 20, 80%)" : "rgba(255, 77, 79, 80%)", Ko = (e) => {
|
|
5530
|
+
let { gaugeItemConfig: t, title: n, chartColorMap: r } = Ho(), { value: i, height: a, width: o, labelFormatter: s, title: c, color: l, gaugeConfig: u } = e, d = typeof c == "string" ? c : c?.text;
|
|
5531
|
+
return !i && i !== 0 ? /* @__PURE__ */ H(Uo, {
|
|
5517
5532
|
height: a,
|
|
5518
5533
|
title: d
|
|
5519
|
-
}) : /* @__PURE__ */ H(
|
|
5534
|
+
}) : /* @__PURE__ */ H(Bo, {
|
|
5520
5535
|
height: a,
|
|
5521
5536
|
options: (() => {
|
|
5522
|
-
let e = l ||
|
|
5537
|
+
let e = l || Go(i), a = {
|
|
5523
5538
|
...t,
|
|
5524
5539
|
...u
|
|
5525
5540
|
};
|
|
@@ -5560,8 +5575,8 @@ var Vo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5560
5575
|
})(),
|
|
5561
5576
|
width: o || "100%"
|
|
5562
5577
|
});
|
|
5563
|
-
},
|
|
5564
|
-
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, maxItems: s, barWidth: c = 20, title: l } = e, { token: u, grid: d, legend: f, title: p, tooltip: m, xAxis: h, yAxis: g } =
|
|
5578
|
+
}, qo = (e) => {
|
|
5579
|
+
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, maxItems: s, barWidth: c = 20, title: l } = e, { token: u, grid: d, legend: f, title: p, tooltip: m, xAxis: h, yAxis: g } = Ho(), _ = typeof l == "string" ? l : l?.text ?? "", v = R(() => {
|
|
5565
5580
|
let e = {
|
|
5566
5581
|
title: {
|
|
5567
5582
|
...p,
|
|
@@ -5661,17 +5676,17 @@ var Vo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5661
5676
|
c,
|
|
5662
5677
|
s
|
|
5663
5678
|
]);
|
|
5664
|
-
return /* @__PURE__ */ H(V, { children: R(() => t?.every?.((e) => !e?.data?.length), [t]) ? /* @__PURE__ */ H(
|
|
5679
|
+
return /* @__PURE__ */ H(V, { children: R(() => t?.every?.((e) => !e?.data?.length), [t]) ? /* @__PURE__ */ H(Uo, {
|
|
5665
5680
|
height: r,
|
|
5666
5681
|
title: _
|
|
5667
|
-
}) : /* @__PURE__ */ H(
|
|
5682
|
+
}) : /* @__PURE__ */ H(Bo, {
|
|
5668
5683
|
height: r,
|
|
5669
5684
|
chartHeight: typeof r == "number" ? r - 10 : void 0,
|
|
5670
5685
|
options: v,
|
|
5671
5686
|
width: i || "100%"
|
|
5672
5687
|
}) });
|
|
5673
|
-
},
|
|
5674
|
-
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, legendOptions: d, gridOptions: f, titleOptions: p, showArea: m } = e, { grid: h, legend: g, lineItemConfig: v, title: y, tooltip: b, xAxis: x, yAxis: S } =
|
|
5688
|
+
}, Jo = zo.graphic.LinearGradient, Yo = (e) => {
|
|
5689
|
+
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, legendOptions: d, gridOptions: f, titleOptions: p, showArea: m } = e, { grid: h, legend: g, lineItemConfig: v, title: y, tooltip: b, xAxis: x, yAxis: S } = Ho(), C = typeof u == "string" ? u : u?.text ?? "", w = (e, t) => o ? o(e, t) : t === n.length - 1 ? "" : e, T = {
|
|
5675
5690
|
title: { text: "" },
|
|
5676
5691
|
grid: {
|
|
5677
5692
|
...h,
|
|
@@ -5719,7 +5734,7 @@ var Vo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5719
5734
|
...v.lineStyle,
|
|
5720
5735
|
color: e.color
|
|
5721
5736
|
},
|
|
5722
|
-
areaStyle: m ? { color: new
|
|
5737
|
+
areaStyle: m ? { color: new Jo(0, 0, 0, 1, [{
|
|
5723
5738
|
offset: 0,
|
|
5724
5739
|
color: t[0]
|
|
5725
5740
|
}, {
|
|
@@ -5760,20 +5775,20 @@ var Vo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5760
5775
|
c,
|
|
5761
5776
|
T
|
|
5762
5777
|
]);
|
|
5763
|
-
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(
|
|
5778
|
+
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(Bo, {
|
|
5764
5779
|
height: i,
|
|
5765
5780
|
options: E,
|
|
5766
5781
|
width: a || "100%"
|
|
5767
|
-
}) : /* @__PURE__ */ H(
|
|
5782
|
+
}) : /* @__PURE__ */ H(Uo, {
|
|
5768
5783
|
height: i,
|
|
5769
5784
|
title: C
|
|
5770
5785
|
}) });
|
|
5771
5786
|
};
|
|
5772
5787
|
//#endregion
|
|
5773
5788
|
//#region src/lib/components/echarts/mix-line-bar.tsx
|
|
5774
|
-
|
|
5775
|
-
var
|
|
5776
|
-
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, chartData: d } = e, { grid: f, legend: p, lineItemConfig: m, barItemConfig: h, title: g, tooltip: v, xAxis: y, yAxis: b } =
|
|
5789
|
+
zo.graphic.LinearGradient;
|
|
5790
|
+
var Xo = (e) => {
|
|
5791
|
+
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, chartData: d } = e, { grid: f, legend: p, lineItemConfig: m, barItemConfig: h, title: g, tooltip: v, xAxis: y, yAxis: b } = Ho(), x = typeof u == "string" ? u : u?.text ?? "", { line: S, bar: C } = d, w = {
|
|
5777
5792
|
title: { text: "" },
|
|
5778
5793
|
grid: {
|
|
5779
5794
|
...f,
|
|
@@ -5860,16 +5875,16 @@ var Jo = (e) => {
|
|
|
5860
5875
|
c,
|
|
5861
5876
|
w
|
|
5862
5877
|
]);
|
|
5863
|
-
return /* @__PURE__ */ H(V, { children: !S.length && !C.length ? /* @__PURE__ */ H(
|
|
5878
|
+
return /* @__PURE__ */ H(V, { children: !S.length && !C.length ? /* @__PURE__ */ H(Uo, {
|
|
5864
5879
|
height: i,
|
|
5865
5880
|
title: x
|
|
5866
|
-
}) : /* @__PURE__ */ H(
|
|
5881
|
+
}) : /* @__PURE__ */ H(Bo, {
|
|
5867
5882
|
height: i,
|
|
5868
5883
|
options: T,
|
|
5869
5884
|
width: a || "100%"
|
|
5870
5885
|
}) });
|
|
5871
|
-
},
|
|
5872
|
-
let { grid: t, title: n, isDark: r, chartColorMap: i } =
|
|
5886
|
+
}, Zo = (e) => {
|
|
5887
|
+
let { grid: t, title: n, isDark: r, chartColorMap: i } = Ho(), { seriesData: a, xAxisData: o, height: s, width: c, showEmpty: l, title: u, xMax: d = 1, yMax: f = 1 } = e, p = typeof u == "string" ? u : u?.text ?? "", m = z(null), h = R(() => {
|
|
5873
5888
|
let e = r ? {
|
|
5874
5889
|
split: i.splitLineColor,
|
|
5875
5890
|
axis: i.axislabelColor,
|
|
@@ -5999,16 +6014,16 @@ var Jo = (e) => {
|
|
|
5999
6014
|
h,
|
|
6000
6015
|
g
|
|
6001
6016
|
]);
|
|
6002
|
-
return /* @__PURE__ */ H(V, { children: !a.length && l ? /* @__PURE__ */ H(
|
|
6017
|
+
return /* @__PURE__ */ H(V, { children: !a.length && l ? /* @__PURE__ */ H(Uo, {
|
|
6003
6018
|
height: s,
|
|
6004
6019
|
title: p
|
|
6005
|
-
}) : /* @__PURE__ */ H(
|
|
6020
|
+
}) : /* @__PURE__ */ H(Bo, {
|
|
6006
6021
|
ref: m,
|
|
6007
6022
|
height: s,
|
|
6008
6023
|
options: v,
|
|
6009
6024
|
width: c || "100%"
|
|
6010
6025
|
}) });
|
|
6011
|
-
},
|
|
6026
|
+
}, Qo = Y.div`
|
|
6012
6027
|
position: relative;
|
|
6013
6028
|
.cp-btn {
|
|
6014
6029
|
position: absolute;
|
|
@@ -6022,7 +6037,7 @@ var Jo = (e) => {
|
|
|
6022
6037
|
.msg {
|
|
6023
6038
|
display: none;
|
|
6024
6039
|
}
|
|
6025
|
-
`,
|
|
6040
|
+
`, $o = ({ errMsg: e }) => /* @__PURE__ */ U(Qo, { children: [/* @__PURE__ */ H(Nt.Text, {
|
|
6026
6041
|
className: "cp-btn",
|
|
6027
6042
|
copyable: {
|
|
6028
6043
|
text: e,
|
|
@@ -6035,14 +6050,14 @@ var Jo = (e) => {
|
|
|
6035
6050
|
className: "msg",
|
|
6036
6051
|
children: e
|
|
6037
6052
|
})
|
|
6038
|
-
}), e] }),
|
|
6053
|
+
}), e] }), es = {
|
|
6039
6054
|
wrapper: "style-module__wrapper___Iefxu",
|
|
6040
6055
|
show: "style-module__show___DHsIc",
|
|
6041
6056
|
container: "style-module__container___SWN9K",
|
|
6042
6057
|
title: "style-module__title___NIE5q",
|
|
6043
6058
|
"btn-wrapper": "style-module__btn-wrapper___e1BuB",
|
|
6044
6059
|
buttons: "style-module__buttons___8nshx"
|
|
6045
|
-
},
|
|
6060
|
+
}, ts = A(({ children: e, open: t, width: n = 300, contentHeight: r = 400, initialValues: i = {}, styles: a, onClose: s, onClear: c, onValuesChange: u }, d) => {
|
|
6046
6061
|
let f = o(), [p] = q.useForm(), m = () => {
|
|
6047
6062
|
p.resetFields(Object.keys(i)), p.resetFields(), u?.({}, p.getFieldsValue());
|
|
6048
6063
|
}, h = () => {
|
|
@@ -6056,7 +6071,7 @@ var Jo = (e) => {
|
|
|
6056
6071
|
getValues: () => p.getFieldsValue(),
|
|
6057
6072
|
setValues: (e) => p.setFieldsValue(e)
|
|
6058
6073
|
})), /* @__PURE__ */ H("div", {
|
|
6059
|
-
className: (0, X.default)(
|
|
6074
|
+
className: (0, X.default)(es.wrapper, { [es.show]: t }),
|
|
6060
6075
|
style: {
|
|
6061
6076
|
width: t ? n : 0,
|
|
6062
6077
|
height: r,
|
|
@@ -6067,9 +6082,9 @@ var Jo = (e) => {
|
|
|
6067
6082
|
width: n,
|
|
6068
6083
|
...a?.container
|
|
6069
6084
|
},
|
|
6070
|
-
className:
|
|
6085
|
+
className: es.container,
|
|
6071
6086
|
children: [/* @__PURE__ */ U("div", {
|
|
6072
|
-
className:
|
|
6087
|
+
className: es.title,
|
|
6073
6088
|
children: [/* @__PURE__ */ H("span", {
|
|
6074
6089
|
style: {
|
|
6075
6090
|
fontWeight: 500,
|
|
@@ -6105,7 +6120,7 @@ var Jo = (e) => {
|
|
|
6105
6120
|
})]
|
|
6106
6121
|
})
|
|
6107
6122
|
});
|
|
6108
|
-
}),
|
|
6123
|
+
}), ns = ({ onOk: e, onCancel: t, cancelText: n, okText: r, showCancel: i = !0, showOk: a = !0, htmlType: s = "button" }) => {
|
|
6109
6124
|
let c = o();
|
|
6110
6125
|
return /* @__PURE__ */ U(Et, {
|
|
6111
6126
|
size: 40,
|
|
@@ -6122,14 +6137,14 @@ var Jo = (e) => {
|
|
|
6122
6137
|
children: n || c.formatMessage({ id: "common.button.cancel" })
|
|
6123
6138
|
})]
|
|
6124
6139
|
});
|
|
6125
|
-
},
|
|
6140
|
+
}, rs = Y.div`
|
|
6126
6141
|
display: flex;
|
|
6127
6142
|
justify-content: space-between;
|
|
6128
6143
|
align-items: center;
|
|
6129
6144
|
gap: 20px;
|
|
6130
|
-
`,
|
|
6145
|
+
`, is = ({ onOk: e, onCancel: t, cancelText: n, okText: r, okBtnProps: i, cancelBtnProps: a, loading: s, htmlType: c = "button", style: l, showOkBtn: u = !0, styles: d, description: f, extra: p, showCancelBtn: m = !0, form: h }) => {
|
|
6131
6146
|
let g = o();
|
|
6132
|
-
return /* @__PURE__ */ U(
|
|
6147
|
+
return /* @__PURE__ */ U(rs, {
|
|
6133
6148
|
style: { ...d?.wrapper },
|
|
6134
6149
|
children: [/* @__PURE__ */ H("div", { children: f }), /* @__PURE__ */ U(Et, {
|
|
6135
6150
|
size: 20,
|
|
@@ -6157,22 +6172,22 @@ var Jo = (e) => {
|
|
|
6157
6172
|
};
|
|
6158
6173
|
//#endregion
|
|
6159
6174
|
//#region ../../node_modules/.pnpm/react-hotkeys-hook@4.6.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js
|
|
6160
|
-
function
|
|
6161
|
-
return
|
|
6175
|
+
function as() {
|
|
6176
|
+
return as = Object.assign ? Object.assign.bind() : function(e) {
|
|
6162
6177
|
for (var t = 1; t < arguments.length; t++) {
|
|
6163
6178
|
var n = arguments[t];
|
|
6164
6179
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
6165
6180
|
}
|
|
6166
6181
|
return e;
|
|
6167
|
-
},
|
|
6182
|
+
}, as.apply(null, arguments);
|
|
6168
6183
|
}
|
|
6169
|
-
var
|
|
6184
|
+
var os = [
|
|
6170
6185
|
"shift",
|
|
6171
6186
|
"alt",
|
|
6172
6187
|
"meta",
|
|
6173
6188
|
"mod",
|
|
6174
6189
|
"ctrl"
|
|
6175
|
-
],
|
|
6190
|
+
], ss = {
|
|
6176
6191
|
esc: "escape",
|
|
6177
6192
|
return: "enter",
|
|
6178
6193
|
".": "period",
|
|
@@ -6193,19 +6208,19 @@ var is = [
|
|
|
6193
6208
|
ControlLeft: "ctrl",
|
|
6194
6209
|
ControlRight: "ctrl"
|
|
6195
6210
|
};
|
|
6196
|
-
function
|
|
6197
|
-
return (e &&
|
|
6211
|
+
function cs(e) {
|
|
6212
|
+
return (e && ss[e] || e || "").trim().toLowerCase().replace(/key|digit|numpad|arrow/, "");
|
|
6198
6213
|
}
|
|
6199
|
-
function
|
|
6200
|
-
return
|
|
6214
|
+
function ls(e) {
|
|
6215
|
+
return os.includes(e);
|
|
6201
6216
|
}
|
|
6202
|
-
function
|
|
6217
|
+
function us(e, t) {
|
|
6203
6218
|
return t === void 0 && (t = ","), e.split(t);
|
|
6204
6219
|
}
|
|
6205
|
-
function
|
|
6220
|
+
function ds(e, t, n) {
|
|
6206
6221
|
t === void 0 && (t = "+");
|
|
6207
6222
|
var r = e.toLocaleLowerCase().split(t).map(function(e) {
|
|
6208
|
-
return
|
|
6223
|
+
return cs(e);
|
|
6209
6224
|
}), i = {
|
|
6210
6225
|
alt: r.includes("alt"),
|
|
6211
6226
|
ctrl: r.includes("ctrl") || r.includes("control"),
|
|
@@ -6213,9 +6228,9 @@ function ls(e, t, n) {
|
|
|
6213
6228
|
meta: r.includes("meta"),
|
|
6214
6229
|
mod: r.includes("mod")
|
|
6215
6230
|
}, a = r.filter(function(e) {
|
|
6216
|
-
return !
|
|
6231
|
+
return !os.includes(e);
|
|
6217
6232
|
});
|
|
6218
|
-
return
|
|
6233
|
+
return as({}, i, {
|
|
6219
6234
|
keys: a,
|
|
6220
6235
|
description: n,
|
|
6221
6236
|
hotkey: e
|
|
@@ -6223,66 +6238,66 @@ function ls(e, t, n) {
|
|
|
6223
6238
|
}
|
|
6224
6239
|
(function() {
|
|
6225
6240
|
typeof document < "u" && (document.addEventListener("keydown", function(e) {
|
|
6226
|
-
e.key !== void 0 &&
|
|
6241
|
+
e.key !== void 0 && hs([cs(e.key), cs(e.code)]);
|
|
6227
6242
|
}), document.addEventListener("keyup", function(e) {
|
|
6228
|
-
e.key !== void 0 &&
|
|
6243
|
+
e.key !== void 0 && gs([cs(e.key), cs(e.code)]);
|
|
6229
6244
|
})), typeof window < "u" && window.addEventListener("blur", function() {
|
|
6230
|
-
|
|
6245
|
+
fs.clear();
|
|
6231
6246
|
});
|
|
6232
6247
|
})();
|
|
6233
|
-
var
|
|
6234
|
-
function
|
|
6248
|
+
var fs = /* @__PURE__ */ new Set();
|
|
6249
|
+
function ps(e) {
|
|
6235
6250
|
return Array.isArray(e);
|
|
6236
6251
|
}
|
|
6237
|
-
function
|
|
6238
|
-
return t === void 0 && (t = ","), (
|
|
6239
|
-
return
|
|
6252
|
+
function ms(e, t) {
|
|
6253
|
+
return t === void 0 && (t = ","), (ps(e) ? e : e.split(t)).every(function(e) {
|
|
6254
|
+
return fs.has(e.trim().toLowerCase());
|
|
6240
6255
|
});
|
|
6241
6256
|
}
|
|
6242
|
-
function
|
|
6257
|
+
function hs(e) {
|
|
6243
6258
|
var t = Array.isArray(e) ? e : [e];
|
|
6244
|
-
|
|
6245
|
-
return !
|
|
6259
|
+
fs.has("meta") && fs.forEach(function(e) {
|
|
6260
|
+
return !ls(e) && fs.delete(e.toLowerCase());
|
|
6246
6261
|
}), t.forEach(function(e) {
|
|
6247
|
-
return
|
|
6262
|
+
return fs.add(e.toLowerCase());
|
|
6248
6263
|
});
|
|
6249
6264
|
}
|
|
6250
|
-
function
|
|
6251
|
-
e === "meta" ?
|
|
6252
|
-
return
|
|
6265
|
+
function gs(e) {
|
|
6266
|
+
e === "meta" ? fs.clear() : (Array.isArray(e) ? e : [e]).forEach(function(e) {
|
|
6267
|
+
return fs.delete(e.toLowerCase());
|
|
6253
6268
|
});
|
|
6254
6269
|
}
|
|
6255
|
-
function
|
|
6270
|
+
function _s(e, t, n) {
|
|
6256
6271
|
(typeof n == "function" && n(e, t) || n === !0) && e.preventDefault();
|
|
6257
6272
|
}
|
|
6258
|
-
function
|
|
6273
|
+
function vs(e, t, n) {
|
|
6259
6274
|
return typeof n == "function" ? n(e, t) : n === !0 || n === void 0;
|
|
6260
6275
|
}
|
|
6261
|
-
function
|
|
6262
|
-
return
|
|
6276
|
+
function ys(e) {
|
|
6277
|
+
return bs(e, [
|
|
6263
6278
|
"input",
|
|
6264
6279
|
"textarea",
|
|
6265
6280
|
"select"
|
|
6266
6281
|
]);
|
|
6267
6282
|
}
|
|
6268
|
-
function
|
|
6283
|
+
function bs(e, t) {
|
|
6269
6284
|
t === void 0 && (t = !1);
|
|
6270
6285
|
var n = e.target, r = e.composed, i = null;
|
|
6271
|
-
return i =
|
|
6286
|
+
return i = xs(n) && r ? e.composedPath()[0] && e.composedPath()[0].tagName : n && n.tagName, ps(t) ? !!(i && t && t.some(function(e) {
|
|
6272
6287
|
return e.toLowerCase() === i?.toLowerCase();
|
|
6273
6288
|
})) : !!(i && t && t);
|
|
6274
6289
|
}
|
|
6275
|
-
function
|
|
6290
|
+
function xs(e) {
|
|
6276
6291
|
return !!e.tagName && !e.tagName.startsWith("-") && e.tagName.includes("-");
|
|
6277
6292
|
}
|
|
6278
|
-
function
|
|
6293
|
+
function Ss(e, t) {
|
|
6279
6294
|
return e.length === 0 && t ? (console.warn("A hotkey has the \"scopes\" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>"), !0) : t ? e.some(function(e) {
|
|
6280
6295
|
return t.includes(e);
|
|
6281
6296
|
}) || e.includes("*") : !0;
|
|
6282
6297
|
}
|
|
6283
|
-
var
|
|
6298
|
+
var Cs = function(e, t, n) {
|
|
6284
6299
|
n === void 0 && (n = !1);
|
|
6285
|
-
var r = t.alt, i = t.meta, a = t.mod, o = t.shift, s = t.ctrl, c = t.keys, l = e.key, u = e.code, d = e.ctrlKey, f = e.metaKey, p = e.shiftKey, m = e.altKey, h =
|
|
6300
|
+
var r = t.alt, i = t.meta, a = t.mod, o = t.shift, s = t.ctrl, c = t.keys, l = e.key, u = e.code, d = e.ctrlKey, f = e.metaKey, p = e.shiftKey, m = e.altKey, h = cs(u), g = l.toLowerCase();
|
|
6286
6301
|
if (!(c != null && c.includes(h)) && !(c != null && c.includes(g)) && ![
|
|
6287
6302
|
"ctrl",
|
|
6288
6303
|
"control",
|
|
@@ -6298,53 +6313,53 @@ var xs = function(e, t, n) {
|
|
|
6298
6313
|
if (!f && !d) return !1;
|
|
6299
6314
|
} else if (i === !f && g !== "meta" && g !== "os" || s === !d && g !== "ctrl" && g !== "control") return !1;
|
|
6300
6315
|
}
|
|
6301
|
-
return c && c.length === 1 && (c.includes(g) || c.includes(h)) ? !0 : c ?
|
|
6302
|
-
},
|
|
6303
|
-
return P(
|
|
6316
|
+
return c && c.length === 1 && (c.includes(g) || c.includes(h)) ? !0 : c ? ms(c) : !c;
|
|
6317
|
+
}, ws = /* @__PURE__ */ O(void 0), Ts = function() {
|
|
6318
|
+
return P(ws);
|
|
6304
6319
|
};
|
|
6305
|
-
function
|
|
6320
|
+
function Es(e, t) {
|
|
6306
6321
|
return e && t && typeof e == "object" && typeof t == "object" ? Object.keys(e).length === Object.keys(t).length && Object.keys(e).reduce(function(n, r) {
|
|
6307
|
-
return n &&
|
|
6322
|
+
return n && Es(e[r], t[r]);
|
|
6308
6323
|
}, !0) : e === t;
|
|
6309
6324
|
}
|
|
6310
|
-
var
|
|
6325
|
+
var Ds = /* @__PURE__ */ O({
|
|
6311
6326
|
hotkeys: [],
|
|
6312
6327
|
enabledScopes: [],
|
|
6313
6328
|
toggleScope: function() {},
|
|
6314
6329
|
enableScope: function() {},
|
|
6315
6330
|
disableScope: function() {}
|
|
6316
|
-
}),
|
|
6317
|
-
return P(
|
|
6331
|
+
}), Os = function() {
|
|
6332
|
+
return P(Ds);
|
|
6318
6333
|
};
|
|
6319
|
-
function
|
|
6334
|
+
function ks(e) {
|
|
6320
6335
|
var t = z(void 0);
|
|
6321
|
-
return
|
|
6336
|
+
return Es(t.current, e) || (t.current = e), t.current;
|
|
6322
6337
|
}
|
|
6323
|
-
var
|
|
6338
|
+
var As = function(e) {
|
|
6324
6339
|
e.stopPropagation(), e.preventDefault(), e.stopImmediatePropagation();
|
|
6325
|
-
},
|
|
6326
|
-
function
|
|
6327
|
-
var i = B(null), a = i[0], o = i[1], s = z(!1), c = n instanceof Array ? r instanceof Array ? void 0 : r : n, l =
|
|
6340
|
+
}, js = typeof window < "u" ? L : F;
|
|
6341
|
+
function Ms(e, t, n, r) {
|
|
6342
|
+
var i = B(null), a = i[0], o = i[1], s = z(!1), c = n instanceof Array ? r instanceof Array ? void 0 : r : n, l = ps(e) ? e.join(c?.splitKey) : e, u = n instanceof Array ? n : r instanceof Array ? r : void 0, d = N(t, u ?? []), f = z(d);
|
|
6328
6343
|
u ? f.current = d : f.current = t;
|
|
6329
|
-
var p =
|
|
6330
|
-
return
|
|
6331
|
-
if (!(p?.enabled === !1 || !
|
|
6344
|
+
var p = ks(c), m = Os().enabledScopes, h = Ts();
|
|
6345
|
+
return js(function() {
|
|
6346
|
+
if (!(p?.enabled === !1 || !Ss(m, p?.scopes))) {
|
|
6332
6347
|
var e = function(e, t) {
|
|
6333
6348
|
var n;
|
|
6334
|
-
if (t === void 0 && (t = !1), !(
|
|
6349
|
+
if (t === void 0 && (t = !1), !(ys(e) && !bs(e, p?.enableOnFormTags))) {
|
|
6335
6350
|
if (a !== null) {
|
|
6336
6351
|
var r = a.getRootNode();
|
|
6337
6352
|
if ((r instanceof Document || r instanceof ShadowRoot) && r.activeElement !== a && !a.contains(r.activeElement)) {
|
|
6338
|
-
|
|
6353
|
+
As(e);
|
|
6339
6354
|
return;
|
|
6340
6355
|
}
|
|
6341
6356
|
}
|
|
6342
|
-
(n = e.target) != null && n.isContentEditable && !(p != null && p.enableOnContentEditable) ||
|
|
6343
|
-
var r, i =
|
|
6344
|
-
if (
|
|
6357
|
+
(n = e.target) != null && n.isContentEditable && !(p != null && p.enableOnContentEditable) || us(l, p?.splitKey).forEach(function(n) {
|
|
6358
|
+
var r, i = ds(n, p?.combinationKey);
|
|
6359
|
+
if (Cs(e, i, p?.ignoreModifiers) || (r = i.keys) != null && r.includes("*")) {
|
|
6345
6360
|
if (p != null && p.ignoreEventWhen != null && p.ignoreEventWhen(e) || t && s.current) return;
|
|
6346
|
-
if (
|
|
6347
|
-
|
|
6361
|
+
if (_s(e, i, p?.preventDefault), !vs(e, i, p?.enabled)) {
|
|
6362
|
+
As(e);
|
|
6348
6363
|
return;
|
|
6349
6364
|
}
|
|
6350
6365
|
f.current(e, i), t || (s.current = !0);
|
|
@@ -6352,15 +6367,15 @@ function As(e, t, n, r) {
|
|
|
6352
6367
|
});
|
|
6353
6368
|
}
|
|
6354
6369
|
}, t = function(t) {
|
|
6355
|
-
t.key !== void 0 && (
|
|
6370
|
+
t.key !== void 0 && (hs(cs(t.code)), (p?.keydown === void 0 && p?.keyup !== !0 || p != null && p.keydown) && e(t));
|
|
6356
6371
|
}, n = function(t) {
|
|
6357
|
-
t.key !== void 0 && (
|
|
6372
|
+
t.key !== void 0 && (gs(cs(t.code)), s.current = !1, p != null && p.keyup && e(t, !0));
|
|
6358
6373
|
}, r = a || c?.document || document;
|
|
6359
|
-
return r.addEventListener("keyup", n, c?.eventListenerOptions), r.addEventListener("keydown", t, c?.eventListenerOptions), h &&
|
|
6360
|
-
return h.addHotkey(
|
|
6374
|
+
return r.addEventListener("keyup", n, c?.eventListenerOptions), r.addEventListener("keydown", t, c?.eventListenerOptions), h && us(l, p?.splitKey).forEach(function(e) {
|
|
6375
|
+
return h.addHotkey(ds(e, p?.combinationKey, p?.description));
|
|
6361
6376
|
}), function() {
|
|
6362
|
-
r.removeEventListener("keyup", n, c?.eventListenerOptions), r.removeEventListener("keydown", t, c?.eventListenerOptions), h &&
|
|
6363
|
-
return h.removeHotkey(
|
|
6377
|
+
r.removeEventListener("keyup", n, c?.eventListenerOptions), r.removeEventListener("keydown", t, c?.eventListenerOptions), h && us(l, p?.splitKey).forEach(function(e) {
|
|
6378
|
+
return h.removeHotkey(ds(e, p?.combinationKey, p?.description));
|
|
6364
6379
|
});
|
|
6365
6380
|
};
|
|
6366
6381
|
}
|
|
@@ -6373,7 +6388,7 @@ function As(e, t, n, r) {
|
|
|
6373
6388
|
}
|
|
6374
6389
|
//#endregion
|
|
6375
6390
|
//#region src/lib/config/hotkeys.ts
|
|
6376
|
-
var
|
|
6391
|
+
var Ns = h(), Ps = {
|
|
6377
6392
|
CREATE: ["Alt+Ctrl+N", "Alt+Meta+N"],
|
|
6378
6393
|
CLEAR: ["Alt+Ctrl+K", "Alt+Meta+K"],
|
|
6379
6394
|
RIGHT: ["Ctrl+RIGHT", "Meta+RIGHT"],
|
|
@@ -6401,15 +6416,15 @@ var js = h(), Ms = {
|
|
|
6401
6416
|
FOCUS: ["/", "/"],
|
|
6402
6417
|
ADD: ["Alt+Ctrl+Enter", "Alt+Meta+Enter"],
|
|
6403
6418
|
ESC: ["Esc", "Esc"]
|
|
6404
|
-
},
|
|
6405
|
-
let n =
|
|
6419
|
+
}, Fs = Object.entries(Ps).map(([e, t]) => {
|
|
6420
|
+
let n = Ns.isMac && t[1] || t[0];
|
|
6406
6421
|
return {
|
|
6407
6422
|
keybinding: n,
|
|
6408
6423
|
command: e,
|
|
6409
|
-
textKeybinding:
|
|
6410
|
-
iconKeybinding:
|
|
6424
|
+
textKeybinding: Ns.isMac ? n.replace("Meta", "Cmd").replace("Alt", "Option") : n.replace("Ctrl", "Ctrl"),
|
|
6425
|
+
iconKeybinding: Ns.isMac ? n.replace("Meta", "⌘").replace("Alt", "⌥") : n.replace("Ctrl", "Ctrl")
|
|
6411
6426
|
};
|
|
6412
|
-
}).reduce((e, t) => (e[t.command] = t, e), {}),
|
|
6427
|
+
}).reduce((e, t) => (e[t.command] = t, e), {}), Is = Rt(({ css: e, token: t }) => ({ hintOverlay: e`
|
|
6413
6428
|
position: fixed;
|
|
6414
6429
|
top: 50%;
|
|
6415
6430
|
left: 50%;
|
|
@@ -6437,8 +6452,8 @@ var js = h(), Ms = {
|
|
|
6437
6452
|
}
|
|
6438
6453
|
}
|
|
6439
6454
|
` }));
|
|
6440
|
-
function
|
|
6441
|
-
let { enabled: t = !0, message: n, throttleDelay: r = 3e3 } = e || {}, i = o(), { styles: a } =
|
|
6455
|
+
function Ls(e) {
|
|
6456
|
+
let { enabled: t = !0, message: n, throttleDelay: r = 3e3 } = e || {}, i = o(), { styles: a } = Is(), [s, c] = B(!1), l = z(null), u = z(!1), d = R(() => (0, Z.throttle)(() => {
|
|
6442
6457
|
u.current || (u.current = !0, c(!0), l.current && clearTimeout(l.current), l.current = setTimeout(() => {
|
|
6443
6458
|
c(!1), u.current = !1;
|
|
6444
6459
|
}, 2e3));
|
|
@@ -6446,7 +6461,7 @@ function Fs(e) {
|
|
|
6446
6461
|
leading: !0,
|
|
6447
6462
|
trailing: !1
|
|
6448
6463
|
}), [r]);
|
|
6449
|
-
return
|
|
6464
|
+
return Ms(Ps.ESC, () => {
|
|
6450
6465
|
t && d();
|
|
6451
6466
|
}, { enabled: t }), F(() => () => {
|
|
6452
6467
|
l.current && clearTimeout(l.current), d.cancel();
|
|
@@ -6457,8 +6472,8 @@ function Fs(e) {
|
|
|
6457
6472
|
}
|
|
6458
6473
|
//#endregion
|
|
6459
6474
|
//#region src/lib/components/scroller-modal/gs-drawer.tsx
|
|
6460
|
-
var
|
|
6461
|
-
let { title: t, closable: n = !0, mask: r, styles: i, ...a } = e, { EscHint: o } =
|
|
6475
|
+
var Rs = (e) => {
|
|
6476
|
+
let { title: t, closable: n = !0, mask: r, styles: i, ...a } = e, { EscHint: o } = Ls({ enabled: !e.keyboard && e.open }), s = (t) => {
|
|
6462
6477
|
e.onClose?.(t);
|
|
6463
6478
|
};
|
|
6464
6479
|
return /* @__PURE__ */ H(V, { children: /* @__PURE__ */ U(ut, {
|
|
@@ -6498,11 +6513,11 @@ var Is = (e) => {
|
|
|
6498
6513
|
}),
|
|
6499
6514
|
children: [a.children, o]
|
|
6500
6515
|
}) });
|
|
6501
|
-
},
|
|
6516
|
+
}, zs = {
|
|
6502
6517
|
padding: "16px 24px 8px",
|
|
6503
6518
|
display: "flex",
|
|
6504
6519
|
justifyContent: "flex-end"
|
|
6505
|
-
},
|
|
6520
|
+
}, Bs = ({ title: e, open: t, onCancel: n, onSubmit: r, children: i, width: a = 600, subTitle: o, footer: s, loading: c }) => /* @__PURE__ */ H(Rs, {
|
|
6506
6521
|
title: /* @__PURE__ */ U(V, { children: [e, o && /* @__PURE__ */ H(jt, {
|
|
6507
6522
|
variant: "outlined",
|
|
6508
6523
|
style: {
|
|
@@ -6523,17 +6538,17 @@ var Is = (e) => {
|
|
|
6523
6538
|
keyboard: !1,
|
|
6524
6539
|
styles: { wrapper: { width: a } },
|
|
6525
6540
|
footer: !1,
|
|
6526
|
-
children: /* @__PURE__ */ H(
|
|
6541
|
+
children: /* @__PURE__ */ H(Ma, {
|
|
6527
6542
|
styles: { container: { paddingBlock: 0 } },
|
|
6528
|
-
footer: s ?? /* @__PURE__ */ H(
|
|
6543
|
+
footer: s ?? /* @__PURE__ */ H(is, {
|
|
6529
6544
|
onOk: r,
|
|
6530
6545
|
onCancel: n,
|
|
6531
6546
|
loading: c,
|
|
6532
|
-
style:
|
|
6547
|
+
style: zs
|
|
6533
6548
|
}),
|
|
6534
6549
|
children: i
|
|
6535
6550
|
})
|
|
6536
|
-
}),
|
|
6551
|
+
}), Vs = (e) => {
|
|
6537
6552
|
let t = o(), { data: n, optionNode: r, notFoundContent: i } = e;
|
|
6538
6553
|
if (n.value === "__EMPTY__") return /* @__PURE__ */ H(ft, {
|
|
6539
6554
|
image: !1,
|
|
@@ -6555,7 +6570,7 @@ var Is = (e) => {
|
|
|
6555
6570
|
ghost: !0,
|
|
6556
6571
|
children: /* @__PURE__ */ H("span", { children: n.label })
|
|
6557
6572
|
});
|
|
6558
|
-
},
|
|
6573
|
+
}, Hs = (e) => {
|
|
6559
6574
|
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, alwaysFocus: u = !1, optionNode: d, notFoundContent: p, size: m = "middle", tagRender: h, displayRender: g, ..._ } = e, y = o(), [b, x] = B(!1), S = z(null), [C, w] = B(!1), T = "";
|
|
6560
6575
|
try {
|
|
6561
6576
|
if (l) {
|
|
@@ -6592,7 +6607,7 @@ var Is = (e) => {
|
|
|
6592
6607
|
filled: !0,
|
|
6593
6608
|
children: M(e)
|
|
6594
6609
|
});
|
|
6595
|
-
return /* @__PURE__ */ H(
|
|
6610
|
+
return /* @__PURE__ */ H(mo, { children: /* @__PURE__ */ H(po, {
|
|
6596
6611
|
className: (0, X.default)("seal-select-wrapper", { "seal-cascader-wrapper-small": m === "small" }),
|
|
6597
6612
|
classList: C ? "dropdown-visible" : "",
|
|
6598
6613
|
status: T,
|
|
@@ -6607,7 +6622,7 @@ var Is = (e) => {
|
|
|
6607
6622
|
placeholder: n,
|
|
6608
6623
|
className: m === "small" ? "seal-cascader-small" : "",
|
|
6609
6624
|
suffixIcon: /* @__PURE__ */ H(Q, { type: "icon-down" }),
|
|
6610
|
-
optionRender: (e) => /* @__PURE__ */ H(
|
|
6625
|
+
optionRender: (e) => /* @__PURE__ */ H(Vs, {
|
|
6611
6626
|
data: e,
|
|
6612
6627
|
notFoundContent: p,
|
|
6613
6628
|
optionNode: d
|
|
@@ -6623,7 +6638,7 @@ var Is = (e) => {
|
|
|
6623
6638
|
onOpenChange: j
|
|
6624
6639
|
})
|
|
6625
6640
|
}) });
|
|
6626
|
-
},
|
|
6641
|
+
}, Us = Y.div`
|
|
6627
6642
|
display: flex;
|
|
6628
6643
|
align-items: center;
|
|
6629
6644
|
justify-content: space-between;
|
|
@@ -6633,7 +6648,7 @@ var Is = (e) => {
|
|
|
6633
6648
|
.ant-checkbox-wrapper {
|
|
6634
6649
|
margin-top: 0 !important;
|
|
6635
6650
|
}
|
|
6636
|
-
`,
|
|
6651
|
+
`, Ws = (e) => {
|
|
6637
6652
|
let { label: t, checked: n, required: r, description: i, isInFormItems: a = !0, defaultChecked: o, checkStatus: s, ...c } = e, l = "";
|
|
6638
6653
|
try {
|
|
6639
6654
|
a && (l = q?.Item?.useStatus?.()?.status || "");
|
|
@@ -6643,15 +6658,15 @@ var Is = (e) => {
|
|
|
6643
6658
|
let u = (t) => {
|
|
6644
6659
|
e.onChange?.(t);
|
|
6645
6660
|
};
|
|
6646
|
-
return /* @__PURE__ */ H(
|
|
6661
|
+
return /* @__PURE__ */ H(po, {
|
|
6647
6662
|
required: r,
|
|
6648
6663
|
status: s || l,
|
|
6649
6664
|
className: "no-focus",
|
|
6650
|
-
children: /* @__PURE__ */ U(
|
|
6665
|
+
children: /* @__PURE__ */ U(Us, {
|
|
6651
6666
|
onClick: () => {
|
|
6652
6667
|
u({ target: { checked: !n } });
|
|
6653
6668
|
},
|
|
6654
|
-
children: [/* @__PURE__ */ H(
|
|
6669
|
+
children: [/* @__PURE__ */ H(Za, {
|
|
6655
6670
|
label: t,
|
|
6656
6671
|
description: i
|
|
6657
6672
|
}), /* @__PURE__ */ H(K, {
|
|
@@ -6667,7 +6682,7 @@ var Is = (e) => {
|
|
|
6667
6682
|
})]
|
|
6668
6683
|
})
|
|
6669
6684
|
});
|
|
6670
|
-
},
|
|
6685
|
+
}, Gs = ({ description: e, label: t, checked: n, onChange: r, ...i }) => /* @__PURE__ */ H(K, {
|
|
6671
6686
|
className: "p-l-6",
|
|
6672
6687
|
checked: n,
|
|
6673
6688
|
onChange: r,
|
|
@@ -6682,17 +6697,17 @@ var Is = (e) => {
|
|
|
6682
6697
|
style: { color: "var(--ant-color-text-tertiary)" }
|
|
6683
6698
|
})]
|
|
6684
6699
|
})
|
|
6685
|
-
}),
|
|
6700
|
+
}), Ks = E.memo((e) => {
|
|
6686
6701
|
let t = o(), { type: n, label: r, attrs: i, style: a, value: s, ...c } = e, l = N((n) => {
|
|
6687
6702
|
switch (n) {
|
|
6688
|
-
case "Checkbox": return /* @__PURE__ */ H(
|
|
6703
|
+
case "Checkbox": return /* @__PURE__ */ H(Za, {
|
|
6689
6704
|
required: e.required,
|
|
6690
6705
|
label: r.isLocalized ? t.formatMessage({ id: r.text }) : r.text
|
|
6691
6706
|
});
|
|
6692
6707
|
default: return null;
|
|
6693
6708
|
}
|
|
6694
6709
|
}, [t, n]), u = R(() => n === "Checkbox" ? { checked: s } : { value: s }, [n, s]);
|
|
6695
|
-
return E.createElement(
|
|
6710
|
+
return E.createElement(Mo[n], {
|
|
6696
6711
|
...c,
|
|
6697
6712
|
...i,
|
|
6698
6713
|
...u,
|
|
@@ -6702,11 +6717,11 @@ var Is = (e) => {
|
|
|
6702
6717
|
},
|
|
6703
6718
|
label: r.isLocalized ? t.formatMessage({ id: r.text }) : r.text
|
|
6704
6719
|
}, l(n));
|
|
6705
|
-
}),
|
|
6720
|
+
}), qs = Y.div`
|
|
6706
6721
|
display: flex;
|
|
6707
6722
|
align-items: center;
|
|
6708
6723
|
gap: 8px;
|
|
6709
|
-
`,
|
|
6724
|
+
`, Js = Y.div`
|
|
6710
6725
|
.ant-select-item {
|
|
6711
6726
|
padding-inline-start: 8px;
|
|
6712
6727
|
&:hover {
|
|
@@ -6720,7 +6735,7 @@ var Is = (e) => {
|
|
|
6720
6735
|
background-color: var(--ant-select-option-active-bg);
|
|
6721
6736
|
}
|
|
6722
6737
|
}
|
|
6723
|
-
`,
|
|
6738
|
+
`, Ys = Y.div`
|
|
6724
6739
|
margin-bottom: 10px;
|
|
6725
6740
|
padding: 5px 8px;
|
|
6726
6741
|
font-size: 12px;
|
|
@@ -6728,9 +6743,9 @@ var Is = (e) => {
|
|
|
6728
6743
|
.ant-checkbox-wrapper {
|
|
6729
6744
|
color: var(--ant-color-text-tertiary);
|
|
6730
6745
|
}
|
|
6731
|
-
`,
|
|
6746
|
+
`, Xs = Y(jt)`
|
|
6732
6747
|
border-radius: 12px;
|
|
6733
|
-
`,
|
|
6748
|
+
`, Zs = A((e, t) => {
|
|
6734
6749
|
let n = o(), { options: r = [], showTags: i, styles: a = {}, optionLabelRender: s, maxTagCount: c, ...l } = e, [u, d] = E.useState({
|
|
6735
6750
|
checked: !1,
|
|
6736
6751
|
indeterminate: !1
|
|
@@ -6740,7 +6755,7 @@ var Is = (e) => {
|
|
|
6740
6755
|
}, [r]);
|
|
6741
6756
|
let y = (e, t) => {
|
|
6742
6757
|
let { value: n, label: r } = e;
|
|
6743
|
-
return /* @__PURE__ */ U(
|
|
6758
|
+
return /* @__PURE__ */ U(qs, { children: [l.value?.includes?.(n) ? /* @__PURE__ */ H(K, { checked: !0 }) : /* @__PURE__ */ H(K, {}), /* @__PURE__ */ H(f, {
|
|
6744
6759
|
ghost: !0,
|
|
6745
6760
|
children: s ? s(e) : r
|
|
6746
6761
|
})] });
|
|
@@ -6752,7 +6767,7 @@ var Is = (e) => {
|
|
|
6752
6767
|
});
|
|
6753
6768
|
let r = [...l.value || []];
|
|
6754
6769
|
r = t ? Array.from(new Set([...r, ...n])) : r.filter((e) => !n.includes(e)), l.onChange?.(r, p || []);
|
|
6755
|
-
}, x = (e) => /* @__PURE__ */ U(
|
|
6770
|
+
}, x = (e) => /* @__PURE__ */ U(Js, { children: [l.mode === "multiple" && /* @__PURE__ */ H(Ys, { children: /* @__PURE__ */ H(K, {
|
|
6756
6771
|
checked: u.checked,
|
|
6757
6772
|
indeterminate: u.indeterminate,
|
|
6758
6773
|
onChange: b,
|
|
@@ -6778,7 +6793,7 @@ var Is = (e) => {
|
|
|
6778
6793
|
});
|
|
6779
6794
|
}, T = (e) => {
|
|
6780
6795
|
let { label: t } = e, r = e.isMaxTag ? t.slice(0, -3).slice(1) : t;
|
|
6781
|
-
return /* @__PURE__ */ H(
|
|
6796
|
+
return /* @__PURE__ */ H(Xs, {
|
|
6782
6797
|
variant: "filled",
|
|
6783
6798
|
closable: e.closable,
|
|
6784
6799
|
onClose: e.onClose,
|
|
@@ -6825,7 +6840,7 @@ var Is = (e) => {
|
|
|
6825
6840
|
flex: 1,
|
|
6826
6841
|
...a.wrapper
|
|
6827
6842
|
},
|
|
6828
|
-
children: /* @__PURE__ */ H(
|
|
6843
|
+
children: /* @__PURE__ */ H(To, {
|
|
6829
6844
|
...l,
|
|
6830
6845
|
style: {
|
|
6831
6846
|
width: l.style?.width || "100%",
|
|
@@ -6852,7 +6867,7 @@ var Is = (e) => {
|
|
|
6852
6867
|
children: e.children
|
|
6853
6868
|
})
|
|
6854
6869
|
});
|
|
6855
|
-
}),
|
|
6870
|
+
}), Qs = (e) => {
|
|
6856
6871
|
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, notFoundContent: u = null, ...d } = e, f = o(), [p, m] = B(!1), h = z(null), g = "";
|
|
6857
6872
|
try {
|
|
6858
6873
|
g = l ? q?.Item?.useStatus?.()?.status || "" : e.status || "";
|
|
@@ -6872,7 +6887,7 @@ var Is = (e) => {
|
|
|
6872
6887
|
}, S = (t) => {
|
|
6873
6888
|
c && e.value === null ? m(!0) : e.value || m(!1), e.onBlur?.(t);
|
|
6874
6889
|
};
|
|
6875
|
-
return /* @__PURE__ */ H(
|
|
6890
|
+
return /* @__PURE__ */ H(mo, { children: /* @__PURE__ */ H(po, {
|
|
6876
6891
|
className: "seal-select-wrapper",
|
|
6877
6892
|
status: g,
|
|
6878
6893
|
label: t,
|
|
@@ -6881,7 +6896,7 @@ var Is = (e) => {
|
|
|
6881
6896
|
description: a,
|
|
6882
6897
|
disabled: e.disabled,
|
|
6883
6898
|
onClick: y,
|
|
6884
|
-
children: /* @__PURE__ */ H(
|
|
6899
|
+
children: /* @__PURE__ */ H(Zs, {
|
|
6885
6900
|
...d,
|
|
6886
6901
|
ref: h,
|
|
6887
6902
|
options: r ? void 0 : _,
|
|
@@ -6892,7 +6907,7 @@ var Is = (e) => {
|
|
|
6892
6907
|
children: r
|
|
6893
6908
|
})
|
|
6894
6909
|
}) });
|
|
6895
|
-
},
|
|
6910
|
+
}, $s = Y(G)`
|
|
6896
6911
|
background-color: transparent !important;
|
|
6897
6912
|
padding: 0;
|
|
6898
6913
|
.anticon {
|
|
@@ -6905,13 +6920,13 @@ var Is = (e) => {
|
|
|
6905
6920
|
color: var(--ant-color-text-tertiary);
|
|
6906
6921
|
}
|
|
6907
6922
|
}
|
|
6908
|
-
`,
|
|
6923
|
+
`, ec = ({ onClick: e }) => /* @__PURE__ */ H($s, {
|
|
6909
6924
|
icon: /* @__PURE__ */ H(oe, {}),
|
|
6910
6925
|
shape: "circle",
|
|
6911
6926
|
type: "text",
|
|
6912
6927
|
onClick: e,
|
|
6913
6928
|
size: "small"
|
|
6914
|
-
}),
|
|
6929
|
+
}), tc = ({ layout: e = {
|
|
6915
6930
|
rows: 1,
|
|
6916
6931
|
cols: 1
|
|
6917
6932
|
}, column: t = 2, dataList: n, editable: r, responseable: i, gutter: a, onDelete: o, onClick: s, autoBgColor: c, autoSize: l, style: u }) => {
|
|
@@ -7036,7 +7051,7 @@ var Is = (e) => {
|
|
|
7036
7051
|
onClick: () => f(e)
|
|
7037
7052
|
})) })
|
|
7038
7053
|
}) : null });
|
|
7039
|
-
},
|
|
7054
|
+
}, nc = (e) => {
|
|
7040
7055
|
let { data: t, onDeleteImage: n, onUploadImage: r, onChange: i, onSelect: a, onDelete: s, style: c, label: l, placeholder: u, height: d = 46 } = e, f = o(), p = E.useRef(null), [m, h] = B({
|
|
7041
7056
|
minRows: 1,
|
|
7042
7057
|
maxRows: 1,
|
|
@@ -7141,7 +7156,7 @@ var Is = (e) => {
|
|
|
7141
7156
|
children: [l && /* @__PURE__ */ H("span", {
|
|
7142
7157
|
className: "title",
|
|
7143
7158
|
children: l
|
|
7144
|
-
}), /* @__PURE__ */ H(
|
|
7159
|
+
}), /* @__PURE__ */ H(tc, {
|
|
7145
7160
|
editable: !0,
|
|
7146
7161
|
dataList: t.imgs,
|
|
7147
7162
|
onDelete: D
|
|
@@ -7154,7 +7169,7 @@ var Is = (e) => {
|
|
|
7154
7169
|
children: [x, /* @__PURE__ */ U("div", {
|
|
7155
7170
|
className: "actions",
|
|
7156
7171
|
children: [
|
|
7157
|
-
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H(
|
|
7172
|
+
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H(ec, { onClick: T }),
|
|
7158
7173
|
S,
|
|
7159
7174
|
/* @__PURE__ */ H(J, {
|
|
7160
7175
|
title: f.formatMessage({ id: "common.button.delete" }),
|
|
@@ -7172,7 +7187,7 @@ var Is = (e) => {
|
|
|
7172
7187
|
]
|
|
7173
7188
|
})
|
|
7174
7189
|
});
|
|
7175
|
-
},
|
|
7190
|
+
}, rc = Y.div`
|
|
7176
7191
|
display: flex;
|
|
7177
7192
|
flex-direction: column;
|
|
7178
7193
|
justify-content: center;
|
|
@@ -7181,15 +7196,15 @@ var Is = (e) => {
|
|
|
7181
7196
|
border-radius: var(--ant-border-radius);
|
|
7182
7197
|
padding: 12px 14px;
|
|
7183
7198
|
min-height: 54px;
|
|
7184
|
-
`,
|
|
7199
|
+
`, ic = Y.div`
|
|
7185
7200
|
display: flex;
|
|
7186
7201
|
justify-content: space-between;
|
|
7187
7202
|
align-items: center;
|
|
7188
|
-
`,
|
|
7203
|
+
`, ac = (e) => {
|
|
7189
7204
|
let { label: t, description: n, checked: r, defaultChecked: i, onChange: a, children: o, style: s, alwaysShowChildren: c = !0, size: l, btnTips: u } = e, [d, f] = B(i || !1);
|
|
7190
|
-
return /* @__PURE__ */ U(
|
|
7205
|
+
return /* @__PURE__ */ U(rc, {
|
|
7191
7206
|
style: s,
|
|
7192
|
-
children: [/* @__PURE__ */ U(
|
|
7207
|
+
children: [/* @__PURE__ */ U(ic, { children: [/* @__PURE__ */ H(Za, {
|
|
7193
7208
|
label: t,
|
|
7194
7209
|
description: n
|
|
7195
7210
|
}), /* @__PURE__ */ H(J, {
|
|
@@ -7203,7 +7218,7 @@ var Is = (e) => {
|
|
|
7203
7218
|
})
|
|
7204
7219
|
})] }), (c || d) && o]
|
|
7205
7220
|
});
|
|
7206
|
-
},
|
|
7221
|
+
}, oc = ({ style: e }) => /* @__PURE__ */ U("svg", {
|
|
7207
7222
|
width: "23",
|
|
7208
7223
|
height: "23",
|
|
7209
7224
|
viewBox: "0 0 23 23",
|
|
@@ -7225,7 +7240,7 @@ var Is = (e) => {
|
|
|
7225
7240
|
stopColor: "#f05a28"
|
|
7226
7241
|
})]
|
|
7227
7242
|
}) })]
|
|
7228
|
-
}),
|
|
7243
|
+
}), sc = {
|
|
7229
7244
|
EditOutlined: E.createElement(he),
|
|
7230
7245
|
ExperimentOutlined: E.createElement(ve),
|
|
7231
7246
|
DeleteOutlined: E.createElement(ue),
|
|
@@ -7273,8 +7288,8 @@ var Is = (e) => {
|
|
|
7273
7288
|
Disabled: E.createElement(Q, { type: "icon-disabled" }),
|
|
7274
7289
|
CopyOutlined: E.createElement(le),
|
|
7275
7290
|
Metrics: E.createElement(Q, { type: "icon-metrics" })
|
|
7276
|
-
},
|
|
7277
|
-
function
|
|
7291
|
+
}, cc = "rgba(0, 0, 255, 0.3)";
|
|
7292
|
+
function lc(e) {
|
|
7278
7293
|
let { isDisabled: t, invertMask: n, maskUpload: r, lineWidth: i, translatePos: a, onSave: o } = e, s = z(!1), c = z(null), l = z(null), u = z(null), d = z([]), f = z([]), p = z(!1), m = z(null), h = z(1), g = z(1), _ = z({
|
|
7279
7294
|
x: 0,
|
|
7280
7295
|
y: 0
|
|
@@ -7346,7 +7361,7 @@ function sc(e) {
|
|
|
7346
7361
|
lineWidth: i
|
|
7347
7362
|
}, {
|
|
7348
7363
|
lineWidth: i,
|
|
7349
|
-
color:
|
|
7364
|
+
color: cc,
|
|
7350
7365
|
compositeOperation: "destination-out"
|
|
7351
7366
|
}), P(o, {
|
|
7352
7367
|
x: r,
|
|
@@ -7354,7 +7369,7 @@ function sc(e) {
|
|
|
7354
7369
|
lineWidth: i
|
|
7355
7370
|
}, {
|
|
7356
7371
|
lineWidth: i,
|
|
7357
|
-
color:
|
|
7372
|
+
color: cc,
|
|
7358
7373
|
compositeOperation: "source-over"
|
|
7359
7374
|
}), o.restore();
|
|
7360
7375
|
}, L = (e) => {
|
|
@@ -7442,7 +7457,7 @@ function sc(e) {
|
|
|
7442
7457
|
}
|
|
7443
7458
|
//#endregion
|
|
7444
7459
|
//#region src/lib/components/image-editor/hooks/use-zoom.ts
|
|
7445
|
-
function
|
|
7460
|
+
function uc(e) {
|
|
7446
7461
|
let t = .2, n = .1, { overlayCanvasRef: r, canvasRef: i, offscreenCanvasRef: a, cursorRef: o, lineWidth: s, translatePos: c, autoScale: l, baseScale: u, isLoadingMaskRef: d } = e, [f, p] = B(1), m = (e) => {
|
|
7447
7462
|
if (l.current <= t || l.current >= 8) return;
|
|
7448
7463
|
let n = r.current.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, c = o / n.width, u = s / n.height;
|
|
@@ -7478,16 +7493,16 @@ function cc(e) {
|
|
|
7478
7493
|
baseScale: u
|
|
7479
7494
|
};
|
|
7480
7495
|
}
|
|
7481
|
-
var
|
|
7496
|
+
var dc = {
|
|
7482
7497
|
"editor-wrapper": "index-module__editor-wrapper___-q6TM",
|
|
7483
7498
|
tools: "index-module__tools___Vs6ua",
|
|
7484
7499
|
"editor-content": "index-module__editor-content___YIk-U",
|
|
7485
7500
|
"overlay-canvas": "index-module__overlay-canvas___SaATc",
|
|
7486
7501
|
"overlay-canvas--disabled": "index-module__overlay-canvas--disabled___5TrsB"
|
|
7487
|
-
},
|
|
7502
|
+
}, fc = (e) => {
|
|
7488
7503
|
let { disabled: t, loading: n, lineWidth: r, invertMask: i, accept: a, handleBrushSizeChange: s, undo: c, onClear: l, handleFitView: u, handleUpdateImageList: d, handleUpdateMaskList: f } = e, p = o();
|
|
7489
7504
|
return /* @__PURE__ */ U("div", {
|
|
7490
|
-
className:
|
|
7505
|
+
className: dc.tools,
|
|
7491
7506
|
children: [
|
|
7492
7507
|
/* @__PURE__ */ H(J, {
|
|
7493
7508
|
placement: "bottomLeft",
|
|
@@ -7528,7 +7543,7 @@ var lc = {
|
|
|
7528
7543
|
/* @__PURE__ */ H(J, {
|
|
7529
7544
|
title: /* @__PURE__ */ U("span", { children: [
|
|
7530
7545
|
"[",
|
|
7531
|
-
|
|
7546
|
+
Fs.UNDO.textKeybinding,
|
|
7532
7547
|
"]",
|
|
7533
7548
|
/* @__PURE__ */ H("span", {
|
|
7534
7549
|
className: "m-l-5",
|
|
@@ -7579,7 +7594,7 @@ var lc = {
|
|
|
7579
7594
|
})
|
|
7580
7595
|
]
|
|
7581
7596
|
});
|
|
7582
|
-
},
|
|
7597
|
+
}, pc = (e) => {
|
|
7583
7598
|
let t = o(), { disabled: n, isOriginal: r, invertMask: i, handleOnChangeMask: a, downloadMask: s, download: c } = e;
|
|
7584
7599
|
return /* @__PURE__ */ U("div", {
|
|
7585
7600
|
className: "tools",
|
|
@@ -7619,7 +7634,7 @@ var lc = {
|
|
|
7619
7634
|
})
|
|
7620
7635
|
})]
|
|
7621
7636
|
});
|
|
7622
|
-
},
|
|
7637
|
+
}, mc = Y.div`
|
|
7623
7638
|
position: absolute;
|
|
7624
7639
|
top: 0;
|
|
7625
7640
|
bottom: 0;
|
|
@@ -7629,9 +7644,9 @@ var lc = {
|
|
|
7629
7644
|
height: 100%;
|
|
7630
7645
|
width: ${(e) => `${e.width ? `${e.width}px` : "100%"}`};
|
|
7631
7646
|
z-index: 100;
|
|
7632
|
-
`,
|
|
7647
|
+
`, hc = (e) => {
|
|
7633
7648
|
let { width: t, height: n } = e;
|
|
7634
|
-
return /* @__PURE__ */ H(
|
|
7649
|
+
return /* @__PURE__ */ H(mc, {
|
|
7635
7650
|
width: t,
|
|
7636
7651
|
height: n,
|
|
7637
7652
|
children: /* @__PURE__ */ H(Dt, {
|
|
@@ -7639,7 +7654,7 @@ var lc = {
|
|
|
7639
7654
|
size: "middle"
|
|
7640
7655
|
})
|
|
7641
7656
|
});
|
|
7642
|
-
},
|
|
7657
|
+
}, gc = "rgba(0, 0, 255, 0.3)", _c = A(({ loading: e, imageSrc: t, disabled: n, imageStatus: r, maskUpload: i, accept: a, onSave: o, onScaleImageSize: s, handleUpdateImageList: c, handleUpdateMaskList: l }, u) => {
|
|
7643
7658
|
let d = z(null), f = z(null), p = z(null), [m, h] = B(60), g = z({
|
|
7644
7659
|
x: 0,
|
|
7645
7660
|
y: 0
|
|
@@ -7647,14 +7662,14 @@ var lc = {
|
|
|
7647
7662
|
width: 0,
|
|
7648
7663
|
height: 0,
|
|
7649
7664
|
loading: !1
|
|
7650
|
-
}), { canvasRef: C, overlayCanvasRef: w, offscreenCanvasRef: T, cursorRef: E, strokesRef: D, currentStroke: O, mouseDownState: k, autoScale: A, baseScale: j, maskStorkeRef: M, isLoadingMaskRef: P, setMaskStrokes: L, draw: ee, drawStroke: V, startDrawing: W, endDrawing: te, handleMouseMove: ne, handleMouseLeave: re, handleMouseEnter: ie, saveImage: ae, resetCanvas: oe, creatOffscreenCanvas: se, generateMask: ce, getTransformLineWidth: le, getTransformedPoint: ue, setStrokes: de, setTransform: fe, clearOverlayCanvas: pe, clearCanvas: me, fitView: he, handleMouseDown: ge, handleMouseUp: _e } =
|
|
7665
|
+
}), { canvasRef: C, overlayCanvasRef: w, offscreenCanvasRef: T, cursorRef: E, strokesRef: D, currentStroke: O, mouseDownState: k, autoScale: A, baseScale: j, maskStorkeRef: M, isLoadingMaskRef: P, setMaskStrokes: L, draw: ee, drawStroke: V, startDrawing: W, endDrawing: te, handleMouseMove: ne, handleMouseLeave: re, handleMouseEnter: ie, saveImage: ae, resetCanvas: oe, creatOffscreenCanvas: se, generateMask: ce, getTransformLineWidth: le, getTransformedPoint: ue, setStrokes: de, setTransform: fe, clearOverlayCanvas: pe, clearCanvas: me, fitView: he, handleMouseDown: ge, handleMouseUp: _e } = lc({
|
|
7651
7666
|
lineWidth: m,
|
|
7652
7667
|
translatePos: g,
|
|
7653
7668
|
isDisabled: n,
|
|
7654
7669
|
invertMask: v,
|
|
7655
7670
|
maskUpload: i,
|
|
7656
7671
|
onSave: o
|
|
7657
|
-
}), { handleOnWheel: ve, setActiveScale: ye, activeScale: be } =
|
|
7672
|
+
}), { handleOnWheel: ve, setActiveScale: ye, activeScale: be } = uc({
|
|
7658
7673
|
overlayCanvasRef: w,
|
|
7659
7674
|
canvasRef: C,
|
|
7660
7675
|
offscreenCanvasRef: T,
|
|
@@ -7673,7 +7688,7 @@ var lc = {
|
|
|
7673
7688
|
t.width = e.width, t.height = e.height, n.width = e.width, n.height = e.height;
|
|
7674
7689
|
}, []), Ce = N(() => {
|
|
7675
7690
|
let e = ce(), t = document.createElement("a");
|
|
7676
|
-
t.download = `mask_${(0,
|
|
7691
|
+
t.download = `mask_${(0, ia.default)().format("YYYYMMDDHHmmss")}.png`, t.href = e || "", t.click();
|
|
7677
7692
|
}, [ce]), we = N(() => {
|
|
7678
7693
|
pe(), de([]), L([]), ae(), O.current = [], console.log("Resetting strokes", O.current);
|
|
7679
7694
|
}, []), Te = (e, t) => {
|
|
@@ -7715,14 +7730,14 @@ var lc = {
|
|
|
7715
7730
|
}, 100);
|
|
7716
7731
|
}, []), Oe = () => {
|
|
7717
7732
|
let e = C.current, t = document.createElement("a");
|
|
7718
|
-
t.download = `image_${(0,
|
|
7733
|
+
t.download = `image_${(0, ia.default)().format("YYYYMMDDHHmmss")}.png`, t.href = e.toDataURL("image/png"), t.click(), t.remove();
|
|
7719
7734
|
}, ke = () => {
|
|
7720
7735
|
if (!t) return;
|
|
7721
7736
|
let e = new Image();
|
|
7722
7737
|
e.src = t, e.onload = () => {
|
|
7723
7738
|
let t = document.createElement("canvas");
|
|
7724
7739
|
t.width = r.width, t.height = r.height, t.getContext("2d").drawImage(e, 0, 0, t.width, t.height);
|
|
7725
|
-
let n = t.toDataURL("image/png"), i = `${t.width}x${t.height}_${(0,
|
|
7740
|
+
let n = t.toDataURL("image/png"), i = `${t.width}x${t.height}_${(0, ia.default)().format("YYYYMMDDHHmmss")}.png`, a = document.createElement("a");
|
|
7726
7741
|
a.href = n, a.download = i, document.body.appendChild(a), a.click(), a.remove();
|
|
7727
7742
|
};
|
|
7728
7743
|
}, Ae = () => {
|
|
@@ -7813,10 +7828,10 @@ var lc = {
|
|
|
7813
7828
|
}, [i]), F(() => {
|
|
7814
7829
|
xe && E.current && (E.current.style.display = "none");
|
|
7815
7830
|
}, [xe]), /* @__PURE__ */ U("div", {
|
|
7816
|
-
className:
|
|
7831
|
+
className: dc["editor-wrapper"],
|
|
7817
7832
|
children: [/* @__PURE__ */ U("div", {
|
|
7818
7833
|
className: "flex-between",
|
|
7819
|
-
children: [/* @__PURE__ */ H(
|
|
7834
|
+
children: [/* @__PURE__ */ H(fc, {
|
|
7820
7835
|
handleBrushSizeChange: Ie,
|
|
7821
7836
|
undo: De,
|
|
7822
7837
|
onClear: we,
|
|
@@ -7828,7 +7843,7 @@ var lc = {
|
|
|
7828
7843
|
invertMask: v,
|
|
7829
7844
|
loading: e,
|
|
7830
7845
|
accept: a
|
|
7831
|
-
}), /* @__PURE__ */ H(
|
|
7846
|
+
}), /* @__PURE__ */ H(pc, {
|
|
7832
7847
|
handleOnChangeMask: Le,
|
|
7833
7848
|
invertMask: v,
|
|
7834
7849
|
downloadMask: Ce,
|
|
@@ -7838,7 +7853,7 @@ var lc = {
|
|
|
7838
7853
|
maskUpload: i
|
|
7839
7854
|
})]
|
|
7840
7855
|
}), /* @__PURE__ */ U("div", {
|
|
7841
|
-
className:
|
|
7856
|
+
className: dc["editor-content"],
|
|
7842
7857
|
ref: p,
|
|
7843
7858
|
style: {
|
|
7844
7859
|
position: "relative",
|
|
@@ -7847,7 +7862,7 @@ var lc = {
|
|
|
7847
7862
|
flex: 1
|
|
7848
7863
|
},
|
|
7849
7864
|
children: [
|
|
7850
|
-
x.loading && /* @__PURE__ */ H(
|
|
7865
|
+
x.loading && /* @__PURE__ */ H(hc, {
|
|
7851
7866
|
width: x.width,
|
|
7852
7867
|
height: x.height
|
|
7853
7868
|
}),
|
|
@@ -7860,7 +7875,7 @@ var lc = {
|
|
|
7860
7875
|
}),
|
|
7861
7876
|
/* @__PURE__ */ H("canvas", {
|
|
7862
7877
|
ref: w,
|
|
7863
|
-
className: (0, X.default)(
|
|
7878
|
+
className: (0, X.default)(dc["overlay-canvas"], { [dc["overlay-canvas--disabled"]]: xe }),
|
|
7864
7879
|
style: {
|
|
7865
7880
|
position: "absolute",
|
|
7866
7881
|
zIndex: 10,
|
|
@@ -7888,7 +7903,7 @@ var lc = {
|
|
|
7888
7903
|
position: "fixed",
|
|
7889
7904
|
width: m * be,
|
|
7890
7905
|
height: m * be,
|
|
7891
|
-
backgroundColor:
|
|
7906
|
+
backgroundColor: gc,
|
|
7892
7907
|
borderRadius: "50%",
|
|
7893
7908
|
pointerEvents: "none",
|
|
7894
7909
|
cursor: "none",
|
|
@@ -7898,21 +7913,21 @@ var lc = {
|
|
|
7898
7913
|
]
|
|
7899
7914
|
})]
|
|
7900
7915
|
});
|
|
7901
|
-
}),
|
|
7916
|
+
}), vc = E.memo(_c);
|
|
7902
7917
|
//#endregion
|
|
7903
7918
|
//#region src/lib/components/image-editor/extract-image-colors.ts
|
|
7904
|
-
function
|
|
7919
|
+
function yc(e, t) {
|
|
7905
7920
|
let n = document.createElement("canvas");
|
|
7906
7921
|
return n.width = e, n.height = t, {
|
|
7907
7922
|
canvas: n,
|
|
7908
7923
|
ctx: n.getContext("2d")
|
|
7909
7924
|
};
|
|
7910
7925
|
}
|
|
7911
|
-
function
|
|
7926
|
+
function bc(e, t, n, r) {
|
|
7912
7927
|
let i = (n * r + t) * 4;
|
|
7913
7928
|
return e[i] === 255 && e[i + 1] === 255 && e[i + 2] === 255;
|
|
7914
7929
|
}
|
|
7915
|
-
function
|
|
7930
|
+
function xc(e, t, n, r, i, a, o) {
|
|
7916
7931
|
let s = [[r, i]], c = [
|
|
7917
7932
|
[1, 0],
|
|
7918
7933
|
[-1, 0],
|
|
@@ -7925,43 +7940,43 @@ function yc(e, t, n, r, i, a, o) {
|
|
|
7925
7940
|
];
|
|
7926
7941
|
for (; s.length;) {
|
|
7927
7942
|
let [r, i] = s.pop();
|
|
7928
|
-
r < 0 || i < 0 || r >= t || i >= n || a[i][r] || !
|
|
7943
|
+
r < 0 || i < 0 || r >= t || i >= n || a[i][r] || !bc(e, r, i, t) || (a[i][r] = !0, o.push({
|
|
7929
7944
|
x: r,
|
|
7930
7945
|
y: i
|
|
7931
7946
|
}), c.forEach(([e, t]) => s.push([r + e, i + t])));
|
|
7932
7947
|
}
|
|
7933
7948
|
}
|
|
7934
|
-
function
|
|
7949
|
+
function Sc(e) {
|
|
7935
7950
|
let { data: t, width: n, height: r } = e, i = Array.from({ length: r }, () => Array(n).fill(!1)), a = [];
|
|
7936
|
-
for (let e = 0; e < r; e++) for (let o = 0; o < n; o++) if (
|
|
7951
|
+
for (let e = 0; e < r; e++) for (let o = 0; o < n; o++) if (bc(t, o, e, n) && !i[e][o]) {
|
|
7937
7952
|
let s = [];
|
|
7938
|
-
|
|
7953
|
+
xc(t, n, r, o, e, i, s), a.push(s);
|
|
7939
7954
|
}
|
|
7940
7955
|
return a;
|
|
7941
7956
|
}
|
|
7942
|
-
function
|
|
7957
|
+
function Cc(e) {
|
|
7943
7958
|
return new Promise((t, n) => {
|
|
7944
7959
|
let r = new Image();
|
|
7945
7960
|
r.src = e, r.onload = () => t(r), r.onerror = () => n(/* @__PURE__ */ Error("Image loading failed"));
|
|
7946
7961
|
});
|
|
7947
7962
|
}
|
|
7948
|
-
async function
|
|
7949
|
-
let t = await
|
|
7963
|
+
async function wc(e) {
|
|
7964
|
+
let t = await Cc(e), { canvas: n, ctx: r } = yc(t.width, t.height);
|
|
7950
7965
|
r.drawImage(t, 0, 0);
|
|
7951
|
-
let i =
|
|
7966
|
+
let i = Sc(r.getImageData(0, 0, t.width, t.height));
|
|
7952
7967
|
return URL.revokeObjectURL(t.src), i;
|
|
7953
7968
|
}
|
|
7954
7969
|
//#endregion
|
|
7955
7970
|
//#region ../../node_modules/.pnpm/react-intersection-observer@9.16.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-intersection-observer/dist/index.mjs
|
|
7956
|
-
var
|
|
7957
|
-
function
|
|
7958
|
-
return e ?
|
|
7971
|
+
var Tc = /* @__PURE__ */ new Map(), Ec = /* @__PURE__ */ new WeakMap(), Dc = 0, Oc = void 0;
|
|
7972
|
+
function kc(e) {
|
|
7973
|
+
return e ? Ec.has(e) ? Ec.get(e) : (Dc += 1, Ec.set(e, Dc.toString()), Ec.get(e)) : "0";
|
|
7959
7974
|
}
|
|
7960
|
-
function
|
|
7961
|
-
return Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${t}_${t === "root" ?
|
|
7975
|
+
function Ac(e) {
|
|
7976
|
+
return Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${t}_${t === "root" ? kc(e.root) : e[t]}`).toString();
|
|
7962
7977
|
}
|
|
7963
|
-
function
|
|
7964
|
-
let t =
|
|
7978
|
+
function jc(e) {
|
|
7979
|
+
let t = Ac(e), n = Tc.get(t);
|
|
7965
7980
|
if (!n) {
|
|
7966
7981
|
let r = /* @__PURE__ */ new Map(), i, a = new IntersectionObserver((t) => {
|
|
7967
7982
|
t.forEach((t) => {
|
|
@@ -7976,11 +7991,11 @@ function kc(e) {
|
|
|
7976
7991
|
id: t,
|
|
7977
7992
|
observer: a,
|
|
7978
7993
|
elements: r
|
|
7979
|
-
},
|
|
7994
|
+
}, Tc.set(t, n);
|
|
7980
7995
|
}
|
|
7981
7996
|
return n;
|
|
7982
7997
|
}
|
|
7983
|
-
function
|
|
7998
|
+
function Mc(e, t, n = {}, r = Oc) {
|
|
7984
7999
|
if (window.IntersectionObserver === void 0 && r !== void 0) {
|
|
7985
8000
|
let i = e.getBoundingClientRect();
|
|
7986
8001
|
return t(r, {
|
|
@@ -7993,13 +8008,13 @@ function Ac(e, t, n = {}, r = Ec) {
|
|
|
7993
8008
|
rootBounds: i
|
|
7994
8009
|
}), () => {};
|
|
7995
8010
|
}
|
|
7996
|
-
let { id: i, observer: a, elements: o } =
|
|
8011
|
+
let { id: i, observer: a, elements: o } = jc(n), s = o.get(e) || [];
|
|
7997
8012
|
return o.has(e) || o.set(e, s), s.push(t), a.observe(e), function() {
|
|
7998
|
-
s.splice(s.indexOf(t), 1), s.length === 0 && (o.delete(e), a.unobserve(e)), o.size === 0 && (a.disconnect(),
|
|
8013
|
+
s.splice(s.indexOf(t), 1), s.length === 0 && (o.delete(e), a.unobserve(e)), o.size === 0 && (a.disconnect(), Tc.delete(i));
|
|
7999
8014
|
};
|
|
8000
8015
|
}
|
|
8001
8016
|
T.Component;
|
|
8002
|
-
function
|
|
8017
|
+
function Nc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i, triggerOnce: a, skip: o, initialInView: s, fallbackInView: c, onChange: l } = {}) {
|
|
8003
8018
|
let [u, d] = T.useState(null), f = T.useRef(l), [p, m] = T.useState({
|
|
8004
8019
|
inView: !!s,
|
|
8005
8020
|
entry: void 0
|
|
@@ -8007,7 +8022,7 @@ function jc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
8007
8022
|
f.current = l, T.useEffect(() => {
|
|
8008
8023
|
if (o || !u) return;
|
|
8009
8024
|
let s;
|
|
8010
|
-
return s =
|
|
8025
|
+
return s = Mc(u, (e, t) => {
|
|
8011
8026
|
m({
|
|
8012
8027
|
inView: e,
|
|
8013
8028
|
entry: t
|
|
@@ -8046,8 +8061,8 @@ function jc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
8046
8061
|
}
|
|
8047
8062
|
//#endregion
|
|
8048
8063
|
//#region src/lib/components/infinite-scroller/use-infinite-scroll.ts
|
|
8049
|
-
function
|
|
8050
|
-
let { ref: o, inView: s } =
|
|
8064
|
+
function Pc({ total: e, current: t, loading: n, refresh: r, onBottom: i, throttleDelay: a = 300 }) {
|
|
8065
|
+
let { ref: o, inView: s } = Nc({ threshold: .2 }), c = z(!0), l = zt((0, Z.throttle)(() => {
|
|
8051
8066
|
n || t >= e || (i?.(), r(t + 1));
|
|
8052
8067
|
}, a));
|
|
8053
8068
|
return F(() => {
|
|
@@ -8065,8 +8080,8 @@ function Mc({ total: e, current: t, loading: n, refresh: r, onBottom: i, throttl
|
|
|
8065
8080
|
}
|
|
8066
8081
|
//#endregion
|
|
8067
8082
|
//#region src/lib/components/infinite-scroller/index.tsx
|
|
8068
|
-
var
|
|
8069
|
-
let { children: t, ...n } = e, r = o(), { observerRef: i, throttledLoadMore: a } =
|
|
8083
|
+
var Fc = (e) => {
|
|
8084
|
+
let { children: t, ...n } = e, r = o(), { observerRef: i, throttledLoadMore: a } = Pc(n);
|
|
8070
8085
|
return /* @__PURE__ */ U("div", {
|
|
8071
8086
|
className: "relative",
|
|
8072
8087
|
style: { width: "100%" },
|
|
@@ -8094,18 +8109,18 @@ var Nc = (e) => {
|
|
|
8094
8109
|
/* @__PURE__ */ H(pt.BackTop, { visibilityHeight: 1e3 })
|
|
8095
8110
|
]
|
|
8096
8111
|
});
|
|
8097
|
-
},
|
|
8098
|
-
let e = P(
|
|
8112
|
+
}, Ic = O({}), Lc = () => {
|
|
8113
|
+
let e = P(Ic);
|
|
8099
8114
|
if (!e) throw Error("useScrollerContext must be used within a ScrollerProvider");
|
|
8100
8115
|
return e;
|
|
8101
|
-
},
|
|
8116
|
+
}, Rc = ({ children: e, value: t }) => /* @__PURE__ */ H(Ic.Provider, {
|
|
8102
8117
|
value: t,
|
|
8103
8118
|
children: e
|
|
8104
|
-
}),
|
|
8119
|
+
}), zc = Y.div`
|
|
8105
8120
|
display: flex;
|
|
8106
8121
|
flex-wrap: wrap;
|
|
8107
8122
|
gap: 6px;
|
|
8108
|
-
`,
|
|
8123
|
+
`, Bc = ({ labels: e }) => /* @__PURE__ */ H(zc, { children: Z.default.map(e, (e, t) => /* @__PURE__ */ U(f, {
|
|
8109
8124
|
className: "m-r-0",
|
|
8110
8125
|
maxWidth: 155,
|
|
8111
8126
|
style: {
|
|
@@ -8113,12 +8128,12 @@ var Nc = (e) => {
|
|
|
8113
8128
|
borderRadius: 12
|
|
8114
8129
|
},
|
|
8115
8130
|
children: [/* @__PURE__ */ H("span", { children: t }), /* @__PURE__ */ U("span", { children: [":", e] })]
|
|
8116
|
-
}, t)) }),
|
|
8117
|
-
let e = E.useContext(
|
|
8131
|
+
}, t)) }), Vc = E.createContext({}), Hc = () => {
|
|
8132
|
+
let e = E.useContext(Vc);
|
|
8118
8133
|
if (!e) throw Error("useLabelSelectorContext must be used within a LabelSelectorProvider");
|
|
8119
8134
|
return e;
|
|
8120
|
-
},
|
|
8121
|
-
let d = o(), [f, p] = B(!1), { options: m, placeholder: h = [] } =
|
|
8135
|
+
}, Uc = ({ labels: e, label: t, labelList: n, seperator: r, keyAddon: i, valueAddon: a, disabled: s, onChange: c, onDelete: l, onBlur: u }) => {
|
|
8136
|
+
let d = o(), [f, p] = B(!1), { options: m, placeholder: h = [] } = Hc(), g = m?.filter((n) => !Z.default.has(e, n.value) || n.value === t.key), _ = R(() => m?.find((e) => e.value === t.key)?.children || [], [t.key, m]), v = (e) => {
|
|
8122
8137
|
c?.({
|
|
8123
8138
|
key: t.key,
|
|
8124
8139
|
value: e
|
|
@@ -8145,7 +8160,7 @@ var Nc = (e) => {
|
|
|
8145
8160
|
children: i ?? /* @__PURE__ */ H(J, {
|
|
8146
8161
|
open: f,
|
|
8147
8162
|
title: d.formatMessage({ id: "resources.table.key.tips" }),
|
|
8148
|
-
children: /* @__PURE__ */ H(
|
|
8163
|
+
children: /* @__PURE__ */ H(go, {
|
|
8149
8164
|
options: g,
|
|
8150
8165
|
disabled: s,
|
|
8151
8166
|
checkStatus: "success",
|
|
@@ -8162,7 +8177,7 @@ var Nc = (e) => {
|
|
|
8162
8177
|
}),
|
|
8163
8178
|
/* @__PURE__ */ H("div", {
|
|
8164
8179
|
className: "label-value",
|
|
8165
|
-
children: a ?? /* @__PURE__ */ H(
|
|
8180
|
+
children: a ?? /* @__PURE__ */ H(go, {
|
|
8166
8181
|
options: _,
|
|
8167
8182
|
disabled: s,
|
|
8168
8183
|
checkStatus: t.value ? "success" : "",
|
|
@@ -8182,7 +8197,7 @@ var Nc = (e) => {
|
|
|
8182
8197
|
})
|
|
8183
8198
|
]
|
|
8184
8199
|
});
|
|
8185
|
-
},
|
|
8200
|
+
}, Wc = ({ label: e, labelList: t, seperator: n, keyAddon: r, valueAddon: i, disabled: a, onChange: s, onDelete: c, onPaste: l, onBlur: u }) => {
|
|
8186
8201
|
let d = o(), [f, p] = B(!1), m = (t) => {
|
|
8187
8202
|
let n = t.target.value;
|
|
8188
8203
|
s?.({
|
|
@@ -8212,7 +8227,7 @@ var Nc = (e) => {
|
|
|
8212
8227
|
children: r ?? /* @__PURE__ */ H(J, {
|
|
8213
8228
|
open: f,
|
|
8214
8229
|
title: d.formatMessage({ id: "resources.table.key.tips" }),
|
|
8215
|
-
children: /* @__PURE__ */ H("span", { children: /* @__PURE__ */ H(
|
|
8230
|
+
children: /* @__PURE__ */ H("span", { children: /* @__PURE__ */ H(Co.Input, {
|
|
8216
8231
|
disabled: a,
|
|
8217
8232
|
checkStatus: "success",
|
|
8218
8233
|
label: d.formatMessage({ id: "common.input.key" }),
|
|
@@ -8229,7 +8244,7 @@ var Nc = (e) => {
|
|
|
8229
8244
|
}),
|
|
8230
8245
|
/* @__PURE__ */ H("div", {
|
|
8231
8246
|
className: "label-value",
|
|
8232
|
-
children: i ?? /* @__PURE__ */ H(
|
|
8247
|
+
children: i ?? /* @__PURE__ */ H(Co.Input, {
|
|
8233
8248
|
trim: !1,
|
|
8234
8249
|
disabled: a,
|
|
8235
8250
|
checkStatus: e.value ? "success" : "",
|
|
@@ -8249,7 +8264,7 @@ var Nc = (e) => {
|
|
|
8249
8264
|
})
|
|
8250
8265
|
]
|
|
8251
8266
|
});
|
|
8252
|
-
},
|
|
8267
|
+
}, Gc = ({ labels: e, labelList: t, onChange: n, onLabelListChange: r, onPaste: i, onBlur: a, onDelete: o, disabled: s, label: c, btnText: l, description: u, isAutoComplete: d }) => {
|
|
8253
8268
|
let f = (e) => {
|
|
8254
8269
|
let t = Z.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8255
8270
|
n?.(t);
|
|
@@ -8266,13 +8281,13 @@ var Nc = (e) => {
|
|
|
8266
8281
|
let n = Z.default.cloneDeep(t);
|
|
8267
8282
|
n.splice(e, 1), r(n), f(n), o?.(e);
|
|
8268
8283
|
};
|
|
8269
|
-
return /* @__PURE__ */ H(
|
|
8284
|
+
return /* @__PURE__ */ H(eo, {
|
|
8270
8285
|
label: c,
|
|
8271
8286
|
description: u,
|
|
8272
8287
|
onAdd: m,
|
|
8273
8288
|
disabled: s,
|
|
8274
8289
|
btnText: l,
|
|
8275
|
-
children: /* @__PURE__ */ H(V, { children: d ? t?.map((n, r) => /* @__PURE__ */ H(
|
|
8290
|
+
children: /* @__PURE__ */ H(V, { children: d ? t?.map((n, r) => /* @__PURE__ */ H(Uc, {
|
|
8276
8291
|
disabled: s,
|
|
8277
8292
|
label: n,
|
|
8278
8293
|
seperator: ":",
|
|
@@ -8282,7 +8297,7 @@ var Nc = (e) => {
|
|
|
8282
8297
|
onChange: (e) => p(r, e),
|
|
8283
8298
|
onPaste: (e) => i?.(e, r),
|
|
8284
8299
|
onBlur: (e, t) => a?.(e, t, r)
|
|
8285
|
-
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(
|
|
8300
|
+
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(Wc, {
|
|
8286
8301
|
disabled: s,
|
|
8287
8302
|
label: e,
|
|
8288
8303
|
seperator: ":",
|
|
@@ -8293,7 +8308,7 @@ var Nc = (e) => {
|
|
|
8293
8308
|
onBlur: (e, t) => a?.(e, t, n)
|
|
8294
8309
|
}, n)) })
|
|
8295
8310
|
});
|
|
8296
|
-
},
|
|
8311
|
+
}, Kc = ({ value: e, onChange: t, onBlur: n, onDelete: r, disabled: i, label: a, btnText: s, description: c, isAutoComplete: l, enablePaste: u = !0 }) => {
|
|
8297
8312
|
let d = o(), [f, p] = B({}), [m, h] = B([]);
|
|
8298
8313
|
F(() => {
|
|
8299
8314
|
let t = e ?? {};
|
|
@@ -8310,7 +8325,7 @@ var Nc = (e) => {
|
|
|
8310
8325
|
let n = Z.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8311
8326
|
t?.(n);
|
|
8312
8327
|
};
|
|
8313
|
-
return /* @__PURE__ */ H(
|
|
8328
|
+
return /* @__PURE__ */ H(Gc, {
|
|
8314
8329
|
disabled: i,
|
|
8315
8330
|
label: a,
|
|
8316
8331
|
btnText: s,
|
|
@@ -8337,16 +8352,16 @@ var Nc = (e) => {
|
|
|
8337
8352
|
onBlur: n,
|
|
8338
8353
|
onDelete: r
|
|
8339
8354
|
});
|
|
8340
|
-
},
|
|
8355
|
+
}, qc = ({ children: e, value: t }) => /* @__PURE__ */ H(Vc.Provider, {
|
|
8341
8356
|
value: t,
|
|
8342
8357
|
children: e
|
|
8343
|
-
}),
|
|
8358
|
+
}), Jc = /[^=]+=[^=]*$/, Yc = (e) => {
|
|
8344
8359
|
let { value: t, label: n, onChange: r, onBlur: i, onPaste: a, disabled: o, sourceOptions: s, trim: c = !0 } = e, l = E.useRef(0), u = E.useRef(""), [d, f] = E.useState([]), p = (e) => {
|
|
8345
8360
|
if (!e) {
|
|
8346
8361
|
f(s || []);
|
|
8347
8362
|
return;
|
|
8348
8363
|
}
|
|
8349
|
-
let t = e.match(
|
|
8364
|
+
let t = e.match(Jc);
|
|
8350
8365
|
if (!t) {
|
|
8351
8366
|
f(Z.default.filter(s, (t) => t.label.includes(e)));
|
|
8352
8367
|
return;
|
|
@@ -8358,12 +8373,12 @@ var Nc = (e) => {
|
|
|
8358
8373
|
}
|
|
8359
8374
|
f(Z.default.filter(i.opts, (e) => e.label.includes(r)));
|
|
8360
8375
|
}, m = (e) => {
|
|
8361
|
-
let t = u.current.match(
|
|
8376
|
+
let t = u.current.match(Jc);
|
|
8362
8377
|
r(t ? `${Z.default.split(t[0], "=")[0]}=${e}` : e?.trim());
|
|
8363
8378
|
}, h = Z.default.debounce((e) => {
|
|
8364
8379
|
l.current = e.target.selectionStart, u.current = e.target.value.slice(0, l.current), p(u.current);
|
|
8365
8380
|
}, 100);
|
|
8366
|
-
return /* @__PURE__ */ H(
|
|
8381
|
+
return /* @__PURE__ */ H(go, {
|
|
8367
8382
|
placeholder: e.placeholder,
|
|
8368
8383
|
defaultActiveFirstOption: !0,
|
|
8369
8384
|
value: t,
|
|
@@ -8385,7 +8400,7 @@ var Nc = (e) => {
|
|
|
8385
8400
|
},
|
|
8386
8401
|
onPaste: a
|
|
8387
8402
|
});
|
|
8388
|
-
},
|
|
8403
|
+
}, Xc = (e) => {
|
|
8389
8404
|
let { onRemove: t, onChange: n, onBlur: r, onPaste: i, label: a, value: o, options: s, trim: c = !0, data: l, required: u, disabled: d, renderItem: f } = e, p = (e) => {
|
|
8390
8405
|
n(e);
|
|
8391
8406
|
};
|
|
@@ -8395,7 +8410,7 @@ var Nc = (e) => {
|
|
|
8395
8410
|
onChange: p,
|
|
8396
8411
|
onBlur: r,
|
|
8397
8412
|
onPaste: i
|
|
8398
|
-
}) : /* @__PURE__ */ H(
|
|
8413
|
+
}) : /* @__PURE__ */ H(Yc, {
|
|
8399
8414
|
value: o,
|
|
8400
8415
|
onChange: p,
|
|
8401
8416
|
onBlur: r,
|
|
@@ -8414,7 +8429,7 @@ var Nc = (e) => {
|
|
|
8414
8429
|
onClick: t
|
|
8415
8430
|
})]
|
|
8416
8431
|
});
|
|
8417
|
-
},
|
|
8432
|
+
}, Zc = (e) => {
|
|
8418
8433
|
let { value: t, label: n, description: r, onChange: i, onBlur: a, onDelete: o, btnText: s, options: c, labelExtra: l, trim: u = !0, styles: d, required: f, disabled: p, renderItem: m } = e, [h, g] = E.useState([]), _ = E.useRef(0), v = () => {
|
|
8419
8434
|
_.current += 1;
|
|
8420
8435
|
}, b = (e) => {
|
|
@@ -8461,7 +8476,7 @@ var Nc = (e) => {
|
|
|
8461
8476
|
})));
|
|
8462
8477
|
}, [t]), F(() => {
|
|
8463
8478
|
f && h.length === 0 && S();
|
|
8464
|
-
}, [f]), /* @__PURE__ */ H(
|
|
8479
|
+
}, [f]), /* @__PURE__ */ H(eo, {
|
|
8465
8480
|
styles: d,
|
|
8466
8481
|
label: n,
|
|
8467
8482
|
required: f,
|
|
@@ -8470,7 +8485,7 @@ var Nc = (e) => {
|
|
|
8470
8485
|
onAdd: S,
|
|
8471
8486
|
btnText: s,
|
|
8472
8487
|
disabled: p,
|
|
8473
|
-
children: /* @__PURE__ */ H(V, { children: Z.default.map(h, (t, n) => /* @__PURE__ */ H(
|
|
8488
|
+
children: /* @__PURE__ */ H(V, { children: Z.default.map(h, (t, n) => /* @__PURE__ */ H(Xc, {
|
|
8474
8489
|
required: f && h.length === 1,
|
|
8475
8490
|
placeholder: e.placeholder,
|
|
8476
8491
|
options: c,
|
|
@@ -8485,7 +8500,7 @@ var Nc = (e) => {
|
|
|
8485
8500
|
renderItem: m
|
|
8486
8501
|
}, t.uid)) })
|
|
8487
8502
|
});
|
|
8488
|
-
},
|
|
8503
|
+
}, Qc = A((e, t) => {
|
|
8489
8504
|
let { dataList: n, height: r, showNum: i, onScroll: a, diffHeight: o = 96 } = e, { initialize: s, updateScrollerPosition: c, updateScrollerPositionToTop: l, generateInstance: u, scrollEventElement: f, instance: p, initialized: m } = d({ options: { scrollbars: { theme: "os-theme-light" } } }), [h, g] = B(window.innerHeight - o), _ = z({}), v = z(!1), y = N(() => {
|
|
8490
8505
|
c(0);
|
|
8491
8506
|
}, [c]), b = Z.default.debounce(() => {
|
|
@@ -8545,7 +8560,7 @@ var Nc = (e) => {
|
|
|
8545
8560
|
}, e.uid))
|
|
8546
8561
|
})
|
|
8547
8562
|
});
|
|
8548
|
-
}),
|
|
8563
|
+
}), $c = E.memo(Qc), el = (e) => {
|
|
8549
8564
|
let { page: t, total: n, pageSize: r, onNext: i, onPrev: a, onBackend: s, onToFirst: c } = e, l = o();
|
|
8550
8565
|
return /* @__PURE__ */ U("div", {
|
|
8551
8566
|
className: "pagination",
|
|
@@ -8619,8 +8634,8 @@ var Nc = (e) => {
|
|
|
8619
8634
|
})] })
|
|
8620
8635
|
]
|
|
8621
8636
|
});
|
|
8622
|
-
},
|
|
8623
|
-
let [e, t] = B(
|
|
8637
|
+
}, tl = 1e3, nl = () => {
|
|
8638
|
+
let [e, t] = B(tl), [n, r] = B(1), [i, a] = B(1);
|
|
8624
8639
|
return {
|
|
8625
8640
|
nextPage: () => {
|
|
8626
8641
|
r(n + 1);
|
|
@@ -8640,8 +8655,8 @@ var Nc = (e) => {
|
|
|
8640
8655
|
page: n,
|
|
8641
8656
|
totalPage: i
|
|
8642
8657
|
};
|
|
8643
|
-
},
|
|
8644
|
-
let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, watchable: s, params: c } = e, { pageSize: l, page: u, setPage: d, setTotalPage: f, totalPage: p } =
|
|
8658
|
+
}, rl = A((e, t) => {
|
|
8659
|
+
let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, watchable: s, params: c } = e, { pageSize: l, page: u, setPage: d, setTotalPage: f, totalPage: p } = nl(), { setChunkFetch: m } = Vi(), h = z(null), [g, _] = B([]), v = z(null), y = z(i), [b, x] = B(!1), [S, C] = B(!1), [w, T] = B([]), E = z(null), D = z(!1), O = z(u), k = z(p), A = z(!1), [j, M] = B([]), P = z({
|
|
8645
8660
|
pos: "bottom",
|
|
8646
8661
|
page: 1
|
|
8647
8662
|
}), L = z(0), R = z(!1);
|
|
@@ -8746,7 +8761,7 @@ var Nc = (e) => {
|
|
|
8746
8761
|
children: /* @__PURE__ */ U("div", {
|
|
8747
8762
|
className: "wrap",
|
|
8748
8763
|
children: [
|
|
8749
|
-
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(
|
|
8764
|
+
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H($c, {
|
|
8750
8765
|
ref: E,
|
|
8751
8766
|
dataList: j,
|
|
8752
8767
|
diffHeight: n,
|
|
@@ -8761,7 +8776,7 @@ var Nc = (e) => {
|
|
|
8761
8776
|
className: "pg",
|
|
8762
8777
|
children: /* @__PURE__ */ H("div", {
|
|
8763
8778
|
className: (0, X.default)("pg-inner", { "at-top": !0 }),
|
|
8764
|
-
children: /* @__PURE__ */ H(
|
|
8779
|
+
children: /* @__PURE__ */ H(el, {
|
|
8765
8780
|
page: u,
|
|
8766
8781
|
total: p,
|
|
8767
8782
|
pageSize: l,
|
|
@@ -8775,7 +8790,7 @@ var Nc = (e) => {
|
|
|
8775
8790
|
]
|
|
8776
8791
|
})
|
|
8777
8792
|
});
|
|
8778
|
-
}),
|
|
8793
|
+
}), il = Y.div`
|
|
8779
8794
|
display: flex;
|
|
8780
8795
|
margin-bottom: 12px;
|
|
8781
8796
|
align-items: center;
|
|
@@ -8795,14 +8810,14 @@ var Nc = (e) => {
|
|
|
8795
8810
|
margin-left: 10px;
|
|
8796
8811
|
flex: none;
|
|
8797
8812
|
}
|
|
8798
|
-
`,
|
|
8813
|
+
`, al = ({ dataList: e, label: t, description: n, disabled: r, btnText: i, children: a, onDelete: o, onAdd: s, styles: c }) => /* @__PURE__ */ H(eo, {
|
|
8799
8814
|
styles: c,
|
|
8800
8815
|
label: t,
|
|
8801
8816
|
description: n,
|
|
8802
8817
|
onAdd: s,
|
|
8803
8818
|
disabled: r,
|
|
8804
8819
|
btnText: i,
|
|
8805
|
-
children: e.map((e, t) => /* @__PURE__ */ U(
|
|
8820
|
+
children: e.map((e, t) => /* @__PURE__ */ U(il, { children: [a?.(e, t), !r && /* @__PURE__ */ H(G, {
|
|
8806
8821
|
size: "small",
|
|
8807
8822
|
className: "btn",
|
|
8808
8823
|
type: "default",
|
|
@@ -8810,7 +8825,7 @@ var Nc = (e) => {
|
|
|
8810
8825
|
onClick: () => o?.(t, e),
|
|
8811
8826
|
children: /* @__PURE__ */ H(ke, {})
|
|
8812
8827
|
})] }, t))
|
|
8813
|
-
}),
|
|
8828
|
+
}), ol = Y.div`
|
|
8814
8829
|
display: flex;
|
|
8815
8830
|
justify-content: center;
|
|
8816
8831
|
margin-block: 16px;
|
|
@@ -8820,9 +8835,9 @@ var Nc = (e) => {
|
|
|
8820
8835
|
opacity: 0;
|
|
8821
8836
|
transition: opacity 0.3s ease-in-out;
|
|
8822
8837
|
}
|
|
8823
|
-
`,
|
|
8838
|
+
`, sl = (e) => {
|
|
8824
8839
|
let { show: t, loading: n, loadMore: r } = e, i = o();
|
|
8825
|
-
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(
|
|
8840
|
+
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(ol, {
|
|
8826
8841
|
className: n ? "loading" : "",
|
|
8827
8842
|
children: /* @__PURE__ */ H(G, {
|
|
8828
8843
|
onClick: r,
|
|
@@ -8832,7 +8847,7 @@ var Nc = (e) => {
|
|
|
8832
8847
|
children: i.formatMessage({ id: "common.button.more" })
|
|
8833
8848
|
})
|
|
8834
8849
|
}) : null });
|
|
8835
|
-
},
|
|
8850
|
+
}, cl = Y(ft)`
|
|
8836
8851
|
display: flex;
|
|
8837
8852
|
flex-direction: column;
|
|
8838
8853
|
justify-content: center;
|
|
@@ -8850,30 +8865,30 @@ var Nc = (e) => {
|
|
|
8850
8865
|
.ant-empty-footer {
|
|
8851
8866
|
display: flex;
|
|
8852
8867
|
}
|
|
8853
|
-
`,
|
|
8868
|
+
`, ll = Y.div`
|
|
8854
8869
|
margin-bottom: 16px;
|
|
8855
8870
|
display: flex;
|
|
8856
8871
|
justify-content: center;
|
|
8857
8872
|
align-items: center;
|
|
8858
|
-
`,
|
|
8873
|
+
`, ul = Y.div`
|
|
8859
8874
|
margin-bottom: 8px;
|
|
8860
8875
|
display: flex;
|
|
8861
8876
|
justify-content: center;
|
|
8862
8877
|
align-items: center;
|
|
8863
|
-
`,
|
|
8878
|
+
`, dl = Y.div`
|
|
8864
8879
|
display: flex;
|
|
8865
8880
|
flex-direction: column;
|
|
8866
8881
|
gap: 12px;
|
|
8867
8882
|
justify-content: center;
|
|
8868
8883
|
align-items: center;
|
|
8869
|
-
`,
|
|
8884
|
+
`, fl = (e) => {
|
|
8870
8885
|
let { filters: t, noFoundText: n, loadend: r, loading: i, dataSource: a, buttonText: o, onClick: s } = e, c = R(() => {
|
|
8871
8886
|
let e = Z.default.omit(t, ["page", "perPage"]);
|
|
8872
8887
|
return Object.values(e || {}).some((e) => Array.isArray(e) ? e.length > 0 : !!e);
|
|
8873
8888
|
}, [t]);
|
|
8874
|
-
return /* @__PURE__ */ H(V, { children: !i && r && !a?.length ? /* @__PURE__ */ H(
|
|
8875
|
-
image: c ? /* @__PURE__ */ H(
|
|
8876
|
-
description: /* @__PURE__ */ U(
|
|
8889
|
+
return /* @__PURE__ */ H(V, { children: !i && r && !a?.length ? /* @__PURE__ */ H(cl, {
|
|
8890
|
+
image: c ? /* @__PURE__ */ H(ul, { children: ft.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ H(ll, { children: e.image }),
|
|
8891
|
+
description: /* @__PURE__ */ U(dl, { children: [!c && /* @__PURE__ */ H(Nt.Text, {
|
|
8877
8892
|
style: {
|
|
8878
8893
|
fontSize: "16px",
|
|
8879
8894
|
fontWeight: 500
|
|
@@ -8890,7 +8905,7 @@ var Nc = (e) => {
|
|
|
8890
8905
|
children: o
|
|
8891
8906
|
}))
|
|
8892
8907
|
}) : /* @__PURE__ */ H("span", {}) });
|
|
8893
|
-
},
|
|
8908
|
+
}, pl = Y(it)`
|
|
8894
8909
|
.ant-breadcrumb-link {
|
|
8895
8910
|
font-size: 16px;
|
|
8896
8911
|
font-weight: 500;
|
|
@@ -8905,19 +8920,19 @@ var Nc = (e) => {
|
|
|
8905
8920
|
display: flex;
|
|
8906
8921
|
align-items: center;
|
|
8907
8922
|
}
|
|
8908
|
-
`,
|
|
8923
|
+
`, ml = ({ items: e }) => /* @__PURE__ */ H(pl, {
|
|
8909
8924
|
separator: /* @__PURE__ */ H(Q, {
|
|
8910
8925
|
type: "icon-down2",
|
|
8911
8926
|
rotate: -90
|
|
8912
8927
|
}),
|
|
8913
8928
|
items: e
|
|
8914
|
-
}),
|
|
8929
|
+
}), hl = {
|
|
8915
8930
|
containerWrapper: "page-box-module__containerWrapper___5T5E8",
|
|
8916
8931
|
contentWrapper: "page-box-module__contentWrapper___MuoA-",
|
|
8917
8932
|
title: "page-box-module__title___kmaTE",
|
|
8918
8933
|
left: "page-box-module__left___Q-SL3",
|
|
8919
8934
|
right: "page-box-module__right___7RXnF"
|
|
8920
|
-
},
|
|
8935
|
+
}, gl = ({ children: e, styles: t, title: n, leftContent: r, rightContent: i, paddingInlinePageContainerContent: a = 24, extraContentRender: o, ...s }) => {
|
|
8921
8936
|
let { initialize: c } = d({ defer: !1 }), l = P(cn), u = z(null);
|
|
8922
8937
|
return F(() => {
|
|
8923
8938
|
if (u.current) {
|
|
@@ -8925,7 +8940,7 @@ var Nc = (e) => {
|
|
|
8925
8940
|
window.__GPUSTACK_BODY_SCROLLER__ = e;
|
|
8926
8941
|
}
|
|
8927
8942
|
}, [c, u]), /* @__PURE__ */ H("div", {
|
|
8928
|
-
className:
|
|
8943
|
+
className: hl.containerWrapper,
|
|
8929
8944
|
children: /* @__PURE__ */ U(sn, {
|
|
8930
8945
|
...s,
|
|
8931
8946
|
fixedHeader: !1,
|
|
@@ -8934,43 +8949,43 @@ var Nc = (e) => {
|
|
|
8934
8949
|
style: { flex: 1 },
|
|
8935
8950
|
token: { paddingInlinePageContainerContent: a },
|
|
8936
8951
|
children: [/* @__PURE__ */ U("div", {
|
|
8937
|
-
className:
|
|
8952
|
+
className: hl.title,
|
|
8938
8953
|
children: [/* @__PURE__ */ H("div", {
|
|
8939
|
-
className:
|
|
8954
|
+
className: hl.left,
|
|
8940
8955
|
children: r || l.title
|
|
8941
8956
|
}), /* @__PURE__ */ U("div", {
|
|
8942
|
-
className:
|
|
8957
|
+
className: hl.right,
|
|
8943
8958
|
children: [i && /* @__PURE__ */ U("div", { children: [i, /* @__PURE__ */ H(lt, {
|
|
8944
8959
|
orientation: "vertical",
|
|
8945
8960
|
style: { margin: "0 16px" }
|
|
8946
8961
|
})] }), o && o()]
|
|
8947
8962
|
})]
|
|
8948
8963
|
}), /* @__PURE__ */ H("div", {
|
|
8949
|
-
className: (0, X.default)(
|
|
8964
|
+
className: (0, X.default)(hl.contentWrapper),
|
|
8950
8965
|
style: t?.containerWrapper,
|
|
8951
8966
|
ref: u,
|
|
8952
8967
|
children: e
|
|
8953
8968
|
})]
|
|
8954
8969
|
})
|
|
8955
8970
|
});
|
|
8956
|
-
},
|
|
8971
|
+
}, _l = ({ children: e, style: t }) => /* @__PURE__ */ H("div", {
|
|
8957
8972
|
style: t,
|
|
8958
8973
|
children: e
|
|
8959
|
-
}),
|
|
8974
|
+
}), vl = {
|
|
8960
8975
|
wrapper: "filters-button-module__wrapper___wgAvR",
|
|
8961
8976
|
count: "filters-button-module__count___9Uazh",
|
|
8962
8977
|
buttonWrapper: "filters-button-module__buttonWrapper___s0HOa",
|
|
8963
8978
|
"close-btn": "filters-button-module__close-btn___COdze"
|
|
8964
|
-
},
|
|
8979
|
+
}, yl = {
|
|
8965
8980
|
"page-tools": "index-module__page-tools___qC1VM",
|
|
8966
8981
|
left: "index-module__left___RQSzE",
|
|
8967
8982
|
right: "index-module__right___xVhib"
|
|
8968
|
-
},
|
|
8983
|
+
}, bl = ({ onClick: e, onClear: t, count: n }) => {
|
|
8969
8984
|
let r = (e) => {
|
|
8970
8985
|
e.stopPropagation(), t();
|
|
8971
8986
|
}, i = o();
|
|
8972
8987
|
return /* @__PURE__ */ H("div", {
|
|
8973
|
-
className:
|
|
8988
|
+
className: vl.buttonWrapper,
|
|
8974
8989
|
children: /* @__PURE__ */ H(G, {
|
|
8975
8990
|
onClick: e,
|
|
8976
8991
|
style: { color: "var(--ant-color-text-tertiary)" },
|
|
@@ -8979,15 +8994,15 @@ var Nc = (e) => {
|
|
|
8979
8994
|
style: { fontSize: 14 }
|
|
8980
8995
|
}),
|
|
8981
8996
|
children: /* @__PURE__ */ U("span", {
|
|
8982
|
-
className:
|
|
8997
|
+
className: vl.wrapper,
|
|
8983
8998
|
children: [
|
|
8984
8999
|
/* @__PURE__ */ H("span", { children: i.formatMessage({ id: "common.filter.label" }) }),
|
|
8985
9000
|
!!n && /* @__PURE__ */ H("span", {
|
|
8986
|
-
className:
|
|
9001
|
+
className: vl.count,
|
|
8987
9002
|
children: n
|
|
8988
9003
|
}),
|
|
8989
9004
|
!!n && /* @__PURE__ */ H("span", {
|
|
8990
|
-
className:
|
|
9005
|
+
className: vl["close-btn"],
|
|
8991
9006
|
onClick: r,
|
|
8992
9007
|
children: /* @__PURE__ */ H(oe, {})
|
|
8993
9008
|
})
|
|
@@ -8995,7 +9010,7 @@ var Nc = (e) => {
|
|
|
8995
9010
|
})
|
|
8996
9011
|
})
|
|
8997
9012
|
});
|
|
8998
|
-
},
|
|
9013
|
+
}, xl = (e) => {
|
|
8999
9014
|
let { left: t, right: n, marginBottom: r = 0, marginTop: i = 30, style: a } = e, o = R(() => {
|
|
9000
9015
|
let e = {};
|
|
9001
9016
|
return e.marginBottom = `${r}px`, e.marginTop = `${i}px`, a && Object.assign(e, a), e;
|
|
@@ -9005,23 +9020,23 @@ var Nc = (e) => {
|
|
|
9005
9020
|
a
|
|
9006
9021
|
]);
|
|
9007
9022
|
return /* @__PURE__ */ U("div", {
|
|
9008
|
-
className:
|
|
9023
|
+
className: yl["page-tools"],
|
|
9009
9024
|
style: o,
|
|
9010
9025
|
children: [/* @__PURE__ */ H("div", {
|
|
9011
|
-
className:
|
|
9026
|
+
className: yl.left,
|
|
9012
9027
|
children: t
|
|
9013
9028
|
}), /* @__PURE__ */ H("div", {
|
|
9014
|
-
className:
|
|
9029
|
+
className: yl.right,
|
|
9015
9030
|
children: n
|
|
9016
9031
|
})]
|
|
9017
9032
|
});
|
|
9018
|
-
},
|
|
9033
|
+
}, Sl = (e) => {
|
|
9019
9034
|
let { handleInputChange: t, handleSelectChange: n, handleSearch: r, handleDeleteByBatch: i = null, handleClickPrimary: a = null, rowSelection: s, actionItems: c = [], selectOptions: l, showSelect: u, buttonText: d, buttonIcon: f, actionType: p = "button", marginBottom: m = 10, marginTop: h = 10, inputHolder: g, selectHolder: _, select: v, right: y, left: b, widths: x, filtersButtonProps: S } = e, C = o();
|
|
9020
|
-
return /* @__PURE__ */ H(
|
|
9035
|
+
return /* @__PURE__ */ H(xl, {
|
|
9021
9036
|
marginBottom: m,
|
|
9022
9037
|
marginTop: 0,
|
|
9023
9038
|
left: b || /* @__PURE__ */ U(Et, { children: [
|
|
9024
|
-
S?.show && /* @__PURE__ */ H(
|
|
9039
|
+
S?.show && /* @__PURE__ */ H(bl, {
|
|
9025
9040
|
onClear: S.onClear,
|
|
9026
9041
|
onClick: S.onClick,
|
|
9027
9042
|
count: S.count
|
|
@@ -9033,7 +9048,7 @@ var Nc = (e) => {
|
|
|
9033
9048
|
allowClear: !0,
|
|
9034
9049
|
onChange: t
|
|
9035
9050
|
}),
|
|
9036
|
-
u && /* @__PURE__ */ H(
|
|
9051
|
+
u && /* @__PURE__ */ H(To, {
|
|
9037
9052
|
allowClear: !0,
|
|
9038
9053
|
showSearch: v?.showSearch,
|
|
9039
9054
|
placeholder: _,
|
|
@@ -9081,7 +9096,7 @@ var Nc = (e) => {
|
|
|
9081
9096
|
})]
|
|
9082
9097
|
}))
|
|
9083
9098
|
});
|
|
9084
|
-
},
|
|
9099
|
+
}, Cl = { seal_custom_popover: "index-module__seal_custom_popover___IA6li" }, wl = (e) => {
|
|
9085
9100
|
let { className: t, children: n, style: r, ...i } = e;
|
|
9086
9101
|
return /* @__PURE__ */ H("div", {
|
|
9087
9102
|
className: "popover-wrapper",
|
|
@@ -9089,11 +9104,11 @@ var Nc = (e) => {
|
|
|
9089
9104
|
...i,
|
|
9090
9105
|
style: { ...r },
|
|
9091
9106
|
"data-maxHeight": "300px",
|
|
9092
|
-
classNames: { root: (0, X.default)(t,
|
|
9107
|
+
classNames: { root: (0, X.default)(t, Cl.seal_custom_popover) },
|
|
9093
9108
|
children: n
|
|
9094
9109
|
})
|
|
9095
9110
|
});
|
|
9096
|
-
},
|
|
9111
|
+
}, Tl = M((e) => {
|
|
9097
9112
|
let { defaultOpen: t, percent: n, download: r, label: i, successPercent: a } = e, [o, s] = E.useState(!1), c = R(() => r ? "var(--ant-color-primary)" : n <= 50 ? "var(--ant-color-success)" : n <= 80 ? "var(--ant-color-warning)" : "var(--ant-color-error)", [n]);
|
|
9098
9113
|
F(() => {
|
|
9099
9114
|
s(t || !1);
|
|
@@ -9129,7 +9144,7 @@ var Nc = (e) => {
|
|
|
9129
9144
|
styles: { body: { paddingInline: 12 } },
|
|
9130
9145
|
children: l
|
|
9131
9146
|
}) : l });
|
|
9132
|
-
}),
|
|
9147
|
+
}), El = (e) => {
|
|
9133
9148
|
let { options: t, value: n, onChange: r, gap: i = 12 } = e;
|
|
9134
9149
|
return /* @__PURE__ */ H(Et, {
|
|
9135
9150
|
className: "radio-button-wrap",
|
|
@@ -9140,8 +9155,8 @@ var Nc = (e) => {
|
|
|
9140
9155
|
children: e.label
|
|
9141
9156
|
}, e.value))
|
|
9142
9157
|
});
|
|
9143
|
-
},
|
|
9144
|
-
let { span: i, handleResize: a } =
|
|
9158
|
+
}, Dl = ({ defaultSpan: e = 8, dataList: t, renderItem: n, resizable: r = !0 }) => {
|
|
9159
|
+
let { span: i, handleResize: a } = fa({ defaultSpan: e });
|
|
9145
9160
|
return /* @__PURE__ */ H(di, {
|
|
9146
9161
|
onResize: a,
|
|
9147
9162
|
disabled: !r,
|
|
@@ -9156,7 +9171,7 @@ var Nc = (e) => {
|
|
|
9156
9171
|
};
|
|
9157
9172
|
//#endregion
|
|
9158
9173
|
//#region src/lib/components/scroll-spy-tabs/use-field-scroll.ts
|
|
9159
|
-
function
|
|
9174
|
+
function Ol({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r = 300, segmentedTop: i = {
|
|
9160
9175
|
top: 0,
|
|
9161
9176
|
offsetTop: 96
|
|
9162
9177
|
}, getScrollElementScrollableHeight: a }) {
|
|
@@ -9194,15 +9209,15 @@ function El({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r =
|
|
|
9194
9209
|
}
|
|
9195
9210
|
//#endregion
|
|
9196
9211
|
//#region src/lib/components/scroll-spy-tabs/index.tsx
|
|
9197
|
-
var
|
|
9212
|
+
var kl = Y.div`
|
|
9198
9213
|
position: sticky;
|
|
9199
9214
|
top: ${(e) => e.$top || 0}px;
|
|
9200
9215
|
z-index: 10;
|
|
9201
9216
|
margin-bottom: 16px;
|
|
9202
9217
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9203
9218
|
background-color: var(--ant-color-bg-elevated);
|
|
9204
|
-
`,
|
|
9205
|
-
let [c, l] = E.useState(r || n[0]?.value || ""), { scrollToSegment: u, holderHeight: d } =
|
|
9219
|
+
`, Al = A(({ getScrollElementScrollableHeight: e, segmentedTop: t, segmentOptions: n, defaultTarget: r, activeKey: i, setActiveKey: a, children: o }, s) => {
|
|
9220
|
+
let [c, l] = E.useState(r || n[0]?.value || ""), { scrollToSegment: u, holderHeight: d } = Ol({
|
|
9206
9221
|
activeKey: i,
|
|
9207
9222
|
setActiveKey: a,
|
|
9208
9223
|
segmentOptions: n,
|
|
@@ -9214,9 +9229,9 @@ var Dl = Y.div`
|
|
|
9214
9229
|
f(e);
|
|
9215
9230
|
};
|
|
9216
9231
|
return I(s, () => ({ handleTargetChange: p })), /* @__PURE__ */ U("div", { children: [
|
|
9217
|
-
n.length > 0 && /* @__PURE__ */ H(
|
|
9232
|
+
n.length > 0 && /* @__PURE__ */ H(kl, {
|
|
9218
9233
|
$top: t.top,
|
|
9219
|
-
children: /* @__PURE__ */ H(
|
|
9234
|
+
children: /* @__PURE__ */ H(Ia, {
|
|
9220
9235
|
theme: "light",
|
|
9221
9236
|
defaultValue: c,
|
|
9222
9237
|
value: c,
|
|
@@ -9230,7 +9245,7 @@ var Dl = Y.div`
|
|
|
9230
9245
|
style: { height: d }
|
|
9231
9246
|
})
|
|
9232
9247
|
] });
|
|
9233
|
-
}),
|
|
9248
|
+
}), jl = (e) => {
|
|
9234
9249
|
let { requiredFields: t, onTargetChange: n, updateActiveKey: r } = e;
|
|
9235
9250
|
return { handleOnFinishFailed: (e) => {
|
|
9236
9251
|
let { errorFields: i } = e;
|
|
@@ -9244,7 +9259,7 @@ var Dl = Y.div`
|
|
|
9244
9259
|
}), e.length > 0 && (r(e.sort((e, t) => e.sort - t.sort).map((e) => e.key)), n(e[0].key));
|
|
9245
9260
|
}
|
|
9246
9261
|
} };
|
|
9247
|
-
},
|
|
9262
|
+
}, Ml = (e) => {
|
|
9248
9263
|
let [t, n] = B(e.initalActiveKeys), [r, i] = B(e.initialCollapseKeys || e.initalActiveKeys);
|
|
9249
9264
|
return {
|
|
9250
9265
|
activeKey: t,
|
|
@@ -9261,14 +9276,14 @@ var Dl = Y.div`
|
|
|
9261
9276
|
n((t) => [...new Set([...t, ...e])]), i((t) => [...new Set([...t, ...e])]);
|
|
9262
9277
|
}
|
|
9263
9278
|
};
|
|
9264
|
-
},
|
|
9279
|
+
}, Nl = O({ scrollToBottom: () => {} }), Pl = Y.div`
|
|
9265
9280
|
display: flex;
|
|
9266
9281
|
align-items: center;
|
|
9267
9282
|
max-width: 360px;
|
|
9268
9283
|
text-overflow: ellipsis;
|
|
9269
9284
|
overflow: hidden;
|
|
9270
9285
|
white-space: nowrap;
|
|
9271
|
-
`,
|
|
9286
|
+
`, Fl = (e) => {
|
|
9272
9287
|
let t = E.useRef(null), { saveScrollHeight: n, restoreScrollHeight: r } = Ii(), { initialize: i, destroyInstance: a, scrollToBottom: o } = d();
|
|
9273
9288
|
return E.useEffect(() => {
|
|
9274
9289
|
e.open ? n() : r();
|
|
@@ -9280,7 +9295,7 @@ var Dl = Y.div`
|
|
|
9280
9295
|
n && clearTimeout(n), a();
|
|
9281
9296
|
};
|
|
9282
9297
|
}, [e.open, i]), /* @__PURE__ */ H(_t, {
|
|
9283
|
-
title: /* @__PURE__ */ H(
|
|
9298
|
+
title: /* @__PURE__ */ H(Pl, { children: e.title }),
|
|
9284
9299
|
destroyOnHidden: !0,
|
|
9285
9300
|
styles: {
|
|
9286
9301
|
container: { padding: 0 },
|
|
@@ -9299,7 +9314,7 @@ var Dl = Y.div`
|
|
|
9299
9314
|
} : {}
|
|
9300
9315
|
},
|
|
9301
9316
|
...e,
|
|
9302
|
-
children: /* @__PURE__ */ H(
|
|
9317
|
+
children: /* @__PURE__ */ H(Nl.Provider, {
|
|
9303
9318
|
value: { scrollToBottom: o },
|
|
9304
9319
|
children: /* @__PURE__ */ H("div", {
|
|
9305
9320
|
ref: t,
|
|
@@ -9317,11 +9332,11 @@ var Dl = Y.div`
|
|
|
9317
9332
|
})
|
|
9318
9333
|
})
|
|
9319
9334
|
});
|
|
9320
|
-
},
|
|
9335
|
+
}, Il = Y.ul`
|
|
9321
9336
|
list-style: none;
|
|
9322
9337
|
margin: 0;
|
|
9323
9338
|
padding: 0;
|
|
9324
|
-
`,
|
|
9339
|
+
`, Ll = Y.li`
|
|
9325
9340
|
display: flex;
|
|
9326
9341
|
align-items: center;
|
|
9327
9342
|
padding: 5px 12px;
|
|
@@ -9331,7 +9346,7 @@ var Dl = Y.div`
|
|
|
9331
9346
|
&:hover {
|
|
9332
9347
|
background-color: var(--ant-control-item-bg-hover);
|
|
9333
9348
|
}
|
|
9334
|
-
`,
|
|
9349
|
+
`, Rl = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
|
|
9335
9350
|
let a = (e) => {
|
|
9336
9351
|
let t = e.key;
|
|
9337
9352
|
r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
@@ -9339,7 +9354,7 @@ var Dl = Y.div`
|
|
|
9339
9354
|
return /* @__PURE__ */ H(l, {
|
|
9340
9355
|
style: { paddingInline: 0 },
|
|
9341
9356
|
maxHeight: e,
|
|
9342
|
-
children: /* @__PURE__ */ H(
|
|
9357
|
+
children: /* @__PURE__ */ H(Il, { children: t.map((e) => /* @__PURE__ */ U(Ll, {
|
|
9343
9358
|
selected: n.includes(e.key),
|
|
9344
9359
|
onClick: () => a(e),
|
|
9345
9360
|
children: [/* @__PURE__ */ H(K, { checked: n.includes(e.key) }), i ? i(e) : /* @__PURE__ */ H(f, {
|
|
@@ -9348,14 +9363,14 @@ var Dl = Y.div`
|
|
|
9348
9363
|
})]
|
|
9349
9364
|
}, e.key)) })
|
|
9350
9365
|
});
|
|
9351
|
-
},
|
|
9366
|
+
}, zl = Y.div`
|
|
9352
9367
|
border: 1px solid var(--ant-color-border);
|
|
9353
9368
|
border-radius: var(--ant-border-radius);
|
|
9354
9369
|
overflow-y: auto;
|
|
9355
9370
|
max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
|
|
9356
|
-
`,
|
|
9371
|
+
`, Bl = Y.div`
|
|
9357
9372
|
padding: 0;
|
|
9358
|
-
`,
|
|
9373
|
+
`, Vl = Y.div`
|
|
9359
9374
|
padding: 8px 12px 8px;
|
|
9360
9375
|
display: flex;
|
|
9361
9376
|
gap: 8px;
|
|
@@ -9363,7 +9378,7 @@ var Dl = Y.div`
|
|
|
9363
9378
|
justify-content: space-between;
|
|
9364
9379
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9365
9380
|
background-color: var(--ant-color-fill-alter);
|
|
9366
|
-
`,
|
|
9381
|
+
`, Hl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
|
|
9367
9382
|
let l = o(), [u, d] = E.useState(!1), [f, p] = E.useState(!1), [m, h] = B(""), g = R(() => n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())), [n, m]), _ = (e) => {
|
|
9368
9383
|
h(e.target.value);
|
|
9369
9384
|
}, v = (e) => {
|
|
@@ -9385,11 +9400,11 @@ var Dl = Y.div`
|
|
|
9385
9400
|
};
|
|
9386
9401
|
return F(() => {
|
|
9387
9402
|
y(r);
|
|
9388
|
-
}, [r, n]), /* @__PURE__ */ H(
|
|
9403
|
+
}, [r, n]), /* @__PURE__ */ H(zl, {
|
|
9389
9404
|
$maxHeight: e,
|
|
9390
9405
|
$leftWidth: t,
|
|
9391
9406
|
style: c?.container,
|
|
9392
|
-
children: /* @__PURE__ */ U(
|
|
9407
|
+
children: /* @__PURE__ */ U(Bl, { children: [/* @__PURE__ */ U(Vl, {
|
|
9393
9408
|
style: c?.header,
|
|
9394
9409
|
children: [/* @__PURE__ */ U("span", {
|
|
9395
9410
|
style: {
|
|
@@ -9417,7 +9432,7 @@ var Dl = Y.div`
|
|
|
9417
9432
|
},
|
|
9418
9433
|
onChange: _
|
|
9419
9434
|
})]
|
|
9420
|
-
}), g.length > 0 ? /* @__PURE__ */ H(
|
|
9435
|
+
}), g.length > 0 ? /* @__PURE__ */ H(Rl, {
|
|
9421
9436
|
maxHeight: e - 50,
|
|
9422
9437
|
dataList: g,
|
|
9423
9438
|
value: r,
|
|
@@ -9429,54 +9444,54 @@ var Dl = Y.div`
|
|
|
9429
9444
|
description: a
|
|
9430
9445
|
})] })
|
|
9431
9446
|
});
|
|
9432
|
-
},
|
|
9447
|
+
}, Ul = [
|
|
9433
9448
|
{
|
|
9434
9449
|
scope: "playground",
|
|
9435
9450
|
command: "shortcuts.playground.newmessage",
|
|
9436
|
-
keybinding:
|
|
9451
|
+
keybinding: Fs.CREATE.iconKeybinding
|
|
9437
9452
|
},
|
|
9438
9453
|
{
|
|
9439
9454
|
scope: "playground",
|
|
9440
9455
|
command: "shortcuts.playground.clearmessage",
|
|
9441
|
-
keybinding:
|
|
9456
|
+
keybinding: Fs.CLEAR.iconKeybinding
|
|
9442
9457
|
},
|
|
9443
9458
|
{
|
|
9444
9459
|
scope: "playground",
|
|
9445
9460
|
command: "shortcuts.playground.toggleparams",
|
|
9446
|
-
keybinding:
|
|
9461
|
+
keybinding: Fs.RIGHT.iconKeybinding
|
|
9447
9462
|
},
|
|
9448
9463
|
{
|
|
9449
9464
|
scope: "models",
|
|
9450
9465
|
command: "shortcuts.models.newmodelHF",
|
|
9451
|
-
keybinding:
|
|
9466
|
+
keybinding: Fs.NEW1.iconKeybinding
|
|
9452
9467
|
},
|
|
9453
9468
|
{
|
|
9454
9469
|
scope: "models",
|
|
9455
9470
|
command: "shortcuts.models.newmodelLM",
|
|
9456
|
-
keybinding:
|
|
9471
|
+
keybinding: Fs.NEW2.iconKeybinding
|
|
9457
9472
|
},
|
|
9458
9473
|
{
|
|
9459
9474
|
scope: "models",
|
|
9460
9475
|
command: "shortcuts.models.search",
|
|
9461
|
-
keybinding:
|
|
9476
|
+
keybinding: Fs.SEARCH.iconKeybinding
|
|
9462
9477
|
},
|
|
9463
9478
|
{
|
|
9464
9479
|
scope: "resources",
|
|
9465
9480
|
command: "shortcuts.resources.addworker",
|
|
9466
|
-
keybinding:
|
|
9481
|
+
keybinding: Fs.CREATE.iconKeybinding
|
|
9467
9482
|
},
|
|
9468
9483
|
{
|
|
9469
9484
|
scope: "API keys",
|
|
9470
9485
|
command: "shortcuts.apikeys.new",
|
|
9471
|
-
keybinding:
|
|
9486
|
+
keybinding: Fs.CREATE.iconKeybinding
|
|
9472
9487
|
},
|
|
9473
9488
|
{
|
|
9474
9489
|
scope: "users",
|
|
9475
9490
|
command: "shortcuts.users.new",
|
|
9476
|
-
keybinding:
|
|
9491
|
+
keybinding: Fs.CREATE.iconKeybinding
|
|
9477
9492
|
}
|
|
9478
|
-
],
|
|
9479
|
-
let [t, n] = E.useState(
|
|
9493
|
+
], Wl = ({ intl: e }) => {
|
|
9494
|
+
let [t, n] = E.useState(Ul), r = [
|
|
9480
9495
|
{
|
|
9481
9496
|
title: "Scope",
|
|
9482
9497
|
dataIndex: "scope",
|
|
@@ -9498,7 +9513,7 @@ var Dl = Y.div`
|
|
|
9498
9513
|
}
|
|
9499
9514
|
], i = Z.default.debounce((e) => {
|
|
9500
9515
|
let t = e.target.value;
|
|
9501
|
-
n(Z.default.filter(
|
|
9516
|
+
n(Z.default.filter(Ul, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
|
|
9502
9517
|
}, 300);
|
|
9503
9518
|
return /* @__PURE__ */ U("div", {
|
|
9504
9519
|
className: "short-cuts",
|
|
@@ -9532,82 +9547,82 @@ var Dl = Y.div`
|
|
|
9532
9547
|
};
|
|
9533
9548
|
//#endregion
|
|
9534
9549
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
9535
|
-
function
|
|
9550
|
+
function Gl(e) {
|
|
9536
9551
|
var t = typeof e;
|
|
9537
9552
|
return e != null && (t == "object" || t == "function");
|
|
9538
9553
|
}
|
|
9539
9554
|
//#endregion
|
|
9540
9555
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
9541
|
-
var
|
|
9542
|
-
return
|
|
9543
|
-
},
|
|
9544
|
-
function
|
|
9545
|
-
for (var t = e.length; t-- &&
|
|
9556
|
+
var Kl = typeof global == "object" && global && global.Object === Object && global, ql = typeof self == "object" && self && self.Object === Object && self, Jl = Kl || ql || Function("return this")(), Yl = function() {
|
|
9557
|
+
return Jl.Date.now();
|
|
9558
|
+
}, Xl = /\s/;
|
|
9559
|
+
function Zl(e) {
|
|
9560
|
+
for (var t = e.length; t-- && Xl.test(e.charAt(t)););
|
|
9546
9561
|
return t;
|
|
9547
9562
|
}
|
|
9548
9563
|
//#endregion
|
|
9549
9564
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
9550
|
-
var
|
|
9551
|
-
function
|
|
9552
|
-
return e && e.slice(0,
|
|
9565
|
+
var Ql = /^\s+/;
|
|
9566
|
+
function $l(e) {
|
|
9567
|
+
return e && e.slice(0, Zl(e) + 1).replace(Ql, "");
|
|
9553
9568
|
}
|
|
9554
9569
|
//#endregion
|
|
9555
9570
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
9556
|
-
var
|
|
9557
|
-
function
|
|
9558
|
-
var t =
|
|
9571
|
+
var eu = Jl.Symbol, tu = Object.prototype, nu = tu.hasOwnProperty, ru = tu.toString, iu = eu ? eu.toStringTag : void 0;
|
|
9572
|
+
function au(e) {
|
|
9573
|
+
var t = nu.call(e, iu), n = e[iu];
|
|
9559
9574
|
try {
|
|
9560
|
-
e[
|
|
9575
|
+
e[iu] = void 0;
|
|
9561
9576
|
var r = !0;
|
|
9562
9577
|
} catch {}
|
|
9563
|
-
var i =
|
|
9564
|
-
return r && (t ? e[
|
|
9578
|
+
var i = ru.call(e);
|
|
9579
|
+
return r && (t ? e[iu] = n : delete e[iu]), i;
|
|
9565
9580
|
}
|
|
9566
9581
|
//#endregion
|
|
9567
9582
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
9568
|
-
var
|
|
9569
|
-
function
|
|
9570
|
-
return
|
|
9583
|
+
var ou = Object.prototype.toString;
|
|
9584
|
+
function su(e) {
|
|
9585
|
+
return ou.call(e);
|
|
9571
9586
|
}
|
|
9572
9587
|
//#endregion
|
|
9573
9588
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
9574
|
-
var
|
|
9575
|
-
function
|
|
9576
|
-
return e == null ? e === void 0 ?
|
|
9589
|
+
var cu = "[object Null]", lu = "[object Undefined]", uu = eu ? eu.toStringTag : void 0;
|
|
9590
|
+
function du(e) {
|
|
9591
|
+
return e == null ? e === void 0 ? lu : cu : uu && uu in Object(e) ? au(e) : su(e);
|
|
9577
9592
|
}
|
|
9578
9593
|
//#endregion
|
|
9579
9594
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
9580
|
-
function
|
|
9595
|
+
function fu(e) {
|
|
9581
9596
|
return typeof e == "object" && !!e;
|
|
9582
9597
|
}
|
|
9583
9598
|
//#endregion
|
|
9584
9599
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
9585
|
-
var
|
|
9586
|
-
function
|
|
9587
|
-
return typeof e == "symbol" ||
|
|
9600
|
+
var pu = "[object Symbol]";
|
|
9601
|
+
function mu(e) {
|
|
9602
|
+
return typeof e == "symbol" || fu(e) && du(e) == pu;
|
|
9588
9603
|
}
|
|
9589
9604
|
//#endregion
|
|
9590
9605
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
9591
|
-
var
|
|
9592
|
-
function
|
|
9606
|
+
var hu = NaN, gu = /^[-+]0x[0-9a-f]+$/i, _u = /^0b[01]+$/i, vu = /^0o[0-7]+$/i, yu = parseInt;
|
|
9607
|
+
function bu(e) {
|
|
9593
9608
|
if (typeof e == "number") return e;
|
|
9594
|
-
if (
|
|
9595
|
-
if (
|
|
9609
|
+
if (mu(e)) return hu;
|
|
9610
|
+
if (Gl(e)) {
|
|
9596
9611
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
9597
|
-
e =
|
|
9612
|
+
e = Gl(t) ? t + "" : t;
|
|
9598
9613
|
}
|
|
9599
9614
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
9600
|
-
e =
|
|
9601
|
-
var n =
|
|
9602
|
-
return n ||
|
|
9615
|
+
e = $l(e);
|
|
9616
|
+
var n = _u.test(e);
|
|
9617
|
+
return n || vu.test(e) ? yu(e.slice(2), n ? 2 : 8) : gu.test(e) ? hu : +e;
|
|
9603
9618
|
}
|
|
9604
9619
|
//#endregion
|
|
9605
9620
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
9606
|
-
var
|
|
9607
|
-
function
|
|
9621
|
+
var xu = "Expected a function", Su = Math.max, Cu = Math.min;
|
|
9622
|
+
function wu(e, t, n) {
|
|
9608
9623
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
9609
|
-
if (typeof e != "function") throw TypeError(
|
|
9610
|
-
t =
|
|
9624
|
+
if (typeof e != "function") throw TypeError(xu);
|
|
9625
|
+
t = bu(t) || 0, Gl(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? Su(bu(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
|
|
9611
9626
|
function p(t) {
|
|
9612
9627
|
var n = r, a = i;
|
|
9613
9628
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -9617,14 +9632,14 @@ function Su(e, t, n) {
|
|
|
9617
9632
|
}
|
|
9618
9633
|
function h(e) {
|
|
9619
9634
|
var n = e - c, r = e - l, i = t - n;
|
|
9620
|
-
return d ?
|
|
9635
|
+
return d ? Cu(i, a - r) : i;
|
|
9621
9636
|
}
|
|
9622
9637
|
function g(e) {
|
|
9623
9638
|
var n = e - c, r = e - l;
|
|
9624
9639
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
9625
9640
|
}
|
|
9626
9641
|
function _() {
|
|
9627
|
-
var e =
|
|
9642
|
+
var e = Yl();
|
|
9628
9643
|
if (g(e)) return v(e);
|
|
9629
9644
|
s = setTimeout(_, h(e));
|
|
9630
9645
|
}
|
|
@@ -9635,10 +9650,10 @@ function Su(e, t, n) {
|
|
|
9635
9650
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
9636
9651
|
}
|
|
9637
9652
|
function b() {
|
|
9638
|
-
return s === void 0 ? o : v(
|
|
9653
|
+
return s === void 0 ? o : v(Yl());
|
|
9639
9654
|
}
|
|
9640
9655
|
function x() {
|
|
9641
|
-
var e =
|
|
9656
|
+
var e = Yl(), n = g(e);
|
|
9642
9657
|
if (r = arguments, i = this, c = e, n) {
|
|
9643
9658
|
if (s === void 0) return m(c);
|
|
9644
9659
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -9649,11 +9664,11 @@ function Su(e, t, n) {
|
|
|
9649
9664
|
}
|
|
9650
9665
|
//#endregion
|
|
9651
9666
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
9652
|
-
var
|
|
9653
|
-
function
|
|
9667
|
+
var Tu = "Expected a function";
|
|
9668
|
+
function Eu(e, t, n) {
|
|
9654
9669
|
var r = !0, i = !0;
|
|
9655
|
-
if (typeof e != "function") throw TypeError(
|
|
9656
|
-
return
|
|
9670
|
+
if (typeof e != "function") throw TypeError(Tu);
|
|
9671
|
+
return Gl(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), wu(e, t, {
|
|
9657
9672
|
leading: r,
|
|
9658
9673
|
maxWait: t,
|
|
9659
9674
|
trailing: i
|
|
@@ -9661,19 +9676,19 @@ function wu(e, t, n) {
|
|
|
9661
9676
|
}
|
|
9662
9677
|
//#endregion
|
|
9663
9678
|
//#region ../../node_modules/.pnpm/simplebar-core@1.3.2/node_modules/simplebar-core/dist/index.mjs
|
|
9664
|
-
var
|
|
9665
|
-
return
|
|
9679
|
+
var Du = function() {
|
|
9680
|
+
return Du = Object.assign || function(e) {
|
|
9666
9681
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
9667
9682
|
return e;
|
|
9668
|
-
},
|
|
9683
|
+
}, Du.apply(this, arguments);
|
|
9669
9684
|
};
|
|
9670
|
-
function
|
|
9685
|
+
function Ou(e) {
|
|
9671
9686
|
return !e || !e.ownerDocument || !e.ownerDocument.defaultView ? window : e.ownerDocument.defaultView;
|
|
9672
9687
|
}
|
|
9673
|
-
function
|
|
9688
|
+
function ku(e) {
|
|
9674
9689
|
return !e || !e.ownerDocument ? document : e.ownerDocument;
|
|
9675
9690
|
}
|
|
9676
|
-
var
|
|
9691
|
+
var Au = function(e) {
|
|
9677
9692
|
return Array.prototype.reduce.call(e, function(e, t) {
|
|
9678
9693
|
var n = t.name.match(/data-simplebar-(.+)/);
|
|
9679
9694
|
if (n) {
|
|
@@ -9696,58 +9711,58 @@ var Ou = function(e) {
|
|
|
9696
9711
|
return e;
|
|
9697
9712
|
}, {});
|
|
9698
9713
|
};
|
|
9699
|
-
function
|
|
9714
|
+
function ju(e, t) {
|
|
9700
9715
|
var n;
|
|
9701
9716
|
e && (n = e.classList).add.apply(n, t.split(" "));
|
|
9702
9717
|
}
|
|
9703
|
-
function
|
|
9718
|
+
function Mu(e, t) {
|
|
9704
9719
|
e && t.split(" ").forEach(function(t) {
|
|
9705
9720
|
e.classList.remove(t);
|
|
9706
9721
|
});
|
|
9707
9722
|
}
|
|
9708
|
-
function
|
|
9723
|
+
function Nu(e) {
|
|
9709
9724
|
return `.${e.split(" ").join(".")}`;
|
|
9710
9725
|
}
|
|
9711
|
-
var
|
|
9726
|
+
var Pu = !!(typeof window < "u" && window.document && window.document.createElement), Fu = /* @__PURE__ */ Object.freeze({
|
|
9712
9727
|
__proto__: null,
|
|
9713
|
-
addClasses:
|
|
9714
|
-
canUseDOM:
|
|
9715
|
-
classNamesToQuery:
|
|
9716
|
-
getElementDocument:
|
|
9717
|
-
getElementWindow:
|
|
9718
|
-
getOptions:
|
|
9719
|
-
removeClasses:
|
|
9720
|
-
}),
|
|
9721
|
-
|
|
9722
|
-
|
|
9728
|
+
addClasses: ju,
|
|
9729
|
+
canUseDOM: Pu,
|
|
9730
|
+
classNamesToQuery: Nu,
|
|
9731
|
+
getElementDocument: ku,
|
|
9732
|
+
getElementWindow: Ou,
|
|
9733
|
+
getOptions: Au,
|
|
9734
|
+
removeClasses: Mu
|
|
9735
|
+
}), Iu = null, Lu = null;
|
|
9736
|
+
Pu && window.addEventListener("resize", function() {
|
|
9737
|
+
Lu !== window.devicePixelRatio && (Lu = window.devicePixelRatio, Iu = null);
|
|
9723
9738
|
});
|
|
9724
|
-
function
|
|
9725
|
-
if (
|
|
9726
|
-
if (typeof document > "u") return
|
|
9739
|
+
function Ru() {
|
|
9740
|
+
if (Iu === null) {
|
|
9741
|
+
if (typeof document > "u") return Iu = 0, Iu;
|
|
9727
9742
|
var e = document.body, t = document.createElement("div");
|
|
9728
9743
|
t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
|
|
9729
9744
|
var n = t.getBoundingClientRect().right;
|
|
9730
|
-
e.removeChild(t),
|
|
9745
|
+
e.removeChild(t), Iu = n;
|
|
9731
9746
|
}
|
|
9732
|
-
return
|
|
9747
|
+
return Iu;
|
|
9733
9748
|
}
|
|
9734
|
-
var
|
|
9749
|
+
var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
9735
9750
|
function e(t, n) {
|
|
9736
9751
|
n === void 0 && (n = {});
|
|
9737
9752
|
var r = this;
|
|
9738
9753
|
if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.isDragging = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {}, this.onWindowResize = function() {}, this.onStopScrolling = function() {}, this.onMouseEntered = function() {}, this.onScroll = function() {
|
|
9739
|
-
var e =
|
|
9740
|
-
r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0,
|
|
9754
|
+
var e = zu(r.el);
|
|
9755
|
+
r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0, Hu(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
|
|
9741
9756
|
}, this.scrollX = function() {
|
|
9742
9757
|
r.axis.x.isOverflowing && r.positionScrollbar("x"), r.scrollXTicking = !1;
|
|
9743
9758
|
}, this.scrollY = function() {
|
|
9744
9759
|
r.axis.y.isOverflowing && r.positionScrollbar("y"), r.scrollYTicking = !1;
|
|
9745
9760
|
}, this._onStopScrolling = function() {
|
|
9746
|
-
|
|
9761
|
+
Uu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
|
|
9747
9762
|
}, this.onMouseEnter = function() {
|
|
9748
|
-
r.isMouseEntering ||= (
|
|
9763
|
+
r.isMouseEntering ||= (Hu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
|
|
9749
9764
|
}, this._onMouseEntered = function() {
|
|
9750
|
-
|
|
9765
|
+
Uu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
|
|
9751
9766
|
}, this._onMouseMove = function(e) {
|
|
9752
9767
|
r.mouseX = e.clientX, r.mouseY = e.clientY, (r.axis.x.isOverflowing || r.axis.x.forceVisible) && r.onMouseMoveForAxis("x"), (r.axis.y.isOverflowing || r.axis.y.forceVisible) && r.onMouseMoveForAxis("y");
|
|
9753
9768
|
}, this.onMouseLeave = function() {
|
|
@@ -9770,13 +9785,13 @@ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
|
|
|
9770
9785
|
}
|
|
9771
9786
|
}, this.onEndDrag = function(e) {
|
|
9772
9787
|
r.isDragging = !1;
|
|
9773
|
-
var t =
|
|
9774
|
-
e.preventDefault(), e.stopPropagation(),
|
|
9788
|
+
var t = Bu(r.el), n = zu(r.el);
|
|
9789
|
+
e.preventDefault(), e.stopPropagation(), Uu(r.el, r.classNames.dragging), r.onStopScrolling(), t.removeEventListener("mousemove", r.drag, !0), t.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = n.setTimeout(function() {
|
|
9775
9790
|
t.removeEventListener("click", r.preventClick, !0), t.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
|
|
9776
9791
|
});
|
|
9777
9792
|
}, this.preventClick = function(e) {
|
|
9778
9793
|
e.preventDefault(), e.stopPropagation();
|
|
9779
|
-
}, this.el = t, this.options =
|
|
9794
|
+
}, this.el = t, this.options = Du(Du({}, e.defaultOptions), n), this.classNames = Du(Du({}, e.defaultOptions.classNames), n.classNames), this.axis = {
|
|
9780
9795
|
x: {
|
|
9781
9796
|
scrollOffsetAttr: "scrollLeft",
|
|
9782
9797
|
sizeAttr: "width",
|
|
@@ -9824,7 +9839,7 @@ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
|
|
|
9824
9839
|
}
|
|
9825
9840
|
}
|
|
9826
9841
|
}, typeof this.el != "object" || !this.el.nodeName) throw Error(`Argument passed to SimpleBar must be an HTML element instead of ${this.el}`);
|
|
9827
|
-
this.onMouseMove =
|
|
9842
|
+
this.onMouseMove = Eu(this._onMouseMove, 64), this.onWindowResize = wu(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = wu(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = wu(this._onMouseEntered, this.stopScrollDelay), this.init();
|
|
9828
9843
|
}
|
|
9829
9844
|
return e.getRtlHelpers = function() {
|
|
9830
9845
|
if (e.rtlHelpers) return e.rtlHelpers;
|
|
@@ -9842,22 +9857,22 @@ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
|
|
|
9842
9857
|
}, e.rtlHelpers;
|
|
9843
9858
|
}, e.prototype.getScrollbarWidth = function() {
|
|
9844
9859
|
try {
|
|
9845
|
-
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 :
|
|
9860
|
+
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : Ru();
|
|
9846
9861
|
} catch {
|
|
9847
|
-
return
|
|
9862
|
+
return Ru();
|
|
9848
9863
|
}
|
|
9849
9864
|
}, e.getOffset = function(e) {
|
|
9850
|
-
var t = e.getBoundingClientRect(), n =
|
|
9865
|
+
var t = e.getBoundingClientRect(), n = Bu(e), r = zu(e);
|
|
9851
9866
|
return {
|
|
9852
9867
|
top: t.top + (r.pageYOffset || n.documentElement.scrollTop),
|
|
9853
9868
|
left: t.left + (r.pageXOffset || n.documentElement.scrollLeft)
|
|
9854
9869
|
};
|
|
9855
9870
|
}, e.prototype.init = function() {
|
|
9856
|
-
|
|
9871
|
+
Pu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
9857
9872
|
}, e.prototype.initDOM = function() {
|
|
9858
|
-
this.wrapperEl = this.el.querySelector(
|
|
9873
|
+
this.wrapperEl = this.el.querySelector(Wu(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Wu(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Wu(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Wu(this.classNames.offset)), this.maskEl = this.el.querySelector(Wu(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Wu(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Wu(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Wu(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Wu(this.classNames.track)}${Wu(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Wu(this.classNames.track)}${Wu(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Wu(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Wu(this.classNames.scrollbar)) || null, this.options.autoHide || (Hu(this.axis.x.scrollbar.el, this.classNames.visible), Hu(this.axis.y.scrollbar.el, this.classNames.visible));
|
|
9859
9874
|
}, e.prototype.initListeners = function() {
|
|
9860
|
-
var e = this, t, n =
|
|
9875
|
+
var e = this, t, n = zu(this.el);
|
|
9861
9876
|
if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (t = this.contentWrapperEl) == null || t.addEventListener("scroll", this.onScroll), n.addEventListener("resize", this.onWindowResize), this.contentEl) {
|
|
9862
9877
|
if (window.ResizeObserver) {
|
|
9863
9878
|
var r = !1, i = n.ResizeObserver || ResizeObserver;
|
|
@@ -9881,7 +9896,7 @@ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
|
|
|
9881
9896
|
}
|
|
9882
9897
|
}, e.prototype.recalculate = function() {
|
|
9883
9898
|
if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
|
|
9884
|
-
var e =
|
|
9899
|
+
var e = zu(this.el);
|
|
9885
9900
|
this.elStyles = e.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
9886
9901
|
var t = this.contentEl.offsetWidth, n = this.heightAutoObserverEl.offsetHeight <= 1, r = this.heightAutoObserverEl.offsetWidth <= 1 || t > 0, i = this.contentWrapperEl.offsetWidth, a = this.elStyles.overflowX, o = this.elStyles.overflowY;
|
|
9887
9902
|
this.contentEl.style.padding = `${this.elStyles.paddingTop} ${this.elStyles.paddingRight} ${this.elStyles.paddingBottom} ${this.elStyles.paddingLeft}`, this.wrapperEl.style.margin = `-${this.elStyles.paddingTop} -${this.elStyles.paddingRight} -${this.elStyles.paddingBottom} -${this.elStyles.paddingLeft}`;
|
|
@@ -9910,28 +9925,28 @@ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
|
|
|
9910
9925
|
var t = this.axis[e].track.el, n = this.axis[e].scrollbar.el;
|
|
9911
9926
|
!t || !n || !this.contentWrapperEl || (this.axis[e].isOverflowing || this.axis[e].forceVisible ? (t.style.visibility = "visible", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "scroll", this.el.classList.add(`${this.classNames.scrollable}-${e}`)) : (t.style.visibility = "hidden", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "hidden", this.el.classList.remove(`${this.classNames.scrollable}-${e}`)), this.axis[e].isOverflowing ? n.style.display = "block" : n.style.display = "none");
|
|
9912
9927
|
}, e.prototype.showScrollbar = function(e) {
|
|
9913
|
-
e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (
|
|
9928
|
+
e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (Hu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !0);
|
|
9914
9929
|
}, e.prototype.hideScrollbar = function(e) {
|
|
9915
|
-
e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (
|
|
9930
|
+
e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (Uu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !1);
|
|
9916
9931
|
}, e.prototype.hideNativeScrollbar = function() {
|
|
9917
9932
|
this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? `-${this.scrollbarWidth}px` : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? `-${this.scrollbarWidth}px` : "0px");
|
|
9918
9933
|
}, e.prototype.onMouseMoveForAxis = function(e) {
|
|
9919
9934
|
e === void 0 && (e = "y");
|
|
9920
9935
|
var t = this.axis[e];
|
|
9921
|
-
!t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e),
|
|
9936
|
+
!t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e), Hu(t.track.el, this.classNames.hover), this.isWithinBounds(t.scrollbar.rect) ? Hu(t.scrollbar.el, this.classNames.hover) : Uu(t.scrollbar.el, this.classNames.hover)) : (Uu(t.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e)));
|
|
9922
9937
|
}, e.prototype.onMouseLeaveForAxis = function(e) {
|
|
9923
|
-
e === void 0 && (e = "y"),
|
|
9938
|
+
e === void 0 && (e = "y"), Uu(this.axis[e].track.el, this.classNames.hover), Uu(this.axis[e].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e);
|
|
9924
9939
|
}, e.prototype.onDragStart = function(e, t) {
|
|
9925
9940
|
t === void 0 && (t = "y"), this.isDragging = !0;
|
|
9926
|
-
var n =
|
|
9927
|
-
this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t,
|
|
9941
|
+
var n = Bu(this.el), r = zu(this.el), i = this.axis[t].scrollbar, a = t === "y" ? e.pageY : e.pageX;
|
|
9942
|
+
this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t, Hu(this.el, this.classNames.dragging), n.addEventListener("mousemove", this.drag, !0), n.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (n.addEventListener("click", this.preventClick, !0), n.addEventListener("dblclick", this.preventClick, !0)) : (r.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
9928
9943
|
}, e.prototype.onTrackClick = function(e, t) {
|
|
9929
9944
|
var n = this;
|
|
9930
9945
|
t === void 0 && (t = "y");
|
|
9931
9946
|
var r = this.axis[t];
|
|
9932
9947
|
if (!(!this.options.clickOnTrack || !r.scrollbar.el || !this.contentWrapperEl)) {
|
|
9933
9948
|
e.preventDefault();
|
|
9934
|
-
var i =
|
|
9949
|
+
var i = zu(this.el);
|
|
9935
9950
|
this.axis[t].scrollbar.rect = r.scrollbar.el.getBoundingClientRect();
|
|
9936
9951
|
var a = this.axis[t].scrollbar.rect?.[this.axis[t].offsetAttr] ?? 0, o = parseInt(this.elStyles?.[this.axis[t].sizeAttr] ?? "0px", 10), s = this.contentWrapperEl[this.axis[t].scrollOffsetAttr], c = (t === "y" ? this.mouseY - a : this.mouseX - a) < 0 ? -1 : 1, l = c === -1 ? s - o : s + o, u = 40, d = function() {
|
|
9937
9952
|
n.contentWrapperEl && (c === -1 ? s > l && (s -= u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)) : s < l && (s += u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)));
|
|
@@ -9943,7 +9958,7 @@ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
|
|
|
9943
9958
|
}, e.prototype.getScrollElement = function() {
|
|
9944
9959
|
return this.contentWrapperEl;
|
|
9945
9960
|
}, e.prototype.removeListeners = function() {
|
|
9946
|
-
var e =
|
|
9961
|
+
var e = zu(this.el);
|
|
9947
9962
|
this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("pointerdown", this.onPointerEvent, !0), this.el.removeEventListener("mousemove", this.onMouseMove), this.el.removeEventListener("mouseleave", this.onMouseLeave), this.contentWrapperEl && this.contentWrapperEl.removeEventListener("scroll", this.onScroll), e.removeEventListener("resize", this.onWindowResize), this.mutationObserver && this.mutationObserver.disconnect(), this.resizeObserver && this.resizeObserver.disconnect(), this.onMouseMove.cancel(), this.onWindowResize.cancel(), this.onStopScrolling.cancel(), this.onMouseEntered.cancel();
|
|
9948
9963
|
}, e.prototype.unMount = function() {
|
|
9949
9964
|
this.removeListeners();
|
|
@@ -9984,52 +9999,52 @@ var Lu = Eu, Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = function() {
|
|
|
9984
9999
|
scrollableNode: null,
|
|
9985
10000
|
contentNode: null,
|
|
9986
10001
|
autoHide: !0
|
|
9987
|
-
}, e.getOptions =
|
|
9988
|
-
}(),
|
|
9989
|
-
return
|
|
10002
|
+
}, e.getOptions = Vu, e.helpers = Fu, e;
|
|
10003
|
+
}(), Ku = function() {
|
|
10004
|
+
return Ku = Object.assign || function(e) {
|
|
9990
10005
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
9991
10006
|
return e;
|
|
9992
|
-
},
|
|
10007
|
+
}, Ku.apply(this, arguments);
|
|
9993
10008
|
};
|
|
9994
|
-
function
|
|
10009
|
+
function qu(e, t) {
|
|
9995
10010
|
var n = {};
|
|
9996
10011
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
9997
10012
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
9998
10013
|
return n;
|
|
9999
10014
|
}
|
|
10000
|
-
var
|
|
10001
|
-
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a =
|
|
10015
|
+
var Ju = T.forwardRef(function(e, t) {
|
|
10016
|
+
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a = qu(e, ["children", "scrollableNodeProps"]), o = T.useRef(), s = T.useRef(), c = T.useRef(), l = {}, u = {};
|
|
10002
10017
|
Object.keys(a).forEach(function(e) {
|
|
10003
|
-
Object.prototype.hasOwnProperty.call(
|
|
10018
|
+
Object.prototype.hasOwnProperty.call(Gu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
|
|
10004
10019
|
});
|
|
10005
|
-
var d =
|
|
10020
|
+
var d = Ku(Ku({}, Gu.defaultOptions.classNames), l.classNames), f = Ku(Ku({}, i), {
|
|
10006
10021
|
className: `${d.contentWrapper}${i.className ? ` ${i.className}` : ""}`,
|
|
10007
|
-
tabIndex: l.tabIndex ||
|
|
10022
|
+
tabIndex: l.tabIndex || Gu.defaultOptions.tabIndex,
|
|
10008
10023
|
role: "region",
|
|
10009
|
-
"aria-label": l.ariaLabel ||
|
|
10024
|
+
"aria-label": l.ariaLabel || Gu.defaultOptions.ariaLabel
|
|
10010
10025
|
});
|
|
10011
10026
|
return T.useEffect(function() {
|
|
10012
10027
|
var e;
|
|
10013
|
-
return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new
|
|
10028
|
+
return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new Gu(o.current, Ku(Ku(Ku({}, l), s.current && { scrollableNode: s.current }), c.current && { contentNode: c.current })), typeof t == "function" ? t(e) : t && (t.current = e)), function() {
|
|
10014
10029
|
e?.unMount(), e = null, typeof t == "function" && t(null);
|
|
10015
10030
|
};
|
|
10016
|
-
}, []), T.createElement("div",
|
|
10031
|
+
}, []), T.createElement("div", Ku({
|
|
10017
10032
|
"data-simplebar": "init",
|
|
10018
10033
|
ref: o
|
|
10019
10034
|
}, u), T.createElement("div", { className: d.wrapper }, T.createElement("div", { className: d.heightAutoObserverWrapperEl }, T.createElement("div", { className: d.heightAutoObserverEl })), T.createElement("div", { className: d.mask }, T.createElement("div", { className: d.offset }, typeof n == "function" ? n({
|
|
10020
10035
|
scrollableNodeRef: s,
|
|
10021
|
-
scrollableNodeProps:
|
|
10036
|
+
scrollableNodeProps: Ku(Ku({}, f), { ref: s }),
|
|
10022
10037
|
contentNodeRef: c,
|
|
10023
10038
|
contentNodeProps: {
|
|
10024
10039
|
className: d.contentEl,
|
|
10025
10040
|
ref: c
|
|
10026
10041
|
}
|
|
10027
|
-
}) : T.createElement("div",
|
|
10042
|
+
}) : T.createElement("div", Ku({}, f), T.createElement("div", { className: d.contentEl }, n)))), T.createElement("div", { className: d.placeholder })), T.createElement("div", { className: `${d.track} ${d.horizontal}` }, T.createElement("div", { className: d.scrollbar })), T.createElement("div", { className: `${d.track} ${d.vertical}` }, T.createElement("div", { className: d.scrollbar })));
|
|
10028
10043
|
});
|
|
10029
|
-
|
|
10044
|
+
Ju.displayName = "SimpleBar";
|
|
10030
10045
|
//#endregion
|
|
10031
10046
|
//#region src/lib/components/simple-overlay/index.tsx
|
|
10032
|
-
var
|
|
10047
|
+
var Yu = Y.div`
|
|
10033
10048
|
.simplebar-scrollbar::before {
|
|
10034
10049
|
width: var(--scrollbar-size);
|
|
10035
10050
|
background: var(--scrollbar-handle-bg);
|
|
@@ -10040,7 +10055,7 @@ var qu = Y.div`
|
|
|
10040
10055
|
background: var(--scrollbar-handle-light-bg);
|
|
10041
10056
|
}
|
|
10042
10057
|
}
|
|
10043
|
-
`,
|
|
10058
|
+
`, Xu = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: i }) => {
|
|
10044
10059
|
let { config: o } = a(), { isDarkTheme: s } = o, c = E.useRef(null);
|
|
10045
10060
|
return F(() => {
|
|
10046
10061
|
let e = (e) => {
|
|
@@ -10054,9 +10069,9 @@ var qu = Y.div`
|
|
|
10054
10069
|
e,
|
|
10055
10070
|
r,
|
|
10056
10071
|
i
|
|
10057
|
-
]), /* @__PURE__ */ H(
|
|
10072
|
+
]), /* @__PURE__ */ H(Yu, {
|
|
10058
10073
|
className: s ? "dark" : "light",
|
|
10059
|
-
children: /* @__PURE__ */ H(
|
|
10074
|
+
children: /* @__PURE__ */ H(Ju, {
|
|
10060
10075
|
ref: c,
|
|
10061
10076
|
style: {
|
|
10062
10077
|
height: e,
|
|
@@ -10065,13 +10080,13 @@ var qu = Y.div`
|
|
|
10065
10080
|
children: t
|
|
10066
10081
|
})
|
|
10067
10082
|
});
|
|
10068
|
-
},
|
|
10083
|
+
}, Zu = E.memo(({ columns: e }) => {
|
|
10069
10084
|
let t = o();
|
|
10070
10085
|
return /* @__PURE__ */ H("tr", { children: e.map((e, n) => /* @__PURE__ */ H("th", { children: /* @__PURE__ */ H("span", {
|
|
10071
10086
|
className: "cell-span cell-header",
|
|
10072
10087
|
children: e.locale ? t.formatMessage({ id: e.title }) : e.title
|
|
10073
10088
|
}) }, n)) });
|
|
10074
|
-
}),
|
|
10089
|
+
}), Qu = (e) => {
|
|
10075
10090
|
let { row: t, column: n, rowIndex: r, colIndex: i, dataList: a } = e;
|
|
10076
10091
|
return R(() => n.render ? n.render({
|
|
10077
10092
|
dataIndex: n.key,
|
|
@@ -10113,24 +10128,24 @@ var qu = Y.div`
|
|
|
10113
10128
|
}) : t[n.key]
|
|
10114
10129
|
})
|
|
10115
10130
|
}, i);
|
|
10116
|
-
},
|
|
10131
|
+
}, $u = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Qu, {
|
|
10117
10132
|
rowIndex: n,
|
|
10118
10133
|
colIndex: i,
|
|
10119
10134
|
dataList: r,
|
|
10120
10135
|
row: e,
|
|
10121
10136
|
column: t
|
|
10122
|
-
}, i)) }),
|
|
10137
|
+
}, i)) }), ed = (e) => {
|
|
10123
10138
|
let { columns: t, dataSource: n, rowKey: r, theme: i, bordered: a = !0 } = e;
|
|
10124
10139
|
return /* @__PURE__ */ H("div", { children: /* @__PURE__ */ U("table", {
|
|
10125
10140
|
className: (0, X.default)("simple-table", i, { "simple-table-bordered": a }),
|
|
10126
|
-
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(
|
|
10141
|
+
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(Zu, { columns: t }) }), /* @__PURE__ */ H("tbody", { children: n.map((e, i) => /* @__PURE__ */ H($u, {
|
|
10127
10142
|
row: e,
|
|
10128
10143
|
rowIndex: i,
|
|
10129
10144
|
columns: t,
|
|
10130
10145
|
dataList: n
|
|
10131
10146
|
}, e[r])) })]
|
|
10132
10147
|
}) });
|
|
10133
|
-
},
|
|
10148
|
+
}, td = (e) => {
|
|
10134
10149
|
let { data: t, fieldList: n, style: r } = e, i = o();
|
|
10135
10150
|
return /* @__PURE__ */ H("span", {
|
|
10136
10151
|
className: "flex",
|
|
@@ -10154,7 +10169,7 @@ var qu = Y.div`
|
|
|
10154
10169
|
}) : null]
|
|
10155
10170
|
}, e.key || r))
|
|
10156
10171
|
});
|
|
10157
|
-
},
|
|
10172
|
+
}, nd = A((e, t) => {
|
|
10158
10173
|
let { autoplay: n = !1 } = e, r = E.useRef(null), i = z(null), a = z(null), o = z(null), s = N(() => {
|
|
10159
10174
|
i.current = new (window.AudioContext || window.webkitAudioContext)(), a.current = i.current.createAnalyser(), a.current.fftSize = 512, o.current = new Uint8Array(a.current.frequencyBinCount);
|
|
10160
10175
|
}, []), c = N(() => {
|
|
@@ -10220,7 +10235,7 @@ var qu = Y.div`
|
|
|
10220
10235
|
},
|
|
10221
10236
|
preload: "metadata"
|
|
10222
10237
|
});
|
|
10223
|
-
}),
|
|
10238
|
+
}), rd = A((e, t) => {
|
|
10224
10239
|
let { isStream: n } = e;
|
|
10225
10240
|
console.log("Rendering SpeechItem with props:", e.isStream, e.analyserData);
|
|
10226
10241
|
let r = o(), [i, a] = B(e.autoplay || e.isPlaying), [s, c] = B(0), [l, u] = B({
|
|
@@ -10281,7 +10296,7 @@ var qu = Y.div`
|
|
|
10281
10296
|
g.current?.seekTo(e / s), f(e);
|
|
10282
10297
|
}, []);
|
|
10283
10298
|
let A = () => e.format === "pcm" ? "wav" : e.format, j = N(() => {
|
|
10284
|
-
let t = e.audioUrl || "", n = `audio-${(0,
|
|
10299
|
+
let t = e.audioUrl || "", n = `audio-${(0, ia.default)().format("YYYYMMDDHHmmss")}.${A()}`, r = document.createElement("a");
|
|
10285
10300
|
r.href = t, r.download = n, document.body.appendChild(r), r.click(), r.remove();
|
|
10286
10301
|
}, [e.audioUrl, e.format]);
|
|
10287
10302
|
console.log("isPCMStream:", _, i), console.log("props.analyserData:", e.analyserData);
|
|
@@ -10338,7 +10353,7 @@ var qu = Y.div`
|
|
|
10338
10353
|
width: "100%"
|
|
10339
10354
|
},
|
|
10340
10355
|
ref: h,
|
|
10341
|
-
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(
|
|
10356
|
+
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(nd, {
|
|
10342
10357
|
...e,
|
|
10343
10358
|
url: e.audioUrl,
|
|
10344
10359
|
onReady: k,
|
|
@@ -10358,7 +10373,7 @@ var qu = Y.div`
|
|
|
10358
10373
|
})] })
|
|
10359
10374
|
})
|
|
10360
10375
|
}), M()] });
|
|
10361
|
-
}),
|
|
10376
|
+
}), id = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(rd, {
|
|
10362
10377
|
...t,
|
|
10363
10378
|
isStream: e.isStream,
|
|
10364
10379
|
isPlaying: e.isPlaying,
|
|
@@ -10366,12 +10381,12 @@ var qu = Y.div`
|
|
|
10366
10381
|
onPause: e.onPause,
|
|
10367
10382
|
ref: e.playerRef,
|
|
10368
10383
|
analyserData: e.analyserData
|
|
10369
|
-
}, t.uid)) }),
|
|
10384
|
+
}, t.uid)) }), ad = Y.span`
|
|
10370
10385
|
white-space: nowrap;
|
|
10371
10386
|
overflow: hidden;
|
|
10372
10387
|
text-overflow: ellipsis;
|
|
10373
|
-
`,
|
|
10374
|
-
let { text: s, status: l } = t, d = R(() =>
|
|
10388
|
+
`, od = /<a (.*?)>(.*?)<\/a>/g, sd = ({ style: e, statusValue: t, download: n, extra: r, actions: i = [], maxTooltipWidth: a = 250, suffix: o }) => {
|
|
10389
|
+
let { text: s, status: l } = t, d = R(() => Gi[l], [l]), f = R(() => t.message ? od.test(t.message || "") : !1, [t.message]), p = R(() => t.message ? t.message?.match(od) ? t.message?.replace(od, "<a $1 target=\"_blank\">$2</a>") : t.message : "", [t.message]), m = () => {
|
|
10375
10390
|
let e = n?.percent || 0;
|
|
10376
10391
|
return n && e > 0 && e <= 100 ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("span", {
|
|
10377
10392
|
className: "progress",
|
|
@@ -10379,7 +10394,7 @@ var qu = Y.div`
|
|
|
10379
10394
|
}), /* @__PURE__ */ H("span", {
|
|
10380
10395
|
className: "download",
|
|
10381
10396
|
style: { width: `${Z.default.round(e, 0)}%` }
|
|
10382
|
-
})] }) : /* @__PURE__ */ H(
|
|
10397
|
+
})] }) : /* @__PURE__ */ H(ad, { children: s });
|
|
10383
10398
|
}, h = /* @__PURE__ */ U("div", {
|
|
10384
10399
|
className: "status-content-wrapper",
|
|
10385
10400
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -10445,7 +10460,7 @@ var qu = Y.div`
|
|
|
10445
10460
|
children: [m(), o && /* @__PURE__ */ H("span", { children: o })]
|
|
10446
10461
|
})
|
|
10447
10462
|
});
|
|
10448
|
-
},
|
|
10463
|
+
}, cd = {
|
|
10449
10464
|
mask: "styles-module__mask___fnLBF",
|
|
10450
10465
|
maskOpen: "styles-module__maskOpen___KKROU",
|
|
10451
10466
|
overlay: "styles-module__overlay___8EcfD",
|
|
@@ -10455,7 +10470,7 @@ var qu = Y.div`
|
|
|
10455
10470
|
subTitle: "styles-module__subTitle___vunlj",
|
|
10456
10471
|
content: "styles-module__content___d1qHZ",
|
|
10457
10472
|
footer: "styles-module__footer___wE8uH"
|
|
10458
|
-
},
|
|
10473
|
+
}, ld = ({ title: e, open: t, onCancel: n, onSubmit: r, children: i, subTitle: a, footer: o, width: s = 600, className: c, style: l, maskClosable: u = !1, styles: d, getContainer: f }) => {
|
|
10459
10474
|
let [p, m] = E.useState(null), [h, g] = E.useState(!1), [_, v] = E.useState(!1), y = zt(() => {
|
|
10460
10475
|
let e = document.querySelectorAll(".ant-layout-content");
|
|
10461
10476
|
return e[e.length - 1] ?? null;
|
|
@@ -10479,11 +10494,11 @@ var qu = Y.div`
|
|
|
10479
10494
|
e.target !== e.currentTarget || e.propertyName !== "transform" || !t && !_ && (g(!1), m(null));
|
|
10480
10495
|
};
|
|
10481
10496
|
return !h || !p ? null : Ht(/* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
|
|
10482
|
-
className: (0, X.default)(
|
|
10497
|
+
className: (0, X.default)(cd.mask, _ && cd.maskOpen),
|
|
10483
10498
|
style: d?.mask,
|
|
10484
10499
|
onClick: u ? n : void 0
|
|
10485
10500
|
}), /* @__PURE__ */ U("div", {
|
|
10486
|
-
className: (0, X.default)(
|
|
10501
|
+
className: (0, X.default)(cd.overlay, _ && cd.overlayOpen, c),
|
|
10487
10502
|
style: {
|
|
10488
10503
|
width: s,
|
|
10489
10504
|
...l,
|
|
@@ -10493,7 +10508,7 @@ var qu = Y.div`
|
|
|
10493
10508
|
"aria-modal": "true",
|
|
10494
10509
|
onTransitionEnd: b,
|
|
10495
10510
|
children: [/* @__PURE__ */ U("div", {
|
|
10496
|
-
className:
|
|
10511
|
+
className: cd.header,
|
|
10497
10512
|
style: d?.header,
|
|
10498
10513
|
children: [/* @__PURE__ */ H(G, {
|
|
10499
10514
|
type: "text",
|
|
@@ -10508,16 +10523,16 @@ var qu = Y.div`
|
|
|
10508
10523
|
}),
|
|
10509
10524
|
onClick: n
|
|
10510
10525
|
}), /* @__PURE__ */ U("div", {
|
|
10511
|
-
className:
|
|
10526
|
+
className: cd.title,
|
|
10512
10527
|
style: d?.title,
|
|
10513
10528
|
children: [e, a && /* @__PURE__ */ H(jt, {
|
|
10514
10529
|
variant: "outlined",
|
|
10515
|
-
className:
|
|
10530
|
+
className: cd.subTitle,
|
|
10516
10531
|
style: d?.subTitle,
|
|
10517
10532
|
children: a
|
|
10518
10533
|
})]
|
|
10519
10534
|
})]
|
|
10520
|
-
}), /* @__PURE__ */ H(
|
|
10535
|
+
}), /* @__PURE__ */ H(Ma, {
|
|
10521
10536
|
styles: { container: {
|
|
10522
10537
|
paddingBlock: 16,
|
|
10523
10538
|
...d?.container
|
|
@@ -10526,7 +10541,7 @@ var qu = Y.div`
|
|
|
10526
10541
|
children: i
|
|
10527
10542
|
})]
|
|
10528
10543
|
})] }), p);
|
|
10529
|
-
},
|
|
10544
|
+
}, ud = (e) => {
|
|
10530
10545
|
let { title: t, style: n, align: r, firstCell: i, lastCell: a, sortOrder: s, sortDirections: c = [
|
|
10531
10546
|
"ascend",
|
|
10532
10547
|
"descend",
|
|
@@ -10581,7 +10596,7 @@ var qu = Y.div`
|
|
|
10581
10596
|
})
|
|
10582
10597
|
})
|
|
10583
10598
|
});
|
|
10584
|
-
},
|
|
10599
|
+
}, dd = (e) => {
|
|
10585
10600
|
let { onSort: t, sortDirections: n, sorterList: r, showSorterTooltip: i } = e;
|
|
10586
10601
|
return /* @__PURE__ */ H(xt, {
|
|
10587
10602
|
className: "row",
|
|
@@ -10589,7 +10604,7 @@ var qu = Y.div`
|
|
|
10589
10604
|
let { title: s, dataIndex: c, align: l, width: u, span: d, headerStyle: f, sortOrder: p, sorter: m, defaultSortOrder: h } = a;
|
|
10590
10605
|
return /* @__PURE__ */ H(st, {
|
|
10591
10606
|
span: d,
|
|
10592
|
-
children: /* @__PURE__ */ H(
|
|
10607
|
+
children: /* @__PURE__ */ H(ud, {
|
|
10593
10608
|
onSort: t,
|
|
10594
10609
|
showSorterTooltip: i,
|
|
10595
10610
|
sorter: m,
|
|
@@ -10608,7 +10623,7 @@ var qu = Y.div`
|
|
|
10608
10623
|
}, c || o);
|
|
10609
10624
|
})
|
|
10610
10625
|
});
|
|
10611
|
-
},
|
|
10626
|
+
}, fd = (e) => {
|
|
10612
10627
|
let { hasColumns: t, expandable: n, enableSelection: r, onSelectAll: i, onExpandAll: a, indeterminate: s, selectAll: c, expandAll: l, disabled: u } = e;
|
|
10613
10628
|
o();
|
|
10614
10629
|
let d = () => {
|
|
@@ -10661,13 +10676,13 @@ var qu = Y.div`
|
|
|
10661
10676
|
className: "header-row-prefix-wrapper",
|
|
10662
10677
|
children: /* @__PURE__ */ H(K, { disabled: u })
|
|
10663
10678
|
}) : null : null;
|
|
10664
|
-
},
|
|
10679
|
+
}, pd = (e) => {
|
|
10665
10680
|
let { children: t } = e;
|
|
10666
10681
|
return /* @__PURE__ */ H("div", {
|
|
10667
10682
|
className: "row-children",
|
|
10668
10683
|
children: t
|
|
10669
10684
|
});
|
|
10670
|
-
},
|
|
10685
|
+
}, md = E.createContext({}), hd = E.createContext({}), gd = Y.div`
|
|
10671
10686
|
width: 30px;
|
|
10672
10687
|
margin-right: 5px;
|
|
10673
10688
|
&.disable-expand {
|
|
@@ -10675,11 +10690,11 @@ var qu = Y.div`
|
|
|
10675
10690
|
display: none;
|
|
10676
10691
|
}
|
|
10677
10692
|
}
|
|
10678
|
-
`,
|
|
10693
|
+
`, _d = (e) => {
|
|
10679
10694
|
let { expandable: t, enableSelection: n, expanded: r, checked: i, disableExpand: a, handleRowExpand: o, handleSelectChange: s } = e, c = R(() => r, [r]);
|
|
10680
10695
|
return t && n ? /* @__PURE__ */ U("div", {
|
|
10681
10696
|
className: "row-prefix-wrapper",
|
|
10682
|
-
children: [/* @__PURE__ */ H(
|
|
10697
|
+
children: [/* @__PURE__ */ H(gd, {
|
|
10683
10698
|
className: (0, X.default)({ "disable-expand": a }),
|
|
10684
10699
|
children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
|
|
10685
10700
|
type: "text",
|
|
@@ -10697,7 +10712,7 @@ var qu = Y.div`
|
|
|
10697
10712
|
})]
|
|
10698
10713
|
}) : t ? /* @__PURE__ */ H("div", {
|
|
10699
10714
|
className: "row-prefix-wrapper",
|
|
10700
|
-
children: /* @__PURE__ */ H(
|
|
10715
|
+
children: /* @__PURE__ */ H(gd, {
|
|
10701
10716
|
className: (0, X.default)({ "disable-expand": a }),
|
|
10702
10717
|
children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
|
|
10703
10718
|
type: "text",
|
|
@@ -10718,11 +10733,11 @@ var qu = Y.div`
|
|
|
10718
10733
|
checked: i
|
|
10719
10734
|
})
|
|
10720
10735
|
}) : null;
|
|
10721
|
-
},
|
|
10736
|
+
}, vd = Y.div`
|
|
10722
10737
|
max-width: 100%;
|
|
10723
10738
|
display: flex;
|
|
10724
10739
|
align-items: center;
|
|
10725
|
-
`,
|
|
10740
|
+
`, yd = (e) => {
|
|
10726
10741
|
let t = o(), { isEditing: n, editable: r, handleSubmit: i, handleUndo: a, handleEdit: s } = e;
|
|
10727
10742
|
return r ? n ? /* @__PURE__ */ U("span", {
|
|
10728
10743
|
className: "flex-column",
|
|
@@ -10758,7 +10773,7 @@ var qu = Y.div`
|
|
|
10758
10773
|
})
|
|
10759
10774
|
}, "edit")
|
|
10760
10775
|
}) : null;
|
|
10761
|
-
},
|
|
10776
|
+
}, bd = (e) => {
|
|
10762
10777
|
let { editable: t, current: n, isEditing: r, row: i, render: a, onChange: o } = e;
|
|
10763
10778
|
return r && t ? typeof t == "object" && t?.valueType === "number" ? /* @__PURE__ */ H(gt, {
|
|
10764
10779
|
style: { width: "80px" },
|
|
@@ -10769,9 +10784,9 @@ var qu = Y.div`
|
|
|
10769
10784
|
value: n,
|
|
10770
10785
|
onChange: (e) => o(e.target.value)
|
|
10771
10786
|
}) : a ? a(n, i) : n;
|
|
10772
|
-
},
|
|
10773
|
-
let { row: t, onCell: n } = P(
|
|
10774
|
-
return /* @__PURE__ */ U(
|
|
10787
|
+
}, xd = (e) => {
|
|
10788
|
+
let { row: t, onCell: n } = P(md), { dataIndex: r, render: i, editable: a } = e, [o, s] = E.useState(!1), [c, l] = E.useState(null);
|
|
10789
|
+
return /* @__PURE__ */ U(vd, { children: [/* @__PURE__ */ H(bd, {
|
|
10775
10790
|
onChange: (e) => {
|
|
10776
10791
|
l(e);
|
|
10777
10792
|
},
|
|
@@ -10780,7 +10795,7 @@ var qu = Y.div`
|
|
|
10780
10795
|
current: o ? c : t[r],
|
|
10781
10796
|
row: t,
|
|
10782
10797
|
render: i
|
|
10783
|
-
}), /* @__PURE__ */ H(
|
|
10798
|
+
}), /* @__PURE__ */ H(yd, {
|
|
10784
10799
|
editable: a,
|
|
10785
10800
|
isEditing: o,
|
|
10786
10801
|
handleEdit: () => {
|
|
@@ -10800,7 +10815,7 @@ var qu = Y.div`
|
|
|
10800
10815
|
s(!1);
|
|
10801
10816
|
}
|
|
10802
10817
|
})] });
|
|
10803
|
-
},
|
|
10818
|
+
}, Sd = Y.div`
|
|
10804
10819
|
padding: var(--ant-table-cell-padding-block)
|
|
10805
10820
|
var(--ant-table-cell-padding-inline);
|
|
10806
10821
|
display: flex;
|
|
@@ -10823,22 +10838,22 @@ var qu = Y.div`
|
|
|
10823
10838
|
&.center {
|
|
10824
10839
|
justify-content: center;
|
|
10825
10840
|
}
|
|
10826
|
-
`,
|
|
10841
|
+
`, Cd = (e) => {
|
|
10827
10842
|
let { dataIndex: t, render: n, align: r, editable: i, dataField: a } = e;
|
|
10828
|
-
return /* @__PURE__ */ H(
|
|
10843
|
+
return /* @__PURE__ */ H(Sd, {
|
|
10829
10844
|
className: (0, X.default)("cell", {
|
|
10830
10845
|
left: r === "left",
|
|
10831
10846
|
center: r === "center",
|
|
10832
10847
|
right: r === "right"
|
|
10833
10848
|
}),
|
|
10834
|
-
children: /* @__PURE__ */ H(
|
|
10849
|
+
children: /* @__PURE__ */ H(xd, {
|
|
10835
10850
|
dataIndex: a || t,
|
|
10836
10851
|
render: n,
|
|
10837
10852
|
editable: i
|
|
10838
10853
|
})
|
|
10839
10854
|
});
|
|
10840
|
-
},
|
|
10841
|
-
let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(
|
|
10855
|
+
}, wd = (e) => {
|
|
10856
|
+
let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(hd), [_, v] = B([]), [y, b] = B(!1), x = z(null), S = z(null), C = z([]);
|
|
10842
10857
|
C.current = _;
|
|
10843
10858
|
let w = z(null), [T, D] = B(!0), [O, k] = B(!1);
|
|
10844
10859
|
F(() => () => {
|
|
@@ -10863,7 +10878,7 @@ var qu = Y.div`
|
|
|
10863
10878
|
}
|
|
10864
10879
|
}, P = zt(async () => {
|
|
10865
10880
|
try {
|
|
10866
|
-
w.current?.cancel?.(), w.current =
|
|
10881
|
+
w.current?.cancel?.(), w.current = Zi(), b(!0), v(await m?.(t, { token: w.current?.token }) || []), b(!1);
|
|
10867
10882
|
} catch {
|
|
10868
10883
|
v([]), b(!1);
|
|
10869
10884
|
}
|
|
@@ -10889,7 +10904,7 @@ var qu = Y.div`
|
|
|
10889
10904
|
};
|
|
10890
10905
|
}, []), F(() => (T && I(), () => {
|
|
10891
10906
|
S.current?.current?.cancel?.();
|
|
10892
|
-
}), [T, g.allChildren]), /* @__PURE__ */ H(
|
|
10907
|
+
}), [T, g.allChildren]), /* @__PURE__ */ H(md.Provider, {
|
|
10893
10908
|
value: {
|
|
10894
10909
|
row: {
|
|
10895
10910
|
...t,
|
|
@@ -10901,7 +10916,7 @@ var qu = Y.div`
|
|
|
10901
10916
|
className: "row-box",
|
|
10902
10917
|
children: [/* @__PURE__ */ U("div", {
|
|
10903
10918
|
className: (0, X.default)("row-wrapper", { "row-wrapper-selected": j }),
|
|
10904
|
-
children: [/* @__PURE__ */ H(
|
|
10919
|
+
children: [/* @__PURE__ */ H(_d, {
|
|
10905
10920
|
expandable: r,
|
|
10906
10921
|
enableSelection: i?.enableSelection,
|
|
10907
10922
|
expanded: A,
|
|
@@ -10913,7 +10928,7 @@ var qu = Y.div`
|
|
|
10913
10928
|
className: "seal-table-row",
|
|
10914
10929
|
children: c?.map(({ key: e, ...t }) => /* @__PURE__ */ H(st, {
|
|
10915
10930
|
span: t.span,
|
|
10916
|
-
children: /* @__PURE__ */ H(
|
|
10931
|
+
children: /* @__PURE__ */ H(Cd, { ...t })
|
|
10917
10932
|
}, `${t.dataIndex}-${n}`))
|
|
10918
10933
|
})]
|
|
10919
10934
|
}), A && !V && /* @__PURE__ */ H("div", {
|
|
@@ -10926,9 +10941,9 @@ var qu = Y.div`
|
|
|
10926
10941
|
})]
|
|
10927
10942
|
})
|
|
10928
10943
|
});
|
|
10929
|
-
},
|
|
10944
|
+
}, Td = ({ dataSource: e, rowKey: t, rowSelection: n, expandable: r, expandedRowKeys: i, onExpand: a, childParentKey: o, pollingChildren: s, watchChildren: c, renderChildren: l, loadChildren: u, loadChildrenAPI: d, columns: f, onCell: p, empty: m }) => e.length ? /* @__PURE__ */ H("div", {
|
|
10930
10945
|
className: "seal-table-content",
|
|
10931
|
-
children: e.map((e, m) => /* @__PURE__ */ H(
|
|
10946
|
+
children: e.map((e, m) => /* @__PURE__ */ H(wd, {
|
|
10932
10947
|
record: e,
|
|
10933
10948
|
rowIndex: m,
|
|
10934
10949
|
columns: f,
|
|
@@ -10948,7 +10963,7 @@ var qu = Y.div`
|
|
|
10948
10963
|
}) : /* @__PURE__ */ H("div", {
|
|
10949
10964
|
className: "empty-wrapper",
|
|
10950
10965
|
children: m || /* @__PURE__ */ H(ft, { image: ft.PRESENTED_IMAGE_SIMPLE })
|
|
10951
|
-
}),
|
|
10966
|
+
}), Ed = (e) => {
|
|
10952
10967
|
let t = e.filter((e) => e.defaultSortOrder);
|
|
10953
10968
|
return t.length === 0 ? [] : t.map((e) => ({
|
|
10954
10969
|
columnKey: e.key || e.dataIndex,
|
|
@@ -10956,8 +10971,8 @@ var qu = Y.div`
|
|
|
10956
10971
|
order: e.defaultSortOrder || null
|
|
10957
10972
|
}));
|
|
10958
10973
|
};
|
|
10959
|
-
function
|
|
10960
|
-
let { onTableSort: t, columns: n } = e, r = z(
|
|
10974
|
+
function Dd(e) {
|
|
10975
|
+
let { onTableSort: t, columns: n } = e, r = z(Ed(n || [])), [i, a] = B(Ed(n || []));
|
|
10961
10976
|
return {
|
|
10962
10977
|
sorterListRef: r,
|
|
10963
10978
|
sorterList: i,
|
|
@@ -10984,7 +10999,7 @@ function Td(e) {
|
|
|
10984
10999
|
}
|
|
10985
11000
|
//#endregion
|
|
10986
11001
|
//#region src/lib/components/table/index.tsx
|
|
10987
|
-
var
|
|
11002
|
+
var Od = Y.div`
|
|
10988
11003
|
width: 100%;
|
|
10989
11004
|
--ant-table-cell-padding-inline: ${(e) => e.$token.cellPaddingInline}px;
|
|
10990
11005
|
--ant-table-cell-padding-block: ${(e) => e.$token.cellPaddingBlock}px;
|
|
@@ -10995,8 +11010,8 @@ var Ed = Y.div`
|
|
|
10995
11010
|
--ant-table-row-hover-bg: ${(e) => e.$token.rowHoverBg};
|
|
10996
11011
|
--ant-table-header-icon-color: ${(e) => e.$token.tableHeaderIconColor};
|
|
10997
11012
|
--ant-table-header-icon-hover-color: ${(e) => e.$token.tableHeaderIconHoverColor};
|
|
10998
|
-
`,
|
|
10999
|
-
let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } =
|
|
11013
|
+
`, kd = (e) => {
|
|
11014
|
+
let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } = Dd({
|
|
11000
11015
|
onTableSort: s,
|
|
11001
11016
|
columns: t
|
|
11002
11017
|
}), { token: T } = Lt.useToken(), D = R(() => t || E.Children.toArray(n).filter(E.isValidElement).map((e) => {
|
|
@@ -11048,7 +11063,7 @@ var Ed = Y.div`
|
|
|
11048
11063
|
}, F = (e, t) => {
|
|
11049
11064
|
g?.onShowSizeChange?.(e, t);
|
|
11050
11065
|
};
|
|
11051
|
-
return console.log("token.table", T), /* @__PURE__ */ U(
|
|
11066
|
+
return console.log("token.table", T), /* @__PURE__ */ U(Od, {
|
|
11052
11067
|
$token: {
|
|
11053
11068
|
...T.Table,
|
|
11054
11069
|
tableHeaderIconColor: T.colorTextQuaternary,
|
|
@@ -11059,7 +11074,7 @@ var Ed = Y.div`
|
|
|
11059
11074
|
className: "seal-table-container",
|
|
11060
11075
|
children: [/* @__PURE__ */ U("div", {
|
|
11061
11076
|
className: "header-row-wrapper",
|
|
11062
|
-
children: [/* @__PURE__ */ H(
|
|
11077
|
+
children: [/* @__PURE__ */ H(fd, {
|
|
11063
11078
|
selectAll: k.selectAll,
|
|
11064
11079
|
indeterminate: k.indeterminate,
|
|
11065
11080
|
onSelectAll: M,
|
|
@@ -11069,7 +11084,7 @@ var Ed = Y.div`
|
|
|
11069
11084
|
enableSelection: h?.enableSelection,
|
|
11070
11085
|
disabled: !e.dataSource?.length,
|
|
11071
11086
|
hasColumns: D.length > 0
|
|
11072
|
-
}), /* @__PURE__ */ H(
|
|
11087
|
+
}), /* @__PURE__ */ H(dd, {
|
|
11073
11088
|
onSort: C,
|
|
11074
11089
|
columns: D,
|
|
11075
11090
|
sortDirections: v,
|
|
@@ -11079,7 +11094,7 @@ var Ed = Y.div`
|
|
|
11079
11094
|
}), /* @__PURE__ */ H(Dt, {
|
|
11080
11095
|
spinning: u,
|
|
11081
11096
|
size: "middle",
|
|
11082
|
-
children: /* @__PURE__ */ H(
|
|
11097
|
+
children: /* @__PURE__ */ H(Td, {
|
|
11083
11098
|
empty: _,
|
|
11084
11099
|
dataSource: e.dataSource,
|
|
11085
11100
|
columns: D,
|
|
@@ -11107,16 +11122,16 @@ var Ed = Y.div`
|
|
|
11107
11122
|
})]
|
|
11108
11123
|
});
|
|
11109
11124
|
};
|
|
11110
|
-
|
|
11125
|
+
kd.RowChildren = pd;
|
|
11111
11126
|
//#endregion
|
|
11112
11127
|
//#region src/lib/components/table/table-provider.tsx
|
|
11113
|
-
var
|
|
11128
|
+
var Ad = ({ value: e, children: t }) => /* @__PURE__ */ H(hd.Provider, {
|
|
11114
11129
|
value: e,
|
|
11115
11130
|
children: t
|
|
11116
|
-
}),
|
|
11131
|
+
}), jd = ({ value: e, children: t }) => /* @__PURE__ */ H(md.Provider, {
|
|
11117
11132
|
value: e,
|
|
11118
11133
|
children: t
|
|
11119
|
-
}),
|
|
11134
|
+
}), Md = (e) => {
|
|
11120
11135
|
let { gap: t = 0, dataList: n, renderTag: r } = e, i = z(null), [a, o] = B({
|
|
11121
11136
|
start: 0,
|
|
11122
11137
|
end: n.length
|
|
@@ -11180,7 +11195,7 @@ var Od = ({ value: e, children: t }) => /* @__PURE__ */ H(pd.Provider, {
|
|
|
11180
11195
|
})]
|
|
11181
11196
|
})
|
|
11182
11197
|
});
|
|
11183
|
-
},
|
|
11198
|
+
}, Nd = Y(jt)`
|
|
11184
11199
|
display: flex;
|
|
11185
11200
|
align-items: center;
|
|
11186
11201
|
justify-content: center;
|
|
@@ -11190,9 +11205,9 @@ var Od = ({ value: e, children: t }) => /* @__PURE__ */ H(pd.Provider, {
|
|
|
11190
11205
|
height: 22px;
|
|
11191
11206
|
opacity: 0.7;
|
|
11192
11207
|
margin: 0;
|
|
11193
|
-
`,
|
|
11208
|
+
`, Pd = ({ opacity: e, style: t, children: n, ...r }) => {
|
|
11194
11209
|
let { config: i } = a(), { isDarkTheme: o } = i;
|
|
11195
|
-
return /* @__PURE__ */ H(
|
|
11210
|
+
return /* @__PURE__ */ H(Nd, {
|
|
11196
11211
|
...r,
|
|
11197
11212
|
variant: "outlined",
|
|
11198
11213
|
style: {
|
|
@@ -11202,10 +11217,10 @@ var Od = ({ value: e, children: t }) => /* @__PURE__ */ H(pd.Provider, {
|
|
|
11202
11217
|
children: n
|
|
11203
11218
|
});
|
|
11204
11219
|
};
|
|
11205
|
-
|
|
11220
|
+
Pd.displayName = "ThemeTag";
|
|
11206
11221
|
//#endregion
|
|
11207
11222
|
//#region src/lib/components/templates/card.tsx
|
|
11208
|
-
var
|
|
11223
|
+
var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
11209
11224
|
overflow: hidden;
|
|
11210
11225
|
display: flex;
|
|
11211
11226
|
padding: 16px 16px;
|
|
@@ -11242,31 +11257,31 @@ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11242
11257
|
pointer-events: none;
|
|
11243
11258
|
border-style: dashed;
|
|
11244
11259
|
}
|
|
11245
|
-
`,
|
|
11260
|
+
`, Id = Y.div.attrs({ className: "template-card-content" })`
|
|
11246
11261
|
width: 100%;
|
|
11247
11262
|
flex: 1;
|
|
11248
11263
|
color: var(--ant-color-text-tertiary);
|
|
11249
|
-
`,
|
|
11264
|
+
`, Ld = Y.div.attrs({ className: "template-card-inner" })`
|
|
11250
11265
|
display: flex;
|
|
11251
11266
|
width: 100%;
|
|
11252
11267
|
flex-direction: column;
|
|
11253
11268
|
justify-content: flex-start;
|
|
11254
11269
|
gap: 8px;
|
|
11255
11270
|
height: 100%;
|
|
11256
|
-
`,
|
|
11271
|
+
`, Rd = Y.div.attrs({ className: "template-card-icon" })`
|
|
11257
11272
|
display: flex;
|
|
11258
11273
|
align-items: center;
|
|
11259
11274
|
margin-right: 16px;
|
|
11260
11275
|
font-size: 32px;
|
|
11261
|
-
`,
|
|
11276
|
+
`, zd = Y.div.attrs({ className: "template-card-header" })`
|
|
11262
11277
|
font-weight: bold;
|
|
11263
11278
|
font-size: var(--font-size-base);
|
|
11264
11279
|
display: flex;
|
|
11265
11280
|
align-items: center;
|
|
11266
11281
|
justify-content: space-between;
|
|
11267
|
-
`,
|
|
11282
|
+
`, Bd = (e) => {
|
|
11268
11283
|
let { className: t, height: n, children: r, clickable: i = !0, ghost: a = !1, header: o, footer: s, icon: c, active: l, disabled: u, hoverable: d, onClick: f } = e;
|
|
11269
|
-
return /* @__PURE__ */ U(
|
|
11284
|
+
return /* @__PURE__ */ U(Fd, {
|
|
11270
11285
|
className: (0, X.default)(t, {
|
|
11271
11286
|
clickable: i,
|
|
11272
11287
|
hoverable: d,
|
|
@@ -11278,17 +11293,17 @@ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11278
11293
|
onClick: () => {
|
|
11279
11294
|
u || !i || f?.();
|
|
11280
11295
|
},
|
|
11281
|
-
children: [c && /* @__PURE__ */ H(
|
|
11282
|
-
o && /* @__PURE__ */ H(
|
|
11283
|
-
r && /* @__PURE__ */ H(
|
|
11296
|
+
children: [c && /* @__PURE__ */ H(Rd, { children: c }), /* @__PURE__ */ U(Ld, { children: [
|
|
11297
|
+
o && /* @__PURE__ */ H(zd, { children: o }),
|
|
11298
|
+
r && /* @__PURE__ */ H(Id, { children: r }),
|
|
11284
11299
|
s
|
|
11285
11300
|
] })]
|
|
11286
11301
|
});
|
|
11287
|
-
},
|
|
11302
|
+
}, Vd = Y.div`
|
|
11288
11303
|
.ant-skeleton-paragraph {
|
|
11289
11304
|
margin-bottom: 0;
|
|
11290
11305
|
}
|
|
11291
|
-
`,
|
|
11306
|
+
`, Hd = (e) => /* @__PURE__ */ H(Dl, {
|
|
11292
11307
|
dataList: [
|
|
11293
11308
|
,
|
|
11294
11309
|
,
|
|
@@ -11297,7 +11312,7 @@ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11297
11312
|
,
|
|
11298
11313
|
,
|
|
11299
11314
|
].fill({ label: "skeleton" }),
|
|
11300
|
-
renderItem: () => /* @__PURE__ */ H(
|
|
11315
|
+
renderItem: () => /* @__PURE__ */ H(Vd, { children: /* @__PURE__ */ H(wt, {
|
|
11301
11316
|
avatar: { size: 32 },
|
|
11302
11317
|
paragraph: { rows: 2 },
|
|
11303
11318
|
style: {
|
|
@@ -11308,7 +11323,7 @@ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11308
11323
|
},
|
|
11309
11324
|
...e.skeletonProps || {}
|
|
11310
11325
|
}) })
|
|
11311
|
-
}),
|
|
11326
|
+
}), Ud = Y.div`
|
|
11312
11327
|
width: 100%;
|
|
11313
11328
|
position: absolute;
|
|
11314
11329
|
display: flex;
|
|
@@ -11321,30 +11336,30 @@ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11321
11336
|
.skelton-wrapper {
|
|
11322
11337
|
width: 100%;
|
|
11323
11338
|
}
|
|
11324
|
-
`,
|
|
11339
|
+
`, Wd = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Ud, { children: /* @__PURE__ */ H(Dt, {
|
|
11325
11340
|
size: "middle",
|
|
11326
11341
|
spinning: e,
|
|
11327
11342
|
style: { width: "100%" },
|
|
11328
11343
|
classNames: { root: "skelton-wrapper" },
|
|
11329
|
-
children: t && /* @__PURE__ */ H(
|
|
11330
|
-
}) }) }),
|
|
11331
|
-
let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } =
|
|
11332
|
-
return /* @__PURE__ */ U(
|
|
11344
|
+
children: t && /* @__PURE__ */ H(Hd, {})
|
|
11345
|
+
}) }) }), Gd = (e) => {
|
|
11346
|
+
let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } = Lc();
|
|
11347
|
+
return /* @__PURE__ */ U(Fc, {
|
|
11333
11348
|
total: s,
|
|
11334
11349
|
current: c,
|
|
11335
11350
|
loading: l,
|
|
11336
11351
|
refresh: u,
|
|
11337
|
-
children: [/* @__PURE__ */ H(
|
|
11352
|
+
children: [/* @__PURE__ */ H(Dl, {
|
|
11338
11353
|
dataList: t,
|
|
11339
11354
|
renderItem: o,
|
|
11340
11355
|
defaultSpan: i,
|
|
11341
11356
|
resizable: a
|
|
11342
|
-
}), /* @__PURE__ */ H(
|
|
11357
|
+
}), /* @__PURE__ */ H(Wd, {
|
|
11343
11358
|
loading: n,
|
|
11344
11359
|
isFirst: r
|
|
11345
11360
|
})]
|
|
11346
11361
|
});
|
|
11347
|
-
},
|
|
11362
|
+
}, Kd = /* @__PURE__ */ n(((e, t) => {
|
|
11348
11363
|
(function(n, r) {
|
|
11349
11364
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.FitAddon = r() : n.FitAddon = r();
|
|
11350
11365
|
})(self, (() => (() => {
|
|
@@ -11375,7 +11390,7 @@ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11375
11390
|
};
|
|
11376
11391
|
})(), e;
|
|
11377
11392
|
})()));
|
|
11378
|
-
})),
|
|
11393
|
+
})), qd = /* @__PURE__ */ n(((e, t) => {
|
|
11379
11394
|
(function(n, r) {
|
|
11380
11395
|
if (typeof e == "object" && typeof t == "object") t.exports = r();
|
|
11381
11396
|
else if (typeof define == "function" && define.amd) define([], r);
|
|
@@ -18482,9 +18497,9 @@ var Nd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
18482
18497
|
e.Terminal = d;
|
|
18483
18498
|
})(), r;
|
|
18484
18499
|
})()));
|
|
18485
|
-
})),
|
|
18486
|
-
|
|
18487
|
-
var
|
|
18500
|
+
})), Jd = Kd();
|
|
18501
|
+
qd();
|
|
18502
|
+
var Yd = Rt(({ token: e, css: t }) => ({
|
|
18488
18503
|
wrap: t`
|
|
18489
18504
|
position: relative;
|
|
18490
18505
|
text-align: left;
|
|
@@ -18503,16 +18518,16 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18503
18518
|
background-color: var(--color-logs-bg);
|
|
18504
18519
|
border-radius: 0 0 8px 8px;
|
|
18505
18520
|
`
|
|
18506
|
-
})),
|
|
18521
|
+
})), Xd = [
|
|
18507
18522
|
"bash",
|
|
18508
18523
|
"sh",
|
|
18509
18524
|
"powershell",
|
|
18510
18525
|
"pwsh",
|
|
18511
18526
|
"cmd",
|
|
18512
18527
|
"bash"
|
|
18513
|
-
],
|
|
18514
|
-
let { height: n, url: r, theme: i } = e, { styles: a } =
|
|
18515
|
-
u.current >=
|
|
18528
|
+
], Zd = "--- press Y to reconnect! ---", Qd = A((e, t) => {
|
|
18529
|
+
let { height: n, url: r, theme: i } = e, { styles: a } = Yd(), o = E.useRef(null), s = E.useRef(null), c = E.useRef(null), l = E.useRef(""), u = E.useRef(0), d = E.useRef(null), f = E.useRef(5), p = E.useRef(5), h = E.useRef(!0), g = E.useRef(!1), _ = E.useRef(null), v = E.useRef(!1), y = E.useRef(0), [b, x] = E.useState(0), S = new Jd.FitAddon(), C = (e) => {
|
|
18530
|
+
u.current >= Xd.length - 1 || (e ? u.current = 0 : u.current += 1, l.current = `${r}&${m.stringify({ shell: Xd[u.current] })}`);
|
|
18516
18531
|
}, w = () => (d.current && d.current.readyState) === 1, T = () => {
|
|
18517
18532
|
let { cols: e, rows: t } = c.current || {};
|
|
18518
18533
|
w() && d.current?.send(`#{"width":${e},"height":${t}}#`);
|
|
@@ -18535,7 +18550,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18535
18550
|
1011,
|
|
18536
18551
|
1006,
|
|
18537
18552
|
1e3
|
|
18538
|
-
].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${
|
|
18553
|
+
].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${Zd}`))), h.current = !0) : e.reason && c.current?.write?.(j(`(${b})${e.reason}\r\n`)), g.current = !1;
|
|
18539
18554
|
}, R = (e) => {
|
|
18540
18555
|
let { message: t } = e;
|
|
18541
18556
|
t || (t = "disconnected!", v.current = !0, h.current = !0, g.current = !1), y.current = d.current.readyState, c.current?.write?.(M(`\r${t}`));
|
|
@@ -18569,55 +18584,55 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18569
18584
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
18570
18585
|
return e;
|
|
18571
18586
|
}, $.apply(this, arguments);
|
|
18572
|
-
},
|
|
18587
|
+
}, $d = {
|
|
18573
18588
|
width: "100%",
|
|
18574
18589
|
height: "10px",
|
|
18575
18590
|
top: "0px",
|
|
18576
18591
|
left: "0px",
|
|
18577
18592
|
cursor: "row-resize"
|
|
18578
|
-
},
|
|
18593
|
+
}, ef = {
|
|
18579
18594
|
width: "10px",
|
|
18580
18595
|
height: "100%",
|
|
18581
18596
|
top: "0px",
|
|
18582
18597
|
left: "0px",
|
|
18583
18598
|
cursor: "col-resize"
|
|
18584
|
-
},
|
|
18599
|
+
}, tf = {
|
|
18585
18600
|
width: "20px",
|
|
18586
18601
|
height: "20px",
|
|
18587
18602
|
position: "absolute",
|
|
18588
18603
|
zIndex: 1
|
|
18589
|
-
},
|
|
18590
|
-
top: $($({},
|
|
18591
|
-
right: $($({},
|
|
18604
|
+
}, nf = {
|
|
18605
|
+
top: $($({}, $d), { top: "-5px" }),
|
|
18606
|
+
right: $($({}, ef), {
|
|
18592
18607
|
left: void 0,
|
|
18593
18608
|
right: "-5px"
|
|
18594
18609
|
}),
|
|
18595
|
-
bottom: $($({},
|
|
18610
|
+
bottom: $($({}, $d), {
|
|
18596
18611
|
top: void 0,
|
|
18597
18612
|
bottom: "-5px"
|
|
18598
18613
|
}),
|
|
18599
|
-
left: $($({},
|
|
18600
|
-
topRight: $($({},
|
|
18614
|
+
left: $($({}, ef), { left: "-5px" }),
|
|
18615
|
+
topRight: $($({}, tf), {
|
|
18601
18616
|
right: "-10px",
|
|
18602
18617
|
top: "-10px",
|
|
18603
18618
|
cursor: "ne-resize"
|
|
18604
18619
|
}),
|
|
18605
|
-
bottomRight: $($({},
|
|
18620
|
+
bottomRight: $($({}, tf), {
|
|
18606
18621
|
right: "-10px",
|
|
18607
18622
|
bottom: "-10px",
|
|
18608
18623
|
cursor: "se-resize"
|
|
18609
18624
|
}),
|
|
18610
|
-
bottomLeft: $($({},
|
|
18625
|
+
bottomLeft: $($({}, tf), {
|
|
18611
18626
|
left: "-10px",
|
|
18612
18627
|
bottom: "-10px",
|
|
18613
18628
|
cursor: "sw-resize"
|
|
18614
18629
|
}),
|
|
18615
|
-
topLeft: $($({},
|
|
18630
|
+
topLeft: $($({}, tf), {
|
|
18616
18631
|
left: "-10px",
|
|
18617
18632
|
top: "-10px",
|
|
18618
18633
|
cursor: "nw-resize"
|
|
18619
18634
|
})
|
|
18620
|
-
},
|
|
18635
|
+
}, rf = M(function(e) {
|
|
18621
18636
|
var t = e.onResizeStart, n = e.direction, r = e.children, i = e.replaceStyles, a = e.className, o = N(function(e) {
|
|
18622
18637
|
t(e, n);
|
|
18623
18638
|
}, [t, n]), s = N(function(e) {
|
|
@@ -18626,7 +18641,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18626
18641
|
return $($({
|
|
18627
18642
|
position: "absolute",
|
|
18628
18643
|
userSelect: "none"
|
|
18629
|
-
},
|
|
18644
|
+
}, nf[n]), i ?? {});
|
|
18630
18645
|
}, [i, n]);
|
|
18631
18646
|
return H("div", {
|
|
18632
18647
|
className: a || void 0,
|
|
@@ -18635,7 +18650,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18635
18650
|
onTouchStart: s,
|
|
18636
18651
|
children: r
|
|
18637
18652
|
});
|
|
18638
|
-
}),
|
|
18653
|
+
}), af = (function() {
|
|
18639
18654
|
var e = function(t, n) {
|
|
18640
18655
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
18641
18656
|
e.__proto__ = t;
|
|
@@ -18651,34 +18666,34 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18651
18666
|
}
|
|
18652
18667
|
t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
18653
18668
|
};
|
|
18654
|
-
})(),
|
|
18655
|
-
return
|
|
18669
|
+
})(), of = function() {
|
|
18670
|
+
return of = Object.assign || function(e) {
|
|
18656
18671
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
18657
18672
|
return e;
|
|
18658
|
-
},
|
|
18659
|
-
},
|
|
18673
|
+
}, of.apply(this, arguments);
|
|
18674
|
+
}, sf = {
|
|
18660
18675
|
width: "auto",
|
|
18661
18676
|
height: "auto"
|
|
18662
|
-
},
|
|
18677
|
+
}, cf = function(e, t, n) {
|
|
18663
18678
|
return Math.max(Math.min(e, n), t);
|
|
18664
|
-
},
|
|
18679
|
+
}, lf = function(e, t, n) {
|
|
18665
18680
|
var r = Math.round(e / t);
|
|
18666
18681
|
return r * t + n * (r - 1);
|
|
18667
|
-
},
|
|
18682
|
+
}, uf = function(e, t) {
|
|
18668
18683
|
return new RegExp(e, "i").test(t);
|
|
18669
|
-
},
|
|
18684
|
+
}, df = function(e) {
|
|
18670
18685
|
return !!(e.touches && e.touches.length);
|
|
18671
|
-
},
|
|
18686
|
+
}, ff = function(e) {
|
|
18672
18687
|
return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
|
|
18673
|
-
},
|
|
18688
|
+
}, pf = function(e, t, n) {
|
|
18674
18689
|
n === void 0 && (n = 0);
|
|
18675
18690
|
var r = t.reduce(function(n, r, i) {
|
|
18676
18691
|
return Math.abs(r - e) < Math.abs(t[n] - e) ? i : n;
|
|
18677
18692
|
}, 0), i = Math.abs(t[r] - e);
|
|
18678
18693
|
return n === 0 || i < n ? t[r] : e;
|
|
18679
|
-
},
|
|
18694
|
+
}, mf = function(e) {
|
|
18680
18695
|
return e = e.toString(), e === "auto" || e.endsWith("px") || e.endsWith("%") || e.endsWith("vh") || e.endsWith("vw") || e.endsWith("vmax") || e.endsWith("vmin") ? e : `${e}px`;
|
|
18681
|
-
},
|
|
18696
|
+
}, hf = function(e, t, n, r) {
|
|
18682
18697
|
if (e && typeof e == "string") {
|
|
18683
18698
|
if (e.endsWith("px")) return Number(e.replace("px", ""));
|
|
18684
18699
|
if (e.endsWith("%")) {
|
|
@@ -18695,17 +18710,17 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18695
18710
|
}
|
|
18696
18711
|
}
|
|
18697
18712
|
return e;
|
|
18698
|
-
},
|
|
18699
|
-
return r =
|
|
18713
|
+
}, gf = function(e, t, n, r, i, a, o) {
|
|
18714
|
+
return r = hf(r, e.width, t, n), i = hf(i, e.height, t, n), a = hf(a, e.width, t, n), o = hf(o, e.height, t, n), {
|
|
18700
18715
|
maxWidth: r === void 0 ? void 0 : Number(r),
|
|
18701
18716
|
maxHeight: i === void 0 ? void 0 : Number(i),
|
|
18702
18717
|
minWidth: a === void 0 ? void 0 : Number(a),
|
|
18703
18718
|
minHeight: o === void 0 ? void 0 : Number(o)
|
|
18704
18719
|
};
|
|
18705
|
-
},
|
|
18720
|
+
}, _f = function(e) {
|
|
18706
18721
|
return Array.isArray(e) ? e : [e, e];
|
|
18707
|
-
},
|
|
18708
|
-
|
|
18722
|
+
}, vf = /* @__PURE__ */ "as.ref.style.className.grid.gridGap.snap.bounds.boundsByDirection.size.defaultSize.minWidth.minHeight.maxWidth.maxHeight.lockAspectRatio.lockAspectRatioExtraWidth.lockAspectRatioExtraHeight.enable.handleStyles.handleClasses.handleWrapperStyle.handleWrapperClass.children.onResizeStart.onResize.onResizeStop.handleComponent.scale.resizeRatio.snapGap".split("."), yf = "__resizable_base__", bf = function(e) {
|
|
18723
|
+
af(t, e);
|
|
18709
18724
|
function t(t) {
|
|
18710
18725
|
var n = e.call(this, t) || this;
|
|
18711
18726
|
return n.ratio = 1, n.resizable = null, n.parentLeft = 0, n.parentTop = 0, n.resizableLeft = 0, n.resizableRight = 0, n.resizableTop = 0, n.resizableBottom = 0, n.targetLeft = 0, n.targetTop = 0, n.delta = {
|
|
@@ -18716,7 +18731,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18716
18731
|
var e = n.parentNode;
|
|
18717
18732
|
if (!e) return null;
|
|
18718
18733
|
var t = n.window.document.createElement("div");
|
|
18719
|
-
return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(
|
|
18734
|
+
return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(yf) : t.className += yf, e.appendChild(t), t;
|
|
18720
18735
|
}, n.removeBase = function(e) {
|
|
18721
18736
|
var t = n.parentNode;
|
|
18722
18737
|
t && t.removeChild(e);
|
|
@@ -18761,7 +18776,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18761
18776
|
configurable: !0
|
|
18762
18777
|
}), Object.defineProperty(t.prototype, "propsSize", {
|
|
18763
18778
|
get: function() {
|
|
18764
|
-
return this.props.size || this.props.defaultSize ||
|
|
18779
|
+
return this.props.size || this.props.defaultSize || sf;
|
|
18765
18780
|
},
|
|
18766
18781
|
enumerable: !1,
|
|
18767
18782
|
configurable: !0
|
|
@@ -18788,11 +18803,11 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18788
18803
|
var n = e.getParentSize();
|
|
18789
18804
|
return `${Number(e.state[t].toString().replace("px", "")) / n[t] * 100}%`;
|
|
18790
18805
|
}
|
|
18791
|
-
return
|
|
18806
|
+
return mf(e.state[t]);
|
|
18792
18807
|
};
|
|
18793
18808
|
return {
|
|
18794
|
-
width: t && t.width !== void 0 && !this.state.isResizing ?
|
|
18795
|
-
height: t && t.height !== void 0 && !this.state.isResizing ?
|
|
18809
|
+
width: t && t.width !== void 0 && !this.state.isResizing ? mf(t.width) : n("width"),
|
|
18810
|
+
height: t && t.height !== void 0 && !this.state.isResizing ? mf(t.height) : n("height")
|
|
18796
18811
|
};
|
|
18797
18812
|
},
|
|
18798
18813
|
enumerable: !1,
|
|
@@ -18839,7 +18854,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18839
18854
|
var n = this.propsSize && this.propsSize[t];
|
|
18840
18855
|
return this.state[t] === "auto" && this.state.original[t] === e && (n === void 0 || n === "auto") ? "auto" : e;
|
|
18841
18856
|
}, t.prototype.calculateNewMaxFromBoundary = function(e, t) {
|
|
18842
|
-
var n = this.props.boundsByDirection, r = this.state.direction, i = n &&
|
|
18857
|
+
var n = this.props.boundsByDirection, r = this.state.direction, i = n && uf("left", r), a = n && uf("top", r), o, s;
|
|
18843
18858
|
if (this.props.bounds === "parent") {
|
|
18844
18859
|
var c = this.parentNode;
|
|
18845
18860
|
c && (o = i ? this.resizableRight - this.parentLeft : c.offsetWidth + (this.parentLeft - this.resizableLeft), s = a ? this.resizableBottom - this.parentTop : c.offsetHeight + (this.parentTop - this.resizableTop));
|
|
@@ -18849,8 +18864,8 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18849
18864
|
maxHeight: t
|
|
18850
18865
|
};
|
|
18851
18866
|
}, t.prototype.calculateNewSizeFromDirection = function(e, t) {
|
|
18852
|
-
var n = this.props.scale || 1, r =
|
|
18853
|
-
return
|
|
18867
|
+
var n = this.props.scale || 1, r = _f(this.props.resizeRatio || 1), i = r[0], a = r[1], o = this.state, s = o.direction, c = o.original, l = this.props, u = l.lockAspectRatio, d = l.lockAspectRatioExtraHeight, f = l.lockAspectRatioExtraWidth, p = c.width, m = c.height, h = d || 0, g = f || 0;
|
|
18868
|
+
return uf("right", s) && (p = c.width + (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), uf("left", s) && (p = c.width - (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), uf("bottom", s) && (m = c.height + (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), uf("top", s) && (m = c.height - (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), {
|
|
18854
18869
|
newWidth: p,
|
|
18855
18870
|
newHeight: m
|
|
18856
18871
|
};
|
|
@@ -18858,8 +18873,8 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18858
18873
|
var i = this.props, a = i.lockAspectRatio, o = i.lockAspectRatioExtraHeight, s = i.lockAspectRatioExtraWidth, c = r.width === void 0 ? 10 : r.width, l = n.width === void 0 || n.width < 0 ? e : n.width, u = r.height === void 0 ? 10 : r.height, d = n.height === void 0 || n.height < 0 ? t : n.height, f = o || 0, p = s || 0;
|
|
18859
18874
|
if (a) {
|
|
18860
18875
|
var m = (u - f) * this.ratio + p, h = (d - f) * this.ratio + p, g = (c - p) / this.ratio + f, _ = (l - p) / this.ratio + f, v = Math.max(c, m), y = Math.min(l, h), b = Math.max(u, g), x = Math.min(d, _);
|
|
18861
|
-
e =
|
|
18862
|
-
} else e =
|
|
18876
|
+
e = cf(e, v, y), t = cf(t, b, x);
|
|
18877
|
+
} else e = cf(e, c, l), t = cf(t, u, d);
|
|
18863
18878
|
return {
|
|
18864
18879
|
newWidth: e,
|
|
18865
18880
|
newHeight: t
|
|
@@ -18884,7 +18899,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18884
18899
|
}, t.prototype.onResizeStart = function(e, t) {
|
|
18885
18900
|
if (!(!this.resizable || !this.window)) {
|
|
18886
18901
|
var n = 0, r = 0;
|
|
18887
|
-
if (e.nativeEvent &&
|
|
18902
|
+
if (e.nativeEvent && ff(e.nativeEvent) ? (n = e.nativeEvent.clientX, r = e.nativeEvent.clientY) : e.nativeEvent && df(e.nativeEvent) && (n = e.nativeEvent.touches[0].clientX, r = e.nativeEvent.touches[0].clientY), !(this.props.onResizeStart && this.resizable && this.props.onResizeStart(e, t, this.resizable) === !1)) {
|
|
18888
18903
|
this.props.size && (this.props.size.height !== void 0 && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), this.props.size.width !== void 0 && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
|
|
18889
18904
|
var i, a = this.window.getComputedStyle(this.resizable);
|
|
18890
18905
|
if (a.flexBasis !== "auto") {
|
|
@@ -18903,7 +18918,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18903
18918
|
height: this.size.height
|
|
18904
18919
|
},
|
|
18905
18920
|
isResizing: !0,
|
|
18906
|
-
backgroundStyle:
|
|
18921
|
+
backgroundStyle: of(of({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
|
|
18907
18922
|
direction: t,
|
|
18908
18923
|
flexBasis: i
|
|
18909
18924
|
};
|
|
@@ -18913,13 +18928,13 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18913
18928
|
}, t.prototype.onMouseMove = function(e) {
|
|
18914
18929
|
var t = this;
|
|
18915
18930
|
if (!(!this.state.isResizing || !this.resizable || !this.window)) {
|
|
18916
|
-
if (this.window.TouchEvent &&
|
|
18931
|
+
if (this.window.TouchEvent && df(e)) try {
|
|
18917
18932
|
e.preventDefault(), e.stopPropagation();
|
|
18918
18933
|
} catch {}
|
|
18919
|
-
var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s =
|
|
18934
|
+
var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s = df(e) ? e.touches[0].clientX : e.clientX, c = df(e) ? e.touches[0].clientY : e.clientY, l = this.state, u = l.direction, d = l.original, f = l.width, p = l.height, m = this.getParentSize(), h = gf(m, this.window.innerWidth, this.window.innerHeight, r, i, a, o);
|
|
18920
18935
|
r = h.maxWidth, i = h.maxHeight, a = h.minWidth, o = h.minHeight;
|
|
18921
18936
|
var g = this.calculateNewSizeFromDirection(s, c), _ = g.newHeight, v = g.newWidth, y = this.calculateNewMaxFromBoundary(r, i);
|
|
18922
|
-
this.props.snap && this.props.snap.x && (v =
|
|
18937
|
+
this.props.snap && this.props.snap.x && (v = pf(v, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (_ = pf(_, this.props.snap.y, this.props.snapGap));
|
|
18923
18938
|
var b = this.calculateNewSizeFromAspectRatio(v, _, {
|
|
18924
18939
|
width: y.maxWidth,
|
|
18925
18940
|
height: y.maxHeight
|
|
@@ -18928,7 +18943,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18928
18943
|
height: o
|
|
18929
18944
|
});
|
|
18930
18945
|
if (v = b.newWidth, _ = b.newHeight, this.props.grid) {
|
|
18931
|
-
var x =
|
|
18946
|
+
var x = lf(v, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = lf(_, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0, w = C === 0 || Math.abs(x - v) <= C ? x : v, T = C === 0 || Math.abs(S - _) <= C ? S : _;
|
|
18932
18947
|
v = w, _ = T;
|
|
18933
18948
|
}
|
|
18934
18949
|
var E = {
|
|
@@ -18976,7 +18991,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18976
18991
|
height: this.props.size.height ?? "auto"
|
|
18977
18992
|
}), this.unbindEvents(), this.setState({
|
|
18978
18993
|
isResizing: !1,
|
|
18979
|
-
backgroundStyle:
|
|
18994
|
+
backgroundStyle: of(of({}, this.state.backgroundStyle), { cursor: "auto" })
|
|
18980
18995
|
}));
|
|
18981
18996
|
}, t.prototype.updateSize = function(e) {
|
|
18982
18997
|
this.setState({
|
|
@@ -18989,7 +19004,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
18989
19004
|
className: o,
|
|
18990
19005
|
style: a,
|
|
18991
19006
|
children: Object.keys(n).map(function(t) {
|
|
18992
|
-
return n[t] === !1 ? null : H(
|
|
19007
|
+
return n[t] === !1 ? null : H(rf, {
|
|
18993
19008
|
direction: t,
|
|
18994
19009
|
onResizeStart: e.onResizeStart,
|
|
18995
19010
|
replaceStyles: r && r[t],
|
|
@@ -19000,8 +19015,8 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
19000
19015
|
}) : null;
|
|
19001
19016
|
}, t.prototype.render = function() {
|
|
19002
19017
|
var e = this, t = Object.keys(this.props).reduce(function(t, n) {
|
|
19003
|
-
return
|
|
19004
|
-
}, {}), n =
|
|
19018
|
+
return vf.indexOf(n) === -1 && (t[n] = e.props[n]), t;
|
|
19019
|
+
}, {}), n = of(of(of({
|
|
19005
19020
|
position: "relative",
|
|
19006
19021
|
userSelect: this.state.isResizing ? "none" : "auto"
|
|
19007
19022
|
}, this.props.style), this.sizeStyle), {
|
|
@@ -19012,7 +19027,7 @@ var qd = Rt(({ token: e, css: t }) => ({
|
|
|
19012
19027
|
boxSizing: "border-box",
|
|
19013
19028
|
flexShrink: 0
|
|
19014
19029
|
});
|
|
19015
|
-
return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div",
|
|
19030
|
+
return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div", of({
|
|
19016
19031
|
style: n,
|
|
19017
19032
|
className: this.props.className
|
|
19018
19033
|
}, t, {
|
|
@@ -19066,11 +19081,11 @@ Y(G)`
|
|
|
19066
19081
|
background: none !important;
|
|
19067
19082
|
}
|
|
19068
19083
|
`;
|
|
19069
|
-
var
|
|
19084
|
+
var xf = A((e, t) => {
|
|
19070
19085
|
let { defaultWidth: n, defaultHeight: r = 180, minHeight: i = 180, maxHeight: a = 400, children: s, onReSize: c, onReSizeStop: l, ...u } = e;
|
|
19071
19086
|
o();
|
|
19072
19087
|
let d = z(null);
|
|
19073
|
-
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(
|
|
19088
|
+
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(bf, {
|
|
19074
19089
|
ref: d,
|
|
19075
19090
|
enable: { top: !0 },
|
|
19076
19091
|
defaultSize: {
|
|
@@ -19085,7 +19100,7 @@ var yf = A((e, t) => {
|
|
|
19085
19100
|
...u,
|
|
19086
19101
|
children: s
|
|
19087
19102
|
});
|
|
19088
|
-
}),
|
|
19103
|
+
}), Sf = Y.div`
|
|
19089
19104
|
.ant-tabs {
|
|
19090
19105
|
.ant-tabs-tab {
|
|
19091
19106
|
positon: relative;
|
|
@@ -19145,11 +19160,11 @@ var yf = A((e, t) => {
|
|
|
19145
19160
|
color: var(--ant-color-text);
|
|
19146
19161
|
}
|
|
19147
19162
|
}
|
|
19148
|
-
`,
|
|
19163
|
+
`, Cf = ({ terminals: e, currentActive: t, onClose: n }) => {
|
|
19149
19164
|
let [r, i] = B(t || e[0]?.url || ""), [a, o] = B(300), s = E.useRef(null), c = R(() => e.map((e) => ({
|
|
19150
19165
|
key: e.url,
|
|
19151
19166
|
label: e.name,
|
|
19152
|
-
children: /* @__PURE__ */ H(
|
|
19167
|
+
children: /* @__PURE__ */ H(Qd, {
|
|
19153
19168
|
height: a,
|
|
19154
19169
|
url: e.url
|
|
19155
19170
|
})
|
|
@@ -19159,10 +19174,10 @@ var yf = A((e, t) => {
|
|
|
19159
19174
|
}, 200);
|
|
19160
19175
|
return F(() => {
|
|
19161
19176
|
t && i(t);
|
|
19162
|
-
}, [t]), /* @__PURE__ */ H(
|
|
19177
|
+
}, [t]), /* @__PURE__ */ H(xf, {
|
|
19163
19178
|
onReSize: l,
|
|
19164
19179
|
ref: s,
|
|
19165
|
-
children: /* @__PURE__ */ H(
|
|
19180
|
+
children: /* @__PURE__ */ H(Sf, { children: /* @__PURE__ */ H(At, {
|
|
19166
19181
|
type: "editable-card",
|
|
19167
19182
|
hideAdd: !0,
|
|
19168
19183
|
activeKey: r,
|
|
@@ -19178,11 +19193,11 @@ var yf = A((e, t) => {
|
|
|
19178
19193
|
}) }
|
|
19179
19194
|
}) })
|
|
19180
19195
|
});
|
|
19181
|
-
},
|
|
19196
|
+
}, wf = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(Cf, {
|
|
19182
19197
|
terminals: e,
|
|
19183
19198
|
currentActive: r,
|
|
19184
19199
|
onClose: n
|
|
19185
|
-
}),
|
|
19200
|
+
}), Tf = Y.ul`
|
|
19186
19201
|
list-style: none;
|
|
19187
19202
|
padding-left: 0;
|
|
19188
19203
|
margin: 0;
|
|
@@ -19200,16 +19215,16 @@ var yf = A((e, t) => {
|
|
|
19200
19215
|
display: inline-flex;
|
|
19201
19216
|
}
|
|
19202
19217
|
}
|
|
19203
|
-
`,
|
|
19218
|
+
`, Ef = (e) => {
|
|
19204
19219
|
let t = o(), { list: n } = e;
|
|
19205
|
-
return /* @__PURE__ */ H(
|
|
19220
|
+
return /* @__PURE__ */ H(Tf, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
|
|
19206
19221
|
className: "title",
|
|
19207
19222
|
children: [e.title?.locale ? t.formatMessage({ id: e.title?.text || "" }) : e.title, ":"]
|
|
19208
19223
|
}), /* @__PURE__ */ H("span", {
|
|
19209
19224
|
className: "content",
|
|
19210
19225
|
children: t.formatMessage({ id: e.tips })
|
|
19211
19226
|
})] }, n)) });
|
|
19212
|
-
},
|
|
19227
|
+
}, Df = Y.div`
|
|
19213
19228
|
.ant-transfer-section {
|
|
19214
19229
|
width: 100%;
|
|
19215
19230
|
height: 300px;
|
|
@@ -19266,12 +19281,12 @@ var yf = A((e, t) => {
|
|
|
19266
19281
|
.ant-pagination {
|
|
19267
19282
|
justify-content: center;
|
|
19268
19283
|
}
|
|
19269
|
-
`,
|
|
19284
|
+
`, Of = (e) => {
|
|
19270
19285
|
let t = o(), n = (e) => e.selectedCount ? /* @__PURE__ */ H("span", {
|
|
19271
19286
|
style: { color: "var(--ant-color-text-secondary)" },
|
|
19272
19287
|
children: t.formatMessage({ id: "common.select.count" }, { count: e.selectedCount })
|
|
19273
19288
|
}) : null;
|
|
19274
|
-
return /* @__PURE__ */ H(
|
|
19289
|
+
return /* @__PURE__ */ H(Df, { children: /* @__PURE__ */ H(Mt, {
|
|
19275
19290
|
...e,
|
|
19276
19291
|
selectAllLabels: e.selectAllLabels || [n, n],
|
|
19277
19292
|
selectionsIcon: /* @__PURE__ */ H(Ae, { style: {
|
|
@@ -19279,7 +19294,7 @@ var yf = A((e, t) => {
|
|
|
19279
19294
|
marginBottom: 3
|
|
19280
19295
|
} })
|
|
19281
19296
|
}) });
|
|
19282
|
-
},
|
|
19297
|
+
}, kf = A((e, t) => {
|
|
19283
19298
|
let { minHeight: n = 50, header: r, variant: i = "bordered", children: a, setCollapsed: o } = e, [s, c] = B(!0), l = z(null);
|
|
19284
19299
|
F(() => {
|
|
19285
19300
|
l?.current && (l.current.style.minHeight = s ? `${l.current.scrollHeight || 0}px` : "0px");
|
|
@@ -19312,7 +19327,7 @@ var yf = A((e, t) => {
|
|
|
19312
19327
|
})
|
|
19313
19328
|
})]
|
|
19314
19329
|
});
|
|
19315
|
-
}),
|
|
19330
|
+
}), Af = (e) => {
|
|
19316
19331
|
let [t, n] = Ft.useMessage(), { icon: r, accept: i, type: a, size: s = "large", shape: c = "circle" } = e, l = o(), u = (e) => !1, d = (n) => e.maxFileSize && n.size > e.maxFileSize ? (t.open({
|
|
19317
19332
|
type: "warning",
|
|
19318
19333
|
content: l.formatMessage({ id: "playground.uploadfile.sizeError" }, { size: `${b(e.maxFileSize)}` })
|
|
@@ -19349,7 +19364,7 @@ var yf = A((e, t) => {
|
|
|
19349
19364
|
})
|
|
19350
19365
|
}), n]
|
|
19351
19366
|
});
|
|
19352
|
-
},
|
|
19367
|
+
}, jf = A((e, t) => {
|
|
19353
19368
|
let { lang: n, value: r, config: i, defaultLang: a, height: o = 380, theme: s = "vs-dark", header: c, variant: l = "borderless", placeholder: u } = e, d = z(null), f = (e) => {
|
|
19354
19369
|
e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
19355
19370
|
noSemanticValidation: !1,
|
|
@@ -19404,4 +19419,4 @@ var yf = A((e, t) => {
|
|
|
19404
19419
|
});
|
|
19405
19420
|
});
|
|
19406
19421
|
//#endregion
|
|
19407
|
-
export { dn as Access, gn as AlertBlockInfo, fn as AlertInfo, yn as AudioAnimation, Sn as AudioPlayer,
|
|
19422
|
+
export { dn as Access, gn as AlertBlockInfo, fn as AlertInfo, yn as AudioAnimation, Sn as AudioPlayer, go as AutoComplete, jn as AutoImage, f as AutoTooltip, Wo as BarChart, To as BaseSelect, mi as BibtexViewer, gi as CardWrapper, Hs as Cascader, xd as CellContent, Bo as Chart, xi as CheckButtons, Ws as Checkbox, Gs as CheckboxField, wi as CollapseContainer, Di as CollapsePanel, Ea as ColumnSettings, Ma as ColumnWrapper, Ra as CommandViewer, Ba as ContentWrapper, u as CopyButton, un as CoreUIProvider, Ua as DeleteModal, Ga as DividerLine, qa as DocLink, Ai as DropdownActions, Ya as DropdownButtons, Xa as DynamicForm, C as EditorWrap, $o as ErrorMessage, Ks as FieldComponent, Sl as FilterBar, ts as FilterForm, bl as FiltersButton, ns as FormButtons, Bs as FormDrawer, Rs as GSDrawer, Ko as GaugeChart, oc as GrafanaIcon, qo as HBarChart, Ti as HeadlessCollapse, p as HighlightCode, Do as INPUT_WIDTH, Q as IconFont, vc as ImageEditor, Fc as InfiniteScroller, Rc as InfiniteScrollerProvider, td as InfoColumn, Co as Input, vo as InputNumber, yo as InputSearch, Bc as LabelCell, Za as LabelInfo, Kc as LabelSelector, qc as LabelSelectorProvider, Yo as LineChart, Zc as ListInput, Lo as ListMap, rl as LogsViewer, al as MetadataList, Xo as MixLineBarChart, is as ModalFooter, sl as MoreButton, Qs as MultipleSelect, fl as NoResult, l as OverlayScroller, _l as PageBox, ml as PageBreadcrumb, gl as PageContainerInner, tl as PageSize, xl as PageTools, bo as Password, wl as Popover, Tl as ProgressBar, El as RadioButtons, Dl as ResizeContainer, xf as ResizePanel, pd as RowChildren, nc as RowTextarea, Zo as ScatterChart, Al as ScrollSpyTabs, Fl as ScrollerModal, Ia as SegmentLine, Eo as Select, Hl as SelectPanel, Wl as Shortcut, On as SimpleAudio, bi as SimpleCard, Xu as SimpleOverlay, Zs as SimpleSelect, ed as SimpleTable, fi as SingleImage, ko as Slider, ec as SmallCloseButton, id as SpeechContent, sd as StatusTag, ld as SubDrawer, jo as Switch, ac as SwitchInput, kd as Table, Ad as TableProvider, jd as TableRowProvider, Md as TagsWrapper, Bd as TemplateCard, Gd as TemplateCardList, Hd as TemplateCardSkeleton, wf as TerminalTabs, So as Textarea, Pd as ThemeTag, tc as ThumbImage, Ef as TooltipList, c as TooltipOverlayScroller, Of as Transfer, kf as TransitionWrapper, Af as UploadAudio, Mi as UploadImage, jf as ViewerEditor, Qd as XTerminal, Hi as config, sc as icons, wc as processImage, ki as useAccess, Oi as useActions, Pi as useAddImage, Fi as useAppUtils, Ii as useBodyScroll, Vi as useChunkFetch, $i as useChunkRequest, Oa as useColumnWrapperContext, Oa as useWrapperContext, ea as useContainerScroll, a as useCoreUIContext, ba as useCoreUISlots, xa as useCurrentUser, ta as useDeferredRequest, sa as useDownloadLogs, ra as useDownloadStream, ca as useExpandedRowKeys, jl as useFinishFailed, o as useIntl, d as useOverlayScroller, ua as useQueryData, ua as useRequest, la as useQueryDataList, da as useRequestToken, fa as useResponsive, Ml as useScrollActiveChange, Lc as useScrollerContext, Sa as useTableFetch, ha as useTableMultiSort, pa as useTableRowSelection, ma as useTableSort, Dd as useTableSorter, ga as useUpdateChunkedList, Ro as useValidateFields, _a as useWatchList, va as useWindowResize, S as utils };
|