@gpustack/core-ui 1.0.21 → 1.0.22
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
|
@@ -3,7 +3,7 @@ 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
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
|
-
import { t as C } from "./editor-wrap-
|
|
6
|
+
import { t as C } from "./editor-wrap-LcV3ZHZv.js";
|
|
7
7
|
import w from "axios";
|
|
8
8
|
import * as T from "react";
|
|
9
9
|
import E, { PureComponent as D, createContext as O, createElement as k, forwardRef as A, isValidElement as j, memo as M, useCallback as N, useContext as P, useEffect as F, useImperativeHandle as I, useLayoutEffect as L, useMemo as R, useRef as z, useState as B, version as ee } from "react";
|
|
@@ -4244,6 +4244,9 @@ var ya = {}, ba = () => {
|
|
|
4244
4244
|
.ant-select-selection-wrap {
|
|
4245
4245
|
height: 100%;
|
|
4246
4246
|
}
|
|
4247
|
+
.ant-select-content-item-suffix {
|
|
4248
|
+
margin-inline-start: 0px;
|
|
4249
|
+
}
|
|
4247
4250
|
|
|
4248
4251
|
&.ant-select-auto-complete {
|
|
4249
4252
|
.ant-select-selection-search {
|
|
@@ -6684,23 +6687,21 @@ var Rs = (e) => {
|
|
|
6684
6687
|
.ant-checkbox-wrapper {
|
|
6685
6688
|
color: var(--ant-color-text-tertiary);
|
|
6686
6689
|
}
|
|
6687
|
-
`, Xs =
|
|
6688
|
-
border-radius: 12px;
|
|
6689
|
-
`, Zs = A((e, t) => {
|
|
6690
|
+
`, Xs = A((e, t) => {
|
|
6690
6691
|
let n = o(), { options: r = [], showTags: i, styles: a = {}, optionLabelRender: s, maxTagCount: c, ...l } = e, [u, d] = E.useState({
|
|
6691
6692
|
checked: !1,
|
|
6692
6693
|
indeterminate: !1
|
|
6693
|
-
}), [p, m] = E.useState(r || []), h = E.useRef(null), g = E.useRef(null)
|
|
6694
|
-
F(() => {
|
|
6694
|
+
}), [p, m] = E.useState(r || []), h = E.useRef(null), g = E.useRef(null);
|
|
6695
|
+
Array.isArray(e.value) && e.value.length, F(() => {
|
|
6695
6696
|
m(r || []);
|
|
6696
6697
|
}, [r]);
|
|
6697
|
-
let
|
|
6698
|
+
let _ = (e, t) => {
|
|
6698
6699
|
let { value: n, label: r } = e;
|
|
6699
6700
|
return /* @__PURE__ */ U(qs, { children: [l.value?.includes?.(n) ? /* @__PURE__ */ H(K, { checked: !0 }) : /* @__PURE__ */ H(K, {}), /* @__PURE__ */ H(f, {
|
|
6700
6701
|
ghost: !0,
|
|
6701
6702
|
children: s ? s(e) : r
|
|
6702
6703
|
})] });
|
|
6703
|
-
},
|
|
6704
|
+
}, v = (e) => {
|
|
6704
6705
|
let t = e.target.checked, n = p?.map((e) => e.value) || [];
|
|
6705
6706
|
d({
|
|
6706
6707
|
checked: t,
|
|
@@ -6708,18 +6709,18 @@ var Rs = (e) => {
|
|
|
6708
6709
|
});
|
|
6709
6710
|
let r = [...l.value || []];
|
|
6710
6711
|
r = t ? Array.from(new Set([...r, ...n])) : r.filter((e) => !n.includes(e)), l.onChange?.(r, p || []);
|
|
6711
|
-
},
|
|
6712
|
+
}, y = (e) => /* @__PURE__ */ U(Js, { children: [l.mode === "multiple" && /* @__PURE__ */ H(Ys, { children: /* @__PURE__ */ H(K, {
|
|
6712
6713
|
checked: u.checked,
|
|
6713
6714
|
indeterminate: u.indeterminate,
|
|
6714
|
-
onChange:
|
|
6715
|
+
onChange: v,
|
|
6715
6716
|
children: n.formatMessage({ id: "common.checkbox.all" })
|
|
6716
|
-
}) }), e] }),
|
|
6717
|
+
}) }), e] }), b = (e, t) => {
|
|
6717
6718
|
let n = Array.isArray(e) ? e : [e], r = p?.map((e) => e.value) || [], i = n.length === r?.length;
|
|
6718
6719
|
d({
|
|
6719
6720
|
checked: i,
|
|
6720
6721
|
indeterminate: !i && n.length > 0
|
|
6721
6722
|
}), l.onChange?.(n, t);
|
|
6722
|
-
},
|
|
6723
|
+
}, x = (e, t) => !t || !t.label ? !1 : t.label.toLowerCase().includes(e.toLowerCase()), S = (e) => {
|
|
6723
6724
|
if (!l.value || !Array.isArray(l.value) || e.length === 0) {
|
|
6724
6725
|
d({
|
|
6725
6726
|
checked: !1,
|
|
@@ -6732,32 +6733,34 @@ var Rs = (e) => {
|
|
|
6732
6733
|
checked: r,
|
|
6733
6734
|
indeterminate: n.some((e) => t.has(e)) && !r
|
|
6734
6735
|
});
|
|
6735
|
-
},
|
|
6736
|
-
let { label: t } = e,
|
|
6737
|
-
return /* @__PURE__ */ H(
|
|
6736
|
+
}, C = (e) => {
|
|
6737
|
+
let { label: t } = e, n = e.isMaxTag ? `+${t.slice(0, -3).slice(1)}` : t;
|
|
6738
|
+
return /* @__PURE__ */ H(jt, {
|
|
6738
6739
|
variant: "filled",
|
|
6739
6740
|
closable: e.closable,
|
|
6740
6741
|
onClose: e.onClose,
|
|
6741
6742
|
style: {
|
|
6742
6743
|
height: 22,
|
|
6744
|
+
marginRight: 4,
|
|
6745
|
+
borderRadius: 12,
|
|
6743
6746
|
backgroundColor: "var(--ant-color-fill-secondary)",
|
|
6744
6747
|
fontSize: "var(--ant-font-size)"
|
|
6745
6748
|
},
|
|
6746
6749
|
className: "flex-center",
|
|
6747
|
-
children:
|
|
6750
|
+
children: n
|
|
6748
6751
|
});
|
|
6749
|
-
},
|
|
6752
|
+
}, w = (e) => {
|
|
6750
6753
|
if (l.showSearch?.onSearch) l.showSearch?.onSearch?.(e);
|
|
6751
6754
|
else {
|
|
6752
6755
|
let t = r?.filter((t) => t.label.toLowerCase().includes(e.toLowerCase()));
|
|
6753
|
-
m(t || []),
|
|
6756
|
+
m(t || []), S(t || []);
|
|
6754
6757
|
}
|
|
6755
|
-
},
|
|
6758
|
+
}, T = (e) => {
|
|
6756
6759
|
l.onBlur?.(e);
|
|
6757
|
-
},
|
|
6760
|
+
}, D = (e) => {
|
|
6758
6761
|
l.onFocus?.(e);
|
|
6759
|
-
},
|
|
6760
|
-
e || (
|
|
6762
|
+
}, O = (e) => {
|
|
6763
|
+
e || (S(r), m(r || []));
|
|
6761
6764
|
};
|
|
6762
6765
|
return F(() => {
|
|
6763
6766
|
let e = h.current?.querySelector?.("input");
|
|
@@ -6791,24 +6794,24 @@ var Rs = (e) => {
|
|
|
6791
6794
|
ref: g,
|
|
6792
6795
|
maxTagTextLength: l.maxTagTextLength ?? 15,
|
|
6793
6796
|
options: p,
|
|
6794
|
-
maxTagCount:
|
|
6797
|
+
maxTagCount: c,
|
|
6795
6798
|
defaultActiveFirstOption: !1,
|
|
6796
|
-
popupRender:
|
|
6797
|
-
optionRender:
|
|
6799
|
+
popupRender: y,
|
|
6800
|
+
optionRender: _,
|
|
6801
|
+
tagRender: C,
|
|
6798
6802
|
menuItemSelectedIcon: !1,
|
|
6799
|
-
onChange:
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
onFocus: k,
|
|
6803
|
+
onChange: b,
|
|
6804
|
+
onBlur: T,
|
|
6805
|
+
onFocus: D,
|
|
6803
6806
|
showSearch: {
|
|
6804
|
-
onSearch:
|
|
6805
|
-
filterOption: l.showSearch?.filterOption ||
|
|
6807
|
+
onSearch: w,
|
|
6808
|
+
filterOption: l.showSearch?.filterOption || x
|
|
6806
6809
|
},
|
|
6807
|
-
onOpenChange:
|
|
6810
|
+
onOpenChange: O,
|
|
6808
6811
|
children: e.children
|
|
6809
6812
|
})
|
|
6810
6813
|
});
|
|
6811
|
-
}),
|
|
6814
|
+
}), Zs = (e) => {
|
|
6812
6815
|
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 = "", _ = q?.Item?.useStatus?.();
|
|
6813
6816
|
g = e.status || (l ? _?.status : "") || "";
|
|
6814
6817
|
let y = R(() => s?.length ? (0, Z.cloneDeep)(s).map((e) => (e.locale && (e.label = f.formatMessage({ id: e.label })), e)) : [], [s, f]);
|
|
@@ -6833,7 +6836,7 @@ var Rs = (e) => {
|
|
|
6833
6836
|
description: a,
|
|
6834
6837
|
disabled: e.disabled,
|
|
6835
6838
|
onClick: b,
|
|
6836
|
-
children: /* @__PURE__ */ H(
|
|
6839
|
+
children: /* @__PURE__ */ H(Xs, {
|
|
6837
6840
|
...d,
|
|
6838
6841
|
ref: h,
|
|
6839
6842
|
options: r ? void 0 : y,
|
|
@@ -6844,7 +6847,7 @@ var Rs = (e) => {
|
|
|
6844
6847
|
children: r
|
|
6845
6848
|
})
|
|
6846
6849
|
}) });
|
|
6847
|
-
},
|
|
6850
|
+
}, Qs = Y(G)`
|
|
6848
6851
|
background-color: transparent !important;
|
|
6849
6852
|
padding: 0;
|
|
6850
6853
|
.anticon {
|
|
@@ -6857,13 +6860,13 @@ var Rs = (e) => {
|
|
|
6857
6860
|
color: var(--ant-color-text-tertiary);
|
|
6858
6861
|
}
|
|
6859
6862
|
}
|
|
6860
|
-
`,
|
|
6863
|
+
`, $s = ({ onClick: e }) => /* @__PURE__ */ H(Qs, {
|
|
6861
6864
|
icon: /* @__PURE__ */ H(oe, {}),
|
|
6862
6865
|
shape: "circle",
|
|
6863
6866
|
type: "text",
|
|
6864
6867
|
onClick: e,
|
|
6865
6868
|
size: "small"
|
|
6866
|
-
}),
|
|
6869
|
+
}), ec = ({ layout: e = {
|
|
6867
6870
|
rows: 1,
|
|
6868
6871
|
cols: 1
|
|
6869
6872
|
}, column: t = 2, dataList: n, editable: r, responseable: i, gutter: a, onDelete: o, onClick: s, autoBgColor: c, autoSize: l, style: u }) => {
|
|
@@ -6988,7 +6991,7 @@ var Rs = (e) => {
|
|
|
6988
6991
|
onClick: () => f(e)
|
|
6989
6992
|
})) })
|
|
6990
6993
|
}) : null });
|
|
6991
|
-
},
|
|
6994
|
+
}, tc = (e) => {
|
|
6992
6995
|
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({
|
|
6993
6996
|
minRows: 1,
|
|
6994
6997
|
maxRows: 1,
|
|
@@ -7093,7 +7096,7 @@ var Rs = (e) => {
|
|
|
7093
7096
|
children: [l && /* @__PURE__ */ H("span", {
|
|
7094
7097
|
className: "title",
|
|
7095
7098
|
children: l
|
|
7096
|
-
}), /* @__PURE__ */ H(
|
|
7099
|
+
}), /* @__PURE__ */ H(ec, {
|
|
7097
7100
|
editable: !0,
|
|
7098
7101
|
dataList: t.imgs,
|
|
7099
7102
|
onDelete: D
|
|
@@ -7106,7 +7109,7 @@ var Rs = (e) => {
|
|
|
7106
7109
|
children: [x, /* @__PURE__ */ U("div", {
|
|
7107
7110
|
className: "actions",
|
|
7108
7111
|
children: [
|
|
7109
|
-
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H(
|
|
7112
|
+
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H($s, { onClick: T }),
|
|
7110
7113
|
S,
|
|
7111
7114
|
/* @__PURE__ */ H(J, {
|
|
7112
7115
|
title: f.formatMessage({ id: "common.button.delete" }),
|
|
@@ -7124,7 +7127,7 @@ var Rs = (e) => {
|
|
|
7124
7127
|
]
|
|
7125
7128
|
})
|
|
7126
7129
|
});
|
|
7127
|
-
},
|
|
7130
|
+
}, nc = Y.div`
|
|
7128
7131
|
display: flex;
|
|
7129
7132
|
flex-direction: column;
|
|
7130
7133
|
justify-content: center;
|
|
@@ -7133,15 +7136,15 @@ var Rs = (e) => {
|
|
|
7133
7136
|
border-radius: var(--ant-border-radius);
|
|
7134
7137
|
padding: 12px 14px;
|
|
7135
7138
|
min-height: 54px;
|
|
7136
|
-
`,
|
|
7139
|
+
`, rc = Y.div`
|
|
7137
7140
|
display: flex;
|
|
7138
7141
|
justify-content: space-between;
|
|
7139
7142
|
align-items: center;
|
|
7140
|
-
`,
|
|
7143
|
+
`, ic = (e) => {
|
|
7141
7144
|
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);
|
|
7142
|
-
return /* @__PURE__ */ U(
|
|
7145
|
+
return /* @__PURE__ */ U(nc, {
|
|
7143
7146
|
style: s,
|
|
7144
|
-
children: [/* @__PURE__ */ U(
|
|
7147
|
+
children: [/* @__PURE__ */ U(rc, { children: [/* @__PURE__ */ H(Za, {
|
|
7145
7148
|
label: t,
|
|
7146
7149
|
description: n
|
|
7147
7150
|
}), /* @__PURE__ */ H(J, {
|
|
@@ -7155,7 +7158,7 @@ var Rs = (e) => {
|
|
|
7155
7158
|
})
|
|
7156
7159
|
})] }), (c || d) && o]
|
|
7157
7160
|
});
|
|
7158
|
-
},
|
|
7161
|
+
}, ac = ({ style: e }) => /* @__PURE__ */ U("svg", {
|
|
7159
7162
|
width: "23",
|
|
7160
7163
|
height: "23",
|
|
7161
7164
|
viewBox: "0 0 23 23",
|
|
@@ -7177,7 +7180,7 @@ var Rs = (e) => {
|
|
|
7177
7180
|
stopColor: "#f05a28"
|
|
7178
7181
|
})]
|
|
7179
7182
|
}) })]
|
|
7180
|
-
}),
|
|
7183
|
+
}), oc = {
|
|
7181
7184
|
EditOutlined: E.createElement(he),
|
|
7182
7185
|
ExperimentOutlined: E.createElement(ve),
|
|
7183
7186
|
DeleteOutlined: E.createElement(ue),
|
|
@@ -7225,8 +7228,8 @@ var Rs = (e) => {
|
|
|
7225
7228
|
Disabled: E.createElement(Q, { type: "icon-disabled" }),
|
|
7226
7229
|
CopyOutlined: E.createElement(le),
|
|
7227
7230
|
Metrics: E.createElement(Q, { type: "icon-metrics" })
|
|
7228
|
-
},
|
|
7229
|
-
function
|
|
7231
|
+
}, sc = "rgba(0, 0, 255, 0.3)";
|
|
7232
|
+
function cc(e) {
|
|
7230
7233
|
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({
|
|
7231
7234
|
x: 0,
|
|
7232
7235
|
y: 0
|
|
@@ -7298,7 +7301,7 @@ function lc(e) {
|
|
|
7298
7301
|
lineWidth: i
|
|
7299
7302
|
}, {
|
|
7300
7303
|
lineWidth: i,
|
|
7301
|
-
color:
|
|
7304
|
+
color: sc,
|
|
7302
7305
|
compositeOperation: "destination-out"
|
|
7303
7306
|
}), P(o, {
|
|
7304
7307
|
x: r,
|
|
@@ -7306,7 +7309,7 @@ function lc(e) {
|
|
|
7306
7309
|
lineWidth: i
|
|
7307
7310
|
}, {
|
|
7308
7311
|
lineWidth: i,
|
|
7309
|
-
color:
|
|
7312
|
+
color: sc,
|
|
7310
7313
|
compositeOperation: "source-over"
|
|
7311
7314
|
}), o.restore();
|
|
7312
7315
|
}, L = (e) => {
|
|
@@ -7394,7 +7397,7 @@ function lc(e) {
|
|
|
7394
7397
|
}
|
|
7395
7398
|
//#endregion
|
|
7396
7399
|
//#region src/lib/components/image-editor/hooks/use-zoom.ts
|
|
7397
|
-
function
|
|
7400
|
+
function lc(e) {
|
|
7398
7401
|
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) => {
|
|
7399
7402
|
if (l.current <= t || l.current >= 8) return;
|
|
7400
7403
|
let n = r.current.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, c = o / n.width, u = s / n.height;
|
|
@@ -7430,16 +7433,16 @@ function uc(e) {
|
|
|
7430
7433
|
baseScale: u
|
|
7431
7434
|
};
|
|
7432
7435
|
}
|
|
7433
|
-
var
|
|
7436
|
+
var uc = {
|
|
7434
7437
|
"editor-wrapper": "index-module__editor-wrapper___-q6TM",
|
|
7435
7438
|
tools: "index-module__tools___Vs6ua",
|
|
7436
7439
|
"editor-content": "index-module__editor-content___YIk-U",
|
|
7437
7440
|
"overlay-canvas": "index-module__overlay-canvas___SaATc",
|
|
7438
7441
|
"overlay-canvas--disabled": "index-module__overlay-canvas--disabled___5TrsB"
|
|
7439
|
-
},
|
|
7442
|
+
}, dc = (e) => {
|
|
7440
7443
|
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();
|
|
7441
7444
|
return /* @__PURE__ */ U("div", {
|
|
7442
|
-
className:
|
|
7445
|
+
className: uc.tools,
|
|
7443
7446
|
children: [
|
|
7444
7447
|
/* @__PURE__ */ H(J, {
|
|
7445
7448
|
placement: "bottomLeft",
|
|
@@ -7531,7 +7534,7 @@ var dc = {
|
|
|
7531
7534
|
})
|
|
7532
7535
|
]
|
|
7533
7536
|
});
|
|
7534
|
-
},
|
|
7537
|
+
}, fc = (e) => {
|
|
7535
7538
|
let t = o(), { disabled: n, isOriginal: r, invertMask: i, handleOnChangeMask: a, downloadMask: s, download: c } = e;
|
|
7536
7539
|
return /* @__PURE__ */ U("div", {
|
|
7537
7540
|
className: "tools",
|
|
@@ -7571,7 +7574,7 @@ var dc = {
|
|
|
7571
7574
|
})
|
|
7572
7575
|
})]
|
|
7573
7576
|
});
|
|
7574
|
-
},
|
|
7577
|
+
}, pc = Y.div`
|
|
7575
7578
|
position: absolute;
|
|
7576
7579
|
top: 0;
|
|
7577
7580
|
bottom: 0;
|
|
@@ -7581,9 +7584,9 @@ var dc = {
|
|
|
7581
7584
|
height: 100%;
|
|
7582
7585
|
width: ${(e) => `${e.width ? `${e.width}px` : "100%"}`};
|
|
7583
7586
|
z-index: 100;
|
|
7584
|
-
`,
|
|
7587
|
+
`, mc = (e) => {
|
|
7585
7588
|
let { width: t, height: n } = e;
|
|
7586
|
-
return /* @__PURE__ */ H(
|
|
7589
|
+
return /* @__PURE__ */ H(pc, {
|
|
7587
7590
|
width: t,
|
|
7588
7591
|
height: n,
|
|
7589
7592
|
children: /* @__PURE__ */ H(Dt, {
|
|
@@ -7591,7 +7594,7 @@ var dc = {
|
|
|
7591
7594
|
size: "middle"
|
|
7592
7595
|
})
|
|
7593
7596
|
});
|
|
7594
|
-
},
|
|
7597
|
+
}, hc = "rgba(0, 0, 255, 0.3)", gc = A(({ loading: e, imageSrc: t, disabled: n, imageStatus: r, maskUpload: i, accept: a, onSave: o, onScaleImageSize: s, handleUpdateImageList: c, handleUpdateMaskList: l }, u) => {
|
|
7595
7598
|
let d = z(null), f = z(null), p = z(null), [m, h] = B(60), g = z({
|
|
7596
7599
|
x: 0,
|
|
7597
7600
|
y: 0
|
|
@@ -7599,14 +7602,14 @@ var dc = {
|
|
|
7599
7602
|
width: 0,
|
|
7600
7603
|
height: 0,
|
|
7601
7604
|
loading: !1
|
|
7602
|
-
}), { 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 } =
|
|
7605
|
+
}), { 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 } = cc({
|
|
7603
7606
|
lineWidth: m,
|
|
7604
7607
|
translatePos: g,
|
|
7605
7608
|
isDisabled: n,
|
|
7606
7609
|
invertMask: v,
|
|
7607
7610
|
maskUpload: i,
|
|
7608
7611
|
onSave: o
|
|
7609
|
-
}), { handleOnWheel: ve, setActiveScale: ye, activeScale: be } =
|
|
7612
|
+
}), { handleOnWheel: ve, setActiveScale: ye, activeScale: be } = lc({
|
|
7610
7613
|
overlayCanvasRef: w,
|
|
7611
7614
|
canvasRef: C,
|
|
7612
7615
|
offscreenCanvasRef: T,
|
|
@@ -7765,10 +7768,10 @@ var dc = {
|
|
|
7765
7768
|
}, [i]), F(() => {
|
|
7766
7769
|
xe && E.current && (E.current.style.display = "none");
|
|
7767
7770
|
}, [xe]), /* @__PURE__ */ U("div", {
|
|
7768
|
-
className:
|
|
7771
|
+
className: uc["editor-wrapper"],
|
|
7769
7772
|
children: [/* @__PURE__ */ U("div", {
|
|
7770
7773
|
className: "flex-between",
|
|
7771
|
-
children: [/* @__PURE__ */ H(
|
|
7774
|
+
children: [/* @__PURE__ */ H(dc, {
|
|
7772
7775
|
handleBrushSizeChange: Ie,
|
|
7773
7776
|
undo: De,
|
|
7774
7777
|
onClear: we,
|
|
@@ -7780,7 +7783,7 @@ var dc = {
|
|
|
7780
7783
|
invertMask: v,
|
|
7781
7784
|
loading: e,
|
|
7782
7785
|
accept: a
|
|
7783
|
-
}), /* @__PURE__ */ H(
|
|
7786
|
+
}), /* @__PURE__ */ H(fc, {
|
|
7784
7787
|
handleOnChangeMask: Le,
|
|
7785
7788
|
invertMask: v,
|
|
7786
7789
|
downloadMask: Ce,
|
|
@@ -7790,7 +7793,7 @@ var dc = {
|
|
|
7790
7793
|
maskUpload: i
|
|
7791
7794
|
})]
|
|
7792
7795
|
}), /* @__PURE__ */ U("div", {
|
|
7793
|
-
className:
|
|
7796
|
+
className: uc["editor-content"],
|
|
7794
7797
|
ref: p,
|
|
7795
7798
|
style: {
|
|
7796
7799
|
position: "relative",
|
|
@@ -7799,7 +7802,7 @@ var dc = {
|
|
|
7799
7802
|
flex: 1
|
|
7800
7803
|
},
|
|
7801
7804
|
children: [
|
|
7802
|
-
x.loading && /* @__PURE__ */ H(
|
|
7805
|
+
x.loading && /* @__PURE__ */ H(mc, {
|
|
7803
7806
|
width: x.width,
|
|
7804
7807
|
height: x.height
|
|
7805
7808
|
}),
|
|
@@ -7812,7 +7815,7 @@ var dc = {
|
|
|
7812
7815
|
}),
|
|
7813
7816
|
/* @__PURE__ */ H("canvas", {
|
|
7814
7817
|
ref: w,
|
|
7815
|
-
className: (0, X.default)(
|
|
7818
|
+
className: (0, X.default)(uc["overlay-canvas"], { [uc["overlay-canvas--disabled"]]: xe }),
|
|
7816
7819
|
style: {
|
|
7817
7820
|
position: "absolute",
|
|
7818
7821
|
zIndex: 10,
|
|
@@ -7840,7 +7843,7 @@ var dc = {
|
|
|
7840
7843
|
position: "fixed",
|
|
7841
7844
|
width: m * be,
|
|
7842
7845
|
height: m * be,
|
|
7843
|
-
backgroundColor:
|
|
7846
|
+
backgroundColor: hc,
|
|
7844
7847
|
borderRadius: "50%",
|
|
7845
7848
|
pointerEvents: "none",
|
|
7846
7849
|
cursor: "none",
|
|
@@ -7850,21 +7853,21 @@ var dc = {
|
|
|
7850
7853
|
]
|
|
7851
7854
|
})]
|
|
7852
7855
|
});
|
|
7853
|
-
}),
|
|
7856
|
+
}), _c = E.memo(gc);
|
|
7854
7857
|
//#endregion
|
|
7855
7858
|
//#region src/lib/components/image-editor/extract-image-colors.ts
|
|
7856
|
-
function
|
|
7859
|
+
function vc(e, t) {
|
|
7857
7860
|
let n = document.createElement("canvas");
|
|
7858
7861
|
return n.width = e, n.height = t, {
|
|
7859
7862
|
canvas: n,
|
|
7860
7863
|
ctx: n.getContext("2d")
|
|
7861
7864
|
};
|
|
7862
7865
|
}
|
|
7863
|
-
function
|
|
7866
|
+
function yc(e, t, n, r) {
|
|
7864
7867
|
let i = (n * r + t) * 4;
|
|
7865
7868
|
return e[i] === 255 && e[i + 1] === 255 && e[i + 2] === 255;
|
|
7866
7869
|
}
|
|
7867
|
-
function
|
|
7870
|
+
function bc(e, t, n, r, i, a, o) {
|
|
7868
7871
|
let s = [[r, i]], c = [
|
|
7869
7872
|
[1, 0],
|
|
7870
7873
|
[-1, 0],
|
|
@@ -7877,43 +7880,43 @@ function xc(e, t, n, r, i, a, o) {
|
|
|
7877
7880
|
];
|
|
7878
7881
|
for (; s.length;) {
|
|
7879
7882
|
let [r, i] = s.pop();
|
|
7880
|
-
r < 0 || i < 0 || r >= t || i >= n || a[i][r] || !
|
|
7883
|
+
r < 0 || i < 0 || r >= t || i >= n || a[i][r] || !yc(e, r, i, t) || (a[i][r] = !0, o.push({
|
|
7881
7884
|
x: r,
|
|
7882
7885
|
y: i
|
|
7883
7886
|
}), c.forEach(([e, t]) => s.push([r + e, i + t])));
|
|
7884
7887
|
}
|
|
7885
7888
|
}
|
|
7886
|
-
function
|
|
7889
|
+
function xc(e) {
|
|
7887
7890
|
let { data: t, width: n, height: r } = e, i = Array.from({ length: r }, () => Array(n).fill(!1)), a = [];
|
|
7888
|
-
for (let e = 0; e < r; e++) for (let o = 0; o < n; o++) if (
|
|
7891
|
+
for (let e = 0; e < r; e++) for (let o = 0; o < n; o++) if (yc(t, o, e, n) && !i[e][o]) {
|
|
7889
7892
|
let s = [];
|
|
7890
|
-
|
|
7893
|
+
bc(t, n, r, o, e, i, s), a.push(s);
|
|
7891
7894
|
}
|
|
7892
7895
|
return a;
|
|
7893
7896
|
}
|
|
7894
|
-
function
|
|
7897
|
+
function Sc(e) {
|
|
7895
7898
|
return new Promise((t, n) => {
|
|
7896
7899
|
let r = new Image();
|
|
7897
7900
|
r.src = e, r.onload = () => t(r), r.onerror = () => n(/* @__PURE__ */ Error("Image loading failed"));
|
|
7898
7901
|
});
|
|
7899
7902
|
}
|
|
7900
|
-
async function
|
|
7901
|
-
let t = await
|
|
7903
|
+
async function Cc(e) {
|
|
7904
|
+
let t = await Sc(e), { canvas: n, ctx: r } = vc(t.width, t.height);
|
|
7902
7905
|
r.drawImage(t, 0, 0);
|
|
7903
|
-
let i =
|
|
7906
|
+
let i = xc(r.getImageData(0, 0, t.width, t.height));
|
|
7904
7907
|
return URL.revokeObjectURL(t.src), i;
|
|
7905
7908
|
}
|
|
7906
7909
|
//#endregion
|
|
7907
7910
|
//#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
|
|
7908
|
-
var
|
|
7911
|
+
var wc = /* @__PURE__ */ new Map(), Tc = /* @__PURE__ */ new WeakMap(), Ec = 0, Dc = void 0;
|
|
7912
|
+
function Oc(e) {
|
|
7913
|
+
return e ? Tc.has(e) ? Tc.get(e) : (Ec += 1, Tc.set(e, Ec.toString()), Tc.get(e)) : "0";
|
|
7914
|
+
}
|
|
7909
7915
|
function kc(e) {
|
|
7910
|
-
return
|
|
7916
|
+
return Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${t}_${t === "root" ? Oc(e.root) : e[t]}`).toString();
|
|
7911
7917
|
}
|
|
7912
7918
|
function Ac(e) {
|
|
7913
|
-
|
|
7914
|
-
}
|
|
7915
|
-
function jc(e) {
|
|
7916
|
-
let t = Ac(e), n = Tc.get(t);
|
|
7919
|
+
let t = kc(e), n = wc.get(t);
|
|
7917
7920
|
if (!n) {
|
|
7918
7921
|
let r = /* @__PURE__ */ new Map(), i, a = new IntersectionObserver((t) => {
|
|
7919
7922
|
t.forEach((t) => {
|
|
@@ -7928,11 +7931,11 @@ function jc(e) {
|
|
|
7928
7931
|
id: t,
|
|
7929
7932
|
observer: a,
|
|
7930
7933
|
elements: r
|
|
7931
|
-
},
|
|
7934
|
+
}, wc.set(t, n);
|
|
7932
7935
|
}
|
|
7933
7936
|
return n;
|
|
7934
7937
|
}
|
|
7935
|
-
function
|
|
7938
|
+
function jc(e, t, n = {}, r = Dc) {
|
|
7936
7939
|
if (window.IntersectionObserver === void 0 && r !== void 0) {
|
|
7937
7940
|
let i = e.getBoundingClientRect();
|
|
7938
7941
|
return t(r, {
|
|
@@ -7945,13 +7948,13 @@ function Mc(e, t, n = {}, r = Oc) {
|
|
|
7945
7948
|
rootBounds: i
|
|
7946
7949
|
}), () => {};
|
|
7947
7950
|
}
|
|
7948
|
-
let { id: i, observer: a, elements: o } =
|
|
7951
|
+
let { id: i, observer: a, elements: o } = Ac(n), s = o.get(e) || [];
|
|
7949
7952
|
return o.has(e) || o.set(e, s), s.push(t), a.observe(e), function() {
|
|
7950
|
-
s.splice(s.indexOf(t), 1), s.length === 0 && (o.delete(e), a.unobserve(e)), o.size === 0 && (a.disconnect(),
|
|
7953
|
+
s.splice(s.indexOf(t), 1), s.length === 0 && (o.delete(e), a.unobserve(e)), o.size === 0 && (a.disconnect(), wc.delete(i));
|
|
7951
7954
|
};
|
|
7952
7955
|
}
|
|
7953
7956
|
T.Component;
|
|
7954
|
-
function
|
|
7957
|
+
function Mc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i, triggerOnce: a, skip: o, initialInView: s, fallbackInView: c, onChange: l } = {}) {
|
|
7955
7958
|
let [u, d] = T.useState(null), f = T.useRef(l), [p, m] = T.useState({
|
|
7956
7959
|
inView: !!s,
|
|
7957
7960
|
entry: void 0
|
|
@@ -7959,7 +7962,7 @@ function Nc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
7959
7962
|
f.current = l, T.useEffect(() => {
|
|
7960
7963
|
if (o || !u) return;
|
|
7961
7964
|
let s;
|
|
7962
|
-
return s =
|
|
7965
|
+
return s = jc(u, (e, t) => {
|
|
7963
7966
|
m({
|
|
7964
7967
|
inView: e,
|
|
7965
7968
|
entry: t
|
|
@@ -7998,8 +8001,8 @@ function Nc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
7998
8001
|
}
|
|
7999
8002
|
//#endregion
|
|
8000
8003
|
//#region src/lib/components/infinite-scroller/use-infinite-scroll.ts
|
|
8001
|
-
function
|
|
8002
|
-
let { ref: o, inView: s } =
|
|
8004
|
+
function Nc({ total: e, current: t, loading: n, refresh: r, onBottom: i, throttleDelay: a = 300 }) {
|
|
8005
|
+
let { ref: o, inView: s } = Mc({ threshold: .2 }), c = z(!0), l = zt((0, Z.throttle)(() => {
|
|
8003
8006
|
n || t >= e || (i?.(), r(t + 1));
|
|
8004
8007
|
}, a));
|
|
8005
8008
|
return F(() => {
|
|
@@ -8017,8 +8020,8 @@ function Pc({ total: e, current: t, loading: n, refresh: r, onBottom: i, throttl
|
|
|
8017
8020
|
}
|
|
8018
8021
|
//#endregion
|
|
8019
8022
|
//#region src/lib/components/infinite-scroller/index.tsx
|
|
8020
|
-
var
|
|
8021
|
-
let { children: t, ...n } = e, r = o(), { observerRef: i, throttledLoadMore: a } =
|
|
8023
|
+
var Pc = (e) => {
|
|
8024
|
+
let { children: t, ...n } = e, r = o(), { observerRef: i, throttledLoadMore: a } = Nc(n);
|
|
8022
8025
|
return /* @__PURE__ */ U("div", {
|
|
8023
8026
|
className: "relative",
|
|
8024
8027
|
style: { width: "100%" },
|
|
@@ -8046,18 +8049,18 @@ var Fc = (e) => {
|
|
|
8046
8049
|
/* @__PURE__ */ H(pt.BackTop, { visibilityHeight: 1e3 })
|
|
8047
8050
|
]
|
|
8048
8051
|
});
|
|
8049
|
-
},
|
|
8050
|
-
let e = P(
|
|
8052
|
+
}, Fc = O({}), Ic = () => {
|
|
8053
|
+
let e = P(Fc);
|
|
8051
8054
|
if (!e) throw Error("useScrollerContext must be used within a ScrollerProvider");
|
|
8052
8055
|
return e;
|
|
8053
|
-
},
|
|
8056
|
+
}, Lc = ({ children: e, value: t }) => /* @__PURE__ */ H(Fc.Provider, {
|
|
8054
8057
|
value: t,
|
|
8055
8058
|
children: e
|
|
8056
|
-
}),
|
|
8059
|
+
}), Rc = Y.div`
|
|
8057
8060
|
display: flex;
|
|
8058
8061
|
flex-wrap: wrap;
|
|
8059
8062
|
gap: 6px;
|
|
8060
|
-
`,
|
|
8063
|
+
`, zc = ({ labels: e }) => /* @__PURE__ */ H(Rc, { children: Z.default.map(e, (e, t) => /* @__PURE__ */ U(f, {
|
|
8061
8064
|
className: "m-r-0",
|
|
8062
8065
|
maxWidth: 155,
|
|
8063
8066
|
style: {
|
|
@@ -8065,12 +8068,12 @@ var Fc = (e) => {
|
|
|
8065
8068
|
borderRadius: 12
|
|
8066
8069
|
},
|
|
8067
8070
|
children: [/* @__PURE__ */ H("span", { children: t }), /* @__PURE__ */ U("span", { children: [":", e] })]
|
|
8068
|
-
}, t)) }),
|
|
8069
|
-
let e = E.useContext(
|
|
8071
|
+
}, t)) }), Bc = E.createContext({}), Vc = () => {
|
|
8072
|
+
let e = E.useContext(Bc);
|
|
8070
8073
|
if (!e) throw Error("useLabelSelectorContext must be used within a LabelSelectorProvider");
|
|
8071
8074
|
return e;
|
|
8072
|
-
},
|
|
8073
|
-
let d = o(), [f, p] = B(!1), { options: m, placeholder: h = [] } =
|
|
8075
|
+
}, Hc = ({ labels: e, label: t, labelList: n, seperator: r, keyAddon: i, valueAddon: a, disabled: s, onChange: c, onDelete: l, onBlur: u }) => {
|
|
8076
|
+
let d = o(), [f, p] = B(!1), { options: m, placeholder: h = [] } = Vc(), 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) => {
|
|
8074
8077
|
c?.({
|
|
8075
8078
|
key: t.key,
|
|
8076
8079
|
value: e
|
|
@@ -8134,7 +8137,7 @@ var Fc = (e) => {
|
|
|
8134
8137
|
})
|
|
8135
8138
|
]
|
|
8136
8139
|
});
|
|
8137
|
-
},
|
|
8140
|
+
}, Uc = ({ label: e, labelList: t, seperator: n, keyAddon: r, valueAddon: i, disabled: a, onChange: s, onDelete: c, onPaste: l, onBlur: u }) => {
|
|
8138
8141
|
let d = o(), [f, p] = B(!1), m = (t) => {
|
|
8139
8142
|
let n = t.target.value;
|
|
8140
8143
|
s?.({
|
|
@@ -8201,7 +8204,7 @@ var Fc = (e) => {
|
|
|
8201
8204
|
})
|
|
8202
8205
|
]
|
|
8203
8206
|
});
|
|
8204
|
-
},
|
|
8207
|
+
}, Wc = ({ labels: e, labelList: t, onChange: n, onLabelListChange: r, onPaste: i, onBlur: a, onDelete: o, disabled: s, label: c, btnText: l, description: u, isAutoComplete: d }) => {
|
|
8205
8208
|
let f = (e) => {
|
|
8206
8209
|
let t = Z.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8207
8210
|
n?.(t);
|
|
@@ -8224,7 +8227,7 @@ var Fc = (e) => {
|
|
|
8224
8227
|
onAdd: m,
|
|
8225
8228
|
disabled: s,
|
|
8226
8229
|
btnText: l,
|
|
8227
|
-
children: /* @__PURE__ */ H(V, { children: d ? t?.map((n, r) => /* @__PURE__ */ H(
|
|
8230
|
+
children: /* @__PURE__ */ H(V, { children: d ? t?.map((n, r) => /* @__PURE__ */ H(Hc, {
|
|
8228
8231
|
disabled: s,
|
|
8229
8232
|
label: n,
|
|
8230
8233
|
seperator: ":",
|
|
@@ -8234,7 +8237,7 @@ var Fc = (e) => {
|
|
|
8234
8237
|
onChange: (e) => p(r, e),
|
|
8235
8238
|
onPaste: (e) => i?.(e, r),
|
|
8236
8239
|
onBlur: (e, t) => a?.(e, t, r)
|
|
8237
|
-
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(
|
|
8240
|
+
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(Uc, {
|
|
8238
8241
|
disabled: s,
|
|
8239
8242
|
label: e,
|
|
8240
8243
|
seperator: ":",
|
|
@@ -8245,7 +8248,7 @@ var Fc = (e) => {
|
|
|
8245
8248
|
onBlur: (e, t) => a?.(e, t, n)
|
|
8246
8249
|
}, n)) })
|
|
8247
8250
|
});
|
|
8248
|
-
},
|
|
8251
|
+
}, Gc = ({ value: e, onChange: t, onBlur: n, onDelete: r, disabled: i, label: a, btnText: s, description: c, isAutoComplete: l, enablePaste: u = !0 }) => {
|
|
8249
8252
|
let d = o(), [f, p] = B({}), [m, h] = B([]);
|
|
8250
8253
|
F(() => {
|
|
8251
8254
|
let t = e ?? {};
|
|
@@ -8262,7 +8265,7 @@ var Fc = (e) => {
|
|
|
8262
8265
|
let n = Z.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8263
8266
|
t?.(n);
|
|
8264
8267
|
};
|
|
8265
|
-
return /* @__PURE__ */ H(
|
|
8268
|
+
return /* @__PURE__ */ H(Wc, {
|
|
8266
8269
|
disabled: i,
|
|
8267
8270
|
label: a,
|
|
8268
8271
|
btnText: s,
|
|
@@ -8289,16 +8292,16 @@ var Fc = (e) => {
|
|
|
8289
8292
|
onBlur: n,
|
|
8290
8293
|
onDelete: r
|
|
8291
8294
|
});
|
|
8292
|
-
},
|
|
8295
|
+
}, Kc = ({ children: e, value: t }) => /* @__PURE__ */ H(Bc.Provider, {
|
|
8293
8296
|
value: t,
|
|
8294
8297
|
children: e
|
|
8295
|
-
}),
|
|
8298
|
+
}), qc = /[^=]+=[^=]*$/, Jc = (e) => {
|
|
8296
8299
|
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) => {
|
|
8297
8300
|
if (!e) {
|
|
8298
8301
|
f(s || []);
|
|
8299
8302
|
return;
|
|
8300
8303
|
}
|
|
8301
|
-
let t = e.match(
|
|
8304
|
+
let t = e.match(qc);
|
|
8302
8305
|
if (!t) {
|
|
8303
8306
|
f(Z.default.filter(s, (t) => t.label.includes(e)));
|
|
8304
8307
|
return;
|
|
@@ -8310,7 +8313,7 @@ var Fc = (e) => {
|
|
|
8310
8313
|
}
|
|
8311
8314
|
f(Z.default.filter(i.opts, (e) => e.label.includes(r)));
|
|
8312
8315
|
}, m = (e) => {
|
|
8313
|
-
let t = u.current.match(
|
|
8316
|
+
let t = u.current.match(qc);
|
|
8314
8317
|
r(t ? `${Z.default.split(t[0], "=")[0]}=${e}` : e?.trim());
|
|
8315
8318
|
}, h = Z.default.debounce((e) => {
|
|
8316
8319
|
l.current = e.target.selectionStart, u.current = e.target.value.slice(0, l.current), p(u.current);
|
|
@@ -8337,7 +8340,7 @@ var Fc = (e) => {
|
|
|
8337
8340
|
},
|
|
8338
8341
|
onPaste: a
|
|
8339
8342
|
});
|
|
8340
|
-
},
|
|
8343
|
+
}, Yc = (e) => {
|
|
8341
8344
|
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) => {
|
|
8342
8345
|
n(e);
|
|
8343
8346
|
};
|
|
@@ -8347,7 +8350,7 @@ var Fc = (e) => {
|
|
|
8347
8350
|
onChange: p,
|
|
8348
8351
|
onBlur: r,
|
|
8349
8352
|
onPaste: i
|
|
8350
|
-
}) : /* @__PURE__ */ H(
|
|
8353
|
+
}) : /* @__PURE__ */ H(Jc, {
|
|
8351
8354
|
value: o,
|
|
8352
8355
|
onChange: p,
|
|
8353
8356
|
onBlur: r,
|
|
@@ -8366,7 +8369,7 @@ var Fc = (e) => {
|
|
|
8366
8369
|
onClick: t
|
|
8367
8370
|
})]
|
|
8368
8371
|
});
|
|
8369
|
-
},
|
|
8372
|
+
}, Xc = (e) => {
|
|
8370
8373
|
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 = () => {
|
|
8371
8374
|
_.current += 1;
|
|
8372
8375
|
}, b = (e) => {
|
|
@@ -8422,7 +8425,7 @@ var Fc = (e) => {
|
|
|
8422
8425
|
onAdd: S,
|
|
8423
8426
|
btnText: s,
|
|
8424
8427
|
disabled: p,
|
|
8425
|
-
children: /* @__PURE__ */ H(V, { children: Z.default.map(h, (t, n) => /* @__PURE__ */ H(
|
|
8428
|
+
children: /* @__PURE__ */ H(V, { children: Z.default.map(h, (t, n) => /* @__PURE__ */ H(Yc, {
|
|
8426
8429
|
required: f && h.length === 1,
|
|
8427
8430
|
placeholder: e.placeholder,
|
|
8428
8431
|
options: c,
|
|
@@ -8437,7 +8440,7 @@ var Fc = (e) => {
|
|
|
8437
8440
|
renderItem: m
|
|
8438
8441
|
}, t.uid)) })
|
|
8439
8442
|
});
|
|
8440
|
-
},
|
|
8443
|
+
}, Zc = A((e, t) => {
|
|
8441
8444
|
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(() => {
|
|
8442
8445
|
c(0);
|
|
8443
8446
|
}, [c]), b = Z.default.debounce(() => {
|
|
@@ -8497,7 +8500,7 @@ var Fc = (e) => {
|
|
|
8497
8500
|
}, e.uid))
|
|
8498
8501
|
})
|
|
8499
8502
|
});
|
|
8500
|
-
}),
|
|
8503
|
+
}), Qc = E.memo(Zc), $c = (e) => {
|
|
8501
8504
|
let { page: t, total: n, pageSize: r, onNext: i, onPrev: a, onBackend: s, onToFirst: c } = e, l = o();
|
|
8502
8505
|
return /* @__PURE__ */ U("div", {
|
|
8503
8506
|
className: "pagination",
|
|
@@ -8571,8 +8574,8 @@ var Fc = (e) => {
|
|
|
8571
8574
|
})] })
|
|
8572
8575
|
]
|
|
8573
8576
|
});
|
|
8574
|
-
},
|
|
8575
|
-
let [e, t] = B(
|
|
8577
|
+
}, el = 1e3, tl = () => {
|
|
8578
|
+
let [e, t] = B(el), [n, r] = B(1), [i, a] = B(1);
|
|
8576
8579
|
return {
|
|
8577
8580
|
nextPage: () => {
|
|
8578
8581
|
r(n + 1);
|
|
@@ -8592,8 +8595,8 @@ var Fc = (e) => {
|
|
|
8592
8595
|
page: n,
|
|
8593
8596
|
totalPage: i
|
|
8594
8597
|
};
|
|
8595
|
-
},
|
|
8596
|
-
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 } =
|
|
8598
|
+
}, nl = A((e, t) => {
|
|
8599
|
+
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 } = tl(), { 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({
|
|
8597
8600
|
pos: "bottom",
|
|
8598
8601
|
page: 1
|
|
8599
8602
|
}), L = z(0), R = z(!1);
|
|
@@ -8698,7 +8701,7 @@ var Fc = (e) => {
|
|
|
8698
8701
|
children: /* @__PURE__ */ U("div", {
|
|
8699
8702
|
className: "wrap",
|
|
8700
8703
|
children: [
|
|
8701
|
-
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(
|
|
8704
|
+
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(Qc, {
|
|
8702
8705
|
ref: E,
|
|
8703
8706
|
dataList: j,
|
|
8704
8707
|
diffHeight: n,
|
|
@@ -8713,7 +8716,7 @@ var Fc = (e) => {
|
|
|
8713
8716
|
className: "pg",
|
|
8714
8717
|
children: /* @__PURE__ */ H("div", {
|
|
8715
8718
|
className: (0, X.default)("pg-inner", { "at-top": !0 }),
|
|
8716
|
-
children: /* @__PURE__ */ H(
|
|
8719
|
+
children: /* @__PURE__ */ H($c, {
|
|
8717
8720
|
page: u,
|
|
8718
8721
|
total: p,
|
|
8719
8722
|
pageSize: l,
|
|
@@ -8727,7 +8730,7 @@ var Fc = (e) => {
|
|
|
8727
8730
|
]
|
|
8728
8731
|
})
|
|
8729
8732
|
});
|
|
8730
|
-
}),
|
|
8733
|
+
}), rl = Y.div`
|
|
8731
8734
|
display: flex;
|
|
8732
8735
|
margin-bottom: 12px;
|
|
8733
8736
|
align-items: center;
|
|
@@ -8747,14 +8750,14 @@ var Fc = (e) => {
|
|
|
8747
8750
|
margin-left: 10px;
|
|
8748
8751
|
flex: none;
|
|
8749
8752
|
}
|
|
8750
|
-
`,
|
|
8753
|
+
`, il = ({ dataList: e, label: t, description: n, disabled: r, btnText: i, children: a, onDelete: o, onAdd: s, styles: c }) => /* @__PURE__ */ H(eo, {
|
|
8751
8754
|
styles: { wrapper: c?.wrapper },
|
|
8752
8755
|
label: t,
|
|
8753
8756
|
description: n,
|
|
8754
8757
|
onAdd: s,
|
|
8755
8758
|
disabled: r,
|
|
8756
8759
|
btnText: i,
|
|
8757
|
-
children: e.map((e, t) => /* @__PURE__ */ U(
|
|
8760
|
+
children: e.map((e, t) => /* @__PURE__ */ U(rl, {
|
|
8758
8761
|
className: "item-container",
|
|
8759
8762
|
style: c?.item,
|
|
8760
8763
|
children: [a?.(e, t), !r && /* @__PURE__ */ H(G, {
|
|
@@ -8767,7 +8770,7 @@ var Fc = (e) => {
|
|
|
8767
8770
|
children: /* @__PURE__ */ H(ke, {})
|
|
8768
8771
|
})]
|
|
8769
8772
|
}, t))
|
|
8770
|
-
}),
|
|
8773
|
+
}), al = Y.div`
|
|
8771
8774
|
display: flex;
|
|
8772
8775
|
justify-content: center;
|
|
8773
8776
|
margin-block: 16px;
|
|
@@ -8777,9 +8780,9 @@ var Fc = (e) => {
|
|
|
8777
8780
|
opacity: 0;
|
|
8778
8781
|
transition: opacity 0.3s ease-in-out;
|
|
8779
8782
|
}
|
|
8780
|
-
`,
|
|
8783
|
+
`, ol = (e) => {
|
|
8781
8784
|
let { show: t, loading: n, loadMore: r } = e, i = o();
|
|
8782
|
-
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(
|
|
8785
|
+
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(al, {
|
|
8783
8786
|
className: n ? "loading" : "",
|
|
8784
8787
|
children: /* @__PURE__ */ H(G, {
|
|
8785
8788
|
onClick: r,
|
|
@@ -8789,7 +8792,7 @@ var Fc = (e) => {
|
|
|
8789
8792
|
children: i.formatMessage({ id: "common.button.more" })
|
|
8790
8793
|
})
|
|
8791
8794
|
}) : null });
|
|
8792
|
-
},
|
|
8795
|
+
}, sl = Y(ft)`
|
|
8793
8796
|
display: flex;
|
|
8794
8797
|
flex-direction: column;
|
|
8795
8798
|
justify-content: center;
|
|
@@ -8807,30 +8810,30 @@ var Fc = (e) => {
|
|
|
8807
8810
|
.ant-empty-footer {
|
|
8808
8811
|
display: flex;
|
|
8809
8812
|
}
|
|
8810
|
-
`,
|
|
8813
|
+
`, cl = Y.div`
|
|
8811
8814
|
margin-bottom: 16px;
|
|
8812
8815
|
display: flex;
|
|
8813
8816
|
justify-content: center;
|
|
8814
8817
|
align-items: center;
|
|
8815
|
-
`,
|
|
8818
|
+
`, ll = Y.div`
|
|
8816
8819
|
margin-bottom: 8px;
|
|
8817
8820
|
display: flex;
|
|
8818
8821
|
justify-content: center;
|
|
8819
8822
|
align-items: center;
|
|
8820
|
-
`,
|
|
8823
|
+
`, ul = Y.div`
|
|
8821
8824
|
display: flex;
|
|
8822
8825
|
flex-direction: column;
|
|
8823
8826
|
gap: 12px;
|
|
8824
8827
|
justify-content: center;
|
|
8825
8828
|
align-items: center;
|
|
8826
|
-
`,
|
|
8829
|
+
`, dl = (e) => {
|
|
8827
8830
|
let { filters: t, noFoundText: n, loadend: r, loading: i, dataSource: a, buttonText: o, onClick: s } = e, c = R(() => {
|
|
8828
8831
|
let e = Z.default.omit(t, ["page", "perPage"]);
|
|
8829
8832
|
return Object.values(e || {}).some((e) => Array.isArray(e) ? e.length > 0 : !!e);
|
|
8830
8833
|
}, [t]);
|
|
8831
|
-
return /* @__PURE__ */ H(V, { children: !i && r && !a?.length ? /* @__PURE__ */ H(
|
|
8832
|
-
image: c ? /* @__PURE__ */ H(
|
|
8833
|
-
description: /* @__PURE__ */ U(
|
|
8834
|
+
return /* @__PURE__ */ H(V, { children: !i && r && !a?.length ? /* @__PURE__ */ H(sl, {
|
|
8835
|
+
image: c ? /* @__PURE__ */ H(ll, { children: ft.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ H(cl, { children: e.image }),
|
|
8836
|
+
description: /* @__PURE__ */ U(ul, { children: [!c && /* @__PURE__ */ H(Nt.Text, {
|
|
8834
8837
|
style: {
|
|
8835
8838
|
fontSize: "16px",
|
|
8836
8839
|
fontWeight: 500
|
|
@@ -8847,7 +8850,7 @@ var Fc = (e) => {
|
|
|
8847
8850
|
children: o
|
|
8848
8851
|
}))
|
|
8849
8852
|
}) : /* @__PURE__ */ H("span", {}) });
|
|
8850
|
-
},
|
|
8853
|
+
}, fl = Y(it)`
|
|
8851
8854
|
.ant-breadcrumb-link {
|
|
8852
8855
|
font-size: 16px;
|
|
8853
8856
|
font-weight: 500;
|
|
@@ -8862,19 +8865,19 @@ var Fc = (e) => {
|
|
|
8862
8865
|
display: flex;
|
|
8863
8866
|
align-items: center;
|
|
8864
8867
|
}
|
|
8865
|
-
`,
|
|
8868
|
+
`, pl = ({ items: e }) => /* @__PURE__ */ H(fl, {
|
|
8866
8869
|
separator: /* @__PURE__ */ H(Q, {
|
|
8867
8870
|
type: "icon-down2",
|
|
8868
8871
|
rotate: -90
|
|
8869
8872
|
}),
|
|
8870
8873
|
items: e
|
|
8871
|
-
}),
|
|
8874
|
+
}), ml = {
|
|
8872
8875
|
containerWrapper: "page-box-module__containerWrapper___5T5E8",
|
|
8873
8876
|
contentWrapper: "page-box-module__contentWrapper___MuoA-",
|
|
8874
8877
|
title: "page-box-module__title___kmaTE",
|
|
8875
8878
|
left: "page-box-module__left___Q-SL3",
|
|
8876
8879
|
right: "page-box-module__right___7RXnF"
|
|
8877
|
-
},
|
|
8880
|
+
}, hl = ({ children: e, styles: t, title: n, leftContent: r, rightContent: i, paddingInlinePageContainerContent: a = 24, extraContentRender: o, ...s }) => {
|
|
8878
8881
|
let { initialize: c } = d({ defer: !1 }), l = P(cn), u = z(null);
|
|
8879
8882
|
return F(() => {
|
|
8880
8883
|
if (u.current) {
|
|
@@ -8882,7 +8885,7 @@ var Fc = (e) => {
|
|
|
8882
8885
|
window.__GPUSTACK_BODY_SCROLLER__ = e;
|
|
8883
8886
|
}
|
|
8884
8887
|
}, [c, u]), /* @__PURE__ */ H("div", {
|
|
8885
|
-
className:
|
|
8888
|
+
className: ml.containerWrapper,
|
|
8886
8889
|
children: /* @__PURE__ */ U(sn, {
|
|
8887
8890
|
...s,
|
|
8888
8891
|
fixedHeader: !1,
|
|
@@ -8891,43 +8894,43 @@ var Fc = (e) => {
|
|
|
8891
8894
|
style: { flex: 1 },
|
|
8892
8895
|
token: { paddingInlinePageContainerContent: a },
|
|
8893
8896
|
children: [/* @__PURE__ */ U("div", {
|
|
8894
|
-
className:
|
|
8897
|
+
className: ml.title,
|
|
8895
8898
|
children: [/* @__PURE__ */ H("div", {
|
|
8896
|
-
className:
|
|
8899
|
+
className: ml.left,
|
|
8897
8900
|
children: r || l.title
|
|
8898
8901
|
}), /* @__PURE__ */ U("div", {
|
|
8899
|
-
className:
|
|
8902
|
+
className: ml.right,
|
|
8900
8903
|
children: [i && /* @__PURE__ */ U("div", { children: [i, /* @__PURE__ */ H(lt, {
|
|
8901
8904
|
orientation: "vertical",
|
|
8902
8905
|
style: { margin: "0 16px" }
|
|
8903
8906
|
})] }), o && o()]
|
|
8904
8907
|
})]
|
|
8905
8908
|
}), /* @__PURE__ */ H("div", {
|
|
8906
|
-
className: (0, X.default)(
|
|
8909
|
+
className: (0, X.default)(ml.contentWrapper),
|
|
8907
8910
|
style: t?.containerWrapper,
|
|
8908
8911
|
ref: u,
|
|
8909
8912
|
children: e
|
|
8910
8913
|
})]
|
|
8911
8914
|
})
|
|
8912
8915
|
});
|
|
8913
|
-
},
|
|
8916
|
+
}, gl = ({ children: e, style: t }) => /* @__PURE__ */ H("div", {
|
|
8914
8917
|
style: t,
|
|
8915
8918
|
children: e
|
|
8916
|
-
}),
|
|
8919
|
+
}), _l = {
|
|
8917
8920
|
wrapper: "filters-button-module__wrapper___wgAvR",
|
|
8918
8921
|
count: "filters-button-module__count___9Uazh",
|
|
8919
8922
|
buttonWrapper: "filters-button-module__buttonWrapper___s0HOa",
|
|
8920
8923
|
"close-btn": "filters-button-module__close-btn___COdze"
|
|
8921
|
-
},
|
|
8924
|
+
}, vl = {
|
|
8922
8925
|
"page-tools": "index-module__page-tools___qC1VM",
|
|
8923
8926
|
left: "index-module__left___RQSzE",
|
|
8924
8927
|
right: "index-module__right___xVhib"
|
|
8925
|
-
},
|
|
8928
|
+
}, yl = ({ onClick: e, onClear: t, count: n }) => {
|
|
8926
8929
|
let r = (e) => {
|
|
8927
8930
|
e.stopPropagation(), t();
|
|
8928
8931
|
}, i = o();
|
|
8929
8932
|
return /* @__PURE__ */ H("div", {
|
|
8930
|
-
className:
|
|
8933
|
+
className: _l.buttonWrapper,
|
|
8931
8934
|
children: /* @__PURE__ */ H(G, {
|
|
8932
8935
|
onClick: e,
|
|
8933
8936
|
style: { color: "var(--ant-color-text-tertiary)" },
|
|
@@ -8936,15 +8939,15 @@ var Fc = (e) => {
|
|
|
8936
8939
|
style: { fontSize: 14 }
|
|
8937
8940
|
}),
|
|
8938
8941
|
children: /* @__PURE__ */ U("span", {
|
|
8939
|
-
className:
|
|
8942
|
+
className: _l.wrapper,
|
|
8940
8943
|
children: [
|
|
8941
8944
|
/* @__PURE__ */ H("span", { children: i.formatMessage({ id: "common.filter.label" }) }),
|
|
8942
8945
|
!!n && /* @__PURE__ */ H("span", {
|
|
8943
|
-
className:
|
|
8946
|
+
className: _l.count,
|
|
8944
8947
|
children: n
|
|
8945
8948
|
}),
|
|
8946
8949
|
!!n && /* @__PURE__ */ H("span", {
|
|
8947
|
-
className:
|
|
8950
|
+
className: _l["close-btn"],
|
|
8948
8951
|
onClick: r,
|
|
8949
8952
|
children: /* @__PURE__ */ H(oe, {})
|
|
8950
8953
|
})
|
|
@@ -8952,7 +8955,7 @@ var Fc = (e) => {
|
|
|
8952
8955
|
})
|
|
8953
8956
|
})
|
|
8954
8957
|
});
|
|
8955
|
-
},
|
|
8958
|
+
}, bl = (e) => {
|
|
8956
8959
|
let { left: t, right: n, marginBottom: r = 0, marginTop: i = 30, style: a } = e, o = R(() => {
|
|
8957
8960
|
let e = {};
|
|
8958
8961
|
return e.marginBottom = `${r}px`, e.marginTop = `${i}px`, a && Object.assign(e, a), e;
|
|
@@ -8962,23 +8965,23 @@ var Fc = (e) => {
|
|
|
8962
8965
|
a
|
|
8963
8966
|
]);
|
|
8964
8967
|
return /* @__PURE__ */ U("div", {
|
|
8965
|
-
className:
|
|
8968
|
+
className: vl["page-tools"],
|
|
8966
8969
|
style: o,
|
|
8967
8970
|
children: [/* @__PURE__ */ H("div", {
|
|
8968
|
-
className:
|
|
8971
|
+
className: vl.left,
|
|
8969
8972
|
children: t
|
|
8970
8973
|
}), /* @__PURE__ */ H("div", {
|
|
8971
|
-
className:
|
|
8974
|
+
className: vl.right,
|
|
8972
8975
|
children: n
|
|
8973
8976
|
})]
|
|
8974
8977
|
});
|
|
8975
|
-
},
|
|
8978
|
+
}, xl = (e) => {
|
|
8976
8979
|
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();
|
|
8977
|
-
return /* @__PURE__ */ H(
|
|
8980
|
+
return /* @__PURE__ */ H(bl, {
|
|
8978
8981
|
marginBottom: m,
|
|
8979
8982
|
marginTop: 0,
|
|
8980
8983
|
left: b || /* @__PURE__ */ U(Et, { children: [
|
|
8981
|
-
S?.show && /* @__PURE__ */ H(
|
|
8984
|
+
S?.show && /* @__PURE__ */ H(yl, {
|
|
8982
8985
|
onClear: S.onClear,
|
|
8983
8986
|
onClick: S.onClick,
|
|
8984
8987
|
count: S.count
|
|
@@ -9038,7 +9041,7 @@ var Fc = (e) => {
|
|
|
9038
9041
|
})]
|
|
9039
9042
|
}))
|
|
9040
9043
|
});
|
|
9041
|
-
},
|
|
9044
|
+
}, Sl = { seal_custom_popover: "index-module__seal_custom_popover___IA6li" }, Cl = (e) => {
|
|
9042
9045
|
let { className: t, children: n, style: r, ...i } = e;
|
|
9043
9046
|
return /* @__PURE__ */ H("div", {
|
|
9044
9047
|
className: "popover-wrapper",
|
|
@@ -9046,11 +9049,11 @@ var Fc = (e) => {
|
|
|
9046
9049
|
...i,
|
|
9047
9050
|
style: { ...r },
|
|
9048
9051
|
"data-maxHeight": "300px",
|
|
9049
|
-
classNames: { root: (0, X.default)(t,
|
|
9052
|
+
classNames: { root: (0, X.default)(t, Sl.seal_custom_popover) },
|
|
9050
9053
|
children: n
|
|
9051
9054
|
})
|
|
9052
9055
|
});
|
|
9053
|
-
},
|
|
9056
|
+
}, wl = M((e) => {
|
|
9054
9057
|
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]);
|
|
9055
9058
|
F(() => {
|
|
9056
9059
|
s(t || !1);
|
|
@@ -9086,7 +9089,7 @@ var Fc = (e) => {
|
|
|
9086
9089
|
styles: { body: { paddingInline: 12 } },
|
|
9087
9090
|
children: l
|
|
9088
9091
|
}) : l });
|
|
9089
|
-
}),
|
|
9092
|
+
}), Tl = (e) => {
|
|
9090
9093
|
let { options: t, value: n, onChange: r, gap: i = 12 } = e;
|
|
9091
9094
|
return /* @__PURE__ */ H(Et, {
|
|
9092
9095
|
className: "radio-button-wrap",
|
|
@@ -9097,7 +9100,7 @@ var Fc = (e) => {
|
|
|
9097
9100
|
children: e.label
|
|
9098
9101
|
}, e.value))
|
|
9099
9102
|
});
|
|
9100
|
-
},
|
|
9103
|
+
}, El = ({ defaultSpan: e = 8, dataList: t, renderItem: n, resizable: r = !0 }) => {
|
|
9101
9104
|
let { span: i, handleResize: a } = fa({ defaultSpan: e });
|
|
9102
9105
|
return /* @__PURE__ */ H(di, {
|
|
9103
9106
|
onResize: a,
|
|
@@ -9113,7 +9116,7 @@ var Fc = (e) => {
|
|
|
9113
9116
|
};
|
|
9114
9117
|
//#endregion
|
|
9115
9118
|
//#region src/lib/components/scroll-spy-tabs/use-field-scroll.ts
|
|
9116
|
-
function
|
|
9119
|
+
function Dl({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r = 300, segmentedTop: i = {
|
|
9117
9120
|
top: 0,
|
|
9118
9121
|
offsetTop: 96
|
|
9119
9122
|
}, getScrollElementScrollableHeight: a }) {
|
|
@@ -9151,15 +9154,15 @@ function Ol({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r =
|
|
|
9151
9154
|
}
|
|
9152
9155
|
//#endregion
|
|
9153
9156
|
//#region src/lib/components/scroll-spy-tabs/index.tsx
|
|
9154
|
-
var
|
|
9157
|
+
var Ol = Y.div`
|
|
9155
9158
|
position: sticky;
|
|
9156
9159
|
top: ${(e) => e.$top || 0}px;
|
|
9157
9160
|
z-index: 10;
|
|
9158
9161
|
margin-bottom: 16px;
|
|
9159
9162
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9160
9163
|
background-color: var(--ant-color-bg-elevated);
|
|
9161
|
-
`,
|
|
9162
|
-
let [c, l] = E.useState(r || n[0]?.value || ""), { scrollToSegment: u, holderHeight: d } =
|
|
9164
|
+
`, kl = A(({ getScrollElementScrollableHeight: e, segmentedTop: t, segmentOptions: n, defaultTarget: r, activeKey: i, setActiveKey: a, children: o }, s) => {
|
|
9165
|
+
let [c, l] = E.useState(r || n[0]?.value || ""), { scrollToSegment: u, holderHeight: d } = Dl({
|
|
9163
9166
|
activeKey: i,
|
|
9164
9167
|
setActiveKey: a,
|
|
9165
9168
|
segmentOptions: n,
|
|
@@ -9171,7 +9174,7 @@ var kl = Y.div`
|
|
|
9171
9174
|
f(e);
|
|
9172
9175
|
};
|
|
9173
9176
|
return I(s, () => ({ handleTargetChange: p })), /* @__PURE__ */ U("div", { children: [
|
|
9174
|
-
n.length > 0 && /* @__PURE__ */ H(
|
|
9177
|
+
n.length > 0 && /* @__PURE__ */ H(Ol, {
|
|
9175
9178
|
$top: t.top,
|
|
9176
9179
|
children: /* @__PURE__ */ H(Ia, {
|
|
9177
9180
|
theme: "light",
|
|
@@ -9187,7 +9190,7 @@ var kl = Y.div`
|
|
|
9187
9190
|
style: { height: d }
|
|
9188
9191
|
})
|
|
9189
9192
|
] });
|
|
9190
|
-
}),
|
|
9193
|
+
}), Al = (e) => {
|
|
9191
9194
|
let { requiredFields: t, onTargetChange: n, updateActiveKey: r } = e;
|
|
9192
9195
|
return { handleOnFinishFailed: (e) => {
|
|
9193
9196
|
let { errorFields: i } = e;
|
|
@@ -9201,7 +9204,7 @@ var kl = Y.div`
|
|
|
9201
9204
|
}), e.length > 0 && (r(e.sort((e, t) => e.sort - t.sort).map((e) => e.key)), n(e[0].key));
|
|
9202
9205
|
}
|
|
9203
9206
|
} };
|
|
9204
|
-
},
|
|
9207
|
+
}, jl = (e) => {
|
|
9205
9208
|
let [t, n] = B(e.initalActiveKeys), [r, i] = B(e.initialCollapseKeys || e.initalActiveKeys);
|
|
9206
9209
|
return {
|
|
9207
9210
|
activeKey: t,
|
|
@@ -9218,14 +9221,14 @@ var kl = Y.div`
|
|
|
9218
9221
|
n((t) => [...new Set([...t, ...e])]), i((t) => [...new Set([...t, ...e])]);
|
|
9219
9222
|
}
|
|
9220
9223
|
};
|
|
9221
|
-
},
|
|
9224
|
+
}, Ml = O({ scrollToBottom: () => {} }), Nl = Y.div`
|
|
9222
9225
|
display: flex;
|
|
9223
9226
|
align-items: center;
|
|
9224
9227
|
max-width: 360px;
|
|
9225
9228
|
text-overflow: ellipsis;
|
|
9226
9229
|
overflow: hidden;
|
|
9227
9230
|
white-space: nowrap;
|
|
9228
|
-
`,
|
|
9231
|
+
`, Pl = (e) => {
|
|
9229
9232
|
let t = E.useRef(null), { saveScrollHeight: n, restoreScrollHeight: r } = Ii(), { initialize: i, destroyInstance: a, scrollToBottom: o } = d();
|
|
9230
9233
|
return E.useEffect(() => {
|
|
9231
9234
|
e.open ? n() : r();
|
|
@@ -9237,7 +9240,7 @@ var kl = Y.div`
|
|
|
9237
9240
|
n && clearTimeout(n), a();
|
|
9238
9241
|
};
|
|
9239
9242
|
}, [e.open, i]), /* @__PURE__ */ H(_t, {
|
|
9240
|
-
title: /* @__PURE__ */ H(
|
|
9243
|
+
title: /* @__PURE__ */ H(Nl, { children: e.title }),
|
|
9241
9244
|
destroyOnHidden: !0,
|
|
9242
9245
|
styles: {
|
|
9243
9246
|
container: { padding: 0 },
|
|
@@ -9256,7 +9259,7 @@ var kl = Y.div`
|
|
|
9256
9259
|
} : {}
|
|
9257
9260
|
},
|
|
9258
9261
|
...e,
|
|
9259
|
-
children: /* @__PURE__ */ H(
|
|
9262
|
+
children: /* @__PURE__ */ H(Ml.Provider, {
|
|
9260
9263
|
value: { scrollToBottom: o },
|
|
9261
9264
|
children: /* @__PURE__ */ H("div", {
|
|
9262
9265
|
ref: t,
|
|
@@ -9274,11 +9277,11 @@ var kl = Y.div`
|
|
|
9274
9277
|
})
|
|
9275
9278
|
})
|
|
9276
9279
|
});
|
|
9277
|
-
},
|
|
9280
|
+
}, Fl = Y.ul`
|
|
9278
9281
|
list-style: none;
|
|
9279
9282
|
margin: 0;
|
|
9280
9283
|
padding: 0;
|
|
9281
|
-
`,
|
|
9284
|
+
`, Il = Y.li`
|
|
9282
9285
|
display: flex;
|
|
9283
9286
|
align-items: center;
|
|
9284
9287
|
padding: 5px 12px;
|
|
@@ -9288,7 +9291,7 @@ var kl = Y.div`
|
|
|
9288
9291
|
&:hover {
|
|
9289
9292
|
background-color: var(--ant-control-item-bg-hover);
|
|
9290
9293
|
}
|
|
9291
|
-
`,
|
|
9294
|
+
`, Ll = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
|
|
9292
9295
|
let a = (e) => {
|
|
9293
9296
|
let t = e.key;
|
|
9294
9297
|
r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
@@ -9296,7 +9299,7 @@ var kl = Y.div`
|
|
|
9296
9299
|
return /* @__PURE__ */ H(l, {
|
|
9297
9300
|
style: { paddingInline: 0 },
|
|
9298
9301
|
maxHeight: e,
|
|
9299
|
-
children: /* @__PURE__ */ H(
|
|
9302
|
+
children: /* @__PURE__ */ H(Fl, { children: t.map((e) => /* @__PURE__ */ U(Il, {
|
|
9300
9303
|
selected: n.includes(e.key),
|
|
9301
9304
|
onClick: () => a(e),
|
|
9302
9305
|
children: [/* @__PURE__ */ H(K, { checked: n.includes(e.key) }), i ? i(e) : /* @__PURE__ */ H(f, {
|
|
@@ -9305,14 +9308,14 @@ var kl = Y.div`
|
|
|
9305
9308
|
})]
|
|
9306
9309
|
}, e.key)) })
|
|
9307
9310
|
});
|
|
9308
|
-
},
|
|
9311
|
+
}, Rl = Y.div`
|
|
9309
9312
|
border: 1px solid var(--ant-color-border);
|
|
9310
9313
|
border-radius: var(--ant-border-radius);
|
|
9311
9314
|
overflow-y: auto;
|
|
9312
9315
|
max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
|
|
9313
|
-
`,
|
|
9316
|
+
`, zl = Y.div`
|
|
9314
9317
|
padding: 0;
|
|
9315
|
-
`,
|
|
9318
|
+
`, Bl = Y.div`
|
|
9316
9319
|
padding: 8px 12px 8px;
|
|
9317
9320
|
display: flex;
|
|
9318
9321
|
gap: 8px;
|
|
@@ -9320,7 +9323,7 @@ var kl = Y.div`
|
|
|
9320
9323
|
justify-content: space-between;
|
|
9321
9324
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9322
9325
|
background-color: var(--ant-color-fill-alter);
|
|
9323
|
-
`,
|
|
9326
|
+
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
|
|
9324
9327
|
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) => {
|
|
9325
9328
|
h(e.target.value);
|
|
9326
9329
|
}, v = (e) => {
|
|
@@ -9342,11 +9345,11 @@ var kl = Y.div`
|
|
|
9342
9345
|
};
|
|
9343
9346
|
return F(() => {
|
|
9344
9347
|
y(r);
|
|
9345
|
-
}, [r, n]), /* @__PURE__ */ H(
|
|
9348
|
+
}, [r, n]), /* @__PURE__ */ H(Rl, {
|
|
9346
9349
|
$maxHeight: e,
|
|
9347
9350
|
$leftWidth: t,
|
|
9348
9351
|
style: c?.container,
|
|
9349
|
-
children: /* @__PURE__ */ U(
|
|
9352
|
+
children: /* @__PURE__ */ U(zl, { children: [/* @__PURE__ */ U(Bl, {
|
|
9350
9353
|
style: c?.header,
|
|
9351
9354
|
children: [/* @__PURE__ */ U("span", {
|
|
9352
9355
|
style: {
|
|
@@ -9374,7 +9377,7 @@ var kl = Y.div`
|
|
|
9374
9377
|
},
|
|
9375
9378
|
onChange: _
|
|
9376
9379
|
})]
|
|
9377
|
-
}), g.length > 0 ? /* @__PURE__ */ H(
|
|
9380
|
+
}), g.length > 0 ? /* @__PURE__ */ H(Ll, {
|
|
9378
9381
|
maxHeight: e - 50,
|
|
9379
9382
|
dataList: g,
|
|
9380
9383
|
value: r,
|
|
@@ -9386,7 +9389,7 @@ var kl = Y.div`
|
|
|
9386
9389
|
description: a
|
|
9387
9390
|
})] })
|
|
9388
9391
|
});
|
|
9389
|
-
},
|
|
9392
|
+
}, Hl = [
|
|
9390
9393
|
{
|
|
9391
9394
|
scope: "playground",
|
|
9392
9395
|
command: "shortcuts.playground.newmessage",
|
|
@@ -9432,8 +9435,8 @@ var kl = Y.div`
|
|
|
9432
9435
|
command: "shortcuts.users.new",
|
|
9433
9436
|
keybinding: Fs.CREATE.iconKeybinding
|
|
9434
9437
|
}
|
|
9435
|
-
],
|
|
9436
|
-
let [t, n] = E.useState(
|
|
9438
|
+
], Ul = ({ intl: e }) => {
|
|
9439
|
+
let [t, n] = E.useState(Hl), r = [
|
|
9437
9440
|
{
|
|
9438
9441
|
title: "Scope",
|
|
9439
9442
|
dataIndex: "scope",
|
|
@@ -9455,7 +9458,7 @@ var kl = Y.div`
|
|
|
9455
9458
|
}
|
|
9456
9459
|
], i = Z.default.debounce((e) => {
|
|
9457
9460
|
let t = e.target.value;
|
|
9458
|
-
n(Z.default.filter(
|
|
9461
|
+
n(Z.default.filter(Hl, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
|
|
9459
9462
|
}, 300);
|
|
9460
9463
|
return /* @__PURE__ */ U("div", {
|
|
9461
9464
|
className: "short-cuts",
|
|
@@ -9489,82 +9492,82 @@ var kl = Y.div`
|
|
|
9489
9492
|
};
|
|
9490
9493
|
//#endregion
|
|
9491
9494
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
9492
|
-
function
|
|
9495
|
+
function Wl(e) {
|
|
9493
9496
|
var t = typeof e;
|
|
9494
9497
|
return e != null && (t == "object" || t == "function");
|
|
9495
9498
|
}
|
|
9496
9499
|
//#endregion
|
|
9497
9500
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
9498
|
-
var
|
|
9499
|
-
return
|
|
9500
|
-
},
|
|
9501
|
-
function
|
|
9502
|
-
for (var t = e.length; t-- &&
|
|
9501
|
+
var Gl = typeof global == "object" && global && global.Object === Object && global, Kl = typeof self == "object" && self && self.Object === Object && self, ql = Gl || Kl || Function("return this")(), Jl = function() {
|
|
9502
|
+
return ql.Date.now();
|
|
9503
|
+
}, Yl = /\s/;
|
|
9504
|
+
function Xl(e) {
|
|
9505
|
+
for (var t = e.length; t-- && Yl.test(e.charAt(t)););
|
|
9503
9506
|
return t;
|
|
9504
9507
|
}
|
|
9505
9508
|
//#endregion
|
|
9506
9509
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
9507
|
-
var
|
|
9508
|
-
function
|
|
9509
|
-
return e && e.slice(0,
|
|
9510
|
+
var Zl = /^\s+/;
|
|
9511
|
+
function Ql(e) {
|
|
9512
|
+
return e && e.slice(0, Xl(e) + 1).replace(Zl, "");
|
|
9510
9513
|
}
|
|
9511
9514
|
//#endregion
|
|
9512
9515
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
9513
|
-
var
|
|
9514
|
-
function
|
|
9515
|
-
var t =
|
|
9516
|
+
var $l = ql.Symbol, eu = Object.prototype, tu = eu.hasOwnProperty, nu = eu.toString, ru = $l ? $l.toStringTag : void 0;
|
|
9517
|
+
function iu(e) {
|
|
9518
|
+
var t = tu.call(e, ru), n = e[ru];
|
|
9516
9519
|
try {
|
|
9517
|
-
e[
|
|
9520
|
+
e[ru] = void 0;
|
|
9518
9521
|
var r = !0;
|
|
9519
9522
|
} catch {}
|
|
9520
|
-
var i =
|
|
9521
|
-
return r && (t ? e[
|
|
9523
|
+
var i = nu.call(e);
|
|
9524
|
+
return r && (t ? e[ru] = n : delete e[ru]), i;
|
|
9522
9525
|
}
|
|
9523
9526
|
//#endregion
|
|
9524
9527
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
9525
|
-
var
|
|
9526
|
-
function
|
|
9527
|
-
return
|
|
9528
|
+
var au = Object.prototype.toString;
|
|
9529
|
+
function ou(e) {
|
|
9530
|
+
return au.call(e);
|
|
9528
9531
|
}
|
|
9529
9532
|
//#endregion
|
|
9530
9533
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
9531
|
-
var
|
|
9532
|
-
function
|
|
9533
|
-
return e == null ? e === void 0 ?
|
|
9534
|
+
var su = "[object Null]", cu = "[object Undefined]", lu = $l ? $l.toStringTag : void 0;
|
|
9535
|
+
function uu(e) {
|
|
9536
|
+
return e == null ? e === void 0 ? cu : su : lu && lu in Object(e) ? iu(e) : ou(e);
|
|
9534
9537
|
}
|
|
9535
9538
|
//#endregion
|
|
9536
9539
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
9537
|
-
function
|
|
9540
|
+
function du(e) {
|
|
9538
9541
|
return typeof e == "object" && !!e;
|
|
9539
9542
|
}
|
|
9540
9543
|
//#endregion
|
|
9541
9544
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
9542
|
-
var
|
|
9543
|
-
function
|
|
9544
|
-
return typeof e == "symbol" ||
|
|
9545
|
+
var fu = "[object Symbol]";
|
|
9546
|
+
function pu(e) {
|
|
9547
|
+
return typeof e == "symbol" || du(e) && uu(e) == fu;
|
|
9545
9548
|
}
|
|
9546
9549
|
//#endregion
|
|
9547
9550
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
9548
|
-
var
|
|
9549
|
-
function
|
|
9551
|
+
var mu = NaN, hu = /^[-+]0x[0-9a-f]+$/i, gu = /^0b[01]+$/i, _u = /^0o[0-7]+$/i, vu = parseInt;
|
|
9552
|
+
function yu(e) {
|
|
9550
9553
|
if (typeof e == "number") return e;
|
|
9551
|
-
if (
|
|
9552
|
-
if (
|
|
9554
|
+
if (pu(e)) return mu;
|
|
9555
|
+
if (Wl(e)) {
|
|
9553
9556
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
9554
|
-
e =
|
|
9557
|
+
e = Wl(t) ? t + "" : t;
|
|
9555
9558
|
}
|
|
9556
9559
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
9557
|
-
e =
|
|
9558
|
-
var n =
|
|
9559
|
-
return n ||
|
|
9560
|
+
e = Ql(e);
|
|
9561
|
+
var n = gu.test(e);
|
|
9562
|
+
return n || _u.test(e) ? vu(e.slice(2), n ? 2 : 8) : hu.test(e) ? mu : +e;
|
|
9560
9563
|
}
|
|
9561
9564
|
//#endregion
|
|
9562
9565
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
9563
|
-
var
|
|
9564
|
-
function
|
|
9566
|
+
var bu = "Expected a function", xu = Math.max, Su = Math.min;
|
|
9567
|
+
function Cu(e, t, n) {
|
|
9565
9568
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
9566
|
-
if (typeof e != "function") throw TypeError(
|
|
9567
|
-
t =
|
|
9569
|
+
if (typeof e != "function") throw TypeError(bu);
|
|
9570
|
+
t = yu(t) || 0, Wl(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? xu(yu(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
|
|
9568
9571
|
function p(t) {
|
|
9569
9572
|
var n = r, a = i;
|
|
9570
9573
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -9574,14 +9577,14 @@ function wu(e, t, n) {
|
|
|
9574
9577
|
}
|
|
9575
9578
|
function h(e) {
|
|
9576
9579
|
var n = e - c, r = e - l, i = t - n;
|
|
9577
|
-
return d ?
|
|
9580
|
+
return d ? Su(i, a - r) : i;
|
|
9578
9581
|
}
|
|
9579
9582
|
function g(e) {
|
|
9580
9583
|
var n = e - c, r = e - l;
|
|
9581
9584
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
9582
9585
|
}
|
|
9583
9586
|
function _() {
|
|
9584
|
-
var e =
|
|
9587
|
+
var e = Jl();
|
|
9585
9588
|
if (g(e)) return v(e);
|
|
9586
9589
|
s = setTimeout(_, h(e));
|
|
9587
9590
|
}
|
|
@@ -9592,10 +9595,10 @@ function wu(e, t, n) {
|
|
|
9592
9595
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
9593
9596
|
}
|
|
9594
9597
|
function b() {
|
|
9595
|
-
return s === void 0 ? o : v(
|
|
9598
|
+
return s === void 0 ? o : v(Jl());
|
|
9596
9599
|
}
|
|
9597
9600
|
function x() {
|
|
9598
|
-
var e =
|
|
9601
|
+
var e = Jl(), n = g(e);
|
|
9599
9602
|
if (r = arguments, i = this, c = e, n) {
|
|
9600
9603
|
if (s === void 0) return m(c);
|
|
9601
9604
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -9606,11 +9609,11 @@ function wu(e, t, n) {
|
|
|
9606
9609
|
}
|
|
9607
9610
|
//#endregion
|
|
9608
9611
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
9609
|
-
var
|
|
9610
|
-
function
|
|
9612
|
+
var wu = "Expected a function";
|
|
9613
|
+
function Tu(e, t, n) {
|
|
9611
9614
|
var r = !0, i = !0;
|
|
9612
|
-
if (typeof e != "function") throw TypeError(
|
|
9613
|
-
return
|
|
9615
|
+
if (typeof e != "function") throw TypeError(wu);
|
|
9616
|
+
return Wl(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Cu(e, t, {
|
|
9614
9617
|
leading: r,
|
|
9615
9618
|
maxWait: t,
|
|
9616
9619
|
trailing: i
|
|
@@ -9618,19 +9621,19 @@ function Eu(e, t, n) {
|
|
|
9618
9621
|
}
|
|
9619
9622
|
//#endregion
|
|
9620
9623
|
//#region ../../node_modules/.pnpm/simplebar-core@1.3.2/node_modules/simplebar-core/dist/index.mjs
|
|
9621
|
-
var
|
|
9622
|
-
return
|
|
9624
|
+
var Eu = function() {
|
|
9625
|
+
return Eu = Object.assign || function(e) {
|
|
9623
9626
|
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]);
|
|
9624
9627
|
return e;
|
|
9625
|
-
},
|
|
9628
|
+
}, Eu.apply(this, arguments);
|
|
9626
9629
|
};
|
|
9627
|
-
function
|
|
9630
|
+
function Du(e) {
|
|
9628
9631
|
return !e || !e.ownerDocument || !e.ownerDocument.defaultView ? window : e.ownerDocument.defaultView;
|
|
9629
9632
|
}
|
|
9630
|
-
function
|
|
9633
|
+
function Ou(e) {
|
|
9631
9634
|
return !e || !e.ownerDocument ? document : e.ownerDocument;
|
|
9632
9635
|
}
|
|
9633
|
-
var
|
|
9636
|
+
var ku = function(e) {
|
|
9634
9637
|
return Array.prototype.reduce.call(e, function(e, t) {
|
|
9635
9638
|
var n = t.name.match(/data-simplebar-(.+)/);
|
|
9636
9639
|
if (n) {
|
|
@@ -9653,58 +9656,58 @@ var Au = function(e) {
|
|
|
9653
9656
|
return e;
|
|
9654
9657
|
}, {});
|
|
9655
9658
|
};
|
|
9656
|
-
function
|
|
9659
|
+
function Au(e, t) {
|
|
9657
9660
|
var n;
|
|
9658
9661
|
e && (n = e.classList).add.apply(n, t.split(" "));
|
|
9659
9662
|
}
|
|
9660
|
-
function
|
|
9663
|
+
function ju(e, t) {
|
|
9661
9664
|
e && t.split(" ").forEach(function(t) {
|
|
9662
9665
|
e.classList.remove(t);
|
|
9663
9666
|
});
|
|
9664
9667
|
}
|
|
9665
|
-
function
|
|
9668
|
+
function Mu(e) {
|
|
9666
9669
|
return `.${e.split(" ").join(".")}`;
|
|
9667
9670
|
}
|
|
9668
|
-
var
|
|
9671
|
+
var Nu = !!(typeof window < "u" && window.document && window.document.createElement), Pu = /* @__PURE__ */ Object.freeze({
|
|
9669
9672
|
__proto__: null,
|
|
9670
|
-
addClasses:
|
|
9671
|
-
canUseDOM:
|
|
9672
|
-
classNamesToQuery:
|
|
9673
|
-
getElementDocument:
|
|
9674
|
-
getElementWindow:
|
|
9675
|
-
getOptions:
|
|
9676
|
-
removeClasses:
|
|
9677
|
-
}),
|
|
9678
|
-
|
|
9679
|
-
|
|
9673
|
+
addClasses: Au,
|
|
9674
|
+
canUseDOM: Nu,
|
|
9675
|
+
classNamesToQuery: Mu,
|
|
9676
|
+
getElementDocument: Ou,
|
|
9677
|
+
getElementWindow: Du,
|
|
9678
|
+
getOptions: ku,
|
|
9679
|
+
removeClasses: ju
|
|
9680
|
+
}), Fu = null, Iu = null;
|
|
9681
|
+
Nu && window.addEventListener("resize", function() {
|
|
9682
|
+
Iu !== window.devicePixelRatio && (Iu = window.devicePixelRatio, Fu = null);
|
|
9680
9683
|
});
|
|
9681
|
-
function
|
|
9682
|
-
if (
|
|
9683
|
-
if (typeof document > "u") return
|
|
9684
|
+
function Lu() {
|
|
9685
|
+
if (Fu === null) {
|
|
9686
|
+
if (typeof document > "u") return Fu = 0, Fu;
|
|
9684
9687
|
var e = document.body, t = document.createElement("div");
|
|
9685
9688
|
t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
|
|
9686
9689
|
var n = t.getBoundingClientRect().right;
|
|
9687
|
-
e.removeChild(t),
|
|
9690
|
+
e.removeChild(t), Fu = n;
|
|
9688
9691
|
}
|
|
9689
|
-
return
|
|
9692
|
+
return Fu;
|
|
9690
9693
|
}
|
|
9691
|
-
var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu =
|
|
9694
|
+
var Ru = Du, zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = function() {
|
|
9692
9695
|
function e(t, n) {
|
|
9693
9696
|
n === void 0 && (n = {});
|
|
9694
9697
|
var r = this;
|
|
9695
9698
|
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() {
|
|
9696
|
-
var e =
|
|
9697
|
-
r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0,
|
|
9699
|
+
var e = Ru(r.el);
|
|
9700
|
+
r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0, Vu(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
|
|
9698
9701
|
}, this.scrollX = function() {
|
|
9699
9702
|
r.axis.x.isOverflowing && r.positionScrollbar("x"), r.scrollXTicking = !1;
|
|
9700
9703
|
}, this.scrollY = function() {
|
|
9701
9704
|
r.axis.y.isOverflowing && r.positionScrollbar("y"), r.scrollYTicking = !1;
|
|
9702
9705
|
}, this._onStopScrolling = function() {
|
|
9703
|
-
|
|
9706
|
+
Hu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
|
|
9704
9707
|
}, this.onMouseEnter = function() {
|
|
9705
|
-
r.isMouseEntering ||= (
|
|
9708
|
+
r.isMouseEntering ||= (Vu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
|
|
9706
9709
|
}, this._onMouseEntered = function() {
|
|
9707
|
-
|
|
9710
|
+
Hu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
|
|
9708
9711
|
}, this._onMouseMove = function(e) {
|
|
9709
9712
|
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");
|
|
9710
9713
|
}, this.onMouseLeave = function() {
|
|
@@ -9727,13 +9730,13 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9727
9730
|
}
|
|
9728
9731
|
}, this.onEndDrag = function(e) {
|
|
9729
9732
|
r.isDragging = !1;
|
|
9730
|
-
var t =
|
|
9731
|
-
e.preventDefault(), e.stopPropagation(),
|
|
9733
|
+
var t = zu(r.el), n = Ru(r.el);
|
|
9734
|
+
e.preventDefault(), e.stopPropagation(), Hu(r.el, r.classNames.dragging), r.onStopScrolling(), t.removeEventListener("mousemove", r.drag, !0), t.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = n.setTimeout(function() {
|
|
9732
9735
|
t.removeEventListener("click", r.preventClick, !0), t.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
|
|
9733
9736
|
});
|
|
9734
9737
|
}, this.preventClick = function(e) {
|
|
9735
9738
|
e.preventDefault(), e.stopPropagation();
|
|
9736
|
-
}, this.el = t, this.options =
|
|
9739
|
+
}, this.el = t, this.options = Eu(Eu({}, e.defaultOptions), n), this.classNames = Eu(Eu({}, e.defaultOptions.classNames), n.classNames), this.axis = {
|
|
9737
9740
|
x: {
|
|
9738
9741
|
scrollOffsetAttr: "scrollLeft",
|
|
9739
9742
|
sizeAttr: "width",
|
|
@@ -9781,7 +9784,7 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9781
9784
|
}
|
|
9782
9785
|
}
|
|
9783
9786
|
}, typeof this.el != "object" || !this.el.nodeName) throw Error(`Argument passed to SimpleBar must be an HTML element instead of ${this.el}`);
|
|
9784
|
-
this.onMouseMove =
|
|
9787
|
+
this.onMouseMove = Tu(this._onMouseMove, 64), this.onWindowResize = Cu(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = Cu(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = Cu(this._onMouseEntered, this.stopScrollDelay), this.init();
|
|
9785
9788
|
}
|
|
9786
9789
|
return e.getRtlHelpers = function() {
|
|
9787
9790
|
if (e.rtlHelpers) return e.rtlHelpers;
|
|
@@ -9799,22 +9802,22 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9799
9802
|
}, e.rtlHelpers;
|
|
9800
9803
|
}, e.prototype.getScrollbarWidth = function() {
|
|
9801
9804
|
try {
|
|
9802
|
-
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 :
|
|
9805
|
+
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : Lu();
|
|
9803
9806
|
} catch {
|
|
9804
|
-
return
|
|
9807
|
+
return Lu();
|
|
9805
9808
|
}
|
|
9806
9809
|
}, e.getOffset = function(e) {
|
|
9807
|
-
var t = e.getBoundingClientRect(), n =
|
|
9810
|
+
var t = e.getBoundingClientRect(), n = zu(e), r = Ru(e);
|
|
9808
9811
|
return {
|
|
9809
9812
|
top: t.top + (r.pageYOffset || n.documentElement.scrollTop),
|
|
9810
9813
|
left: t.left + (r.pageXOffset || n.documentElement.scrollLeft)
|
|
9811
9814
|
};
|
|
9812
9815
|
}, e.prototype.init = function() {
|
|
9813
|
-
|
|
9816
|
+
Nu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
9814
9817
|
}, e.prototype.initDOM = function() {
|
|
9815
|
-
this.wrapperEl = this.el.querySelector(
|
|
9818
|
+
this.wrapperEl = this.el.querySelector(Uu(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Uu(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Uu(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Uu(this.classNames.offset)), this.maskEl = this.el.querySelector(Uu(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Uu(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Uu(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Uu(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Uu(this.classNames.track)}${Uu(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Uu(this.classNames.track)}${Uu(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Uu(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Uu(this.classNames.scrollbar)) || null, this.options.autoHide || (Vu(this.axis.x.scrollbar.el, this.classNames.visible), Vu(this.axis.y.scrollbar.el, this.classNames.visible));
|
|
9816
9819
|
}, e.prototype.initListeners = function() {
|
|
9817
|
-
var e = this, t, n =
|
|
9820
|
+
var e = this, t, n = Ru(this.el);
|
|
9818
9821
|
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) {
|
|
9819
9822
|
if (window.ResizeObserver) {
|
|
9820
9823
|
var r = !1, i = n.ResizeObserver || ResizeObserver;
|
|
@@ -9838,7 +9841,7 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9838
9841
|
}
|
|
9839
9842
|
}, e.prototype.recalculate = function() {
|
|
9840
9843
|
if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
|
|
9841
|
-
var e =
|
|
9844
|
+
var e = Ru(this.el);
|
|
9842
9845
|
this.elStyles = e.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
9843
9846
|
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;
|
|
9844
9847
|
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}`;
|
|
@@ -9867,28 +9870,28 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9867
9870
|
var t = this.axis[e].track.el, n = this.axis[e].scrollbar.el;
|
|
9868
9871
|
!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");
|
|
9869
9872
|
}, e.prototype.showScrollbar = function(e) {
|
|
9870
|
-
e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (
|
|
9873
|
+
e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (Vu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !0);
|
|
9871
9874
|
}, e.prototype.hideScrollbar = function(e) {
|
|
9872
|
-
e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (
|
|
9875
|
+
e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (Hu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !1);
|
|
9873
9876
|
}, e.prototype.hideNativeScrollbar = function() {
|
|
9874
9877
|
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");
|
|
9875
9878
|
}, e.prototype.onMouseMoveForAxis = function(e) {
|
|
9876
9879
|
e === void 0 && (e = "y");
|
|
9877
9880
|
var t = this.axis[e];
|
|
9878
|
-
!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),
|
|
9881
|
+
!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), Vu(t.track.el, this.classNames.hover), this.isWithinBounds(t.scrollbar.rect) ? Vu(t.scrollbar.el, this.classNames.hover) : Hu(t.scrollbar.el, this.classNames.hover)) : (Hu(t.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e)));
|
|
9879
9882
|
}, e.prototype.onMouseLeaveForAxis = function(e) {
|
|
9880
|
-
e === void 0 && (e = "y"),
|
|
9883
|
+
e === void 0 && (e = "y"), Hu(this.axis[e].track.el, this.classNames.hover), Hu(this.axis[e].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e);
|
|
9881
9884
|
}, e.prototype.onDragStart = function(e, t) {
|
|
9882
9885
|
t === void 0 && (t = "y"), this.isDragging = !0;
|
|
9883
|
-
var n =
|
|
9884
|
-
this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t,
|
|
9886
|
+
var n = zu(this.el), r = Ru(this.el), i = this.axis[t].scrollbar, a = t === "y" ? e.pageY : e.pageX;
|
|
9887
|
+
this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t, Vu(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);
|
|
9885
9888
|
}, e.prototype.onTrackClick = function(e, t) {
|
|
9886
9889
|
var n = this;
|
|
9887
9890
|
t === void 0 && (t = "y");
|
|
9888
9891
|
var r = this.axis[t];
|
|
9889
9892
|
if (!(!this.options.clickOnTrack || !r.scrollbar.el || !this.contentWrapperEl)) {
|
|
9890
9893
|
e.preventDefault();
|
|
9891
|
-
var i =
|
|
9894
|
+
var i = Ru(this.el);
|
|
9892
9895
|
this.axis[t].scrollbar.rect = r.scrollbar.el.getBoundingClientRect();
|
|
9893
9896
|
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() {
|
|
9894
9897
|
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)));
|
|
@@ -9900,7 +9903,7 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9900
9903
|
}, e.prototype.getScrollElement = function() {
|
|
9901
9904
|
return this.contentWrapperEl;
|
|
9902
9905
|
}, e.prototype.removeListeners = function() {
|
|
9903
|
-
var e =
|
|
9906
|
+
var e = Ru(this.el);
|
|
9904
9907
|
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();
|
|
9905
9908
|
}, e.prototype.unMount = function() {
|
|
9906
9909
|
this.removeListeners();
|
|
@@ -9941,52 +9944,52 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9941
9944
|
scrollableNode: null,
|
|
9942
9945
|
contentNode: null,
|
|
9943
9946
|
autoHide: !0
|
|
9944
|
-
}, e.getOptions =
|
|
9945
|
-
}(),
|
|
9946
|
-
return
|
|
9947
|
+
}, e.getOptions = Bu, e.helpers = Pu, e;
|
|
9948
|
+
}(), Gu = function() {
|
|
9949
|
+
return Gu = Object.assign || function(e) {
|
|
9947
9950
|
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]);
|
|
9948
9951
|
return e;
|
|
9949
|
-
},
|
|
9952
|
+
}, Gu.apply(this, arguments);
|
|
9950
9953
|
};
|
|
9951
|
-
function
|
|
9954
|
+
function Ku(e, t) {
|
|
9952
9955
|
var n = {};
|
|
9953
9956
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
9954
9957
|
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]]);
|
|
9955
9958
|
return n;
|
|
9956
9959
|
}
|
|
9957
|
-
var
|
|
9958
|
-
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a =
|
|
9960
|
+
var qu = T.forwardRef(function(e, t) {
|
|
9961
|
+
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a = Ku(e, ["children", "scrollableNodeProps"]), o = T.useRef(), s = T.useRef(), c = T.useRef(), l = {}, u = {};
|
|
9959
9962
|
Object.keys(a).forEach(function(e) {
|
|
9960
|
-
Object.prototype.hasOwnProperty.call(
|
|
9963
|
+
Object.prototype.hasOwnProperty.call(Wu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
|
|
9961
9964
|
});
|
|
9962
|
-
var d =
|
|
9965
|
+
var d = Gu(Gu({}, Wu.defaultOptions.classNames), l.classNames), f = Gu(Gu({}, i), {
|
|
9963
9966
|
className: `${d.contentWrapper}${i.className ? ` ${i.className}` : ""}`,
|
|
9964
|
-
tabIndex: l.tabIndex ||
|
|
9967
|
+
tabIndex: l.tabIndex || Wu.defaultOptions.tabIndex,
|
|
9965
9968
|
role: "region",
|
|
9966
|
-
"aria-label": l.ariaLabel ||
|
|
9969
|
+
"aria-label": l.ariaLabel || Wu.defaultOptions.ariaLabel
|
|
9967
9970
|
});
|
|
9968
9971
|
return T.useEffect(function() {
|
|
9969
9972
|
var e;
|
|
9970
|
-
return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new
|
|
9973
|
+
return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new Wu(o.current, Gu(Gu(Gu({}, l), s.current && { scrollableNode: s.current }), c.current && { contentNode: c.current })), typeof t == "function" ? t(e) : t && (t.current = e)), function() {
|
|
9971
9974
|
e?.unMount(), e = null, typeof t == "function" && t(null);
|
|
9972
9975
|
};
|
|
9973
|
-
}, []), T.createElement("div",
|
|
9976
|
+
}, []), T.createElement("div", Gu({
|
|
9974
9977
|
"data-simplebar": "init",
|
|
9975
9978
|
ref: o
|
|
9976
9979
|
}, 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({
|
|
9977
9980
|
scrollableNodeRef: s,
|
|
9978
|
-
scrollableNodeProps:
|
|
9981
|
+
scrollableNodeProps: Gu(Gu({}, f), { ref: s }),
|
|
9979
9982
|
contentNodeRef: c,
|
|
9980
9983
|
contentNodeProps: {
|
|
9981
9984
|
className: d.contentEl,
|
|
9982
9985
|
ref: c
|
|
9983
9986
|
}
|
|
9984
|
-
}) : T.createElement("div",
|
|
9987
|
+
}) : T.createElement("div", Gu({}, 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 })));
|
|
9985
9988
|
});
|
|
9986
|
-
|
|
9989
|
+
qu.displayName = "SimpleBar";
|
|
9987
9990
|
//#endregion
|
|
9988
9991
|
//#region src/lib/components/simple-overlay/index.tsx
|
|
9989
|
-
var
|
|
9992
|
+
var Ju = Y.div`
|
|
9990
9993
|
.simplebar-scrollbar::before {
|
|
9991
9994
|
width: var(--scrollbar-size);
|
|
9992
9995
|
background: var(--scrollbar-handle-bg);
|
|
@@ -9997,7 +10000,7 @@ var Yu = Y.div`
|
|
|
9997
10000
|
background: var(--scrollbar-handle-light-bg);
|
|
9998
10001
|
}
|
|
9999
10002
|
}
|
|
10000
|
-
`,
|
|
10003
|
+
`, Yu = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: i }) => {
|
|
10001
10004
|
let { config: o } = a(), { isDarkTheme: s } = o, c = E.useRef(null);
|
|
10002
10005
|
return F(() => {
|
|
10003
10006
|
let e = (e) => {
|
|
@@ -10011,9 +10014,9 @@ var Yu = Y.div`
|
|
|
10011
10014
|
e,
|
|
10012
10015
|
r,
|
|
10013
10016
|
i
|
|
10014
|
-
]), /* @__PURE__ */ H(
|
|
10017
|
+
]), /* @__PURE__ */ H(Ju, {
|
|
10015
10018
|
className: s ? "dark" : "light",
|
|
10016
|
-
children: /* @__PURE__ */ H(
|
|
10019
|
+
children: /* @__PURE__ */ H(qu, {
|
|
10017
10020
|
ref: c,
|
|
10018
10021
|
style: {
|
|
10019
10022
|
height: e,
|
|
@@ -10022,13 +10025,13 @@ var Yu = Y.div`
|
|
|
10022
10025
|
children: t
|
|
10023
10026
|
})
|
|
10024
10027
|
});
|
|
10025
|
-
},
|
|
10028
|
+
}, Xu = E.memo(({ columns: e }) => {
|
|
10026
10029
|
let t = o();
|
|
10027
10030
|
return /* @__PURE__ */ H("tr", { children: e.map((e, n) => /* @__PURE__ */ H("th", { children: /* @__PURE__ */ H("span", {
|
|
10028
10031
|
className: "cell-span cell-header",
|
|
10029
10032
|
children: e.locale ? t.formatMessage({ id: e.title }) : e.title
|
|
10030
10033
|
}) }, n)) });
|
|
10031
|
-
}),
|
|
10034
|
+
}), Zu = (e) => {
|
|
10032
10035
|
let { row: t, column: n, rowIndex: r, colIndex: i, dataList: a } = e;
|
|
10033
10036
|
return R(() => n.render ? n.render({
|
|
10034
10037
|
dataIndex: n.key,
|
|
@@ -10070,24 +10073,24 @@ var Yu = Y.div`
|
|
|
10070
10073
|
}) : t[n.key]
|
|
10071
10074
|
})
|
|
10072
10075
|
}, i);
|
|
10073
|
-
},
|
|
10076
|
+
}, Qu = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Zu, {
|
|
10074
10077
|
rowIndex: n,
|
|
10075
10078
|
colIndex: i,
|
|
10076
10079
|
dataList: r,
|
|
10077
10080
|
row: e,
|
|
10078
10081
|
column: t
|
|
10079
|
-
}, i)) }),
|
|
10082
|
+
}, i)) }), $u = (e) => {
|
|
10080
10083
|
let { columns: t, dataSource: n, rowKey: r, theme: i, bordered: a = !0 } = e;
|
|
10081
10084
|
return /* @__PURE__ */ H("div", { children: /* @__PURE__ */ U("table", {
|
|
10082
10085
|
className: (0, X.default)("simple-table", i, { "simple-table-bordered": a }),
|
|
10083
|
-
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(
|
|
10086
|
+
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(Xu, { columns: t }) }), /* @__PURE__ */ H("tbody", { children: n.map((e, i) => /* @__PURE__ */ H(Qu, {
|
|
10084
10087
|
row: e,
|
|
10085
10088
|
rowIndex: i,
|
|
10086
10089
|
columns: t,
|
|
10087
10090
|
dataList: n
|
|
10088
10091
|
}, e[r])) })]
|
|
10089
10092
|
}) });
|
|
10090
|
-
},
|
|
10093
|
+
}, ed = (e) => {
|
|
10091
10094
|
let { data: t, fieldList: n, style: r } = e, i = o();
|
|
10092
10095
|
return /* @__PURE__ */ H("span", {
|
|
10093
10096
|
className: "flex",
|
|
@@ -10111,7 +10114,7 @@ var Yu = Y.div`
|
|
|
10111
10114
|
}) : null]
|
|
10112
10115
|
}, e.key || r))
|
|
10113
10116
|
});
|
|
10114
|
-
},
|
|
10117
|
+
}, td = A((e, t) => {
|
|
10115
10118
|
let { autoplay: n = !1 } = e, r = E.useRef(null), i = z(null), a = z(null), o = z(null), s = N(() => {
|
|
10116
10119
|
i.current = new (window.AudioContext || window.webkitAudioContext)(), a.current = i.current.createAnalyser(), a.current.fftSize = 512, o.current = new Uint8Array(a.current.frequencyBinCount);
|
|
10117
10120
|
}, []), c = N(() => {
|
|
@@ -10177,7 +10180,7 @@ var Yu = Y.div`
|
|
|
10177
10180
|
},
|
|
10178
10181
|
preload: "metadata"
|
|
10179
10182
|
});
|
|
10180
|
-
}),
|
|
10183
|
+
}), nd = A((e, t) => {
|
|
10181
10184
|
let { isStream: n } = e;
|
|
10182
10185
|
console.log("Rendering SpeechItem with props:", e.isStream, e.analyserData);
|
|
10183
10186
|
let r = o(), [i, a] = B(e.autoplay || e.isPlaying), [s, c] = B(0), [l, u] = B({
|
|
@@ -10295,7 +10298,7 @@ var Yu = Y.div`
|
|
|
10295
10298
|
width: "100%"
|
|
10296
10299
|
},
|
|
10297
10300
|
ref: h,
|
|
10298
|
-
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(
|
|
10301
|
+
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(td, {
|
|
10299
10302
|
...e,
|
|
10300
10303
|
url: e.audioUrl,
|
|
10301
10304
|
onReady: k,
|
|
@@ -10315,7 +10318,7 @@ var Yu = Y.div`
|
|
|
10315
10318
|
})] })
|
|
10316
10319
|
})
|
|
10317
10320
|
}), M()] });
|
|
10318
|
-
}),
|
|
10321
|
+
}), rd = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(nd, {
|
|
10319
10322
|
...t,
|
|
10320
10323
|
isStream: e.isStream,
|
|
10321
10324
|
isPlaying: e.isPlaying,
|
|
@@ -10323,12 +10326,12 @@ var Yu = Y.div`
|
|
|
10323
10326
|
onPause: e.onPause,
|
|
10324
10327
|
ref: e.playerRef,
|
|
10325
10328
|
analyserData: e.analyserData
|
|
10326
|
-
}, t.uid)) }),
|
|
10329
|
+
}, t.uid)) }), id = Y.span`
|
|
10327
10330
|
white-space: nowrap;
|
|
10328
10331
|
overflow: hidden;
|
|
10329
10332
|
text-overflow: ellipsis;
|
|
10330
|
-
`,
|
|
10331
|
-
let { text: s, status: l } = t, d = R(() => Gi[l], [l]), f = R(() => t.message ?
|
|
10333
|
+
`, ad = /<a (.*?)>(.*?)<\/a>/g, od = ({ style: e, statusValue: t, download: n, extra: r, actions: i = [], maxTooltipWidth: a = 250, suffix: o }) => {
|
|
10334
|
+
let { text: s, status: l } = t, d = R(() => Gi[l], [l]), f = R(() => t.message ? ad.test(t.message || "") : !1, [t.message]), p = R(() => t.message ? t.message?.match(ad) ? t.message?.replace(ad, "<a $1 target=\"_blank\">$2</a>") : t.message : "", [t.message]), m = () => {
|
|
10332
10335
|
let e = n?.percent || 0;
|
|
10333
10336
|
return n && e > 0 && e <= 100 ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("span", {
|
|
10334
10337
|
className: "progress",
|
|
@@ -10336,7 +10339,7 @@ var Yu = Y.div`
|
|
|
10336
10339
|
}), /* @__PURE__ */ H("span", {
|
|
10337
10340
|
className: "download",
|
|
10338
10341
|
style: { width: `${Z.default.round(e, 0)}%` }
|
|
10339
|
-
})] }) : /* @__PURE__ */ H(
|
|
10342
|
+
})] }) : /* @__PURE__ */ H(id, { children: s });
|
|
10340
10343
|
}, h = /* @__PURE__ */ U("div", {
|
|
10341
10344
|
className: "status-content-wrapper",
|
|
10342
10345
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -10402,7 +10405,7 @@ var Yu = Y.div`
|
|
|
10402
10405
|
children: [m(), o && /* @__PURE__ */ H("span", { children: o })]
|
|
10403
10406
|
})
|
|
10404
10407
|
});
|
|
10405
|
-
},
|
|
10408
|
+
}, sd = {
|
|
10406
10409
|
mask: "styles-module__mask___fnLBF",
|
|
10407
10410
|
maskOpen: "styles-module__maskOpen___KKROU",
|
|
10408
10411
|
overlay: "styles-module__overlay___8EcfD",
|
|
@@ -10412,7 +10415,7 @@ var Yu = Y.div`
|
|
|
10412
10415
|
subTitle: "styles-module__subTitle___vunlj",
|
|
10413
10416
|
content: "styles-module__content___d1qHZ",
|
|
10414
10417
|
footer: "styles-module__footer___wE8uH"
|
|
10415
|
-
},
|
|
10418
|
+
}, cd = ({ 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 }) => {
|
|
10416
10419
|
let [p, m] = E.useState(null), [h, g] = E.useState(!1), [_, v] = E.useState(!1), y = zt(() => {
|
|
10417
10420
|
let e = document.querySelectorAll(".ant-layout-content");
|
|
10418
10421
|
return e[e.length - 1] ?? null;
|
|
@@ -10436,11 +10439,11 @@ var Yu = Y.div`
|
|
|
10436
10439
|
e.target !== e.currentTarget || e.propertyName !== "transform" || !t && !_ && (g(!1), m(null));
|
|
10437
10440
|
};
|
|
10438
10441
|
return !h || !p ? null : Ht(/* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
|
|
10439
|
-
className: (0, X.default)(
|
|
10442
|
+
className: (0, X.default)(sd.mask, _ && sd.maskOpen),
|
|
10440
10443
|
style: d?.mask,
|
|
10441
10444
|
onClick: u ? n : void 0
|
|
10442
10445
|
}), /* @__PURE__ */ U("div", {
|
|
10443
|
-
className: (0, X.default)(
|
|
10446
|
+
className: (0, X.default)(sd.overlay, _ && sd.overlayOpen, c),
|
|
10444
10447
|
style: {
|
|
10445
10448
|
width: s,
|
|
10446
10449
|
...l,
|
|
@@ -10450,7 +10453,7 @@ var Yu = Y.div`
|
|
|
10450
10453
|
"aria-modal": "true",
|
|
10451
10454
|
onTransitionEnd: b,
|
|
10452
10455
|
children: [/* @__PURE__ */ U("div", {
|
|
10453
|
-
className:
|
|
10456
|
+
className: sd.header,
|
|
10454
10457
|
style: d?.header,
|
|
10455
10458
|
children: [/* @__PURE__ */ H(G, {
|
|
10456
10459
|
type: "text",
|
|
@@ -10465,11 +10468,11 @@ var Yu = Y.div`
|
|
|
10465
10468
|
}),
|
|
10466
10469
|
onClick: n
|
|
10467
10470
|
}), /* @__PURE__ */ U("div", {
|
|
10468
|
-
className:
|
|
10471
|
+
className: sd.title,
|
|
10469
10472
|
style: d?.title,
|
|
10470
10473
|
children: [e, a && /* @__PURE__ */ H(jt, {
|
|
10471
10474
|
variant: "outlined",
|
|
10472
|
-
className:
|
|
10475
|
+
className: sd.subTitle,
|
|
10473
10476
|
style: d?.subTitle,
|
|
10474
10477
|
children: a
|
|
10475
10478
|
})]
|
|
@@ -10483,26 +10486,26 @@ var Yu = Y.div`
|
|
|
10483
10486
|
children: i
|
|
10484
10487
|
})]
|
|
10485
10488
|
})] }), p);
|
|
10486
|
-
},
|
|
10489
|
+
}, ld = {
|
|
10487
10490
|
buttonWrapper: "styles-module__buttonWrapper___wwKZl",
|
|
10488
10491
|
wrapper: "styles-module__wrapper___FITtv",
|
|
10489
10492
|
tips: "styles-module__tips___xnrzu",
|
|
10490
10493
|
button: "styles-module__button___mqt3w",
|
|
10491
10494
|
label: "styles-module__label___wq9YF"
|
|
10492
|
-
},
|
|
10495
|
+
}, ud = (e) => {
|
|
10493
10496
|
let { label: t, value: n, defaultValue: r, children: i, description: a, onChange: o, showSwitch: s = !0, styles: c, action: l } = e, u = n !== void 0, [d, f] = B(r ?? !1), p = u ? !!n : d, m = (e) => {
|
|
10494
10497
|
u || f(e), o?.(e);
|
|
10495
10498
|
};
|
|
10496
10499
|
return /* @__PURE__ */ U("div", {
|
|
10497
|
-
className:
|
|
10500
|
+
className: ld.wrapper,
|
|
10498
10501
|
style: { ...c?.wrapper },
|
|
10499
10502
|
children: [
|
|
10500
10503
|
/* @__PURE__ */ U("div", {
|
|
10501
|
-
className:
|
|
10504
|
+
className: ld.buttonWrapper,
|
|
10502
10505
|
style: { ...c?.checkboxWrapper },
|
|
10503
10506
|
children: [
|
|
10504
10507
|
/* @__PURE__ */ H("span", {
|
|
10505
|
-
className:
|
|
10508
|
+
className: ld.label,
|
|
10506
10509
|
style: { ...c?.label },
|
|
10507
10510
|
children: /* @__PURE__ */ H("span", { children: t })
|
|
10508
10511
|
}),
|
|
@@ -10520,7 +10523,7 @@ var Yu = Y.div`
|
|
|
10520
10523
|
p && /* @__PURE__ */ H("div", { children: i })
|
|
10521
10524
|
]
|
|
10522
10525
|
});
|
|
10523
|
-
},
|
|
10526
|
+
}, dd = (e) => {
|
|
10524
10527
|
let { title: t, style: n, align: r, firstCell: i, lastCell: a, sortOrder: s, sortDirections: c = [
|
|
10525
10528
|
"ascend",
|
|
10526
10529
|
"descend",
|
|
@@ -10575,7 +10578,7 @@ var Yu = Y.div`
|
|
|
10575
10578
|
})
|
|
10576
10579
|
})
|
|
10577
10580
|
});
|
|
10578
|
-
},
|
|
10581
|
+
}, fd = (e) => {
|
|
10579
10582
|
let { onSort: t, sortDirections: n, sorterList: r, showSorterTooltip: i } = e;
|
|
10580
10583
|
return /* @__PURE__ */ H(xt, {
|
|
10581
10584
|
className: "row",
|
|
@@ -10583,7 +10586,7 @@ var Yu = Y.div`
|
|
|
10583
10586
|
let { title: s, dataIndex: c, align: l, width: u, span: d, headerStyle: f, sortOrder: p, sorter: m, defaultSortOrder: h } = a;
|
|
10584
10587
|
return /* @__PURE__ */ H(st, {
|
|
10585
10588
|
span: d,
|
|
10586
|
-
children: /* @__PURE__ */ H(
|
|
10589
|
+
children: /* @__PURE__ */ H(dd, {
|
|
10587
10590
|
onSort: t,
|
|
10588
10591
|
showSorterTooltip: i,
|
|
10589
10592
|
sorter: m,
|
|
@@ -10602,7 +10605,7 @@ var Yu = Y.div`
|
|
|
10602
10605
|
}, c || o);
|
|
10603
10606
|
})
|
|
10604
10607
|
});
|
|
10605
|
-
},
|
|
10608
|
+
}, pd = (e) => {
|
|
10606
10609
|
let { hasColumns: t, expandable: n, enableSelection: r, onSelectAll: i, onExpandAll: a, indeterminate: s, selectAll: c, expandAll: l, disabled: u } = e;
|
|
10607
10610
|
o();
|
|
10608
10611
|
let d = () => {
|
|
@@ -10655,13 +10658,13 @@ var Yu = Y.div`
|
|
|
10655
10658
|
className: "header-row-prefix-wrapper",
|
|
10656
10659
|
children: /* @__PURE__ */ H(K, { disabled: u })
|
|
10657
10660
|
}) : null : null;
|
|
10658
|
-
},
|
|
10661
|
+
}, md = (e) => {
|
|
10659
10662
|
let { children: t } = e;
|
|
10660
10663
|
return /* @__PURE__ */ H("div", {
|
|
10661
10664
|
className: "row-children",
|
|
10662
10665
|
children: t
|
|
10663
10666
|
});
|
|
10664
|
-
},
|
|
10667
|
+
}, hd = E.createContext({}), gd = E.createContext({}), _d = Y.div`
|
|
10665
10668
|
width: 30px;
|
|
10666
10669
|
margin-right: 5px;
|
|
10667
10670
|
&.disable-expand {
|
|
@@ -10669,11 +10672,11 @@ var Yu = Y.div`
|
|
|
10669
10672
|
display: none;
|
|
10670
10673
|
}
|
|
10671
10674
|
}
|
|
10672
|
-
`,
|
|
10675
|
+
`, vd = (e) => {
|
|
10673
10676
|
let { expandable: t, enableSelection: n, expanded: r, checked: i, disableExpand: a, handleRowExpand: o, handleSelectChange: s } = e, c = R(() => r, [r]);
|
|
10674
10677
|
return t && n ? /* @__PURE__ */ U("div", {
|
|
10675
10678
|
className: "row-prefix-wrapper",
|
|
10676
|
-
children: [/* @__PURE__ */ H(
|
|
10679
|
+
children: [/* @__PURE__ */ H(_d, {
|
|
10677
10680
|
className: (0, X.default)({ "disable-expand": a }),
|
|
10678
10681
|
children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
|
|
10679
10682
|
type: "text",
|
|
@@ -10691,7 +10694,7 @@ var Yu = Y.div`
|
|
|
10691
10694
|
})]
|
|
10692
10695
|
}) : t ? /* @__PURE__ */ H("div", {
|
|
10693
10696
|
className: "row-prefix-wrapper",
|
|
10694
|
-
children: /* @__PURE__ */ H(
|
|
10697
|
+
children: /* @__PURE__ */ H(_d, {
|
|
10695
10698
|
className: (0, X.default)({ "disable-expand": a }),
|
|
10696
10699
|
children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
|
|
10697
10700
|
type: "text",
|
|
@@ -10712,11 +10715,11 @@ var Yu = Y.div`
|
|
|
10712
10715
|
checked: i
|
|
10713
10716
|
})
|
|
10714
10717
|
}) : null;
|
|
10715
|
-
},
|
|
10718
|
+
}, yd = Y.div`
|
|
10716
10719
|
max-width: 100%;
|
|
10717
10720
|
display: flex;
|
|
10718
10721
|
align-items: center;
|
|
10719
|
-
`,
|
|
10722
|
+
`, bd = (e) => {
|
|
10720
10723
|
let t = o(), { isEditing: n, editable: r, handleSubmit: i, handleUndo: a, handleEdit: s } = e;
|
|
10721
10724
|
return r ? n ? /* @__PURE__ */ U("span", {
|
|
10722
10725
|
className: "flex-column",
|
|
@@ -10752,7 +10755,7 @@ var Yu = Y.div`
|
|
|
10752
10755
|
})
|
|
10753
10756
|
}, "edit")
|
|
10754
10757
|
}) : null;
|
|
10755
|
-
},
|
|
10758
|
+
}, xd = (e) => {
|
|
10756
10759
|
let { editable: t, current: n, isEditing: r, row: i, render: a, onChange: o } = e;
|
|
10757
10760
|
return r && t ? typeof t == "object" && t?.valueType === "number" ? /* @__PURE__ */ H(gt, {
|
|
10758
10761
|
style: { width: "80px" },
|
|
@@ -10763,9 +10766,9 @@ var Yu = Y.div`
|
|
|
10763
10766
|
value: n,
|
|
10764
10767
|
onChange: (e) => o(e.target.value)
|
|
10765
10768
|
}) : a ? a(n, i) : n;
|
|
10766
|
-
},
|
|
10767
|
-
let { row: t, onCell: n } = P(
|
|
10768
|
-
return /* @__PURE__ */ U(
|
|
10769
|
+
}, Sd = (e) => {
|
|
10770
|
+
let { row: t, onCell: n } = P(hd), { dataIndex: r, render: i, editable: a } = e, [o, s] = E.useState(!1), [c, l] = E.useState(null);
|
|
10771
|
+
return /* @__PURE__ */ U(yd, { children: [/* @__PURE__ */ H(xd, {
|
|
10769
10772
|
onChange: (e) => {
|
|
10770
10773
|
l(e);
|
|
10771
10774
|
},
|
|
@@ -10774,7 +10777,7 @@ var Yu = Y.div`
|
|
|
10774
10777
|
current: o ? c : t[r],
|
|
10775
10778
|
row: t,
|
|
10776
10779
|
render: i
|
|
10777
|
-
}), /* @__PURE__ */ H(
|
|
10780
|
+
}), /* @__PURE__ */ H(bd, {
|
|
10778
10781
|
editable: a,
|
|
10779
10782
|
isEditing: o,
|
|
10780
10783
|
handleEdit: () => {
|
|
@@ -10794,7 +10797,7 @@ var Yu = Y.div`
|
|
|
10794
10797
|
s(!1);
|
|
10795
10798
|
}
|
|
10796
10799
|
})] });
|
|
10797
|
-
},
|
|
10800
|
+
}, Cd = Y.div`
|
|
10798
10801
|
padding: var(--ant-table-cell-padding-block)
|
|
10799
10802
|
var(--ant-table-cell-padding-inline);
|
|
10800
10803
|
display: flex;
|
|
@@ -10817,22 +10820,22 @@ var Yu = Y.div`
|
|
|
10817
10820
|
&.center {
|
|
10818
10821
|
justify-content: center;
|
|
10819
10822
|
}
|
|
10820
|
-
`,
|
|
10823
|
+
`, wd = (e) => {
|
|
10821
10824
|
let { dataIndex: t, render: n, align: r, editable: i, dataField: a } = e;
|
|
10822
|
-
return /* @__PURE__ */ H(
|
|
10825
|
+
return /* @__PURE__ */ H(Cd, {
|
|
10823
10826
|
className: (0, X.default)("cell", {
|
|
10824
10827
|
left: r === "left",
|
|
10825
10828
|
center: r === "center",
|
|
10826
10829
|
right: r === "right"
|
|
10827
10830
|
}),
|
|
10828
|
-
children: /* @__PURE__ */ H(
|
|
10831
|
+
children: /* @__PURE__ */ H(Sd, {
|
|
10829
10832
|
dataIndex: a || t,
|
|
10830
10833
|
render: n,
|
|
10831
10834
|
editable: i
|
|
10832
10835
|
})
|
|
10833
10836
|
});
|
|
10834
|
-
},
|
|
10835
|
-
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(
|
|
10837
|
+
}, Td = (e) => {
|
|
10838
|
+
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(gd), [_, v] = B([]), [y, b] = B(!1), x = z(null), S = z(null), C = z([]);
|
|
10836
10839
|
C.current = _;
|
|
10837
10840
|
let w = z(null), [T, D] = B(!0), [O, k] = B(!1);
|
|
10838
10841
|
F(() => () => {
|
|
@@ -10883,7 +10886,7 @@ var Yu = Y.div`
|
|
|
10883
10886
|
};
|
|
10884
10887
|
}, []), F(() => (T && I(), () => {
|
|
10885
10888
|
S.current?.current?.cancel?.();
|
|
10886
|
-
}), [T, g.allChildren]), /* @__PURE__ */ H(
|
|
10889
|
+
}), [T, g.allChildren]), /* @__PURE__ */ H(hd.Provider, {
|
|
10887
10890
|
value: {
|
|
10888
10891
|
row: {
|
|
10889
10892
|
...t,
|
|
@@ -10895,7 +10898,7 @@ var Yu = Y.div`
|
|
|
10895
10898
|
className: "row-box",
|
|
10896
10899
|
children: [/* @__PURE__ */ U("div", {
|
|
10897
10900
|
className: (0, X.default)("row-wrapper", { "row-wrapper-selected": j }),
|
|
10898
|
-
children: [/* @__PURE__ */ H(
|
|
10901
|
+
children: [/* @__PURE__ */ H(vd, {
|
|
10899
10902
|
expandable: r,
|
|
10900
10903
|
enableSelection: i?.enableSelection,
|
|
10901
10904
|
expanded: A,
|
|
@@ -10907,7 +10910,7 @@ var Yu = Y.div`
|
|
|
10907
10910
|
className: "seal-table-row",
|
|
10908
10911
|
children: c?.map(({ key: e, ...t }) => /* @__PURE__ */ H(st, {
|
|
10909
10912
|
span: t.span,
|
|
10910
|
-
children: /* @__PURE__ */ H(
|
|
10913
|
+
children: /* @__PURE__ */ H(wd, { ...t })
|
|
10911
10914
|
}, `${t.dataIndex}-${n}`))
|
|
10912
10915
|
})]
|
|
10913
10916
|
}), A && !V && /* @__PURE__ */ H("div", {
|
|
@@ -10920,9 +10923,9 @@ var Yu = Y.div`
|
|
|
10920
10923
|
})]
|
|
10921
10924
|
})
|
|
10922
10925
|
});
|
|
10923
|
-
},
|
|
10926
|
+
}, Ed = ({ 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", {
|
|
10924
10927
|
className: "seal-table-content",
|
|
10925
|
-
children: e.map((e, m) => /* @__PURE__ */ H(
|
|
10928
|
+
children: e.map((e, m) => /* @__PURE__ */ H(Td, {
|
|
10926
10929
|
record: e,
|
|
10927
10930
|
rowIndex: m,
|
|
10928
10931
|
columns: f,
|
|
@@ -10942,7 +10945,7 @@ var Yu = Y.div`
|
|
|
10942
10945
|
}) : /* @__PURE__ */ H("div", {
|
|
10943
10946
|
className: "empty-wrapper",
|
|
10944
10947
|
children: m || /* @__PURE__ */ H(ft, { image: ft.PRESENTED_IMAGE_SIMPLE })
|
|
10945
|
-
}),
|
|
10948
|
+
}), Dd = (e) => {
|
|
10946
10949
|
let t = e.filter((e) => e.defaultSortOrder);
|
|
10947
10950
|
return t.length === 0 ? [] : t.map((e) => ({
|
|
10948
10951
|
columnKey: e.key || e.dataIndex,
|
|
@@ -10950,8 +10953,8 @@ var Yu = Y.div`
|
|
|
10950
10953
|
order: e.defaultSortOrder || null
|
|
10951
10954
|
}));
|
|
10952
10955
|
};
|
|
10953
|
-
function
|
|
10954
|
-
let { onTableSort: t, columns: n } = e, r = z(
|
|
10956
|
+
function Od(e) {
|
|
10957
|
+
let { onTableSort: t, columns: n } = e, r = z(Dd(n || [])), [i, a] = B(Dd(n || []));
|
|
10955
10958
|
return {
|
|
10956
10959
|
sorterListRef: r,
|
|
10957
10960
|
sorterList: i,
|
|
@@ -10978,7 +10981,7 @@ function kd(e) {
|
|
|
10978
10981
|
}
|
|
10979
10982
|
//#endregion
|
|
10980
10983
|
//#region src/lib/components/table/index.tsx
|
|
10981
|
-
var
|
|
10984
|
+
var kd = Y.div`
|
|
10982
10985
|
width: 100%;
|
|
10983
10986
|
--ant-table-cell-padding-inline: ${(e) => e.$token.cellPaddingInline}px;
|
|
10984
10987
|
--ant-table-cell-padding-block: ${(e) => e.$token.cellPaddingBlock}px;
|
|
@@ -10989,8 +10992,8 @@ var Ad = Y.div`
|
|
|
10989
10992
|
--ant-table-row-hover-bg: ${(e) => e.$token.rowHoverBg};
|
|
10990
10993
|
--ant-table-header-icon-color: ${(e) => e.$token.tableHeaderIconColor};
|
|
10991
10994
|
--ant-table-header-icon-hover-color: ${(e) => e.$token.tableHeaderIconHoverColor};
|
|
10992
|
-
`,
|
|
10993
|
-
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 } =
|
|
10995
|
+
`, Ad = (e) => {
|
|
10996
|
+
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 } = Od({
|
|
10994
10997
|
onTableSort: s,
|
|
10995
10998
|
columns: t
|
|
10996
10999
|
}), { token: T } = Lt.useToken(), D = R(() => t || E.Children.toArray(n).filter(E.isValidElement).map((e) => {
|
|
@@ -11042,7 +11045,7 @@ var Ad = Y.div`
|
|
|
11042
11045
|
}, F = (e, t) => {
|
|
11043
11046
|
g?.onShowSizeChange?.(e, t);
|
|
11044
11047
|
};
|
|
11045
|
-
return console.log("token.table", T), /* @__PURE__ */ U(
|
|
11048
|
+
return console.log("token.table", T), /* @__PURE__ */ U(kd, {
|
|
11046
11049
|
$token: {
|
|
11047
11050
|
...T.Table,
|
|
11048
11051
|
tableHeaderIconColor: T.colorTextQuaternary,
|
|
@@ -11053,7 +11056,7 @@ var Ad = Y.div`
|
|
|
11053
11056
|
className: "seal-table-container",
|
|
11054
11057
|
children: [/* @__PURE__ */ U("div", {
|
|
11055
11058
|
className: "header-row-wrapper",
|
|
11056
|
-
children: [/* @__PURE__ */ H(
|
|
11059
|
+
children: [/* @__PURE__ */ H(pd, {
|
|
11057
11060
|
selectAll: k.selectAll,
|
|
11058
11061
|
indeterminate: k.indeterminate,
|
|
11059
11062
|
onSelectAll: M,
|
|
@@ -11063,7 +11066,7 @@ var Ad = Y.div`
|
|
|
11063
11066
|
enableSelection: h?.enableSelection,
|
|
11064
11067
|
disabled: !e.dataSource?.length,
|
|
11065
11068
|
hasColumns: D.length > 0
|
|
11066
|
-
}), /* @__PURE__ */ H(
|
|
11069
|
+
}), /* @__PURE__ */ H(fd, {
|
|
11067
11070
|
onSort: C,
|
|
11068
11071
|
columns: D,
|
|
11069
11072
|
sortDirections: v,
|
|
@@ -11073,7 +11076,7 @@ var Ad = Y.div`
|
|
|
11073
11076
|
}), /* @__PURE__ */ H(Dt, {
|
|
11074
11077
|
spinning: u,
|
|
11075
11078
|
size: "middle",
|
|
11076
|
-
children: /* @__PURE__ */ H(
|
|
11079
|
+
children: /* @__PURE__ */ H(Ed, {
|
|
11077
11080
|
empty: _,
|
|
11078
11081
|
dataSource: e.dataSource,
|
|
11079
11082
|
columns: D,
|
|
@@ -11101,16 +11104,16 @@ var Ad = Y.div`
|
|
|
11101
11104
|
})]
|
|
11102
11105
|
});
|
|
11103
11106
|
};
|
|
11104
|
-
|
|
11107
|
+
Ad.RowChildren = md;
|
|
11105
11108
|
//#endregion
|
|
11106
11109
|
//#region src/lib/components/table/table-provider.tsx
|
|
11107
|
-
var
|
|
11110
|
+
var jd = ({ value: e, children: t }) => /* @__PURE__ */ H(gd.Provider, {
|
|
11108
11111
|
value: e,
|
|
11109
11112
|
children: t
|
|
11110
|
-
}),
|
|
11113
|
+
}), Md = ({ value: e, children: t }) => /* @__PURE__ */ H(hd.Provider, {
|
|
11111
11114
|
value: e,
|
|
11112
11115
|
children: t
|
|
11113
|
-
}),
|
|
11116
|
+
}), Nd = (e) => {
|
|
11114
11117
|
let { gap: t = 0, dataList: n, renderTag: r } = e, i = z(null), [a, o] = B({
|
|
11115
11118
|
start: 0,
|
|
11116
11119
|
end: n.length
|
|
@@ -11174,7 +11177,7 @@ var Md = ({ value: e, children: t }) => /* @__PURE__ */ H(_d.Provider, {
|
|
|
11174
11177
|
})]
|
|
11175
11178
|
})
|
|
11176
11179
|
});
|
|
11177
|
-
},
|
|
11180
|
+
}, Pd = Y(jt)`
|
|
11178
11181
|
display: flex;
|
|
11179
11182
|
align-items: center;
|
|
11180
11183
|
justify-content: center;
|
|
@@ -11184,9 +11187,9 @@ var Md = ({ value: e, children: t }) => /* @__PURE__ */ H(_d.Provider, {
|
|
|
11184
11187
|
height: 22px;
|
|
11185
11188
|
opacity: 0.7;
|
|
11186
11189
|
margin: 0;
|
|
11187
|
-
`,
|
|
11190
|
+
`, Fd = ({ opacity: e, style: t, children: n, ...r }) => {
|
|
11188
11191
|
let { config: i } = a(), { isDarkTheme: o } = i;
|
|
11189
|
-
return /* @__PURE__ */ H(
|
|
11192
|
+
return /* @__PURE__ */ H(Pd, {
|
|
11190
11193
|
...r,
|
|
11191
11194
|
variant: "outlined",
|
|
11192
11195
|
style: {
|
|
@@ -11196,10 +11199,10 @@ var Md = ({ value: e, children: t }) => /* @__PURE__ */ H(_d.Provider, {
|
|
|
11196
11199
|
children: n
|
|
11197
11200
|
});
|
|
11198
11201
|
};
|
|
11199
|
-
|
|
11202
|
+
Fd.displayName = "ThemeTag";
|
|
11200
11203
|
//#endregion
|
|
11201
11204
|
//#region src/lib/components/templates/card.tsx
|
|
11202
|
-
var
|
|
11205
|
+
var Id = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
11203
11206
|
overflow: hidden;
|
|
11204
11207
|
display: flex;
|
|
11205
11208
|
padding: 16px 16px;
|
|
@@ -11236,31 +11239,31 @@ var Ld = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11236
11239
|
pointer-events: none;
|
|
11237
11240
|
border-style: dashed;
|
|
11238
11241
|
}
|
|
11239
|
-
`,
|
|
11242
|
+
`, Ld = Y.div.attrs({ className: "template-card-content" })`
|
|
11240
11243
|
width: 100%;
|
|
11241
11244
|
flex: 1;
|
|
11242
11245
|
color: var(--ant-color-text-tertiary);
|
|
11243
|
-
`,
|
|
11246
|
+
`, Rd = Y.div.attrs({ className: "template-card-inner" })`
|
|
11244
11247
|
display: flex;
|
|
11245
11248
|
width: 100%;
|
|
11246
11249
|
flex-direction: column;
|
|
11247
11250
|
justify-content: flex-start;
|
|
11248
11251
|
gap: 8px;
|
|
11249
11252
|
height: 100%;
|
|
11250
|
-
`,
|
|
11253
|
+
`, zd = Y.div.attrs({ className: "template-card-icon" })`
|
|
11251
11254
|
display: flex;
|
|
11252
11255
|
align-items: center;
|
|
11253
11256
|
margin-right: 16px;
|
|
11254
11257
|
font-size: 32px;
|
|
11255
|
-
`,
|
|
11258
|
+
`, Bd = Y.div.attrs({ className: "template-card-header" })`
|
|
11256
11259
|
font-weight: bold;
|
|
11257
11260
|
font-size: var(--font-size-base);
|
|
11258
11261
|
display: flex;
|
|
11259
11262
|
align-items: center;
|
|
11260
11263
|
justify-content: space-between;
|
|
11261
|
-
`,
|
|
11264
|
+
`, Vd = (e) => {
|
|
11262
11265
|
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;
|
|
11263
|
-
return /* @__PURE__ */ U(
|
|
11266
|
+
return /* @__PURE__ */ U(Id, {
|
|
11264
11267
|
className: (0, X.default)(t, {
|
|
11265
11268
|
clickable: i,
|
|
11266
11269
|
hoverable: d,
|
|
@@ -11272,17 +11275,17 @@ var Ld = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11272
11275
|
onClick: () => {
|
|
11273
11276
|
u || !i || f?.();
|
|
11274
11277
|
},
|
|
11275
|
-
children: [c && /* @__PURE__ */ H(
|
|
11276
|
-
o && /* @__PURE__ */ H(
|
|
11277
|
-
r && /* @__PURE__ */ H(
|
|
11278
|
+
children: [c && /* @__PURE__ */ H(zd, { children: c }), /* @__PURE__ */ U(Rd, { children: [
|
|
11279
|
+
o && /* @__PURE__ */ H(Bd, { children: o }),
|
|
11280
|
+
r && /* @__PURE__ */ H(Ld, { children: r }),
|
|
11278
11281
|
s
|
|
11279
11282
|
] })]
|
|
11280
11283
|
});
|
|
11281
|
-
},
|
|
11284
|
+
}, Hd = Y.div`
|
|
11282
11285
|
.ant-skeleton-paragraph {
|
|
11283
11286
|
margin-bottom: 0;
|
|
11284
11287
|
}
|
|
11285
|
-
`,
|
|
11288
|
+
`, Ud = (e) => /* @__PURE__ */ H(El, {
|
|
11286
11289
|
dataList: [
|
|
11287
11290
|
,
|
|
11288
11291
|
,
|
|
@@ -11291,7 +11294,7 @@ var Ld = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11291
11294
|
,
|
|
11292
11295
|
,
|
|
11293
11296
|
].fill({ label: "skeleton" }),
|
|
11294
|
-
renderItem: () => /* @__PURE__ */ H(
|
|
11297
|
+
renderItem: () => /* @__PURE__ */ H(Hd, { children: /* @__PURE__ */ H(wt, {
|
|
11295
11298
|
avatar: { size: 32 },
|
|
11296
11299
|
paragraph: { rows: 2 },
|
|
11297
11300
|
style: {
|
|
@@ -11302,7 +11305,7 @@ var Ld = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11302
11305
|
},
|
|
11303
11306
|
...e.skeletonProps || {}
|
|
11304
11307
|
}) })
|
|
11305
|
-
}),
|
|
11308
|
+
}), Wd = Y.div`
|
|
11306
11309
|
width: 100%;
|
|
11307
11310
|
position: absolute;
|
|
11308
11311
|
display: flex;
|
|
@@ -11315,30 +11318,30 @@ var Ld = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11315
11318
|
.skelton-wrapper {
|
|
11316
11319
|
width: 100%;
|
|
11317
11320
|
}
|
|
11318
|
-
`,
|
|
11321
|
+
`, Gd = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Wd, { children: /* @__PURE__ */ H(Dt, {
|
|
11319
11322
|
size: "middle",
|
|
11320
11323
|
spinning: e,
|
|
11321
11324
|
style: { width: "100%" },
|
|
11322
11325
|
classNames: { root: "skelton-wrapper" },
|
|
11323
|
-
children: t && /* @__PURE__ */ H(
|
|
11324
|
-
}) }) }),
|
|
11325
|
-
let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } =
|
|
11326
|
-
return /* @__PURE__ */ U(
|
|
11326
|
+
children: t && /* @__PURE__ */ H(Ud, {})
|
|
11327
|
+
}) }) }), Kd = (e) => {
|
|
11328
|
+
let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } = Ic();
|
|
11329
|
+
return /* @__PURE__ */ U(Pc, {
|
|
11327
11330
|
total: s,
|
|
11328
11331
|
current: c,
|
|
11329
11332
|
loading: l,
|
|
11330
11333
|
refresh: u,
|
|
11331
|
-
children: [/* @__PURE__ */ H(
|
|
11334
|
+
children: [/* @__PURE__ */ H(El, {
|
|
11332
11335
|
dataList: t,
|
|
11333
11336
|
renderItem: o,
|
|
11334
11337
|
defaultSpan: i,
|
|
11335
11338
|
resizable: a
|
|
11336
|
-
}), /* @__PURE__ */ H(
|
|
11339
|
+
}), /* @__PURE__ */ H(Gd, {
|
|
11337
11340
|
loading: n,
|
|
11338
11341
|
isFirst: r
|
|
11339
11342
|
})]
|
|
11340
11343
|
});
|
|
11341
|
-
},
|
|
11344
|
+
}, qd = /* @__PURE__ */ n(((e, t) => {
|
|
11342
11345
|
(function(n, r) {
|
|
11343
11346
|
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();
|
|
11344
11347
|
})(self, (() => (() => {
|
|
@@ -11369,7 +11372,7 @@ var Ld = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11369
11372
|
};
|
|
11370
11373
|
})(), e;
|
|
11371
11374
|
})()));
|
|
11372
|
-
})),
|
|
11375
|
+
})), Jd = /* @__PURE__ */ n(((e, t) => {
|
|
11373
11376
|
(function(n, r) {
|
|
11374
11377
|
if (typeof e == "object" && typeof t == "object") t.exports = r();
|
|
11375
11378
|
else if (typeof define == "function" && define.amd) define([], r);
|
|
@@ -18476,9 +18479,9 @@ var Ld = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
18476
18479
|
e.Terminal = d;
|
|
18477
18480
|
})(), r;
|
|
18478
18481
|
})()));
|
|
18479
|
-
})),
|
|
18480
|
-
|
|
18481
|
-
var
|
|
18482
|
+
})), Yd = qd();
|
|
18483
|
+
Jd();
|
|
18484
|
+
var Xd = Rt(({ token: e, css: t }) => ({
|
|
18482
18485
|
wrap: t`
|
|
18483
18486
|
position: relative;
|
|
18484
18487
|
text-align: left;
|
|
@@ -18497,16 +18500,16 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18497
18500
|
background-color: var(--color-logs-bg);
|
|
18498
18501
|
border-radius: 0 0 8px 8px;
|
|
18499
18502
|
`
|
|
18500
|
-
})),
|
|
18503
|
+
})), Zd = [
|
|
18501
18504
|
"bash",
|
|
18502
18505
|
"sh",
|
|
18503
18506
|
"powershell",
|
|
18504
18507
|
"pwsh",
|
|
18505
18508
|
"cmd",
|
|
18506
18509
|
"bash"
|
|
18507
|
-
],
|
|
18508
|
-
let { height: n, url: r, theme: i } = e, { styles: a } =
|
|
18509
|
-
u.current >=
|
|
18510
|
+
], Qd = "--- press Y to reconnect! ---", $d = A((e, t) => {
|
|
18511
|
+
let { height: n, url: r, theme: i } = e, { styles: a } = Xd(), 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 Yd.FitAddon(), C = (e) => {
|
|
18512
|
+
u.current >= Zd.length - 1 || (e ? u.current = 0 : u.current += 1, l.current = `${r}&${m.stringify({ shell: Zd[u.current] })}`);
|
|
18510
18513
|
}, w = () => (d.current && d.current.readyState) === 1, T = () => {
|
|
18511
18514
|
let { cols: e, rows: t } = c.current || {};
|
|
18512
18515
|
w() && d.current?.send(`#{"width":${e},"height":${t}}#`);
|
|
@@ -18529,7 +18532,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18529
18532
|
1011,
|
|
18530
18533
|
1006,
|
|
18531
18534
|
1e3
|
|
18532
|
-
].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${
|
|
18535
|
+
].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${Qd}`))), h.current = !0) : e.reason && c.current?.write?.(j(`(${b})${e.reason}\r\n`)), g.current = !1;
|
|
18533
18536
|
}, R = (e) => {
|
|
18534
18537
|
let { message: t } = e;
|
|
18535
18538
|
t || (t = "disconnected!", v.current = !0, h.current = !0, g.current = !1), y.current = d.current.readyState, c.current?.write?.(M(`\r${t}`));
|
|
@@ -18563,55 +18566,55 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18563
18566
|
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]);
|
|
18564
18567
|
return e;
|
|
18565
18568
|
}, $.apply(this, arguments);
|
|
18566
|
-
},
|
|
18569
|
+
}, ef = {
|
|
18567
18570
|
width: "100%",
|
|
18568
18571
|
height: "10px",
|
|
18569
18572
|
top: "0px",
|
|
18570
18573
|
left: "0px",
|
|
18571
18574
|
cursor: "row-resize"
|
|
18572
|
-
},
|
|
18575
|
+
}, tf = {
|
|
18573
18576
|
width: "10px",
|
|
18574
18577
|
height: "100%",
|
|
18575
18578
|
top: "0px",
|
|
18576
18579
|
left: "0px",
|
|
18577
18580
|
cursor: "col-resize"
|
|
18578
|
-
},
|
|
18581
|
+
}, nf = {
|
|
18579
18582
|
width: "20px",
|
|
18580
18583
|
height: "20px",
|
|
18581
18584
|
position: "absolute",
|
|
18582
18585
|
zIndex: 1
|
|
18583
|
-
},
|
|
18584
|
-
top: $($({},
|
|
18585
|
-
right: $($({},
|
|
18586
|
+
}, rf = {
|
|
18587
|
+
top: $($({}, ef), { top: "-5px" }),
|
|
18588
|
+
right: $($({}, tf), {
|
|
18586
18589
|
left: void 0,
|
|
18587
18590
|
right: "-5px"
|
|
18588
18591
|
}),
|
|
18589
|
-
bottom: $($({},
|
|
18592
|
+
bottom: $($({}, ef), {
|
|
18590
18593
|
top: void 0,
|
|
18591
18594
|
bottom: "-5px"
|
|
18592
18595
|
}),
|
|
18593
|
-
left: $($({},
|
|
18594
|
-
topRight: $($({},
|
|
18596
|
+
left: $($({}, tf), { left: "-5px" }),
|
|
18597
|
+
topRight: $($({}, nf), {
|
|
18595
18598
|
right: "-10px",
|
|
18596
18599
|
top: "-10px",
|
|
18597
18600
|
cursor: "ne-resize"
|
|
18598
18601
|
}),
|
|
18599
|
-
bottomRight: $($({},
|
|
18602
|
+
bottomRight: $($({}, nf), {
|
|
18600
18603
|
right: "-10px",
|
|
18601
18604
|
bottom: "-10px",
|
|
18602
18605
|
cursor: "se-resize"
|
|
18603
18606
|
}),
|
|
18604
|
-
bottomLeft: $($({},
|
|
18607
|
+
bottomLeft: $($({}, nf), {
|
|
18605
18608
|
left: "-10px",
|
|
18606
18609
|
bottom: "-10px",
|
|
18607
18610
|
cursor: "sw-resize"
|
|
18608
18611
|
}),
|
|
18609
|
-
topLeft: $($({},
|
|
18612
|
+
topLeft: $($({}, nf), {
|
|
18610
18613
|
left: "-10px",
|
|
18611
18614
|
top: "-10px",
|
|
18612
18615
|
cursor: "nw-resize"
|
|
18613
18616
|
})
|
|
18614
|
-
},
|
|
18617
|
+
}, af = M(function(e) {
|
|
18615
18618
|
var t = e.onResizeStart, n = e.direction, r = e.children, i = e.replaceStyles, a = e.className, o = N(function(e) {
|
|
18616
18619
|
t(e, n);
|
|
18617
18620
|
}, [t, n]), s = N(function(e) {
|
|
@@ -18620,7 +18623,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18620
18623
|
return $($({
|
|
18621
18624
|
position: "absolute",
|
|
18622
18625
|
userSelect: "none"
|
|
18623
|
-
},
|
|
18626
|
+
}, rf[n]), i ?? {});
|
|
18624
18627
|
}, [i, n]);
|
|
18625
18628
|
return H("div", {
|
|
18626
18629
|
className: a || void 0,
|
|
@@ -18629,7 +18632,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18629
18632
|
onTouchStart: s,
|
|
18630
18633
|
children: r
|
|
18631
18634
|
});
|
|
18632
|
-
}),
|
|
18635
|
+
}), of = (function() {
|
|
18633
18636
|
var e = function(t, n) {
|
|
18634
18637
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
18635
18638
|
e.__proto__ = t;
|
|
@@ -18645,34 +18648,34 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18645
18648
|
}
|
|
18646
18649
|
t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
18647
18650
|
};
|
|
18648
|
-
})(),
|
|
18649
|
-
return
|
|
18651
|
+
})(), sf = function() {
|
|
18652
|
+
return sf = Object.assign || function(e) {
|
|
18650
18653
|
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]);
|
|
18651
18654
|
return e;
|
|
18652
|
-
},
|
|
18653
|
-
},
|
|
18655
|
+
}, sf.apply(this, arguments);
|
|
18656
|
+
}, cf = {
|
|
18654
18657
|
width: "auto",
|
|
18655
18658
|
height: "auto"
|
|
18656
|
-
},
|
|
18659
|
+
}, lf = function(e, t, n) {
|
|
18657
18660
|
return Math.max(Math.min(e, n), t);
|
|
18658
|
-
},
|
|
18661
|
+
}, uf = function(e, t, n) {
|
|
18659
18662
|
var r = Math.round(e / t);
|
|
18660
18663
|
return r * t + n * (r - 1);
|
|
18661
|
-
},
|
|
18664
|
+
}, df = function(e, t) {
|
|
18662
18665
|
return new RegExp(e, "i").test(t);
|
|
18663
|
-
},
|
|
18666
|
+
}, ff = function(e) {
|
|
18664
18667
|
return !!(e.touches && e.touches.length);
|
|
18665
|
-
},
|
|
18668
|
+
}, pf = function(e) {
|
|
18666
18669
|
return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
|
|
18667
|
-
},
|
|
18670
|
+
}, mf = function(e, t, n) {
|
|
18668
18671
|
n === void 0 && (n = 0);
|
|
18669
18672
|
var r = t.reduce(function(n, r, i) {
|
|
18670
18673
|
return Math.abs(r - e) < Math.abs(t[n] - e) ? i : n;
|
|
18671
18674
|
}, 0), i = Math.abs(t[r] - e);
|
|
18672
18675
|
return n === 0 || i < n ? t[r] : e;
|
|
18673
|
-
},
|
|
18676
|
+
}, hf = function(e) {
|
|
18674
18677
|
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`;
|
|
18675
|
-
},
|
|
18678
|
+
}, gf = function(e, t, n, r) {
|
|
18676
18679
|
if (e && typeof e == "string") {
|
|
18677
18680
|
if (e.endsWith("px")) return Number(e.replace("px", ""));
|
|
18678
18681
|
if (e.endsWith("%")) {
|
|
@@ -18689,17 +18692,17 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18689
18692
|
}
|
|
18690
18693
|
}
|
|
18691
18694
|
return e;
|
|
18692
|
-
},
|
|
18693
|
-
return r =
|
|
18695
|
+
}, _f = function(e, t, n, r, i, a, o) {
|
|
18696
|
+
return r = gf(r, e.width, t, n), i = gf(i, e.height, t, n), a = gf(a, e.width, t, n), o = gf(o, e.height, t, n), {
|
|
18694
18697
|
maxWidth: r === void 0 ? void 0 : Number(r),
|
|
18695
18698
|
maxHeight: i === void 0 ? void 0 : Number(i),
|
|
18696
18699
|
minWidth: a === void 0 ? void 0 : Number(a),
|
|
18697
18700
|
minHeight: o === void 0 ? void 0 : Number(o)
|
|
18698
18701
|
};
|
|
18699
|
-
},
|
|
18702
|
+
}, vf = function(e) {
|
|
18700
18703
|
return Array.isArray(e) ? e : [e, e];
|
|
18701
|
-
},
|
|
18702
|
-
|
|
18704
|
+
}, yf = /* @__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("."), bf = "__resizable_base__", xf = function(e) {
|
|
18705
|
+
of(t, e);
|
|
18703
18706
|
function t(t) {
|
|
18704
18707
|
var n = e.call(this, t) || this;
|
|
18705
18708
|
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 = {
|
|
@@ -18710,7 +18713,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18710
18713
|
var e = n.parentNode;
|
|
18711
18714
|
if (!e) return null;
|
|
18712
18715
|
var t = n.window.document.createElement("div");
|
|
18713
|
-
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(
|
|
18716
|
+
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(bf) : t.className += bf, e.appendChild(t), t;
|
|
18714
18717
|
}, n.removeBase = function(e) {
|
|
18715
18718
|
var t = n.parentNode;
|
|
18716
18719
|
t && t.removeChild(e);
|
|
@@ -18755,7 +18758,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18755
18758
|
configurable: !0
|
|
18756
18759
|
}), Object.defineProperty(t.prototype, "propsSize", {
|
|
18757
18760
|
get: function() {
|
|
18758
|
-
return this.props.size || this.props.defaultSize ||
|
|
18761
|
+
return this.props.size || this.props.defaultSize || cf;
|
|
18759
18762
|
},
|
|
18760
18763
|
enumerable: !1,
|
|
18761
18764
|
configurable: !0
|
|
@@ -18782,11 +18785,11 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18782
18785
|
var n = e.getParentSize();
|
|
18783
18786
|
return `${Number(e.state[t].toString().replace("px", "")) / n[t] * 100}%`;
|
|
18784
18787
|
}
|
|
18785
|
-
return
|
|
18788
|
+
return hf(e.state[t]);
|
|
18786
18789
|
};
|
|
18787
18790
|
return {
|
|
18788
|
-
width: t && t.width !== void 0 && !this.state.isResizing ?
|
|
18789
|
-
height: t && t.height !== void 0 && !this.state.isResizing ?
|
|
18791
|
+
width: t && t.width !== void 0 && !this.state.isResizing ? hf(t.width) : n("width"),
|
|
18792
|
+
height: t && t.height !== void 0 && !this.state.isResizing ? hf(t.height) : n("height")
|
|
18790
18793
|
};
|
|
18791
18794
|
},
|
|
18792
18795
|
enumerable: !1,
|
|
@@ -18833,7 +18836,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18833
18836
|
var n = this.propsSize && this.propsSize[t];
|
|
18834
18837
|
return this.state[t] === "auto" && this.state.original[t] === e && (n === void 0 || n === "auto") ? "auto" : e;
|
|
18835
18838
|
}, t.prototype.calculateNewMaxFromBoundary = function(e, t) {
|
|
18836
|
-
var n = this.props.boundsByDirection, r = this.state.direction, i = n &&
|
|
18839
|
+
var n = this.props.boundsByDirection, r = this.state.direction, i = n && df("left", r), a = n && df("top", r), o, s;
|
|
18837
18840
|
if (this.props.bounds === "parent") {
|
|
18838
18841
|
var c = this.parentNode;
|
|
18839
18842
|
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));
|
|
@@ -18843,8 +18846,8 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18843
18846
|
maxHeight: t
|
|
18844
18847
|
};
|
|
18845
18848
|
}, t.prototype.calculateNewSizeFromDirection = function(e, t) {
|
|
18846
|
-
var n = this.props.scale || 1, r =
|
|
18847
|
-
return
|
|
18849
|
+
var n = this.props.scale || 1, r = vf(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;
|
|
18850
|
+
return df("right", s) && (p = c.width + (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), df("left", s) && (p = c.width - (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), df("bottom", s) && (m = c.height + (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), df("top", s) && (m = c.height - (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), {
|
|
18848
18851
|
newWidth: p,
|
|
18849
18852
|
newHeight: m
|
|
18850
18853
|
};
|
|
@@ -18852,8 +18855,8 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18852
18855
|
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;
|
|
18853
18856
|
if (a) {
|
|
18854
18857
|
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, _);
|
|
18855
|
-
e =
|
|
18856
|
-
} else e =
|
|
18858
|
+
e = lf(e, v, y), t = lf(t, b, x);
|
|
18859
|
+
} else e = lf(e, c, l), t = lf(t, u, d);
|
|
18857
18860
|
return {
|
|
18858
18861
|
newWidth: e,
|
|
18859
18862
|
newHeight: t
|
|
@@ -18878,7 +18881,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18878
18881
|
}, t.prototype.onResizeStart = function(e, t) {
|
|
18879
18882
|
if (!(!this.resizable || !this.window)) {
|
|
18880
18883
|
var n = 0, r = 0;
|
|
18881
|
-
if (e.nativeEvent &&
|
|
18884
|
+
if (e.nativeEvent && pf(e.nativeEvent) ? (n = e.nativeEvent.clientX, r = e.nativeEvent.clientY) : e.nativeEvent && ff(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)) {
|
|
18882
18885
|
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;
|
|
18883
18886
|
var i, a = this.window.getComputedStyle(this.resizable);
|
|
18884
18887
|
if (a.flexBasis !== "auto") {
|
|
@@ -18897,7 +18900,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18897
18900
|
height: this.size.height
|
|
18898
18901
|
},
|
|
18899
18902
|
isResizing: !0,
|
|
18900
|
-
backgroundStyle:
|
|
18903
|
+
backgroundStyle: sf(sf({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
|
|
18901
18904
|
direction: t,
|
|
18902
18905
|
flexBasis: i
|
|
18903
18906
|
};
|
|
@@ -18907,13 +18910,13 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18907
18910
|
}, t.prototype.onMouseMove = function(e) {
|
|
18908
18911
|
var t = this;
|
|
18909
18912
|
if (!(!this.state.isResizing || !this.resizable || !this.window)) {
|
|
18910
|
-
if (this.window.TouchEvent &&
|
|
18913
|
+
if (this.window.TouchEvent && ff(e)) try {
|
|
18911
18914
|
e.preventDefault(), e.stopPropagation();
|
|
18912
18915
|
} catch {}
|
|
18913
|
-
var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s =
|
|
18916
|
+
var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s = ff(e) ? e.touches[0].clientX : e.clientX, c = ff(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 = _f(m, this.window.innerWidth, this.window.innerHeight, r, i, a, o);
|
|
18914
18917
|
r = h.maxWidth, i = h.maxHeight, a = h.minWidth, o = h.minHeight;
|
|
18915
18918
|
var g = this.calculateNewSizeFromDirection(s, c), _ = g.newHeight, v = g.newWidth, y = this.calculateNewMaxFromBoundary(r, i);
|
|
18916
|
-
this.props.snap && this.props.snap.x && (v =
|
|
18919
|
+
this.props.snap && this.props.snap.x && (v = mf(v, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (_ = mf(_, this.props.snap.y, this.props.snapGap));
|
|
18917
18920
|
var b = this.calculateNewSizeFromAspectRatio(v, _, {
|
|
18918
18921
|
width: y.maxWidth,
|
|
18919
18922
|
height: y.maxHeight
|
|
@@ -18922,7 +18925,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18922
18925
|
height: o
|
|
18923
18926
|
});
|
|
18924
18927
|
if (v = b.newWidth, _ = b.newHeight, this.props.grid) {
|
|
18925
|
-
var x =
|
|
18928
|
+
var x = uf(v, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = uf(_, 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 : _;
|
|
18926
18929
|
v = w, _ = T;
|
|
18927
18930
|
}
|
|
18928
18931
|
var E = {
|
|
@@ -18970,7 +18973,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18970
18973
|
height: this.props.size.height ?? "auto"
|
|
18971
18974
|
}), this.unbindEvents(), this.setState({
|
|
18972
18975
|
isResizing: !1,
|
|
18973
|
-
backgroundStyle:
|
|
18976
|
+
backgroundStyle: sf(sf({}, this.state.backgroundStyle), { cursor: "auto" })
|
|
18974
18977
|
}));
|
|
18975
18978
|
}, t.prototype.updateSize = function(e) {
|
|
18976
18979
|
this.setState({
|
|
@@ -18983,7 +18986,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18983
18986
|
className: o,
|
|
18984
18987
|
style: a,
|
|
18985
18988
|
children: Object.keys(n).map(function(t) {
|
|
18986
|
-
return n[t] === !1 ? null : H(
|
|
18989
|
+
return n[t] === !1 ? null : H(af, {
|
|
18987
18990
|
direction: t,
|
|
18988
18991
|
onResizeStart: e.onResizeStart,
|
|
18989
18992
|
replaceStyles: r && r[t],
|
|
@@ -18994,8 +18997,8 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
18994
18997
|
}) : null;
|
|
18995
18998
|
}, t.prototype.render = function() {
|
|
18996
18999
|
var e = this, t = Object.keys(this.props).reduce(function(t, n) {
|
|
18997
|
-
return
|
|
18998
|
-
}, {}), n =
|
|
19000
|
+
return yf.indexOf(n) === -1 && (t[n] = e.props[n]), t;
|
|
19001
|
+
}, {}), n = sf(sf(sf({
|
|
18999
19002
|
position: "relative",
|
|
19000
19003
|
userSelect: this.state.isResizing ? "none" : "auto"
|
|
19001
19004
|
}, this.props.style), this.sizeStyle), {
|
|
@@ -19006,7 +19009,7 @@ var Zd = Rt(({ token: e, css: t }) => ({
|
|
|
19006
19009
|
boxSizing: "border-box",
|
|
19007
19010
|
flexShrink: 0
|
|
19008
19011
|
});
|
|
19009
|
-
return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div",
|
|
19012
|
+
return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div", sf({
|
|
19010
19013
|
style: n,
|
|
19011
19014
|
className: this.props.className
|
|
19012
19015
|
}, t, {
|
|
@@ -19060,11 +19063,11 @@ Y(G)`
|
|
|
19060
19063
|
background: none !important;
|
|
19061
19064
|
}
|
|
19062
19065
|
`;
|
|
19063
|
-
var
|
|
19066
|
+
var Sf = A((e, t) => {
|
|
19064
19067
|
let { defaultWidth: n, defaultHeight: r = 180, minHeight: i = 180, maxHeight: a = 400, children: s, onReSize: c, onReSizeStop: l, ...u } = e;
|
|
19065
19068
|
o();
|
|
19066
19069
|
let d = z(null);
|
|
19067
|
-
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(
|
|
19070
|
+
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(xf, {
|
|
19068
19071
|
ref: d,
|
|
19069
19072
|
enable: { top: !0 },
|
|
19070
19073
|
defaultSize: {
|
|
@@ -19079,7 +19082,7 @@ var Cf = A((e, t) => {
|
|
|
19079
19082
|
...u,
|
|
19080
19083
|
children: s
|
|
19081
19084
|
});
|
|
19082
|
-
}),
|
|
19085
|
+
}), Cf = Y.div`
|
|
19083
19086
|
.ant-tabs {
|
|
19084
19087
|
.ant-tabs-tab {
|
|
19085
19088
|
positon: relative;
|
|
@@ -19139,11 +19142,11 @@ var Cf = A((e, t) => {
|
|
|
19139
19142
|
color: var(--ant-color-text);
|
|
19140
19143
|
}
|
|
19141
19144
|
}
|
|
19142
|
-
`,
|
|
19145
|
+
`, wf = ({ terminals: e, currentActive: t, onClose: n }) => {
|
|
19143
19146
|
let [r, i] = B(t || e[0]?.url || ""), [a, o] = B(300), s = E.useRef(null), c = R(() => e.map((e) => ({
|
|
19144
19147
|
key: e.url,
|
|
19145
19148
|
label: e.name,
|
|
19146
|
-
children: /* @__PURE__ */ H(
|
|
19149
|
+
children: /* @__PURE__ */ H($d, {
|
|
19147
19150
|
height: a,
|
|
19148
19151
|
url: e.url
|
|
19149
19152
|
})
|
|
@@ -19153,10 +19156,10 @@ var Cf = A((e, t) => {
|
|
|
19153
19156
|
}, 200);
|
|
19154
19157
|
return F(() => {
|
|
19155
19158
|
t && i(t);
|
|
19156
|
-
}, [t]), /* @__PURE__ */ H(
|
|
19159
|
+
}, [t]), /* @__PURE__ */ H(Sf, {
|
|
19157
19160
|
onReSize: l,
|
|
19158
19161
|
ref: s,
|
|
19159
|
-
children: /* @__PURE__ */ H(
|
|
19162
|
+
children: /* @__PURE__ */ H(Cf, { children: /* @__PURE__ */ H(At, {
|
|
19160
19163
|
type: "editable-card",
|
|
19161
19164
|
hideAdd: !0,
|
|
19162
19165
|
activeKey: r,
|
|
@@ -19172,11 +19175,11 @@ var Cf = A((e, t) => {
|
|
|
19172
19175
|
}) }
|
|
19173
19176
|
}) })
|
|
19174
19177
|
});
|
|
19175
|
-
},
|
|
19178
|
+
}, Tf = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(wf, {
|
|
19176
19179
|
terminals: e,
|
|
19177
19180
|
currentActive: r,
|
|
19178
19181
|
onClose: n
|
|
19179
|
-
}),
|
|
19182
|
+
}), Ef = Y.ul`
|
|
19180
19183
|
list-style: none;
|
|
19181
19184
|
padding-left: 0;
|
|
19182
19185
|
margin: 0;
|
|
@@ -19194,16 +19197,16 @@ var Cf = A((e, t) => {
|
|
|
19194
19197
|
display: inline-flex;
|
|
19195
19198
|
}
|
|
19196
19199
|
}
|
|
19197
|
-
`,
|
|
19200
|
+
`, Df = (e) => {
|
|
19198
19201
|
let t = o(), { list: n } = e;
|
|
19199
|
-
return /* @__PURE__ */ H(
|
|
19202
|
+
return /* @__PURE__ */ H(Ef, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
|
|
19200
19203
|
className: "title",
|
|
19201
19204
|
children: [e.title?.locale ? t.formatMessage({ id: e.title?.text || "" }) : e.title, ":"]
|
|
19202
19205
|
}), /* @__PURE__ */ H("span", {
|
|
19203
19206
|
className: "content",
|
|
19204
19207
|
children: t.formatMessage({ id: e.tips })
|
|
19205
19208
|
})] }, n)) });
|
|
19206
|
-
},
|
|
19209
|
+
}, Of = Y.div`
|
|
19207
19210
|
.ant-transfer-section {
|
|
19208
19211
|
width: 100%;
|
|
19209
19212
|
height: 300px;
|
|
@@ -19260,12 +19263,12 @@ var Cf = A((e, t) => {
|
|
|
19260
19263
|
.ant-pagination {
|
|
19261
19264
|
justify-content: center;
|
|
19262
19265
|
}
|
|
19263
|
-
`,
|
|
19266
|
+
`, kf = (e) => {
|
|
19264
19267
|
let t = o(), n = (e) => e.selectedCount ? /* @__PURE__ */ H("span", {
|
|
19265
19268
|
style: { color: "var(--ant-color-text-secondary)" },
|
|
19266
19269
|
children: t.formatMessage({ id: "common.select.count" }, { count: e.selectedCount })
|
|
19267
19270
|
}) : null;
|
|
19268
|
-
return /* @__PURE__ */ H(
|
|
19271
|
+
return /* @__PURE__ */ H(Of, { children: /* @__PURE__ */ H(Mt, {
|
|
19269
19272
|
...e,
|
|
19270
19273
|
selectAllLabels: e.selectAllLabels || [n, n],
|
|
19271
19274
|
selectionsIcon: /* @__PURE__ */ H(Ae, { style: {
|
|
@@ -19273,7 +19276,7 @@ var Cf = A((e, t) => {
|
|
|
19273
19276
|
marginBottom: 3
|
|
19274
19277
|
} })
|
|
19275
19278
|
}) });
|
|
19276
|
-
},
|
|
19279
|
+
}, Af = A((e, t) => {
|
|
19277
19280
|
let { minHeight: n = 50, header: r, variant: i = "bordered", children: a, setCollapsed: o } = e, [s, c] = B(!0), l = z(null);
|
|
19278
19281
|
F(() => {
|
|
19279
19282
|
l?.current && (l.current.style.minHeight = s ? `${l.current.scrollHeight || 0}px` : "0px");
|
|
@@ -19306,7 +19309,7 @@ var Cf = A((e, t) => {
|
|
|
19306
19309
|
})
|
|
19307
19310
|
})]
|
|
19308
19311
|
});
|
|
19309
|
-
}),
|
|
19312
|
+
}), jf = (e) => {
|
|
19310
19313
|
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({
|
|
19311
19314
|
type: "warning",
|
|
19312
19315
|
content: l.formatMessage({ id: "playground.uploadfile.sizeError" }, { size: `${b(e.maxFileSize)}` })
|
|
@@ -19343,7 +19346,7 @@ var Cf = A((e, t) => {
|
|
|
19343
19346
|
})
|
|
19344
19347
|
}), n]
|
|
19345
19348
|
});
|
|
19346
|
-
},
|
|
19349
|
+
}, Mf = A((e, t) => {
|
|
19347
19350
|
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) => {
|
|
19348
19351
|
e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
19349
19352
|
noSemanticValidation: !1,
|
|
@@ -19398,4 +19401,4 @@ var Cf = A((e, t) => {
|
|
|
19398
19401
|
});
|
|
19399
19402
|
});
|
|
19400
19403
|
//#endregion
|
|
19401
|
-
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,
|
|
19404
|
+
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, Sd 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, xl as FilterBar, ts as FilterForm, yl as FiltersButton, ns as FormButtons, Bs as FormDrawer, Rs as GSDrawer, Ko as GaugeChart, ac as GrafanaIcon, qo as HBarChart, Ti as HeadlessCollapse, p as HighlightCode, Do as INPUT_WIDTH, Q as IconFont, _c as ImageEditor, Pc as InfiniteScroller, Lc as InfiniteScrollerProvider, ed as InfoColumn, Co as Input, vo as InputNumber, yo as InputSearch, zc as LabelCell, Za as LabelInfo, Gc as LabelSelector, Kc as LabelSelectorProvider, Yo as LineChart, Xc as ListInput, Lo as ListMap, nl as LogsViewer, il as MetadataList, Xo as MixLineBarChart, is as ModalFooter, ol as MoreButton, Zs as MultipleSelect, dl as NoResult, l as OverlayScroller, gl as PageBox, pl as PageBreadcrumb, hl as PageContainerInner, el as PageSize, bl as PageTools, bo as Password, Cl as Popover, wl as ProgressBar, Tl as RadioButtons, El as ResizeContainer, Sf as ResizePanel, md as RowChildren, tc as RowTextarea, Zo as ScatterChart, kl as ScrollSpyTabs, Pl as ScrollerModal, Ia as SegmentLine, Eo as Select, Vl as SelectPanel, Ul as Shortcut, On as SimpleAudio, bi as SimpleCard, Yu as SimpleOverlay, Xs as SimpleSelect, $u as SimpleTable, fi as SingleImage, ko as Slider, $s as SmallCloseButton, rd as SpeechContent, od as StatusTag, cd as SubDrawer, jo as Switch, ud as SwitchCard, ic as SwitchInput, Ad as Table, jd as TableProvider, Md as TableRowProvider, Nd as TagsWrapper, Vd as TemplateCard, Kd as TemplateCardList, Ud as TemplateCardSkeleton, Tf as TerminalTabs, So as Textarea, Fd as ThemeTag, ec as ThumbImage, Df as TooltipList, c as TooltipOverlayScroller, kf as Transfer, Af as TransitionWrapper, jf as UploadAudio, Mi as UploadImage, Mf as ViewerEditor, $d as XTerminal, Hi as config, oc as icons, Cc 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, Al as useFinishFailed, o as useIntl, d as useOverlayScroller, ua as useQueryData, ua as useRequest, la as useQueryDataList, da as useRequestToken, fa as useResponsive, jl as useScrollActiveChange, Ic as useScrollerContext, Sa as useTableFetch, ha as useTableMultiSort, pa as useTableRowSelection, ma as useTableSort, Od as useTableSorter, ga as useUpdateChunkedList, Ro as useValidateFields, _a as useWatchList, va as useWindowResize, S as utils };
|