@gpustack/core-ui 1.0.20 → 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/{editor-wrap-BGZYfHpj.js → editor-wrap-LcV3ZHZv.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +665 -683
- package/dist/src/lib/components/collapse-container/index.d.ts +1 -1
- package/dist/src/lib/components/index.d.ts +1 -0
- package/dist/src/lib/components/metadata-list/index.d.ts +2 -0
- package/dist/src/lib/components/switch-card/index.d.ts +18 -0
- package/dist/yaml-editor.es.js +9 -3
- package/package.json +1 -1
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 {
|
|
@@ -4329,30 +4332,25 @@ var ya = {}, ba = () => {
|
|
|
4329
4332
|
}
|
|
4330
4333
|
}
|
|
4331
4334
|
`, ho = Nt.Link, go = (e) => {
|
|
4332
|
-
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, trim: o = !0, onSelect: s, onBlur: c, checkStatus: l, extra: u, style: d, addAfter: f, suffixIcon: p, loading: m, allowClear: h, clearSpaceOnBlur: g, showSearch: _, ...v } = e, [y, b] = B(!1), x = z(null), S = "";
|
|
4333
|
-
|
|
4334
|
-
a && (S = q?.Item?.useStatus?.()?.status || "");
|
|
4335
|
-
} catch {
|
|
4336
|
-
S = "";
|
|
4337
|
-
}
|
|
4338
|
-
F(() => {
|
|
4335
|
+
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, trim: o = !0, onSelect: s, onBlur: c, checkStatus: l, extra: u, style: d, addAfter: f, suffixIcon: p, loading: m, allowClear: h, clearSpaceOnBlur: g, showSearch: _, ...v } = e, [y, b] = B(!1), x = z(null), S = "", C = q?.Item?.useStatus?.();
|
|
4336
|
+
S = e.status || (a ? C?.status : "") || "", F(() => {
|
|
4339
4337
|
e.value && b(!0);
|
|
4340
4338
|
}, [e.value]);
|
|
4341
|
-
let
|
|
4339
|
+
let w = () => {
|
|
4342
4340
|
!e.disabled && !y && (x.current?.focus?.(), b(!0));
|
|
4343
|
-
},
|
|
4341
|
+
}, T = (t, n) => {
|
|
4344
4342
|
console.log("handleChange val:", t);
|
|
4345
4343
|
let r = t;
|
|
4346
4344
|
o && (r = r?.trim?.()), e.onChange?.(r, n);
|
|
4347
|
-
}, T = (t) => {
|
|
4348
|
-
b(!0), e.onFocus?.(t);
|
|
4349
4345
|
}, E = (t) => {
|
|
4346
|
+
b(!0), e.onFocus?.(t);
|
|
4347
|
+
}, D = (t) => {
|
|
4350
4348
|
e.value || b(!1), g ? (t.target.value = t.target.value?.replace(/\s+/g, ""), e.onChange?.(t.target.value)) : t.target.value = t.target.value?.trim(), e.onBlur?.(t);
|
|
4351
|
-
},
|
|
4349
|
+
}, O = (e, t) => {
|
|
4352
4350
|
s?.(e, t);
|
|
4353
|
-
},
|
|
4351
|
+
}, k = (t) => {
|
|
4354
4352
|
o && (t.target.value = t.target.value?.trim()), e.onInput?.(t);
|
|
4355
|
-
},
|
|
4353
|
+
}, A = () => m ? /* @__PURE__ */ H(ho, { children: /* @__PURE__ */ H(Oe, {}) }) : p || null, j = (e) => m ? /* @__PURE__ */ H(ro, {}) : e || null;
|
|
4356
4354
|
return /* @__PURE__ */ H(mo, {
|
|
4357
4355
|
style: d,
|
|
4358
4356
|
children: /* @__PURE__ */ H(po, {
|
|
@@ -4364,7 +4362,7 @@ var ya = {}, ba = () => {
|
|
|
4364
4362
|
required: r,
|
|
4365
4363
|
description: i,
|
|
4366
4364
|
disabled: e.disabled,
|
|
4367
|
-
onClick:
|
|
4365
|
+
onClick: w,
|
|
4368
4366
|
children: /* @__PURE__ */ H(rt, {
|
|
4369
4367
|
...v,
|
|
4370
4368
|
ref: x,
|
|
@@ -4373,15 +4371,15 @@ var ya = {}, ba = () => {
|
|
|
4373
4371
|
children: n
|
|
4374
4372
|
}) : "",
|
|
4375
4373
|
allowClear: !m && h,
|
|
4376
|
-
suffixIcon:
|
|
4374
|
+
suffixIcon: A(),
|
|
4377
4375
|
status: l || S,
|
|
4378
|
-
onSelect:
|
|
4379
|
-
onFocus:
|
|
4380
|
-
onBlur:
|
|
4376
|
+
onSelect: O,
|
|
4377
|
+
onFocus: E,
|
|
4378
|
+
onBlur: D,
|
|
4381
4379
|
showSearch: _,
|
|
4382
|
-
onChange:
|
|
4383
|
-
popupRender:
|
|
4384
|
-
onInput:
|
|
4380
|
+
onChange: T,
|
|
4381
|
+
popupRender: j,
|
|
4382
|
+
onInput: k,
|
|
4385
4383
|
onPaste: e.onPaste
|
|
4386
4384
|
})
|
|
4387
4385
|
})
|
|
@@ -4574,27 +4572,19 @@ var ya = {}, ba = () => {
|
|
|
4574
4572
|
font-size: var(--ant-font-size);
|
|
4575
4573
|
}
|
|
4576
4574
|
`, vo = (e) => {
|
|
4577
|
-
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4578
|
-
|
|
4579
|
-
if (a) {
|
|
4580
|
-
let t = q?.Item?.useStatus?.();
|
|
4581
|
-
u = e.status || t?.status || "";
|
|
4582
|
-
} else u = e.status || "";
|
|
4583
|
-
} catch {
|
|
4584
|
-
u = e.status || "";
|
|
4585
|
-
}
|
|
4586
|
-
F(() => {
|
|
4575
|
+
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "", d = q?.Item?.useStatus?.();
|
|
4576
|
+
u = e.status || (a ? d?.status : "") || "", F(() => {
|
|
4587
4577
|
v(e.value) && c(!0);
|
|
4588
4578
|
}, [e.value]);
|
|
4589
|
-
let
|
|
4579
|
+
let f = () => {
|
|
4590
4580
|
!e.disabled && !s && (l.current?.focus?.({ cursor: "end" }), c(!0));
|
|
4591
|
-
}, f = (t) => {
|
|
4592
|
-
e.onChange?.(t);
|
|
4593
4581
|
}, p = (t) => {
|
|
4594
|
-
|
|
4582
|
+
e.onChange?.(t);
|
|
4595
4583
|
}, m = (t) => {
|
|
4596
|
-
|
|
4584
|
+
c(!0), e.onFocus?.(t);
|
|
4597
4585
|
}, h = (t) => {
|
|
4586
|
+
l.current?.value || (c(!1), e.onBlur?.(t));
|
|
4587
|
+
}, g = (t) => {
|
|
4598
4588
|
e.onInput?.(t);
|
|
4599
4589
|
};
|
|
4600
4590
|
return /* @__PURE__ */ H(_o, { children: /* @__PURE__ */ H(po, {
|
|
@@ -4604,38 +4594,33 @@ var ya = {}, ba = () => {
|
|
|
4604
4594
|
required: r,
|
|
4605
4595
|
description: i,
|
|
4606
4596
|
disabled: e.disabled,
|
|
4607
|
-
onClick:
|
|
4597
|
+
onClick: f,
|
|
4608
4598
|
className: "seal-input-number",
|
|
4609
4599
|
children: /* @__PURE__ */ H(gt, {
|
|
4610
4600
|
...o,
|
|
4611
4601
|
placeholder: n,
|
|
4612
4602
|
ref: l,
|
|
4613
4603
|
autoComplete: "off",
|
|
4614
|
-
onFocus:
|
|
4615
|
-
onBlur:
|
|
4616
|
-
onInput:
|
|
4617
|
-
onChange:
|
|
4604
|
+
onFocus: m,
|
|
4605
|
+
onBlur: h,
|
|
4606
|
+
onInput: g,
|
|
4607
|
+
onChange: p
|
|
4618
4608
|
})
|
|
4619
4609
|
}) });
|
|
4620
4610
|
}, yo = (e) => {
|
|
4621
|
-
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4622
|
-
|
|
4623
|
-
a && (u = q?.Item?.useStatus?.()?.status || "");
|
|
4624
|
-
} catch {
|
|
4625
|
-
u = "";
|
|
4626
|
-
}
|
|
4627
|
-
F(() => {
|
|
4611
|
+
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "", d = q?.Item?.useStatus?.();
|
|
4612
|
+
u = e.status || (a ? d?.status : "") || "", F(() => {
|
|
4628
4613
|
e.value && c(!0);
|
|
4629
4614
|
}, [e.value]);
|
|
4630
|
-
let
|
|
4615
|
+
let f = () => {
|
|
4631
4616
|
!e.disabled && !s && (l.current?.focus?.(), c(!0));
|
|
4632
|
-
}, f = (t) => {
|
|
4633
|
-
e.onChange?.(t);
|
|
4634
4617
|
}, p = (t) => {
|
|
4635
|
-
|
|
4618
|
+
e.onChange?.(t);
|
|
4636
4619
|
}, m = (t) => {
|
|
4620
|
+
c(!0), e.onFocus?.(t);
|
|
4621
|
+
}, h = (t) => {
|
|
4637
4622
|
l.current?.input?.value || (c(!1), e.onBlur?.(t));
|
|
4638
|
-
},
|
|
4623
|
+
}, g = (...t) => {
|
|
4639
4624
|
e.onSearch?.(...t);
|
|
4640
4625
|
};
|
|
4641
4626
|
return /* @__PURE__ */ H(_o, { children: /* @__PURE__ */ H(po, {
|
|
@@ -4645,34 +4630,29 @@ var ya = {}, ba = () => {
|
|
|
4645
4630
|
required: r,
|
|
4646
4631
|
description: i,
|
|
4647
4632
|
disabled: e.disabled,
|
|
4648
|
-
onClick:
|
|
4633
|
+
onClick: f,
|
|
4649
4634
|
children: /* @__PURE__ */ H(ht.Search, {
|
|
4650
4635
|
...o,
|
|
4651
4636
|
ref: l,
|
|
4652
4637
|
autoComplete: "off",
|
|
4653
|
-
onFocus:
|
|
4654
|
-
onBlur:
|
|
4655
|
-
onSearch:
|
|
4656
|
-
onChange:
|
|
4638
|
+
onFocus: m,
|
|
4639
|
+
onBlur: h,
|
|
4640
|
+
onSearch: g,
|
|
4641
|
+
onChange: p
|
|
4657
4642
|
})
|
|
4658
4643
|
}) });
|
|
4659
4644
|
}, bo = (e) => {
|
|
4660
|
-
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4661
|
-
|
|
4662
|
-
a && (u = q?.Item?.useStatus?.()?.status || "");
|
|
4663
|
-
} catch {
|
|
4664
|
-
u = "";
|
|
4665
|
-
}
|
|
4666
|
-
F(() => {
|
|
4645
|
+
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "", d = q?.Item?.useStatus?.();
|
|
4646
|
+
u = e.status || (a ? d?.status : "") || "", F(() => {
|
|
4667
4647
|
e.value && c(!0);
|
|
4668
4648
|
}, [e.value]);
|
|
4669
|
-
let
|
|
4649
|
+
let f = () => {
|
|
4670
4650
|
!e.disabled && !s && (l.current?.focus?.({ cursor: "all" }), c(!0));
|
|
4671
|
-
}, f = (t) => {
|
|
4672
|
-
t.target.value = t.target.value?.trim?.(), e.onChange?.(t);
|
|
4673
4651
|
}, p = (t) => {
|
|
4674
|
-
|
|
4652
|
+
t.target.value = t.target.value?.trim?.(), e.onChange?.(t);
|
|
4675
4653
|
}, m = (t) => {
|
|
4654
|
+
c(!0), e.onFocus?.(t);
|
|
4655
|
+
}, h = (t) => {
|
|
4676
4656
|
t.target.value = t.target.value?.trim?.(), l.current?.input?.value || c(!1), e.onBlur?.(t);
|
|
4677
4657
|
};
|
|
4678
4658
|
return /* @__PURE__ */ H(_o, { children: /* @__PURE__ */ H(po, {
|
|
@@ -4684,15 +4664,15 @@ var ya = {}, ba = () => {
|
|
|
4684
4664
|
disabled: e.disabled,
|
|
4685
4665
|
labelExtra: e.labelExtra,
|
|
4686
4666
|
hasPrefix: !!e.prefix,
|
|
4687
|
-
onClick:
|
|
4667
|
+
onClick: f,
|
|
4688
4668
|
children: /* @__PURE__ */ H(ht.Password, {
|
|
4689
4669
|
...o,
|
|
4690
4670
|
autoComplete: o.autoComplete || "new-password",
|
|
4691
4671
|
ref: l,
|
|
4692
4672
|
className: "seal-input-password",
|
|
4693
|
-
onFocus:
|
|
4694
|
-
onBlur:
|
|
4695
|
-
onChange:
|
|
4673
|
+
onFocus: m,
|
|
4674
|
+
onBlur: h,
|
|
4675
|
+
onChange: p
|
|
4696
4676
|
})
|
|
4697
4677
|
}) });
|
|
4698
4678
|
}, xo = Y.div.attrs({ className: "seal-textarea-label" })`
|
|
@@ -4702,16 +4682,11 @@ var ya = {}, ba = () => {
|
|
|
4702
4682
|
padding-bottom: 2px;
|
|
4703
4683
|
background-color: var(--ant-color-bg-container);
|
|
4704
4684
|
`, So = (e) => {
|
|
4705
|
-
let { label: t, placeholder: n, onChange: r, onFocus: i, onBlur: a, onInput: o, style: s, required: c, isInFormItems: l = !0, description: u, variant: d, extra: f, addAfter: p, trim: m, scaleSize: h, alwaysFocus: g, ..._ } = e, [v, y] = B(!1), b = z(null), x = "";
|
|
4706
|
-
|
|
4707
|
-
l && (x = q?.Item?.useStatus?.()?.status || "");
|
|
4708
|
-
} catch {
|
|
4709
|
-
x = "";
|
|
4710
|
-
}
|
|
4711
|
-
F(() => {
|
|
4685
|
+
let { label: t, placeholder: n, onChange: r, onFocus: i, onBlur: a, onInput: o, style: s, required: c, isInFormItems: l = !0, description: u, variant: d, extra: f, addAfter: p, trim: m, scaleSize: h, alwaysFocus: g, ..._ } = e, [v, y] = B(!1), b = z(null), x = "", S = q?.Item?.useStatus?.();
|
|
4686
|
+
x = e.status || (l ? S?.status : "") || "", F(() => {
|
|
4712
4687
|
e.value && y(!0);
|
|
4713
4688
|
}, [e.value]);
|
|
4714
|
-
let
|
|
4689
|
+
let C = R(() => {
|
|
4715
4690
|
let t = e.autoSize || {
|
|
4716
4691
|
minRows: 2,
|
|
4717
4692
|
maxRows: 5
|
|
@@ -4724,15 +4699,15 @@ var ya = {}, ba = () => {
|
|
|
4724
4699
|
e.autoSize,
|
|
4725
4700
|
v,
|
|
4726
4701
|
h
|
|
4727
|
-
]),
|
|
4702
|
+
]), w = () => {
|
|
4728
4703
|
!e.disabled && !v && (b.current?.focus?.({ cursor: "all" }), y(!0));
|
|
4729
|
-
}, w = (e) => {
|
|
4730
|
-
r?.(e);
|
|
4731
4704
|
}, T = (e) => {
|
|
4732
|
-
|
|
4705
|
+
r?.(e);
|
|
4733
4706
|
}, E = (e) => {
|
|
4734
|
-
|
|
4707
|
+
y(!0), i?.(e);
|
|
4735
4708
|
}, D = (e) => {
|
|
4709
|
+
b.current?.resizableTextArea?.textArea?.value || y(!1), a?.(e);
|
|
4710
|
+
}, O = (e) => {
|
|
4736
4711
|
o?.(e);
|
|
4737
4712
|
};
|
|
4738
4713
|
return /* @__PURE__ */ H(_o, {
|
|
@@ -4747,46 +4722,38 @@ var ya = {}, ba = () => {
|
|
|
4747
4722
|
extra: f,
|
|
4748
4723
|
disabled: e.disabled,
|
|
4749
4724
|
addAfter: p,
|
|
4750
|
-
onClick:
|
|
4725
|
+
onClick: w,
|
|
4751
4726
|
children: /* @__PURE__ */ H(ht.TextArea, {
|
|
4752
4727
|
..._,
|
|
4753
4728
|
placeholder: n,
|
|
4754
4729
|
spellCheck: _.spellCheck ?? !1,
|
|
4755
|
-
autoSize:
|
|
4730
|
+
autoSize: C,
|
|
4756
4731
|
ref: b,
|
|
4757
4732
|
style: { ...s },
|
|
4758
4733
|
className: "seal-textarea",
|
|
4759
|
-
onFocus:
|
|
4760
|
-
onBlur:
|
|
4761
|
-
onInput:
|
|
4762
|
-
onChange: (e) =>
|
|
4734
|
+
onFocus: E,
|
|
4735
|
+
onBlur: D,
|
|
4736
|
+
onInput: O,
|
|
4737
|
+
onChange: (e) => T(e)
|
|
4763
4738
|
})
|
|
4764
4739
|
})
|
|
4765
4740
|
});
|
|
4766
4741
|
}, Co = {
|
|
4767
4742
|
TextArea: So,
|
|
4768
4743
|
Input: (e) => {
|
|
4769
|
-
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, variant: o, addAfter: s, checkStatus: c, trim: l = !0, loading: u, labelExtra: d, style: f, ...p } = e, [m, h] = B(!1), g = z(null), _ = "";
|
|
4770
|
-
|
|
4771
|
-
if (a) {
|
|
4772
|
-
let t = q?.Item?.useStatus?.();
|
|
4773
|
-
_ = e.status || t?.status || "";
|
|
4774
|
-
} else _ = e.status || "";
|
|
4775
|
-
} catch {
|
|
4776
|
-
_ = e.status || "";
|
|
4777
|
-
}
|
|
4778
|
-
F(() => {
|
|
4744
|
+
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, variant: o, addAfter: s, checkStatus: c, trim: l = !0, loading: u, labelExtra: d, style: f, ...p } = e, [m, h] = B(!1), g = z(null), _ = "", v = q?.Item?.useStatus?.();
|
|
4745
|
+
_ = e.status || (a ? v?.status : "") || "", F(() => {
|
|
4779
4746
|
e.value && h(!0);
|
|
4780
4747
|
}, [e.value]);
|
|
4781
|
-
let
|
|
4748
|
+
let y = () => {
|
|
4782
4749
|
!e.disabled && !m && (g.current?.focus?.({ cursor: "end" }), h(!0));
|
|
4783
|
-
}, y = (t) => {
|
|
4784
|
-
l && (t.target.value = t.target.value?.trim?.()), e.onChange?.(t);
|
|
4785
4750
|
}, b = (t) => {
|
|
4786
|
-
|
|
4751
|
+
l && (t.target.value = t.target.value?.trim?.()), e.onChange?.(t);
|
|
4787
4752
|
}, x = (t) => {
|
|
4788
|
-
|
|
4753
|
+
h(!0), e.onFocus?.(t);
|
|
4789
4754
|
}, S = (t) => {
|
|
4755
|
+
g.current?.input?.value || h(!1), l || (t.target.value = t.target.value?.trim?.(), e.onChange?.(t)), e.onBlur?.(t);
|
|
4756
|
+
}, C = (t) => {
|
|
4790
4757
|
e.onInput?.(t);
|
|
4791
4758
|
};
|
|
4792
4759
|
return /* @__PURE__ */ H(_o, {
|
|
@@ -4801,16 +4768,16 @@ var ya = {}, ba = () => {
|
|
|
4801
4768
|
disabled: e.disabled,
|
|
4802
4769
|
addAfter: s,
|
|
4803
4770
|
hasPrefix: !!e.prefix,
|
|
4804
|
-
onClick:
|
|
4771
|
+
onClick: y,
|
|
4805
4772
|
children: /* @__PURE__ */ H(ht, {
|
|
4806
4773
|
...p,
|
|
4807
4774
|
autoComplete: p.autoComplete || "off",
|
|
4808
4775
|
placeholder: m || !t ? n : "",
|
|
4809
4776
|
ref: g,
|
|
4810
|
-
onInput:
|
|
4811
|
-
onFocus:
|
|
4812
|
-
onBlur:
|
|
4813
|
-
onChange:
|
|
4777
|
+
onInput: C,
|
|
4778
|
+
onFocus: x,
|
|
4779
|
+
onBlur: S,
|
|
4780
|
+
onChange: b
|
|
4814
4781
|
})
|
|
4815
4782
|
})
|
|
4816
4783
|
});
|
|
@@ -4843,23 +4810,19 @@ var ya = {}, ba = () => {
|
|
|
4843
4810
|
})] }) : void 0
|
|
4844
4811
|
});
|
|
4845
4812
|
}), Eo = (e) => {
|
|
4846
|
-
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, notFoundContent: u = null, loading: d, footer: f, alwaysFocus: p = !1, styles: m, ...h } = e, g = o(), [_, y] = B(!1), b = z(null), x = "";
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
} catch {
|
|
4850
|
-
x = e.status || "";
|
|
4851
|
-
}
|
|
4852
|
-
let S = R(() => s?.length ? (0, Z.cloneDeep)(s).map((e) => (e.locale && (e.label = g.formatMessage({ id: e.label })), e)) : [], [s, g]);
|
|
4813
|
+
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, notFoundContent: u = null, loading: d, footer: f, alwaysFocus: p = !1, styles: m, ...h } = e, g = o(), [_, y] = B(!1), b = z(null), x = "", S = q?.Item?.useStatus?.();
|
|
4814
|
+
x = e.status || (l ? S?.status : "") || "";
|
|
4815
|
+
let C = R(() => s?.length ? (0, Z.cloneDeep)(s).map((e) => (e.locale && (e.label = g.formatMessage({ id: e.label })), e)) : [], [s, g]);
|
|
4853
4816
|
F(() => {
|
|
4854
4817
|
(v(e.value) || c && (e.value === null || e.value === void 0)) && y(!0);
|
|
4855
4818
|
}, [e.value, c]);
|
|
4856
|
-
let
|
|
4819
|
+
let w = () => {
|
|
4857
4820
|
!e.disabled && !_ && (b.current?.focus?.(), y(!0));
|
|
4858
|
-
},
|
|
4821
|
+
}, T = (t, n) => {
|
|
4859
4822
|
v(t) || c && t === null ? y(!0) : y(!1), e.onChange?.(t || null, n);
|
|
4860
|
-
}, T = (t) => {
|
|
4861
|
-
y(!0), e.onFocus?.(t);
|
|
4862
4823
|
}, E = (t) => {
|
|
4824
|
+
y(!0), e.onFocus?.(t);
|
|
4825
|
+
}, D = (t) => {
|
|
4863
4826
|
c && e.value === null ? y(!0) : e.value || y(!1), e.onBlur?.(t);
|
|
4864
4827
|
};
|
|
4865
4828
|
return /* @__PURE__ */ H(mo, { children: /* @__PURE__ */ H(po, {
|
|
@@ -4870,17 +4833,17 @@ var ya = {}, ba = () => {
|
|
|
4870
4833
|
required: i,
|
|
4871
4834
|
description: a,
|
|
4872
4835
|
disabled: e.disabled,
|
|
4873
|
-
onClick:
|
|
4836
|
+
onClick: w,
|
|
4874
4837
|
children: /* @__PURE__ */ H(To, {
|
|
4875
4838
|
...h,
|
|
4876
4839
|
styles: m,
|
|
4877
4840
|
placeholder: n,
|
|
4878
4841
|
footer: f,
|
|
4879
4842
|
ref: b,
|
|
4880
|
-
options: r ? void 0 :
|
|
4881
|
-
onFocus:
|
|
4882
|
-
onBlur:
|
|
4883
|
-
onChange:
|
|
4843
|
+
options: r ? void 0 : C,
|
|
4844
|
+
onFocus: E,
|
|
4845
|
+
onBlur: D,
|
|
4846
|
+
onChange: T,
|
|
4884
4847
|
notFoundContent: /* @__PURE__ */ H(io, {
|
|
4885
4848
|
loading: d,
|
|
4886
4849
|
notFoundContent: u
|
|
@@ -4945,13 +4908,9 @@ var ya = {}, ba = () => {
|
|
|
4945
4908
|
}
|
|
4946
4909
|
}
|
|
4947
4910
|
`, ko = (e) => {
|
|
4948
|
-
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, max: o, min: s, step: c, defaultValue: l, checkStatus: u, inputnumber: d = !1, labelWidth: f, tooltip: p = { open: !1 }, ...m } = e, h = "";
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
} catch {
|
|
4952
|
-
h = "";
|
|
4953
|
-
}
|
|
4954
|
-
let g = (t) => {
|
|
4911
|
+
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, max: o, min: s, step: c, defaultValue: l, checkStatus: u, inputnumber: d = !1, labelWidth: f, tooltip: p = { open: !1 }, ...m } = e, h = "", g = q?.Item?.useStatus?.();
|
|
4912
|
+
h = (a ? g?.status : "") || "";
|
|
4913
|
+
let _ = (t) => {
|
|
4955
4914
|
e.onChange?.(t);
|
|
4956
4915
|
};
|
|
4957
4916
|
return /* @__PURE__ */ H(Oo, {
|
|
@@ -5001,7 +4960,7 @@ var ya = {}, ba = () => {
|
|
|
5001
4960
|
track: { borderRadius: 3 },
|
|
5002
4961
|
tracks: { borderRadius: 3 }
|
|
5003
4962
|
},
|
|
5004
|
-
onChange:
|
|
4963
|
+
onChange: _
|
|
5005
4964
|
})
|
|
5006
4965
|
})
|
|
5007
4966
|
});
|
|
@@ -5015,13 +4974,9 @@ var ya = {}, ba = () => {
|
|
|
5015
4974
|
margin-top: 0 !important;
|
|
5016
4975
|
}
|
|
5017
4976
|
`, jo = (e) => {
|
|
5018
|
-
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, defaultValue: o, checkStatus: s, labelWidth: c, size: l = "small", ...u } = e, d = "";
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
} catch {
|
|
5022
|
-
d = "";
|
|
5023
|
-
}
|
|
5024
|
-
let f = (t, n) => {
|
|
4977
|
+
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, defaultValue: o, checkStatus: s, labelWidth: c, size: l = "small", ...u } = e, d = "", f = q?.Item?.useStatus?.();
|
|
4978
|
+
d = (a ? f?.status : "") || "";
|
|
4979
|
+
let p = (t, n) => {
|
|
5025
4980
|
e.onChange?.(t, n);
|
|
5026
4981
|
};
|
|
5027
4982
|
return /* @__PURE__ */ H(po, {
|
|
@@ -5042,7 +4997,7 @@ var ya = {}, ba = () => {
|
|
|
5042
4997
|
marginInline: 0
|
|
5043
4998
|
},
|
|
5044
4999
|
value: n,
|
|
5045
|
-
onChange:
|
|
5000
|
+
onChange: p
|
|
5046
5001
|
})] })
|
|
5047
5002
|
});
|
|
5048
5003
|
}, Mo = {
|
|
@@ -6571,41 +6526,34 @@ var Rs = (e) => {
|
|
|
6571
6526
|
children: /* @__PURE__ */ H("span", { children: n.label })
|
|
6572
6527
|
});
|
|
6573
6528
|
}, Hs = (e) => {
|
|
6574
|
-
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, alwaysFocus: u = !1, optionNode: d, notFoundContent: p, size: m = "middle", tagRender: h, displayRender: g, ..._ } = e, y = o(), [b, x] = B(!1), S = z(null), [C, w] = B(!1), T = "";
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
let t = q?.Item?.useStatus?.();
|
|
6578
|
-
T = e.status || t?.status || "";
|
|
6579
|
-
} else T = e.status || "";
|
|
6580
|
-
} catch {
|
|
6581
|
-
T = e.status || "";
|
|
6582
|
-
}
|
|
6583
|
-
let E = R(() => s?.length ? (0, Z.cloneDeep)(s).map((e) => (e.locale && (e.label = y.formatMessage({ id: e.label })), e)) : [], [s, y]);
|
|
6529
|
+
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, alwaysFocus: u = !1, optionNode: d, notFoundContent: p, size: m = "middle", tagRender: h, displayRender: g, ..._ } = e, y = o(), [b, x] = B(!1), S = z(null), [C, w] = B(!1), T = "", E = q?.Item?.useStatus?.();
|
|
6530
|
+
T = e.status || (l ? E?.status : "") || "";
|
|
6531
|
+
let D = R(() => s?.length ? (0, Z.cloneDeep)(s).map((e) => (e.locale && (e.label = y.formatMessage({ id: e.label })), e)) : [], [s, y]);
|
|
6584
6532
|
F(() => {
|
|
6585
6533
|
(v(e.value) || c && e.value === null) && x(!0);
|
|
6586
6534
|
}, [e.value, c]);
|
|
6587
|
-
let
|
|
6535
|
+
let O = () => {
|
|
6588
6536
|
!e.disabled && !b && (S.current?.focus?.(), x(!0));
|
|
6589
|
-
},
|
|
6537
|
+
}, k = (t, n) => {
|
|
6590
6538
|
v(t) || c && t === null ? x(!0) : x(!1), e.onChange?.(t, n);
|
|
6591
|
-
}, k = (t) => {
|
|
6592
|
-
x(!0), e.onFocus?.(t);
|
|
6593
6539
|
}, A = (t) => {
|
|
6540
|
+
x(!0), e.onFocus?.(t);
|
|
6541
|
+
}, j = (t) => {
|
|
6594
6542
|
let n = !e.value || e.value.length === 0;
|
|
6595
6543
|
c && n ? x(!0) : n && x(!1), e.onBlur?.(t);
|
|
6596
|
-
},
|
|
6544
|
+
}, M = (t) => {
|
|
6597
6545
|
w(t), e.onOpenChange?.(t);
|
|
6598
|
-
},
|
|
6546
|
+
}, N = (e) => {
|
|
6599
6547
|
if (e.isMaxTag) return e.label?.slice(0, -3);
|
|
6600
6548
|
let t = Z.default.split(e.value, "__RC_CASCADER_SPLIT__")?.[0];
|
|
6601
6549
|
return g ? e.label : `${t} / ${e?.label}`;
|
|
6602
|
-
},
|
|
6550
|
+
}, P = (e) => /* @__PURE__ */ H(f, {
|
|
6603
6551
|
closable: e.closable,
|
|
6604
6552
|
onClose: e.onClose,
|
|
6605
6553
|
maxWidth: 240,
|
|
6606
6554
|
style: { marginRight: 4 },
|
|
6607
6555
|
filled: !0,
|
|
6608
|
-
children:
|
|
6556
|
+
children: N(e)
|
|
6609
6557
|
});
|
|
6610
6558
|
return /* @__PURE__ */ H(mo, { children: /* @__PURE__ */ H(po, {
|
|
6611
6559
|
className: (0, X.default)("seal-select-wrapper", { "seal-cascader-wrapper-small": m === "small" }),
|
|
@@ -6616,7 +6564,7 @@ var Rs = (e) => {
|
|
|
6616
6564
|
required: i,
|
|
6617
6565
|
description: a,
|
|
6618
6566
|
disabled: e.disabled,
|
|
6619
|
-
onClick:
|
|
6567
|
+
onClick: O,
|
|
6620
6568
|
children: /* @__PURE__ */ H(ot, {
|
|
6621
6569
|
..._,
|
|
6622
6570
|
placeholder: n,
|
|
@@ -6627,15 +6575,15 @@ var Rs = (e) => {
|
|
|
6627
6575
|
notFoundContent: p,
|
|
6628
6576
|
optionNode: d
|
|
6629
6577
|
}),
|
|
6630
|
-
tagRender: h ||
|
|
6578
|
+
tagRender: h || P,
|
|
6631
6579
|
displayRender: g,
|
|
6632
6580
|
ref: S,
|
|
6633
|
-
options: r ? null :
|
|
6634
|
-
onFocus:
|
|
6635
|
-
onBlur:
|
|
6636
|
-
onChange:
|
|
6581
|
+
options: r ? null : D,
|
|
6582
|
+
onFocus: A,
|
|
6583
|
+
onBlur: j,
|
|
6584
|
+
onChange: k,
|
|
6637
6585
|
notFoundContent: null,
|
|
6638
|
-
onOpenChange:
|
|
6586
|
+
onOpenChange: M
|
|
6639
6587
|
})
|
|
6640
6588
|
}) });
|
|
6641
6589
|
}, Us = Y.div`
|
|
@@ -6649,22 +6597,18 @@ var Rs = (e) => {
|
|
|
6649
6597
|
margin-top: 0 !important;
|
|
6650
6598
|
}
|
|
6651
6599
|
`, Ws = (e) => {
|
|
6652
|
-
let { label: t, checked: n, required: r, description: i, isInFormItems: a = !0, defaultChecked: o, checkStatus: s, ...c } = e, l = "";
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
} catch {
|
|
6656
|
-
l = "";
|
|
6657
|
-
}
|
|
6658
|
-
let u = (t) => {
|
|
6600
|
+
let { label: t, checked: n, required: r, description: i, isInFormItems: a = !0, defaultChecked: o, checkStatus: s, ...c } = e, l = "", u = q?.Item?.useStatus?.();
|
|
6601
|
+
l = e.checkStatus || (a ? u?.status : "") || "";
|
|
6602
|
+
let d = (t) => {
|
|
6659
6603
|
e.onChange?.(t);
|
|
6660
6604
|
};
|
|
6661
6605
|
return /* @__PURE__ */ H(po, {
|
|
6662
6606
|
required: r,
|
|
6663
|
-
status:
|
|
6607
|
+
status: l,
|
|
6664
6608
|
className: "no-focus",
|
|
6665
6609
|
children: /* @__PURE__ */ U(Us, {
|
|
6666
6610
|
onClick: () => {
|
|
6667
|
-
|
|
6611
|
+
d({ target: { checked: !n } });
|
|
6668
6612
|
},
|
|
6669
6613
|
children: [/* @__PURE__ */ H(Za, {
|
|
6670
6614
|
label: t,
|
|
@@ -6678,7 +6622,7 @@ var Rs = (e) => {
|
|
|
6678
6622
|
marginInline: 0
|
|
6679
6623
|
},
|
|
6680
6624
|
checked: n,
|
|
6681
|
-
onChange:
|
|
6625
|
+
onChange: d
|
|
6682
6626
|
})]
|
|
6683
6627
|
})
|
|
6684
6628
|
});
|
|
@@ -6743,23 +6687,21 @@ var Rs = (e) => {
|
|
|
6743
6687
|
.ant-checkbox-wrapper {
|
|
6744
6688
|
color: var(--ant-color-text-tertiary);
|
|
6745
6689
|
}
|
|
6746
|
-
`, Xs =
|
|
6747
|
-
border-radius: 12px;
|
|
6748
|
-
`, Zs = A((e, t) => {
|
|
6690
|
+
`, Xs = A((e, t) => {
|
|
6749
6691
|
let n = o(), { options: r = [], showTags: i, styles: a = {}, optionLabelRender: s, maxTagCount: c, ...l } = e, [u, d] = E.useState({
|
|
6750
6692
|
checked: !1,
|
|
6751
6693
|
indeterminate: !1
|
|
6752
|
-
}), [p, m] = E.useState(r || []), h = E.useRef(null), g = E.useRef(null)
|
|
6753
|
-
F(() => {
|
|
6694
|
+
}), [p, m] = E.useState(r || []), h = E.useRef(null), g = E.useRef(null);
|
|
6695
|
+
Array.isArray(e.value) && e.value.length, F(() => {
|
|
6754
6696
|
m(r || []);
|
|
6755
6697
|
}, [r]);
|
|
6756
|
-
let
|
|
6698
|
+
let _ = (e, t) => {
|
|
6757
6699
|
let { value: n, label: r } = e;
|
|
6758
6700
|
return /* @__PURE__ */ U(qs, { children: [l.value?.includes?.(n) ? /* @__PURE__ */ H(K, { checked: !0 }) : /* @__PURE__ */ H(K, {}), /* @__PURE__ */ H(f, {
|
|
6759
6701
|
ghost: !0,
|
|
6760
6702
|
children: s ? s(e) : r
|
|
6761
6703
|
})] });
|
|
6762
|
-
},
|
|
6704
|
+
}, v = (e) => {
|
|
6763
6705
|
let t = e.target.checked, n = p?.map((e) => e.value) || [];
|
|
6764
6706
|
d({
|
|
6765
6707
|
checked: t,
|
|
@@ -6767,18 +6709,18 @@ var Rs = (e) => {
|
|
|
6767
6709
|
});
|
|
6768
6710
|
let r = [...l.value || []];
|
|
6769
6711
|
r = t ? Array.from(new Set([...r, ...n])) : r.filter((e) => !n.includes(e)), l.onChange?.(r, p || []);
|
|
6770
|
-
},
|
|
6712
|
+
}, y = (e) => /* @__PURE__ */ U(Js, { children: [l.mode === "multiple" && /* @__PURE__ */ H(Ys, { children: /* @__PURE__ */ H(K, {
|
|
6771
6713
|
checked: u.checked,
|
|
6772
6714
|
indeterminate: u.indeterminate,
|
|
6773
|
-
onChange:
|
|
6715
|
+
onChange: v,
|
|
6774
6716
|
children: n.formatMessage({ id: "common.checkbox.all" })
|
|
6775
|
-
}) }), e] }),
|
|
6717
|
+
}) }), e] }), b = (e, t) => {
|
|
6776
6718
|
let n = Array.isArray(e) ? e : [e], r = p?.map((e) => e.value) || [], i = n.length === r?.length;
|
|
6777
6719
|
d({
|
|
6778
6720
|
checked: i,
|
|
6779
6721
|
indeterminate: !i && n.length > 0
|
|
6780
6722
|
}), l.onChange?.(n, t);
|
|
6781
|
-
},
|
|
6723
|
+
}, x = (e, t) => !t || !t.label ? !1 : t.label.toLowerCase().includes(e.toLowerCase()), S = (e) => {
|
|
6782
6724
|
if (!l.value || !Array.isArray(l.value) || e.length === 0) {
|
|
6783
6725
|
d({
|
|
6784
6726
|
checked: !1,
|
|
@@ -6791,32 +6733,34 @@ var Rs = (e) => {
|
|
|
6791
6733
|
checked: r,
|
|
6792
6734
|
indeterminate: n.some((e) => t.has(e)) && !r
|
|
6793
6735
|
});
|
|
6794
|
-
},
|
|
6795
|
-
let { label: t } = e,
|
|
6796
|
-
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, {
|
|
6797
6739
|
variant: "filled",
|
|
6798
6740
|
closable: e.closable,
|
|
6799
6741
|
onClose: e.onClose,
|
|
6800
6742
|
style: {
|
|
6801
6743
|
height: 22,
|
|
6744
|
+
marginRight: 4,
|
|
6745
|
+
borderRadius: 12,
|
|
6802
6746
|
backgroundColor: "var(--ant-color-fill-secondary)",
|
|
6803
6747
|
fontSize: "var(--ant-font-size)"
|
|
6804
6748
|
},
|
|
6805
6749
|
className: "flex-center",
|
|
6806
|
-
children:
|
|
6750
|
+
children: n
|
|
6807
6751
|
});
|
|
6808
|
-
},
|
|
6752
|
+
}, w = (e) => {
|
|
6809
6753
|
if (l.showSearch?.onSearch) l.showSearch?.onSearch?.(e);
|
|
6810
6754
|
else {
|
|
6811
6755
|
let t = r?.filter((t) => t.label.toLowerCase().includes(e.toLowerCase()));
|
|
6812
|
-
m(t || []),
|
|
6756
|
+
m(t || []), S(t || []);
|
|
6813
6757
|
}
|
|
6814
|
-
},
|
|
6758
|
+
}, T = (e) => {
|
|
6815
6759
|
l.onBlur?.(e);
|
|
6816
|
-
},
|
|
6760
|
+
}, D = (e) => {
|
|
6817
6761
|
l.onFocus?.(e);
|
|
6818
|
-
},
|
|
6819
|
-
e || (
|
|
6762
|
+
}, O = (e) => {
|
|
6763
|
+
e || (S(r), m(r || []));
|
|
6820
6764
|
};
|
|
6821
6765
|
return F(() => {
|
|
6822
6766
|
let e = h.current?.querySelector?.("input");
|
|
@@ -6850,41 +6794,37 @@ var Rs = (e) => {
|
|
|
6850
6794
|
ref: g,
|
|
6851
6795
|
maxTagTextLength: l.maxTagTextLength ?? 15,
|
|
6852
6796
|
options: p,
|
|
6853
|
-
maxTagCount:
|
|
6797
|
+
maxTagCount: c,
|
|
6854
6798
|
defaultActiveFirstOption: !1,
|
|
6855
|
-
popupRender:
|
|
6856
|
-
optionRender:
|
|
6799
|
+
popupRender: y,
|
|
6800
|
+
optionRender: _,
|
|
6801
|
+
tagRender: C,
|
|
6857
6802
|
menuItemSelectedIcon: !1,
|
|
6858
|
-
onChange:
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
onFocus: k,
|
|
6803
|
+
onChange: b,
|
|
6804
|
+
onBlur: T,
|
|
6805
|
+
onFocus: D,
|
|
6862
6806
|
showSearch: {
|
|
6863
|
-
onSearch:
|
|
6864
|
-
filterOption: l.showSearch?.filterOption ||
|
|
6807
|
+
onSearch: w,
|
|
6808
|
+
filterOption: l.showSearch?.filterOption || x
|
|
6865
6809
|
},
|
|
6866
|
-
onOpenChange:
|
|
6810
|
+
onOpenChange: O,
|
|
6867
6811
|
children: e.children
|
|
6868
6812
|
})
|
|
6869
6813
|
});
|
|
6870
|
-
}),
|
|
6871
|
-
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, notFoundContent: u = null, ...d } = e, f = o(), [p, m] = B(!1), h = z(null), g = "";
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
} catch {
|
|
6875
|
-
g = e.status || "";
|
|
6876
|
-
}
|
|
6877
|
-
let _ = R(() => s?.length ? (0, Z.cloneDeep)(s).map((e) => (e.locale && (e.label = f.formatMessage({ id: e.label })), e)) : [], [s, f]);
|
|
6814
|
+
}), Zs = (e) => {
|
|
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?.();
|
|
6816
|
+
g = e.status || (l ? _?.status : "") || "";
|
|
6817
|
+
let y = R(() => s?.length ? (0, Z.cloneDeep)(s).map((e) => (e.locale && (e.label = f.formatMessage({ id: e.label })), e)) : [], [s, f]);
|
|
6878
6818
|
F(() => {
|
|
6879
6819
|
(v(e.value) || c && (e.value === null || e.value === void 0)) && m(!0);
|
|
6880
6820
|
}, [e.value, c]);
|
|
6881
|
-
let
|
|
6821
|
+
let b = () => {
|
|
6882
6822
|
!e.disabled && !p && (h.current?.focus?.(), m(!0));
|
|
6883
|
-
},
|
|
6823
|
+
}, x = (t, n) => {
|
|
6884
6824
|
v(t) || c && t === null ? m(!0) : m(!1), e.onChange?.(t, n);
|
|
6885
|
-
}, x = (t) => {
|
|
6886
|
-
m(!0), e.onFocus?.(t);
|
|
6887
6825
|
}, S = (t) => {
|
|
6826
|
+
m(!0), e.onFocus?.(t);
|
|
6827
|
+
}, C = (t) => {
|
|
6888
6828
|
c && e.value === null ? m(!0) : e.value || m(!1), e.onBlur?.(t);
|
|
6889
6829
|
};
|
|
6890
6830
|
return /* @__PURE__ */ H(mo, { children: /* @__PURE__ */ H(po, {
|
|
@@ -6895,19 +6835,19 @@ var Rs = (e) => {
|
|
|
6895
6835
|
required: i,
|
|
6896
6836
|
description: a,
|
|
6897
6837
|
disabled: e.disabled,
|
|
6898
|
-
onClick:
|
|
6899
|
-
children: /* @__PURE__ */ H(
|
|
6838
|
+
onClick: b,
|
|
6839
|
+
children: /* @__PURE__ */ H(Xs, {
|
|
6900
6840
|
...d,
|
|
6901
6841
|
ref: h,
|
|
6902
|
-
options: r ? void 0 :
|
|
6903
|
-
onFocus:
|
|
6904
|
-
onBlur:
|
|
6905
|
-
onChange:
|
|
6842
|
+
options: r ? void 0 : y,
|
|
6843
|
+
onFocus: S,
|
|
6844
|
+
onBlur: C,
|
|
6845
|
+
onChange: x,
|
|
6906
6846
|
notFoundContent: u,
|
|
6907
6847
|
children: r
|
|
6908
6848
|
})
|
|
6909
6849
|
}) });
|
|
6910
|
-
},
|
|
6850
|
+
}, Qs = Y(G)`
|
|
6911
6851
|
background-color: transparent !important;
|
|
6912
6852
|
padding: 0;
|
|
6913
6853
|
.anticon {
|
|
@@ -6920,13 +6860,13 @@ var Rs = (e) => {
|
|
|
6920
6860
|
color: var(--ant-color-text-tertiary);
|
|
6921
6861
|
}
|
|
6922
6862
|
}
|
|
6923
|
-
`,
|
|
6863
|
+
`, $s = ({ onClick: e }) => /* @__PURE__ */ H(Qs, {
|
|
6924
6864
|
icon: /* @__PURE__ */ H(oe, {}),
|
|
6925
6865
|
shape: "circle",
|
|
6926
6866
|
type: "text",
|
|
6927
6867
|
onClick: e,
|
|
6928
6868
|
size: "small"
|
|
6929
|
-
}),
|
|
6869
|
+
}), ec = ({ layout: e = {
|
|
6930
6870
|
rows: 1,
|
|
6931
6871
|
cols: 1
|
|
6932
6872
|
}, column: t = 2, dataList: n, editable: r, responseable: i, gutter: a, onDelete: o, onClick: s, autoBgColor: c, autoSize: l, style: u }) => {
|
|
@@ -7051,7 +6991,7 @@ var Rs = (e) => {
|
|
|
7051
6991
|
onClick: () => f(e)
|
|
7052
6992
|
})) })
|
|
7053
6993
|
}) : null });
|
|
7054
|
-
},
|
|
6994
|
+
}, tc = (e) => {
|
|
7055
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({
|
|
7056
6996
|
minRows: 1,
|
|
7057
6997
|
maxRows: 1,
|
|
@@ -7156,7 +7096,7 @@ var Rs = (e) => {
|
|
|
7156
7096
|
children: [l && /* @__PURE__ */ H("span", {
|
|
7157
7097
|
className: "title",
|
|
7158
7098
|
children: l
|
|
7159
|
-
}), /* @__PURE__ */ H(
|
|
7099
|
+
}), /* @__PURE__ */ H(ec, {
|
|
7160
7100
|
editable: !0,
|
|
7161
7101
|
dataList: t.imgs,
|
|
7162
7102
|
onDelete: D
|
|
@@ -7169,7 +7109,7 @@ var Rs = (e) => {
|
|
|
7169
7109
|
children: [x, /* @__PURE__ */ U("div", {
|
|
7170
7110
|
className: "actions",
|
|
7171
7111
|
children: [
|
|
7172
|
-
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H(
|
|
7112
|
+
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H($s, { onClick: T }),
|
|
7173
7113
|
S,
|
|
7174
7114
|
/* @__PURE__ */ H(J, {
|
|
7175
7115
|
title: f.formatMessage({ id: "common.button.delete" }),
|
|
@@ -7187,7 +7127,7 @@ var Rs = (e) => {
|
|
|
7187
7127
|
]
|
|
7188
7128
|
})
|
|
7189
7129
|
});
|
|
7190
|
-
},
|
|
7130
|
+
}, nc = Y.div`
|
|
7191
7131
|
display: flex;
|
|
7192
7132
|
flex-direction: column;
|
|
7193
7133
|
justify-content: center;
|
|
@@ -7196,15 +7136,15 @@ var Rs = (e) => {
|
|
|
7196
7136
|
border-radius: var(--ant-border-radius);
|
|
7197
7137
|
padding: 12px 14px;
|
|
7198
7138
|
min-height: 54px;
|
|
7199
|
-
`,
|
|
7139
|
+
`, rc = Y.div`
|
|
7200
7140
|
display: flex;
|
|
7201
7141
|
justify-content: space-between;
|
|
7202
7142
|
align-items: center;
|
|
7203
|
-
`,
|
|
7143
|
+
`, ic = (e) => {
|
|
7204
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);
|
|
7205
|
-
return /* @__PURE__ */ U(
|
|
7145
|
+
return /* @__PURE__ */ U(nc, {
|
|
7206
7146
|
style: s,
|
|
7207
|
-
children: [/* @__PURE__ */ U(
|
|
7147
|
+
children: [/* @__PURE__ */ U(rc, { children: [/* @__PURE__ */ H(Za, {
|
|
7208
7148
|
label: t,
|
|
7209
7149
|
description: n
|
|
7210
7150
|
}), /* @__PURE__ */ H(J, {
|
|
@@ -7218,7 +7158,7 @@ var Rs = (e) => {
|
|
|
7218
7158
|
})
|
|
7219
7159
|
})] }), (c || d) && o]
|
|
7220
7160
|
});
|
|
7221
|
-
},
|
|
7161
|
+
}, ac = ({ style: e }) => /* @__PURE__ */ U("svg", {
|
|
7222
7162
|
width: "23",
|
|
7223
7163
|
height: "23",
|
|
7224
7164
|
viewBox: "0 0 23 23",
|
|
@@ -7240,7 +7180,7 @@ var Rs = (e) => {
|
|
|
7240
7180
|
stopColor: "#f05a28"
|
|
7241
7181
|
})]
|
|
7242
7182
|
}) })]
|
|
7243
|
-
}),
|
|
7183
|
+
}), oc = {
|
|
7244
7184
|
EditOutlined: E.createElement(he),
|
|
7245
7185
|
ExperimentOutlined: E.createElement(ve),
|
|
7246
7186
|
DeleteOutlined: E.createElement(ue),
|
|
@@ -7288,8 +7228,8 @@ var Rs = (e) => {
|
|
|
7288
7228
|
Disabled: E.createElement(Q, { type: "icon-disabled" }),
|
|
7289
7229
|
CopyOutlined: E.createElement(le),
|
|
7290
7230
|
Metrics: E.createElement(Q, { type: "icon-metrics" })
|
|
7291
|
-
},
|
|
7292
|
-
function
|
|
7231
|
+
}, sc = "rgba(0, 0, 255, 0.3)";
|
|
7232
|
+
function cc(e) {
|
|
7293
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({
|
|
7294
7234
|
x: 0,
|
|
7295
7235
|
y: 0
|
|
@@ -7361,7 +7301,7 @@ function lc(e) {
|
|
|
7361
7301
|
lineWidth: i
|
|
7362
7302
|
}, {
|
|
7363
7303
|
lineWidth: i,
|
|
7364
|
-
color:
|
|
7304
|
+
color: sc,
|
|
7365
7305
|
compositeOperation: "destination-out"
|
|
7366
7306
|
}), P(o, {
|
|
7367
7307
|
x: r,
|
|
@@ -7369,7 +7309,7 @@ function lc(e) {
|
|
|
7369
7309
|
lineWidth: i
|
|
7370
7310
|
}, {
|
|
7371
7311
|
lineWidth: i,
|
|
7372
|
-
color:
|
|
7312
|
+
color: sc,
|
|
7373
7313
|
compositeOperation: "source-over"
|
|
7374
7314
|
}), o.restore();
|
|
7375
7315
|
}, L = (e) => {
|
|
@@ -7457,7 +7397,7 @@ function lc(e) {
|
|
|
7457
7397
|
}
|
|
7458
7398
|
//#endregion
|
|
7459
7399
|
//#region src/lib/components/image-editor/hooks/use-zoom.ts
|
|
7460
|
-
function
|
|
7400
|
+
function lc(e) {
|
|
7461
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) => {
|
|
7462
7402
|
if (l.current <= t || l.current >= 8) return;
|
|
7463
7403
|
let n = r.current.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, c = o / n.width, u = s / n.height;
|
|
@@ -7493,16 +7433,16 @@ function uc(e) {
|
|
|
7493
7433
|
baseScale: u
|
|
7494
7434
|
};
|
|
7495
7435
|
}
|
|
7496
|
-
var
|
|
7436
|
+
var uc = {
|
|
7497
7437
|
"editor-wrapper": "index-module__editor-wrapper___-q6TM",
|
|
7498
7438
|
tools: "index-module__tools___Vs6ua",
|
|
7499
7439
|
"editor-content": "index-module__editor-content___YIk-U",
|
|
7500
7440
|
"overlay-canvas": "index-module__overlay-canvas___SaATc",
|
|
7501
7441
|
"overlay-canvas--disabled": "index-module__overlay-canvas--disabled___5TrsB"
|
|
7502
|
-
},
|
|
7442
|
+
}, dc = (e) => {
|
|
7503
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();
|
|
7504
7444
|
return /* @__PURE__ */ U("div", {
|
|
7505
|
-
className:
|
|
7445
|
+
className: uc.tools,
|
|
7506
7446
|
children: [
|
|
7507
7447
|
/* @__PURE__ */ H(J, {
|
|
7508
7448
|
placement: "bottomLeft",
|
|
@@ -7594,7 +7534,7 @@ var dc = {
|
|
|
7594
7534
|
})
|
|
7595
7535
|
]
|
|
7596
7536
|
});
|
|
7597
|
-
},
|
|
7537
|
+
}, fc = (e) => {
|
|
7598
7538
|
let t = o(), { disabled: n, isOriginal: r, invertMask: i, handleOnChangeMask: a, downloadMask: s, download: c } = e;
|
|
7599
7539
|
return /* @__PURE__ */ U("div", {
|
|
7600
7540
|
className: "tools",
|
|
@@ -7634,7 +7574,7 @@ var dc = {
|
|
|
7634
7574
|
})
|
|
7635
7575
|
})]
|
|
7636
7576
|
});
|
|
7637
|
-
},
|
|
7577
|
+
}, pc = Y.div`
|
|
7638
7578
|
position: absolute;
|
|
7639
7579
|
top: 0;
|
|
7640
7580
|
bottom: 0;
|
|
@@ -7644,9 +7584,9 @@ var dc = {
|
|
|
7644
7584
|
height: 100%;
|
|
7645
7585
|
width: ${(e) => `${e.width ? `${e.width}px` : "100%"}`};
|
|
7646
7586
|
z-index: 100;
|
|
7647
|
-
`,
|
|
7587
|
+
`, mc = (e) => {
|
|
7648
7588
|
let { width: t, height: n } = e;
|
|
7649
|
-
return /* @__PURE__ */ H(
|
|
7589
|
+
return /* @__PURE__ */ H(pc, {
|
|
7650
7590
|
width: t,
|
|
7651
7591
|
height: n,
|
|
7652
7592
|
children: /* @__PURE__ */ H(Dt, {
|
|
@@ -7654,7 +7594,7 @@ var dc = {
|
|
|
7654
7594
|
size: "middle"
|
|
7655
7595
|
})
|
|
7656
7596
|
});
|
|
7657
|
-
},
|
|
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) => {
|
|
7658
7598
|
let d = z(null), f = z(null), p = z(null), [m, h] = B(60), g = z({
|
|
7659
7599
|
x: 0,
|
|
7660
7600
|
y: 0
|
|
@@ -7662,14 +7602,14 @@ var dc = {
|
|
|
7662
7602
|
width: 0,
|
|
7663
7603
|
height: 0,
|
|
7664
7604
|
loading: !1
|
|
7665
|
-
}), { canvasRef: C, overlayCanvasRef: w, offscreenCanvasRef: T, cursorRef: E, strokesRef: D, currentStroke: O, mouseDownState: k, autoScale: A, baseScale: j, maskStorkeRef: M, isLoadingMaskRef: P, setMaskStrokes: L, draw: ee, drawStroke: V, startDrawing: W, endDrawing: te, handleMouseMove: ne, handleMouseLeave: re, handleMouseEnter: ie, saveImage: ae, resetCanvas: oe, creatOffscreenCanvas: se, generateMask: ce, getTransformLineWidth: le, getTransformedPoint: ue, setStrokes: de, setTransform: fe, clearOverlayCanvas: pe, clearCanvas: me, fitView: he, handleMouseDown: ge, handleMouseUp: _e } =
|
|
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({
|
|
7666
7606
|
lineWidth: m,
|
|
7667
7607
|
translatePos: g,
|
|
7668
7608
|
isDisabled: n,
|
|
7669
7609
|
invertMask: v,
|
|
7670
7610
|
maskUpload: i,
|
|
7671
7611
|
onSave: o
|
|
7672
|
-
}), { handleOnWheel: ve, setActiveScale: ye, activeScale: be } =
|
|
7612
|
+
}), { handleOnWheel: ve, setActiveScale: ye, activeScale: be } = lc({
|
|
7673
7613
|
overlayCanvasRef: w,
|
|
7674
7614
|
canvasRef: C,
|
|
7675
7615
|
offscreenCanvasRef: T,
|
|
@@ -7828,10 +7768,10 @@ var dc = {
|
|
|
7828
7768
|
}, [i]), F(() => {
|
|
7829
7769
|
xe && E.current && (E.current.style.display = "none");
|
|
7830
7770
|
}, [xe]), /* @__PURE__ */ U("div", {
|
|
7831
|
-
className:
|
|
7771
|
+
className: uc["editor-wrapper"],
|
|
7832
7772
|
children: [/* @__PURE__ */ U("div", {
|
|
7833
7773
|
className: "flex-between",
|
|
7834
|
-
children: [/* @__PURE__ */ H(
|
|
7774
|
+
children: [/* @__PURE__ */ H(dc, {
|
|
7835
7775
|
handleBrushSizeChange: Ie,
|
|
7836
7776
|
undo: De,
|
|
7837
7777
|
onClear: we,
|
|
@@ -7843,7 +7783,7 @@ var dc = {
|
|
|
7843
7783
|
invertMask: v,
|
|
7844
7784
|
loading: e,
|
|
7845
7785
|
accept: a
|
|
7846
|
-
}), /* @__PURE__ */ H(
|
|
7786
|
+
}), /* @__PURE__ */ H(fc, {
|
|
7847
7787
|
handleOnChangeMask: Le,
|
|
7848
7788
|
invertMask: v,
|
|
7849
7789
|
downloadMask: Ce,
|
|
@@ -7853,7 +7793,7 @@ var dc = {
|
|
|
7853
7793
|
maskUpload: i
|
|
7854
7794
|
})]
|
|
7855
7795
|
}), /* @__PURE__ */ U("div", {
|
|
7856
|
-
className:
|
|
7796
|
+
className: uc["editor-content"],
|
|
7857
7797
|
ref: p,
|
|
7858
7798
|
style: {
|
|
7859
7799
|
position: "relative",
|
|
@@ -7862,7 +7802,7 @@ var dc = {
|
|
|
7862
7802
|
flex: 1
|
|
7863
7803
|
},
|
|
7864
7804
|
children: [
|
|
7865
|
-
x.loading && /* @__PURE__ */ H(
|
|
7805
|
+
x.loading && /* @__PURE__ */ H(mc, {
|
|
7866
7806
|
width: x.width,
|
|
7867
7807
|
height: x.height
|
|
7868
7808
|
}),
|
|
@@ -7875,7 +7815,7 @@ var dc = {
|
|
|
7875
7815
|
}),
|
|
7876
7816
|
/* @__PURE__ */ H("canvas", {
|
|
7877
7817
|
ref: w,
|
|
7878
|
-
className: (0, X.default)(
|
|
7818
|
+
className: (0, X.default)(uc["overlay-canvas"], { [uc["overlay-canvas--disabled"]]: xe }),
|
|
7879
7819
|
style: {
|
|
7880
7820
|
position: "absolute",
|
|
7881
7821
|
zIndex: 10,
|
|
@@ -7903,7 +7843,7 @@ var dc = {
|
|
|
7903
7843
|
position: "fixed",
|
|
7904
7844
|
width: m * be,
|
|
7905
7845
|
height: m * be,
|
|
7906
|
-
backgroundColor:
|
|
7846
|
+
backgroundColor: hc,
|
|
7907
7847
|
borderRadius: "50%",
|
|
7908
7848
|
pointerEvents: "none",
|
|
7909
7849
|
cursor: "none",
|
|
@@ -7913,21 +7853,21 @@ var dc = {
|
|
|
7913
7853
|
]
|
|
7914
7854
|
})]
|
|
7915
7855
|
});
|
|
7916
|
-
}),
|
|
7856
|
+
}), _c = E.memo(gc);
|
|
7917
7857
|
//#endregion
|
|
7918
7858
|
//#region src/lib/components/image-editor/extract-image-colors.ts
|
|
7919
|
-
function
|
|
7859
|
+
function vc(e, t) {
|
|
7920
7860
|
let n = document.createElement("canvas");
|
|
7921
7861
|
return n.width = e, n.height = t, {
|
|
7922
7862
|
canvas: n,
|
|
7923
7863
|
ctx: n.getContext("2d")
|
|
7924
7864
|
};
|
|
7925
7865
|
}
|
|
7926
|
-
function
|
|
7866
|
+
function yc(e, t, n, r) {
|
|
7927
7867
|
let i = (n * r + t) * 4;
|
|
7928
7868
|
return e[i] === 255 && e[i + 1] === 255 && e[i + 2] === 255;
|
|
7929
7869
|
}
|
|
7930
|
-
function
|
|
7870
|
+
function bc(e, t, n, r, i, a, o) {
|
|
7931
7871
|
let s = [[r, i]], c = [
|
|
7932
7872
|
[1, 0],
|
|
7933
7873
|
[-1, 0],
|
|
@@ -7940,43 +7880,43 @@ function xc(e, t, n, r, i, a, o) {
|
|
|
7940
7880
|
];
|
|
7941
7881
|
for (; s.length;) {
|
|
7942
7882
|
let [r, i] = s.pop();
|
|
7943
|
-
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({
|
|
7944
7884
|
x: r,
|
|
7945
7885
|
y: i
|
|
7946
7886
|
}), c.forEach(([e, t]) => s.push([r + e, i + t])));
|
|
7947
7887
|
}
|
|
7948
7888
|
}
|
|
7949
|
-
function
|
|
7889
|
+
function xc(e) {
|
|
7950
7890
|
let { data: t, width: n, height: r } = e, i = Array.from({ length: r }, () => Array(n).fill(!1)), a = [];
|
|
7951
|
-
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]) {
|
|
7952
7892
|
let s = [];
|
|
7953
|
-
|
|
7893
|
+
bc(t, n, r, o, e, i, s), a.push(s);
|
|
7954
7894
|
}
|
|
7955
7895
|
return a;
|
|
7956
7896
|
}
|
|
7957
|
-
function
|
|
7897
|
+
function Sc(e) {
|
|
7958
7898
|
return new Promise((t, n) => {
|
|
7959
7899
|
let r = new Image();
|
|
7960
7900
|
r.src = e, r.onload = () => t(r), r.onerror = () => n(/* @__PURE__ */ Error("Image loading failed"));
|
|
7961
7901
|
});
|
|
7962
7902
|
}
|
|
7963
|
-
async function
|
|
7964
|
-
let t = await
|
|
7903
|
+
async function Cc(e) {
|
|
7904
|
+
let t = await Sc(e), { canvas: n, ctx: r } = vc(t.width, t.height);
|
|
7965
7905
|
r.drawImage(t, 0, 0);
|
|
7966
|
-
let i =
|
|
7906
|
+
let i = xc(r.getImageData(0, 0, t.width, t.height));
|
|
7967
7907
|
return URL.revokeObjectURL(t.src), i;
|
|
7968
7908
|
}
|
|
7969
7909
|
//#endregion
|
|
7970
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
|
|
7971
|
-
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
|
+
}
|
|
7972
7915
|
function kc(e) {
|
|
7973
|
-
return
|
|
7916
|
+
return Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${t}_${t === "root" ? Oc(e.root) : e[t]}`).toString();
|
|
7974
7917
|
}
|
|
7975
7918
|
function Ac(e) {
|
|
7976
|
-
|
|
7977
|
-
}
|
|
7978
|
-
function jc(e) {
|
|
7979
|
-
let t = Ac(e), n = Tc.get(t);
|
|
7919
|
+
let t = kc(e), n = wc.get(t);
|
|
7980
7920
|
if (!n) {
|
|
7981
7921
|
let r = /* @__PURE__ */ new Map(), i, a = new IntersectionObserver((t) => {
|
|
7982
7922
|
t.forEach((t) => {
|
|
@@ -7991,11 +7931,11 @@ function jc(e) {
|
|
|
7991
7931
|
id: t,
|
|
7992
7932
|
observer: a,
|
|
7993
7933
|
elements: r
|
|
7994
|
-
},
|
|
7934
|
+
}, wc.set(t, n);
|
|
7995
7935
|
}
|
|
7996
7936
|
return n;
|
|
7997
7937
|
}
|
|
7998
|
-
function
|
|
7938
|
+
function jc(e, t, n = {}, r = Dc) {
|
|
7999
7939
|
if (window.IntersectionObserver === void 0 && r !== void 0) {
|
|
8000
7940
|
let i = e.getBoundingClientRect();
|
|
8001
7941
|
return t(r, {
|
|
@@ -8008,13 +7948,13 @@ function Mc(e, t, n = {}, r = Oc) {
|
|
|
8008
7948
|
rootBounds: i
|
|
8009
7949
|
}), () => {};
|
|
8010
7950
|
}
|
|
8011
|
-
let { id: i, observer: a, elements: o } =
|
|
7951
|
+
let { id: i, observer: a, elements: o } = Ac(n), s = o.get(e) || [];
|
|
8012
7952
|
return o.has(e) || o.set(e, s), s.push(t), a.observe(e), function() {
|
|
8013
|
-
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));
|
|
8014
7954
|
};
|
|
8015
7955
|
}
|
|
8016
7956
|
T.Component;
|
|
8017
|
-
function
|
|
7957
|
+
function Mc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i, triggerOnce: a, skip: o, initialInView: s, fallbackInView: c, onChange: l } = {}) {
|
|
8018
7958
|
let [u, d] = T.useState(null), f = T.useRef(l), [p, m] = T.useState({
|
|
8019
7959
|
inView: !!s,
|
|
8020
7960
|
entry: void 0
|
|
@@ -8022,7 +7962,7 @@ function Nc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
8022
7962
|
f.current = l, T.useEffect(() => {
|
|
8023
7963
|
if (o || !u) return;
|
|
8024
7964
|
let s;
|
|
8025
|
-
return s =
|
|
7965
|
+
return s = jc(u, (e, t) => {
|
|
8026
7966
|
m({
|
|
8027
7967
|
inView: e,
|
|
8028
7968
|
entry: t
|
|
@@ -8061,8 +8001,8 @@ function Nc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
8061
8001
|
}
|
|
8062
8002
|
//#endregion
|
|
8063
8003
|
//#region src/lib/components/infinite-scroller/use-infinite-scroll.ts
|
|
8064
|
-
function
|
|
8065
|
-
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)(() => {
|
|
8066
8006
|
n || t >= e || (i?.(), r(t + 1));
|
|
8067
8007
|
}, a));
|
|
8068
8008
|
return F(() => {
|
|
@@ -8080,8 +8020,8 @@ function Pc({ total: e, current: t, loading: n, refresh: r, onBottom: i, throttl
|
|
|
8080
8020
|
}
|
|
8081
8021
|
//#endregion
|
|
8082
8022
|
//#region src/lib/components/infinite-scroller/index.tsx
|
|
8083
|
-
var
|
|
8084
|
-
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);
|
|
8085
8025
|
return /* @__PURE__ */ U("div", {
|
|
8086
8026
|
className: "relative",
|
|
8087
8027
|
style: { width: "100%" },
|
|
@@ -8109,18 +8049,18 @@ var Fc = (e) => {
|
|
|
8109
8049
|
/* @__PURE__ */ H(pt.BackTop, { visibilityHeight: 1e3 })
|
|
8110
8050
|
]
|
|
8111
8051
|
});
|
|
8112
|
-
},
|
|
8113
|
-
let e = P(
|
|
8052
|
+
}, Fc = O({}), Ic = () => {
|
|
8053
|
+
let e = P(Fc);
|
|
8114
8054
|
if (!e) throw Error("useScrollerContext must be used within a ScrollerProvider");
|
|
8115
8055
|
return e;
|
|
8116
|
-
},
|
|
8056
|
+
}, Lc = ({ children: e, value: t }) => /* @__PURE__ */ H(Fc.Provider, {
|
|
8117
8057
|
value: t,
|
|
8118
8058
|
children: e
|
|
8119
|
-
}),
|
|
8059
|
+
}), Rc = Y.div`
|
|
8120
8060
|
display: flex;
|
|
8121
8061
|
flex-wrap: wrap;
|
|
8122
8062
|
gap: 6px;
|
|
8123
|
-
`,
|
|
8063
|
+
`, zc = ({ labels: e }) => /* @__PURE__ */ H(Rc, { children: Z.default.map(e, (e, t) => /* @__PURE__ */ U(f, {
|
|
8124
8064
|
className: "m-r-0",
|
|
8125
8065
|
maxWidth: 155,
|
|
8126
8066
|
style: {
|
|
@@ -8128,12 +8068,12 @@ var Fc = (e) => {
|
|
|
8128
8068
|
borderRadius: 12
|
|
8129
8069
|
},
|
|
8130
8070
|
children: [/* @__PURE__ */ H("span", { children: t }), /* @__PURE__ */ U("span", { children: [":", e] })]
|
|
8131
|
-
}, t)) }),
|
|
8132
|
-
let e = E.useContext(
|
|
8071
|
+
}, t)) }), Bc = E.createContext({}), Vc = () => {
|
|
8072
|
+
let e = E.useContext(Bc);
|
|
8133
8073
|
if (!e) throw Error("useLabelSelectorContext must be used within a LabelSelectorProvider");
|
|
8134
8074
|
return e;
|
|
8135
|
-
},
|
|
8136
|
-
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) => {
|
|
8137
8077
|
c?.({
|
|
8138
8078
|
key: t.key,
|
|
8139
8079
|
value: e
|
|
@@ -8197,7 +8137,7 @@ var Fc = (e) => {
|
|
|
8197
8137
|
})
|
|
8198
8138
|
]
|
|
8199
8139
|
});
|
|
8200
|
-
},
|
|
8140
|
+
}, Uc = ({ label: e, labelList: t, seperator: n, keyAddon: r, valueAddon: i, disabled: a, onChange: s, onDelete: c, onPaste: l, onBlur: u }) => {
|
|
8201
8141
|
let d = o(), [f, p] = B(!1), m = (t) => {
|
|
8202
8142
|
let n = t.target.value;
|
|
8203
8143
|
s?.({
|
|
@@ -8264,7 +8204,7 @@ var Fc = (e) => {
|
|
|
8264
8204
|
})
|
|
8265
8205
|
]
|
|
8266
8206
|
});
|
|
8267
|
-
},
|
|
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 }) => {
|
|
8268
8208
|
let f = (e) => {
|
|
8269
8209
|
let t = Z.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8270
8210
|
n?.(t);
|
|
@@ -8287,7 +8227,7 @@ var Fc = (e) => {
|
|
|
8287
8227
|
onAdd: m,
|
|
8288
8228
|
disabled: s,
|
|
8289
8229
|
btnText: l,
|
|
8290
|
-
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, {
|
|
8291
8231
|
disabled: s,
|
|
8292
8232
|
label: n,
|
|
8293
8233
|
seperator: ":",
|
|
@@ -8297,7 +8237,7 @@ var Fc = (e) => {
|
|
|
8297
8237
|
onChange: (e) => p(r, e),
|
|
8298
8238
|
onPaste: (e) => i?.(e, r),
|
|
8299
8239
|
onBlur: (e, t) => a?.(e, t, r)
|
|
8300
|
-
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(
|
|
8240
|
+
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(Uc, {
|
|
8301
8241
|
disabled: s,
|
|
8302
8242
|
label: e,
|
|
8303
8243
|
seperator: ":",
|
|
@@ -8308,7 +8248,7 @@ var Fc = (e) => {
|
|
|
8308
8248
|
onBlur: (e, t) => a?.(e, t, n)
|
|
8309
8249
|
}, n)) })
|
|
8310
8250
|
});
|
|
8311
|
-
},
|
|
8251
|
+
}, Gc = ({ value: e, onChange: t, onBlur: n, onDelete: r, disabled: i, label: a, btnText: s, description: c, isAutoComplete: l, enablePaste: u = !0 }) => {
|
|
8312
8252
|
let d = o(), [f, p] = B({}), [m, h] = B([]);
|
|
8313
8253
|
F(() => {
|
|
8314
8254
|
let t = e ?? {};
|
|
@@ -8325,7 +8265,7 @@ var Fc = (e) => {
|
|
|
8325
8265
|
let n = Z.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8326
8266
|
t?.(n);
|
|
8327
8267
|
};
|
|
8328
|
-
return /* @__PURE__ */ H(
|
|
8268
|
+
return /* @__PURE__ */ H(Wc, {
|
|
8329
8269
|
disabled: i,
|
|
8330
8270
|
label: a,
|
|
8331
8271
|
btnText: s,
|
|
@@ -8352,16 +8292,16 @@ var Fc = (e) => {
|
|
|
8352
8292
|
onBlur: n,
|
|
8353
8293
|
onDelete: r
|
|
8354
8294
|
});
|
|
8355
|
-
},
|
|
8295
|
+
}, Kc = ({ children: e, value: t }) => /* @__PURE__ */ H(Bc.Provider, {
|
|
8356
8296
|
value: t,
|
|
8357
8297
|
children: e
|
|
8358
|
-
}),
|
|
8298
|
+
}), qc = /[^=]+=[^=]*$/, Jc = (e) => {
|
|
8359
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) => {
|
|
8360
8300
|
if (!e) {
|
|
8361
8301
|
f(s || []);
|
|
8362
8302
|
return;
|
|
8363
8303
|
}
|
|
8364
|
-
let t = e.match(
|
|
8304
|
+
let t = e.match(qc);
|
|
8365
8305
|
if (!t) {
|
|
8366
8306
|
f(Z.default.filter(s, (t) => t.label.includes(e)));
|
|
8367
8307
|
return;
|
|
@@ -8373,7 +8313,7 @@ var Fc = (e) => {
|
|
|
8373
8313
|
}
|
|
8374
8314
|
f(Z.default.filter(i.opts, (e) => e.label.includes(r)));
|
|
8375
8315
|
}, m = (e) => {
|
|
8376
|
-
let t = u.current.match(
|
|
8316
|
+
let t = u.current.match(qc);
|
|
8377
8317
|
r(t ? `${Z.default.split(t[0], "=")[0]}=${e}` : e?.trim());
|
|
8378
8318
|
}, h = Z.default.debounce((e) => {
|
|
8379
8319
|
l.current = e.target.selectionStart, u.current = e.target.value.slice(0, l.current), p(u.current);
|
|
@@ -8400,7 +8340,7 @@ var Fc = (e) => {
|
|
|
8400
8340
|
},
|
|
8401
8341
|
onPaste: a
|
|
8402
8342
|
});
|
|
8403
|
-
},
|
|
8343
|
+
}, Yc = (e) => {
|
|
8404
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) => {
|
|
8405
8345
|
n(e);
|
|
8406
8346
|
};
|
|
@@ -8410,7 +8350,7 @@ var Fc = (e) => {
|
|
|
8410
8350
|
onChange: p,
|
|
8411
8351
|
onBlur: r,
|
|
8412
8352
|
onPaste: i
|
|
8413
|
-
}) : /* @__PURE__ */ H(
|
|
8353
|
+
}) : /* @__PURE__ */ H(Jc, {
|
|
8414
8354
|
value: o,
|
|
8415
8355
|
onChange: p,
|
|
8416
8356
|
onBlur: r,
|
|
@@ -8429,7 +8369,7 @@ var Fc = (e) => {
|
|
|
8429
8369
|
onClick: t
|
|
8430
8370
|
})]
|
|
8431
8371
|
});
|
|
8432
|
-
},
|
|
8372
|
+
}, Xc = (e) => {
|
|
8433
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 = () => {
|
|
8434
8374
|
_.current += 1;
|
|
8435
8375
|
}, b = (e) => {
|
|
@@ -8485,7 +8425,7 @@ var Fc = (e) => {
|
|
|
8485
8425
|
onAdd: S,
|
|
8486
8426
|
btnText: s,
|
|
8487
8427
|
disabled: p,
|
|
8488
|
-
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, {
|
|
8489
8429
|
required: f && h.length === 1,
|
|
8490
8430
|
placeholder: e.placeholder,
|
|
8491
8431
|
options: c,
|
|
@@ -8500,7 +8440,7 @@ var Fc = (e) => {
|
|
|
8500
8440
|
renderItem: m
|
|
8501
8441
|
}, t.uid)) })
|
|
8502
8442
|
});
|
|
8503
|
-
},
|
|
8443
|
+
}, Zc = A((e, t) => {
|
|
8504
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(() => {
|
|
8505
8445
|
c(0);
|
|
8506
8446
|
}, [c]), b = Z.default.debounce(() => {
|
|
@@ -8560,7 +8500,7 @@ var Fc = (e) => {
|
|
|
8560
8500
|
}, e.uid))
|
|
8561
8501
|
})
|
|
8562
8502
|
});
|
|
8563
|
-
}),
|
|
8503
|
+
}), Qc = E.memo(Zc), $c = (e) => {
|
|
8564
8504
|
let { page: t, total: n, pageSize: r, onNext: i, onPrev: a, onBackend: s, onToFirst: c } = e, l = o();
|
|
8565
8505
|
return /* @__PURE__ */ U("div", {
|
|
8566
8506
|
className: "pagination",
|
|
@@ -8634,8 +8574,8 @@ var Fc = (e) => {
|
|
|
8634
8574
|
})] })
|
|
8635
8575
|
]
|
|
8636
8576
|
});
|
|
8637
|
-
},
|
|
8638
|
-
let [e, t] = B(
|
|
8577
|
+
}, el = 1e3, tl = () => {
|
|
8578
|
+
let [e, t] = B(el), [n, r] = B(1), [i, a] = B(1);
|
|
8639
8579
|
return {
|
|
8640
8580
|
nextPage: () => {
|
|
8641
8581
|
r(n + 1);
|
|
@@ -8655,8 +8595,8 @@ var Fc = (e) => {
|
|
|
8655
8595
|
page: n,
|
|
8656
8596
|
totalPage: i
|
|
8657
8597
|
};
|
|
8658
|
-
},
|
|
8659
|
-
let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, watchable: s, params: c } = e, { pageSize: l, page: u, setPage: d, setTotalPage: f, totalPage: p } =
|
|
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({
|
|
8660
8600
|
pos: "bottom",
|
|
8661
8601
|
page: 1
|
|
8662
8602
|
}), L = z(0), R = z(!1);
|
|
@@ -8761,7 +8701,7 @@ var Fc = (e) => {
|
|
|
8761
8701
|
children: /* @__PURE__ */ U("div", {
|
|
8762
8702
|
className: "wrap",
|
|
8763
8703
|
children: [
|
|
8764
|
-
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(
|
|
8704
|
+
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(Qc, {
|
|
8765
8705
|
ref: E,
|
|
8766
8706
|
dataList: j,
|
|
8767
8707
|
diffHeight: n,
|
|
@@ -8776,7 +8716,7 @@ var Fc = (e) => {
|
|
|
8776
8716
|
className: "pg",
|
|
8777
8717
|
children: /* @__PURE__ */ H("div", {
|
|
8778
8718
|
className: (0, X.default)("pg-inner", { "at-top": !0 }),
|
|
8779
|
-
children: /* @__PURE__ */ H(
|
|
8719
|
+
children: /* @__PURE__ */ H($c, {
|
|
8780
8720
|
page: u,
|
|
8781
8721
|
total: p,
|
|
8782
8722
|
pageSize: l,
|
|
@@ -8790,7 +8730,7 @@ var Fc = (e) => {
|
|
|
8790
8730
|
]
|
|
8791
8731
|
})
|
|
8792
8732
|
});
|
|
8793
|
-
}),
|
|
8733
|
+
}), rl = Y.div`
|
|
8794
8734
|
display: flex;
|
|
8795
8735
|
margin-bottom: 12px;
|
|
8796
8736
|
align-items: center;
|
|
@@ -8810,22 +8750,27 @@ var Fc = (e) => {
|
|
|
8810
8750
|
margin-left: 10px;
|
|
8811
8751
|
flex: none;
|
|
8812
8752
|
}
|
|
8813
|
-
`,
|
|
8814
|
-
styles: c,
|
|
8753
|
+
`, il = ({ dataList: e, label: t, description: n, disabled: r, btnText: i, children: a, onDelete: o, onAdd: s, styles: c }) => /* @__PURE__ */ H(eo, {
|
|
8754
|
+
styles: { wrapper: c?.wrapper },
|
|
8815
8755
|
label: t,
|
|
8816
8756
|
description: n,
|
|
8817
8757
|
onAdd: s,
|
|
8818
8758
|
disabled: r,
|
|
8819
8759
|
btnText: i,
|
|
8820
|
-
children: e.map((e, t) => /* @__PURE__ */ U(
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8760
|
+
children: e.map((e, t) => /* @__PURE__ */ U(rl, {
|
|
8761
|
+
className: "item-container",
|
|
8762
|
+
style: c?.item,
|
|
8763
|
+
children: [a?.(e, t), !r && /* @__PURE__ */ H(G, {
|
|
8764
|
+
size: "small",
|
|
8765
|
+
className: "btn",
|
|
8766
|
+
type: "default",
|
|
8767
|
+
shape: "circle",
|
|
8768
|
+
style: c?.delBtn,
|
|
8769
|
+
onClick: () => o?.(t, e),
|
|
8770
|
+
children: /* @__PURE__ */ H(ke, {})
|
|
8771
|
+
})]
|
|
8772
|
+
}, t))
|
|
8773
|
+
}), al = Y.div`
|
|
8829
8774
|
display: flex;
|
|
8830
8775
|
justify-content: center;
|
|
8831
8776
|
margin-block: 16px;
|
|
@@ -8835,9 +8780,9 @@ var Fc = (e) => {
|
|
|
8835
8780
|
opacity: 0;
|
|
8836
8781
|
transition: opacity 0.3s ease-in-out;
|
|
8837
8782
|
}
|
|
8838
|
-
`,
|
|
8783
|
+
`, ol = (e) => {
|
|
8839
8784
|
let { show: t, loading: n, loadMore: r } = e, i = o();
|
|
8840
|
-
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(
|
|
8785
|
+
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(al, {
|
|
8841
8786
|
className: n ? "loading" : "",
|
|
8842
8787
|
children: /* @__PURE__ */ H(G, {
|
|
8843
8788
|
onClick: r,
|
|
@@ -8847,7 +8792,7 @@ var Fc = (e) => {
|
|
|
8847
8792
|
children: i.formatMessage({ id: "common.button.more" })
|
|
8848
8793
|
})
|
|
8849
8794
|
}) : null });
|
|
8850
|
-
},
|
|
8795
|
+
}, sl = Y(ft)`
|
|
8851
8796
|
display: flex;
|
|
8852
8797
|
flex-direction: column;
|
|
8853
8798
|
justify-content: center;
|
|
@@ -8865,30 +8810,30 @@ var Fc = (e) => {
|
|
|
8865
8810
|
.ant-empty-footer {
|
|
8866
8811
|
display: flex;
|
|
8867
8812
|
}
|
|
8868
|
-
`,
|
|
8813
|
+
`, cl = Y.div`
|
|
8869
8814
|
margin-bottom: 16px;
|
|
8870
8815
|
display: flex;
|
|
8871
8816
|
justify-content: center;
|
|
8872
8817
|
align-items: center;
|
|
8873
|
-
`,
|
|
8818
|
+
`, ll = Y.div`
|
|
8874
8819
|
margin-bottom: 8px;
|
|
8875
8820
|
display: flex;
|
|
8876
8821
|
justify-content: center;
|
|
8877
8822
|
align-items: center;
|
|
8878
|
-
`,
|
|
8823
|
+
`, ul = Y.div`
|
|
8879
8824
|
display: flex;
|
|
8880
8825
|
flex-direction: column;
|
|
8881
8826
|
gap: 12px;
|
|
8882
8827
|
justify-content: center;
|
|
8883
8828
|
align-items: center;
|
|
8884
|
-
`,
|
|
8829
|
+
`, dl = (e) => {
|
|
8885
8830
|
let { filters: t, noFoundText: n, loadend: r, loading: i, dataSource: a, buttonText: o, onClick: s } = e, c = R(() => {
|
|
8886
8831
|
let e = Z.default.omit(t, ["page", "perPage"]);
|
|
8887
8832
|
return Object.values(e || {}).some((e) => Array.isArray(e) ? e.length > 0 : !!e);
|
|
8888
8833
|
}, [t]);
|
|
8889
|
-
return /* @__PURE__ */ H(V, { children: !i && r && !a?.length ? /* @__PURE__ */ H(
|
|
8890
|
-
image: c ? /* @__PURE__ */ H(
|
|
8891
|
-
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, {
|
|
8892
8837
|
style: {
|
|
8893
8838
|
fontSize: "16px",
|
|
8894
8839
|
fontWeight: 500
|
|
@@ -8905,7 +8850,7 @@ var Fc = (e) => {
|
|
|
8905
8850
|
children: o
|
|
8906
8851
|
}))
|
|
8907
8852
|
}) : /* @__PURE__ */ H("span", {}) });
|
|
8908
|
-
},
|
|
8853
|
+
}, fl = Y(it)`
|
|
8909
8854
|
.ant-breadcrumb-link {
|
|
8910
8855
|
font-size: 16px;
|
|
8911
8856
|
font-weight: 500;
|
|
@@ -8920,19 +8865,19 @@ var Fc = (e) => {
|
|
|
8920
8865
|
display: flex;
|
|
8921
8866
|
align-items: center;
|
|
8922
8867
|
}
|
|
8923
|
-
`,
|
|
8868
|
+
`, pl = ({ items: e }) => /* @__PURE__ */ H(fl, {
|
|
8924
8869
|
separator: /* @__PURE__ */ H(Q, {
|
|
8925
8870
|
type: "icon-down2",
|
|
8926
8871
|
rotate: -90
|
|
8927
8872
|
}),
|
|
8928
8873
|
items: e
|
|
8929
|
-
}),
|
|
8874
|
+
}), ml = {
|
|
8930
8875
|
containerWrapper: "page-box-module__containerWrapper___5T5E8",
|
|
8931
8876
|
contentWrapper: "page-box-module__contentWrapper___MuoA-",
|
|
8932
8877
|
title: "page-box-module__title___kmaTE",
|
|
8933
8878
|
left: "page-box-module__left___Q-SL3",
|
|
8934
8879
|
right: "page-box-module__right___7RXnF"
|
|
8935
|
-
},
|
|
8880
|
+
}, hl = ({ children: e, styles: t, title: n, leftContent: r, rightContent: i, paddingInlinePageContainerContent: a = 24, extraContentRender: o, ...s }) => {
|
|
8936
8881
|
let { initialize: c } = d({ defer: !1 }), l = P(cn), u = z(null);
|
|
8937
8882
|
return F(() => {
|
|
8938
8883
|
if (u.current) {
|
|
@@ -8940,7 +8885,7 @@ var Fc = (e) => {
|
|
|
8940
8885
|
window.__GPUSTACK_BODY_SCROLLER__ = e;
|
|
8941
8886
|
}
|
|
8942
8887
|
}, [c, u]), /* @__PURE__ */ H("div", {
|
|
8943
|
-
className:
|
|
8888
|
+
className: ml.containerWrapper,
|
|
8944
8889
|
children: /* @__PURE__ */ U(sn, {
|
|
8945
8890
|
...s,
|
|
8946
8891
|
fixedHeader: !1,
|
|
@@ -8949,43 +8894,43 @@ var Fc = (e) => {
|
|
|
8949
8894
|
style: { flex: 1 },
|
|
8950
8895
|
token: { paddingInlinePageContainerContent: a },
|
|
8951
8896
|
children: [/* @__PURE__ */ U("div", {
|
|
8952
|
-
className:
|
|
8897
|
+
className: ml.title,
|
|
8953
8898
|
children: [/* @__PURE__ */ H("div", {
|
|
8954
|
-
className:
|
|
8899
|
+
className: ml.left,
|
|
8955
8900
|
children: r || l.title
|
|
8956
8901
|
}), /* @__PURE__ */ U("div", {
|
|
8957
|
-
className:
|
|
8902
|
+
className: ml.right,
|
|
8958
8903
|
children: [i && /* @__PURE__ */ U("div", { children: [i, /* @__PURE__ */ H(lt, {
|
|
8959
8904
|
orientation: "vertical",
|
|
8960
8905
|
style: { margin: "0 16px" }
|
|
8961
8906
|
})] }), o && o()]
|
|
8962
8907
|
})]
|
|
8963
8908
|
}), /* @__PURE__ */ H("div", {
|
|
8964
|
-
className: (0, X.default)(
|
|
8909
|
+
className: (0, X.default)(ml.contentWrapper),
|
|
8965
8910
|
style: t?.containerWrapper,
|
|
8966
8911
|
ref: u,
|
|
8967
8912
|
children: e
|
|
8968
8913
|
})]
|
|
8969
8914
|
})
|
|
8970
8915
|
});
|
|
8971
|
-
},
|
|
8916
|
+
}, gl = ({ children: e, style: t }) => /* @__PURE__ */ H("div", {
|
|
8972
8917
|
style: t,
|
|
8973
8918
|
children: e
|
|
8974
|
-
}),
|
|
8919
|
+
}), _l = {
|
|
8975
8920
|
wrapper: "filters-button-module__wrapper___wgAvR",
|
|
8976
8921
|
count: "filters-button-module__count___9Uazh",
|
|
8977
8922
|
buttonWrapper: "filters-button-module__buttonWrapper___s0HOa",
|
|
8978
8923
|
"close-btn": "filters-button-module__close-btn___COdze"
|
|
8979
|
-
},
|
|
8924
|
+
}, vl = {
|
|
8980
8925
|
"page-tools": "index-module__page-tools___qC1VM",
|
|
8981
8926
|
left: "index-module__left___RQSzE",
|
|
8982
8927
|
right: "index-module__right___xVhib"
|
|
8983
|
-
},
|
|
8928
|
+
}, yl = ({ onClick: e, onClear: t, count: n }) => {
|
|
8984
8929
|
let r = (e) => {
|
|
8985
8930
|
e.stopPropagation(), t();
|
|
8986
8931
|
}, i = o();
|
|
8987
8932
|
return /* @__PURE__ */ H("div", {
|
|
8988
|
-
className:
|
|
8933
|
+
className: _l.buttonWrapper,
|
|
8989
8934
|
children: /* @__PURE__ */ H(G, {
|
|
8990
8935
|
onClick: e,
|
|
8991
8936
|
style: { color: "var(--ant-color-text-tertiary)" },
|
|
@@ -8994,15 +8939,15 @@ var Fc = (e) => {
|
|
|
8994
8939
|
style: { fontSize: 14 }
|
|
8995
8940
|
}),
|
|
8996
8941
|
children: /* @__PURE__ */ U("span", {
|
|
8997
|
-
className:
|
|
8942
|
+
className: _l.wrapper,
|
|
8998
8943
|
children: [
|
|
8999
8944
|
/* @__PURE__ */ H("span", { children: i.formatMessage({ id: "common.filter.label" }) }),
|
|
9000
8945
|
!!n && /* @__PURE__ */ H("span", {
|
|
9001
|
-
className:
|
|
8946
|
+
className: _l.count,
|
|
9002
8947
|
children: n
|
|
9003
8948
|
}),
|
|
9004
8949
|
!!n && /* @__PURE__ */ H("span", {
|
|
9005
|
-
className:
|
|
8950
|
+
className: _l["close-btn"],
|
|
9006
8951
|
onClick: r,
|
|
9007
8952
|
children: /* @__PURE__ */ H(oe, {})
|
|
9008
8953
|
})
|
|
@@ -9010,7 +8955,7 @@ var Fc = (e) => {
|
|
|
9010
8955
|
})
|
|
9011
8956
|
})
|
|
9012
8957
|
});
|
|
9013
|
-
},
|
|
8958
|
+
}, bl = (e) => {
|
|
9014
8959
|
let { left: t, right: n, marginBottom: r = 0, marginTop: i = 30, style: a } = e, o = R(() => {
|
|
9015
8960
|
let e = {};
|
|
9016
8961
|
return e.marginBottom = `${r}px`, e.marginTop = `${i}px`, a && Object.assign(e, a), e;
|
|
@@ -9020,23 +8965,23 @@ var Fc = (e) => {
|
|
|
9020
8965
|
a
|
|
9021
8966
|
]);
|
|
9022
8967
|
return /* @__PURE__ */ U("div", {
|
|
9023
|
-
className:
|
|
8968
|
+
className: vl["page-tools"],
|
|
9024
8969
|
style: o,
|
|
9025
8970
|
children: [/* @__PURE__ */ H("div", {
|
|
9026
|
-
className:
|
|
8971
|
+
className: vl.left,
|
|
9027
8972
|
children: t
|
|
9028
8973
|
}), /* @__PURE__ */ H("div", {
|
|
9029
|
-
className:
|
|
8974
|
+
className: vl.right,
|
|
9030
8975
|
children: n
|
|
9031
8976
|
})]
|
|
9032
8977
|
});
|
|
9033
|
-
},
|
|
8978
|
+
}, xl = (e) => {
|
|
9034
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();
|
|
9035
|
-
return /* @__PURE__ */ H(
|
|
8980
|
+
return /* @__PURE__ */ H(bl, {
|
|
9036
8981
|
marginBottom: m,
|
|
9037
8982
|
marginTop: 0,
|
|
9038
8983
|
left: b || /* @__PURE__ */ U(Et, { children: [
|
|
9039
|
-
S?.show && /* @__PURE__ */ H(
|
|
8984
|
+
S?.show && /* @__PURE__ */ H(yl, {
|
|
9040
8985
|
onClear: S.onClear,
|
|
9041
8986
|
onClick: S.onClick,
|
|
9042
8987
|
count: S.count
|
|
@@ -9096,7 +9041,7 @@ var Fc = (e) => {
|
|
|
9096
9041
|
})]
|
|
9097
9042
|
}))
|
|
9098
9043
|
});
|
|
9099
|
-
},
|
|
9044
|
+
}, Sl = { seal_custom_popover: "index-module__seal_custom_popover___IA6li" }, Cl = (e) => {
|
|
9100
9045
|
let { className: t, children: n, style: r, ...i } = e;
|
|
9101
9046
|
return /* @__PURE__ */ H("div", {
|
|
9102
9047
|
className: "popover-wrapper",
|
|
@@ -9104,11 +9049,11 @@ var Fc = (e) => {
|
|
|
9104
9049
|
...i,
|
|
9105
9050
|
style: { ...r },
|
|
9106
9051
|
"data-maxHeight": "300px",
|
|
9107
|
-
classNames: { root: (0, X.default)(t,
|
|
9052
|
+
classNames: { root: (0, X.default)(t, Sl.seal_custom_popover) },
|
|
9108
9053
|
children: n
|
|
9109
9054
|
})
|
|
9110
9055
|
});
|
|
9111
|
-
},
|
|
9056
|
+
}, wl = M((e) => {
|
|
9112
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]);
|
|
9113
9058
|
F(() => {
|
|
9114
9059
|
s(t || !1);
|
|
@@ -9144,7 +9089,7 @@ var Fc = (e) => {
|
|
|
9144
9089
|
styles: { body: { paddingInline: 12 } },
|
|
9145
9090
|
children: l
|
|
9146
9091
|
}) : l });
|
|
9147
|
-
}),
|
|
9092
|
+
}), Tl = (e) => {
|
|
9148
9093
|
let { options: t, value: n, onChange: r, gap: i = 12 } = e;
|
|
9149
9094
|
return /* @__PURE__ */ H(Et, {
|
|
9150
9095
|
className: "radio-button-wrap",
|
|
@@ -9155,7 +9100,7 @@ var Fc = (e) => {
|
|
|
9155
9100
|
children: e.label
|
|
9156
9101
|
}, e.value))
|
|
9157
9102
|
});
|
|
9158
|
-
},
|
|
9103
|
+
}, El = ({ defaultSpan: e = 8, dataList: t, renderItem: n, resizable: r = !0 }) => {
|
|
9159
9104
|
let { span: i, handleResize: a } = fa({ defaultSpan: e });
|
|
9160
9105
|
return /* @__PURE__ */ H(di, {
|
|
9161
9106
|
onResize: a,
|
|
@@ -9171,7 +9116,7 @@ var Fc = (e) => {
|
|
|
9171
9116
|
};
|
|
9172
9117
|
//#endregion
|
|
9173
9118
|
//#region src/lib/components/scroll-spy-tabs/use-field-scroll.ts
|
|
9174
|
-
function
|
|
9119
|
+
function Dl({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r = 300, segmentedTop: i = {
|
|
9175
9120
|
top: 0,
|
|
9176
9121
|
offsetTop: 96
|
|
9177
9122
|
}, getScrollElementScrollableHeight: a }) {
|
|
@@ -9209,15 +9154,15 @@ function Ol({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r =
|
|
|
9209
9154
|
}
|
|
9210
9155
|
//#endregion
|
|
9211
9156
|
//#region src/lib/components/scroll-spy-tabs/index.tsx
|
|
9212
|
-
var
|
|
9157
|
+
var Ol = Y.div`
|
|
9213
9158
|
position: sticky;
|
|
9214
9159
|
top: ${(e) => e.$top || 0}px;
|
|
9215
9160
|
z-index: 10;
|
|
9216
9161
|
margin-bottom: 16px;
|
|
9217
9162
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9218
9163
|
background-color: var(--ant-color-bg-elevated);
|
|
9219
|
-
`,
|
|
9220
|
-
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({
|
|
9221
9166
|
activeKey: i,
|
|
9222
9167
|
setActiveKey: a,
|
|
9223
9168
|
segmentOptions: n,
|
|
@@ -9229,7 +9174,7 @@ var kl = Y.div`
|
|
|
9229
9174
|
f(e);
|
|
9230
9175
|
};
|
|
9231
9176
|
return I(s, () => ({ handleTargetChange: p })), /* @__PURE__ */ U("div", { children: [
|
|
9232
|
-
n.length > 0 && /* @__PURE__ */ H(
|
|
9177
|
+
n.length > 0 && /* @__PURE__ */ H(Ol, {
|
|
9233
9178
|
$top: t.top,
|
|
9234
9179
|
children: /* @__PURE__ */ H(Ia, {
|
|
9235
9180
|
theme: "light",
|
|
@@ -9245,7 +9190,7 @@ var kl = Y.div`
|
|
|
9245
9190
|
style: { height: d }
|
|
9246
9191
|
})
|
|
9247
9192
|
] });
|
|
9248
|
-
}),
|
|
9193
|
+
}), Al = (e) => {
|
|
9249
9194
|
let { requiredFields: t, onTargetChange: n, updateActiveKey: r } = e;
|
|
9250
9195
|
return { handleOnFinishFailed: (e) => {
|
|
9251
9196
|
let { errorFields: i } = e;
|
|
@@ -9259,7 +9204,7 @@ var kl = Y.div`
|
|
|
9259
9204
|
}), e.length > 0 && (r(e.sort((e, t) => e.sort - t.sort).map((e) => e.key)), n(e[0].key));
|
|
9260
9205
|
}
|
|
9261
9206
|
} };
|
|
9262
|
-
},
|
|
9207
|
+
}, jl = (e) => {
|
|
9263
9208
|
let [t, n] = B(e.initalActiveKeys), [r, i] = B(e.initialCollapseKeys || e.initalActiveKeys);
|
|
9264
9209
|
return {
|
|
9265
9210
|
activeKey: t,
|
|
@@ -9276,14 +9221,14 @@ var kl = Y.div`
|
|
|
9276
9221
|
n((t) => [...new Set([...t, ...e])]), i((t) => [...new Set([...t, ...e])]);
|
|
9277
9222
|
}
|
|
9278
9223
|
};
|
|
9279
|
-
},
|
|
9224
|
+
}, Ml = O({ scrollToBottom: () => {} }), Nl = Y.div`
|
|
9280
9225
|
display: flex;
|
|
9281
9226
|
align-items: center;
|
|
9282
9227
|
max-width: 360px;
|
|
9283
9228
|
text-overflow: ellipsis;
|
|
9284
9229
|
overflow: hidden;
|
|
9285
9230
|
white-space: nowrap;
|
|
9286
|
-
`,
|
|
9231
|
+
`, Pl = (e) => {
|
|
9287
9232
|
let t = E.useRef(null), { saveScrollHeight: n, restoreScrollHeight: r } = Ii(), { initialize: i, destroyInstance: a, scrollToBottom: o } = d();
|
|
9288
9233
|
return E.useEffect(() => {
|
|
9289
9234
|
e.open ? n() : r();
|
|
@@ -9295,7 +9240,7 @@ var kl = Y.div`
|
|
|
9295
9240
|
n && clearTimeout(n), a();
|
|
9296
9241
|
};
|
|
9297
9242
|
}, [e.open, i]), /* @__PURE__ */ H(_t, {
|
|
9298
|
-
title: /* @__PURE__ */ H(
|
|
9243
|
+
title: /* @__PURE__ */ H(Nl, { children: e.title }),
|
|
9299
9244
|
destroyOnHidden: !0,
|
|
9300
9245
|
styles: {
|
|
9301
9246
|
container: { padding: 0 },
|
|
@@ -9314,7 +9259,7 @@ var kl = Y.div`
|
|
|
9314
9259
|
} : {}
|
|
9315
9260
|
},
|
|
9316
9261
|
...e,
|
|
9317
|
-
children: /* @__PURE__ */ H(
|
|
9262
|
+
children: /* @__PURE__ */ H(Ml.Provider, {
|
|
9318
9263
|
value: { scrollToBottom: o },
|
|
9319
9264
|
children: /* @__PURE__ */ H("div", {
|
|
9320
9265
|
ref: t,
|
|
@@ -9332,11 +9277,11 @@ var kl = Y.div`
|
|
|
9332
9277
|
})
|
|
9333
9278
|
})
|
|
9334
9279
|
});
|
|
9335
|
-
},
|
|
9280
|
+
}, Fl = Y.ul`
|
|
9336
9281
|
list-style: none;
|
|
9337
9282
|
margin: 0;
|
|
9338
9283
|
padding: 0;
|
|
9339
|
-
`,
|
|
9284
|
+
`, Il = Y.li`
|
|
9340
9285
|
display: flex;
|
|
9341
9286
|
align-items: center;
|
|
9342
9287
|
padding: 5px 12px;
|
|
@@ -9346,7 +9291,7 @@ var kl = Y.div`
|
|
|
9346
9291
|
&:hover {
|
|
9347
9292
|
background-color: var(--ant-control-item-bg-hover);
|
|
9348
9293
|
}
|
|
9349
|
-
`,
|
|
9294
|
+
`, Ll = ({ maxHeight: e, dataList: t, value: n = [], onChange: r, renderTitle: i }) => {
|
|
9350
9295
|
let a = (e) => {
|
|
9351
9296
|
let t = e.key;
|
|
9352
9297
|
r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
@@ -9354,7 +9299,7 @@ var kl = Y.div`
|
|
|
9354
9299
|
return /* @__PURE__ */ H(l, {
|
|
9355
9300
|
style: { paddingInline: 0 },
|
|
9356
9301
|
maxHeight: e,
|
|
9357
|
-
children: /* @__PURE__ */ H(
|
|
9302
|
+
children: /* @__PURE__ */ H(Fl, { children: t.map((e) => /* @__PURE__ */ U(Il, {
|
|
9358
9303
|
selected: n.includes(e.key),
|
|
9359
9304
|
onClick: () => a(e),
|
|
9360
9305
|
children: [/* @__PURE__ */ H(K, { checked: n.includes(e.key) }), i ? i(e) : /* @__PURE__ */ H(f, {
|
|
@@ -9363,14 +9308,14 @@ var kl = Y.div`
|
|
|
9363
9308
|
})]
|
|
9364
9309
|
}, e.key)) })
|
|
9365
9310
|
});
|
|
9366
|
-
},
|
|
9311
|
+
}, Rl = Y.div`
|
|
9367
9312
|
border: 1px solid var(--ant-color-border);
|
|
9368
9313
|
border-radius: var(--ant-border-radius);
|
|
9369
9314
|
overflow-y: auto;
|
|
9370
9315
|
max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
|
|
9371
|
-
`,
|
|
9316
|
+
`, zl = Y.div`
|
|
9372
9317
|
padding: 0;
|
|
9373
|
-
`,
|
|
9318
|
+
`, Bl = Y.div`
|
|
9374
9319
|
padding: 8px 12px 8px;
|
|
9375
9320
|
display: flex;
|
|
9376
9321
|
gap: 8px;
|
|
@@ -9378,7 +9323,7 @@ var kl = Y.div`
|
|
|
9378
9323
|
justify-content: space-between;
|
|
9379
9324
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9380
9325
|
background-color: var(--ant-color-fill-alter);
|
|
9381
|
-
`,
|
|
9326
|
+
`, Vl = ({ height: e = 300, leftWidth: t = 260, options: n, value: r = [], searchPlaceholder: i, notFoundContent: a, onChange: s, styles: c }) => {
|
|
9382
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) => {
|
|
9383
9328
|
h(e.target.value);
|
|
9384
9329
|
}, v = (e) => {
|
|
@@ -9400,11 +9345,11 @@ var kl = Y.div`
|
|
|
9400
9345
|
};
|
|
9401
9346
|
return F(() => {
|
|
9402
9347
|
y(r);
|
|
9403
|
-
}, [r, n]), /* @__PURE__ */ H(
|
|
9348
|
+
}, [r, n]), /* @__PURE__ */ H(Rl, {
|
|
9404
9349
|
$maxHeight: e,
|
|
9405
9350
|
$leftWidth: t,
|
|
9406
9351
|
style: c?.container,
|
|
9407
|
-
children: /* @__PURE__ */ U(
|
|
9352
|
+
children: /* @__PURE__ */ U(zl, { children: [/* @__PURE__ */ U(Bl, {
|
|
9408
9353
|
style: c?.header,
|
|
9409
9354
|
children: [/* @__PURE__ */ U("span", {
|
|
9410
9355
|
style: {
|
|
@@ -9432,7 +9377,7 @@ var kl = Y.div`
|
|
|
9432
9377
|
},
|
|
9433
9378
|
onChange: _
|
|
9434
9379
|
})]
|
|
9435
|
-
}), g.length > 0 ? /* @__PURE__ */ H(
|
|
9380
|
+
}), g.length > 0 ? /* @__PURE__ */ H(Ll, {
|
|
9436
9381
|
maxHeight: e - 50,
|
|
9437
9382
|
dataList: g,
|
|
9438
9383
|
value: r,
|
|
@@ -9444,7 +9389,7 @@ var kl = Y.div`
|
|
|
9444
9389
|
description: a
|
|
9445
9390
|
})] })
|
|
9446
9391
|
});
|
|
9447
|
-
},
|
|
9392
|
+
}, Hl = [
|
|
9448
9393
|
{
|
|
9449
9394
|
scope: "playground",
|
|
9450
9395
|
command: "shortcuts.playground.newmessage",
|
|
@@ -9490,8 +9435,8 @@ var kl = Y.div`
|
|
|
9490
9435
|
command: "shortcuts.users.new",
|
|
9491
9436
|
keybinding: Fs.CREATE.iconKeybinding
|
|
9492
9437
|
}
|
|
9493
|
-
],
|
|
9494
|
-
let [t, n] = E.useState(
|
|
9438
|
+
], Ul = ({ intl: e }) => {
|
|
9439
|
+
let [t, n] = E.useState(Hl), r = [
|
|
9495
9440
|
{
|
|
9496
9441
|
title: "Scope",
|
|
9497
9442
|
dataIndex: "scope",
|
|
@@ -9513,7 +9458,7 @@ var kl = Y.div`
|
|
|
9513
9458
|
}
|
|
9514
9459
|
], i = Z.default.debounce((e) => {
|
|
9515
9460
|
let t = e.target.value;
|
|
9516
|
-
n(Z.default.filter(
|
|
9461
|
+
n(Z.default.filter(Hl, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
|
|
9517
9462
|
}, 300);
|
|
9518
9463
|
return /* @__PURE__ */ U("div", {
|
|
9519
9464
|
className: "short-cuts",
|
|
@@ -9547,82 +9492,82 @@ var kl = Y.div`
|
|
|
9547
9492
|
};
|
|
9548
9493
|
//#endregion
|
|
9549
9494
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
9550
|
-
function
|
|
9495
|
+
function Wl(e) {
|
|
9551
9496
|
var t = typeof e;
|
|
9552
9497
|
return e != null && (t == "object" || t == "function");
|
|
9553
9498
|
}
|
|
9554
9499
|
//#endregion
|
|
9555
9500
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
9556
|
-
var
|
|
9557
|
-
return
|
|
9558
|
-
},
|
|
9559
|
-
function
|
|
9560
|
-
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)););
|
|
9561
9506
|
return t;
|
|
9562
9507
|
}
|
|
9563
9508
|
//#endregion
|
|
9564
9509
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
9565
|
-
var
|
|
9566
|
-
function
|
|
9567
|
-
return e && e.slice(0,
|
|
9510
|
+
var Zl = /^\s+/;
|
|
9511
|
+
function Ql(e) {
|
|
9512
|
+
return e && e.slice(0, Xl(e) + 1).replace(Zl, "");
|
|
9568
9513
|
}
|
|
9569
9514
|
//#endregion
|
|
9570
9515
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
9571
|
-
var
|
|
9572
|
-
function
|
|
9573
|
-
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];
|
|
9574
9519
|
try {
|
|
9575
|
-
e[
|
|
9520
|
+
e[ru] = void 0;
|
|
9576
9521
|
var r = !0;
|
|
9577
9522
|
} catch {}
|
|
9578
|
-
var i =
|
|
9579
|
-
return r && (t ? e[
|
|
9523
|
+
var i = nu.call(e);
|
|
9524
|
+
return r && (t ? e[ru] = n : delete e[ru]), i;
|
|
9580
9525
|
}
|
|
9581
9526
|
//#endregion
|
|
9582
9527
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
9583
|
-
var
|
|
9584
|
-
function
|
|
9585
|
-
return
|
|
9528
|
+
var au = Object.prototype.toString;
|
|
9529
|
+
function ou(e) {
|
|
9530
|
+
return au.call(e);
|
|
9586
9531
|
}
|
|
9587
9532
|
//#endregion
|
|
9588
9533
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
9589
|
-
var
|
|
9590
|
-
function
|
|
9591
|
-
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);
|
|
9592
9537
|
}
|
|
9593
9538
|
//#endregion
|
|
9594
9539
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
9595
|
-
function
|
|
9540
|
+
function du(e) {
|
|
9596
9541
|
return typeof e == "object" && !!e;
|
|
9597
9542
|
}
|
|
9598
9543
|
//#endregion
|
|
9599
9544
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
9600
|
-
var
|
|
9601
|
-
function
|
|
9602
|
-
return typeof e == "symbol" ||
|
|
9545
|
+
var fu = "[object Symbol]";
|
|
9546
|
+
function pu(e) {
|
|
9547
|
+
return typeof e == "symbol" || du(e) && uu(e) == fu;
|
|
9603
9548
|
}
|
|
9604
9549
|
//#endregion
|
|
9605
9550
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
9606
|
-
var
|
|
9607
|
-
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) {
|
|
9608
9553
|
if (typeof e == "number") return e;
|
|
9609
|
-
if (
|
|
9610
|
-
if (
|
|
9554
|
+
if (pu(e)) return mu;
|
|
9555
|
+
if (Wl(e)) {
|
|
9611
9556
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
9612
|
-
e =
|
|
9557
|
+
e = Wl(t) ? t + "" : t;
|
|
9613
9558
|
}
|
|
9614
9559
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
9615
|
-
e =
|
|
9616
|
-
var n =
|
|
9617
|
-
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;
|
|
9618
9563
|
}
|
|
9619
9564
|
//#endregion
|
|
9620
9565
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
9621
|
-
var
|
|
9622
|
-
function
|
|
9566
|
+
var bu = "Expected a function", xu = Math.max, Su = Math.min;
|
|
9567
|
+
function Cu(e, t, n) {
|
|
9623
9568
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
9624
|
-
if (typeof e != "function") throw TypeError(
|
|
9625
|
-
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);
|
|
9626
9571
|
function p(t) {
|
|
9627
9572
|
var n = r, a = i;
|
|
9628
9573
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -9632,14 +9577,14 @@ function wu(e, t, n) {
|
|
|
9632
9577
|
}
|
|
9633
9578
|
function h(e) {
|
|
9634
9579
|
var n = e - c, r = e - l, i = t - n;
|
|
9635
|
-
return d ?
|
|
9580
|
+
return d ? Su(i, a - r) : i;
|
|
9636
9581
|
}
|
|
9637
9582
|
function g(e) {
|
|
9638
9583
|
var n = e - c, r = e - l;
|
|
9639
9584
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
9640
9585
|
}
|
|
9641
9586
|
function _() {
|
|
9642
|
-
var e =
|
|
9587
|
+
var e = Jl();
|
|
9643
9588
|
if (g(e)) return v(e);
|
|
9644
9589
|
s = setTimeout(_, h(e));
|
|
9645
9590
|
}
|
|
@@ -9650,10 +9595,10 @@ function wu(e, t, n) {
|
|
|
9650
9595
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
9651
9596
|
}
|
|
9652
9597
|
function b() {
|
|
9653
|
-
return s === void 0 ? o : v(
|
|
9598
|
+
return s === void 0 ? o : v(Jl());
|
|
9654
9599
|
}
|
|
9655
9600
|
function x() {
|
|
9656
|
-
var e =
|
|
9601
|
+
var e = Jl(), n = g(e);
|
|
9657
9602
|
if (r = arguments, i = this, c = e, n) {
|
|
9658
9603
|
if (s === void 0) return m(c);
|
|
9659
9604
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -9664,11 +9609,11 @@ function wu(e, t, n) {
|
|
|
9664
9609
|
}
|
|
9665
9610
|
//#endregion
|
|
9666
9611
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
9667
|
-
var
|
|
9668
|
-
function
|
|
9612
|
+
var wu = "Expected a function";
|
|
9613
|
+
function Tu(e, t, n) {
|
|
9669
9614
|
var r = !0, i = !0;
|
|
9670
|
-
if (typeof e != "function") throw TypeError(
|
|
9671
|
-
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, {
|
|
9672
9617
|
leading: r,
|
|
9673
9618
|
maxWait: t,
|
|
9674
9619
|
trailing: i
|
|
@@ -9676,19 +9621,19 @@ function Eu(e, t, n) {
|
|
|
9676
9621
|
}
|
|
9677
9622
|
//#endregion
|
|
9678
9623
|
//#region ../../node_modules/.pnpm/simplebar-core@1.3.2/node_modules/simplebar-core/dist/index.mjs
|
|
9679
|
-
var
|
|
9680
|
-
return
|
|
9624
|
+
var Eu = function() {
|
|
9625
|
+
return Eu = Object.assign || function(e) {
|
|
9681
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]);
|
|
9682
9627
|
return e;
|
|
9683
|
-
},
|
|
9628
|
+
}, Eu.apply(this, arguments);
|
|
9684
9629
|
};
|
|
9685
|
-
function
|
|
9630
|
+
function Du(e) {
|
|
9686
9631
|
return !e || !e.ownerDocument || !e.ownerDocument.defaultView ? window : e.ownerDocument.defaultView;
|
|
9687
9632
|
}
|
|
9688
|
-
function
|
|
9633
|
+
function Ou(e) {
|
|
9689
9634
|
return !e || !e.ownerDocument ? document : e.ownerDocument;
|
|
9690
9635
|
}
|
|
9691
|
-
var
|
|
9636
|
+
var ku = function(e) {
|
|
9692
9637
|
return Array.prototype.reduce.call(e, function(e, t) {
|
|
9693
9638
|
var n = t.name.match(/data-simplebar-(.+)/);
|
|
9694
9639
|
if (n) {
|
|
@@ -9711,58 +9656,58 @@ var Au = function(e) {
|
|
|
9711
9656
|
return e;
|
|
9712
9657
|
}, {});
|
|
9713
9658
|
};
|
|
9714
|
-
function
|
|
9659
|
+
function Au(e, t) {
|
|
9715
9660
|
var n;
|
|
9716
9661
|
e && (n = e.classList).add.apply(n, t.split(" "));
|
|
9717
9662
|
}
|
|
9718
|
-
function
|
|
9663
|
+
function ju(e, t) {
|
|
9719
9664
|
e && t.split(" ").forEach(function(t) {
|
|
9720
9665
|
e.classList.remove(t);
|
|
9721
9666
|
});
|
|
9722
9667
|
}
|
|
9723
|
-
function
|
|
9668
|
+
function Mu(e) {
|
|
9724
9669
|
return `.${e.split(" ").join(".")}`;
|
|
9725
9670
|
}
|
|
9726
|
-
var
|
|
9671
|
+
var Nu = !!(typeof window < "u" && window.document && window.document.createElement), Pu = /* @__PURE__ */ Object.freeze({
|
|
9727
9672
|
__proto__: null,
|
|
9728
|
-
addClasses:
|
|
9729
|
-
canUseDOM:
|
|
9730
|
-
classNamesToQuery:
|
|
9731
|
-
getElementDocument:
|
|
9732
|
-
getElementWindow:
|
|
9733
|
-
getOptions:
|
|
9734
|
-
removeClasses:
|
|
9735
|
-
}),
|
|
9736
|
-
|
|
9737
|
-
|
|
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);
|
|
9738
9683
|
});
|
|
9739
|
-
function
|
|
9740
|
-
if (
|
|
9741
|
-
if (typeof document > "u") return
|
|
9684
|
+
function Lu() {
|
|
9685
|
+
if (Fu === null) {
|
|
9686
|
+
if (typeof document > "u") return Fu = 0, Fu;
|
|
9742
9687
|
var e = document.body, t = document.createElement("div");
|
|
9743
9688
|
t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
|
|
9744
9689
|
var n = t.getBoundingClientRect().right;
|
|
9745
|
-
e.removeChild(t),
|
|
9690
|
+
e.removeChild(t), Fu = n;
|
|
9746
9691
|
}
|
|
9747
|
-
return
|
|
9692
|
+
return Fu;
|
|
9748
9693
|
}
|
|
9749
|
-
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() {
|
|
9750
9695
|
function e(t, n) {
|
|
9751
9696
|
n === void 0 && (n = {});
|
|
9752
9697
|
var r = this;
|
|
9753
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() {
|
|
9754
|
-
var e =
|
|
9755
|
-
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();
|
|
9756
9701
|
}, this.scrollX = function() {
|
|
9757
9702
|
r.axis.x.isOverflowing && r.positionScrollbar("x"), r.scrollXTicking = !1;
|
|
9758
9703
|
}, this.scrollY = function() {
|
|
9759
9704
|
r.axis.y.isOverflowing && r.positionScrollbar("y"), r.scrollYTicking = !1;
|
|
9760
9705
|
}, this._onStopScrolling = function() {
|
|
9761
|
-
|
|
9706
|
+
Hu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
|
|
9762
9707
|
}, this.onMouseEnter = function() {
|
|
9763
|
-
r.isMouseEntering ||= (
|
|
9708
|
+
r.isMouseEntering ||= (Vu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
|
|
9764
9709
|
}, this._onMouseEntered = function() {
|
|
9765
|
-
|
|
9710
|
+
Hu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
|
|
9766
9711
|
}, this._onMouseMove = function(e) {
|
|
9767
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");
|
|
9768
9713
|
}, this.onMouseLeave = function() {
|
|
@@ -9785,13 +9730,13 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9785
9730
|
}
|
|
9786
9731
|
}, this.onEndDrag = function(e) {
|
|
9787
9732
|
r.isDragging = !1;
|
|
9788
|
-
var t =
|
|
9789
|
-
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() {
|
|
9790
9735
|
t.removeEventListener("click", r.preventClick, !0), t.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
|
|
9791
9736
|
});
|
|
9792
9737
|
}, this.preventClick = function(e) {
|
|
9793
9738
|
e.preventDefault(), e.stopPropagation();
|
|
9794
|
-
}, 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 = {
|
|
9795
9740
|
x: {
|
|
9796
9741
|
scrollOffsetAttr: "scrollLeft",
|
|
9797
9742
|
sizeAttr: "width",
|
|
@@ -9839,7 +9784,7 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9839
9784
|
}
|
|
9840
9785
|
}
|
|
9841
9786
|
}, typeof this.el != "object" || !this.el.nodeName) throw Error(`Argument passed to SimpleBar must be an HTML element instead of ${this.el}`);
|
|
9842
|
-
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();
|
|
9843
9788
|
}
|
|
9844
9789
|
return e.getRtlHelpers = function() {
|
|
9845
9790
|
if (e.rtlHelpers) return e.rtlHelpers;
|
|
@@ -9857,22 +9802,22 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9857
9802
|
}, e.rtlHelpers;
|
|
9858
9803
|
}, e.prototype.getScrollbarWidth = function() {
|
|
9859
9804
|
try {
|
|
9860
|
-
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();
|
|
9861
9806
|
} catch {
|
|
9862
|
-
return
|
|
9807
|
+
return Lu();
|
|
9863
9808
|
}
|
|
9864
9809
|
}, e.getOffset = function(e) {
|
|
9865
|
-
var t = e.getBoundingClientRect(), n =
|
|
9810
|
+
var t = e.getBoundingClientRect(), n = zu(e), r = Ru(e);
|
|
9866
9811
|
return {
|
|
9867
9812
|
top: t.top + (r.pageYOffset || n.documentElement.scrollTop),
|
|
9868
9813
|
left: t.left + (r.pageXOffset || n.documentElement.scrollLeft)
|
|
9869
9814
|
};
|
|
9870
9815
|
}, e.prototype.init = function() {
|
|
9871
|
-
|
|
9816
|
+
Nu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
9872
9817
|
}, e.prototype.initDOM = function() {
|
|
9873
|
-
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));
|
|
9874
9819
|
}, e.prototype.initListeners = function() {
|
|
9875
|
-
var e = this, t, n =
|
|
9820
|
+
var e = this, t, n = Ru(this.el);
|
|
9876
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) {
|
|
9877
9822
|
if (window.ResizeObserver) {
|
|
9878
9823
|
var r = !1, i = n.ResizeObserver || ResizeObserver;
|
|
@@ -9896,7 +9841,7 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9896
9841
|
}
|
|
9897
9842
|
}, e.prototype.recalculate = function() {
|
|
9898
9843
|
if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
|
|
9899
|
-
var e =
|
|
9844
|
+
var e = Ru(this.el);
|
|
9900
9845
|
this.elStyles = e.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
9901
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;
|
|
9902
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}`;
|
|
@@ -9925,28 +9870,28 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9925
9870
|
var t = this.axis[e].track.el, n = this.axis[e].scrollbar.el;
|
|
9926
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");
|
|
9927
9872
|
}, e.prototype.showScrollbar = function(e) {
|
|
9928
|
-
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);
|
|
9929
9874
|
}, e.prototype.hideScrollbar = function(e) {
|
|
9930
|
-
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);
|
|
9931
9876
|
}, e.prototype.hideNativeScrollbar = function() {
|
|
9932
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");
|
|
9933
9878
|
}, e.prototype.onMouseMoveForAxis = function(e) {
|
|
9934
9879
|
e === void 0 && (e = "y");
|
|
9935
9880
|
var t = this.axis[e];
|
|
9936
|
-
!t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e),
|
|
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)));
|
|
9937
9882
|
}, e.prototype.onMouseLeaveForAxis = function(e) {
|
|
9938
|
-
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);
|
|
9939
9884
|
}, e.prototype.onDragStart = function(e, t) {
|
|
9940
9885
|
t === void 0 && (t = "y"), this.isDragging = !0;
|
|
9941
|
-
var n =
|
|
9942
|
-
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);
|
|
9943
9888
|
}, e.prototype.onTrackClick = function(e, t) {
|
|
9944
9889
|
var n = this;
|
|
9945
9890
|
t === void 0 && (t = "y");
|
|
9946
9891
|
var r = this.axis[t];
|
|
9947
9892
|
if (!(!this.options.clickOnTrack || !r.scrollbar.el || !this.contentWrapperEl)) {
|
|
9948
9893
|
e.preventDefault();
|
|
9949
|
-
var i =
|
|
9894
|
+
var i = Ru(this.el);
|
|
9950
9895
|
this.axis[t].scrollbar.rect = r.scrollbar.el.getBoundingClientRect();
|
|
9951
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() {
|
|
9952
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)));
|
|
@@ -9958,7 +9903,7 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9958
9903
|
}, e.prototype.getScrollElement = function() {
|
|
9959
9904
|
return this.contentWrapperEl;
|
|
9960
9905
|
}, e.prototype.removeListeners = function() {
|
|
9961
|
-
var e =
|
|
9906
|
+
var e = Ru(this.el);
|
|
9962
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();
|
|
9963
9908
|
}, e.prototype.unMount = function() {
|
|
9964
9909
|
this.removeListeners();
|
|
@@ -9999,52 +9944,52 @@ var zu = Ou, Bu = ku, Vu = Au, Hu = ju, Uu = Mu, Wu = Nu, Gu = function() {
|
|
|
9999
9944
|
scrollableNode: null,
|
|
10000
9945
|
contentNode: null,
|
|
10001
9946
|
autoHide: !0
|
|
10002
|
-
}, e.getOptions =
|
|
10003
|
-
}(),
|
|
10004
|
-
return
|
|
9947
|
+
}, e.getOptions = Bu, e.helpers = Pu, e;
|
|
9948
|
+
}(), Gu = function() {
|
|
9949
|
+
return Gu = Object.assign || function(e) {
|
|
10005
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]);
|
|
10006
9951
|
return e;
|
|
10007
|
-
},
|
|
9952
|
+
}, Gu.apply(this, arguments);
|
|
10008
9953
|
};
|
|
10009
|
-
function
|
|
9954
|
+
function Ku(e, t) {
|
|
10010
9955
|
var n = {};
|
|
10011
9956
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
10012
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]]);
|
|
10013
9958
|
return n;
|
|
10014
9959
|
}
|
|
10015
|
-
var
|
|
10016
|
-
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 = {};
|
|
10017
9962
|
Object.keys(a).forEach(function(e) {
|
|
10018
|
-
Object.prototype.hasOwnProperty.call(
|
|
9963
|
+
Object.prototype.hasOwnProperty.call(Wu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
|
|
10019
9964
|
});
|
|
10020
|
-
var d =
|
|
9965
|
+
var d = Gu(Gu({}, Wu.defaultOptions.classNames), l.classNames), f = Gu(Gu({}, i), {
|
|
10021
9966
|
className: `${d.contentWrapper}${i.className ? ` ${i.className}` : ""}`,
|
|
10022
|
-
tabIndex: l.tabIndex ||
|
|
9967
|
+
tabIndex: l.tabIndex || Wu.defaultOptions.tabIndex,
|
|
10023
9968
|
role: "region",
|
|
10024
|
-
"aria-label": l.ariaLabel ||
|
|
9969
|
+
"aria-label": l.ariaLabel || Wu.defaultOptions.ariaLabel
|
|
10025
9970
|
});
|
|
10026
9971
|
return T.useEffect(function() {
|
|
10027
9972
|
var e;
|
|
10028
|
-
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() {
|
|
10029
9974
|
e?.unMount(), e = null, typeof t == "function" && t(null);
|
|
10030
9975
|
};
|
|
10031
|
-
}, []), T.createElement("div",
|
|
9976
|
+
}, []), T.createElement("div", Gu({
|
|
10032
9977
|
"data-simplebar": "init",
|
|
10033
9978
|
ref: o
|
|
10034
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({
|
|
10035
9980
|
scrollableNodeRef: s,
|
|
10036
|
-
scrollableNodeProps:
|
|
9981
|
+
scrollableNodeProps: Gu(Gu({}, f), { ref: s }),
|
|
10037
9982
|
contentNodeRef: c,
|
|
10038
9983
|
contentNodeProps: {
|
|
10039
9984
|
className: d.contentEl,
|
|
10040
9985
|
ref: c
|
|
10041
9986
|
}
|
|
10042
|
-
}) : 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 })));
|
|
10043
9988
|
});
|
|
10044
|
-
|
|
9989
|
+
qu.displayName = "SimpleBar";
|
|
10045
9990
|
//#endregion
|
|
10046
9991
|
//#region src/lib/components/simple-overlay/index.tsx
|
|
10047
|
-
var
|
|
9992
|
+
var Ju = Y.div`
|
|
10048
9993
|
.simplebar-scrollbar::before {
|
|
10049
9994
|
width: var(--scrollbar-size);
|
|
10050
9995
|
background: var(--scrollbar-handle-bg);
|
|
@@ -10055,7 +10000,7 @@ var Yu = Y.div`
|
|
|
10055
10000
|
background: var(--scrollbar-handle-light-bg);
|
|
10056
10001
|
}
|
|
10057
10002
|
}
|
|
10058
|
-
`,
|
|
10003
|
+
`, Yu = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: i }) => {
|
|
10059
10004
|
let { config: o } = a(), { isDarkTheme: s } = o, c = E.useRef(null);
|
|
10060
10005
|
return F(() => {
|
|
10061
10006
|
let e = (e) => {
|
|
@@ -10069,9 +10014,9 @@ var Yu = Y.div`
|
|
|
10069
10014
|
e,
|
|
10070
10015
|
r,
|
|
10071
10016
|
i
|
|
10072
|
-
]), /* @__PURE__ */ H(
|
|
10017
|
+
]), /* @__PURE__ */ H(Ju, {
|
|
10073
10018
|
className: s ? "dark" : "light",
|
|
10074
|
-
children: /* @__PURE__ */ H(
|
|
10019
|
+
children: /* @__PURE__ */ H(qu, {
|
|
10075
10020
|
ref: c,
|
|
10076
10021
|
style: {
|
|
10077
10022
|
height: e,
|
|
@@ -10080,13 +10025,13 @@ var Yu = Y.div`
|
|
|
10080
10025
|
children: t
|
|
10081
10026
|
})
|
|
10082
10027
|
});
|
|
10083
|
-
},
|
|
10028
|
+
}, Xu = E.memo(({ columns: e }) => {
|
|
10084
10029
|
let t = o();
|
|
10085
10030
|
return /* @__PURE__ */ H("tr", { children: e.map((e, n) => /* @__PURE__ */ H("th", { children: /* @__PURE__ */ H("span", {
|
|
10086
10031
|
className: "cell-span cell-header",
|
|
10087
10032
|
children: e.locale ? t.formatMessage({ id: e.title }) : e.title
|
|
10088
10033
|
}) }, n)) });
|
|
10089
|
-
}),
|
|
10034
|
+
}), Zu = (e) => {
|
|
10090
10035
|
let { row: t, column: n, rowIndex: r, colIndex: i, dataList: a } = e;
|
|
10091
10036
|
return R(() => n.render ? n.render({
|
|
10092
10037
|
dataIndex: n.key,
|
|
@@ -10128,24 +10073,24 @@ var Yu = Y.div`
|
|
|
10128
10073
|
}) : t[n.key]
|
|
10129
10074
|
})
|
|
10130
10075
|
}, i);
|
|
10131
|
-
},
|
|
10076
|
+
}, Qu = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Zu, {
|
|
10132
10077
|
rowIndex: n,
|
|
10133
10078
|
colIndex: i,
|
|
10134
10079
|
dataList: r,
|
|
10135
10080
|
row: e,
|
|
10136
10081
|
column: t
|
|
10137
|
-
}, i)) }),
|
|
10082
|
+
}, i)) }), $u = (e) => {
|
|
10138
10083
|
let { columns: t, dataSource: n, rowKey: r, theme: i, bordered: a = !0 } = e;
|
|
10139
10084
|
return /* @__PURE__ */ H("div", { children: /* @__PURE__ */ U("table", {
|
|
10140
10085
|
className: (0, X.default)("simple-table", i, { "simple-table-bordered": a }),
|
|
10141
|
-
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, {
|
|
10142
10087
|
row: e,
|
|
10143
10088
|
rowIndex: i,
|
|
10144
10089
|
columns: t,
|
|
10145
10090
|
dataList: n
|
|
10146
10091
|
}, e[r])) })]
|
|
10147
10092
|
}) });
|
|
10148
|
-
},
|
|
10093
|
+
}, ed = (e) => {
|
|
10149
10094
|
let { data: t, fieldList: n, style: r } = e, i = o();
|
|
10150
10095
|
return /* @__PURE__ */ H("span", {
|
|
10151
10096
|
className: "flex",
|
|
@@ -10169,7 +10114,7 @@ var Yu = Y.div`
|
|
|
10169
10114
|
}) : null]
|
|
10170
10115
|
}, e.key || r))
|
|
10171
10116
|
});
|
|
10172
|
-
},
|
|
10117
|
+
}, td = A((e, t) => {
|
|
10173
10118
|
let { autoplay: n = !1 } = e, r = E.useRef(null), i = z(null), a = z(null), o = z(null), s = N(() => {
|
|
10174
10119
|
i.current = new (window.AudioContext || window.webkitAudioContext)(), a.current = i.current.createAnalyser(), a.current.fftSize = 512, o.current = new Uint8Array(a.current.frequencyBinCount);
|
|
10175
10120
|
}, []), c = N(() => {
|
|
@@ -10235,7 +10180,7 @@ var Yu = Y.div`
|
|
|
10235
10180
|
},
|
|
10236
10181
|
preload: "metadata"
|
|
10237
10182
|
});
|
|
10238
|
-
}),
|
|
10183
|
+
}), nd = A((e, t) => {
|
|
10239
10184
|
let { isStream: n } = e;
|
|
10240
10185
|
console.log("Rendering SpeechItem with props:", e.isStream, e.analyserData);
|
|
10241
10186
|
let r = o(), [i, a] = B(e.autoplay || e.isPlaying), [s, c] = B(0), [l, u] = B({
|
|
@@ -10353,7 +10298,7 @@ var Yu = Y.div`
|
|
|
10353
10298
|
width: "100%"
|
|
10354
10299
|
},
|
|
10355
10300
|
ref: h,
|
|
10356
|
-
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(
|
|
10301
|
+
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(td, {
|
|
10357
10302
|
...e,
|
|
10358
10303
|
url: e.audioUrl,
|
|
10359
10304
|
onReady: k,
|
|
@@ -10373,7 +10318,7 @@ var Yu = Y.div`
|
|
|
10373
10318
|
})] })
|
|
10374
10319
|
})
|
|
10375
10320
|
}), M()] });
|
|
10376
|
-
}),
|
|
10321
|
+
}), rd = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(nd, {
|
|
10377
10322
|
...t,
|
|
10378
10323
|
isStream: e.isStream,
|
|
10379
10324
|
isPlaying: e.isPlaying,
|
|
@@ -10381,12 +10326,12 @@ var Yu = Y.div`
|
|
|
10381
10326
|
onPause: e.onPause,
|
|
10382
10327
|
ref: e.playerRef,
|
|
10383
10328
|
analyserData: e.analyserData
|
|
10384
|
-
}, t.uid)) }),
|
|
10329
|
+
}, t.uid)) }), id = Y.span`
|
|
10385
10330
|
white-space: nowrap;
|
|
10386
10331
|
overflow: hidden;
|
|
10387
10332
|
text-overflow: ellipsis;
|
|
10388
|
-
`,
|
|
10389
|
-
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 = () => {
|
|
10390
10335
|
let e = n?.percent || 0;
|
|
10391
10336
|
return n && e > 0 && e <= 100 ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("span", {
|
|
10392
10337
|
className: "progress",
|
|
@@ -10394,7 +10339,7 @@ var Yu = Y.div`
|
|
|
10394
10339
|
}), /* @__PURE__ */ H("span", {
|
|
10395
10340
|
className: "download",
|
|
10396
10341
|
style: { width: `${Z.default.round(e, 0)}%` }
|
|
10397
|
-
})] }) : /* @__PURE__ */ H(
|
|
10342
|
+
})] }) : /* @__PURE__ */ H(id, { children: s });
|
|
10398
10343
|
}, h = /* @__PURE__ */ U("div", {
|
|
10399
10344
|
className: "status-content-wrapper",
|
|
10400
10345
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -10460,7 +10405,7 @@ var Yu = Y.div`
|
|
|
10460
10405
|
children: [m(), o && /* @__PURE__ */ H("span", { children: o })]
|
|
10461
10406
|
})
|
|
10462
10407
|
});
|
|
10463
|
-
},
|
|
10408
|
+
}, sd = {
|
|
10464
10409
|
mask: "styles-module__mask___fnLBF",
|
|
10465
10410
|
maskOpen: "styles-module__maskOpen___KKROU",
|
|
10466
10411
|
overlay: "styles-module__overlay___8EcfD",
|
|
@@ -10470,7 +10415,7 @@ var Yu = Y.div`
|
|
|
10470
10415
|
subTitle: "styles-module__subTitle___vunlj",
|
|
10471
10416
|
content: "styles-module__content___d1qHZ",
|
|
10472
10417
|
footer: "styles-module__footer___wE8uH"
|
|
10473
|
-
},
|
|
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 }) => {
|
|
10474
10419
|
let [p, m] = E.useState(null), [h, g] = E.useState(!1), [_, v] = E.useState(!1), y = zt(() => {
|
|
10475
10420
|
let e = document.querySelectorAll(".ant-layout-content");
|
|
10476
10421
|
return e[e.length - 1] ?? null;
|
|
@@ -10494,11 +10439,11 @@ var Yu = Y.div`
|
|
|
10494
10439
|
e.target !== e.currentTarget || e.propertyName !== "transform" || !t && !_ && (g(!1), m(null));
|
|
10495
10440
|
};
|
|
10496
10441
|
return !h || !p ? null : Ht(/* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H("div", {
|
|
10497
|
-
className: (0, X.default)(
|
|
10442
|
+
className: (0, X.default)(sd.mask, _ && sd.maskOpen),
|
|
10498
10443
|
style: d?.mask,
|
|
10499
10444
|
onClick: u ? n : void 0
|
|
10500
10445
|
}), /* @__PURE__ */ U("div", {
|
|
10501
|
-
className: (0, X.default)(
|
|
10446
|
+
className: (0, X.default)(sd.overlay, _ && sd.overlayOpen, c),
|
|
10502
10447
|
style: {
|
|
10503
10448
|
width: s,
|
|
10504
10449
|
...l,
|
|
@@ -10508,7 +10453,7 @@ var Yu = Y.div`
|
|
|
10508
10453
|
"aria-modal": "true",
|
|
10509
10454
|
onTransitionEnd: b,
|
|
10510
10455
|
children: [/* @__PURE__ */ U("div", {
|
|
10511
|
-
className:
|
|
10456
|
+
className: sd.header,
|
|
10512
10457
|
style: d?.header,
|
|
10513
10458
|
children: [/* @__PURE__ */ H(G, {
|
|
10514
10459
|
type: "text",
|
|
@@ -10523,11 +10468,11 @@ var Yu = Y.div`
|
|
|
10523
10468
|
}),
|
|
10524
10469
|
onClick: n
|
|
10525
10470
|
}), /* @__PURE__ */ U("div", {
|
|
10526
|
-
className:
|
|
10471
|
+
className: sd.title,
|
|
10527
10472
|
style: d?.title,
|
|
10528
10473
|
children: [e, a && /* @__PURE__ */ H(jt, {
|
|
10529
10474
|
variant: "outlined",
|
|
10530
|
-
className:
|
|
10475
|
+
className: sd.subTitle,
|
|
10531
10476
|
style: d?.subTitle,
|
|
10532
10477
|
children: a
|
|
10533
10478
|
})]
|
|
@@ -10541,7 +10486,44 @@ var Yu = Y.div`
|
|
|
10541
10486
|
children: i
|
|
10542
10487
|
})]
|
|
10543
10488
|
})] }), p);
|
|
10489
|
+
}, ld = {
|
|
10490
|
+
buttonWrapper: "styles-module__buttonWrapper___wwKZl",
|
|
10491
|
+
wrapper: "styles-module__wrapper___FITtv",
|
|
10492
|
+
tips: "styles-module__tips___xnrzu",
|
|
10493
|
+
button: "styles-module__button___mqt3w",
|
|
10494
|
+
label: "styles-module__label___wq9YF"
|
|
10544
10495
|
}, ud = (e) => {
|
|
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) => {
|
|
10497
|
+
u || f(e), o?.(e);
|
|
10498
|
+
};
|
|
10499
|
+
return /* @__PURE__ */ U("div", {
|
|
10500
|
+
className: ld.wrapper,
|
|
10501
|
+
style: { ...c?.wrapper },
|
|
10502
|
+
children: [
|
|
10503
|
+
/* @__PURE__ */ U("div", {
|
|
10504
|
+
className: ld.buttonWrapper,
|
|
10505
|
+
style: { ...c?.checkboxWrapper },
|
|
10506
|
+
children: [
|
|
10507
|
+
/* @__PURE__ */ H("span", {
|
|
10508
|
+
className: ld.label,
|
|
10509
|
+
style: { ...c?.label },
|
|
10510
|
+
children: /* @__PURE__ */ H("span", { children: t })
|
|
10511
|
+
}),
|
|
10512
|
+
s && /* @__PURE__ */ H(Ot, {
|
|
10513
|
+
checked: p,
|
|
10514
|
+
onChange: m
|
|
10515
|
+
}),
|
|
10516
|
+
l
|
|
10517
|
+
]
|
|
10518
|
+
}),
|
|
10519
|
+
a && /* @__PURE__ */ H(Nt.Text, {
|
|
10520
|
+
type: "secondary",
|
|
10521
|
+
children: a
|
|
10522
|
+
}),
|
|
10523
|
+
p && /* @__PURE__ */ H("div", { children: i })
|
|
10524
|
+
]
|
|
10525
|
+
});
|
|
10526
|
+
}, dd = (e) => {
|
|
10545
10527
|
let { title: t, style: n, align: r, firstCell: i, lastCell: a, sortOrder: s, sortDirections: c = [
|
|
10546
10528
|
"ascend",
|
|
10547
10529
|
"descend",
|
|
@@ -10596,7 +10578,7 @@ var Yu = Y.div`
|
|
|
10596
10578
|
})
|
|
10597
10579
|
})
|
|
10598
10580
|
});
|
|
10599
|
-
},
|
|
10581
|
+
}, fd = (e) => {
|
|
10600
10582
|
let { onSort: t, sortDirections: n, sorterList: r, showSorterTooltip: i } = e;
|
|
10601
10583
|
return /* @__PURE__ */ H(xt, {
|
|
10602
10584
|
className: "row",
|
|
@@ -10604,7 +10586,7 @@ var Yu = Y.div`
|
|
|
10604
10586
|
let { title: s, dataIndex: c, align: l, width: u, span: d, headerStyle: f, sortOrder: p, sorter: m, defaultSortOrder: h } = a;
|
|
10605
10587
|
return /* @__PURE__ */ H(st, {
|
|
10606
10588
|
span: d,
|
|
10607
|
-
children: /* @__PURE__ */ H(
|
|
10589
|
+
children: /* @__PURE__ */ H(dd, {
|
|
10608
10590
|
onSort: t,
|
|
10609
10591
|
showSorterTooltip: i,
|
|
10610
10592
|
sorter: m,
|
|
@@ -10623,7 +10605,7 @@ var Yu = Y.div`
|
|
|
10623
10605
|
}, c || o);
|
|
10624
10606
|
})
|
|
10625
10607
|
});
|
|
10626
|
-
},
|
|
10608
|
+
}, pd = (e) => {
|
|
10627
10609
|
let { hasColumns: t, expandable: n, enableSelection: r, onSelectAll: i, onExpandAll: a, indeterminate: s, selectAll: c, expandAll: l, disabled: u } = e;
|
|
10628
10610
|
o();
|
|
10629
10611
|
let d = () => {
|
|
@@ -10676,13 +10658,13 @@ var Yu = Y.div`
|
|
|
10676
10658
|
className: "header-row-prefix-wrapper",
|
|
10677
10659
|
children: /* @__PURE__ */ H(K, { disabled: u })
|
|
10678
10660
|
}) : null : null;
|
|
10679
|
-
},
|
|
10661
|
+
}, md = (e) => {
|
|
10680
10662
|
let { children: t } = e;
|
|
10681
10663
|
return /* @__PURE__ */ H("div", {
|
|
10682
10664
|
className: "row-children",
|
|
10683
10665
|
children: t
|
|
10684
10666
|
});
|
|
10685
|
-
},
|
|
10667
|
+
}, hd = E.createContext({}), gd = E.createContext({}), _d = Y.div`
|
|
10686
10668
|
width: 30px;
|
|
10687
10669
|
margin-right: 5px;
|
|
10688
10670
|
&.disable-expand {
|
|
@@ -10690,11 +10672,11 @@ var Yu = Y.div`
|
|
|
10690
10672
|
display: none;
|
|
10691
10673
|
}
|
|
10692
10674
|
}
|
|
10693
|
-
`,
|
|
10675
|
+
`, vd = (e) => {
|
|
10694
10676
|
let { expandable: t, enableSelection: n, expanded: r, checked: i, disableExpand: a, handleRowExpand: o, handleSelectChange: s } = e, c = R(() => r, [r]);
|
|
10695
10677
|
return t && n ? /* @__PURE__ */ U("div", {
|
|
10696
10678
|
className: "row-prefix-wrapper",
|
|
10697
|
-
children: [/* @__PURE__ */ H(
|
|
10679
|
+
children: [/* @__PURE__ */ H(_d, {
|
|
10698
10680
|
className: (0, X.default)({ "disable-expand": a }),
|
|
10699
10681
|
children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
|
|
10700
10682
|
type: "text",
|
|
@@ -10712,7 +10694,7 @@ var Yu = Y.div`
|
|
|
10712
10694
|
})]
|
|
10713
10695
|
}) : t ? /* @__PURE__ */ H("div", {
|
|
10714
10696
|
className: "row-prefix-wrapper",
|
|
10715
|
-
children: /* @__PURE__ */ H(
|
|
10697
|
+
children: /* @__PURE__ */ H(_d, {
|
|
10716
10698
|
className: (0, X.default)({ "disable-expand": a }),
|
|
10717
10699
|
children: Z.default.isBoolean(t) ? /* @__PURE__ */ H(G, {
|
|
10718
10700
|
type: "text",
|
|
@@ -10733,11 +10715,11 @@ var Yu = Y.div`
|
|
|
10733
10715
|
checked: i
|
|
10734
10716
|
})
|
|
10735
10717
|
}) : null;
|
|
10736
|
-
},
|
|
10718
|
+
}, yd = Y.div`
|
|
10737
10719
|
max-width: 100%;
|
|
10738
10720
|
display: flex;
|
|
10739
10721
|
align-items: center;
|
|
10740
|
-
`,
|
|
10722
|
+
`, bd = (e) => {
|
|
10741
10723
|
let t = o(), { isEditing: n, editable: r, handleSubmit: i, handleUndo: a, handleEdit: s } = e;
|
|
10742
10724
|
return r ? n ? /* @__PURE__ */ U("span", {
|
|
10743
10725
|
className: "flex-column",
|
|
@@ -10773,7 +10755,7 @@ var Yu = Y.div`
|
|
|
10773
10755
|
})
|
|
10774
10756
|
}, "edit")
|
|
10775
10757
|
}) : null;
|
|
10776
|
-
},
|
|
10758
|
+
}, xd = (e) => {
|
|
10777
10759
|
let { editable: t, current: n, isEditing: r, row: i, render: a, onChange: o } = e;
|
|
10778
10760
|
return r && t ? typeof t == "object" && t?.valueType === "number" ? /* @__PURE__ */ H(gt, {
|
|
10779
10761
|
style: { width: "80px" },
|
|
@@ -10784,9 +10766,9 @@ var Yu = Y.div`
|
|
|
10784
10766
|
value: n,
|
|
10785
10767
|
onChange: (e) => o(e.target.value)
|
|
10786
10768
|
}) : a ? a(n, i) : n;
|
|
10787
|
-
},
|
|
10788
|
-
let { row: t, onCell: n } = P(
|
|
10789
|
-
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, {
|
|
10790
10772
|
onChange: (e) => {
|
|
10791
10773
|
l(e);
|
|
10792
10774
|
},
|
|
@@ -10795,7 +10777,7 @@ var Yu = Y.div`
|
|
|
10795
10777
|
current: o ? c : t[r],
|
|
10796
10778
|
row: t,
|
|
10797
10779
|
render: i
|
|
10798
|
-
}), /* @__PURE__ */ H(
|
|
10780
|
+
}), /* @__PURE__ */ H(bd, {
|
|
10799
10781
|
editable: a,
|
|
10800
10782
|
isEditing: o,
|
|
10801
10783
|
handleEdit: () => {
|
|
@@ -10815,7 +10797,7 @@ var Yu = Y.div`
|
|
|
10815
10797
|
s(!1);
|
|
10816
10798
|
}
|
|
10817
10799
|
})] });
|
|
10818
|
-
},
|
|
10800
|
+
}, Cd = Y.div`
|
|
10819
10801
|
padding: var(--ant-table-cell-padding-block)
|
|
10820
10802
|
var(--ant-table-cell-padding-inline);
|
|
10821
10803
|
display: flex;
|
|
@@ -10838,22 +10820,22 @@ var Yu = Y.div`
|
|
|
10838
10820
|
&.center {
|
|
10839
10821
|
justify-content: center;
|
|
10840
10822
|
}
|
|
10841
|
-
`,
|
|
10823
|
+
`, wd = (e) => {
|
|
10842
10824
|
let { dataIndex: t, render: n, align: r, editable: i, dataField: a } = e;
|
|
10843
|
-
return /* @__PURE__ */ H(
|
|
10825
|
+
return /* @__PURE__ */ H(Cd, {
|
|
10844
10826
|
className: (0, X.default)("cell", {
|
|
10845
10827
|
left: r === "left",
|
|
10846
10828
|
center: r === "center",
|
|
10847
10829
|
right: r === "right"
|
|
10848
10830
|
}),
|
|
10849
|
-
children: /* @__PURE__ */ H(
|
|
10831
|
+
children: /* @__PURE__ */ H(Sd, {
|
|
10850
10832
|
dataIndex: a || t,
|
|
10851
10833
|
render: n,
|
|
10852
10834
|
editable: i
|
|
10853
10835
|
})
|
|
10854
10836
|
});
|
|
10855
|
-
},
|
|
10856
|
-
let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(
|
|
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([]);
|
|
10857
10839
|
C.current = _;
|
|
10858
10840
|
let w = z(null), [T, D] = B(!0), [O, k] = B(!1);
|
|
10859
10841
|
F(() => () => {
|
|
@@ -10904,7 +10886,7 @@ var Yu = Y.div`
|
|
|
10904
10886
|
};
|
|
10905
10887
|
}, []), F(() => (T && I(), () => {
|
|
10906
10888
|
S.current?.current?.cancel?.();
|
|
10907
|
-
}), [T, g.allChildren]), /* @__PURE__ */ H(
|
|
10889
|
+
}), [T, g.allChildren]), /* @__PURE__ */ H(hd.Provider, {
|
|
10908
10890
|
value: {
|
|
10909
10891
|
row: {
|
|
10910
10892
|
...t,
|
|
@@ -10916,7 +10898,7 @@ var Yu = Y.div`
|
|
|
10916
10898
|
className: "row-box",
|
|
10917
10899
|
children: [/* @__PURE__ */ U("div", {
|
|
10918
10900
|
className: (0, X.default)("row-wrapper", { "row-wrapper-selected": j }),
|
|
10919
|
-
children: [/* @__PURE__ */ H(
|
|
10901
|
+
children: [/* @__PURE__ */ H(vd, {
|
|
10920
10902
|
expandable: r,
|
|
10921
10903
|
enableSelection: i?.enableSelection,
|
|
10922
10904
|
expanded: A,
|
|
@@ -10928,7 +10910,7 @@ var Yu = Y.div`
|
|
|
10928
10910
|
className: "seal-table-row",
|
|
10929
10911
|
children: c?.map(({ key: e, ...t }) => /* @__PURE__ */ H(st, {
|
|
10930
10912
|
span: t.span,
|
|
10931
|
-
children: /* @__PURE__ */ H(
|
|
10913
|
+
children: /* @__PURE__ */ H(wd, { ...t })
|
|
10932
10914
|
}, `${t.dataIndex}-${n}`))
|
|
10933
10915
|
})]
|
|
10934
10916
|
}), A && !V && /* @__PURE__ */ H("div", {
|
|
@@ -10941,9 +10923,9 @@ var Yu = Y.div`
|
|
|
10941
10923
|
})]
|
|
10942
10924
|
})
|
|
10943
10925
|
});
|
|
10944
|
-
},
|
|
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", {
|
|
10945
10927
|
className: "seal-table-content",
|
|
10946
|
-
children: e.map((e, m) => /* @__PURE__ */ H(
|
|
10928
|
+
children: e.map((e, m) => /* @__PURE__ */ H(Td, {
|
|
10947
10929
|
record: e,
|
|
10948
10930
|
rowIndex: m,
|
|
10949
10931
|
columns: f,
|
|
@@ -10963,7 +10945,7 @@ var Yu = Y.div`
|
|
|
10963
10945
|
}) : /* @__PURE__ */ H("div", {
|
|
10964
10946
|
className: "empty-wrapper",
|
|
10965
10947
|
children: m || /* @__PURE__ */ H(ft, { image: ft.PRESENTED_IMAGE_SIMPLE })
|
|
10966
|
-
}),
|
|
10948
|
+
}), Dd = (e) => {
|
|
10967
10949
|
let t = e.filter((e) => e.defaultSortOrder);
|
|
10968
10950
|
return t.length === 0 ? [] : t.map((e) => ({
|
|
10969
10951
|
columnKey: e.key || e.dataIndex,
|
|
@@ -10971,8 +10953,8 @@ var Yu = Y.div`
|
|
|
10971
10953
|
order: e.defaultSortOrder || null
|
|
10972
10954
|
}));
|
|
10973
10955
|
};
|
|
10974
|
-
function
|
|
10975
|
-
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 || []));
|
|
10976
10958
|
return {
|
|
10977
10959
|
sorterListRef: r,
|
|
10978
10960
|
sorterList: i,
|
|
@@ -10999,7 +10981,7 @@ function Dd(e) {
|
|
|
10999
10981
|
}
|
|
11000
10982
|
//#endregion
|
|
11001
10983
|
//#region src/lib/components/table/index.tsx
|
|
11002
|
-
var
|
|
10984
|
+
var kd = Y.div`
|
|
11003
10985
|
width: 100%;
|
|
11004
10986
|
--ant-table-cell-padding-inline: ${(e) => e.$token.cellPaddingInline}px;
|
|
11005
10987
|
--ant-table-cell-padding-block: ${(e) => e.$token.cellPaddingBlock}px;
|
|
@@ -11010,8 +10992,8 @@ var Od = Y.div`
|
|
|
11010
10992
|
--ant-table-row-hover-bg: ${(e) => e.$token.rowHoverBg};
|
|
11011
10993
|
--ant-table-header-icon-color: ${(e) => e.$token.tableHeaderIconColor};
|
|
11012
10994
|
--ant-table-header-icon-hover-color: ${(e) => e.$token.tableHeaderIconHoverColor};
|
|
11013
|
-
`,
|
|
11014
|
-
let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } =
|
|
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({
|
|
11015
10997
|
onTableSort: s,
|
|
11016
10998
|
columns: t
|
|
11017
10999
|
}), { token: T } = Lt.useToken(), D = R(() => t || E.Children.toArray(n).filter(E.isValidElement).map((e) => {
|
|
@@ -11063,7 +11045,7 @@ var Od = Y.div`
|
|
|
11063
11045
|
}, F = (e, t) => {
|
|
11064
11046
|
g?.onShowSizeChange?.(e, t);
|
|
11065
11047
|
};
|
|
11066
|
-
return console.log("token.table", T), /* @__PURE__ */ U(
|
|
11048
|
+
return console.log("token.table", T), /* @__PURE__ */ U(kd, {
|
|
11067
11049
|
$token: {
|
|
11068
11050
|
...T.Table,
|
|
11069
11051
|
tableHeaderIconColor: T.colorTextQuaternary,
|
|
@@ -11074,7 +11056,7 @@ var Od = Y.div`
|
|
|
11074
11056
|
className: "seal-table-container",
|
|
11075
11057
|
children: [/* @__PURE__ */ U("div", {
|
|
11076
11058
|
className: "header-row-wrapper",
|
|
11077
|
-
children: [/* @__PURE__ */ H(
|
|
11059
|
+
children: [/* @__PURE__ */ H(pd, {
|
|
11078
11060
|
selectAll: k.selectAll,
|
|
11079
11061
|
indeterminate: k.indeterminate,
|
|
11080
11062
|
onSelectAll: M,
|
|
@@ -11084,7 +11066,7 @@ var Od = Y.div`
|
|
|
11084
11066
|
enableSelection: h?.enableSelection,
|
|
11085
11067
|
disabled: !e.dataSource?.length,
|
|
11086
11068
|
hasColumns: D.length > 0
|
|
11087
|
-
}), /* @__PURE__ */ H(
|
|
11069
|
+
}), /* @__PURE__ */ H(fd, {
|
|
11088
11070
|
onSort: C,
|
|
11089
11071
|
columns: D,
|
|
11090
11072
|
sortDirections: v,
|
|
@@ -11094,7 +11076,7 @@ var Od = Y.div`
|
|
|
11094
11076
|
}), /* @__PURE__ */ H(Dt, {
|
|
11095
11077
|
spinning: u,
|
|
11096
11078
|
size: "middle",
|
|
11097
|
-
children: /* @__PURE__ */ H(
|
|
11079
|
+
children: /* @__PURE__ */ H(Ed, {
|
|
11098
11080
|
empty: _,
|
|
11099
11081
|
dataSource: e.dataSource,
|
|
11100
11082
|
columns: D,
|
|
@@ -11122,16 +11104,16 @@ var Od = Y.div`
|
|
|
11122
11104
|
})]
|
|
11123
11105
|
});
|
|
11124
11106
|
};
|
|
11125
|
-
|
|
11107
|
+
Ad.RowChildren = md;
|
|
11126
11108
|
//#endregion
|
|
11127
11109
|
//#region src/lib/components/table/table-provider.tsx
|
|
11128
|
-
var
|
|
11110
|
+
var jd = ({ value: e, children: t }) => /* @__PURE__ */ H(gd.Provider, {
|
|
11129
11111
|
value: e,
|
|
11130
11112
|
children: t
|
|
11131
|
-
}),
|
|
11113
|
+
}), Md = ({ value: e, children: t }) => /* @__PURE__ */ H(hd.Provider, {
|
|
11132
11114
|
value: e,
|
|
11133
11115
|
children: t
|
|
11134
|
-
}),
|
|
11116
|
+
}), Nd = (e) => {
|
|
11135
11117
|
let { gap: t = 0, dataList: n, renderTag: r } = e, i = z(null), [a, o] = B({
|
|
11136
11118
|
start: 0,
|
|
11137
11119
|
end: n.length
|
|
@@ -11195,7 +11177,7 @@ var Ad = ({ value: e, children: t }) => /* @__PURE__ */ H(hd.Provider, {
|
|
|
11195
11177
|
})]
|
|
11196
11178
|
})
|
|
11197
11179
|
});
|
|
11198
|
-
},
|
|
11180
|
+
}, Pd = Y(jt)`
|
|
11199
11181
|
display: flex;
|
|
11200
11182
|
align-items: center;
|
|
11201
11183
|
justify-content: center;
|
|
@@ -11205,9 +11187,9 @@ var Ad = ({ value: e, children: t }) => /* @__PURE__ */ H(hd.Provider, {
|
|
|
11205
11187
|
height: 22px;
|
|
11206
11188
|
opacity: 0.7;
|
|
11207
11189
|
margin: 0;
|
|
11208
|
-
`,
|
|
11190
|
+
`, Fd = ({ opacity: e, style: t, children: n, ...r }) => {
|
|
11209
11191
|
let { config: i } = a(), { isDarkTheme: o } = i;
|
|
11210
|
-
return /* @__PURE__ */ H(
|
|
11192
|
+
return /* @__PURE__ */ H(Pd, {
|
|
11211
11193
|
...r,
|
|
11212
11194
|
variant: "outlined",
|
|
11213
11195
|
style: {
|
|
@@ -11217,10 +11199,10 @@ var Ad = ({ value: e, children: t }) => /* @__PURE__ */ H(hd.Provider, {
|
|
|
11217
11199
|
children: n
|
|
11218
11200
|
});
|
|
11219
11201
|
};
|
|
11220
|
-
|
|
11202
|
+
Fd.displayName = "ThemeTag";
|
|
11221
11203
|
//#endregion
|
|
11222
11204
|
//#region src/lib/components/templates/card.tsx
|
|
11223
|
-
var
|
|
11205
|
+
var Id = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
11224
11206
|
overflow: hidden;
|
|
11225
11207
|
display: flex;
|
|
11226
11208
|
padding: 16px 16px;
|
|
@@ -11257,31 +11239,31 @@ var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11257
11239
|
pointer-events: none;
|
|
11258
11240
|
border-style: dashed;
|
|
11259
11241
|
}
|
|
11260
|
-
`,
|
|
11242
|
+
`, Ld = Y.div.attrs({ className: "template-card-content" })`
|
|
11261
11243
|
width: 100%;
|
|
11262
11244
|
flex: 1;
|
|
11263
11245
|
color: var(--ant-color-text-tertiary);
|
|
11264
|
-
`,
|
|
11246
|
+
`, Rd = Y.div.attrs({ className: "template-card-inner" })`
|
|
11265
11247
|
display: flex;
|
|
11266
11248
|
width: 100%;
|
|
11267
11249
|
flex-direction: column;
|
|
11268
11250
|
justify-content: flex-start;
|
|
11269
11251
|
gap: 8px;
|
|
11270
11252
|
height: 100%;
|
|
11271
|
-
`,
|
|
11253
|
+
`, zd = Y.div.attrs({ className: "template-card-icon" })`
|
|
11272
11254
|
display: flex;
|
|
11273
11255
|
align-items: center;
|
|
11274
11256
|
margin-right: 16px;
|
|
11275
11257
|
font-size: 32px;
|
|
11276
|
-
`,
|
|
11258
|
+
`, Bd = Y.div.attrs({ className: "template-card-header" })`
|
|
11277
11259
|
font-weight: bold;
|
|
11278
11260
|
font-size: var(--font-size-base);
|
|
11279
11261
|
display: flex;
|
|
11280
11262
|
align-items: center;
|
|
11281
11263
|
justify-content: space-between;
|
|
11282
|
-
`,
|
|
11264
|
+
`, Vd = (e) => {
|
|
11283
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;
|
|
11284
|
-
return /* @__PURE__ */ U(
|
|
11266
|
+
return /* @__PURE__ */ U(Id, {
|
|
11285
11267
|
className: (0, X.default)(t, {
|
|
11286
11268
|
clickable: i,
|
|
11287
11269
|
hoverable: d,
|
|
@@ -11293,17 +11275,17 @@ var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11293
11275
|
onClick: () => {
|
|
11294
11276
|
u || !i || f?.();
|
|
11295
11277
|
},
|
|
11296
|
-
children: [c && /* @__PURE__ */ H(
|
|
11297
|
-
o && /* @__PURE__ */ H(
|
|
11298
|
-
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 }),
|
|
11299
11281
|
s
|
|
11300
11282
|
] })]
|
|
11301
11283
|
});
|
|
11302
|
-
},
|
|
11284
|
+
}, Hd = Y.div`
|
|
11303
11285
|
.ant-skeleton-paragraph {
|
|
11304
11286
|
margin-bottom: 0;
|
|
11305
11287
|
}
|
|
11306
|
-
`,
|
|
11288
|
+
`, Ud = (e) => /* @__PURE__ */ H(El, {
|
|
11307
11289
|
dataList: [
|
|
11308
11290
|
,
|
|
11309
11291
|
,
|
|
@@ -11312,7 +11294,7 @@ var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11312
11294
|
,
|
|
11313
11295
|
,
|
|
11314
11296
|
].fill({ label: "skeleton" }),
|
|
11315
|
-
renderItem: () => /* @__PURE__ */ H(
|
|
11297
|
+
renderItem: () => /* @__PURE__ */ H(Hd, { children: /* @__PURE__ */ H(wt, {
|
|
11316
11298
|
avatar: { size: 32 },
|
|
11317
11299
|
paragraph: { rows: 2 },
|
|
11318
11300
|
style: {
|
|
@@ -11323,7 +11305,7 @@ var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11323
11305
|
},
|
|
11324
11306
|
...e.skeletonProps || {}
|
|
11325
11307
|
}) })
|
|
11326
|
-
}),
|
|
11308
|
+
}), Wd = Y.div`
|
|
11327
11309
|
width: 100%;
|
|
11328
11310
|
position: absolute;
|
|
11329
11311
|
display: flex;
|
|
@@ -11336,30 +11318,30 @@ var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11336
11318
|
.skelton-wrapper {
|
|
11337
11319
|
width: 100%;
|
|
11338
11320
|
}
|
|
11339
|
-
`,
|
|
11321
|
+
`, Gd = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Wd, { children: /* @__PURE__ */ H(Dt, {
|
|
11340
11322
|
size: "middle",
|
|
11341
11323
|
spinning: e,
|
|
11342
11324
|
style: { width: "100%" },
|
|
11343
11325
|
classNames: { root: "skelton-wrapper" },
|
|
11344
|
-
children: t && /* @__PURE__ */ H(
|
|
11345
|
-
}) }) }),
|
|
11346
|
-
let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } =
|
|
11347
|
-
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, {
|
|
11348
11330
|
total: s,
|
|
11349
11331
|
current: c,
|
|
11350
11332
|
loading: l,
|
|
11351
11333
|
refresh: u,
|
|
11352
|
-
children: [/* @__PURE__ */ H(
|
|
11334
|
+
children: [/* @__PURE__ */ H(El, {
|
|
11353
11335
|
dataList: t,
|
|
11354
11336
|
renderItem: o,
|
|
11355
11337
|
defaultSpan: i,
|
|
11356
11338
|
resizable: a
|
|
11357
|
-
}), /* @__PURE__ */ H(
|
|
11339
|
+
}), /* @__PURE__ */ H(Gd, {
|
|
11358
11340
|
loading: n,
|
|
11359
11341
|
isFirst: r
|
|
11360
11342
|
})]
|
|
11361
11343
|
});
|
|
11362
|
-
},
|
|
11344
|
+
}, qd = /* @__PURE__ */ n(((e, t) => {
|
|
11363
11345
|
(function(n, r) {
|
|
11364
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();
|
|
11365
11347
|
})(self, (() => (() => {
|
|
@@ -11390,7 +11372,7 @@ var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11390
11372
|
};
|
|
11391
11373
|
})(), e;
|
|
11392
11374
|
})()));
|
|
11393
|
-
})),
|
|
11375
|
+
})), Jd = /* @__PURE__ */ n(((e, t) => {
|
|
11394
11376
|
(function(n, r) {
|
|
11395
11377
|
if (typeof e == "object" && typeof t == "object") t.exports = r();
|
|
11396
11378
|
else if (typeof define == "function" && define.amd) define([], r);
|
|
@@ -18497,9 +18479,9 @@ var Fd = Y.div.attrs({ className: "template-card-wrapper" })`
|
|
|
18497
18479
|
e.Terminal = d;
|
|
18498
18480
|
})(), r;
|
|
18499
18481
|
})()));
|
|
18500
|
-
})),
|
|
18501
|
-
|
|
18502
|
-
var
|
|
18482
|
+
})), Yd = qd();
|
|
18483
|
+
Jd();
|
|
18484
|
+
var Xd = Rt(({ token: e, css: t }) => ({
|
|
18503
18485
|
wrap: t`
|
|
18504
18486
|
position: relative;
|
|
18505
18487
|
text-align: left;
|
|
@@ -18518,16 +18500,16 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18518
18500
|
background-color: var(--color-logs-bg);
|
|
18519
18501
|
border-radius: 0 0 8px 8px;
|
|
18520
18502
|
`
|
|
18521
|
-
})),
|
|
18503
|
+
})), Zd = [
|
|
18522
18504
|
"bash",
|
|
18523
18505
|
"sh",
|
|
18524
18506
|
"powershell",
|
|
18525
18507
|
"pwsh",
|
|
18526
18508
|
"cmd",
|
|
18527
18509
|
"bash"
|
|
18528
|
-
],
|
|
18529
|
-
let { height: n, url: r, theme: i } = e, { styles: a } =
|
|
18530
|
-
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] })}`);
|
|
18531
18513
|
}, w = () => (d.current && d.current.readyState) === 1, T = () => {
|
|
18532
18514
|
let { cols: e, rows: t } = c.current || {};
|
|
18533
18515
|
w() && d.current?.send(`#{"width":${e},"height":${t}}#`);
|
|
@@ -18550,7 +18532,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18550
18532
|
1011,
|
|
18551
18533
|
1006,
|
|
18552
18534
|
1e3
|
|
18553
|
-
].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${
|
|
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;
|
|
18554
18536
|
}, R = (e) => {
|
|
18555
18537
|
let { message: t } = e;
|
|
18556
18538
|
t || (t = "disconnected!", v.current = !0, h.current = !0, g.current = !1), y.current = d.current.readyState, c.current?.write?.(M(`\r${t}`));
|
|
@@ -18584,55 +18566,55 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18584
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]);
|
|
18585
18567
|
return e;
|
|
18586
18568
|
}, $.apply(this, arguments);
|
|
18587
|
-
},
|
|
18569
|
+
}, ef = {
|
|
18588
18570
|
width: "100%",
|
|
18589
18571
|
height: "10px",
|
|
18590
18572
|
top: "0px",
|
|
18591
18573
|
left: "0px",
|
|
18592
18574
|
cursor: "row-resize"
|
|
18593
|
-
},
|
|
18575
|
+
}, tf = {
|
|
18594
18576
|
width: "10px",
|
|
18595
18577
|
height: "100%",
|
|
18596
18578
|
top: "0px",
|
|
18597
18579
|
left: "0px",
|
|
18598
18580
|
cursor: "col-resize"
|
|
18599
|
-
},
|
|
18581
|
+
}, nf = {
|
|
18600
18582
|
width: "20px",
|
|
18601
18583
|
height: "20px",
|
|
18602
18584
|
position: "absolute",
|
|
18603
18585
|
zIndex: 1
|
|
18604
|
-
},
|
|
18605
|
-
top: $($({},
|
|
18606
|
-
right: $($({},
|
|
18586
|
+
}, rf = {
|
|
18587
|
+
top: $($({}, ef), { top: "-5px" }),
|
|
18588
|
+
right: $($({}, tf), {
|
|
18607
18589
|
left: void 0,
|
|
18608
18590
|
right: "-5px"
|
|
18609
18591
|
}),
|
|
18610
|
-
bottom: $($({},
|
|
18592
|
+
bottom: $($({}, ef), {
|
|
18611
18593
|
top: void 0,
|
|
18612
18594
|
bottom: "-5px"
|
|
18613
18595
|
}),
|
|
18614
|
-
left: $($({},
|
|
18615
|
-
topRight: $($({},
|
|
18596
|
+
left: $($({}, tf), { left: "-5px" }),
|
|
18597
|
+
topRight: $($({}, nf), {
|
|
18616
18598
|
right: "-10px",
|
|
18617
18599
|
top: "-10px",
|
|
18618
18600
|
cursor: "ne-resize"
|
|
18619
18601
|
}),
|
|
18620
|
-
bottomRight: $($({},
|
|
18602
|
+
bottomRight: $($({}, nf), {
|
|
18621
18603
|
right: "-10px",
|
|
18622
18604
|
bottom: "-10px",
|
|
18623
18605
|
cursor: "se-resize"
|
|
18624
18606
|
}),
|
|
18625
|
-
bottomLeft: $($({},
|
|
18607
|
+
bottomLeft: $($({}, nf), {
|
|
18626
18608
|
left: "-10px",
|
|
18627
18609
|
bottom: "-10px",
|
|
18628
18610
|
cursor: "sw-resize"
|
|
18629
18611
|
}),
|
|
18630
|
-
topLeft: $($({},
|
|
18612
|
+
topLeft: $($({}, nf), {
|
|
18631
18613
|
left: "-10px",
|
|
18632
18614
|
top: "-10px",
|
|
18633
18615
|
cursor: "nw-resize"
|
|
18634
18616
|
})
|
|
18635
|
-
},
|
|
18617
|
+
}, af = M(function(e) {
|
|
18636
18618
|
var t = e.onResizeStart, n = e.direction, r = e.children, i = e.replaceStyles, a = e.className, o = N(function(e) {
|
|
18637
18619
|
t(e, n);
|
|
18638
18620
|
}, [t, n]), s = N(function(e) {
|
|
@@ -18641,7 +18623,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18641
18623
|
return $($({
|
|
18642
18624
|
position: "absolute",
|
|
18643
18625
|
userSelect: "none"
|
|
18644
|
-
},
|
|
18626
|
+
}, rf[n]), i ?? {});
|
|
18645
18627
|
}, [i, n]);
|
|
18646
18628
|
return H("div", {
|
|
18647
18629
|
className: a || void 0,
|
|
@@ -18650,7 +18632,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18650
18632
|
onTouchStart: s,
|
|
18651
18633
|
children: r
|
|
18652
18634
|
});
|
|
18653
|
-
}),
|
|
18635
|
+
}), of = (function() {
|
|
18654
18636
|
var e = function(t, n) {
|
|
18655
18637
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
18656
18638
|
e.__proto__ = t;
|
|
@@ -18666,34 +18648,34 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18666
18648
|
}
|
|
18667
18649
|
t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
18668
18650
|
};
|
|
18669
|
-
})(),
|
|
18670
|
-
return
|
|
18651
|
+
})(), sf = function() {
|
|
18652
|
+
return sf = Object.assign || function(e) {
|
|
18671
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]);
|
|
18672
18654
|
return e;
|
|
18673
|
-
},
|
|
18674
|
-
},
|
|
18655
|
+
}, sf.apply(this, arguments);
|
|
18656
|
+
}, cf = {
|
|
18675
18657
|
width: "auto",
|
|
18676
18658
|
height: "auto"
|
|
18677
|
-
}, cf = function(e, t, n) {
|
|
18678
|
-
return Math.max(Math.min(e, n), t);
|
|
18679
18659
|
}, lf = function(e, t, n) {
|
|
18660
|
+
return Math.max(Math.min(e, n), t);
|
|
18661
|
+
}, uf = function(e, t, n) {
|
|
18680
18662
|
var r = Math.round(e / t);
|
|
18681
18663
|
return r * t + n * (r - 1);
|
|
18682
|
-
},
|
|
18664
|
+
}, df = function(e, t) {
|
|
18683
18665
|
return new RegExp(e, "i").test(t);
|
|
18684
|
-
}, df = function(e) {
|
|
18685
|
-
return !!(e.touches && e.touches.length);
|
|
18686
18666
|
}, ff = function(e) {
|
|
18667
|
+
return !!(e.touches && e.touches.length);
|
|
18668
|
+
}, pf = function(e) {
|
|
18687
18669
|
return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
|
|
18688
|
-
},
|
|
18670
|
+
}, mf = function(e, t, n) {
|
|
18689
18671
|
n === void 0 && (n = 0);
|
|
18690
18672
|
var r = t.reduce(function(n, r, i) {
|
|
18691
18673
|
return Math.abs(r - e) < Math.abs(t[n] - e) ? i : n;
|
|
18692
18674
|
}, 0), i = Math.abs(t[r] - e);
|
|
18693
18675
|
return n === 0 || i < n ? t[r] : e;
|
|
18694
|
-
},
|
|
18676
|
+
}, hf = function(e) {
|
|
18695
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`;
|
|
18696
|
-
},
|
|
18678
|
+
}, gf = function(e, t, n, r) {
|
|
18697
18679
|
if (e && typeof e == "string") {
|
|
18698
18680
|
if (e.endsWith("px")) return Number(e.replace("px", ""));
|
|
18699
18681
|
if (e.endsWith("%")) {
|
|
@@ -18710,17 +18692,17 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18710
18692
|
}
|
|
18711
18693
|
}
|
|
18712
18694
|
return e;
|
|
18713
|
-
},
|
|
18714
|
-
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), {
|
|
18715
18697
|
maxWidth: r === void 0 ? void 0 : Number(r),
|
|
18716
18698
|
maxHeight: i === void 0 ? void 0 : Number(i),
|
|
18717
18699
|
minWidth: a === void 0 ? void 0 : Number(a),
|
|
18718
18700
|
minHeight: o === void 0 ? void 0 : Number(o)
|
|
18719
18701
|
};
|
|
18720
|
-
},
|
|
18702
|
+
}, vf = function(e) {
|
|
18721
18703
|
return Array.isArray(e) ? e : [e, e];
|
|
18722
|
-
},
|
|
18723
|
-
|
|
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);
|
|
18724
18706
|
function t(t) {
|
|
18725
18707
|
var n = e.call(this, t) || this;
|
|
18726
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 = {
|
|
@@ -18731,7 +18713,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18731
18713
|
var e = n.parentNode;
|
|
18732
18714
|
if (!e) return null;
|
|
18733
18715
|
var t = n.window.document.createElement("div");
|
|
18734
|
-
return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(
|
|
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;
|
|
18735
18717
|
}, n.removeBase = function(e) {
|
|
18736
18718
|
var t = n.parentNode;
|
|
18737
18719
|
t && t.removeChild(e);
|
|
@@ -18776,7 +18758,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18776
18758
|
configurable: !0
|
|
18777
18759
|
}), Object.defineProperty(t.prototype, "propsSize", {
|
|
18778
18760
|
get: function() {
|
|
18779
|
-
return this.props.size || this.props.defaultSize ||
|
|
18761
|
+
return this.props.size || this.props.defaultSize || cf;
|
|
18780
18762
|
},
|
|
18781
18763
|
enumerable: !1,
|
|
18782
18764
|
configurable: !0
|
|
@@ -18803,11 +18785,11 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18803
18785
|
var n = e.getParentSize();
|
|
18804
18786
|
return `${Number(e.state[t].toString().replace("px", "")) / n[t] * 100}%`;
|
|
18805
18787
|
}
|
|
18806
|
-
return
|
|
18788
|
+
return hf(e.state[t]);
|
|
18807
18789
|
};
|
|
18808
18790
|
return {
|
|
18809
|
-
width: t && t.width !== void 0 && !this.state.isResizing ?
|
|
18810
|
-
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")
|
|
18811
18793
|
};
|
|
18812
18794
|
},
|
|
18813
18795
|
enumerable: !1,
|
|
@@ -18854,7 +18836,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18854
18836
|
var n = this.propsSize && this.propsSize[t];
|
|
18855
18837
|
return this.state[t] === "auto" && this.state.original[t] === e && (n === void 0 || n === "auto") ? "auto" : e;
|
|
18856
18838
|
}, t.prototype.calculateNewMaxFromBoundary = function(e, t) {
|
|
18857
|
-
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;
|
|
18858
18840
|
if (this.props.bounds === "parent") {
|
|
18859
18841
|
var c = this.parentNode;
|
|
18860
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));
|
|
@@ -18864,8 +18846,8 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18864
18846
|
maxHeight: t
|
|
18865
18847
|
};
|
|
18866
18848
|
}, t.prototype.calculateNewSizeFromDirection = function(e, t) {
|
|
18867
|
-
var n = this.props.scale || 1, r =
|
|
18868
|
-
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)), {
|
|
18869
18851
|
newWidth: p,
|
|
18870
18852
|
newHeight: m
|
|
18871
18853
|
};
|
|
@@ -18873,8 +18855,8 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18873
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;
|
|
18874
18856
|
if (a) {
|
|
18875
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, _);
|
|
18876
|
-
e =
|
|
18877
|
-
} 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);
|
|
18878
18860
|
return {
|
|
18879
18861
|
newWidth: e,
|
|
18880
18862
|
newHeight: t
|
|
@@ -18899,7 +18881,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18899
18881
|
}, t.prototype.onResizeStart = function(e, t) {
|
|
18900
18882
|
if (!(!this.resizable || !this.window)) {
|
|
18901
18883
|
var n = 0, r = 0;
|
|
18902
|
-
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)) {
|
|
18903
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;
|
|
18904
18886
|
var i, a = this.window.getComputedStyle(this.resizable);
|
|
18905
18887
|
if (a.flexBasis !== "auto") {
|
|
@@ -18918,7 +18900,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18918
18900
|
height: this.size.height
|
|
18919
18901
|
},
|
|
18920
18902
|
isResizing: !0,
|
|
18921
|
-
backgroundStyle:
|
|
18903
|
+
backgroundStyle: sf(sf({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
|
|
18922
18904
|
direction: t,
|
|
18923
18905
|
flexBasis: i
|
|
18924
18906
|
};
|
|
@@ -18928,13 +18910,13 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18928
18910
|
}, t.prototype.onMouseMove = function(e) {
|
|
18929
18911
|
var t = this;
|
|
18930
18912
|
if (!(!this.state.isResizing || !this.resizable || !this.window)) {
|
|
18931
|
-
if (this.window.TouchEvent &&
|
|
18913
|
+
if (this.window.TouchEvent && ff(e)) try {
|
|
18932
18914
|
e.preventDefault(), e.stopPropagation();
|
|
18933
18915
|
} catch {}
|
|
18934
|
-
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);
|
|
18935
18917
|
r = h.maxWidth, i = h.maxHeight, a = h.minWidth, o = h.minHeight;
|
|
18936
18918
|
var g = this.calculateNewSizeFromDirection(s, c), _ = g.newHeight, v = g.newWidth, y = this.calculateNewMaxFromBoundary(r, i);
|
|
18937
|
-
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));
|
|
18938
18920
|
var b = this.calculateNewSizeFromAspectRatio(v, _, {
|
|
18939
18921
|
width: y.maxWidth,
|
|
18940
18922
|
height: y.maxHeight
|
|
@@ -18943,7 +18925,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18943
18925
|
height: o
|
|
18944
18926
|
});
|
|
18945
18927
|
if (v = b.newWidth, _ = b.newHeight, this.props.grid) {
|
|
18946
|
-
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 : _;
|
|
18947
18929
|
v = w, _ = T;
|
|
18948
18930
|
}
|
|
18949
18931
|
var E = {
|
|
@@ -18991,7 +18973,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
18991
18973
|
height: this.props.size.height ?? "auto"
|
|
18992
18974
|
}), this.unbindEvents(), this.setState({
|
|
18993
18975
|
isResizing: !1,
|
|
18994
|
-
backgroundStyle:
|
|
18976
|
+
backgroundStyle: sf(sf({}, this.state.backgroundStyle), { cursor: "auto" })
|
|
18995
18977
|
}));
|
|
18996
18978
|
}, t.prototype.updateSize = function(e) {
|
|
18997
18979
|
this.setState({
|
|
@@ -19004,7 +18986,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
19004
18986
|
className: o,
|
|
19005
18987
|
style: a,
|
|
19006
18988
|
children: Object.keys(n).map(function(t) {
|
|
19007
|
-
return n[t] === !1 ? null : H(
|
|
18989
|
+
return n[t] === !1 ? null : H(af, {
|
|
19008
18990
|
direction: t,
|
|
19009
18991
|
onResizeStart: e.onResizeStart,
|
|
19010
18992
|
replaceStyles: r && r[t],
|
|
@@ -19015,8 +18997,8 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
19015
18997
|
}) : null;
|
|
19016
18998
|
}, t.prototype.render = function() {
|
|
19017
18999
|
var e = this, t = Object.keys(this.props).reduce(function(t, n) {
|
|
19018
|
-
return
|
|
19019
|
-
}, {}), n =
|
|
19000
|
+
return yf.indexOf(n) === -1 && (t[n] = e.props[n]), t;
|
|
19001
|
+
}, {}), n = sf(sf(sf({
|
|
19020
19002
|
position: "relative",
|
|
19021
19003
|
userSelect: this.state.isResizing ? "none" : "auto"
|
|
19022
19004
|
}, this.props.style), this.sizeStyle), {
|
|
@@ -19027,7 +19009,7 @@ var Yd = Rt(({ token: e, css: t }) => ({
|
|
|
19027
19009
|
boxSizing: "border-box",
|
|
19028
19010
|
flexShrink: 0
|
|
19029
19011
|
});
|
|
19030
|
-
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({
|
|
19031
19013
|
style: n,
|
|
19032
19014
|
className: this.props.className
|
|
19033
19015
|
}, t, {
|
|
@@ -19081,11 +19063,11 @@ Y(G)`
|
|
|
19081
19063
|
background: none !important;
|
|
19082
19064
|
}
|
|
19083
19065
|
`;
|
|
19084
|
-
var
|
|
19066
|
+
var Sf = A((e, t) => {
|
|
19085
19067
|
let { defaultWidth: n, defaultHeight: r = 180, minHeight: i = 180, maxHeight: a = 400, children: s, onReSize: c, onReSizeStop: l, ...u } = e;
|
|
19086
19068
|
o();
|
|
19087
19069
|
let d = z(null);
|
|
19088
|
-
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(
|
|
19070
|
+
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(xf, {
|
|
19089
19071
|
ref: d,
|
|
19090
19072
|
enable: { top: !0 },
|
|
19091
19073
|
defaultSize: {
|
|
@@ -19100,7 +19082,7 @@ var xf = A((e, t) => {
|
|
|
19100
19082
|
...u,
|
|
19101
19083
|
children: s
|
|
19102
19084
|
});
|
|
19103
|
-
}),
|
|
19085
|
+
}), Cf = Y.div`
|
|
19104
19086
|
.ant-tabs {
|
|
19105
19087
|
.ant-tabs-tab {
|
|
19106
19088
|
positon: relative;
|
|
@@ -19160,11 +19142,11 @@ var xf = A((e, t) => {
|
|
|
19160
19142
|
color: var(--ant-color-text);
|
|
19161
19143
|
}
|
|
19162
19144
|
}
|
|
19163
|
-
`,
|
|
19145
|
+
`, wf = ({ terminals: e, currentActive: t, onClose: n }) => {
|
|
19164
19146
|
let [r, i] = B(t || e[0]?.url || ""), [a, o] = B(300), s = E.useRef(null), c = R(() => e.map((e) => ({
|
|
19165
19147
|
key: e.url,
|
|
19166
19148
|
label: e.name,
|
|
19167
|
-
children: /* @__PURE__ */ H(
|
|
19149
|
+
children: /* @__PURE__ */ H($d, {
|
|
19168
19150
|
height: a,
|
|
19169
19151
|
url: e.url
|
|
19170
19152
|
})
|
|
@@ -19174,10 +19156,10 @@ var xf = A((e, t) => {
|
|
|
19174
19156
|
}, 200);
|
|
19175
19157
|
return F(() => {
|
|
19176
19158
|
t && i(t);
|
|
19177
|
-
}, [t]), /* @__PURE__ */ H(
|
|
19159
|
+
}, [t]), /* @__PURE__ */ H(Sf, {
|
|
19178
19160
|
onReSize: l,
|
|
19179
19161
|
ref: s,
|
|
19180
|
-
children: /* @__PURE__ */ H(
|
|
19162
|
+
children: /* @__PURE__ */ H(Cf, { children: /* @__PURE__ */ H(At, {
|
|
19181
19163
|
type: "editable-card",
|
|
19182
19164
|
hideAdd: !0,
|
|
19183
19165
|
activeKey: r,
|
|
@@ -19193,11 +19175,11 @@ var xf = A((e, t) => {
|
|
|
19193
19175
|
}) }
|
|
19194
19176
|
}) })
|
|
19195
19177
|
});
|
|
19196
|
-
},
|
|
19178
|
+
}, Tf = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(wf, {
|
|
19197
19179
|
terminals: e,
|
|
19198
19180
|
currentActive: r,
|
|
19199
19181
|
onClose: n
|
|
19200
|
-
}),
|
|
19182
|
+
}), Ef = Y.ul`
|
|
19201
19183
|
list-style: none;
|
|
19202
19184
|
padding-left: 0;
|
|
19203
19185
|
margin: 0;
|
|
@@ -19215,16 +19197,16 @@ var xf = A((e, t) => {
|
|
|
19215
19197
|
display: inline-flex;
|
|
19216
19198
|
}
|
|
19217
19199
|
}
|
|
19218
|
-
`,
|
|
19200
|
+
`, Df = (e) => {
|
|
19219
19201
|
let t = o(), { list: n } = e;
|
|
19220
|
-
return /* @__PURE__ */ H(
|
|
19202
|
+
return /* @__PURE__ */ H(Ef, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
|
|
19221
19203
|
className: "title",
|
|
19222
19204
|
children: [e.title?.locale ? t.formatMessage({ id: e.title?.text || "" }) : e.title, ":"]
|
|
19223
19205
|
}), /* @__PURE__ */ H("span", {
|
|
19224
19206
|
className: "content",
|
|
19225
19207
|
children: t.formatMessage({ id: e.tips })
|
|
19226
19208
|
})] }, n)) });
|
|
19227
|
-
},
|
|
19209
|
+
}, Of = Y.div`
|
|
19228
19210
|
.ant-transfer-section {
|
|
19229
19211
|
width: 100%;
|
|
19230
19212
|
height: 300px;
|
|
@@ -19281,12 +19263,12 @@ var xf = A((e, t) => {
|
|
|
19281
19263
|
.ant-pagination {
|
|
19282
19264
|
justify-content: center;
|
|
19283
19265
|
}
|
|
19284
|
-
`,
|
|
19266
|
+
`, kf = (e) => {
|
|
19285
19267
|
let t = o(), n = (e) => e.selectedCount ? /* @__PURE__ */ H("span", {
|
|
19286
19268
|
style: { color: "var(--ant-color-text-secondary)" },
|
|
19287
19269
|
children: t.formatMessage({ id: "common.select.count" }, { count: e.selectedCount })
|
|
19288
19270
|
}) : null;
|
|
19289
|
-
return /* @__PURE__ */ H(
|
|
19271
|
+
return /* @__PURE__ */ H(Of, { children: /* @__PURE__ */ H(Mt, {
|
|
19290
19272
|
...e,
|
|
19291
19273
|
selectAllLabels: e.selectAllLabels || [n, n],
|
|
19292
19274
|
selectionsIcon: /* @__PURE__ */ H(Ae, { style: {
|
|
@@ -19294,7 +19276,7 @@ var xf = A((e, t) => {
|
|
|
19294
19276
|
marginBottom: 3
|
|
19295
19277
|
} })
|
|
19296
19278
|
}) });
|
|
19297
|
-
},
|
|
19279
|
+
}, Af = A((e, t) => {
|
|
19298
19280
|
let { minHeight: n = 50, header: r, variant: i = "bordered", children: a, setCollapsed: o } = e, [s, c] = B(!0), l = z(null);
|
|
19299
19281
|
F(() => {
|
|
19300
19282
|
l?.current && (l.current.style.minHeight = s ? `${l.current.scrollHeight || 0}px` : "0px");
|
|
@@ -19327,7 +19309,7 @@ var xf = A((e, t) => {
|
|
|
19327
19309
|
})
|
|
19328
19310
|
})]
|
|
19329
19311
|
});
|
|
19330
|
-
}),
|
|
19312
|
+
}), jf = (e) => {
|
|
19331
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({
|
|
19332
19314
|
type: "warning",
|
|
19333
19315
|
content: l.formatMessage({ id: "playground.uploadfile.sizeError" }, { size: `${b(e.maxFileSize)}` })
|
|
@@ -19364,7 +19346,7 @@ var xf = A((e, t) => {
|
|
|
19364
19346
|
})
|
|
19365
19347
|
}), n]
|
|
19366
19348
|
});
|
|
19367
|
-
},
|
|
19349
|
+
}, Mf = A((e, t) => {
|
|
19368
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) => {
|
|
19369
19351
|
e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
19370
19352
|
noSemanticValidation: !1,
|
|
@@ -19419,4 +19401,4 @@ var xf = A((e, t) => {
|
|
|
19419
19401
|
});
|
|
19420
19402
|
});
|
|
19421
19403
|
//#endregion
|
|
19422
|
-
export { dn as Access, gn as AlertBlockInfo, fn as AlertInfo, yn as AudioAnimation, Sn as AudioPlayer, go as AutoComplete, jn as AutoImage, f as AutoTooltip, Wo as BarChart, To as BaseSelect, mi as BibtexViewer, gi as CardWrapper, Hs as Cascader,
|
|
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 };
|