bj-web-components 0.2.24 → 0.2.26
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/package.json +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/file.svg +0 -1
- package/dist/globe.svg +0 -1
- package/dist/index.d.ts +0 -1139
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -51
- package/dist/miniapp.d.ts +0 -1
- package/dist/miniapp.js +0 -1
- package/dist/miniapp.mjs +0 -1
- package/dist/mobile.d.ts +0 -1
- package/dist/mobile.js +0 -1
- package/dist/mobile.mjs +0 -1
- package/dist/next.svg +0 -1
- package/dist/react.d.ts +0 -1
- package/dist/react.js +0 -1
- package/dist/react.mjs +0 -1
- package/dist/shared.d.ts +0 -1
- package/dist/shared.js +0 -1
- package/dist/shared.mjs +0 -1
- package/dist/style.css +0 -1
- package/dist/vercel.svg +0 -1
- package/dist/web/BasicInput/BInput.js +0 -1
- package/dist/web/BasicInput/BInput.mjs +0 -177
- package/dist/web/BasicInput/utils.js +0 -1
- package/dist/web/BasicInput/utils.mjs +0 -37
- package/dist/web/CategoryDropdown/CategoryDropdown.js +0 -1
- package/dist/web/CategoryDropdown/CategoryDropdown.mjs +0 -260
- package/dist/web/CheckBox/BCheckBox.js +0 -1
- package/dist/web/CheckBox/BCheckBox.mjs +0 -101
- package/dist/web/CheckBox/Group.js +0 -1
- package/dist/web/CheckBox/Group.mjs +0 -67
- package/dist/web/CheckBox/context.js +0 -1
- package/dist/web/CheckBox/context.mjs +0 -5
- package/dist/web/CheckBox/index.js +0 -1
- package/dist/web/CheckBox/index.mjs +0 -8
- package/dist/web/Dropdown/BDropdown.js +0 -1
- package/dist/web/Dropdown/BDropdown.mjs +0 -160
- package/dist/web/EmptyInputBox/EmptyInputBox.js +0 -1
- package/dist/web/EmptyInputBox/EmptyInputBox.mjs +0 -74
- package/dist/web/FileCard/FileCard.js +0 -1
- package/dist/web/FileCard/FileCard.mjs +0 -128
- package/dist/web/Icon/Icon.js +0 -1
- package/dist/web/Icon/Icon.mjs +0 -10
- package/dist/web/Input/Input.js +0 -1
- package/dist/web/Input/Input.mjs +0 -173
- package/dist/web/InputNumber/BInputNumber.js +0 -1
- package/dist/web/InputNumber/BInputNumber.mjs +0 -204
- package/dist/web/InputNumber/StepHandler.js +0 -1
- package/dist/web/InputNumber/StepHandler.mjs +0 -64
- package/dist/web/InputNumber/hooks/useCursor.js +0 -1
- package/dist/web/InputNumber/hooks/useCursor.mjs +0 -39
- package/dist/web/InputNumber/hooks/useFrame.js +0 -1
- package/dist/web/InputNumber/hooks/useFrame.mjs +0 -10
- package/dist/web/InputNumber/utils/decimal.js +0 -1
- package/dist/web/InputNumber/utils/decimal.mjs +0 -119
- package/dist/web/Modal/Modal.js +0 -1
- package/dist/web/Modal/Modal.mjs +0 -82
- package/dist/web/OverlayScrollbar/BOverlayScrollbar.js +0 -1
- package/dist/web/OverlayScrollbar/BOverlayScrollbar.mjs +0 -152
- package/dist/web/Pagination/Pagination.js +0 -1
- package/dist/web/Pagination/Pagination.mjs +0 -253
- package/dist/web/ProductField/ProductField.js +0 -1
- package/dist/web/ProductField/ProductField.mjs +0 -226
- package/dist/web/ProductField/arrow-up.svg.js +0 -1
- package/dist/web/ProductField/arrow-up.svg.mjs +0 -4
- package/dist/web/ProductField/checkbox-no.svg.js +0 -1
- package/dist/web/ProductField/checkbox-no.svg.mjs +0 -4
- package/dist/web/ProductField/checkbox-ok.svg.js +0 -1
- package/dist/web/ProductField/checkbox-ok.svg.mjs +0 -4
- package/dist/web/ProductField/no_data_light.svg.js +0 -1
- package/dist/web/ProductField/no_data_light.svg.mjs +0 -4
- package/dist/web/ProductField/search.svg.js +0 -1
- package/dist/web/ProductField/search.svg.mjs +0 -4
- package/dist/web/ProductField/sort.svg.js +0 -1
- package/dist/web/ProductField/sort.svg.mjs +0 -4
- package/dist/web/SkuInputCard/SkuInputCard.js +0 -1
- package/dist/web/SkuInputCard/SkuInputCard.mjs +0 -238
- package/dist/web/SkuInputCard/spin_loading_red.gif.js +0 -1
- package/dist/web/SkuInputCard/spin_loading_red.gif.mjs +0 -4
- package/dist/web/Switch/Switch.js +0 -1
- package/dist/web/Switch/Switch.mjs +0 -61
- package/dist/web/Table/BTable.js +0 -1
- package/dist/web/Table/BTable.mjs +0 -698
- package/dist/web/Table/Column.js +0 -1
- package/dist/web/Table/Column.mjs +0 -6
- package/dist/web/Table/ColumnGroup.js +0 -1
- package/dist/web/Table/ColumnGroup.mjs +0 -6
- package/dist/web/Table/utils/columns.js +0 -1
- package/dist/web/Table/utils/columns.mjs +0 -43
- package/dist/web/Table/utils/sortFilter.js +0 -1
- package/dist/web/Table/utils/sortFilter.mjs +0 -63
- package/dist/web/Tabs/BTabs.js +0 -1
- package/dist/web/Tabs/BTabs.mjs +0 -130
- package/dist/web/Tabs/TabPane.js +0 -1
- package/dist/web/Tabs/TabPane.mjs +0 -8
- package/dist/web/Tooltip/ConfirmTooltip.js +0 -1
- package/dist/web/Tooltip/ConfirmTooltip.mjs +0 -26
- package/dist/web/Tooltip/ContentTooltip.js +0 -1
- package/dist/web/Tooltip/ContentTooltip.mjs +0 -83
- package/dist/web/Tooltip/ProgressTooltip.js +0 -1
- package/dist/web/Tooltip/ProgressTooltip.mjs +0 -35
- package/dist/web/Tooltip/TooltipWrapper.js +0 -1
- package/dist/web/Tooltip/TooltipWrapper.mjs +0 -13
- package/dist/web/Tooltip/useAutoPlacement.js +0 -1
- package/dist/web/Tooltip/useAutoPlacement.mjs +0 -32
- package/dist/web.d.ts +0 -1139
- package/dist/web.js +0 -1
- package/dist/web.mjs +0 -51
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as w, useRef as T, useEffect as rt, useMemo as ct } from "react";
|
|
3
|
-
import { createPortal as dt } from "react-dom";
|
|
4
|
-
/* empty css */
|
|
5
|
-
function pt({
|
|
6
|
-
triggerRect: v,
|
|
7
|
-
dropdownHeight: r,
|
|
8
|
-
viewportHeight: k
|
|
9
|
-
}) {
|
|
10
|
-
const L = k - v.bottom, z = v.top;
|
|
11
|
-
return L < r && z >= r ? "top" : "bottom";
|
|
12
|
-
}
|
|
13
|
-
const ft = (v) => {
|
|
14
|
-
const {
|
|
15
|
-
current: r,
|
|
16
|
-
defaultCurrent: k = 1,
|
|
17
|
-
pageSize: L,
|
|
18
|
-
defaultPageSize: z = 10,
|
|
19
|
-
total: b = 0,
|
|
20
|
-
onChange: c,
|
|
21
|
-
onShowSizeChange: x,
|
|
22
|
-
showSizeChanger: H = !1,
|
|
23
|
-
showQuickJumper: J = !1,
|
|
24
|
-
pageSizeOptions: $ = [10, 20, 50, 100],
|
|
25
|
-
disabled: l = !1,
|
|
26
|
-
hideOnSinglePage: Q = !1,
|
|
27
|
-
showTotal: M,
|
|
28
|
-
size: W = "medium",
|
|
29
|
-
align: q = "start",
|
|
30
|
-
simple: F = !1,
|
|
31
|
-
popupPlacement: d,
|
|
32
|
-
resolvePopupPlacement: y,
|
|
33
|
-
dropdownClassName: S,
|
|
34
|
-
t: N = (t) => t,
|
|
35
|
-
className: E,
|
|
36
|
-
style: B
|
|
37
|
-
} = v, [G, O] = w(k), [K, U] = w(z), [m, g] = w(!1), [f, V] = w("bottom"), [P, X] = w(null), p = T(null), R = T(null), o = r ?? G, u = L ?? K, s = Math.ceil(b / u);
|
|
38
|
-
if (Q && s <= 1)
|
|
39
|
-
return null;
|
|
40
|
-
const h = (t) => {
|
|
41
|
-
l || t < 1 || t > s || t === o || (r === void 0 && O(t), c == null || c(t, u));
|
|
42
|
-
}, Y = (t) => {
|
|
43
|
-
const n = Math.ceil(b / t), e = Math.min(o, n) || 1;
|
|
44
|
-
L === void 0 && (U(t), r === void 0 && O(e)), x == null || x(e, t), c == null || c(e, t);
|
|
45
|
-
}, D = (t) => {
|
|
46
|
-
if (!p.current) return;
|
|
47
|
-
const n = p.current.getBoundingClientRect();
|
|
48
|
-
X({
|
|
49
|
-
left: n.left + n.width / 2,
|
|
50
|
-
top: t === "bottom" ? n.bottom + 4 : n.top - 4
|
|
51
|
-
});
|
|
52
|
-
}, _ = () => {
|
|
53
|
-
if (l) return;
|
|
54
|
-
if (m) {
|
|
55
|
-
g(!1);
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
let t = f;
|
|
59
|
-
if (d === void 0 && p.current) {
|
|
60
|
-
const n = p.current.getBoundingClientRect(), e = $.length * 40 + 8, C = window.innerHeight;
|
|
61
|
-
t = (y == null ? void 0 : y({ triggerRect: n, dropdownHeight: e, viewportHeight: C })) ?? pt({ triggerRect: n, dropdownHeight: e, viewportHeight: C }), V(t);
|
|
62
|
-
}
|
|
63
|
-
D(d ?? t), g(!0);
|
|
64
|
-
}, tt = (t) => {
|
|
65
|
-
Y(t), g(!1);
|
|
66
|
-
};
|
|
67
|
-
rt(() => {
|
|
68
|
-
const t = (C) => {
|
|
69
|
-
var Z, A;
|
|
70
|
-
const I = C.target;
|
|
71
|
-
(Z = p.current) != null && Z.contains(I) || (A = R.current) != null && A.contains(I) || g(!1);
|
|
72
|
-
}, n = () => g(!1), e = () => D(d ?? f);
|
|
73
|
-
if (m)
|
|
74
|
-
return document.addEventListener("mousedown", t), document.addEventListener("scroll", n, !0), window.addEventListener("resize", e), () => {
|
|
75
|
-
document.removeEventListener("mousedown", t), document.removeEventListener("scroll", n, !0), window.removeEventListener("resize", e);
|
|
76
|
-
};
|
|
77
|
-
}, [m, d, f]);
|
|
78
|
-
const et = (t) => {
|
|
79
|
-
const n = parseInt(t.target.value);
|
|
80
|
-
!isNaN(n) && n >= 1 && n <= s && h(n);
|
|
81
|
-
}, nt = ct(() => {
|
|
82
|
-
const t = [];
|
|
83
|
-
if (s <= 7)
|
|
84
|
-
for (let e = 1; e <= s; e++)
|
|
85
|
-
t.push(e);
|
|
86
|
-
else if (o <= 4) {
|
|
87
|
-
for (let e = 1; e <= 5; e++)
|
|
88
|
-
t.push(e);
|
|
89
|
-
t.push("..."), t.push(s);
|
|
90
|
-
} else if (o >= s - 3) {
|
|
91
|
-
t.push(1), t.push("...");
|
|
92
|
-
for (let e = s - 4; e <= s; e++)
|
|
93
|
-
t.push(e);
|
|
94
|
-
} else {
|
|
95
|
-
t.push(1), t.push("...");
|
|
96
|
-
for (let e = o - 1; e <= o + 1; e++)
|
|
97
|
-
t.push(e);
|
|
98
|
-
t.push("..."), t.push(s);
|
|
99
|
-
}
|
|
100
|
-
return t;
|
|
101
|
-
}, [o, s]), it = (o - 1) * u + 1, ot = Math.min(o * u, b), st = `pagination-${W}`, at = `pagination-${q}`, j = l ? "pagination-disabled" : "", lt = (t, n) => t === "..." ? /* @__PURE__ */ i("span", { className: "pagination-item pagination-ellipsis", children: "..." }, `ellipsis-${n}`) : /* @__PURE__ */ i(
|
|
102
|
-
"button",
|
|
103
|
-
{
|
|
104
|
-
type: "button",
|
|
105
|
-
className: `pagination-item ${t === o ? "pagination-item-active" : ""}`,
|
|
106
|
-
onClick: () => h(t),
|
|
107
|
-
disabled: l,
|
|
108
|
-
children: t
|
|
109
|
-
},
|
|
110
|
-
t
|
|
111
|
-
);
|
|
112
|
-
return F ? /* @__PURE__ */ i(
|
|
113
|
-
"div",
|
|
114
|
-
{
|
|
115
|
-
className: `pagination pagination-simple ${j} ${E || ""}`,
|
|
116
|
-
style: B,
|
|
117
|
-
children: /* @__PURE__ */ a("div", { className: "pagination-simple-list", children: [
|
|
118
|
-
/* @__PURE__ */ i(
|
|
119
|
-
"button",
|
|
120
|
-
{
|
|
121
|
-
type: "button",
|
|
122
|
-
className: "pagination-simple-item pagination-simple-prev",
|
|
123
|
-
onClick: () => h(o - 1),
|
|
124
|
-
disabled: l || o === 1,
|
|
125
|
-
children: /* @__PURE__ */ i("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ i("path", { d: "M8 2L4 6L8 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
/* @__PURE__ */ a("span", { className: "pagination-simple-text", children: [
|
|
129
|
-
o,
|
|
130
|
-
" / ",
|
|
131
|
-
s || 0
|
|
132
|
-
] }),
|
|
133
|
-
/* @__PURE__ */ i(
|
|
134
|
-
"button",
|
|
135
|
-
{
|
|
136
|
-
type: "button",
|
|
137
|
-
className: "pagination-simple-item pagination-simple-next",
|
|
138
|
-
onClick: () => h(o + 1),
|
|
139
|
-
disabled: l || o === s,
|
|
140
|
-
children: /* @__PURE__ */ i("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ i("path", { d: "M4 2L8 6L4 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
] })
|
|
144
|
-
}
|
|
145
|
-
) : /* @__PURE__ */ a(
|
|
146
|
-
"div",
|
|
147
|
-
{
|
|
148
|
-
className: `pagination ${st} ${at} ${j} ${E || ""}`,
|
|
149
|
-
style: B,
|
|
150
|
-
children: [
|
|
151
|
-
M && /* @__PURE__ */ i("div", { className: "pagination-total", children: M(b, [it, ot]) }),
|
|
152
|
-
/* @__PURE__ */ a("div", { className: "pagination-list", children: [
|
|
153
|
-
/* @__PURE__ */ i(
|
|
154
|
-
"button",
|
|
155
|
-
{
|
|
156
|
-
type: "button",
|
|
157
|
-
className: "pagination-item pagination-prev",
|
|
158
|
-
onClick: () => h(o - 1),
|
|
159
|
-
disabled: l || o === 1,
|
|
160
|
-
children: /* @__PURE__ */ a("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
161
|
-
/* @__PURE__ */ i("path", { d: "M11.1749 5.57516C11.3377 5.41245 11.6014 5.41245 11.7641 5.57516C11.9268 5.73788 11.9268 6.00164 11.7641 6.16436L7.8945 10.034L11.7617 13.8366C11.9257 13.998 11.9279 14.2617 11.7666 14.4258C11.6052 14.5899 11.3414 14.592 11.1774 14.4307L7.2105 10.5299C6.93541 10.2594 6.93349 9.81648 7.20629 9.54367L11.1749 5.57516Z", fill: "#333333" }),
|
|
162
|
-
/* @__PURE__ */ i("path", { d: "M11.1749 5.57516C11.3377 5.41245 11.6014 5.41245 11.7641 5.57516C11.9268 5.73788 11.9268 6.00164 11.7641 6.16436L7.8945 10.034L11.7617 13.8366C11.9257 13.998 11.9279 14.2617 11.7666 14.4258C11.6052 14.5899 11.3414 14.592 11.1774 14.4307L7.2105 10.5299C6.93541 10.2594 6.93349 9.81648 7.20629 9.54367L11.1749 5.57516Z", fill: "black", fillOpacity: "0.2" })
|
|
163
|
-
] })
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
nt.map((t, n) => lt(t, n)),
|
|
167
|
-
/* @__PURE__ */ i(
|
|
168
|
-
"button",
|
|
169
|
-
{
|
|
170
|
-
type: "button",
|
|
171
|
-
className: "pagination-item pagination-next",
|
|
172
|
-
onClick: () => h(o + 1),
|
|
173
|
-
disabled: l || o === s,
|
|
174
|
-
children: /* @__PURE__ */ a("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
175
|
-
/* @__PURE__ */ i("path", { d: "M8.82507 5.57516C8.66235 5.41245 8.39859 5.41245 8.23587 5.57516C8.07315 5.73788 8.07315 6.00164 8.23587 6.16436L12.1055 10.034L8.23831 13.8366C8.07427 13.998 8.0721 14.2617 8.23343 14.4258C8.39478 14.5899 8.65856 14.592 8.82262 14.4307L12.7895 10.5299C13.0646 10.2594 13.0665 9.81648 12.7937 9.54367L8.82507 5.57516Z", fill: "#333333" }),
|
|
176
|
-
/* @__PURE__ */ i("path", { d: "M8.82507 5.57516C8.66235 5.41245 8.39859 5.41245 8.23587 5.57516C8.07315 5.73788 8.07315 6.00164 8.23587 6.16436L12.1055 10.034L8.23831 13.8366C8.07427 13.998 8.0721 14.2617 8.23343 14.4258C8.39478 14.5899 8.65856 14.592 8.82262 14.4307L12.7895 10.5299C13.0646 10.2594 13.0665 9.81648 12.7937 9.54367L8.82507 5.57516Z", fill: "black", "fill-opacity": "0.2" })
|
|
177
|
-
] })
|
|
178
|
-
}
|
|
179
|
-
)
|
|
180
|
-
] }),
|
|
181
|
-
H && /* @__PURE__ */ a("div", { className: "pagination-sizer", ref: p, children: [
|
|
182
|
-
/* @__PURE__ */ a(
|
|
183
|
-
"button",
|
|
184
|
-
{
|
|
185
|
-
type: "button",
|
|
186
|
-
className: "pagination-sizer-select",
|
|
187
|
-
onClick: _,
|
|
188
|
-
disabled: l,
|
|
189
|
-
children: [
|
|
190
|
-
u,
|
|
191
|
-
N("条/页"),
|
|
192
|
-
/* @__PURE__ */ a("svg", { className: `pagination-sizer-icon${m ? " pagination-sizer-icon-open" : ""}`, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
193
|
-
/* @__PURE__ */ i("path", { d: "M5.57321 8.828C5.41049 8.66528 5.41049 8.40152 5.57321 8.2388C5.73593 8.07608 5.99969 8.07608 6.1624 8.2388L10.032 12.1084L13.8347 8.24124C13.996 8.0772 14.2598 8.07503 14.4239 8.23636C14.5879 8.39771 14.5901 8.66149 14.4287 8.82555L10.5279 12.7924C10.2574 13.0675 9.81452 13.0694 9.54172 12.7966L5.57321 8.828Z", fill: "#333333" }),
|
|
194
|
-
/* @__PURE__ */ i("path", { d: "M5.57321 8.828C5.41049 8.66528 5.41049 8.40152 5.57321 8.2388C5.73593 8.07608 5.99969 8.07608 6.1624 8.2388L10.032 12.1084L13.8347 8.24124C13.996 8.0772 14.2598 8.07503 14.4239 8.23636C14.5879 8.39771 14.5901 8.66149 14.4287 8.82555L10.5279 12.7924C10.2574 13.0675 9.81452 13.0694 9.54172 12.7966L5.57321 8.828Z", fill: "black", fillOpacity: "0.2" })
|
|
195
|
-
] })
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
m && P && dt(
|
|
200
|
-
/* @__PURE__ */ i(
|
|
201
|
-
"div",
|
|
202
|
-
{
|
|
203
|
-
ref: R,
|
|
204
|
-
className: `pagination-sizer-dropdown pagination-sizer-dropdown-${d ?? f}${S ? ` ${S}` : ""}`,
|
|
205
|
-
style: {
|
|
206
|
-
position: "fixed",
|
|
207
|
-
left: P.left,
|
|
208
|
-
top: P.top,
|
|
209
|
-
zIndex: 99999,
|
|
210
|
-
transform: (d ?? f) === "bottom" ? "translate(-50%, 0)" : "translate(-50%, -100%)"
|
|
211
|
-
},
|
|
212
|
-
children: $.map((t) => /* @__PURE__ */ a(
|
|
213
|
-
"button",
|
|
214
|
-
{
|
|
215
|
-
type: "button",
|
|
216
|
-
className: "pagination-sizer-option",
|
|
217
|
-
onClick: () => tt(t),
|
|
218
|
-
"data-selected": t === u,
|
|
219
|
-
children: [
|
|
220
|
-
t,
|
|
221
|
-
N("条/页")
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
t
|
|
225
|
-
))
|
|
226
|
-
}
|
|
227
|
-
),
|
|
228
|
-
document.body
|
|
229
|
-
)
|
|
230
|
-
] }),
|
|
231
|
-
J && /* @__PURE__ */ a("div", { className: "pagination-jumper", children: [
|
|
232
|
-
/* @__PURE__ */ i("span", { children: N("跳至") }),
|
|
233
|
-
/* @__PURE__ */ i(
|
|
234
|
-
"input",
|
|
235
|
-
{
|
|
236
|
-
type: "number",
|
|
237
|
-
className: "pagination-jumper-input",
|
|
238
|
-
min: 1,
|
|
239
|
-
max: s,
|
|
240
|
-
onChange: et,
|
|
241
|
-
disabled: l,
|
|
242
|
-
placeholder: ""
|
|
243
|
-
}
|
|
244
|
-
),
|
|
245
|
-
/* @__PURE__ */ i("span", { children: N("页") })
|
|
246
|
-
] })
|
|
247
|
-
]
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
};
|
|
251
|
-
export {
|
|
252
|
-
ft as default
|
|
253
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),ne=require("react-dom");;/* empty css */const ce=require("./no_data_light.svg.js"),B=require("./arrow-up.svg.js"),oe=require("./sort.svg.js"),ie=require("./search.svg.js"),ae=require("./checkbox-no.svg.js"),ue=require("./checkbox-ok.svg.js");function Z({size:u=20}){return t.jsx("svg",{width:u,height:u,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.5613 6.73027C16.7558 6.53571 17.0723 6.53442 17.2684 6.72736C17.4644 6.92032 17.4657 7.23444 17.2713 7.42901L12.7036 12.0002L17.2713 16.5714C17.4657 16.766 17.4644 17.0801 17.2684 17.273C17.0723 17.4659 16.7558 17.4646 16.5613 17.2701L11.9996 12.7047L7.43794 17.2701C7.24352 17.4647 6.92699 17.4659 6.73091 17.273C6.53485 17.0801 6.53355 16.7659 6.72798 16.5714L11.2955 12.0002L6.72798 7.42901C6.53355 7.23442 6.53485 6.92032 6.73091 6.72736C6.92698 6.53442 7.2435 6.53571 7.43794 6.73027L11.9996 11.2955L16.5613 6.73027Z",fill:"currentColor"})})}function le({options:u=[],value:a=[],onChange:o,placeholder:R="请选择",emptyText:D="暂无产品数据",onManageField:I,multiple:d=!0,showSearch:E=!0,showSort:q=!0,addButtonText:y,onAdd:U,labels:s,className:H,style:G,getPopupContainer:x}){const J=(s==null?void 0:s.searchPlaceholder)??"搜索",K=(s==null?void 0:s.sortDefault)??"默认顺序",Q=(s==null?void 0:s.sortAsc)??"名称A-Z",V=(s==null?void 0:s.sortDesc)??"名称Z-A",O=(s==null?void 0:s.noMatchText)??"暂无选项",W=(s==null?void 0:s.manageFieldPre)??"请前往",Y=(s==null?void 0:s.manageFieldLink)??"管理字段",ee=(s==null?void 0:s.manageFieldPost)??"添加",[f,C]=c.useState(!1),[j,M]=c.useState(""),[p,F]=c.useState("none"),[w,N]=c.useState(!1),m=c.useRef(null),b=c.useRef(null),P=c.useRef(null),[v,te]=c.useState({top:0,left:0,width:0}),l=c.useCallback(()=>{if(!m.current)return;const e=m.current.getBoundingClientRect();te({top:e.bottom+4,left:e.left,width:e.width})},[]);c.useLayoutEffect(()=>{f&&l()},[f,l]),c.useEffect(()=>{if(!f)return;const e=r=>{var i,g;const n=r.target;(i=P.current)!=null&&i.contains(n)||(g=m.current)!=null&&g.contains(n)||L()};return document.addEventListener("mousedown",e),window.addEventListener("scroll",l,!0),window.addEventListener("resize",l),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l)}},[f,l]),c.useEffect(()=>{if(!w)return;const e=r=>{b.current&&!b.current.contains(r.target)&&N(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[w]);const S=c.useRef(null),$=c.useRef(null),h=c.useRef({dragging:!1,startX:0,scrollLeft:0,target:null}),T=c.useCallback(e=>({onMouseDown:r=>{const n=e.current;n&&(h.current={dragging:!0,startX:r.clientX,scrollLeft:n.scrollLeft,target:n})},onMouseMove:r=>{const{dragging:n,startX:i,scrollLeft:g,target:A}=h.current;!n||!A||(r.preventDefault(),A.scrollLeft=g-(r.clientX-i))},onMouseUp:()=>{h.current.dragging=!1},onMouseLeave:()=>{h.current.dragging=!1}}),[]);function se(e){if(!d){o==null||o(a.includes(e)?[]:[e]),a.includes(e)||L();return}const r=a.includes(e)?a.filter(n=>n!==e):[...a,e];o==null||o(r)}function X(e){o==null||o(a.filter(r=>r!==e))}function L(){C(!1),M(""),F("none")}function re(e){F(e),N(!1)}const z=c.useMemo(()=>{let e=u.filter(n=>(n.searchText??(typeof n.label=="string"?n.label:"")).toLowerCase().includes(j.toLowerCase()));const r=n=>n.searchText??(typeof n.label=="string"?n.label:"");return p==="asc"&&(e=[...e].sort((n,i)=>r(n).localeCompare(r(i)))),p==="desc"&&(e=[...e].sort((n,i)=>r(i).localeCompare(r(n)))),e},[u,j,p]),_=u.filter(e=>a.includes(e.value)),k=u.length>0;return t.jsxs("div",{ref:m,className:["bu-pf",H].filter(Boolean).join(" "),style:G,children:[!f&&t.jsxs("div",{className:`bu-pf__trigger${_.length>0?" bu-pf__trigger--selected":""}`,onClick:()=>C(!0),children:[_.length>0?t.jsx("div",{className:"bu-pf__trigger-tags",ref:$,...T($),children:_.map(e=>t.jsxs("span",{className:`bu-pf__tag${d?"":" bu-pf__tag--single"}`,children:[t.jsx("span",{className:"bu-pf__tag-text",children:e.label}),t.jsx("button",{type:"button",className:"bu-pf__tag-close",onClick:r=>{r.stopPropagation(),X(e.value)},children:t.jsx(Z,{size:12})})]},e.value))}):t.jsx("span",{className:"bu-pf__placeholder",children:R}),t.jsx("span",{className:"bu-pf__arrow",children:t.jsx("img",{src:B,width:24,height:24,alt:""})})]}),f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bu-pf__panel",children:t.jsxs("div",{className:"bu-pf__header",children:[t.jsx("div",{className:"bu-pf__tags",ref:S,...T(S),children:_.length>0?_.map(e=>t.jsxs("span",{className:`bu-pf__tag${d?"":" bu-pf__tag--single"}`,children:[t.jsx("span",{className:"bu-pf__tag-text",children:e.label}),t.jsx("button",{type:"button",className:"bu-pf__tag-close",onClick:()=>X(e.value),children:t.jsx(Z,{size:12})})]},e.value)):t.jsx("span",{className:"bu-pf__placeholder-inline",children:R})}),t.jsx("button",{type:"button",className:"bu-pf__close",onClick:L,children:t.jsx("img",{src:B,width:24,height:24,alt:""})})]})}),ne.createPortal(t.jsx("div",{ref:P,className:"bu-pf__portal",style:{position:"fixed",top:v.top,left:v.left,width:v.width,zIndex:1050},children:t.jsxs("div",{className:"bu-pf__dropdown",children:[(E||q)&&t.jsxs("div",{className:"bu-pf__toolbar",children:[E&&t.jsxs("div",{className:"bu-pf__search",children:[t.jsx("span",{className:"bu-pf__search-icon",children:t.jsx("img",{src:ie,width:20,height:20,alt:""})}),t.jsx("input",{className:"bu-pf__search-input",placeholder:J,value:j,onChange:e=>M(e.target.value)})]}),q&&t.jsxs("div",{ref:b,className:"bu-pf__sort-wrap",children:[t.jsx("button",{type:"button",className:`bu-pf__sort-btn${p!=="none"?" bu-pf__sort-btn--active":""}`,onClick:()=>N(e=>!e),children:t.jsx("img",{src:oe,width:24,height:24,alt:""})}),w&&t.jsx("div",{className:"bu-pf__sort-dropdown",children:[{key:"none",label:K},{key:"asc",label:Q},{key:"desc",label:V}].map(({key:e,label:r})=>t.jsx("div",{className:`bu-pf__sort-option${p===e?" bu-pf__sort-option--active":""}`,onClick:()=>re(e),children:r},e))})]})]}),t.jsx("div",{className:"bu-pf__list",children:k&&z.length>0?z.map(e=>{const r=a.includes(e.value);return t.jsxs("div",{className:`bu-pf__option${d?" bu-pf__option--multiple":""}${r&&!d?" bu-pf__option--selected":""}`,onClick:()=>se(e.value),children:[d&&t.jsx("img",{className:"bu-pf__checkbox-img",src:r?ue:ae,alt:""}),t.jsx("span",{className:"bu-pf__option-label",children:e.label})]},e.value)}):t.jsxs("div",{className:"bu-pf__no-match",children:[t.jsx("img",{className:"bu-pf__no-match-img",src:ce,alt:k?O:D}),t.jsx("p",{className:"bu-pf__no-match-text",children:k?O:D}),t.jsxs("p",{className:"bu-pf__no-match-hint",children:[W,t.jsx("button",{type:"button",className:"bu-pf__manage-btn",onClick:I,children:Y}),ee]})]})}),y&&t.jsx("div",{className:"bu-pf__add-row",onClick:U,children:y})]})}),(x==null?void 0:x())??document.body)]})]})}module.exports=le;
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as t, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h, useRef as m, useCallback as U, useLayoutEffect as le, useEffect as H, useMemo as de } from "react";
|
|
3
|
-
import { createPortal as ue } from "react-dom";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import fe from "./no_data_light.svg.mjs";
|
|
6
|
-
import q from "./arrow-up.svg.mjs";
|
|
7
|
-
import me from "./sort.svg.mjs";
|
|
8
|
-
import pe from "./search.svg.mjs";
|
|
9
|
-
import _e from "./checkbox-no.svg.mjs";
|
|
10
|
-
import he from "./checkbox-ok.svg.mjs";
|
|
11
|
-
function G({ size: l = 20 }) {
|
|
12
|
-
return /* @__PURE__ */ t("svg", { width: l, height: l, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { d: "M16.5613 6.73027C16.7558 6.53571 17.0723 6.53442 17.2684 6.72736C17.4644 6.92032 17.4657 7.23444 17.2713 7.42901L12.7036 12.0002L17.2713 16.5714C17.4657 16.766 17.4644 17.0801 17.2684 17.273C17.0723 17.4659 16.7558 17.4646 16.5613 17.2701L11.9996 12.7047L7.43794 17.2701C7.24352 17.4647 6.92699 17.4659 6.73091 17.273C6.53485 17.0801 6.53355 16.7659 6.72798 16.5714L11.2955 12.0002L6.72798 7.42901C6.53355 7.23442 6.53485 6.92032 6.73091 6.72736C6.92698 6.53442 7.2435 6.53571 7.43794 6.73027L11.9996 11.2955L16.5613 6.73027Z", fill: "currentColor" }) });
|
|
13
|
-
}
|
|
14
|
-
function De({
|
|
15
|
-
options: l = [],
|
|
16
|
-
value: a = [],
|
|
17
|
-
onChange: o,
|
|
18
|
-
placeholder: O = "请选择",
|
|
19
|
-
emptyText: M = "暂无产品数据",
|
|
20
|
-
onManageField: J,
|
|
21
|
-
multiple: u = !0,
|
|
22
|
-
showSearch: C = !0,
|
|
23
|
-
showSort: F = !0,
|
|
24
|
-
addButtonText: I,
|
|
25
|
-
onAdd: K,
|
|
26
|
-
labels: r,
|
|
27
|
-
className: Q,
|
|
28
|
-
style: V,
|
|
29
|
-
getPopupContainer: v
|
|
30
|
-
}) {
|
|
31
|
-
const W = (r == null ? void 0 : r.searchPlaceholder) ?? "搜索", Y = (r == null ? void 0 : r.sortDefault) ?? "默认顺序", ee = (r == null ? void 0 : r.sortAsc) ?? "名称A-Z", te = (r == null ? void 0 : r.sortDesc) ?? "名称Z-A", P = (r == null ? void 0 : r.noMatchText) ?? "暂无选项", re = (r == null ? void 0 : r.manageFieldPre) ?? "请前往", ne = (r == null ? void 0 : r.manageFieldLink) ?? "管理字段", ce = (r == null ? void 0 : r.manageFieldPost) ?? "添加", [f, R] = h(!1), [b, $] = h(""), [p, T] = h("none"), [L, k] = h(!1), g = m(null), x = m(null), X = m(null), [y, se] = h({ top: 0, left: 0, width: 0 }), d = U(() => {
|
|
32
|
-
if (!g.current) return;
|
|
33
|
-
const e = g.current.getBoundingClientRect();
|
|
34
|
-
se({
|
|
35
|
-
top: e.bottom + 4,
|
|
36
|
-
left: e.left,
|
|
37
|
-
width: e.width
|
|
38
|
-
});
|
|
39
|
-
}, []);
|
|
40
|
-
le(() => {
|
|
41
|
-
f && d();
|
|
42
|
-
}, [f, d]), H(() => {
|
|
43
|
-
if (!f) return;
|
|
44
|
-
const e = (n) => {
|
|
45
|
-
var i, N;
|
|
46
|
-
const c = n.target;
|
|
47
|
-
(i = X.current) != null && i.contains(c) || (N = g.current) != null && N.contains(c) || E();
|
|
48
|
-
};
|
|
49
|
-
return document.addEventListener("mousedown", e), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
|
|
50
|
-
document.removeEventListener("mousedown", e), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
|
|
51
|
-
};
|
|
52
|
-
}, [f, d]), H(() => {
|
|
53
|
-
if (!L) return;
|
|
54
|
-
const e = (n) => {
|
|
55
|
-
x.current && !x.current.contains(n.target) && k(!1);
|
|
56
|
-
};
|
|
57
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
58
|
-
}, [L]);
|
|
59
|
-
const z = m(null), A = m(null), w = m({ dragging: !1, startX: 0, scrollLeft: 0, target: null }), B = U((e) => ({
|
|
60
|
-
onMouseDown: (n) => {
|
|
61
|
-
const c = e.current;
|
|
62
|
-
c && (w.current = { dragging: !0, startX: n.clientX, scrollLeft: c.scrollLeft, target: c });
|
|
63
|
-
},
|
|
64
|
-
onMouseMove: (n) => {
|
|
65
|
-
const { dragging: c, startX: i, scrollLeft: N, target: Z } = w.current;
|
|
66
|
-
!c || !Z || (n.preventDefault(), Z.scrollLeft = N - (n.clientX - i));
|
|
67
|
-
},
|
|
68
|
-
onMouseUp: () => {
|
|
69
|
-
w.current.dragging = !1;
|
|
70
|
-
},
|
|
71
|
-
onMouseLeave: () => {
|
|
72
|
-
w.current.dragging = !1;
|
|
73
|
-
}
|
|
74
|
-
}), []);
|
|
75
|
-
function oe(e) {
|
|
76
|
-
if (!u) {
|
|
77
|
-
o == null || o(a.includes(e) ? [] : [e]), a.includes(e) || E();
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const n = a.includes(e) ? a.filter((c) => c !== e) : [...a, e];
|
|
81
|
-
o == null || o(n);
|
|
82
|
-
}
|
|
83
|
-
function S(e) {
|
|
84
|
-
o == null || o(a.filter((n) => n !== e));
|
|
85
|
-
}
|
|
86
|
-
function E() {
|
|
87
|
-
R(!1), $(""), T("none");
|
|
88
|
-
}
|
|
89
|
-
function ie(e) {
|
|
90
|
-
T(e), k(!1);
|
|
91
|
-
}
|
|
92
|
-
const j = de(() => {
|
|
93
|
-
let e = l.filter((c) => (c.searchText ?? (typeof c.label == "string" ? c.label : "")).toLowerCase().includes(b.toLowerCase()));
|
|
94
|
-
const n = (c) => c.searchText ?? (typeof c.label == "string" ? c.label : "");
|
|
95
|
-
return p === "asc" && (e = [...e].sort((c, i) => n(c).localeCompare(n(i)))), p === "desc" && (e = [...e].sort((c, i) => n(i).localeCompare(n(c)))), e;
|
|
96
|
-
}, [l, b, p]), _ = l.filter((e) => a.includes(e.value)), D = l.length > 0;
|
|
97
|
-
return /* @__PURE__ */ s("div", { ref: g, className: ["bu-pf", Q].filter(Boolean).join(" "), style: V, children: [
|
|
98
|
-
!f && /* @__PURE__ */ s("div", { className: `bu-pf__trigger${_.length > 0 ? " bu-pf__trigger--selected" : ""}`, onClick: () => R(!0), children: [
|
|
99
|
-
_.length > 0 ? /* @__PURE__ */ t(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
className: "bu-pf__trigger-tags",
|
|
103
|
-
ref: A,
|
|
104
|
-
...B(A),
|
|
105
|
-
children: _.map((e) => /* @__PURE__ */ s("span", { className: `bu-pf__tag${u ? "" : " bu-pf__tag--single"}`, children: [
|
|
106
|
-
/* @__PURE__ */ t("span", { className: "bu-pf__tag-text", children: e.label }),
|
|
107
|
-
/* @__PURE__ */ t(
|
|
108
|
-
"button",
|
|
109
|
-
{
|
|
110
|
-
type: "button",
|
|
111
|
-
className: "bu-pf__tag-close",
|
|
112
|
-
onClick: (n) => {
|
|
113
|
-
n.stopPropagation(), S(e.value);
|
|
114
|
-
},
|
|
115
|
-
children: /* @__PURE__ */ t(G, { size: 12 })
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
] }, e.value))
|
|
119
|
-
}
|
|
120
|
-
) : /* @__PURE__ */ t("span", { className: "bu-pf__placeholder", children: O }),
|
|
121
|
-
/* @__PURE__ */ t("span", { className: "bu-pf__arrow", children: /* @__PURE__ */ t("img", { src: q, width: 24, height: 24, alt: "" }) })
|
|
122
|
-
] }),
|
|
123
|
-
f && /* @__PURE__ */ s(ae, { children: [
|
|
124
|
-
/* @__PURE__ */ t("div", { className: "bu-pf__panel", children: /* @__PURE__ */ s("div", { className: "bu-pf__header", children: [
|
|
125
|
-
/* @__PURE__ */ t(
|
|
126
|
-
"div",
|
|
127
|
-
{
|
|
128
|
-
className: "bu-pf__tags",
|
|
129
|
-
ref: z,
|
|
130
|
-
...B(z),
|
|
131
|
-
children: _.length > 0 ? _.map((e) => /* @__PURE__ */ s("span", { className: `bu-pf__tag${u ? "" : " bu-pf__tag--single"}`, children: [
|
|
132
|
-
/* @__PURE__ */ t("span", { className: "bu-pf__tag-text", children: e.label }),
|
|
133
|
-
/* @__PURE__ */ t(
|
|
134
|
-
"button",
|
|
135
|
-
{
|
|
136
|
-
type: "button",
|
|
137
|
-
className: "bu-pf__tag-close",
|
|
138
|
-
onClick: () => S(e.value),
|
|
139
|
-
children: /* @__PURE__ */ t(G, { size: 12 })
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] }, e.value)) : /* @__PURE__ */ t("span", { className: "bu-pf__placeholder-inline", children: O })
|
|
143
|
-
}
|
|
144
|
-
),
|
|
145
|
-
/* @__PURE__ */ t("button", { type: "button", className: "bu-pf__close", onClick: E, children: /* @__PURE__ */ t("img", { src: q, width: 24, height: 24, alt: "" }) })
|
|
146
|
-
] }) }),
|
|
147
|
-
ue(
|
|
148
|
-
/* @__PURE__ */ t("div", { ref: X, className: "bu-pf__portal", style: { position: "fixed", top: y.top, left: y.left, width: y.width, zIndex: 1050 }, children: /* @__PURE__ */ s("div", { className: "bu-pf__dropdown", children: [
|
|
149
|
-
(C || F) && /* @__PURE__ */ s("div", { className: "bu-pf__toolbar", children: [
|
|
150
|
-
C && /* @__PURE__ */ s("div", { className: "bu-pf__search", children: [
|
|
151
|
-
/* @__PURE__ */ t("span", { className: "bu-pf__search-icon", children: /* @__PURE__ */ t("img", { src: pe, width: 20, height: 20, alt: "" }) }),
|
|
152
|
-
/* @__PURE__ */ t(
|
|
153
|
-
"input",
|
|
154
|
-
{
|
|
155
|
-
className: "bu-pf__search-input",
|
|
156
|
-
placeholder: W,
|
|
157
|
-
value: b,
|
|
158
|
-
onChange: (e) => $(e.target.value)
|
|
159
|
-
}
|
|
160
|
-
)
|
|
161
|
-
] }),
|
|
162
|
-
F && /* @__PURE__ */ s("div", { ref: x, className: "bu-pf__sort-wrap", children: [
|
|
163
|
-
/* @__PURE__ */ t(
|
|
164
|
-
"button",
|
|
165
|
-
{
|
|
166
|
-
type: "button",
|
|
167
|
-
className: `bu-pf__sort-btn${p !== "none" ? " bu-pf__sort-btn--active" : ""}`,
|
|
168
|
-
onClick: () => k((e) => !e),
|
|
169
|
-
children: /* @__PURE__ */ t("img", { src: me, width: 24, height: 24, alt: "" })
|
|
170
|
-
}
|
|
171
|
-
),
|
|
172
|
-
L && /* @__PURE__ */ t("div", { className: "bu-pf__sort-dropdown", children: [
|
|
173
|
-
{ key: "none", label: Y },
|
|
174
|
-
{ key: "asc", label: ee },
|
|
175
|
-
{ key: "desc", label: te }
|
|
176
|
-
].map(({ key: e, label: n }) => /* @__PURE__ */ t(
|
|
177
|
-
"div",
|
|
178
|
-
{
|
|
179
|
-
className: `bu-pf__sort-option${p === e ? " bu-pf__sort-option--active" : ""}`,
|
|
180
|
-
onClick: () => ie(e),
|
|
181
|
-
children: n
|
|
182
|
-
},
|
|
183
|
-
e
|
|
184
|
-
)) })
|
|
185
|
-
] })
|
|
186
|
-
] }),
|
|
187
|
-
/* @__PURE__ */ t("div", { className: "bu-pf__list", children: D && j.length > 0 ? j.map((e) => {
|
|
188
|
-
const n = a.includes(e.value);
|
|
189
|
-
return /* @__PURE__ */ s(
|
|
190
|
-
"div",
|
|
191
|
-
{
|
|
192
|
-
className: `bu-pf__option${u ? " bu-pf__option--multiple" : ""}${n && !u ? " bu-pf__option--selected" : ""}`,
|
|
193
|
-
onClick: () => oe(e.value),
|
|
194
|
-
children: [
|
|
195
|
-
u && /* @__PURE__ */ t(
|
|
196
|
-
"img",
|
|
197
|
-
{
|
|
198
|
-
className: "bu-pf__checkbox-img",
|
|
199
|
-
src: n ? he : _e,
|
|
200
|
-
alt: ""
|
|
201
|
-
}
|
|
202
|
-
),
|
|
203
|
-
/* @__PURE__ */ t("span", { className: "bu-pf__option-label", children: e.label })
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
|
-
e.value
|
|
207
|
-
);
|
|
208
|
-
}) : /* @__PURE__ */ s("div", { className: "bu-pf__no-match", children: [
|
|
209
|
-
/* @__PURE__ */ t("img", { className: "bu-pf__no-match-img", src: fe, alt: D ? P : M }),
|
|
210
|
-
/* @__PURE__ */ t("p", { className: "bu-pf__no-match-text", children: D ? P : M }),
|
|
211
|
-
/* @__PURE__ */ s("p", { className: "bu-pf__no-match-hint", children: [
|
|
212
|
-
re,
|
|
213
|
-
/* @__PURE__ */ t("button", { type: "button", className: "bu-pf__manage-btn", onClick: J, children: ne }),
|
|
214
|
-
ce
|
|
215
|
-
] })
|
|
216
|
-
] }) }),
|
|
217
|
-
I && /* @__PURE__ */ t("div", { className: "bu-pf__add-row", onClick: K, children: I })
|
|
218
|
-
] }) }),
|
|
219
|
-
(v == null ? void 0 : v()) ?? document.body
|
|
220
|
-
)
|
|
221
|
-
] })
|
|
222
|
-
] });
|
|
223
|
-
}
|
|
224
|
-
export {
|
|
225
|
-
De as default
|
|
226
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.1868%2013.4098C17.3821%2013.6051%2017.3821%2013.9216%2017.1868%2014.1169C16.9915%2014.3121%2016.675%2014.3121%2016.4798%2014.1169L11.8362%209.47332L7.27307%2014.1139C7.07945%2014.3108%206.76292%2014.3134%206.56604%2014.1198C6.36918%2013.9262%206.36658%2013.6097%206.56018%2013.4128L11.2412%208.65252C11.5658%208.32242%2012.0972%208.32011%2012.4246%208.64748L17.1868%2013.4098Z'%20fill='%23333333'/%3e%3cpath%20d='M17.1868%2013.4098C17.3821%2013.6051%2017.3821%2013.9216%2017.1868%2014.1169C16.9915%2014.3121%2016.675%2014.3121%2016.4798%2014.1169L11.8362%209.47332L7.27307%2014.1139C7.07945%2014.3108%206.76292%2014.3134%206.56604%2014.1198C6.36918%2013.9262%206.36658%2013.6097%206.56018%2013.4128L11.2412%208.65252C11.5658%208.32242%2012.0972%208.32011%2012.4246%208.64748L17.1868%2013.4098Z'%20fill='black'%20fill-opacity='0.2'/%3e%3c/svg%3e";module.exports=t;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.1868%2013.4098C17.3821%2013.6051%2017.3821%2013.9216%2017.1868%2014.1169C16.9915%2014.3121%2016.675%2014.3121%2016.4798%2014.1169L11.8362%209.47332L7.27307%2014.1139C7.07945%2014.3108%206.76292%2014.3134%206.56604%2014.1198C6.36918%2013.9262%206.36658%2013.6097%206.56018%2013.4128L11.2412%208.65252C11.5658%208.32242%2012.0972%208.32011%2012.4246%208.64748L17.1868%2013.4098Z'%20fill='%23333333'/%3e%3cpath%20d='M17.1868%2013.4098C17.3821%2013.6051%2017.3821%2013.9216%2017.1868%2014.1169C16.9915%2014.3121%2016.675%2014.3121%2016.4798%2014.1169L11.8362%209.47332L7.27307%2014.1139C7.07945%2014.3108%206.76292%2014.3134%206.56604%2014.1198C6.36918%2013.9262%206.36658%2013.6097%206.56018%2013.4128L11.2412%208.65252C11.5658%208.32242%2012.0972%208.32011%2012.4246%208.64748L17.1868%2013.4098Z'%20fill='black'%20fill-opacity='0.2'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
l as default
|
|
4
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%200.5H12C13.933%200.5%2015.5%202.067%2015.5%204V12C15.5%2013.933%2013.933%2015.5%2012%2015.5H4C2.067%2015.5%200.5%2013.933%200.5%2012V4C0.5%202.067%202.067%200.5%204%200.5Z'%20fill='white'%20fill-opacity='0.2'%20stroke='%23DBDBDB'/%3e%3c/svg%3e";module.exports=t;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%200.5H12C13.933%200.5%2015.5%202.067%2015.5%204V12C15.5%2013.933%2013.933%2015.5%2012%2015.5H4C2.067%2015.5%200.5%2013.933%200.5%2012V4C0.5%202.067%202.067%200.5%204%200.5Z'%20fill='white'%20fill-opacity='0.2'%20stroke='%23DBDBDB'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
e as default
|
|
4
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='white'%20fill-opacity='0.2'/%3e%3cpath%20d='M4%200.5H12C13.933%200.5%2015.5%202.067%2015.5%204V12C15.5%2013.933%2013.933%2015.5%2012%2015.5H4C2.067%2015.5%200.5%2013.933%200.5%2012V4C0.5%202.067%202.067%200.5%204%200.5Z'%20stroke='%23DBDBDB'/%3e%3cpath%20d='M11.2976%204.51378C11.4%204.3608%2011.607%204.31982%2011.76%204.4222C11.913%204.52459%2011.954%204.73167%2011.8516%204.88466L7.46663%2011.437C7.30081%2011.6847%206.94289%2011.7021%206.75374%2011.4717L4.1677%208.32097C4.05092%208.17866%204.07163%207.96857%204.21392%207.85178C4.35622%207.73501%204.56632%207.75571%204.6831%207.89801L7.07905%2010.8173L11.2976%204.51378Z'%20fill='%23333333'/%3e%3c/svg%3e";module.exports=t;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='white'%20fill-opacity='0.2'/%3e%3cpath%20d='M4%200.5H12C13.933%200.5%2015.5%202.067%2015.5%204V12C15.5%2013.933%2013.933%2015.5%2012%2015.5H4C2.067%2015.5%200.5%2013.933%200.5%2012V4C0.5%202.067%202.067%200.5%204%200.5Z'%20stroke='%23DBDBDB'/%3e%3cpath%20d='M11.2976%204.51378C11.4%204.3608%2011.607%204.31982%2011.76%204.4222C11.913%204.52459%2011.954%204.73167%2011.8516%204.88466L7.46663%2011.437C7.30081%2011.6847%206.94289%2011.7021%206.75374%2011.4717L4.1677%208.32097C4.05092%208.17866%204.07163%207.96857%204.21392%207.85178C4.35622%207.73501%204.56632%207.75571%204.6831%207.89801L7.07905%2010.8173L11.2976%204.51378Z'%20fill='%23333333'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
e as default
|
|
4
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const A="data:image/svg+xml,%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='80'%20height='80'%20fill='url(%23pattern0_11245_89379)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_11245_89379'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_11245_89379'%20transform='scale(0.00416667)'/%3e%3c/pattern%3e%3cimage%20id='image0_11245_89379'%20width='240'%20height='240'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAwwSURBVHic7d1Pb9vmHcDx30PRlOxItuHUrg0EiQysQG6zoNZDT01fQdDTdmt62rHYK2jzCpq+gGHZO0huu0U5pXMQ0APWIUAPUgt4TtvU4AxVpln+2SGy4diSJZGUyUf8foCisC2LDxh/zYcU/UgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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0RMKAxAgY0RsCAxggY0BgBAxojYEBjBAxojFspE2JFjvhYkSM59l5MrMiRDlbkSIa9FhMrcqSDFTmSIeCYiDc9rMgRHwHHxIoc6WFPxse+i4lVJNLDvoyPi1gxsSJHcqzIkRwBJ8CKHMgaU2hAYwQMaIyAAY0RMKAxAgY0RsCAxggY0BgBAxojYEBjBAxojIABjREwoDECBjRGwIDGCBjQGAEDGiNgQGMEDGiMgAGNETCgMQIGNEbAgMYIGNAYAQMaI2BAYwQMaIyAAY0RMKAxAgY0RsCAxggY0FihAjZN8yjrMWC6ivZvXKiAgyA4znoMmC7DMJysx3CVChWw7/udrMeA6To6Ovox6zFcpUIFvLm52RERN+txYGrc/r9xYRQq4L6XWQ8A06GU2s16DFetcAF7nvc06zFgKtzj4+PC/dsWLuDNzU3HMIxW1uNAukqlUmtzc7Nwp0eFC1hEZGNj46kwlZ4lL9fX1/+Z9SCyUMiARUQ8z3scRVEn63EgsZee5z3OehBZUVkPIGv7+/sfhWF4J+txYHKGYbT6s6nCKnzAIiLtdnt5bm7urlKqnvVYMJZdz/Oebm5uFuqmjUEI+Ix2u10Rkdvlcvld3/fnDcNYynpMEFFKuUopJwzDH3/77bcO4QIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAOf8HNG6DfH1Yfi4AAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e";module.exports=A;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const A = "data:image/svg+xml,%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='80'%20height='80'%20fill='url(%23pattern0_11245_89379)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_11245_89379'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_11245_89379'%20transform='scale(0.00416667)'/%3e%3c/pattern%3e%3cimage%20id='image0_11245_89379'%20width='240'%20height='240'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAwwSURBVHic7d1Pb9vmHcDx30PRlOxItuHUrg0EiQysQG6zoNZDT01fQdDTdmt62rHYK2jzCpq+gGHZO0huu0U5pXMQ0APWIUAPUgt4TtvU4AxVpln+2SGy4diSJZGUyUf8foCisC2LDxh/zYcU/UgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdqKwHAGTFtu1l3/e3DMOoG4ZxKwzDulKqfuYhyyLiiIhEUeSIiGMYRicMw+/DMOyYprnbaDScDIZ+ioBRGLZt18MwvCMid/uhbqXwtJ0oinZF5KnneY8+/PDDTgrPOTYCxkyzbbsuIp9HUXRH0gl2lI5S6pHv+48/+OCD1rQ3RsCYSS9evLinlPpURO5kOIyWUqolIl9Pa6pNwJgp/XC/EJF61mM5w1FKPZAphEzAmAk5Dfc8Ryn1oNFo3E/rCQkYWrNtux5F0RPJd7jndYIg+CyNc2QChrZs2/4iiqIvsx5HXP1p9f0k02oChnb6R92/SbYXqNKyq5T6pNFodOJ8MwFDK5pOmUdxfN//eHt7e3fSbzSmMRpgGnZ2drZmMF4RkWXTNO0XL17cm/QbOQJDCzs7O1umaT6RN7c3zqwoiv7SbDYfjPt4Akbu9afNtsx4vCfCMPzk/ffffzTOYwkYuTaj57yjOEqpxjgXtjgHRq71rzbXsx7HFVuOouiJbdsjZxwEjNyybfsrmY2XiuKoi8hXox7EFBq59Pz58zulUulJ1uPIWhRFnzWbzYfDvs4RGLlUKpW+yHoMedC/v3soAkbuPH/+/I4Ud+p8Xt227aEREzByh6Pv26IoujfsawSMXOHoO1B92F1aBIxc4eg7mFLq84Gfv+qBAMPYtr0cRVFbCnLH1aSUUpvnb+7gCIzc8H1/S4h3q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AAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
A as default
|
|
4
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const C="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.38154%204.67725C11.9512%204.67725%2014.0343%206.76037%2014.0343%209.33002C14.0343%2010.5162%2013.5901%2011.5984%2012.8595%2012.4202L15.1454%2014.6078C15.3102%2014.7684%2015.3136%2015.0322%2015.153%2015.197C14.9924%2015.3618%2014.7286%2015.3652%2014.5638%2015.2046L12.2521%2012.9919C11.4614%2013.6126%2010.4647%2013.9828%209.38154%2013.9828C6.81188%2013.9828%204.72876%2011.8997%204.72876%209.33002C4.72876%206.76037%206.81188%204.67725%209.38154%204.67725ZM9.38154%205.51058C7.27212%205.51058%205.56209%207.2206%205.56209%209.33002C5.56209%2011.4394%207.27212%2013.1495%209.38154%2013.1495C11.491%2013.1495%2013.201%2011.4394%2013.201%209.33002C13.201%207.2206%2011.491%205.51058%209.38154%205.51058Z'%20fill='%23666666'/%3e%3c/svg%3e";module.exports=C;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const C = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.38154%204.67725C11.9512%204.67725%2014.0343%206.76037%2014.0343%209.33002C14.0343%2010.5162%2013.5901%2011.5984%2012.8595%2012.4202L15.1454%2014.6078C15.3102%2014.7684%2015.3136%2015.0322%2015.153%2015.197C14.9924%2015.3618%2014.7286%2015.3652%2014.5638%2015.2046L12.2521%2012.9919C11.4614%2013.6126%2010.4647%2013.9828%209.38154%2013.9828C6.81188%2013.9828%204.72876%2011.8997%204.72876%209.33002C4.72876%206.76037%206.81188%204.67725%209.38154%204.67725ZM9.38154%205.51058C7.27212%205.51058%205.56209%207.2206%205.56209%209.33002C5.56209%2011.4394%207.27212%2013.1495%209.38154%2013.1495C11.491%2013.1495%2013.201%2011.4394%2013.201%209.33002C13.201%207.2206%2011.491%205.51058%209.38154%205.51058Z'%20fill='%23666666'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
C as default
|
|
4
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const C="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3576%2017.528C10.3576%2017.7887%2010.1444%2018%209.88136%2018C9.61835%2018%209.40513%2017.7887%209.40513%2017.528V7.58313L6.67551%2010.8295C6.50712%2011.0297%206.20676%2011.0568%206.00473%2010.8899C5.80272%2010.723%205.77545%2010.4254%205.9438%2010.2251L9.23476%206.31136C9.61494%205.85923%2010.3575%206.12565%2010.3576%206.71418V17.528ZM17.9981%2013.1613C18.1989%2013.3296%2018.2239%2013.6275%2018.0541%2013.8265L14.683%2017.7758C14.3009%2018.2233%2013.5632%2017.9556%2013.5632%2017.3694V6.47196C13.5632%206.21131%2013.7765%206.00001%2014.0395%206C14.3025%206%2014.5157%206.2113%2014.5157%206.47196V16.5101L17.327%2013.2169C17.4969%2013.0179%2017.7973%2012.993%2017.9981%2013.1613Z'%20fill='%23333333'/%3e%3cpath%20d='M10.3576%2017.528C10.3576%2017.7887%2010.1444%2018%209.88136%2018C9.61835%2018%209.40513%2017.7887%209.40513%2017.528V7.58313L6.67551%2010.8295C6.50712%2011.0297%206.20676%2011.0568%206.00473%2010.8899C5.80272%2010.723%205.77545%2010.4254%205.9438%2010.2251L9.23476%206.31136C9.61494%205.85923%2010.3575%206.12565%2010.3576%206.71418V17.528ZM17.9981%2013.1613C18.1989%2013.3296%2018.2239%2013.6275%2018.0541%2013.8265L14.683%2017.7758C14.3009%2018.2233%2013.5632%2017.9556%2013.5632%2017.3694V6.47196C13.5632%206.21131%2013.7765%206.00001%2014.0395%206C14.3025%206%2014.5157%206.2113%2014.5157%206.47196V16.5101L17.327%2013.2169C17.4969%2013.0179%2017.7973%2012.993%2017.9981%2013.1613Z'%20fill='black'%20fill-opacity='0.2'/%3e%3c/svg%3e";module.exports=C;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const C = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3576%2017.528C10.3576%2017.7887%2010.1444%2018%209.88136%2018C9.61835%2018%209.40513%2017.7887%209.40513%2017.528V7.58313L6.67551%2010.8295C6.50712%2011.0297%206.20676%2011.0568%206.00473%2010.8899C5.80272%2010.723%205.77545%2010.4254%205.9438%2010.2251L9.23476%206.31136C9.61494%205.85923%2010.3575%206.12565%2010.3576%206.71418V17.528ZM17.9981%2013.1613C18.1989%2013.3296%2018.2239%2013.6275%2018.0541%2013.8265L14.683%2017.7758C14.3009%2018.2233%2013.5632%2017.9556%2013.5632%2017.3694V6.47196C13.5632%206.21131%2013.7765%206.00001%2014.0395%206C14.3025%206%2014.5157%206.2113%2014.5157%206.47196V16.5101L17.327%2013.2169C17.4969%2013.0179%2017.7973%2012.993%2017.9981%2013.1613Z'%20fill='%23333333'/%3e%3cpath%20d='M10.3576%2017.528C10.3576%2017.7887%2010.1444%2018%209.88136%2018C9.61835%2018%209.40513%2017.7887%209.40513%2017.528V7.58313L6.67551%2010.8295C6.50712%2011.0297%206.20676%2011.0568%206.00473%2010.8899C5.80272%2010.723%205.77545%2010.4254%205.9438%2010.2251L9.23476%206.31136C9.61494%205.85923%2010.3575%206.12565%2010.3576%206.71418V17.528ZM17.9981%2013.1613C18.1989%2013.3296%2018.2239%2013.6275%2018.0541%2013.8265L14.683%2017.7758C14.3009%2018.2233%2013.5632%2017.9556%2013.5632%2017.3694V6.47196C13.5632%206.21131%2013.7765%206.00001%2014.0395%206C14.3025%206%2014.5157%206.2113%2014.5157%206.47196V16.5101L17.327%2013.2169C17.4969%2013.0179%2017.7973%2012.993%2017.9981%2013.1613Z'%20fill='black'%20fill-opacity='0.2'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
C as default
|
|
4
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("react");;/* empty css */const s1=require("./spin_loading_red.gif.js");function e1(){return t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M12.8333 8.66683H16.1666V5.3335H12.8333M12.8333 13.6668H16.1666V10.3335H12.8333M7.83331 13.6668H11.1666V10.3335H7.83331M7.83331 18.6668H11.1666V15.3335H7.83331M12.8333 18.6668H16.1666V15.3335H12.8333M7.83331 8.66683H11.1666V5.3335H7.83331V8.66683Z",fill:"currentColor"})})}function r1(){return t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M14.1667 5.3335C15.1792 5.3335 16 6.15431 16 7.16683V8.00016H19C19.2761 8.00016 19.5 8.22402 19.5 8.50016C19.5 8.7763 19.2761 9.00016 19 9.00016H17.3333V16.8335C17.3333 17.846 16.5125 18.6668 15.5 18.6668H8.5C7.48748 18.6668 6.66667 17.846 6.66667 16.8335V9.00016H5C4.72386 9.00016 4.5 8.7763 4.5 8.50016C4.5 8.22402 4.72386 8.00016 5 8.00016H8V7.16683C8 6.15431 8.82081 5.3335 9.83333 5.3335H14.1667ZM7.66667 16.8335C7.66667 17.2937 8.03976 17.6668 8.5 17.6668H15.5C15.9602 17.6668 16.3333 17.2937 16.3333 16.8335V9.00016H7.66667V16.8335ZM10.5 11.3335C10.7761 11.3335 11 11.5574 11 11.8335V15.0002C11 15.2763 10.7761 15.5002 10.5 15.5002C10.2239 15.5002 10 15.2763 10 15.0002V11.8335C10 11.5574 10.2239 11.3335 10.5 11.3335ZM13.5 11.3335C13.7761 11.3335 14 11.5574 14 11.8335V15.0002C14 15.2763 13.7761 15.5002 13.5 15.5002C13.2239 15.5002 13 15.2763 13 15.0002V11.8335C13 11.5574 13.2239 11.3335 13.5 11.3335ZM9.83333 6.3335C9.3731 6.3335 9 6.70659 9 7.16683V8.00016H15V7.16683C15 6.70659 14.6269 6.3335 14.1667 6.3335H9.83333Z",fill:"currentColor"})})}function i1(){return t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M515.512889 227.555556a21.070222 21.070222 0 0 1 21.070222 21.070222v245.816889h238.791111a21.070222 21.070222 0 0 1 0 42.140444h-238.791111v238.791111a21.070222 21.070222 0 0 1-42.140444 0v-238.791111H248.625778a21.070222 21.070222 0 0 1 0-42.140444h245.816889V248.625778A21.070222 21.070222 0 0 1 515.512889 227.555556z",fill:"currentColor"})})}function n1(){return t.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M8.68576 19.3333C9.0645 19.3333 9.37153 19.6404 9.37153 20.0191V22.1714C9.37153 22.4239 9.5761 22.6285 9.82856 22.6285H11.9809C12.3596 22.6285 12.6667 22.9355 12.6667 23.3142C12.6667 23.693 12.3596 24 11.9809 24H9.82856L9.73438 23.9976C8.79946 23.9502 8.04983 23.2005 8.00239 22.2656L8 22.1714V20.0191C8 19.6404 8.30703 19.3333 8.68576 19.3333Z",fill:"currentColor"}),t.jsx("path",{d:"M23.3142 19.3333C23.693 19.3333 24 19.6404 24 20.0191V22.1714C24 23.1497 23.2317 23.9486 22.2656 23.9976L22.1714 24H20.0191C19.6404 24 19.3333 23.693 19.3333 23.3142C19.3333 22.9355 19.6404 22.6285 20.0191 22.6285H22.1714C22.4239 22.6285 22.6285 22.4239 22.6285 22.1714V20.0191C22.6285 19.6404 22.9355 19.3333 23.3142 19.3333Z",fill:"currentColor"}),t.jsx("path",{d:"M15.5573 11.2413C17.8315 11.2989 19.6575 13.1607 19.6576 15.4488L19.656 15.5573C19.6337 16.4372 19.3411 17.2497 18.8585 17.9156L20.5647 19.6217C20.825 19.8821 20.825 20.3043 20.5647 20.5647C20.3043 20.825 19.8823 20.825 19.622 20.5647L17.9156 18.8585C17.2224 19.3609 16.3703 19.6575 15.4488 19.6576L15.3401 19.656C13.102 19.5993 11.298 17.7954 11.2413 15.5573L11.24 15.4488C11.24 13.1244 13.1244 11.24 15.4488 11.24L15.5573 11.2413ZM15.4488 12.5734C13.8608 12.5734 12.5734 13.8608 12.5734 15.4488C12.5734 17.0368 13.8608 18.3242 15.4488 18.3242C17.0368 18.3242 18.3242 17.0368 18.3242 15.4488C18.3242 13.8608 17.0368 12.5734 15.4488 12.5734Z",fill:"currentColor"}),t.jsx("path",{d:"M11.9809 8C12.3596 8 12.6667 8.30703 12.6667 8.68576C12.6667 9.0645 12.3596 9.37153 11.9809 9.37153H9.82856C9.5761 9.37153 9.37153 9.5761 9.37153 9.82856V11.9809C9.37153 12.3596 9.0645 12.6667 8.68576 12.6667C8.30703 12.6667 8 12.3596 8 11.9809V9.82856C8.00001 8.81868 8.81868 8.00001 9.82856 8H11.9809Z",fill:"currentColor"}),t.jsx("path",{d:"M22.1714 8C23.1813 8.00001 24 8.81868 24 9.82856V11.9809C24 12.3596 23.693 12.6667 23.3142 12.6667C22.9355 12.6667 22.6285 12.3596 22.6285 11.9809V9.82856C22.6285 9.5761 22.4239 9.37153 22.1714 9.37153H20.0191C19.6404 9.37153 19.3333 9.0645 19.3333 8.68576C19.3333 8.30703 19.6404 8 20.0191 8H22.1714Z",fill:"currentColor"})]})}function u1(){return t.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M14.1667 5.3335C15.1792 5.3335 16 6.15431 16 7.16683V8.00016H19C19.2761 8.00016 19.5 8.22402 19.5 8.50016C19.5 8.7763 19.2761 9.00016 19 9.00016H17.3333V16.8335C17.3333 17.846 16.5125 18.6668 15.5 18.6668H8.5C7.48748 18.6668 6.66667 17.846 6.66667 16.8335V9.00016H5C4.72386 9.00016 4.5 8.7763 4.5 8.50016C4.5 8.22402 4.72386 8.00016 5 8.00016H8V7.16683C8 6.15431 8.82081 5.3335 9.83333 5.3335H14.1667ZM7.66667 16.8335C7.66667 17.2937 8.03976 17.6668 8.5 17.6668H15.5C15.9602 17.6668 16.3333 17.2937 16.3333 16.8335V9.00016H7.66667V16.8335ZM10.5 11.3335C10.7761 11.3335 11 11.5574 11 11.8335V15.0002C11 15.2763 10.7761 15.5002 10.5 15.5002C10.2239 15.5002 10 15.2763 10 15.0002V11.8335C10 11.5574 10.2239 11.3335 10.5 11.3335ZM13.5 11.3335C13.7761 11.3335 14 11.5574 14 11.8335V15.0002C14 15.2763 13.7761 15.5002 13.5 15.5002C13.2239 15.5002 13 15.2763 13 15.0002V11.8335C13 11.5574 13.2239 11.3335 13.5 11.3335ZM9.83333 6.3335C9.3731 6.3335 9 6.70659 9 7.16683V8.00016H15V7.16683C15 6.70659 14.6269 6.3335 14.1667 6.3335H9.83333Z",fill:"currentColor"})})}function c1(i,e){return(typeof i.label=="string"?i.label:i.value).toLowerCase().includes(e.toLowerCase())}function l1({text:i,keyword:e}){if(!e)return t.jsx(t.Fragment,{children:i});const r=i.toLowerCase().indexOf(e.toLowerCase());if(r===-1)return t.jsx(t.Fragment,{children:i});const p=i.slice(0,r),C=i.slice(r,r+e.length),a=i.slice(r+e.length);return t.jsxs(t.Fragment,{children:[p,t.jsx("span",{className:"sku-input-card__dropdown-highlight",children:C}),a]})}function a1({id:i,name:e="",onNameChange:r,mode:p="single",activeLang:C="zh",onLangChange:a,showBody:q=!0,error:L=!1,onDelete:z,onPreviewImage:j,onDeleteImage:m,onUpload:R,onAssociate:v,images:y,labels:c,inputEvents:T,className:$,style:A,options:_,optionFilterProp:b,onSelect:k,onSearch:H,open:w,onDropdownVisibleChange:n}){const W=(c==null?void 0:c.namePlaceholder)??"请填写产品名称",G=(c==null?void 0:c.uploadLocal)??"本地上传",J=(c==null?void 0:c.associateImage)??"关联图片",B=u.useRef(null),g=u.useRef(null),O=u.useRef(null),E=u.useRef(null),[K,F]=u.useState([]),[M,x]=u.useState(!1),[Q,V]=u.useState(!1),[X,I]=u.useState(!1),N=Array.isArray(_)&&_.length>0,Z=w!==void 0?w:N&&Q,U=N?e?_.filter(s=>b?b(s,e):c1(s,e)):_:[];u.useEffect(()=>{if(!M)return;function s(l){g.current&&!g.current.contains(l.target)&&x(!1)}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[M]),u.useEffect(()=>{if(!Z)return;function s(l){var o,f;const d=l.target;(o=O.current)!=null&&o.contains(d)||(f=E.current)!=null&&f.contains(d)||(V(!1),n==null||n(!1))}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[Z,n]);const h=y??K;async function Y(s){var d;const l=(d=s.target.files)==null?void 0:d[0];if(l){s.target.value="",x(!1),I(!0);try{if(R){const o=await R(l);o&&y===void 0&&F(f=>[...f,o])}else{const o=URL.createObjectURL(l);F(f=>[...f,o])}}finally{I(!1)}}}function P(){var s;(s=B.current)==null||s.click()}function S(){x(!1),v==null||v()}const D=["sku-input-card",L&&"sku-input-card--error",$].filter(Boolean).join(" "),t1=["sku-input-card__name-input",p==="bilingual"&&"sku-input-card__name-input--with-toggle",L&&"sku-input-card__name-input--error"].filter(Boolean).join(" ");return t.jsxs("div",{className:D,style:A,children:[t.jsx("span",{className:"sku-input-card__drag",id:i,children:t.jsx(e1,{})}),t.jsxs("div",{className:"sku-input-card__main",children:[t.jsxs("div",{className:"sku-input-card__header",children:[t.jsxs("div",{className:"sku-input-card__name-wrap",ref:E,children:[t.jsx("input",{className:t1,value:e,onChange:s=>{r==null||r(s.target.value),H==null||H(s.target.value)},onFocus:()=>{N&&w===void 0&&(V(!0),n==null||n(!0))},placeholder:W,...T}),Z&&U.length>0&&t.jsx("div",{className:"sku-input-card__dropdown",ref:O,children:t.jsx("div",{className:"sku-input-card__dropdown-list",children:U.map(s=>{const l=typeof s.label=="string"?s.label:s.value;return t.jsx("div",{className:["sku-input-card__dropdown-item",s.disabled&&"sku-input-card__dropdown-item--disabled",s.value===e&&"sku-input-card__dropdown-item--selected"].filter(Boolean).join(" "),onMouseDown:d=>{d.preventDefault(),!s.disabled&&(r==null||r(s.value),k==null||k(s.value,s),V(!1),n==null||n(!1))},children:t.jsx(l1,{text:l,keyword:e})},s.value)})})}),p==="bilingual"&&t.jsxs("div",{className:"sku-input-card__lang-toggle",children:[t.jsx("button",{className:`sku-input-card__lang-btn sku-input-card__lang-btn--${C==="zh"?"active":"inactive"}`,onClick:()=>a==null?void 0:a("zh"),children:"中文"}),t.jsx("button",{className:`sku-input-card__lang-btn sku-input-card__lang-btn--${C==="en"?"active":"inactive"}`,onClick:()=>a==null?void 0:a("en"),children:"EN"})]})]}),t.jsx("button",{className:"sku-input-card__delete",onClick:z,children:t.jsx(r1,{})})]}),q&&t.jsxs("div",{className:"sku-input-card__body",children:[t.jsx("input",{ref:B,type:"file",accept:"image/jpeg,image/png,image/webp",className:"sku-input-card__file-input",onChange:Y}),X?t.jsx("div",{className:"sku-input-card__loading",children:t.jsx("img",{src:s1,alt:"上传中",className:"sku-input-card__loading-img"})}):h[0]?t.jsxs("div",{className:"sku-input-card__image-item",children:[t.jsx("img",{src:h[0],alt:"图片",className:"sku-input-card__image-thumb"}),t.jsxs("div",{className:"sku-input-card__image-overlay",children:[t.jsx("button",{className:"sku-input-card__image-action-btn",onClick:()=>j==null?void 0:j(h[0]),children:t.jsx(n1,{})}),t.jsx("button",{className:"sku-input-card__image-action-btn",onClick:()=>m==null?void 0:m(h[0]),children:t.jsx(u1,{})})]})]}):M?t.jsx("div",{className:"sku-input-card__upload-options",children:t.jsxs("div",{ref:g,className:"sku-input-card__upload-options-box",children:[t.jsx("button",{className:"sku-input-card__upload-opt-btn",onClick:P,children:G}),t.jsx("button",{className:"sku-input-card__upload-opt-btn",onClick:S,children:J})]})}):t.jsx("button",{className:"sku-input-card__add-btn",onClick:()=>x(!0),children:t.jsx(i1,{})})]})]})]})}module.exports=a1;
|