denwa-react-shared 1.0.96 → 1.1.0

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.
@@ -1,37 +1,37 @@
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 ee, Z as T, _ as te, a as E, b as ne, c as D, d as re, et as ie, f as ae, g as O, 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 k, q as me, r as A, s as he, t as j, u as ge, v as _e, w as M, x as ve, y as ye, z as be } from "./styles.module-DqoHspR8.js";
2
- import { create as xe } from "zustand";
3
- import { HttpStatusCode as Se } from "axios";
4
- import N from "dayjs";
5
- import { Fragment as Ce, jsx as P, jsxs as F } from "react/jsx-runtime";
6
- import { useDebounce as I } from "react-use";
7
- import { Suspense as we, createElement as Te, forwardRef as Ee, lazy as De, useCallback as Oe, useEffect as L, useImperativeHandle as R, useMemo as z, useState as B } from "react";
8
- import { Button as V, Card as ke, ConfigProvider as Ae, DatePicker as je, Drawer as Me, Flex as H, Form as Ne, Image as Pe, Input as U, List as Fe, Modal as Ie, Popover as Le, Select as Re, Skeleton as W, Spin as ze, Tooltip as G, Typography as K, Upload as Be, theme as q } from "antd";
9
- import J from "classnames";
10
- import { DndContext as Ve, PointerSensor as He, useSensor as Ue } from "@dnd-kit/core";
11
- import { SortableContext as We, arrayMove as Ge, useSortable as Ke, verticalListSortingStrategy as qe } from "@dnd-kit/sortable";
12
- import { AlignCenterOutlined as Je, AlignLeftOutlined as Ye, AlignRightOutlined as Xe, BoldOutlined as Ze, DeleteOutlined as Qe, DisconnectOutlined as $e, ItalicOutlined as et, LinkOutlined as tt, LoadingOutlined as nt, MenuOutlined as rt, OrderedListOutlined as it, PlusOutlined as at, UnderlineOutlined as ot, UnorderedListOutlined as st, UploadOutlined as ct } from "@ant-design/icons";
13
- import { CSS as lt } from "@dnd-kit/utilities";
14
- import { FullscreenControl as ut, Map as dt, Placemark as ft, SearchControl as pt, YMaps as mt, ZoomControl as ht } from "@iminside/react-yandex-maps";
15
- import { Editor as Y, Element as gt, Range as _t, Text as vt, Transforms as X, createEditor as yt } from "slate";
16
- import { Editable as bt, Slate as xt, useSelected as St, useSlate as Ct, withReact as wt } from "slate-react";
17
- import Tt from "is-hotkey";
18
- import { withHistory as Et } from "slate-history";
19
- import Dt from "validator";
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 k, h as ae, i as oe, j as se, k as ce, l as le, m as ue, n as de, o as fe, p as A, q as pe, r as j, s as me, t as M, u as he, v as ge, w as N, x as _e, y as ve, z as ye } from "./styles.module-DO7uqbNP.js";
2
+ import { create as be } from "zustand";
3
+ import { HttpStatusCode as xe } from "axios";
4
+ import P from "dayjs";
5
+ import { Fragment as Se, jsx as F, jsxs as I } from "react/jsx-runtime";
6
+ import { useDebounce as L } from "react-use";
7
+ import { Suspense as Ce, createElement as we, forwardRef as Te, lazy as Ee, useCallback as De, useEffect as R, useImperativeHandle as Oe, useMemo as z, useState as B } from "react";
8
+ import { Button as V, Card as ke, ConfigProvider as Ae, DatePicker as je, 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
+ import q from "classnames";
10
+ import { DndContext as He, PointerSensor as Ue, useSensor as We } from "@dnd-kit/core";
11
+ import { SortableContext as Ge, arrayMove as Ke, useSortable as qe, verticalListSortingStrategy as Je } from "@dnd-kit/sortable";
12
+ import { AlignCenterOutlined as Ye, AlignLeftOutlined as Xe, AlignRightOutlined as Ze, BoldOutlined as Qe, DeleteOutlined as $e, DisconnectOutlined as et, ItalicOutlined as tt, LinkOutlined as nt, LoadingOutlined as rt, MenuOutlined as it, OrderedListOutlined as at, PictureOutlined as ot, PlusOutlined as st, UnderlineOutlined as ct, UnorderedListOutlined as lt, UploadOutlined as ut } from "@ant-design/icons";
13
+ import { CSS as dt } from "@dnd-kit/utilities";
14
+ import { FullscreenControl as ft, Map as pt, Placemark as mt, SearchControl as ht, YMaps as gt, ZoomControl as _t } from "@iminside/react-yandex-maps";
15
+ import { Editor as J, Element as vt, Range as yt, Text as bt, Transforms as Y, createEditor as xt } from "slate";
16
+ import { Editable as St, Slate as Ct, useSelected as wt, useSlate as Tt, withReact as Et } from "slate-react";
17
+ import Dt from "is-hotkey";
18
+ import { withHistory as Ot } from "slate-history";
19
+ import kt from "validator";
20
20
  //#region src/entities/session/model/session.store.ts
21
- var Ot = xe((e, t) => ({
21
+ var At = be((e, t) => ({
22
22
  isLoading: !1,
23
23
  isFirstLoadCompleted: !1,
24
24
  currentSession: void 0,
25
25
  loadSession: async ({ domain: n, ROLE_PRIORITY: r, isNotSecure: i = !1, navigate: a, refresh: o }) => {
26
26
  if (t().currentSession) return;
27
- E(T.SESSION_TEMP, n), e({ isLoading: !0 });
27
+ D(E.SESSION_TEMP, n), e({ isLoading: !0 });
28
28
  let s = await o();
29
- if (s.status !== Se.Ok) {
29
+ if (s.status !== xe.Ok) {
30
30
  e({
31
31
  currentSession: void 0,
32
32
  isLoading: !1,
33
33
  isFirstLoadCompleted: !0
34
- }), a({ to: "/login" }), E(T.SESSION, n);
34
+ }), a({ to: "/login" }), D(E.SESSION, n);
35
35
  return;
36
36
  }
37
37
  let c = s.data.data;
@@ -40,10 +40,10 @@ var Ot = xe((e, t) => ({
40
40
  currentSession: void 0,
41
41
  isLoading: !1,
42
42
  isFirstLoadCompleted: !0
43
- }), a({ to: "/login" }), E(T.SESSION, n);
43
+ }), a({ to: "/login" }), D(E.SESSION, n);
44
44
  return;
45
45
  }
46
- let { maxUserRolePriority: l } = ue({
46
+ let { maxUserRolePriority: l } = le({
47
47
  userRoles: c.roles,
48
48
  comparedUserRoles: c.roles,
49
49
  rolePriority: r
@@ -66,8 +66,8 @@ var Ot = xe((e, t) => ({
66
66
  exp: c.tokens?.refreshToken?.exp ?? 0
67
67
  }
68
68
  }
69
- }, d = N(), f = N(c.tokens?.refreshToken?.exp ?? 0).diff(d, "seconds");
70
- return D(T.SESSION, JSON.stringify(u), {
69
+ }, d = P(), f = P(c.tokens?.refreshToken?.exp ?? 0).diff(d, "seconds");
70
+ return O(E.SESSION, JSON.stringify(u), {
71
71
  domain: n,
72
72
  secure: !i,
73
73
  "max-age": f
@@ -79,48 +79,48 @@ var Ot = xe((e, t) => ({
79
79
  },
80
80
  setCurrentSession: ({ domain: t, session: n, isRemember: r, isNotSecure: i }) => {
81
81
  e({ currentSession: n });
82
- let a = N(), o = N(n.tokens?.refreshToken?.exp ?? 0).diff(a, "seconds");
83
- D(r ? T.SESSION : T.SESSION_TEMP, JSON.stringify(n), {
82
+ let a = P(), o = P(n.tokens?.refreshToken?.exp ?? 0).diff(a, "seconds");
83
+ O(r ? E.SESSION : E.SESSION_TEMP, JSON.stringify(n), {
84
84
  domain: t,
85
85
  secure: !i,
86
86
  "max-age": o
87
87
  });
88
88
  },
89
89
  removeSession: ({ domain: t, navigate: n }) => {
90
- e({ currentSession: void 0 }), E(T.SESSION, t), E(T.SESSION_TEMP, t), n({ to: "/login" });
90
+ e({ currentSession: void 0 }), D(E.SESSION, t), D(E.SESSION_TEMP, t), n({ to: "/login" });
91
91
  }
92
- })), kt = /* @__PURE__ */ function(e) {
92
+ })), jt = /* @__PURE__ */ function(e) {
93
93
  return e.russian = "ru", e.english = "en", e.arabic = "ar", e;
94
- }({}), At = /* @__PURE__ */ function(e) {
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
- }({}), jt = { container: "_container_j6rsl_1" }, Mt = ({ children: e }) => /* @__PURE__ */ P("div", {
97
- className: jt.container,
96
+ }({}), Nt = { container: "_container_j6rsl_1" }, Pt = ({ children: e }) => /* @__PURE__ */ F("div", {
97
+ className: Nt.container,
98
98
  children: e
99
- }), Nt = {
99
+ }), Ft = {
100
100
  readOnly: "_readOnly_1qyk0_1",
101
101
  noData: "_noData_1qyk0_6"
102
- }, Pt = ({ configLocale: e, noDateText: t, currentValue: n, readOnly: r = !1, isTime: i = !1, ...a }) => {
103
- if (r && !n) return /* @__PURE__ */ P(K.Text, { children: t });
104
- let o = N(n);
105
- return r ? /* @__PURE__ */ P(K.Text, {
106
- className: J(Nt.readOnly, Nt.noData),
102
+ }, It = ({ configLocale: e, noDateText: t, currentValue: n, readOnly: r = !1, isTime: i = !1, ...a }) => {
103
+ if (r && !n) return /* @__PURE__ */ F(G.Text, { children: t });
104
+ let o = P(n);
105
+ return r ? /* @__PURE__ */ F(G.Text, {
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__ */ P(Ae, {
108
+ }) : /* @__PURE__ */ F(Ae, {
109
109
  locale: e,
110
- children: /* @__PURE__ */ P(je, {
110
+ children: /* @__PURE__ */ F(je, {
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: N("00:00:00", "HH:mm:ss") } : !1
115
+ showTime: i ? { defaultValue: P("00:00:00", "HH:mm:ss") } : !1
116
116
  })
117
117
  });
118
- }, Ft = {
118
+ }, Lt = {
119
119
  form: "_form_6uo9h_1",
120
120
  buttons: "_buttons_6uo9h_5"
121
- }, It = Ee(({ 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 }, _) => {
121
+ }, Rt = Te(({ 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
122
  let [v, y] = B(!1);
123
- R(_, () => ({ translateComplete: () => {
123
+ Oe(_, () => ({ translateComplete: () => {
124
124
  setTimeout(() => y(!1), u.milliseconds.seconds1);
125
125
  } }));
126
126
  let b = async () => {
@@ -128,29 +128,29 @@ var Ot = xe((e, t) => ({
128
128
  }, x = (e) => {
129
129
  p && (e.preventDefault(), p());
130
130
  };
131
- return /* @__PURE__ */ F(Ne, {
131
+ return /* @__PURE__ */ I(Ne, {
132
132
  ...g,
133
- className: Ft.form,
133
+ className: Lt.form,
134
134
  layout: "vertical",
135
- children: [e, /* @__PURE__ */ F("div", {
136
- className: Ft.buttons,
137
- children: [d && !!o?.length && /* @__PURE__ */ F(H, {
135
+ children: [e, /* @__PURE__ */ I("div", {
136
+ className: Lt.buttons,
137
+ children: [d && !!o?.length && /* @__PURE__ */ I(H, {
138
138
  gap: "small",
139
139
  vertical: !0,
140
- children: [f && /* @__PURE__ */ P(G, {
140
+ children: [f && /* @__PURE__ */ F(W, {
141
141
  title: i,
142
- children: /* @__PURE__ */ P(V, {
142
+ children: /* @__PURE__ */ F(V, {
143
143
  loading: v,
144
144
  onClick: b,
145
145
  children: r
146
146
  })
147
- }), /* @__PURE__ */ P(Re, {
147
+ }), /* @__PURE__ */ F(ze, {
148
148
  defaultValue: t,
149
149
  disabled: v,
150
150
  options: o,
151
151
  onChange: (e) => m?.(e)
152
152
  })]
153
- }), l && /* @__PURE__ */ P(V, {
153
+ }), l && /* @__PURE__ */ F(V, {
154
154
  type: "primary",
155
155
  htmlType: s,
156
156
  disabled: v,
@@ -160,26 +160,26 @@ var Ot = xe((e, t) => ({
160
160
  })]
161
161
  })]
162
162
  });
163
- }), Lt = ({ fallback: e = "data:image/png;base64,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", ...t }) => /* @__PURE__ */ P(Pe, {
163
+ }), zt = ({ fallback: e = "data:image/png;base64,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", ...t }) => /* @__PURE__ */ F(Pe, {
164
164
  ...t,
165
165
  fallback: e
166
- }), Rt = ({ downloadText: e }) => /* @__PURE__ */ F("button", {
166
+ }), Bt = ({ downloadText: e }) => /* @__PURE__ */ I("button", {
167
167
  style: {
168
168
  border: 0,
169
169
  background: "none"
170
170
  },
171
171
  type: "button",
172
- children: [/* @__PURE__ */ P(at, {}), /* @__PURE__ */ P("div", {
172
+ children: [/* @__PURE__ */ F(st, {}), /* @__PURE__ */ F("div", {
173
173
  style: { marginTop: 8 },
174
174
  children: e
175
175
  })]
176
- }), Z = {
176
+ }), X = {
177
177
  uploadContainer: "_uploadContainer_lavhx_1",
178
178
  card: "_card_lavhx_6",
179
179
  error: "_error_lavhx_14",
180
180
  disabled: "_disabled_lavhx_23",
181
181
  image: "_image_lavhx_32"
182
- }, zt = [
182
+ }, Vt = [
183
183
  {
184
184
  lang: "RU",
185
185
  alt: "altRU"
@@ -192,40 +192,40 @@ var Ot = xe((e, t) => ({
192
192
  lang: "AR",
193
193
  alt: "altAR"
194
194
  }
195
- ], Q = {
195
+ ], Z = {
196
196
  readOnly: "_readOnly_s33xc_1",
197
197
  noData: "_noData_s33xc_18"
198
- }, Bt = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ P(K.Text, {
199
- className: J(Q.readOnly, Q.noData),
198
+ }, Ht = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ F(G.Text, {
199
+ className: q(Z.readOnly, Z.noData),
200
200
  children: e
201
- }) : /* @__PURE__ */ P(U, {
201
+ }) : /* @__PURE__ */ F(Fe, {
202
202
  ...i,
203
203
  readOnly: n,
204
204
  value: r,
205
- className: J(t, { [Q.readOnly]: n })
206
- }), Vt = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ P(K.Text, {
207
- className: J(Q.readOnly, Q.noData),
205
+ className: q(t, { [Z.readOnly]: n })
206
+ }), Ut = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ F(G.Text, {
207
+ className: q(Z.readOnly, Z.noData),
208
208
  children: e
209
- }) : /* @__PURE__ */ P(U.Password, {
209
+ }) : /* @__PURE__ */ F(Fe.Password, {
210
210
  ...i,
211
211
  value: r,
212
212
  readOnly: n,
213
- className: J(t, { [Q.readOnly]: n })
214
- }), Ht = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ P(K.Text, {
215
- className: J(Q.readOnly, Q.noData),
213
+ className: q(t, { [Z.readOnly]: n })
214
+ }), Wt = ({ emptyText: e, className: t, readOnly: n, value: r, ...i }) => n && !r ? /* @__PURE__ */ F(G.Text, {
215
+ className: q(Z.readOnly, Z.noData),
216
216
  children: e
217
- }) : /* @__PURE__ */ P(U.TextArea, {
217
+ }) : /* @__PURE__ */ F(Fe.TextArea, {
218
218
  ...i,
219
219
  value: r,
220
220
  readOnly: n,
221
- className: J(t, { [Q.readOnly]: n })
222
- }), { useToken: Ut } = q, Wt = ({ 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 }) => {
221
+ className: q(t, { [Z.readOnly]: n })
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
223
  let [h, g] = B({
224
224
  ru: "",
225
225
  en: "",
226
226
  ar: ""
227
- }), [_, v] = B(null), [y, b] = B(!1), { remove: x } = o, { token: S } = Ut(), { attributes: C, listeners: w, setNodeRef: ee, transform: T, transition: te, isDragging: E } = Ke({ id: r.uid });
228
- I(() => {
227
+ }), [_, v] = B(null), [y, b] = B(!1), { remove: x } = o, { token: S } = Gt(), { attributes: C, listeners: w, setNodeRef: T, transform: E, transition: ee, isDragging: D } = qe({ id: r.uid });
228
+ L(() => {
229
229
  f({
230
230
  uid: r.uid,
231
231
  name: r.name.split(".")[0],
@@ -234,27 +234,27 @@ var Ot = xe((e, t) => ({
234
234
  altAR: h.ar
235
235
  });
236
236
  }, u.milliseconds.milliseconds500, [h]);
237
- let ne = J(Z.card, {
238
- "is-dragging": E,
239
- [Z.error]: y,
240
- [Z.disabled]: s || c === 1
241
- }), D = {
242
- transform: lt.Translate.toString(T),
243
- transition: te,
237
+ let te = q(X.card, {
238
+ "is-dragging": D,
239
+ [X.error]: y,
240
+ [X.disabled]: s || c === 1
241
+ }), O = {
242
+ transform: dt.Translate.toString(E),
243
+ transition: ee,
244
244
  borderColor: y ? S.colorError : void 0
245
245
  };
246
- L(() => {
246
+ R(() => {
247
247
  f({
248
248
  uid: r.uid,
249
249
  name: r.name.split(".")[0]
250
250
  });
251
- }, []), L(() => {
251
+ }, []), R(() => {
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]), L(() => {
257
+ }, [r, a]), R(() => {
258
258
  if (!l) return;
259
259
  let e = l.find((e) => e.uid === r.uid);
260
260
  e && g({
@@ -262,54 +262,54 @@ var Ot = xe((e, t) => ({
262
262
  en: e.altEN ?? "",
263
263
  ar: e.altAR ?? ""
264
264
  });
265
- }, [l]), L(() => {
265
+ }, [l]), R(() => {
266
266
  (async () => {
267
- r?.originFileObj ? v(await k(r.originFileObj)) : r.url && (g({
267
+ r?.originFileObj ? v(await A(r.originFileObj)) : r.url && (g({
268
268
  ru: r.altRU ?? "",
269
269
  en: r.altEN ?? "",
270
270
  ar: r.altAR ?? ""
271
271
  }), v(r.url));
272
272
  })();
273
273
  }, [r.url]);
274
- let re = () => {
274
+ let ne = () => {
275
275
  s || (x(), p(r.uid), m(r.uid));
276
- }, ie = (e, t) => {
276
+ }, re = (e, t) => {
277
277
  g((n) => ({
278
278
  ...n,
279
279
  [e.toLocaleLowerCase()]: t
280
280
  }));
281
281
  };
282
- return /* @__PURE__ */ P(ke, {
283
- ref: !y && !s && c !== 1 ? ee : void 0,
284
- className: ne,
282
+ return /* @__PURE__ */ F(ke, {
283
+ ref: !y && !s && c !== 1 ? T : void 0,
284
+ className: te,
285
285
  hoverable: !s,
286
286
  size: "small",
287
287
  loading: !_ || d,
288
- style: D,
289
- cover: _ ? /* @__PURE__ */ P(Pe, {
290
- className: Z.image,
288
+ style: O,
289
+ cover: _ ? /* @__PURE__ */ F(Pe, {
290
+ className: X.image,
291
291
  height: 160,
292
292
  src: _
293
293
  }) : void 0,
294
- actions: [/* @__PURE__ */ P(Qe, { onClick: re }, "delete")],
294
+ actions: [/* @__PURE__ */ F($e, { onClick: ne }, "delete")],
295
295
  ...C,
296
296
  ...w,
297
- children: zt.map((r) => /* @__PURE__ */ P(Ne.Item, {
297
+ children: Vt.map((r) => /* @__PURE__ */ F(Ne.Item, {
298
298
  label: `${t} ${r.lang.toUpperCase()}`,
299
299
  style: { display: i === r.lang.toLowerCase() ? "block" : "none" },
300
- children: /* @__PURE__ */ P(Bt, {
300
+ children: /* @__PURE__ */ F(Ht, {
301
301
  emptyText: e,
302
302
  disabled: y || s,
303
303
  value: h[r.lang.toLowerCase()],
304
304
  autoComplete: "new-password",
305
305
  placeholder: y ? n : t,
306
- onChange: (e) => ie(r.lang, e.target.value)
306
+ onChange: (e) => re(r.lang, e.target.value)
307
307
  })
308
308
  }, r.alt))
309
309
  });
310
- }, Gt = ({ 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 }) => {
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
311
  let [_, v] = B([]), [y, b] = B([]);
312
- L(() => {
312
+ R(() => {
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,19 +324,19 @@ var Ot = xe((e, t) => ({
324
324
  };
325
325
  }).filter((e) => !!e.uid), t = e.map((e) => e.uid);
326
326
  v(e), p?.(t);
327
- }, [i]), L(() => {
327
+ }, [i]), R(() => {
328
328
  if (!_?.length) return;
329
329
  let e = _.map((e) => e.uid);
330
330
  p?.(e);
331
331
  }, [_]);
332
- let x = Ue(He, { activationConstraint: { distance: 10 } }), S = (e) => {
332
+ let x = We(Ue, { activationConstraint: { distance: 10 } }), S = (e) => {
333
333
  let { fileList: t } = e;
334
334
  v(t), u?.(e);
335
335
  }, C = (e) => {
336
336
  b((t) => t.filter((t) => t !== e));
337
337
  }, w = ({ active: e, over: t }) => {
338
- e.id === t?.id || o || v((n) => Ge(n, n.findIndex((t) => t.uid === e.id), n.findIndex((e) => e.uid === t?.id)));
339
- }, ee = async (e, t) => {
338
+ e.id === t?.id || o || v((n) => Ke(n, n.findIndex((t) => t.uid === e.id), n.findIndex((e) => e.uid === t?.id)));
339
+ }, T = async (e, t) => {
340
340
  let { file: n, onSuccess: r, onError: i } = e, a = n, o = new FormData();
341
341
  o.append("files", n);
342
342
  let s = await h(o);
@@ -345,22 +345,22 @@ var Ot = xe((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__ */ P("div", {
349
- className: Z.uploadContainer,
350
- children: /* @__PURE__ */ P(Ve, {
348
+ return /* @__PURE__ */ F("div", {
349
+ className: X.uploadContainer,
350
+ children: /* @__PURE__ */ F(He, {
351
351
  sensors: [x],
352
352
  onDragEnd: w,
353
- children: /* @__PURE__ */ P(We, {
353
+ children: /* @__PURE__ */ F(Ge, {
354
354
  items: _.map((e) => e.uid),
355
- children: /* @__PURE__ */ P(Be, {
355
+ children: /* @__PURE__ */ F(Ve, {
356
356
  ...g,
357
357
  disabled: o,
358
358
  maxCount: s,
359
- customRequest: ee,
359
+ customRequest: T,
360
360
  accept: "image/png, image/jpeg",
361
361
  listType: "picture-card",
362
362
  fileList: _,
363
- itemRender: (r, i, l, u) => /* @__PURE__ */ P(Wt, {
363
+ itemRender: (r, i, l, u) => /* @__PURE__ */ F(Kt, {
364
364
  emptyText: n,
365
365
  labelText: e,
366
366
  loadingErrorText: t,
@@ -377,14 +377,14 @@ var Ot = xe((e, t) => ({
377
377
  onDeleteError: C
378
378
  }),
379
379
  onChange: S,
380
- children: (!s || _?.length < s) && /* @__PURE__ */ P(Rt, { downloadText: r })
380
+ children: (!s || _?.length < s) && /* @__PURE__ */ F(Bt, { downloadText: r })
381
381
  })
382
382
  })
383
383
  })
384
384
  });
385
- }, Kt = ({ children: e }) => {
386
- let { token: { colorBgContainer: t, boxShadow: n, borderRadius: r } } = q.useToken();
387
- return /* @__PURE__ */ P("div", {
385
+ }, Jt = ({ children: e }) => {
386
+ let { token: { colorBgContainer: t, boxShadow: n, borderRadius: r } } = K.useToken();
387
+ return /* @__PURE__ */ F("div", {
388
388
  style: {
389
389
  padding: w.OFFSET[1],
390
390
  boxShadow: n,
@@ -393,22 +393,22 @@ var Ot = xe((e, t) => ({
393
393
  },
394
394
  children: e
395
395
  });
396
- }, qt = ({ 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] = B(void 0), [m, h] = B(e), [g, _] = B(t), { token: { colorPrimary: v } } = q.useToken();
398
- L(() => {
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] = B(void 0), [m, h] = B(e), [g, _] = B(t), { token: { colorPrimary: v } } = K.useToken();
398
+ R(() => {
399
399
  h(e);
400
- }, [e]), L(() => {
400
+ }, [e]), R(() => {
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__ */ P(mt, {
406
+ return /* @__PURE__ */ F(gt, {
407
407
  query: {
408
408
  apikey: s,
409
409
  suggest_apikey: c
410
410
  },
411
- children: /* @__PURE__ */ F(dt, {
411
+ children: /* @__PURE__ */ I(pt, {
412
412
  instanceRef: (e) => p(e),
413
413
  defaultState: {
414
414
  center: [n, r],
@@ -426,7 +426,7 @@ var Ot = xe((e, t) => ({
426
426
  y(t, n);
427
427
  },
428
428
  children: [
429
- m && g && /* @__PURE__ */ P(ft, {
429
+ m && g && /* @__PURE__ */ F(mt, {
430
430
  geometry: [m, g],
431
431
  options: {
432
432
  iconColor: v,
@@ -437,25 +437,25 @@ var Ot = xe((e, t) => ({
437
437
  y(t, n);
438
438
  }
439
439
  }),
440
- /* @__PURE__ */ P(ut, {}),
441
- /* @__PURE__ */ P(ht, {}),
442
- u && /* @__PURE__ */ P(pt, {})
440
+ /* @__PURE__ */ F(ft, {}),
441
+ /* @__PURE__ */ F(_t, {}),
442
+ u && /* @__PURE__ */ F(ht, {})
443
443
  ]
444
444
  })
445
445
  });
446
- }, Jt = {
446
+ }, Xt = {
447
447
  readOnly: "_readOnly_e6ors_1",
448
448
  noData: "_noData_e6ors_19"
449
- }, Yt = ({ value: e, emptyText: t }) => /* @__PURE__ */ P(K.Text, {
450
- className: J(Jt.readOnly, Jt.noData),
449
+ }, Zt = ({ value: e, emptyText: t }) => /* @__PURE__ */ F(G.Text, {
450
+ className: q(Xt.readOnly, Xt.noData),
451
451
  children: e || t
452
- }), Xt = { flex: "_flex_jguhl_2" }, Zt = ({ 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 }) => {
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
453
  let [m, h] = B([]), [g, _] = B(""), [v, y] = B(i), [b, x] = B(t);
454
- return I(() => {
454
+ return L(() => {
455
455
  f(g, v, h);
456
- }, u.milliseconds.milliseconds500, [g, v]), L(() => {
456
+ }, u.milliseconds.milliseconds500, [g, v]), R(() => {
457
457
  x(t);
458
- }, [t]), L(() => {
458
+ }, [t]), R(() => {
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 Ot = xe((e, t) => ({
478
478
  value: n
479
479
  }];
480
480
  });
481
- }, [b, n]), /* @__PURE__ */ F(H, {
482
- className: Xt.flex,
481
+ }, [b, n]), /* @__PURE__ */ I(H, {
482
+ className: Qt.flex,
483
483
  gap: "small",
484
- children: [/* @__PURE__ */ P(Re, {
484
+ children: [/* @__PURE__ */ F(ze, {
485
485
  defaultValue: i,
486
486
  value: v,
487
487
  options: a,
@@ -490,7 +490,7 @@ var Ot = xe((e, t) => ({
490
490
  onChange: (e) => {
491
491
  y(e);
492
492
  }
493
- }), /* @__PURE__ */ P(Re, {
493
+ }), /* @__PURE__ */ F(ze, {
494
494
  mode: d,
495
495
  value: n,
496
496
  placeholder: r,
@@ -503,7 +503,7 @@ var Ot = xe((e, t) => ({
503
503
  },
504
504
  options: m || [],
505
505
  style: o,
506
- notFoundContent: c ? /* @__PURE__ */ P(W.Input, {
506
+ notFoundContent: c ? /* @__PURE__ */ F(U.Input, {
507
507
  size: "small",
508
508
  block: !0,
509
509
  active: !0
@@ -513,26 +513,26 @@ var Ot = xe((e, t) => ({
513
513
  disabled: l
514
514
  })]
515
515
  });
516
- }, Qt = ({ children: e, spinFontSize: t = 36, ...n }) => /* @__PURE__ */ P(ze, {
516
+ }, en = ({ children: e, spinFontSize: t = 36, ...n }) => /* @__PURE__ */ F(Be, {
517
517
  ...n,
518
- indicator: /* @__PURE__ */ P(nt, { style: { fontSize: t } }),
518
+ indicator: /* @__PURE__ */ F(rt, { style: { fontSize: t } }),
519
519
  children: e
520
- }), $t = {
520
+ }), tn = {
521
521
  "mod+b": "bold",
522
522
  "mod+i": "italic",
523
523
  "mod+u": "underline",
524
524
  "mod+`": "code"
525
- }, en = ["numbered-list", "bulleted-list"], tn = [
525
+ }, nn = ["numbered-list", "bulleted-list"], rn = [
526
526
  "left",
527
527
  "center",
528
528
  "right",
529
529
  "justify"
530
- ], nn = [
530
+ ], an = [
531
531
  "http:",
532
532
  "https:",
533
533
  "mailto:",
534
534
  "tel:"
535
- ], rn = [
535
+ ], on = [
536
536
  {
537
537
  id: "1",
538
538
  format: "title",
@@ -553,121 +553,161 @@ var Ot = xe((e, t) => ({
553
553
  format: "info",
554
554
  text: "Информационный блок"
555
555
  }
556
- ], an = ({ boldText: e, italicText: t, underlineText: n, numberedListText: r, bulletedListText: i, leftText: a, centerText: o, rightText: s, justifyText: c }) => [
556
+ ], sn = ({ boldText: e, italicText: t, underlineText: n, numberedListText: r, bulletedListText: i, leftText: a, centerText: o, rightText: s, justifyText: c }) => [
557
557
  {
558
558
  id: "1",
559
559
  title: e,
560
560
  format: "bold",
561
- icon: /* @__PURE__ */ P(Ze, {}),
561
+ icon: /* @__PURE__ */ F(Qe, {}),
562
562
  type: "mark"
563
563
  },
564
564
  {
565
565
  id: "2",
566
566
  title: t,
567
567
  format: "italic",
568
- icon: /* @__PURE__ */ P(et, {}),
568
+ icon: /* @__PURE__ */ F(tt, {}),
569
569
  type: "mark"
570
570
  },
571
571
  {
572
572
  id: "3",
573
573
  title: n,
574
574
  format: "underline",
575
- icon: /* @__PURE__ */ P(ot, {}),
575
+ icon: /* @__PURE__ */ F(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__ */ P(it, {}),
582
+ icon: /* @__PURE__ */ F(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__ */ P(st, {}),
589
+ icon: /* @__PURE__ */ F(lt, {}),
590
590
  type: "list"
591
591
  },
592
592
  {
593
593
  id: "6",
594
594
  title: a,
595
595
  format: "left",
596
- icon: /* @__PURE__ */ P(Ye, {}),
596
+ icon: /* @__PURE__ */ F(Xe, {}),
597
597
  type: "align"
598
598
  },
599
599
  {
600
600
  id: "7",
601
601
  title: o,
602
602
  format: "center",
603
- icon: /* @__PURE__ */ P(Je, {}),
603
+ icon: /* @__PURE__ */ F(Ye, {}),
604
604
  type: "align"
605
605
  },
606
606
  {
607
607
  id: "8",
608
608
  title: s,
609
609
  format: "right",
610
- icon: /* @__PURE__ */ P(Xe, {}),
610
+ icon: /* @__PURE__ */ F(Ze, {}),
611
611
  type: "align"
612
612
  },
613
613
  {
614
614
  id: "9",
615
615
  title: c,
616
616
  format: "justify",
617
- icon: /* @__PURE__ */ P(rt, {}),
617
+ icon: /* @__PURE__ */ F(it, {}),
618
618
  type: "align"
619
619
  }
620
- ], on = (e, t, n = "type") => {
620
+ ], cn = (e, t, n = "type") => {
621
621
  let { selection: r } = e;
622
622
  if (!r) return "default";
623
- let [i] = Array.from(Y.nodes(e, {
624
- at: Y.unhangRange(e, r),
625
- match: (e) => !Y.isEditor(e) && gt.isElement(e) && e[n] === t
623
+ let [i] = Array.from(J.nodes(e, {
624
+ at: J.unhangRange(e, r),
625
+ match: (e) => !J.isEditor(e) && vt.isElement(e) && e[n] === t
626
626
  }));
627
627
  return i ? "primary" : "default";
628
- }, sn = (e, t) => {
629
- let n = Y.marks(e);
630
- return n && n[t] === !0 ? "primary" : "default";
631
- }, cn = (e, t) => {
632
- sn(e, t) === "primary" ? Y.removeMark(e, t) : Y.addMark(e, t, !0);
633
628
  }, ln = (e, t) => {
634
- let n = on(e, t, tn.includes(t) ? "align" : "type") === "primary", r = en.includes(t);
635
- X.unwrapNodes(e, {
636
- match: (e) => !Y.isEditor(e) && gt.isElement(e) && en.includes(e.type) && !tn.includes(t),
629
+ let n = J.marks(e);
630
+ return n && n[t] === !0 ? "primary" : "default";
631
+ }, un = (e, t) => {
632
+ ln(e, t) === "primary" ? J.removeMark(e, t) : J.addMark(e, t, !0);
633
+ }, dn = (e, t) => {
634
+ let n = cn(e, t, rn.includes(t) ? "align" : "type") === "primary", r = nn.includes(t);
635
+ Y.unwrapNodes(e, {
636
+ match: (e) => !J.isEditor(e) && vt.isElement(e) && nn.includes(e.type) && !rn.includes(t),
637
637
  split: !0
638
638
  });
639
639
  let i;
640
- if (i = tn.includes(t) ? { align: n ? void 0 : t } : { type: n ? "paragraph" : r ? "list-item" : t }, X.setNodes(e, i), !n && r) {
640
+ if (i = rn.includes(t) ? { align: n ? void 0 : t } : { type: n ? "paragraph" : r ? "list-item" : t }, Y.setNodes(e, i), !n && r) {
641
641
  let n = {
642
642
  type: t,
643
643
  children: []
644
644
  };
645
- X.wrapNodes(e, n);
645
+ Y.wrapNodes(e, n);
646
646
  }
647
- }, un = (e) => {
648
- let [t] = Y.nodes(e, { match: (e) => !Y.isEditor(e) && gt.isElement(e) && e.type === "link" });
647
+ }, fn = (e) => {
648
+ let [t] = J.nodes(e, { match: (e) => !J.isEditor(e) && vt.isElement(e) && e.type === "link" });
649
649
  return !!t;
650
- }, dn = (e) => {
651
- X.unwrapNodes(e, { match: (e) => !Y.isEditor(e) && gt.isElement(e) && e.type === "link" });
652
- }, fn = (e, t) => {
653
- e.selection && pn(e, t);
654
- }, pn = (e, t) => {
655
- un(e) && dn(e);
656
- let { selection: n } = e, r = n && _t.isCollapsed(n), i = {
650
+ }, pn = (e) => {
651
+ Y.unwrapNodes(e, { match: (e) => !J.isEditor(e) && vt.isElement(e) && e.type === "link" });
652
+ }, mn = (e, t) => {
653
+ e.selection && hn(e, t);
654
+ }, hn = (e, t) => {
655
+ fn(e) && pn(e);
656
+ let { selection: n } = e, r = n && yt.isCollapsed(n), i = {
657
657
  type: "link",
658
658
  href: t,
659
659
  children: r ? [{ text: t }] : []
660
660
  };
661
- r ? X.insertNodes(e, i) : (X.wrapNodes(e, i, { split: !0 }), X.collapse(e, { edge: "end" }));
662
- }, mn = (e) => {
661
+ r ? Y.insertNodes(e, i) : (Y.wrapNodes(e, i, { split: !0 }), Y.collapse(e, { edge: "end" }));
662
+ }, gn = (e, t, n) => {
663
+ let r = {
664
+ type: "image",
665
+ url: t,
666
+ pictureData: n,
667
+ children: [{ text: "" }]
668
+ };
669
+ Y.insertNodes(e, r), Y.insertNodes(e, {
670
+ type: "paragraph",
671
+ children: [{ text: "" }]
672
+ });
673
+ }, _n = (e) => {
674
+ if (!e || typeof e != "string") return !1;
675
+ try {
676
+ let t = new URL(e).pathname.split(".").pop()?.toLowerCase();
677
+ return !!t && [
678
+ "jpg",
679
+ "jpeg",
680
+ "png",
681
+ "gif",
682
+ "webp",
683
+ "avif",
684
+ "svg"
685
+ ].includes(t);
686
+ } catch {
687
+ return !1;
688
+ }
689
+ }, vn = (e) => {
690
+ let { insertData: t, isVoid: n } = e;
691
+ return e.isVoid = (e) => e.type === "image" ? !0 : n(e), e.insertData = (n) => {
692
+ let r = n.getData("text/plain"), { files: i } = n;
693
+ if (i && i.length > 0) for (let t of i) {
694
+ let n = new FileReader(), [r] = t.type.split("/");
695
+ r === "image" && (n.addEventListener("load", () => {
696
+ let t = n.result;
697
+ gn(e, t);
698
+ }), n.readAsDataURL(t));
699
+ }
700
+ else _n(r) ? gn(e, r) : t(n);
701
+ }, e;
702
+ }, yn = (e) => {
663
703
  let { insertData: t, insertText: n, isInline: r } = e;
664
704
  return e.isInline = (e) => ["link"].includes(e.type) || r(e), e.insertText = (t) => {
665
- t && O(t) ? pn(e, t) : n(t);
705
+ t && k(t) ? hn(e, t) : n(t);
666
706
  }, e.insertData = (n) => {
667
707
  let r = n.getData("text/plain");
668
- r && O(r) ? pn(e, r) : t(n);
708
+ r && k(r) ? hn(e, r) : t(n);
669
709
  }, e;
670
- }, hn = (e) => {
710
+ }, Q = (e) => {
671
711
  let t = /["'&<>]/, n = "" + e, r = t.exec(n);
672
712
  if (!r) return n;
673
713
  let i, a = "", o, s = 0;
@@ -693,12 +733,12 @@ var Ot = xe((e, t) => ({
693
733
  s !== o && (a += n.substring(s, o)), s = o + 1, a += i;
694
734
  }
695
735
  return s === o ? a : a + n.substring(s, o);
696
- }, gn = (e) => {
697
- if (vt.isText(e)) {
698
- let t = hn(e.text);
736
+ }, bn = (e) => {
737
+ if (bt.isText(e)) {
738
+ let t = Q(e.text);
699
739
  return e.bold && (t = `<strong class="content-strong">${t}</strong>`), e.italic && (t = `<em class="content-italic">${t}</em>`), e.underline && (t = `<u class="content-underline">${t}</u>`), t;
700
740
  }
701
- let t = e.children.map((e) => gn(e)).join(""), n = e.align ? `text-align: ${e.align}` : "";
741
+ let t = e.children.map((e) => bn(e)).join(""), n = e.align ? `text-align: ${e.align}` : "";
702
742
  switch (e.type) {
703
743
  case "title": return `<h2 class="content-title"${n ? ` style="${n}"` : ""}>${t}</h2>`;
704
744
  case "subtitle": return `<h3 class="content-subtitle"${n ? ` style="${n}"` : ""}>${t}</h3>`;
@@ -708,17 +748,25 @@ var Ot = xe((e, t) => ({
708
748
  case "bulleted-list": return `<ul class="content-bulleted-list"${n ? ` style="${n}"` : ""}>${t}</ul>`;
709
749
  case "numbered-list": return `<ol class="content-numbered-list"${n ? ` style="${n}"` : ""}>${t}</ol>`;
710
750
  case "list-item": return `<li class="content-list-item" ${n ? ` style="${n}"` : ""}>${t}</li>`;
711
- case "link": return `<a class="content-link" href="${hn(e.href ?? "")}">${t}</a>`;
751
+ case "link": return `<a class="content-link" href="${Q(e.href ?? "")}">${t}</a>`;
752
+ case "image": {
753
+ if (e.pictureData) {
754
+ let t = e.pictureData, n = Q(e.alt ?? ""), r = [];
755
+ return t.mobileImage1xAvif && r.push(`<source srcset="${Q(t.mobileImage1xAvif)} 1x${t.mobileImage2xAvif ? `, ${Q(t.mobileImage2xAvif)} 2x` : ""}" media="(max-width: 450px)" type="image/avif" />`), t.mobileImage1xWebp && r.push(`<source srcset="${Q(t.mobileImage1xWebp)} 1x${t.mobileImage2xWebp ? `, ${Q(t.mobileImage2xWebp)} 2x` : ""}" media="(max-width: 450px)" type="image/webp" />`), t.mobileImage1x && r.push(`<source srcset="${Q(t.mobileImage1x)} 1x${t.mobileImage2x ? `, ${Q(t.mobileImage2x)} 2x` : ""}" media="(max-width: 450px)" />`), t.image1xAvif && r.push(`<source srcset="${Q(t.image1xAvif)} 1x${t.image2xAvif ? `, ${Q(t.image2xAvif)} 2x` : ""}" type="image/avif" />`), t.image1xWebp && r.push(`<source srcset="${Q(t.image1xWebp)} 1x${t.image2xWebp ? `, ${Q(t.image2xWebp)} 2x` : ""}" type="image/webp" />`), t.image1x && r.push(`<source srcset="${Q(t.image1x)} 1x${t.image2x ? `, ${Q(t.image2x)} 2x` : ""}" />`), `<picture class="content-image">${r.join("")}<img class="content-image" src="${Q(t.image1x ?? "")}" alt="${n}" loading="lazy" /></picture>`;
756
+ }
757
+ let t = Q(e.alt ?? "");
758
+ return `<img class="content-image" src="${Q(e.url ?? "")}" alt="${t}" />`;
759
+ }
712
760
  default: return t;
713
761
  }
714
- }, _n = (e) => {
762
+ }, xn = (e) => {
715
763
  let t = [{
716
764
  type: "paragraph",
717
765
  children: [{ text: "" }]
718
766
  }];
719
767
  if (!e) return t;
720
768
  if (typeof e == "string") try {
721
- return _n(JSON.parse(e));
769
+ return xn(JSON.parse(e));
722
770
  } catch {
723
771
  return t;
724
772
  }
@@ -731,111 +779,164 @@ var Ot = xe((e, t) => ({
731
779
  if ("type" in e && "children" in e && Array.isArray(e.children)) return [e];
732
780
  }
733
781
  return t;
734
- }, vn = () => /* @__PURE__ */ P("span", {
782
+ }, Sn = () => /* @__PURE__ */ F("span", {
735
783
  contentEditable: !1,
736
784
  style: { fontSize: 0 },
737
785
  children: String.fromCodePoint(160)
738
- }), yn = ({ attributes: e, children: t, element: n }) => {
739
- let r = St(), { token: { colorLink: i, colorLinkHover: a } } = q.useToken(), o = z(() => {
786
+ }), Cn = ({ attributes: e, children: t, element: n }) => {
787
+ let r = wt(), { token: { colorLink: i, colorLinkHover: a } } = K.useToken(), o = z(() => {
740
788
  let e = null;
741
789
  try {
742
790
  e = new URL(n.href);
743
791
  } catch (e) {
744
792
  console.log(e);
745
793
  }
746
- return e && nn.includes(e.protocol) ? e.href : "about:blank";
794
+ return e && an.includes(e.protocol) ? e.href : "about:blank";
747
795
  }, [n.href]);
748
- return /* @__PURE__ */ P(Le, {
796
+ return /* @__PURE__ */ F(Re, {
749
797
  title: "URL",
750
798
  content: o,
751
- children: /* @__PURE__ */ F("a", {
799
+ children: /* @__PURE__ */ I("a", {
752
800
  ...e,
753
801
  href: o,
754
802
  style: { color: r ? a : i },
755
803
  children: [
756
- /* @__PURE__ */ P(vn, {}),
804
+ /* @__PURE__ */ F(Sn, {}),
757
805
  t,
758
- /* @__PURE__ */ P(vn, {})
806
+ /* @__PURE__ */ F(Sn, {})
759
807
  ]
760
808
  })
761
809
  });
762
- }, bn = ({ attributes: e, children: t, element: n }) => {
810
+ }, wn = ({ attributes: e, children: t, element: n }) => {
763
811
  let r = { textAlign: n.align };
764
812
  switch (n.type) {
765
- case "bulleted-list": return /* @__PURE__ */ P("ul", {
813
+ case "bulleted-list": return /* @__PURE__ */ F("ul", {
766
814
  className: "content-bulleted-list",
767
815
  style: r,
768
816
  ...e,
769
817
  children: t
770
818
  });
771
- case "title": return /* @__PURE__ */ P("h2", {
819
+ case "title": return /* @__PURE__ */ F("h2", {
772
820
  className: "content-title",
773
821
  style: r,
774
822
  ...e,
775
823
  children: t
776
824
  });
777
- case "subtitle": return /* @__PURE__ */ P("h3", {
825
+ case "subtitle": return /* @__PURE__ */ F("h3", {
778
826
  className: "content-subtitle",
779
827
  style: r,
780
828
  ...e,
781
829
  children: t
782
830
  });
783
- case "list-item": return /* @__PURE__ */ P("li", {
831
+ case "list-item": return /* @__PURE__ */ F("li", {
784
832
  style: r,
785
833
  ...e,
786
834
  children: t
787
835
  });
788
- case "numbered-list": return /* @__PURE__ */ P("ol", {
836
+ case "numbered-list": return /* @__PURE__ */ F("ol", {
789
837
  className: "content-numbered-list",
790
838
  style: r,
791
839
  ...e,
792
840
  children: t
793
841
  });
794
- case "note": return /* @__PURE__ */ P("p", {
842
+ case "note": return /* @__PURE__ */ F("p", {
795
843
  className: "content-note",
796
844
  style: r,
797
845
  ...e,
798
846
  children: t
799
847
  });
800
- case "info": return /* @__PURE__ */ P("p", {
848
+ case "info": return /* @__PURE__ */ F("p", {
801
849
  className: "content-info",
802
850
  style: r,
803
851
  ...e,
804
852
  children: t
805
853
  });
806
- case "link": return /* @__PURE__ */ P(yn, {
854
+ case "link": return /* @__PURE__ */ F(Cn, {
807
855
  attributes: e,
808
856
  children: t,
809
857
  element: n
810
858
  });
811
- default: return /* @__PURE__ */ P("p", {
859
+ case "image":
860
+ if (n.pictureData) {
861
+ let r = n.pictureData;
862
+ return /* @__PURE__ */ I("div", {
863
+ ...e,
864
+ contentEditable: !1,
865
+ children: [/* @__PURE__ */ I("picture", {
866
+ className: "content-image",
867
+ children: [
868
+ r.mobileImage1xAvif && /* @__PURE__ */ F("source", {
869
+ srcSet: `${r.mobileImage1xAvif} 1x${r.mobileImage2xAvif ? `, ${r.mobileImage2xAvif} 2x` : ""}`,
870
+ media: "(max-width: 450px)",
871
+ type: "image/avif"
872
+ }),
873
+ r.mobileImage1xWebp && /* @__PURE__ */ F("source", {
874
+ srcSet: `${r.mobileImage1xWebp} 1x${r.mobileImage2xWebp ? `, ${r.mobileImage2xWebp} 2x` : ""}`,
875
+ media: "(max-width: 450px)",
876
+ type: "image/webp"
877
+ }),
878
+ r.mobileImage1x && /* @__PURE__ */ F("source", {
879
+ srcSet: `${r.mobileImage1x} 1x${r.mobileImage2x ? `, ${r.mobileImage2x} 2x` : ""}`,
880
+ media: "(max-width: 450px)"
881
+ }),
882
+ r.image1xAvif && /* @__PURE__ */ F("source", {
883
+ srcSet: `${r.image1xAvif} 1x${r.image2xAvif ? `, ${r.image2xAvif} 2x` : ""}`,
884
+ type: "image/avif"
885
+ }),
886
+ r.image1xWebp && /* @__PURE__ */ F("source", {
887
+ srcSet: `${r.image1xWebp} 1x${r.image2xWebp ? `, ${r.image2xWebp} 2x` : ""}`,
888
+ type: "image/webp"
889
+ }),
890
+ r.image1x && /* @__PURE__ */ F("source", { srcSet: `${r.image1x} 1x${r.image2x ? `, ${r.image2x} 2x` : ""}` }),
891
+ /* @__PURE__ */ F("img", {
892
+ className: "content-image",
893
+ src: r.image1x,
894
+ alt: n.alt ?? "",
895
+ loading: "lazy",
896
+ style: { maxWidth: "100%" }
897
+ })
898
+ ]
899
+ }), t]
900
+ });
901
+ }
902
+ return /* @__PURE__ */ I("div", {
903
+ ...e,
904
+ contentEditable: !1,
905
+ children: [/* @__PURE__ */ F("img", {
906
+ className: "content-image",
907
+ src: n.url,
908
+ alt: n.alt ?? "",
909
+ style: { maxWidth: "100%" }
910
+ }), t]
911
+ });
912
+ default: return /* @__PURE__ */ F("p", {
812
913
  style: r,
813
914
  ...e,
814
915
  children: t
815
916
  });
816
917
  }
817
- }, xn = ({ attributes: e, children: t, leaf: n }) => (n.bold && (t = /* @__PURE__ */ P("strong", { children: t })), n.italic && (t = /* @__PURE__ */ P("em", { children: t })), n.underline && (t = /* @__PURE__ */ P("u", { children: t })), /* @__PURE__ */ P("span", {
918
+ }, Tn = ({ attributes: e, children: t, leaf: n }) => (n.bold && (t = /* @__PURE__ */ F("strong", { children: t })), n.italic && (t = /* @__PURE__ */ F("em", { children: t })), n.underline && (t = /* @__PURE__ */ F("u", { children: t })), /* @__PURE__ */ F("span", {
818
919
  ...e,
819
920
  children: t
820
- })), Sn = ({ tooltipText: e, linkErrorText: t, onErrorMessage: n }) => {
821
- let [r, i] = B(!1), [a, o] = B(""), s = Ct(), c = () => {
921
+ })), En = ({ tooltipText: e, linkErrorText: t, onErrorMessage: n }) => {
922
+ let [r, i] = B(!1), [a, o] = B(""), s = Tt(), c = () => {
822
923
  i((e) => !e);
823
924
  };
824
- return /* @__PURE__ */ F(Ce, { children: [/* @__PURE__ */ P(G, {
925
+ return /* @__PURE__ */ I(Se, { children: [/* @__PURE__ */ F(W, {
825
926
  title: e,
826
- children: /* @__PURE__ */ P(V, {
827
- icon: /* @__PURE__ */ P(tt, {}),
927
+ children: /* @__PURE__ */ F(V, {
928
+ icon: /* @__PURE__ */ F(nt, {}),
828
929
  onClick: c
829
930
  })
830
- }), /* @__PURE__ */ P(Ie, {
931
+ }), /* @__PURE__ */ F(Le, {
831
932
  title: e,
832
933
  open: r,
833
934
  destroyOnHidden: !0,
834
935
  onOk: () => {
835
936
  let e = "";
836
- if (Dt.isEmail(a)) e += `mailto:${a}`;
837
- else if (Dt.isMobilePhone(a)) e += `tel:${a}`;
838
- else if (Dt.isURL(a, {
937
+ if (kt.isEmail(a)) e += `mailto:${a}`;
938
+ else if (kt.isMobilePhone(a)) e += `tel:${a}`;
939
+ else if (kt.isURL(a, {
839
940
  protocols: ["http", "https"],
840
941
  require_protocol: !0
841
942
  })) e += a;
@@ -843,12 +944,12 @@ var Ot = xe((e, t) => ({
843
944
  n(t);
844
945
  return;
845
946
  }
846
- fn(s, e), o(""), c();
947
+ mn(s, e), o(""), c();
847
948
  },
848
949
  onCancel: () => {
849
950
  c(), o("");
850
951
  },
851
- children: /* @__PURE__ */ P(U, {
952
+ children: /* @__PURE__ */ F(Fe, {
852
953
  placeholder: "https://site.ru | test@mail.ru | +79881234567",
853
954
  value: a,
854
955
  onChange: (e) => {
@@ -856,19 +957,19 @@ var Ot = xe((e, t) => ({
856
957
  }
857
958
  })
858
959
  })] });
859
- }, Cn = ({ tooltipText: e }) => {
860
- let t = Ct();
861
- return /* @__PURE__ */ P(G, {
960
+ }, Dn = ({ tooltipText: e }) => {
961
+ let t = Tt();
962
+ return /* @__PURE__ */ F(W, {
862
963
  title: e,
863
- children: /* @__PURE__ */ P(V, {
864
- icon: /* @__PURE__ */ P($e, {}),
964
+ children: /* @__PURE__ */ F(V, {
965
+ icon: /* @__PURE__ */ F(et, {}),
865
966
  onClick: () => {
866
- un(t) && dn(t);
967
+ fn(t) && pn(t);
867
968
  }
868
969
  })
869
970
  });
870
- }, wn = ({ boldText: e, italicText: t, underlineText: n, numberedListText: r, bulletedListText: i, leftText: a, centerText: o, rightText: s, justifyText: c, linkErrorText: l, linkButtonTooltipText: u, removeLinkTooltipText: d, onErrorMessage: f }) => {
871
- let p = Ct(), m = an({
971
+ }, On = ({ boldText: e, italicText: t, underlineText: n, numberedListText: r, bulletedListText: i, leftText: a, centerText: o, rightText: s, justifyText: c, linkErrorText: l, linkButtonTooltipText: u, removeLinkTooltipText: d, imageButtonTooltipText: f, onErrorMessage: p, onUploadImage: m }) => {
972
+ let h = Tt(), g = sn({
872
973
  boldText: e,
873
974
  italicText: t,
874
975
  underlineText: n,
@@ -878,79 +979,99 @@ var Ot = xe((e, t) => ({
878
979
  centerText: o,
879
980
  rightText: s,
880
981
  justifyText: c
881
- });
882
- return /* @__PURE__ */ F(H, {
982
+ }), _ = async (e) => {
983
+ if (!(!m || !e)) try {
984
+ let t = await m(e);
985
+ t && gn(h, t.url, t.pictureData);
986
+ } catch (e) {
987
+ p(e instanceof Error ? e.message : "Image upload failed");
988
+ }
989
+ };
990
+ return /* @__PURE__ */ I(H, {
883
991
  gap: "small",
884
992
  wrap: !0,
885
- children: [/* @__PURE__ */ P(H, {
993
+ children: [/* @__PURE__ */ F(H, {
886
994
  gap: "small",
887
995
  wrap: !0,
888
- children: rn.map((e) => /* @__PURE__ */ P(V, {
889
- type: on(p, e.format, "type"),
890
- onClick: () => ln(p, e.format),
996
+ children: on.map((e) => /* @__PURE__ */ F(V, {
997
+ type: cn(h, e.format, "type"),
998
+ onClick: () => dn(h, e.format),
891
999
  children: e.text
892
1000
  }, e.id))
893
- }), /* @__PURE__ */ F(H, {
1001
+ }), /* @__PURE__ */ I(H, {
894
1002
  gap: "small",
895
1003
  wrap: !0,
896
1004
  children: [
897
- m.map((e) => {
1005
+ g.map((e) => {
898
1006
  let t, n;
899
- return e.type === "mark" ? (t = sn(p, e.format), n = () => cn(p, e.format)) : (t = on(p, e.format, e.type === "list" ? "type" : "align"), n = () => ln(p, e.format)), /* @__PURE__ */ P(G, {
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__ */ F(W, {
900
1008
  title: e.title,
901
- children: /* @__PURE__ */ P(V, {
1009
+ children: /* @__PURE__ */ F(V, {
902
1010
  type: t,
903
1011
  icon: e.icon,
904
1012
  onClick: n
905
1013
  })
906
1014
  }, e.id);
907
1015
  }),
908
- /* @__PURE__ */ P(Sn, {
1016
+ m && /* @__PURE__ */ F(W, {
1017
+ title: f ?? "Image",
1018
+ children: /* @__PURE__ */ F(V, {
1019
+ icon: /* @__PURE__ */ F(ot, {}),
1020
+ onClick: () => {
1021
+ let e = document.createElement("input");
1022
+ e.type = "file", e.accept = "image/png, image/jpeg, image/webp, image/avif", e.style.display = "none", e.addEventListener("change", () => {
1023
+ let t = e.files?.[0];
1024
+ t && _(t);
1025
+ }), document.body.appendChild(e), e.click(), document.body.removeChild(e);
1026
+ }
1027
+ })
1028
+ }),
1029
+ /* @__PURE__ */ F(En, {
909
1030
  tooltipText: u,
910
1031
  linkErrorText: l,
911
- onErrorMessage: f
1032
+ onErrorMessage: p
912
1033
  }),
913
- /* @__PURE__ */ P(Cn, { tooltipText: d })
1034
+ /* @__PURE__ */ F(Dn, { tooltipText: d })
914
1035
  ]
915
1036
  })]
916
1037
  });
917
- }, Tn = { editable: "_editable_136f6_1" }, $ = [{
1038
+ }, kn = { editable: "_editable_136f6_1" }, $ = [{
918
1039
  type: "paragraph",
919
1040
  children: [{ text: "" }]
920
- }], { useToken: En } = q, Dn = Ee(({ boldText: e, italicText: t, underlineText: n, numberedListText: r, bulletedListText: i, leftText: a, centerText: o, rightText: s, justifyText: c, linkErrorText: l, linkButtonTooltipText: d, removeLinkTooltipText: f, language: p, readOnly: m = !1, onSetContent: h, onSetHtml: g, onErrorMessage: _ }, v) => {
921
- let [y, b] = B($), x = z(() => mn(Et(wt(yt()))), []), { token: S } = En(), [,] = I(() => {
922
- let e = JSON.stringify(y), t = y.map((e) => gn(e)).join("");
923
- h(e, p), g(t, p);
924
- }, u.seconds.seconds1, [y]);
925
- R(v, () => ({
1041
+ }], { useToken: An } = K, jn = Te(({ 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] = B($), C = z(() => vn(yn(Ot(Et(xt())))), []), { token: w } = An(), [,] = L(() => {
1043
+ let e = JSON.stringify(x), t = x.map((e) => bn(e)).join("");
1044
+ g(e, m), _(t, m);
1045
+ }, u.seconds.seconds1, [x]);
1046
+ Oe(b, () => ({
926
1047
  resetData: () => {
927
- b($), x.children = $, X.deselect(x);
1048
+ S($), C.children = $, Y.deselect(C);
928
1049
  },
929
1050
  setValue: (e) => {
930
1051
  try {
931
- let t = _n(JSON.parse(e));
932
- b(t), x.children = t, X.deselect(x), x.selection = null, x.operations = [], setTimeout(() => {
933
- X.select(x, {
934
- anchor: Y.start(x, [0]),
935
- focus: Y.start(x, [0])
1052
+ let t = xn(JSON.parse(e));
1053
+ S(t), C.children = t, Y.deselect(C), C.selection = null, C.operations = [], setTimeout(() => {
1054
+ Y.select(C, {
1055
+ anchor: J.start(C, [0]),
1056
+ focus: J.start(C, [0])
936
1057
  });
937
1058
  }, 0);
938
1059
  } catch (e) {
939
- console.error("Error parsing slate value:", e), b($), x.children = $, X.deselect(x);
1060
+ console.error("Error parsing slate value:", e), S($), C.children = $, Y.deselect(C);
940
1061
  }
941
1062
  }
942
1063
  }));
943
- let C = Oe((e) => /* @__PURE__ */ P(bn, { ...e }), []), w = Oe((e) => /* @__PURE__ */ P(xn, { ...e }), []);
944
- return /* @__PURE__ */ P(xt, {
945
- editor: x,
946
- initialValue: y,
1064
+ let T = De((e) => /* @__PURE__ */ F(wn, { ...e }), []), E = De((e) => /* @__PURE__ */ F(Tn, { ...e }), []);
1065
+ return /* @__PURE__ */ F(Ct, {
1066
+ editor: C,
1067
+ initialValue: x,
947
1068
  onChange: (e) => {
948
- b(e);
1069
+ S(e);
949
1070
  },
950
- children: /* @__PURE__ */ F(H, {
1071
+ children: /* @__PURE__ */ I(H, {
951
1072
  gap: "small",
952
1073
  vertical: !0,
953
- children: [!m && /* @__PURE__ */ P(wn, {
1074
+ children: [!h && /* @__PURE__ */ F(On, {
954
1075
  boldText: e,
955
1076
  italicText: t,
956
1077
  underlineText: n,
@@ -963,102 +1084,104 @@ var Ot = xe((e, t) => ({
963
1084
  linkErrorText: l,
964
1085
  linkButtonTooltipText: d,
965
1086
  removeLinkTooltipText: f,
966
- onErrorMessage: _
967
- }), /* @__PURE__ */ P(bt, {
968
- className: Tn.editable,
1087
+ imageButtonTooltipText: p,
1088
+ onErrorMessage: v,
1089
+ onUploadImage: y
1090
+ }), /* @__PURE__ */ F(St, {
1091
+ className: kn.editable,
969
1092
  style: {
970
- padding: S.padding,
971
- border: `1px solid ${S.colorBorder}`,
972
- borderRadius: `${S.borderRadius}px`
1093
+ padding: w.padding,
1094
+ border: `1px solid ${w.colorBorder}`,
1095
+ borderRadius: `${w.borderRadius}px`
973
1096
  },
974
1097
  spellCheck: !0,
975
- readOnly: m,
976
- renderElement: C,
977
- renderLeaf: w,
1098
+ readOnly: h,
1099
+ renderElement: T,
1100
+ renderLeaf: E,
978
1101
  onKeyDown: (e) => {
979
- for (let t in $t) if (Tt(t, e)) {
1102
+ for (let t in tn) if (Dt(t, e)) {
980
1103
  e.preventDefault();
981
- let n = $t[t];
982
- cn(x, n);
1104
+ let n = tn[t];
1105
+ un(C, n);
983
1106
  }
984
1107
  }
985
1108
  })]
986
1109
  })
987
1110
  });
988
- }), On = () => /* @__PURE__ */ F("div", {
989
- className: j.tableHeadSkeleton,
1111
+ }), Mn = () => /* @__PURE__ */ I("div", {
1112
+ className: M.tableHeadSkeleton,
990
1113
  style: { marginBottom: w.OFFSET[1] },
991
- children: [/* @__PURE__ */ F(H, {
1114
+ children: [/* @__PURE__ */ I(H, {
992
1115
  align: "center",
993
1116
  gap: "middle",
994
1117
  wrap: "wrap",
995
- children: [/* @__PURE__ */ P("div", {
996
- className: j.skeletonHead1,
997
- children: /* @__PURE__ */ P(W.Button, {
1118
+ children: [/* @__PURE__ */ F("div", {
1119
+ className: M.skeletonHead1,
1120
+ children: /* @__PURE__ */ F(U.Button, {
998
1121
  active: !0,
999
1122
  block: !0
1000
1123
  })
1001
- }), /* @__PURE__ */ P("div", {
1002
- className: j.skeletonHead2,
1003
- children: /* @__PURE__ */ P(W.Button, {
1124
+ }), /* @__PURE__ */ F("div", {
1125
+ className: M.skeletonHead2,
1126
+ children: /* @__PURE__ */ F(U.Button, {
1004
1127
  active: !0,
1005
1128
  block: !0
1006
1129
  })
1007
1130
  })]
1008
- }), /* @__PURE__ */ F(H, {
1009
- className: J(j.buttonsContainer, j.skeletonButtonsContainer),
1131
+ }), /* @__PURE__ */ I(H, {
1132
+ className: q(M.buttonsContainer, M.skeletonButtonsContainer),
1010
1133
  gap: "small",
1011
- children: [/* @__PURE__ */ P("div", {
1012
- className: j.skeletonHead3,
1013
- children: /* @__PURE__ */ P(W.Button, {
1134
+ children: [/* @__PURE__ */ F("div", {
1135
+ className: M.skeletonHead3,
1136
+ children: /* @__PURE__ */ F(U.Button, {
1014
1137
  active: !0,
1015
1138
  block: !0
1016
1139
  })
1017
- }), /* @__PURE__ */ P("div", {
1018
- className: j.skeletonHead4,
1019
- children: /* @__PURE__ */ P(W.Button, {
1140
+ }), /* @__PURE__ */ F("div", {
1141
+ className: M.skeletonHead4,
1142
+ children: /* @__PURE__ */ F(U.Button, {
1020
1143
  active: !0,
1021
1144
  block: !0
1022
1145
  })
1023
1146
  })]
1024
1147
  })]
1025
- }), kn = De(() => import("./table-head-DEAS-Ubv.js").then(({ TableHead: e }) => ({ default: e }))), An = De(() => import("./base-table-C__iDbuG.js").then(({ BaseTable: e }) => ({ default: e }))), jn = ({ 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: ee, closeModalContentText: T, closeModalOkText: te, closeModalCancelText: E, drawerSize: ne = "default", modalTitle: D, scrollWidth: re, isCanRead: ie, isCanCreate: ae, isCanUpdate: O, isCanDelete: oe, isExpandable: se, isHiddenCreate: ce, isHiddenUpdate: le, isFixedActions: ue, configProviderProps: de, onGetError: fe, onChangeOrder: pe, onRefetch: k, onSetPaginate: me, onDelete: A, onShowSizeChange: he, onSuccessMessage: j, onErrorMessage: ge }) => {
1026
- let [_e, M] = B(!1), [ve, ye] = B(!1), [be, xe] = B(!1), [Se, N] = B(_), [Ce, I] = B(""), Ee = (e) => {
1027
- I(e), M(!0), N(_);
1028
- }, De = (e) => {
1029
- I(e);
1030
- }, Oe = () => {
1031
- M(!0), N(v), I("");
1032
- }, L = () => {
1033
- M(!0), N(y);
1148
+ }), Nn = Ee(() => import("./table-head-CJK4H4s8.js").then(({ TableHead: e }) => ({ default: e }))), Pn = Ee(() => import("./base-table-C__iDbuG.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: k, isCanDelete: ae, isExpandable: oe, isHiddenCreate: se, isHiddenUpdate: ce, isFixedActions: le, configProviderProps: ue, onGetError: de, onChangeOrder: fe, onRefetch: A, onSetPaginate: pe, onDelete: j, onShowSizeChange: me, onSuccessMessage: M, onErrorMessage: he }) => {
1149
+ let [ge, N] = B(!1), [_e, ve] = B(!1), [ye, be] = B(!1), [xe, P] = B(_), [Se, L] = B(""), Te = (e) => {
1150
+ L(e), N(!0), P(_);
1151
+ }, Ee = (e) => {
1152
+ L(e);
1153
+ }, De = () => {
1154
+ N(!0), P(v), L("");
1034
1155
  }, R = () => {
1035
- ye((e) => !e);
1156
+ N(!0), P(y);
1157
+ }, Oe = () => {
1158
+ ve((e) => !e);
1036
1159
  }, z = () => {
1037
- M(!1);
1160
+ N(!1);
1038
1161
  }, V = () => {
1039
- if (Se === _) {
1162
+ if (xe === _) {
1040
1163
  z();
1041
1164
  return;
1042
1165
  }
1043
- xe((e) => !e);
1166
+ be((e) => !e);
1044
1167
  }, ke = async () => {
1045
1168
  try {
1046
- await A?.(Ce), j(x);
1169
+ await j?.(Se), M(x);
1047
1170
  } catch (e) {
1048
- fe({ error: e }), ge(C);
1171
+ de({ error: e }), he(C);
1049
1172
  }
1050
- ye(!1);
1173
+ ve(!1);
1051
1174
  }, je = (e) => {
1052
- e.current && (me(e.current, e.pageSize ?? 10), k());
1175
+ e.current && (pe(e.current, e.pageSize ?? 10), A());
1053
1176
  }, H = (e) => {
1054
- N(e);
1177
+ P(e);
1055
1178
  };
1056
- return /* @__PURE__ */ F(Ae, {
1057
- ...de,
1179
+ return /* @__PURE__ */ I(Ae, {
1180
+ ...ue,
1058
1181
  children: [
1059
- /* @__PURE__ */ P(we, {
1060
- fallback: /* @__PURE__ */ P(On, {}),
1061
- children: /* @__PURE__ */ P(kn, {
1182
+ /* @__PURE__ */ F(Ce, {
1183
+ fallback: /* @__PURE__ */ F(Mn, {}),
1184
+ children: /* @__PURE__ */ F(Nn, {
1062
1185
  sortTooltipText: t,
1063
1186
  updateDataText: n,
1064
1187
  refreshText: r,
@@ -1068,19 +1191,19 @@ var Ot = xe((e, t) => ({
1068
1191
  orderOptions: f,
1069
1192
  searchProps: p,
1070
1193
  createButtonTooltip: g,
1071
- isCanCreate: ae,
1072
- isHiddenCreate: ce,
1073
- onCreate: Oe,
1074
- onChangeOrder: pe,
1075
- onRefetch: k
1194
+ isCanCreate: ie,
1195
+ isHiddenCreate: se,
1196
+ onCreate: De,
1197
+ onChangeOrder: fe,
1198
+ onRefetch: A
1076
1199
  })
1077
1200
  }),
1078
- /* @__PURE__ */ P(Kt, { children: /* @__PURE__ */ P(we, {
1079
- fallback: /* @__PURE__ */ P("div", {
1201
+ /* @__PURE__ */ F(Jt, { children: /* @__PURE__ */ F(Ce, {
1202
+ fallback: /* @__PURE__ */ F("div", {
1080
1203
  style: { height: "70vh" },
1081
- children: /* @__PURE__ */ P(W, { active: !0 })
1204
+ children: /* @__PURE__ */ F(U, { active: !0 })
1082
1205
  }),
1083
- children: /* @__PURE__ */ P(An, {
1206
+ children: /* @__PURE__ */ F(Pn, {
1084
1207
  viewText: o,
1085
1208
  actionsText: s,
1086
1209
  editText: c,
@@ -1089,70 +1212,70 @@ var Ot = xe((e, t) => ({
1089
1212
  columns: u,
1090
1213
  serverPagination: m,
1091
1214
  loading: h,
1092
- isHiddenUpdate: le,
1093
- isCanRead: ie,
1094
- isCanUpdate: O,
1095
- isCanDelete: oe,
1096
- isFixedActions: ue,
1097
- scroll: { x: re },
1098
- expandable: se ? { expandedRowRender: (e) => {
1099
- if (Array.isArray(e.list)) return /* @__PURE__ */ P(Fe, {
1215
+ isHiddenUpdate: ce,
1216
+ isCanRead: re,
1217
+ isCanUpdate: k,
1218
+ isCanDelete: ae,
1219
+ isFixedActions: le,
1220
+ scroll: { x: ne },
1221
+ expandable: oe ? { expandedRowRender: (e) => {
1222
+ if (Array.isArray(e.list)) return /* @__PURE__ */ F(Ie, {
1100
1223
  bordered: !0,
1101
1224
  dataSource: e.list,
1102
- renderItem: (e) => /* @__PURE__ */ P(Fe.Item, { children: /* @__PURE__ */ P(K.Text, { children: e.text }) })
1225
+ renderItem: (e) => /* @__PURE__ */ F(Ie.Item, { children: /* @__PURE__ */ F(G.Text, { children: e.text }) })
1103
1226
  });
1104
1227
  } } : void 0,
1105
- onView: Ee,
1106
- onDropdownClick: De,
1107
- onEdit: L,
1108
- onDelete: A ? R : void 0,
1228
+ onView: Te,
1229
+ onDropdownClick: Ee,
1230
+ onEdit: R,
1231
+ onDelete: j ? Oe : void 0,
1109
1232
  onChange: je,
1110
- onShowSizeChange: he
1233
+ onShowSizeChange: me
1111
1234
  })
1112
1235
  }) }),
1113
- /* @__PURE__ */ P(Me, {
1236
+ /* @__PURE__ */ F(Me, {
1114
1237
  title: w,
1115
- open: _e,
1116
- size: ne,
1238
+ open: ge,
1239
+ size: te,
1117
1240
  destroyOnHidden: !0,
1118
1241
  onClose: V,
1119
- children: Te(e, {
1120
- id: Ce,
1121
- action: Se,
1242
+ children: we(e, {
1243
+ id: Se,
1244
+ action: xe,
1122
1245
  onClose: z,
1123
- onRefetch: k,
1246
+ onRefetch: A,
1124
1247
  onChangeActionValue: H
1125
1248
  })
1126
1249
  }),
1127
- /* @__PURE__ */ P(Ie, {
1128
- title: ee,
1129
- open: be,
1130
- okText: te,
1131
- cancelText: E,
1250
+ /* @__PURE__ */ F(Le, {
1251
+ title: T,
1252
+ open: ye,
1253
+ okText: ee,
1254
+ cancelText: D,
1132
1255
  destroyOnHidden: !0,
1133
1256
  onOk: () => {
1134
1257
  z(), V();
1135
1258
  },
1136
1259
  onCancel: V,
1137
- children: T
1260
+ children: E
1138
1261
  }),
1139
- A && /* @__PURE__ */ P(Ie, {
1140
- title: D,
1141
- open: ve,
1262
+ j && /* @__PURE__ */ F(Le, {
1263
+ title: O,
1264
+ open: _e,
1142
1265
  okText: b,
1143
1266
  cancelText: S,
1144
1267
  okButtonProps: { danger: !0 },
1145
1268
  onOk: ke,
1146
- onCancel: R
1269
+ onCancel: Oe
1147
1270
  })
1148
1271
  ]
1149
1272
  });
1150
- }, Mn = ({ originNode: e, file: t }) => {
1151
- let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Ke({ id: t.uid });
1152
- return /* @__PURE__ */ P("div", {
1273
+ }, In = ({ originNode: e, file: t }) => {
1274
+ let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = qe({ id: t.uid });
1275
+ return /* @__PURE__ */ F("div", {
1153
1276
  ref: i,
1154
1277
  style: {
1155
- transform: lt.Translate.toString(a),
1278
+ transform: dt.Translate.toString(a),
1156
1279
  transition: o,
1157
1280
  cursor: "move"
1158
1281
  },
@@ -1161,11 +1284,11 @@ var Ot = xe((e, t) => ({
1161
1284
  ...r,
1162
1285
  children: t.status === "error" && s ? e.props.children : e
1163
1286
  });
1164
- }, Nn = ({ text: e, serverFiles: t, onOrder: n, onChange: r, onUpdateTemp: i, customRequest: a, onSuccessUpload: o, ...s }) => {
1165
- let [c, l] = B([]), u = Ue(He, { activationConstraint: { distance: 10 } });
1166
- L(() => {
1287
+ }, Ln = ({ text: e, serverFiles: t, onOrder: n, onChange: r, onUpdateTemp: i, customRequest: a, onSuccessUpload: o, ...s }) => {
1288
+ let [c, l] = B([]), u = We(Ue, { activationConstraint: { distance: 10 } });
1289
+ R(() => {
1167
1290
  c?.length && n(c.map((e) => e.uid));
1168
- }, [c]), L(() => {
1291
+ }, [c]), R(() => {
1169
1292
  if (!t?.length) {
1170
1293
  l([]), n([]);
1171
1294
  return;
@@ -1182,7 +1305,7 @@ var Ot = xe((e, t) => ({
1182
1305
  l(e), n(r);
1183
1306
  }, [t]);
1184
1307
  let d = ({ active: e, over: t }) => {
1185
- e.id !== t?.id && l((n) => Ge(n, n.findIndex((t) => t.uid === e.id), n.findIndex((e) => e.uid === t?.id)));
1308
+ e.id !== t?.id && l((n) => Ke(n, n.findIndex((t) => t.uid === e.id), n.findIndex((e) => e.uid === t?.id)));
1186
1309
  }, f = (e) => {
1187
1310
  let { fileList: t } = e;
1188
1311
  l(t), r?.(e);
@@ -1195,23 +1318,23 @@ var Ot = xe((e, t) => ({
1195
1318
  uid: c.uid ?? ""
1196
1319
  }), r?.("Ok")) : s?.(u.error), a?.(e, t);
1197
1320
  };
1198
- return /* @__PURE__ */ P(Ve, {
1321
+ return /* @__PURE__ */ F(He, {
1199
1322
  sensors: [u],
1200
1323
  onDragEnd: d,
1201
- children: /* @__PURE__ */ P(We, {
1324
+ children: /* @__PURE__ */ F(Ge, {
1202
1325
  items: c.map((e) => e.uid),
1203
- strategy: qe,
1204
- children: /* @__PURE__ */ P(Be, {
1326
+ strategy: Je,
1327
+ children: /* @__PURE__ */ F(Ve, {
1205
1328
  ...s,
1206
1329
  fileList: c,
1207
- itemRender: (e, t) => /* @__PURE__ */ P(Mn, {
1330
+ itemRender: (e, t) => /* @__PURE__ */ F(In, {
1208
1331
  originNode: e,
1209
1332
  file: t
1210
1333
  }),
1211
1334
  customRequest: p,
1212
1335
  onChange: f,
1213
- children: /* @__PURE__ */ P(V, {
1214
- icon: /* @__PURE__ */ P(ct, {}),
1336
+ children: /* @__PURE__ */ F(V, {
1337
+ icon: /* @__PURE__ */ F(ut, {}),
1215
1338
  children: e
1216
1339
  })
1217
1340
  })
@@ -1219,4 +1342,4 @@ var Ot = xe((e, t) => ({
1219
1342
  });
1220
1343
  };
1221
1344
  //#endregion
1222
- export { jn as AdminTable, Pt as BaseDatePicker, It as BaseDrawerForm, Nn as BaseFileUpload, Lt as BaseImage, Gt as BaseImageUpload, Bt as BaseInput, fe as BaseInputNumber, qt as BaseMaterialMap, Vt as BasePasswordInput, Yt as BaseReadonlyInput, Zt as BaseSearchInput, Qt as BaseSpin, Ht as BaseTextAreaInput, Dn as BaseTextEditor, T as COOKIE, Mt as Container, _ as LOCAL_STORAGE, kt as Languages, Kt as LayoutCard, At as MonthsNumber, A as OpenApiAxios, e as ProviderComposer, w as THEME, u as TIME, ee as VALIDATION_VALUE, b as checkCorrectFileObject, a as checkCorrectImageObject, ue as compareRolesPriority, ge as convertPhoneMask, re as createProfileLabel, ae as createUploadImagesStore, E as deleteCookie, hn as escapeHtml, k as fileToBase64, de as formatPhoneToInternational, oe as formatPhoneToNumber, pe as getCookie, i as getImagePrefix, he as getTokenInCookie, h as getUploadFileUrl, le as getUploadImageUrl, fn as insertLink, on as isBlockActive, un as isLinkActive, sn as isMarkActive, O as isUrl, se as mergeObjectArrays, _n as normalizeSlateData, te as objectArrayToOptions, _e as onFilterSelectOptionsByLabel, ye as prepareFilesToSubmit, ne as prepareImagesToSubmit, t as prepareServerFiles, ce as prepareServerImages, ie as provider, m as responseSchema, S as searchRadioDefaultValue, gn as serializeToHtml, g as serverFileSchema, o as serverImageSchema, l as sessionCookieSchema, D as setCookie, p as sortFilesArrayByReference, ln as toggleBlock, cn as toggleMark, ve as translateContent, y as translateContentToLanguages, r as translateField, M as translateImagesAlt, dn as unwrapLink, f as uploadFilesSchema, v as uploadImageSchema, be as uploadTempSchema, c as useExtraMediumViewPort, n as useFetchTableData, x as useLaptopBigViewPort, C as useLaptopViewPort, s as useMobileViewPort, Ot as useSession, d as useSmallViewPort, me as useTabletViewPort, mn as withInlines, pn as wrapLink };
1345
+ export { Fn as AdminTable, It as BaseDatePicker, Rt as BaseDrawerForm, Ln as BaseFileUpload, zt as BaseImage, qt as BaseImageUpload, Ht as BaseInput, de 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, j as OpenApiAxios, e as ProviderComposer, w as THEME, u as TIME, T as VALIDATION_VALUE, b as checkCorrectFileObject, a as checkCorrectImageObject, le as compareRolesPriority, he as convertPhoneMask, ne as createProfileLabel, ie as createUploadImagesStore, D as deleteCookie, Q as escapeHtml, A as fileToBase64, ue as formatPhoneToInternational, ae as formatPhoneToNumber, fe as getCookie, i as getImagePrefix, me as getTokenInCookie, h as getUploadFileUrl, ce as getUploadImageUrl, gn as insertImage, mn as insertLink, cn as isBlockActive, _n as isImageUrl, fn as isLinkActive, ln as isMarkActive, k as isUrl, oe as mergeObjectArrays, xn as normalizeSlateData, ee as objectArrayToOptions, ge as onFilterSelectOptionsByLabel, ve as prepareFilesToSubmit, te as prepareImagesToSubmit, t as prepareServerFiles, se 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, _e as translateContent, y as translateContentToLanguages, r as translateField, N as translateImagesAlt, pn as unwrapLink, f as uploadFilesSchema, v as uploadImageSchema, ye as uploadTempSchema, c as useExtraMediumViewPort, n as useFetchTableData, x as useLaptopBigViewPort, C as useLaptopViewPort, s as useMobileViewPort, At as useSession, d as useSmallViewPort, pe as useTabletViewPort, vn as withImages, yn as withInlines, hn as wrapLink };