denwa-react-shared 1.1.0 → 1.1.2
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/base-table-Cec72CYC.js +102 -0
- package/dist/base-table-DYKsBmE8.cjs +1 -0
- package/dist/denwa-react-shared.cjs.js +1 -1
- package/dist/denwa-react-shared.es.js +241 -239
- package/dist/shared/ui/admin-table/index.d.ts +1 -1
- package/dist/shared/ui/admin-table/types.d.ts +3 -0
- package/dist/shared/ui/base-table/types.d.ts +11 -0
- package/package.json +1 -1
- package/dist/base-table-CEtpTXnb.cjs +0 -1
- package/dist/base-table-C__iDbuG.js +0 -90
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as ee, a as D, b as te, c as O, d as ne, et as re, f as ie, g as
|
|
2
|
-
import { create as
|
|
3
|
-
import { HttpStatusCode as
|
|
4
|
-
import
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { useDebounce as
|
|
7
|
-
import { Suspense as
|
|
8
|
-
import { Button as
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as ee, a as D, b as te, c as O, d as ne, et as re, f as ie, g as ae, h as oe, i as se, j as ce, k as le, l as ue, m as de, n as fe, o as pe, p as me, q as he, r as ge, s as _e, t as k, u as ve, v as ye, w as be, x as xe, y as A, z as Se } from "./styles.module-DO7uqbNP.js";
|
|
2
|
+
import { create as Ce } from "zustand";
|
|
3
|
+
import { HttpStatusCode as we } from "axios";
|
|
4
|
+
import j from "dayjs";
|
|
5
|
+
import { Fragment as Te, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
6
|
+
import { useDebounce as P } from "react-use";
|
|
7
|
+
import { Suspense as Ee, createElement as De, forwardRef as F, lazy as I, useCallback as Oe, useEffect as L, useImperativeHandle as ke, useMemo as Ae, useState as R } from "react";
|
|
8
|
+
import { Button as z, Card as B, ConfigProvider as je, DatePicker as V, Drawer as Me, Flex as H, Form as Ne, Image as Pe, Input as Fe, List as Ie, Modal as Le, Popover as Re, Select as ze, Skeleton as U, Spin as Be, Tooltip as W, Typography as G, Upload as Ve, theme as K } from "antd";
|
|
9
9
|
import q from "classnames";
|
|
10
10
|
import { DndContext as He, PointerSensor as Ue, useSensor as We } from "@dnd-kit/core";
|
|
11
11
|
import { SortableContext as Ge, arrayMove as Ke, useSortable as qe, verticalListSortingStrategy as Je } from "@dnd-kit/sortable";
|
|
@@ -18,7 +18,7 @@ import Dt from "is-hotkey";
|
|
|
18
18
|
import { withHistory as Ot } from "slate-history";
|
|
19
19
|
import kt from "validator";
|
|
20
20
|
//#region src/entities/session/model/session.store.ts
|
|
21
|
-
var At =
|
|
21
|
+
var At = Ce((e, t) => ({
|
|
22
22
|
isLoading: !1,
|
|
23
23
|
isFirstLoadCompleted: !1,
|
|
24
24
|
currentSession: void 0,
|
|
@@ -26,7 +26,7 @@ var At = be((e, t) => ({
|
|
|
26
26
|
if (t().currentSession) return;
|
|
27
27
|
D(E.SESSION_TEMP, n), e({ isLoading: !0 });
|
|
28
28
|
let s = await o();
|
|
29
|
-
if (s.status !==
|
|
29
|
+
if (s.status !== we.Ok) {
|
|
30
30
|
e({
|
|
31
31
|
currentSession: void 0,
|
|
32
32
|
isLoading: !1,
|
|
@@ -43,7 +43,7 @@ var At = be((e, t) => ({
|
|
|
43
43
|
}), a({ to: "/login" }), D(E.SESSION, n);
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
let { maxUserRolePriority: l } =
|
|
46
|
+
let { maxUserRolePriority: l } = ue({
|
|
47
47
|
userRoles: c.roles,
|
|
48
48
|
comparedUserRoles: c.roles,
|
|
49
49
|
rolePriority: r
|
|
@@ -66,7 +66,7 @@ var At = be((e, t) => ({
|
|
|
66
66
|
exp: c.tokens?.refreshToken?.exp ?? 0
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
}, d =
|
|
69
|
+
}, d = j(), f = j(c.tokens?.refreshToken?.exp ?? 0).diff(d, "seconds");
|
|
70
70
|
return O(E.SESSION, JSON.stringify(u), {
|
|
71
71
|
domain: n,
|
|
72
72
|
secure: !i,
|
|
@@ -79,7 +79,7 @@ var At = be((e, t) => ({
|
|
|
79
79
|
},
|
|
80
80
|
setCurrentSession: ({ domain: t, session: n, isRemember: r, isNotSecure: i }) => {
|
|
81
81
|
e({ currentSession: n });
|
|
82
|
-
let a =
|
|
82
|
+
let a = j(), o = j(n.tokens?.refreshToken?.exp ?? 0).diff(a, "seconds");
|
|
83
83
|
O(r ? E.SESSION : E.SESSION_TEMP, JSON.stringify(n), {
|
|
84
84
|
domain: t,
|
|
85
85
|
secure: !i,
|
|
@@ -93,34 +93,34 @@ var At = be((e, t) => ({
|
|
|
93
93
|
return e.russian = "ru", e.english = "en", e.arabic = "ar", e;
|
|
94
94
|
}({}), Mt = /* @__PURE__ */ function(e) {
|
|
95
95
|
return e[e.January = 1] = "January", e[e.February = 2] = "February", e[e.March = 3] = "March", e[e.April = 4] = "April", e[e.May = 5] = "May", e[e.June = 6] = "June", e[e.July = 7] = "July", e[e.August = 8] = "August", e[e.September = 9] = "September", e[e.October = 10] = "October", e[e.November = 11] = "November", e[e.December = 12] = "December", e;
|
|
96
|
-
}({}), Nt = { container: "_container_j6rsl_1" }, Pt = ({ children: e }) => /* @__PURE__ */
|
|
96
|
+
}({}), Nt = { container: "_container_j6rsl_1" }, Pt = ({ children: e }) => /* @__PURE__ */ M("div", {
|
|
97
97
|
className: Nt.container,
|
|
98
98
|
children: e
|
|
99
99
|
}), Ft = {
|
|
100
100
|
readOnly: "_readOnly_1qyk0_1",
|
|
101
101
|
noData: "_noData_1qyk0_6"
|
|
102
102
|
}, It = ({ configLocale: e, noDateText: t, currentValue: n, readOnly: r = !1, isTime: i = !1, ...a }) => {
|
|
103
|
-
if (r && !n) return /* @__PURE__ */
|
|
104
|
-
let o =
|
|
105
|
-
return r ? /* @__PURE__ */
|
|
103
|
+
if (r && !n) return /* @__PURE__ */ M(G.Text, { children: t });
|
|
104
|
+
let o = j(n);
|
|
105
|
+
return r ? /* @__PURE__ */ M(G.Text, {
|
|
106
106
|
className: q(Ft.readOnly, Ft.noData),
|
|
107
107
|
children: i ? o.format("YYYY-MM-DD, HH:mm:ss") : o.format("YYYY-MM-DD")
|
|
108
|
-
}) : /* @__PURE__ */
|
|
108
|
+
}) : /* @__PURE__ */ M(je, {
|
|
109
109
|
locale: e,
|
|
110
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ M(V, {
|
|
111
111
|
...a,
|
|
112
112
|
format: i ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD",
|
|
113
113
|
value: n ? o : null,
|
|
114
114
|
readOnly: r,
|
|
115
|
-
showTime: i ? { defaultValue:
|
|
115
|
+
showTime: i ? { defaultValue: j("00:00:00", "HH:mm:ss") } : !1
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
118
|
}, Lt = {
|
|
119
119
|
form: "_form_6uo9h_1",
|
|
120
120
|
buttons: "_buttons_6uo9h_5"
|
|
121
|
-
}, Rt =
|
|
122
|
-
let [v, y] =
|
|
123
|
-
|
|
121
|
+
}, Rt = F(({ children: e, language: t, saveText: n, translateAllText: r, translateAllTooltipText: i, submitButtonText: a, languagesData: o, submitHtmlType: s = "submit", isSubmitting: c = !1, isVisibleSubmit: l = !0, isVisibleLanguage: d = !1, isVisibleLanguageButton: f = !1, onSubmitClick: p, onChangeLang: m, onTranslateAllClick: h, ...g }, _) => {
|
|
122
|
+
let [v, y] = R(!1);
|
|
123
|
+
ke(_, () => ({ translateComplete: () => {
|
|
124
124
|
setTimeout(() => y(!1), u.milliseconds.seconds1);
|
|
125
125
|
} }));
|
|
126
126
|
let b = async () => {
|
|
@@ -128,29 +128,29 @@ var At = be((e, t) => ({
|
|
|
128
128
|
}, x = (e) => {
|
|
129
129
|
p && (e.preventDefault(), p());
|
|
130
130
|
};
|
|
131
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ N(Ne, {
|
|
132
132
|
...g,
|
|
133
133
|
className: Lt.form,
|
|
134
134
|
layout: "vertical",
|
|
135
|
-
children: [e, /* @__PURE__ */
|
|
135
|
+
children: [e, /* @__PURE__ */ N("div", {
|
|
136
136
|
className: Lt.buttons,
|
|
137
|
-
children: [d && !!o?.length && /* @__PURE__ */
|
|
137
|
+
children: [d && !!o?.length && /* @__PURE__ */ N(H, {
|
|
138
138
|
gap: "small",
|
|
139
139
|
vertical: !0,
|
|
140
|
-
children: [f && /* @__PURE__ */
|
|
140
|
+
children: [f && /* @__PURE__ */ M(W, {
|
|
141
141
|
title: i,
|
|
142
|
-
children: /* @__PURE__ */
|
|
142
|
+
children: /* @__PURE__ */ M(z, {
|
|
143
143
|
loading: v,
|
|
144
144
|
onClick: b,
|
|
145
145
|
children: r
|
|
146
146
|
})
|
|
147
|
-
}), /* @__PURE__ */
|
|
147
|
+
}), /* @__PURE__ */ M(ze, {
|
|
148
148
|
defaultValue: t,
|
|
149
149
|
disabled: v,
|
|
150
150
|
options: o,
|
|
151
151
|
onChange: (e) => m?.(e)
|
|
152
152
|
})]
|
|
153
|
-
}), l && /* @__PURE__ */
|
|
153
|
+
}), l && /* @__PURE__ */ M(z, {
|
|
154
154
|
type: "primary",
|
|
155
155
|
htmlType: s,
|
|
156
156
|
disabled: v,
|
|
@@ -160,16 +160,16 @@ var At = be((e, t) => ({
|
|
|
160
160
|
})]
|
|
161
161
|
})]
|
|
162
162
|
});
|
|
163
|
-
}), zt = ({ fallback: e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJv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/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==", ...t }) => /* @__PURE__ */
|
|
163
|
+
}), zt = ({ fallback: e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwS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/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==", ...t }) => /* @__PURE__ */ M(Pe, {
|
|
164
164
|
...t,
|
|
165
165
|
fallback: e
|
|
166
|
-
}), Bt = ({ downloadText: e }) => /* @__PURE__ */
|
|
166
|
+
}), Bt = ({ downloadText: e }) => /* @__PURE__ */ N("button", {
|
|
167
167
|
style: {
|
|
168
168
|
border: 0,
|
|
169
169
|
background: "none"
|
|
170
170
|
},
|
|
171
171
|
type: "button",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ M(st, {}), /* @__PURE__ */ M("div", {
|
|
173
173
|
style: { marginTop: 8 },
|
|
174
174
|
children: e
|
|
175
175
|
})]
|
|
@@ -195,37 +195,37 @@ var At = be((e, t) => ({
|
|
|
195
195
|
], Z = {
|
|
196
196
|
readOnly: "_readOnly_s33xc_1",
|
|
197
197
|
noData: "_noData_s33xc_18"
|
|
198
|
-
}, Ht = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */
|
|
198
|
+
}, Ht = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ M(G.Text, {
|
|
199
199
|
className: q(Z.readOnly, Z.noData),
|
|
200
200
|
children: e
|
|
201
|
-
}) : /* @__PURE__ */
|
|
201
|
+
}) : /* @__PURE__ */ M(Fe, {
|
|
202
202
|
...i,
|
|
203
203
|
readOnly: n,
|
|
204
204
|
value: r,
|
|
205
205
|
className: q(t, { [Z.readOnly]: n })
|
|
206
|
-
}), Ut = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */
|
|
206
|
+
}), Ut = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ M(G.Text, {
|
|
207
207
|
className: q(Z.readOnly, Z.noData),
|
|
208
208
|
children: e
|
|
209
|
-
}) : /* @__PURE__ */
|
|
209
|
+
}) : /* @__PURE__ */ M(Fe.Password, {
|
|
210
210
|
...i,
|
|
211
211
|
value: r,
|
|
212
212
|
readOnly: n,
|
|
213
213
|
className: q(t, { [Z.readOnly]: n })
|
|
214
|
-
}), Wt = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */
|
|
214
|
+
}), Wt = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ M(G.Text, {
|
|
215
215
|
className: q(Z.readOnly, Z.noData),
|
|
216
216
|
children: e
|
|
217
|
-
}) : /* @__PURE__ */
|
|
217
|
+
}) : /* @__PURE__ */ M(Fe.TextArea, {
|
|
218
218
|
...i,
|
|
219
219
|
value: r,
|
|
220
220
|
readOnly: n,
|
|
221
221
|
className: q(t, { [Z.readOnly]: n })
|
|
222
222
|
}), { useToken: Gt } = K, Kt = ({ emptyText: e, labelText: t, loadingErrorText: n, file: r, language: i, errorsUid: a, actions: o, disabled: s, maxCount: c, updatedImages: l, isLoading: d, onUpdateData: f, onDeleteImage: p, onDeleteError: m }) => {
|
|
223
|
-
let [h, g] =
|
|
223
|
+
let [h, g] = R({
|
|
224
224
|
ru: "",
|
|
225
225
|
en: "",
|
|
226
226
|
ar: ""
|
|
227
|
-
}), [_, v] =
|
|
228
|
-
|
|
227
|
+
}), [_, v] = R(null), [y, b] = R(!1), { remove: x } = o, { token: S } = Gt(), { attributes: C, listeners: w, setNodeRef: T, transform: E, transition: ee, isDragging: D } = qe({ id: r.uid });
|
|
228
|
+
P(() => {
|
|
229
229
|
f({
|
|
230
230
|
uid: r.uid,
|
|
231
231
|
name: r.name.split(".")[0],
|
|
@@ -243,18 +243,18 @@ var At = be((e, t) => ({
|
|
|
243
243
|
transition: ee,
|
|
244
244
|
borderColor: y ? S.colorError : void 0
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
L(() => {
|
|
247
247
|
f({
|
|
248
248
|
uid: r.uid,
|
|
249
249
|
name: r.name.split(".")[0]
|
|
250
250
|
});
|
|
251
|
-
}, []),
|
|
251
|
+
}, []), L(() => {
|
|
252
252
|
a.includes(r.uid) ? (b(!0), f({
|
|
253
253
|
uid: r.uid,
|
|
254
254
|
name: r.name.split(".")[0],
|
|
255
255
|
isError: !0
|
|
256
256
|
})) : b(!1);
|
|
257
|
-
}, [r, a]),
|
|
257
|
+
}, [r, a]), L(() => {
|
|
258
258
|
if (!l) return;
|
|
259
259
|
let e = l.find((e) => e.uid === r.uid);
|
|
260
260
|
e && g({
|
|
@@ -262,9 +262,9 @@ var At = be((e, t) => ({
|
|
|
262
262
|
en: e.altEN ?? "",
|
|
263
263
|
ar: e.altAR ?? ""
|
|
264
264
|
});
|
|
265
|
-
}, [l]),
|
|
265
|
+
}, [l]), L(() => {
|
|
266
266
|
(async () => {
|
|
267
|
-
r?.originFileObj ? v(await
|
|
267
|
+
r?.originFileObj ? v(await me(r.originFileObj)) : r.url && (g({
|
|
268
268
|
ru: r.altRU ?? "",
|
|
269
269
|
en: r.altEN ?? "",
|
|
270
270
|
ar: r.altAR ?? ""
|
|
@@ -279,25 +279,25 @@ var At = be((e, t) => ({
|
|
|
279
279
|
[e.toLocaleLowerCase()]: t
|
|
280
280
|
}));
|
|
281
281
|
};
|
|
282
|
-
return /* @__PURE__ */
|
|
282
|
+
return /* @__PURE__ */ M(B, {
|
|
283
283
|
ref: !y && !s && c !== 1 ? T : void 0,
|
|
284
284
|
className: te,
|
|
285
285
|
hoverable: !s,
|
|
286
286
|
size: "small",
|
|
287
287
|
loading: !_ || d,
|
|
288
288
|
style: O,
|
|
289
|
-
cover: _ ? /* @__PURE__ */
|
|
289
|
+
cover: _ ? /* @__PURE__ */ M(Pe, {
|
|
290
290
|
className: X.image,
|
|
291
291
|
height: 160,
|
|
292
292
|
src: _
|
|
293
293
|
}) : void 0,
|
|
294
|
-
actions: [/* @__PURE__ */
|
|
294
|
+
actions: [/* @__PURE__ */ M($e, { onClick: ne }, "delete")],
|
|
295
295
|
...C,
|
|
296
296
|
...w,
|
|
297
|
-
children: Vt.map((r) => /* @__PURE__ */
|
|
297
|
+
children: Vt.map((r) => /* @__PURE__ */ M(Ne.Item, {
|
|
298
298
|
label: `${t} ${r.lang.toUpperCase()}`,
|
|
299
299
|
style: { display: i === r.lang.toLowerCase() ? "block" : "none" },
|
|
300
|
-
children: /* @__PURE__ */
|
|
300
|
+
children: /* @__PURE__ */ M(Ht, {
|
|
301
301
|
emptyText: e,
|
|
302
302
|
disabled: y || s,
|
|
303
303
|
value: h[r.lang.toLowerCase()],
|
|
@@ -308,8 +308,8 @@ var At = be((e, t) => ({
|
|
|
308
308
|
}, r.alt))
|
|
309
309
|
});
|
|
310
310
|
}, qt = ({ labelText: e, loadingErrorText: t, emptyText: n, downloadText: r, serverImages: i, updatedImages: a, disabled: o = !1, maxCount: s, language: c, customRequest: l, onChange: u, onUpdateData: d, onDeleteImage: f, onImagesOrder: p, onSuccessUpload: m, onUpdateTempImage: h, ...g }) => {
|
|
311
|
-
let [_, v] =
|
|
312
|
-
|
|
311
|
+
let [_, v] = R([]), [y, b] = R([]);
|
|
312
|
+
L(() => {
|
|
313
313
|
if (!i?.length) return;
|
|
314
314
|
let e = i.map((e) => {
|
|
315
315
|
let t = e.url?.split("/") ?? [], n = t[t.length - 1];
|
|
@@ -324,7 +324,7 @@ var At = be((e, t) => ({
|
|
|
324
324
|
};
|
|
325
325
|
}).filter((e) => !!e.uid), t = e.map((e) => e.uid);
|
|
326
326
|
v(e), p?.(t);
|
|
327
|
-
}, [i]),
|
|
327
|
+
}, [i]), L(() => {
|
|
328
328
|
if (!_?.length) return;
|
|
329
329
|
let e = _.map((e) => e.uid);
|
|
330
330
|
p?.(e);
|
|
@@ -345,14 +345,14 @@ var At = be((e, t) => ({
|
|
|
345
345
|
uid: a.uid ?? ""
|
|
346
346
|
}), r?.("Ok")) : (b((e) => [...e, a.uid ?? ""]), i?.(s.error)), l?.(e, t);
|
|
347
347
|
};
|
|
348
|
-
return /* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ M("div", {
|
|
349
349
|
className: X.uploadContainer,
|
|
350
|
-
children: /* @__PURE__ */
|
|
350
|
+
children: /* @__PURE__ */ M(He, {
|
|
351
351
|
sensors: [x],
|
|
352
352
|
onDragEnd: w,
|
|
353
|
-
children: /* @__PURE__ */
|
|
353
|
+
children: /* @__PURE__ */ M(Ge, {
|
|
354
354
|
items: _.map((e) => e.uid),
|
|
355
|
-
children: /* @__PURE__ */
|
|
355
|
+
children: /* @__PURE__ */ M(Ve, {
|
|
356
356
|
...g,
|
|
357
357
|
disabled: o,
|
|
358
358
|
maxCount: s,
|
|
@@ -360,7 +360,7 @@ var At = be((e, t) => ({
|
|
|
360
360
|
accept: "image/png, image/jpeg",
|
|
361
361
|
listType: "picture-card",
|
|
362
362
|
fileList: _,
|
|
363
|
-
itemRender: (r, i, l, u) => /* @__PURE__ */
|
|
363
|
+
itemRender: (r, i, l, u) => /* @__PURE__ */ M(Kt, {
|
|
364
364
|
emptyText: n,
|
|
365
365
|
labelText: e,
|
|
366
366
|
loadingErrorText: t,
|
|
@@ -377,14 +377,14 @@ var At = be((e, t) => ({
|
|
|
377
377
|
onDeleteError: C
|
|
378
378
|
}),
|
|
379
379
|
onChange: S,
|
|
380
|
-
children: (!s || _?.length < s) && /* @__PURE__ */
|
|
380
|
+
children: (!s || _?.length < s) && /* @__PURE__ */ M(Bt, { downloadText: r })
|
|
381
381
|
})
|
|
382
382
|
})
|
|
383
383
|
})
|
|
384
384
|
});
|
|
385
385
|
}, Jt = ({ children: e }) => {
|
|
386
386
|
let { token: { colorBgContainer: t, boxShadow: n, borderRadius: r } } = K.useToken();
|
|
387
|
-
return /* @__PURE__ */
|
|
387
|
+
return /* @__PURE__ */ M("div", {
|
|
388
388
|
style: {
|
|
389
389
|
padding: w.OFFSET[1],
|
|
390
390
|
boxShadow: n,
|
|
@@ -394,21 +394,21 @@ var At = be((e, t) => ({
|
|
|
394
394
|
children: e
|
|
395
395
|
});
|
|
396
396
|
}, Yt = ({ latitude: e, longitude: t, defaultLatitude: n = 55.757056, defaultLongitude: r = 37.558708, defaultZoom: i = 3, zoom: a = 10, mapHeight: o = 300, apikey: s, suggestApikey: c, disabled: l, isSearchControl: u, onPlacemarkMove: d }) => {
|
|
397
|
-
let [f, p] =
|
|
398
|
-
|
|
397
|
+
let [f, p] = R(void 0), [m, h] = R(e), [g, _] = R(t), { token: { colorPrimary: v } } = K.useToken();
|
|
398
|
+
L(() => {
|
|
399
399
|
h(e);
|
|
400
|
-
}, [e]),
|
|
400
|
+
}, [e]), L(() => {
|
|
401
401
|
_(t);
|
|
402
402
|
}, [t]);
|
|
403
403
|
let y = (e, t) => {
|
|
404
404
|
e?.length < 2 || l || (h(e[0]), _(e[1]), d?.(e, t));
|
|
405
405
|
};
|
|
406
|
-
return /* @__PURE__ */
|
|
406
|
+
return /* @__PURE__ */ M(gt, {
|
|
407
407
|
query: {
|
|
408
408
|
apikey: s,
|
|
409
409
|
suggest_apikey: c
|
|
410
410
|
},
|
|
411
|
-
children: /* @__PURE__ */
|
|
411
|
+
children: /* @__PURE__ */ N(pt, {
|
|
412
412
|
instanceRef: (e) => p(e),
|
|
413
413
|
defaultState: {
|
|
414
414
|
center: [n, r],
|
|
@@ -426,7 +426,7 @@ var At = be((e, t) => ({
|
|
|
426
426
|
y(t, n);
|
|
427
427
|
},
|
|
428
428
|
children: [
|
|
429
|
-
m && g && /* @__PURE__ */
|
|
429
|
+
m && g && /* @__PURE__ */ M(mt, {
|
|
430
430
|
geometry: [m, g],
|
|
431
431
|
options: {
|
|
432
432
|
iconColor: v,
|
|
@@ -437,25 +437,25 @@ var At = be((e, t) => ({
|
|
|
437
437
|
y(t, n);
|
|
438
438
|
}
|
|
439
439
|
}),
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
/* @__PURE__ */
|
|
442
|
-
u && /* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ M(ft, {}),
|
|
441
|
+
/* @__PURE__ */ M(_t, {}),
|
|
442
|
+
u && /* @__PURE__ */ M(ht, {})
|
|
443
443
|
]
|
|
444
444
|
})
|
|
445
445
|
});
|
|
446
446
|
}, Xt = {
|
|
447
447
|
readOnly: "_readOnly_e6ors_1",
|
|
448
448
|
noData: "_noData_e6ors_19"
|
|
449
|
-
}, Zt = ({ value: e, emptyText: t }) => /* @__PURE__ */
|
|
449
|
+
}, Zt = ({ value: e, emptyText: t }) => /* @__PURE__ */ M(G.Text, {
|
|
450
450
|
className: q(Xt.readOnly, Xt.noData),
|
|
451
451
|
children: e || t
|
|
452
452
|
}), Qt = { flex: "_flex_jguhl_2" }, $t = ({ notFoundText: e, dataName: t, value: n, placeholder: r, searchTypeDefaultValue: i, searchTypeOptions: a, style: o, searchTypeStyle: s, loading: c, disabled: l, mode: d, onSearch: f, onChange: p }) => {
|
|
453
|
-
let [m, h] =
|
|
454
|
-
return
|
|
453
|
+
let [m, h] = R([]), [g, _] = R(""), [v, y] = R(i), [b, x] = R(t);
|
|
454
|
+
return P(() => {
|
|
455
455
|
f(g, v, h);
|
|
456
|
-
}, u.milliseconds.milliseconds500, [g, v]),
|
|
456
|
+
}, u.milliseconds.milliseconds500, [g, v]), L(() => {
|
|
457
457
|
x(t);
|
|
458
|
-
}, [t]),
|
|
458
|
+
}, [t]), L(() => {
|
|
459
459
|
if (!(!b || !n)) if (Array.isArray(n) && Array.isArray(b)) {
|
|
460
460
|
let e = n.map((e, t) => {
|
|
461
461
|
let n = b[t];
|
|
@@ -478,10 +478,10 @@ var At = be((e, t) => ({
|
|
|
478
478
|
value: n
|
|
479
479
|
}];
|
|
480
480
|
});
|
|
481
|
-
}, [b, n]), /* @__PURE__ */
|
|
481
|
+
}, [b, n]), /* @__PURE__ */ N(H, {
|
|
482
482
|
className: Qt.flex,
|
|
483
483
|
gap: "small",
|
|
484
|
-
children: [/* @__PURE__ */
|
|
484
|
+
children: [/* @__PURE__ */ M(ze, {
|
|
485
485
|
defaultValue: i,
|
|
486
486
|
value: v,
|
|
487
487
|
options: a,
|
|
@@ -490,7 +490,7 @@ var At = be((e, t) => ({
|
|
|
490
490
|
onChange: (e) => {
|
|
491
491
|
y(e);
|
|
492
492
|
}
|
|
493
|
-
}), /* @__PURE__ */
|
|
493
|
+
}), /* @__PURE__ */ M(ze, {
|
|
494
494
|
mode: d,
|
|
495
495
|
value: n,
|
|
496
496
|
placeholder: r,
|
|
@@ -503,7 +503,7 @@ var At = be((e, t) => ({
|
|
|
503
503
|
},
|
|
504
504
|
options: m || [],
|
|
505
505
|
style: o,
|
|
506
|
-
notFoundContent: c ? /* @__PURE__ */
|
|
506
|
+
notFoundContent: c ? /* @__PURE__ */ M(U.Input, {
|
|
507
507
|
size: "small",
|
|
508
508
|
block: !0,
|
|
509
509
|
active: !0
|
|
@@ -513,9 +513,9 @@ var At = be((e, t) => ({
|
|
|
513
513
|
disabled: l
|
|
514
514
|
})]
|
|
515
515
|
});
|
|
516
|
-
}, en = ({ children: e, spinFontSize: t = 36, ...n }) => /* @__PURE__ */
|
|
516
|
+
}, en = ({ children: e, spinFontSize: t = 36, ...n }) => /* @__PURE__ */ M(Be, {
|
|
517
517
|
...n,
|
|
518
|
-
indicator: /* @__PURE__ */
|
|
518
|
+
indicator: /* @__PURE__ */ M(rt, { style: { fontSize: t } }),
|
|
519
519
|
children: e
|
|
520
520
|
}), tn = {
|
|
521
521
|
"mod+b": "bold",
|
|
@@ -558,63 +558,63 @@ var At = be((e, t) => ({
|
|
|
558
558
|
id: "1",
|
|
559
559
|
title: e,
|
|
560
560
|
format: "bold",
|
|
561
|
-
icon: /* @__PURE__ */
|
|
561
|
+
icon: /* @__PURE__ */ M(Qe, {}),
|
|
562
562
|
type: "mark"
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
565
|
id: "2",
|
|
566
566
|
title: t,
|
|
567
567
|
format: "italic",
|
|
568
|
-
icon: /* @__PURE__ */
|
|
568
|
+
icon: /* @__PURE__ */ M(tt, {}),
|
|
569
569
|
type: "mark"
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
572
|
id: "3",
|
|
573
573
|
title: n,
|
|
574
574
|
format: "underline",
|
|
575
|
-
icon: /* @__PURE__ */
|
|
575
|
+
icon: /* @__PURE__ */ M(ct, {}),
|
|
576
576
|
type: "mark"
|
|
577
577
|
},
|
|
578
578
|
{
|
|
579
579
|
id: "4",
|
|
580
580
|
title: r,
|
|
581
581
|
format: "numbered-list",
|
|
582
|
-
icon: /* @__PURE__ */
|
|
582
|
+
icon: /* @__PURE__ */ M(at, {}),
|
|
583
583
|
type: "list"
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
586
|
id: "5",
|
|
587
587
|
title: i,
|
|
588
588
|
format: "bulleted-list",
|
|
589
|
-
icon: /* @__PURE__ */
|
|
589
|
+
icon: /* @__PURE__ */ M(lt, {}),
|
|
590
590
|
type: "list"
|
|
591
591
|
},
|
|
592
592
|
{
|
|
593
593
|
id: "6",
|
|
594
594
|
title: a,
|
|
595
595
|
format: "left",
|
|
596
|
-
icon: /* @__PURE__ */
|
|
596
|
+
icon: /* @__PURE__ */ M(Xe, {}),
|
|
597
597
|
type: "align"
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
600
|
id: "7",
|
|
601
601
|
title: o,
|
|
602
602
|
format: "center",
|
|
603
|
-
icon: /* @__PURE__ */
|
|
603
|
+
icon: /* @__PURE__ */ M(Ye, {}),
|
|
604
604
|
type: "align"
|
|
605
605
|
},
|
|
606
606
|
{
|
|
607
607
|
id: "8",
|
|
608
608
|
title: s,
|
|
609
609
|
format: "right",
|
|
610
|
-
icon: /* @__PURE__ */
|
|
610
|
+
icon: /* @__PURE__ */ M(Ze, {}),
|
|
611
611
|
type: "align"
|
|
612
612
|
},
|
|
613
613
|
{
|
|
614
614
|
id: "9",
|
|
615
615
|
title: c,
|
|
616
616
|
format: "justify",
|
|
617
|
-
icon: /* @__PURE__ */
|
|
617
|
+
icon: /* @__PURE__ */ M(it, {}),
|
|
618
618
|
type: "align"
|
|
619
619
|
}
|
|
620
620
|
], cn = (e, t, n = "type") => {
|
|
@@ -702,10 +702,10 @@ var At = be((e, t) => ({
|
|
|
702
702
|
}, yn = (e) => {
|
|
703
703
|
let { insertData: t, insertText: n, isInline: r } = e;
|
|
704
704
|
return e.isInline = (e) => ["link"].includes(e.type) || r(e), e.insertText = (t) => {
|
|
705
|
-
t &&
|
|
705
|
+
t && ae(t) ? hn(e, t) : n(t);
|
|
706
706
|
}, e.insertData = (n) => {
|
|
707
707
|
let r = n.getData("text/plain");
|
|
708
|
-
r &&
|
|
708
|
+
r && ae(r) ? hn(e, r) : t(n);
|
|
709
709
|
}, e;
|
|
710
710
|
}, Q = (e) => {
|
|
711
711
|
let t = /["'&<>]/, n = "" + e, r = t.exec(n);
|
|
@@ -779,12 +779,12 @@ var At = be((e, t) => ({
|
|
|
779
779
|
if ("type" in e && "children" in e && Array.isArray(e.children)) return [e];
|
|
780
780
|
}
|
|
781
781
|
return t;
|
|
782
|
-
}, Sn = () => /* @__PURE__ */
|
|
782
|
+
}, Sn = () => /* @__PURE__ */ M("span", {
|
|
783
783
|
contentEditable: !1,
|
|
784
784
|
style: { fontSize: 0 },
|
|
785
785
|
children: String.fromCodePoint(160)
|
|
786
786
|
}), Cn = ({ attributes: e, children: t, element: n }) => {
|
|
787
|
-
let r = wt(), { token: { colorLink: i, colorLinkHover: a } } = K.useToken(), o =
|
|
787
|
+
let r = wt(), { token: { colorLink: i, colorLinkHover: a } } = K.useToken(), o = Ae(() => {
|
|
788
788
|
let e = null;
|
|
789
789
|
try {
|
|
790
790
|
e = new URL(n.href);
|
|
@@ -793,65 +793,65 @@ var At = be((e, t) => ({
|
|
|
793
793
|
}
|
|
794
794
|
return e && an.includes(e.protocol) ? e.href : "about:blank";
|
|
795
795
|
}, [n.href]);
|
|
796
|
-
return /* @__PURE__ */
|
|
796
|
+
return /* @__PURE__ */ M(Re, {
|
|
797
797
|
title: "URL",
|
|
798
798
|
content: o,
|
|
799
|
-
children: /* @__PURE__ */
|
|
799
|
+
children: /* @__PURE__ */ N("a", {
|
|
800
800
|
...e,
|
|
801
801
|
href: o,
|
|
802
802
|
style: { color: r ? a : i },
|
|
803
803
|
children: [
|
|
804
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ M(Sn, {}),
|
|
805
805
|
t,
|
|
806
|
-
/* @__PURE__ */
|
|
806
|
+
/* @__PURE__ */ M(Sn, {})
|
|
807
807
|
]
|
|
808
808
|
})
|
|
809
809
|
});
|
|
810
810
|
}, wn = ({ attributes: e, children: t, element: n }) => {
|
|
811
811
|
let r = { textAlign: n.align };
|
|
812
812
|
switch (n.type) {
|
|
813
|
-
case "bulleted-list": return /* @__PURE__ */
|
|
813
|
+
case "bulleted-list": return /* @__PURE__ */ M("ul", {
|
|
814
814
|
className: "content-bulleted-list",
|
|
815
815
|
style: r,
|
|
816
816
|
...e,
|
|
817
817
|
children: t
|
|
818
818
|
});
|
|
819
|
-
case "title": return /* @__PURE__ */
|
|
819
|
+
case "title": return /* @__PURE__ */ M("h2", {
|
|
820
820
|
className: "content-title",
|
|
821
821
|
style: r,
|
|
822
822
|
...e,
|
|
823
823
|
children: t
|
|
824
824
|
});
|
|
825
|
-
case "subtitle": return /* @__PURE__ */
|
|
825
|
+
case "subtitle": return /* @__PURE__ */ M("h3", {
|
|
826
826
|
className: "content-subtitle",
|
|
827
827
|
style: r,
|
|
828
828
|
...e,
|
|
829
829
|
children: t
|
|
830
830
|
});
|
|
831
|
-
case "list-item": return /* @__PURE__ */
|
|
831
|
+
case "list-item": return /* @__PURE__ */ M("li", {
|
|
832
832
|
style: r,
|
|
833
833
|
...e,
|
|
834
834
|
children: t
|
|
835
835
|
});
|
|
836
|
-
case "numbered-list": return /* @__PURE__ */
|
|
836
|
+
case "numbered-list": return /* @__PURE__ */ M("ol", {
|
|
837
837
|
className: "content-numbered-list",
|
|
838
838
|
style: r,
|
|
839
839
|
...e,
|
|
840
840
|
children: t
|
|
841
841
|
});
|
|
842
|
-
case "note": return /* @__PURE__ */
|
|
842
|
+
case "note": return /* @__PURE__ */ M("p", {
|
|
843
843
|
className: "content-note",
|
|
844
844
|
style: r,
|
|
845
845
|
...e,
|
|
846
846
|
children: t
|
|
847
847
|
});
|
|
848
|
-
case "info": return /* @__PURE__ */
|
|
848
|
+
case "info": return /* @__PURE__ */ M("p", {
|
|
849
849
|
className: "content-info",
|
|
850
850
|
style: r,
|
|
851
851
|
...e,
|
|
852
852
|
children: t
|
|
853
853
|
});
|
|
854
|
-
case "link": return /* @__PURE__ */
|
|
854
|
+
case "link": return /* @__PURE__ */ M(Cn, {
|
|
855
855
|
attributes: e,
|
|
856
856
|
children: t,
|
|
857
857
|
element: n
|
|
@@ -859,36 +859,36 @@ var At = be((e, t) => ({
|
|
|
859
859
|
case "image":
|
|
860
860
|
if (n.pictureData) {
|
|
861
861
|
let r = n.pictureData;
|
|
862
|
-
return /* @__PURE__ */
|
|
862
|
+
return /* @__PURE__ */ N("div", {
|
|
863
863
|
...e,
|
|
864
864
|
contentEditable: !1,
|
|
865
|
-
children: [/* @__PURE__ */
|
|
865
|
+
children: [/* @__PURE__ */ N("picture", {
|
|
866
866
|
className: "content-image",
|
|
867
867
|
children: [
|
|
868
|
-
r.mobileImage1xAvif && /* @__PURE__ */
|
|
868
|
+
r.mobileImage1xAvif && /* @__PURE__ */ M("source", {
|
|
869
869
|
srcSet: `${r.mobileImage1xAvif} 1x${r.mobileImage2xAvif ? `, ${r.mobileImage2xAvif} 2x` : ""}`,
|
|
870
870
|
media: "(max-width: 450px)",
|
|
871
871
|
type: "image/avif"
|
|
872
872
|
}),
|
|
873
|
-
r.mobileImage1xWebp && /* @__PURE__ */
|
|
873
|
+
r.mobileImage1xWebp && /* @__PURE__ */ M("source", {
|
|
874
874
|
srcSet: `${r.mobileImage1xWebp} 1x${r.mobileImage2xWebp ? `, ${r.mobileImage2xWebp} 2x` : ""}`,
|
|
875
875
|
media: "(max-width: 450px)",
|
|
876
876
|
type: "image/webp"
|
|
877
877
|
}),
|
|
878
|
-
r.mobileImage1x && /* @__PURE__ */
|
|
878
|
+
r.mobileImage1x && /* @__PURE__ */ M("source", {
|
|
879
879
|
srcSet: `${r.mobileImage1x} 1x${r.mobileImage2x ? `, ${r.mobileImage2x} 2x` : ""}`,
|
|
880
880
|
media: "(max-width: 450px)"
|
|
881
881
|
}),
|
|
882
|
-
r.image1xAvif && /* @__PURE__ */
|
|
882
|
+
r.image1xAvif && /* @__PURE__ */ M("source", {
|
|
883
883
|
srcSet: `${r.image1xAvif} 1x${r.image2xAvif ? `, ${r.image2xAvif} 2x` : ""}`,
|
|
884
884
|
type: "image/avif"
|
|
885
885
|
}),
|
|
886
|
-
r.image1xWebp && /* @__PURE__ */
|
|
886
|
+
r.image1xWebp && /* @__PURE__ */ M("source", {
|
|
887
887
|
srcSet: `${r.image1xWebp} 1x${r.image2xWebp ? `, ${r.image2xWebp} 2x` : ""}`,
|
|
888
888
|
type: "image/webp"
|
|
889
889
|
}),
|
|
890
|
-
r.image1x && /* @__PURE__ */
|
|
891
|
-
/* @__PURE__ */
|
|
890
|
+
r.image1x && /* @__PURE__ */ M("source", { srcSet: `${r.image1x} 1x${r.image2x ? `, ${r.image2x} 2x` : ""}` }),
|
|
891
|
+
/* @__PURE__ */ M("img", {
|
|
892
892
|
className: "content-image",
|
|
893
893
|
src: r.image1x,
|
|
894
894
|
alt: n.alt ?? "",
|
|
@@ -899,36 +899,36 @@ var At = be((e, t) => ({
|
|
|
899
899
|
}), t]
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
return /* @__PURE__ */
|
|
902
|
+
return /* @__PURE__ */ N("div", {
|
|
903
903
|
...e,
|
|
904
904
|
contentEditable: !1,
|
|
905
|
-
children: [/* @__PURE__ */
|
|
905
|
+
children: [/* @__PURE__ */ M("img", {
|
|
906
906
|
className: "content-image",
|
|
907
907
|
src: n.url,
|
|
908
908
|
alt: n.alt ?? "",
|
|
909
909
|
style: { maxWidth: "100%" }
|
|
910
910
|
}), t]
|
|
911
911
|
});
|
|
912
|
-
default: return /* @__PURE__ */
|
|
912
|
+
default: return /* @__PURE__ */ M("p", {
|
|
913
913
|
style: r,
|
|
914
914
|
...e,
|
|
915
915
|
children: t
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
|
-
}, Tn = ({ attributes: e, children: t, leaf: n }) => (n.bold && (t = /* @__PURE__ */
|
|
918
|
+
}, Tn = ({ attributes: e, children: t, leaf: n }) => (n.bold && (t = /* @__PURE__ */ M("strong", { children: t })), n.italic && (t = /* @__PURE__ */ M("em", { children: t })), n.underline && (t = /* @__PURE__ */ M("u", { children: t })), /* @__PURE__ */ M("span", {
|
|
919
919
|
...e,
|
|
920
920
|
children: t
|
|
921
921
|
})), En = ({ tooltipText: e, linkErrorText: t, onErrorMessage: n }) => {
|
|
922
|
-
let [r, i] =
|
|
922
|
+
let [r, i] = R(!1), [a, o] = R(""), s = Tt(), c = () => {
|
|
923
923
|
i((e) => !e);
|
|
924
924
|
};
|
|
925
|
-
return /* @__PURE__ */
|
|
925
|
+
return /* @__PURE__ */ N(Te, { children: [/* @__PURE__ */ M(W, {
|
|
926
926
|
title: e,
|
|
927
|
-
children: /* @__PURE__ */
|
|
928
|
-
icon: /* @__PURE__ */
|
|
927
|
+
children: /* @__PURE__ */ M(z, {
|
|
928
|
+
icon: /* @__PURE__ */ M(nt, {}),
|
|
929
929
|
onClick: c
|
|
930
930
|
})
|
|
931
|
-
}), /* @__PURE__ */
|
|
931
|
+
}), /* @__PURE__ */ M(Le, {
|
|
932
932
|
title: e,
|
|
933
933
|
open: r,
|
|
934
934
|
destroyOnHidden: !0,
|
|
@@ -949,7 +949,7 @@ var At = be((e, t) => ({
|
|
|
949
949
|
onCancel: () => {
|
|
950
950
|
c(), o("");
|
|
951
951
|
},
|
|
952
|
-
children: /* @__PURE__ */
|
|
952
|
+
children: /* @__PURE__ */ M(Fe, {
|
|
953
953
|
placeholder: "https://site.ru | test@mail.ru | +79881234567",
|
|
954
954
|
value: a,
|
|
955
955
|
onChange: (e) => {
|
|
@@ -959,10 +959,10 @@ var At = be((e, t) => ({
|
|
|
959
959
|
})] });
|
|
960
960
|
}, Dn = ({ tooltipText: e }) => {
|
|
961
961
|
let t = Tt();
|
|
962
|
-
return /* @__PURE__ */
|
|
962
|
+
return /* @__PURE__ */ M(W, {
|
|
963
963
|
title: e,
|
|
964
|
-
children: /* @__PURE__ */
|
|
965
|
-
icon: /* @__PURE__ */
|
|
964
|
+
children: /* @__PURE__ */ M(z, {
|
|
965
|
+
icon: /* @__PURE__ */ M(et, {}),
|
|
966
966
|
onClick: () => {
|
|
967
967
|
fn(t) && pn(t);
|
|
968
968
|
}
|
|
@@ -987,36 +987,36 @@ var At = be((e, t) => ({
|
|
|
987
987
|
p(e instanceof Error ? e.message : "Image upload failed");
|
|
988
988
|
}
|
|
989
989
|
};
|
|
990
|
-
return /* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ N(H, {
|
|
991
991
|
gap: "small",
|
|
992
992
|
wrap: !0,
|
|
993
|
-
children: [/* @__PURE__ */
|
|
993
|
+
children: [/* @__PURE__ */ M(H, {
|
|
994
994
|
gap: "small",
|
|
995
995
|
wrap: !0,
|
|
996
|
-
children: on.map((e) => /* @__PURE__ */
|
|
996
|
+
children: on.map((e) => /* @__PURE__ */ M(z, {
|
|
997
997
|
type: cn(h, e.format, "type"),
|
|
998
998
|
onClick: () => dn(h, e.format),
|
|
999
999
|
children: e.text
|
|
1000
1000
|
}, e.id))
|
|
1001
|
-
}), /* @__PURE__ */
|
|
1001
|
+
}), /* @__PURE__ */ N(H, {
|
|
1002
1002
|
gap: "small",
|
|
1003
1003
|
wrap: !0,
|
|
1004
1004
|
children: [
|
|
1005
1005
|
g.map((e) => {
|
|
1006
1006
|
let t, n;
|
|
1007
|
-
return e.type === "mark" ? (t = ln(h, e.format), n = () => un(h, e.format)) : (t = cn(h, e.format, e.type === "list" ? "type" : "align"), n = () => dn(h, e.format)), /* @__PURE__ */
|
|
1007
|
+
return e.type === "mark" ? (t = ln(h, e.format), n = () => un(h, e.format)) : (t = cn(h, e.format, e.type === "list" ? "type" : "align"), n = () => dn(h, e.format)), /* @__PURE__ */ M(W, {
|
|
1008
1008
|
title: e.title,
|
|
1009
|
-
children: /* @__PURE__ */
|
|
1009
|
+
children: /* @__PURE__ */ M(z, {
|
|
1010
1010
|
type: t,
|
|
1011
1011
|
icon: e.icon,
|
|
1012
1012
|
onClick: n
|
|
1013
1013
|
})
|
|
1014
1014
|
}, e.id);
|
|
1015
1015
|
}),
|
|
1016
|
-
m && /* @__PURE__ */
|
|
1016
|
+
m && /* @__PURE__ */ M(W, {
|
|
1017
1017
|
title: f ?? "Image",
|
|
1018
|
-
children: /* @__PURE__ */
|
|
1019
|
-
icon: /* @__PURE__ */
|
|
1018
|
+
children: /* @__PURE__ */ M(z, {
|
|
1019
|
+
icon: /* @__PURE__ */ M(ot, {}),
|
|
1020
1020
|
onClick: () => {
|
|
1021
1021
|
let e = document.createElement("input");
|
|
1022
1022
|
e.type = "file", e.accept = "image/png, image/jpeg, image/webp, image/avif", e.style.display = "none", e.addEventListener("change", () => {
|
|
@@ -1026,24 +1026,24 @@ var At = be((e, t) => ({
|
|
|
1026
1026
|
}
|
|
1027
1027
|
})
|
|
1028
1028
|
}),
|
|
1029
|
-
/* @__PURE__ */
|
|
1029
|
+
/* @__PURE__ */ M(En, {
|
|
1030
1030
|
tooltipText: u,
|
|
1031
1031
|
linkErrorText: l,
|
|
1032
1032
|
onErrorMessage: p
|
|
1033
1033
|
}),
|
|
1034
|
-
/* @__PURE__ */
|
|
1034
|
+
/* @__PURE__ */ M(Dn, { tooltipText: d })
|
|
1035
1035
|
]
|
|
1036
1036
|
})]
|
|
1037
1037
|
});
|
|
1038
1038
|
}, kn = { editable: "_editable_136f6_1" }, $ = [{
|
|
1039
1039
|
type: "paragraph",
|
|
1040
1040
|
children: [{ text: "" }]
|
|
1041
|
-
}], { useToken: An } = K, jn =
|
|
1042
|
-
let [x, S] =
|
|
1041
|
+
}], { useToken: An } = K, jn = F(({ boldText: e, italicText: t, underlineText: n, numberedListText: r, bulletedListText: i, leftText: a, centerText: o, rightText: s, justifyText: c, linkErrorText: l, linkButtonTooltipText: d, removeLinkTooltipText: f, imageButtonTooltipText: p, language: m, readOnly: h = !1, onSetContent: g, onSetHtml: _, onErrorMessage: v, onUploadImage: y }, b) => {
|
|
1042
|
+
let [x, S] = R($), C = Ae(() => vn(yn(Ot(Et(xt())))), []), { token: w } = An(), [,] = P(() => {
|
|
1043
1043
|
let e = JSON.stringify(x), t = x.map((e) => bn(e)).join("");
|
|
1044
1044
|
g(e, m), _(t, m);
|
|
1045
1045
|
}, u.seconds.seconds1, [x]);
|
|
1046
|
-
|
|
1046
|
+
ke(b, () => ({
|
|
1047
1047
|
resetData: () => {
|
|
1048
1048
|
S($), C.children = $, Y.deselect(C);
|
|
1049
1049
|
},
|
|
@@ -1061,17 +1061,17 @@ var At = be((e, t) => ({
|
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
}));
|
|
1064
|
-
let T =
|
|
1065
|
-
return /* @__PURE__ */
|
|
1064
|
+
let T = Oe((e) => /* @__PURE__ */ M(wn, { ...e }), []), E = Oe((e) => /* @__PURE__ */ M(Tn, { ...e }), []);
|
|
1065
|
+
return /* @__PURE__ */ M(Ct, {
|
|
1066
1066
|
editor: C,
|
|
1067
1067
|
initialValue: x,
|
|
1068
1068
|
onChange: (e) => {
|
|
1069
1069
|
S(e);
|
|
1070
1070
|
},
|
|
1071
|
-
children: /* @__PURE__ */
|
|
1071
|
+
children: /* @__PURE__ */ N(H, {
|
|
1072
1072
|
gap: "small",
|
|
1073
1073
|
vertical: !0,
|
|
1074
|
-
children: [!h && /* @__PURE__ */
|
|
1074
|
+
children: [!h && /* @__PURE__ */ M(On, {
|
|
1075
1075
|
boldText: e,
|
|
1076
1076
|
italicText: t,
|
|
1077
1077
|
underlineText: n,
|
|
@@ -1087,7 +1087,7 @@ var At = be((e, t) => ({
|
|
|
1087
1087
|
imageButtonTooltipText: p,
|
|
1088
1088
|
onErrorMessage: v,
|
|
1089
1089
|
onUploadImage: y
|
|
1090
|
-
}), /* @__PURE__ */
|
|
1090
|
+
}), /* @__PURE__ */ M(St, {
|
|
1091
1091
|
className: kn.editable,
|
|
1092
1092
|
style: {
|
|
1093
1093
|
padding: w.padding,
|
|
@@ -1108,80 +1108,80 @@ var At = be((e, t) => ({
|
|
|
1108
1108
|
})]
|
|
1109
1109
|
})
|
|
1110
1110
|
});
|
|
1111
|
-
}), Mn = () => /* @__PURE__ */
|
|
1112
|
-
className:
|
|
1111
|
+
}), Mn = () => /* @__PURE__ */ N("div", {
|
|
1112
|
+
className: k.tableHeadSkeleton,
|
|
1113
1113
|
style: { marginBottom: w.OFFSET[1] },
|
|
1114
|
-
children: [/* @__PURE__ */
|
|
1114
|
+
children: [/* @__PURE__ */ N(H, {
|
|
1115
1115
|
align: "center",
|
|
1116
1116
|
gap: "middle",
|
|
1117
1117
|
wrap: "wrap",
|
|
1118
|
-
children: [/* @__PURE__ */
|
|
1119
|
-
className:
|
|
1120
|
-
children: /* @__PURE__ */
|
|
1118
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1119
|
+
className: k.skeletonHead1,
|
|
1120
|
+
children: /* @__PURE__ */ M(U.Button, {
|
|
1121
1121
|
active: !0,
|
|
1122
1122
|
block: !0
|
|
1123
1123
|
})
|
|
1124
|
-
}), /* @__PURE__ */
|
|
1125
|
-
className:
|
|
1126
|
-
children: /* @__PURE__ */
|
|
1124
|
+
}), /* @__PURE__ */ M("div", {
|
|
1125
|
+
className: k.skeletonHead2,
|
|
1126
|
+
children: /* @__PURE__ */ M(U.Button, {
|
|
1127
1127
|
active: !0,
|
|
1128
1128
|
block: !0
|
|
1129
1129
|
})
|
|
1130
1130
|
})]
|
|
1131
|
-
}), /* @__PURE__ */
|
|
1132
|
-
className: q(
|
|
1131
|
+
}), /* @__PURE__ */ N(H, {
|
|
1132
|
+
className: q(k.buttonsContainer, k.skeletonButtonsContainer),
|
|
1133
1133
|
gap: "small",
|
|
1134
|
-
children: [/* @__PURE__ */
|
|
1135
|
-
className:
|
|
1136
|
-
children: /* @__PURE__ */
|
|
1134
|
+
children: [/* @__PURE__ */ M("div", {
|
|
1135
|
+
className: k.skeletonHead3,
|
|
1136
|
+
children: /* @__PURE__ */ M(U.Button, {
|
|
1137
1137
|
active: !0,
|
|
1138
1138
|
block: !0
|
|
1139
1139
|
})
|
|
1140
|
-
}), /* @__PURE__ */
|
|
1141
|
-
className:
|
|
1142
|
-
children: /* @__PURE__ */
|
|
1140
|
+
}), /* @__PURE__ */ M("div", {
|
|
1141
|
+
className: k.skeletonHead4,
|
|
1142
|
+
children: /* @__PURE__ */ M(U.Button, {
|
|
1143
1143
|
active: !0,
|
|
1144
1144
|
block: !0
|
|
1145
1145
|
})
|
|
1146
1146
|
})]
|
|
1147
1147
|
})]
|
|
1148
|
-
}), Nn =
|
|
1149
|
-
let [
|
|
1150
|
-
|
|
1151
|
-
},
|
|
1152
|
-
|
|
1153
|
-
},
|
|
1154
|
-
|
|
1155
|
-
},
|
|
1156
|
-
|
|
1157
|
-
}, Oe = () => {
|
|
1158
|
-
ve((e) => !e);
|
|
1148
|
+
}), Nn = I(() => import("./table-head-CJK4H4s8.js").then(({ TableHead: e }) => ({ default: e }))), Pn = I(() => import("./base-table-Cec72CYC.js").then(({ BaseTable: e }) => ({ default: e }))), Fn = ({ drawerContent: e, sortTooltipText: t, updateDataText: n, refreshText: r, createText: i, createNewElementText: a, viewText: o, actionsText: s, editText: c, tableData: l, columns: u, order: d, orderOptions: f, searchProps: p, serverPagination: m, fetchedDataLoading: h, createButtonTooltip: g, readAction: _, createAction: v, updateAction: y, deleteText: b, deletedText: x, cancelText: S, deleteErrorText: C, drawerTitle: w, closeModalTitleText: T, closeModalContentText: E, closeModalOkText: ee, closeModalCancelText: D, drawerSize: te = "default", modalTitle: O, scrollWidth: ne, isCanRead: re, isCanCreate: ie, isCanUpdate: ae, isCanDelete: oe, isExpandable: se, isHiddenCreate: ce, isHiddenUpdate: le, isHiddenActions: ue, isFixedActions: de, renderActions: fe, configProviderProps: pe, onGetError: me, onChangeOrder: he, onRefetch: ge, onSetPaginate: _e, onDelete: k, onShowSizeChange: ve, onSuccessMessage: ye, onErrorMessage: be }) => {
|
|
1149
|
+
let [xe, A] = R(!1), [Se, Ce] = R(!1), [we, j] = R(!1), [Te, P] = R(_), [F, I] = R(""), Oe = (e) => {
|
|
1150
|
+
I(e), A(!0), P(_);
|
|
1151
|
+
}, L = (e) => {
|
|
1152
|
+
I(e);
|
|
1153
|
+
}, ke = () => {
|
|
1154
|
+
A(!0), P(v), I("");
|
|
1155
|
+
}, Ae = () => {
|
|
1156
|
+
A(!0), P(y);
|
|
1159
1157
|
}, z = () => {
|
|
1160
|
-
|
|
1158
|
+
Ce((e) => !e);
|
|
1159
|
+
}, B = () => {
|
|
1160
|
+
A(!1);
|
|
1161
1161
|
}, V = () => {
|
|
1162
|
-
if (
|
|
1163
|
-
|
|
1162
|
+
if (Te === _) {
|
|
1163
|
+
B();
|
|
1164
1164
|
return;
|
|
1165
1165
|
}
|
|
1166
|
-
|
|
1167
|
-
},
|
|
1166
|
+
j((e) => !e);
|
|
1167
|
+
}, H = async () => {
|
|
1168
1168
|
try {
|
|
1169
|
-
await
|
|
1169
|
+
await k?.(F), ye(x);
|
|
1170
1170
|
} catch (e) {
|
|
1171
|
-
|
|
1171
|
+
me({ error: e }), be(C);
|
|
1172
1172
|
}
|
|
1173
|
-
|
|
1174
|
-
},
|
|
1175
|
-
e.current && (
|
|
1176
|
-
},
|
|
1173
|
+
Ce(!1);
|
|
1174
|
+
}, Ne = (e) => {
|
|
1175
|
+
e.current && (_e(e.current, e.pageSize ?? 10), ge());
|
|
1176
|
+
}, Pe = (e) => {
|
|
1177
1177
|
P(e);
|
|
1178
1178
|
};
|
|
1179
|
-
return /* @__PURE__ */
|
|
1180
|
-
...
|
|
1179
|
+
return /* @__PURE__ */ N(je, {
|
|
1180
|
+
...pe,
|
|
1181
1181
|
children: [
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
fallback: /* @__PURE__ */
|
|
1184
|
-
children: /* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ M(Ee, {
|
|
1183
|
+
fallback: /* @__PURE__ */ M(Mn, {}),
|
|
1184
|
+
children: /* @__PURE__ */ M(Nn, {
|
|
1185
1185
|
sortTooltipText: t,
|
|
1186
1186
|
updateDataText: n,
|
|
1187
1187
|
refreshText: r,
|
|
@@ -1192,18 +1192,18 @@ var At = be((e, t) => ({
|
|
|
1192
1192
|
searchProps: p,
|
|
1193
1193
|
createButtonTooltip: g,
|
|
1194
1194
|
isCanCreate: ie,
|
|
1195
|
-
isHiddenCreate:
|
|
1196
|
-
onCreate:
|
|
1197
|
-
onChangeOrder:
|
|
1198
|
-
onRefetch:
|
|
1195
|
+
isHiddenCreate: ce,
|
|
1196
|
+
onCreate: ke,
|
|
1197
|
+
onChangeOrder: he,
|
|
1198
|
+
onRefetch: ge
|
|
1199
1199
|
})
|
|
1200
1200
|
}),
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
fallback: /* @__PURE__ */
|
|
1201
|
+
/* @__PURE__ */ M(Jt, { children: /* @__PURE__ */ M(Ee, {
|
|
1202
|
+
fallback: /* @__PURE__ */ M("div", {
|
|
1203
1203
|
style: { height: "70vh" },
|
|
1204
|
-
children: /* @__PURE__ */
|
|
1204
|
+
children: /* @__PURE__ */ M(U, { active: !0 })
|
|
1205
1205
|
}),
|
|
1206
|
-
children: /* @__PURE__ */
|
|
1206
|
+
children: /* @__PURE__ */ M(Pn, {
|
|
1207
1207
|
viewText: o,
|
|
1208
1208
|
actionsText: s,
|
|
1209
1209
|
editText: c,
|
|
@@ -1212,67 +1212,69 @@ var At = be((e, t) => ({
|
|
|
1212
1212
|
columns: u,
|
|
1213
1213
|
serverPagination: m,
|
|
1214
1214
|
loading: h,
|
|
1215
|
-
isHiddenUpdate:
|
|
1215
|
+
isHiddenUpdate: le,
|
|
1216
|
+
isHiddenActions: ue,
|
|
1216
1217
|
isCanRead: re,
|
|
1217
|
-
isCanUpdate:
|
|
1218
|
-
isCanDelete:
|
|
1219
|
-
isFixedActions:
|
|
1218
|
+
isCanUpdate: ae,
|
|
1219
|
+
isCanDelete: oe,
|
|
1220
|
+
isFixedActions: de,
|
|
1221
|
+
renderActions: fe,
|
|
1220
1222
|
scroll: { x: ne },
|
|
1221
|
-
expandable:
|
|
1222
|
-
if (Array.isArray(e.list)) return /* @__PURE__ */
|
|
1223
|
+
expandable: se ? { expandedRowRender: (e) => {
|
|
1224
|
+
if (Array.isArray(e.list)) return /* @__PURE__ */ M(Ie, {
|
|
1223
1225
|
bordered: !0,
|
|
1224
1226
|
dataSource: e.list,
|
|
1225
|
-
renderItem: (e) => /* @__PURE__ */
|
|
1227
|
+
renderItem: (e) => /* @__PURE__ */ M(Ie.Item, { children: /* @__PURE__ */ M(G.Text, { children: e.text }) })
|
|
1226
1228
|
});
|
|
1227
1229
|
} } : void 0,
|
|
1228
|
-
onView:
|
|
1229
|
-
onDropdownClick:
|
|
1230
|
-
onEdit:
|
|
1231
|
-
onDelete:
|
|
1232
|
-
onChange:
|
|
1233
|
-
onShowSizeChange:
|
|
1230
|
+
onView: Oe,
|
|
1231
|
+
onDropdownClick: L,
|
|
1232
|
+
onEdit: Ae,
|
|
1233
|
+
onDelete: k ? z : void 0,
|
|
1234
|
+
onChange: Ne,
|
|
1235
|
+
onShowSizeChange: ve
|
|
1234
1236
|
})
|
|
1235
1237
|
}) }),
|
|
1236
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ M(Me, {
|
|
1237
1239
|
title: w,
|
|
1238
|
-
open:
|
|
1240
|
+
open: xe,
|
|
1239
1241
|
size: te,
|
|
1240
1242
|
destroyOnHidden: !0,
|
|
1241
1243
|
onClose: V,
|
|
1242
|
-
children:
|
|
1243
|
-
id:
|
|
1244
|
-
action:
|
|
1245
|
-
onClose:
|
|
1246
|
-
onRefetch:
|
|
1247
|
-
onChangeActionValue:
|
|
1244
|
+
children: De(e, {
|
|
1245
|
+
id: F,
|
|
1246
|
+
action: Te,
|
|
1247
|
+
onClose: B,
|
|
1248
|
+
onRefetch: ge,
|
|
1249
|
+
onChangeActionValue: Pe
|
|
1248
1250
|
})
|
|
1249
1251
|
}),
|
|
1250
|
-
/* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ M(Le, {
|
|
1251
1253
|
title: T,
|
|
1252
|
-
open:
|
|
1254
|
+
open: we,
|
|
1253
1255
|
okText: ee,
|
|
1254
1256
|
cancelText: D,
|
|
1255
1257
|
destroyOnHidden: !0,
|
|
1256
1258
|
onOk: () => {
|
|
1257
|
-
|
|
1259
|
+
B(), V();
|
|
1258
1260
|
},
|
|
1259
1261
|
onCancel: V,
|
|
1260
1262
|
children: E
|
|
1261
1263
|
}),
|
|
1262
|
-
|
|
1264
|
+
k && /* @__PURE__ */ M(Le, {
|
|
1263
1265
|
title: O,
|
|
1264
|
-
open:
|
|
1266
|
+
open: Se,
|
|
1265
1267
|
okText: b,
|
|
1266
1268
|
cancelText: S,
|
|
1267
1269
|
okButtonProps: { danger: !0 },
|
|
1268
|
-
onOk:
|
|
1269
|
-
onCancel:
|
|
1270
|
+
onOk: H,
|
|
1271
|
+
onCancel: z
|
|
1270
1272
|
})
|
|
1271
1273
|
]
|
|
1272
1274
|
});
|
|
1273
1275
|
}, In = ({ originNode: e, file: t }) => {
|
|
1274
1276
|
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = qe({ id: t.uid });
|
|
1275
|
-
return /* @__PURE__ */
|
|
1277
|
+
return /* @__PURE__ */ M("div", {
|
|
1276
1278
|
ref: i,
|
|
1277
1279
|
style: {
|
|
1278
1280
|
transform: dt.Translate.toString(a),
|
|
@@ -1285,10 +1287,10 @@ var At = be((e, t) => ({
|
|
|
1285
1287
|
children: t.status === "error" && s ? e.props.children : e
|
|
1286
1288
|
});
|
|
1287
1289
|
}, Ln = ({ text: e, serverFiles: t, onOrder: n, onChange: r, onUpdateTemp: i, customRequest: a, onSuccessUpload: o, ...s }) => {
|
|
1288
|
-
let [c, l] =
|
|
1289
|
-
|
|
1290
|
+
let [c, l] = R([]), u = We(Ue, { activationConstraint: { distance: 10 } });
|
|
1291
|
+
L(() => {
|
|
1290
1292
|
c?.length && n(c.map((e) => e.uid));
|
|
1291
|
-
}, [c]),
|
|
1293
|
+
}, [c]), L(() => {
|
|
1292
1294
|
if (!t?.length) {
|
|
1293
1295
|
l([]), n([]);
|
|
1294
1296
|
return;
|
|
@@ -1318,23 +1320,23 @@ var At = be((e, t) => ({
|
|
|
1318
1320
|
uid: c.uid ?? ""
|
|
1319
1321
|
}), r?.("Ok")) : s?.(u.error), a?.(e, t);
|
|
1320
1322
|
};
|
|
1321
|
-
return /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ M(He, {
|
|
1322
1324
|
sensors: [u],
|
|
1323
1325
|
onDragEnd: d,
|
|
1324
|
-
children: /* @__PURE__ */
|
|
1326
|
+
children: /* @__PURE__ */ M(Ge, {
|
|
1325
1327
|
items: c.map((e) => e.uid),
|
|
1326
1328
|
strategy: Je,
|
|
1327
|
-
children: /* @__PURE__ */
|
|
1329
|
+
children: /* @__PURE__ */ M(Ve, {
|
|
1328
1330
|
...s,
|
|
1329
1331
|
fileList: c,
|
|
1330
|
-
itemRender: (e, t) => /* @__PURE__ */
|
|
1332
|
+
itemRender: (e, t) => /* @__PURE__ */ M(In, {
|
|
1331
1333
|
originNode: e,
|
|
1332
1334
|
file: t
|
|
1333
1335
|
}),
|
|
1334
1336
|
customRequest: p,
|
|
1335
1337
|
onChange: f,
|
|
1336
|
-
children: /* @__PURE__ */
|
|
1337
|
-
icon: /* @__PURE__ */
|
|
1338
|
+
children: /* @__PURE__ */ M(z, {
|
|
1339
|
+
icon: /* @__PURE__ */ M(ut, {}),
|
|
1338
1340
|
children: e
|
|
1339
1341
|
})
|
|
1340
1342
|
})
|
|
@@ -1342,4 +1344,4 @@ var At = be((e, t) => ({
|
|
|
1342
1344
|
});
|
|
1343
1345
|
};
|
|
1344
1346
|
//#endregion
|
|
1345
|
-
export { Fn as AdminTable, It as BaseDatePicker, Rt as BaseDrawerForm, Ln as BaseFileUpload, zt as BaseImage, qt as BaseImageUpload, Ht as BaseInput,
|
|
1347
|
+
export { Fn as AdminTable, It as BaseDatePicker, Rt as BaseDrawerForm, Ln as BaseFileUpload, zt as BaseImage, qt as BaseImageUpload, Ht as BaseInput, fe as BaseInputNumber, Yt as BaseMaterialMap, Ut as BasePasswordInput, Zt as BaseReadonlyInput, $t as BaseSearchInput, en as BaseSpin, Wt as BaseTextAreaInput, jn as BaseTextEditor, E as COOKIE, Pt as Container, _ as LOCAL_STORAGE, jt as Languages, Jt as LayoutCard, Mt as MonthsNumber, ge as OpenApiAxios, e as ProviderComposer, w as THEME, u as TIME, T as VALIDATION_VALUE, b as checkCorrectFileObject, a as checkCorrectImageObject, ue as compareRolesPriority, ve as convertPhoneMask, ne as createProfileLabel, ie as createUploadImagesStore, D as deleteCookie, Q as escapeHtml, me as fileToBase64, de as formatPhoneToInternational, oe as formatPhoneToNumber, pe as getCookie, i as getImagePrefix, _e as getTokenInCookie, h as getUploadFileUrl, le as getUploadImageUrl, gn as insertImage, mn as insertLink, cn as isBlockActive, _n as isImageUrl, fn as isLinkActive, ln as isMarkActive, ae as isUrl, se as mergeObjectArrays, xn as normalizeSlateData, ee as objectArrayToOptions, ye as onFilterSelectOptionsByLabel, A as prepareFilesToSubmit, te as prepareImagesToSubmit, t as prepareServerFiles, ce as prepareServerImages, re as provider, m as responseSchema, S as searchRadioDefaultValue, bn as serializeToHtml, g as serverFileSchema, o as serverImageSchema, l as sessionCookieSchema, O as setCookie, p as sortFilesArrayByReference, dn as toggleBlock, un as toggleMark, xe as translateContent, y as translateContentToLanguages, r as translateField, be as translateImagesAlt, pn as unwrapLink, f as uploadFilesSchema, v as uploadImageSchema, Se as uploadTempSchema, c as useExtraMediumViewPort, n as useFetchTableData, x as useLaptopBigViewPort, C as useLaptopViewPort, s as useMobileViewPort, At as useSession, d as useSmallViewPort, he as useTabletViewPort, vn as withImages, yn as withInlines, hn as wrapLink };
|