denwa-react-shared 1.0.92 → 1.0.94

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.
Files changed (101) hide show
  1. package/dist/base-table-CEtpTXnb.cjs +1 -0
  2. package/dist/base-table-C__iDbuG.js +90 -0
  3. package/dist/denwa-react-shared.cjs.js +1 -1
  4. package/dist/denwa-react-shared.css +2 -1
  5. package/dist/denwa-react-shared.es.js +1221 -85
  6. package/dist/{shared → src/shared}/lib/index.d.ts +1 -0
  7. package/dist/src/shared/lib/openapi-axios/const/defaultOptions.d.ts +5 -0
  8. package/dist/src/shared/lib/openapi-axios/const/methods.d.ts +18 -0
  9. package/dist/src/shared/lib/openapi-axios/index.d.ts +80 -0
  10. package/dist/src/shared/lib/openapi-axios/interpolate-params.d.ts +11 -0
  11. package/dist/src/shared/lib/openapi-axios/types/options.d.ts +27 -0
  12. package/dist/src/shared/lib/openapi-axios/types/requestParameters.d.ts +22 -0
  13. package/dist/src/shared/lib/openapi-axios/types/response.d.ts +100 -0
  14. package/dist/src/shared/lib/openapi-axios/types/schemeTypes.d.ts +69 -0
  15. package/dist/src/shared/lib/openapi-axios/types/serializer.d.ts +21 -0
  16. package/dist/src/shared/lib/openapi-axios/types/utils.d.ts +44 -0
  17. package/dist/src/shared/lib/openapi-axios/utils/querySerializer.d.ts +3 -0
  18. package/dist/src/shared/lib/openapi-axios/utils/response-converters/convertToAll.d.ts +5 -0
  19. package/dist/src/shared/lib/openapi-axios/utils/response-converters/convertToAxios.d.ts +5 -0
  20. package/dist/src/shared/lib/openapi-axios/utils/response-converters/convertToFetch.d.ts +5 -0
  21. package/dist/src/shared/schemas/index.d.ts +77 -0
  22. package/dist/{shared → src/shared}/ui/text-editor/data.d.ts +5 -0
  23. package/dist/{shared → src/shared}/ui/text-editor/types.d.ts +1 -1
  24. package/dist/styles.module-B6UFYCUZ.cjs +1 -0
  25. package/dist/styles.module-DqoHspR8.js +775 -0
  26. package/dist/table-head-DEAS-Ubv.js +123 -0
  27. package/dist/table-head-DbVlLwY6.cjs +1 -0
  28. package/package.json +52 -38
  29. package/dist/denwa-react-shared.umd.js +0 -544
  30. package/dist/index-CAPXc4uD.cjs +0 -96
  31. package/dist/index-CPVoBeU2.cjs +0 -449
  32. package/dist/index-CiZAToSX.js +0 -65957
  33. package/dist/index-zOU-eltN.js +0 -9982
  34. package/dist/shared/schemas/index.d.ts +0 -283
  35. package/dist/table-head-Cyx9Thtr.cjs +0 -1
  36. package/dist/table-head-DtR-RiBm.js +0 -669
  37. /package/dist/{entities → src/entities}/index.d.ts +0 -0
  38. /package/dist/{entities → src/entities}/session/index.d.ts +0 -0
  39. /package/dist/{entities → src/entities}/session/model/index.d.ts +0 -0
  40. /package/dist/{entities → src/entities}/session/model/session.store.d.ts +0 -0
  41. /package/dist/{entities → src/entities}/session/model/types.d.ts +0 -0
  42. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  43. /package/dist/{shared → src/shared}/constants/index.d.ts +0 -0
  44. /package/dist/{shared → src/shared}/constants/storage.d.ts +0 -0
  45. /package/dist/{shared → src/shared}/constants/theme.d.ts +0 -0
  46. /package/dist/{shared → src/shared}/constants/variables.d.ts +0 -0
  47. /package/dist/{shared → src/shared}/lib/files.d.ts +0 -0
  48. /package/dist/{shared → src/shared}/lib/form.d.ts +0 -0
  49. /package/dist/{shared → src/shared}/lib/hooks/index.d.ts +0 -0
  50. /package/dist/{shared → src/shared}/lib/hooks/use-fetch-table-data.d.ts +0 -0
  51. /package/dist/{shared → src/shared}/lib/hooks/use-view-port.d.ts +0 -0
  52. /package/dist/{shared → src/shared}/lib/provider-composer/index.d.ts +0 -0
  53. /package/dist/{shared → src/shared}/lib/provider-composer/lib.d.ts +0 -0
  54. /package/dist/{shared → src/shared}/lib/provider-composer/provider-composer.d.ts +0 -0
  55. /package/dist/{shared → src/shared}/lib/storage.d.ts +0 -0
  56. /package/dist/{shared → src/shared}/lib/types.d.ts +0 -0
  57. /package/dist/{shared → src/shared}/lib/utils.d.ts +0 -0
  58. /package/dist/{shared → src/shared}/types/index.d.ts +0 -0
  59. /package/dist/{shared → src/shared}/ui/admin-table/index.d.ts +0 -0
  60. /package/dist/{shared → src/shared}/ui/admin-table/table-head-skeleton.d.ts +0 -0
  61. /package/dist/{shared → src/shared}/ui/admin-table/table-head.d.ts +0 -0
  62. /package/dist/{shared → src/shared}/ui/admin-table/table-search.d.ts +0 -0
  63. /package/dist/{shared → src/shared}/ui/admin-table/types.d.ts +0 -0
  64. /package/dist/{shared → src/shared}/ui/base-table/index.d.ts +0 -0
  65. /package/dist/{shared → src/shared}/ui/base-table/types.d.ts +0 -0
  66. /package/dist/{shared → src/shared}/ui/container/index.d.ts +0 -0
  67. /package/dist/{shared → src/shared}/ui/container/types.d.ts +0 -0
  68. /package/dist/{shared → src/shared}/ui/date-picker/index.d.ts +0 -0
  69. /package/dist/{shared → src/shared}/ui/drawer-form/index.d.ts +0 -0
  70. /package/dist/{shared → src/shared}/ui/drawer-form/types.d.ts +0 -0
  71. /package/dist/{shared → src/shared}/ui/file-upload/draggable-upload-list-item.d.ts +0 -0
  72. /package/dist/{shared → src/shared}/ui/file-upload/file-upload.d.ts +0 -0
  73. /package/dist/{shared → src/shared}/ui/file-upload/index.d.ts +0 -0
  74. /package/dist/{shared → src/shared}/ui/file-upload/types.d.ts +0 -0
  75. /package/dist/{shared → src/shared}/ui/image/index.d.ts +0 -0
  76. /package/dist/{shared → src/shared}/ui/image-upload/base-image-upload.d.ts +0 -0
  77. /package/dist/{shared → src/shared}/ui/image-upload/data.d.ts +0 -0
  78. /package/dist/{shared → src/shared}/ui/image-upload/index.d.ts +0 -0
  79. /package/dist/{shared → src/shared}/ui/image-upload/item.d.ts +0 -0
  80. /package/dist/{shared → src/shared}/ui/image-upload/types.d.ts +0 -0
  81. /package/dist/{shared → src/shared}/ui/image-upload/upload-button.d.ts +0 -0
  82. /package/dist/{shared → src/shared}/ui/index.d.ts +0 -0
  83. /package/dist/{shared → src/shared}/ui/input/index.d.ts +0 -0
  84. /package/dist/{shared → src/shared}/ui/input-number/index.d.ts +0 -0
  85. /package/dist/{shared → src/shared}/ui/layout-card/index.d.ts +0 -0
  86. /package/dist/{shared → src/shared}/ui/material-map/index.d.ts +0 -0
  87. /package/dist/{shared → src/shared}/ui/material-map/types.d.ts +0 -0
  88. /package/dist/{shared → src/shared}/ui/readonly-input/index.d.ts +0 -0
  89. /package/dist/{shared → src/shared}/ui/readonly-input/types.d.ts +0 -0
  90. /package/dist/{shared → src/shared}/ui/search-input/index.d.ts +0 -0
  91. /package/dist/{shared → src/shared}/ui/search-input/types.d.ts +0 -0
  92. /package/dist/{shared → src/shared}/ui/spin/index.d.ts +0 -0
  93. /package/dist/{shared → src/shared}/ui/spin/types.d.ts +0 -0
  94. /package/dist/{shared → src/shared}/ui/text-editor/element.d.ts +0 -0
  95. /package/dist/{shared → src/shared}/ui/text-editor/index.d.ts +0 -0
  96. /package/dist/{shared → src/shared}/ui/text-editor/lib.d.ts +0 -0
  97. /package/dist/{shared → src/shared}/ui/text-editor/link-button.d.ts +0 -0
  98. /package/dist/{shared → src/shared}/ui/text-editor/link-component.d.ts +0 -0
  99. /package/dist/{shared → src/shared}/ui/text-editor/remove-link-button.d.ts +0 -0
  100. /package/dist/{shared → src/shared}/ui/text-editor/text-editor.d.ts +0 -0
  101. /package/dist/{shared → src/shared}/ui/text-editor/toolbar.d.ts +0 -0
@@ -1,86 +1,1222 @@
1
- import { cn as s, b_ as r, b$ as t, co as o, c0 as b, c1 as i, c2 as c, B as l, c6 as n, c3 as p, c7 as m, c8 as u, c9 as g, c4 as I, ca as B, bd as d, bZ as T, be as k, bn as S, c5 as h, bo as A, bq as L, E as P, T as C, bf as w, bP as F, bO as v, bJ as M, bw as O, bF as f, bz as E, bW as U, ck as V, by as y, bE as D, bx as j, bU as x, bT as R, bX as N, bN as H, bM as z, ch as _, cb as G, cf as K, cc as q, bD as J, bY as Q, cm as W, bA as X, bK as Y, bC as Z, bB as $, bR as aa, bS as ea, bp as sa, bg as ra, A as ta, cl as oa, bk as ba, bj as ia, bh as ca, bV as la, bQ as na, ce as pa, cd as ma, bI as ua, bL as ga, bG as Ia, bH as Ba, cg as da, bm as Ta, bl as ka, bi as Sa, bu as ha, bv as Aa, br as La, bs as Pa, v as Ca, bc as wa, w as Fa, bt as va, cj as Ma, ci as Oa } from "./index-CiZAToSX.js";
2
- export {
3
- s as AdminTable,
4
- r as BaseDatePicker,
5
- t as BaseDrawerForm,
6
- o as BaseFileUpload,
7
- b as BaseImage,
8
- i as BaseImageUpload,
9
- c as BaseInput,
10
- l as BaseInputNumber,
11
- n as BaseMaterialMap,
12
- p as BasePasswordInput,
13
- m as BaseReadonlyInput,
14
- u as BaseSearchInput,
15
- g as BaseSpin,
16
- I as BaseTextAreaInput,
17
- B as BaseTextEditor,
18
- d as COOKIE,
19
- T as Container,
20
- k as LOCAL_STORAGE,
21
- S as Languages,
22
- h as LayoutCard,
23
- A as MonthsNumber,
24
- L as ProviderComposer,
25
- P as THEME,
26
- C as TIME,
27
- w as VALIDATION_VALUE,
28
- F as checkCorrectFileObject,
29
- v as checkCorrectImageObject,
30
- M as compareRolesPriority,
31
- O as convertPhoneMask,
32
- f as createProfileLabel,
33
- E as createUploadImagesStore,
34
- U as deleteCookie,
35
- V as escapeHtml,
36
- y as fileToBase64,
37
- D as formatPhoneToInternational,
38
- j as formatPhoneToNumber,
39
- x as getCookie,
40
- R as getImagePrefix,
41
- N as getTokenInCookie,
42
- H as getUploadFileUrl,
43
- z as getUploadImageUrl,
44
- _ as insertLink,
45
- G as isBlockActive,
46
- K as isLinkActive,
47
- q as isMarkActive,
48
- J as isUrl,
49
- Q as mergeObjectArrays,
50
- W as normalizeSlateData,
51
- X as objectArrayToOptions,
52
- Y as onFilterSelectOptionsByLabel,
53
- Z as prepareFilesToSubmit,
54
- $ as prepareImagesToSubmit,
55
- aa as prepareServerFiles,
56
- ea as prepareServerImages,
57
- sa as provider,
58
- ra as responseSchema,
59
- ta as searchRadioDefaultValue,
60
- oa as serializeToHtml,
61
- ba as serverFileSchema,
62
- ia as serverImageSchema,
63
- ca as sessionCookieSchema,
64
- la as setCookie,
65
- na as sortFilesArrayByReference,
66
- pa as toggleBlock,
67
- ma as toggleMark,
68
- ua as translateContent,
69
- ga as translateContentToLanguages,
70
- Ia as translateField,
71
- Ba as translateImagesAlt,
72
- da as unwrapLink,
73
- Ta as uploadFilesSchema,
74
- ka as uploadImageSchema,
75
- Sa as uploadTempSchema,
76
- ha as useExtraMediumViewPort,
77
- Aa as useFetchTableData,
78
- La as useLaptopBigViewPort,
79
- Pa as useLaptopViewPort,
80
- Ca as useMobileViewPort,
81
- wa as useSession,
82
- Fa as useSmallViewPort,
83
- va as useTabletViewPort,
84
- Ma as withInlines,
85
- Oa as wrapLink
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";
20
+ //#region src/entities/session/model/session.store.ts
21
+ var Ot = xe((e, t) => ({
22
+ isLoading: !1,
23
+ isFirstLoadCompleted: !1,
24
+ currentSession: void 0,
25
+ loadSession: async ({ domain: n, ROLE_PRIORITY: r, isNotSecure: i = !1, navigate: a, refresh: o }) => {
26
+ if (t().currentSession) return;
27
+ E(T.SESSION_TEMP, n), e({ isLoading: !0 });
28
+ let s = await o();
29
+ if (s.status !== Se.Ok) {
30
+ e({
31
+ currentSession: void 0,
32
+ isLoading: !1,
33
+ isFirstLoadCompleted: !0
34
+ }), a({ to: "/login" }), E(T.SESSION, n);
35
+ return;
36
+ }
37
+ let c = s.data.data;
38
+ if (!c) {
39
+ e({
40
+ currentSession: void 0,
41
+ isLoading: !1,
42
+ isFirstLoadCompleted: !0
43
+ }), a({ to: "/login" }), E(T.SESSION, n);
44
+ return;
45
+ }
46
+ let { maxUserRolePriority: l } = ue({
47
+ userRoles: c.roles,
48
+ comparedUserRoles: c.roles,
49
+ rolePriority: r
50
+ }), u = {
51
+ id: c.id,
52
+ profileId: c.profileId,
53
+ phone: c.phone,
54
+ email: c.email,
55
+ roles: c.roles,
56
+ isAllDomains: c.isAllDomains || c.isAllCities,
57
+ domains: c.domains || c.cities,
58
+ maxRolePriority: l,
59
+ tokens: {
60
+ accessToken: {
61
+ token: c.tokens?.accessToken?.token ?? "",
62
+ exp: c.tokens?.accessToken?.exp ?? 0
63
+ },
64
+ refreshToken: {
65
+ token: c.tokens?.refreshToken?.token ?? "",
66
+ exp: c.tokens?.refreshToken?.exp ?? 0
67
+ }
68
+ }
69
+ }, d = N(), f = N(c.tokens?.refreshToken?.exp ?? 0).diff(d, "seconds");
70
+ return D(T.SESSION, JSON.stringify(u), {
71
+ domain: n,
72
+ secure: !i,
73
+ "max-age": f
74
+ }), e({
75
+ currentSession: u,
76
+ isLoading: !1,
77
+ isFirstLoadCompleted: !0
78
+ }), u;
79
+ },
80
+ setCurrentSession: ({ domain: t, session: n, isRemember: r, isNotSecure: i }) => {
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), {
84
+ domain: t,
85
+ secure: !i,
86
+ "max-age": o
87
+ });
88
+ },
89
+ removeSession: ({ domain: t, navigate: n }) => {
90
+ e({ currentSession: void 0 }), E(T.SESSION, t), E(T.SESSION_TEMP, t), n({ to: "/login" });
91
+ }
92
+ })), kt = /* @__PURE__ */ function(e) {
93
+ return e.russian = "ru", e.english = "en", e.arabic = "ar", e;
94
+ }({}), At = /* @__PURE__ */ function(e) {
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,
98
+ children: e
99
+ }), Nt = {
100
+ readOnly: "_readOnly_1qyk0_1",
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),
107
+ children: i ? o.format("YYYY-MM-DD, HH:mm:ss") : o.format("YYYY-MM-DD")
108
+ }) : /* @__PURE__ */ P(Ae, {
109
+ locale: e,
110
+ children: /* @__PURE__ */ P(je, {
111
+ ...a,
112
+ format: i ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD",
113
+ value: n ? o : null,
114
+ readOnly: r,
115
+ showTime: i ? { defaultValue: N("00:00:00", "HH:mm:ss") } : !1
116
+ })
117
+ });
118
+ }, Ft = {
119
+ form: "_form_6uo9h_1",
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 }, _) => {
122
+ let [v, y] = B(!1);
123
+ R(_, () => ({ translateComplete: () => {
124
+ setTimeout(() => y(!1), u.milliseconds.seconds1);
125
+ } }));
126
+ let b = async () => {
127
+ h && (y(!0), h());
128
+ }, x = (e) => {
129
+ p && (e.preventDefault(), p());
130
+ };
131
+ return /* @__PURE__ */ F(Ne, {
132
+ ...g,
133
+ className: Ft.form,
134
+ layout: "vertical",
135
+ children: [e, /* @__PURE__ */ F("div", {
136
+ className: Ft.buttons,
137
+ children: [d && !!o?.length && /* @__PURE__ */ F(H, {
138
+ gap: "small",
139
+ vertical: !0,
140
+ children: [f && /* @__PURE__ */ P(G, {
141
+ title: i,
142
+ children: /* @__PURE__ */ P(V, {
143
+ loading: v,
144
+ onClick: b,
145
+ children: r
146
+ })
147
+ }), /* @__PURE__ */ P(Re, {
148
+ defaultValue: t,
149
+ disabled: v,
150
+ options: o,
151
+ onChange: (e) => m?.(e)
152
+ })]
153
+ }), l && /* @__PURE__ */ P(V, {
154
+ type: "primary",
155
+ htmlType: s,
156
+ disabled: v,
157
+ loading: c,
158
+ onClick: x,
159
+ children: a ?? n
160
+ })]
161
+ })]
162
+ });
163
+ }), Lt = ({ fallback: e = "data:image/png;base64,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", ...t }) => /* @__PURE__ */ P(Pe, {
164
+ ...t,
165
+ fallback: e
166
+ }), Rt = ({ downloadText: e }) => /* @__PURE__ */ F("button", {
167
+ style: {
168
+ border: 0,
169
+ background: "none"
170
+ },
171
+ type: "button",
172
+ children: [/* @__PURE__ */ P(at, {}), /* @__PURE__ */ P("div", {
173
+ style: { marginTop: 8 },
174
+ children: e
175
+ })]
176
+ }), Z = {
177
+ uploadContainer: "_uploadContainer_lavhx_1",
178
+ card: "_card_lavhx_6",
179
+ error: "_error_lavhx_14",
180
+ disabled: "_disabled_lavhx_23",
181
+ image: "_image_lavhx_32"
182
+ }, zt = [
183
+ {
184
+ lang: "RU",
185
+ alt: "altRU"
186
+ },
187
+ {
188
+ lang: "EN",
189
+ alt: "altEN"
190
+ },
191
+ {
192
+ lang: "AR",
193
+ alt: "altAR"
194
+ }
195
+ ], Q = {
196
+ readOnly: "_readOnly_s33xc_1",
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),
200
+ children: e
201
+ }) : /* @__PURE__ */ P(U, {
202
+ ...i,
203
+ readOnly: n,
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),
208
+ children: e
209
+ }) : /* @__PURE__ */ P(U.Password, {
210
+ ...i,
211
+ value: r,
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),
216
+ children: e
217
+ }) : /* @__PURE__ */ P(U.TextArea, {
218
+ ...i,
219
+ value: r,
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 }) => {
223
+ let [h, g] = B({
224
+ ru: "",
225
+ en: "",
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(() => {
229
+ f({
230
+ uid: r.uid,
231
+ name: r.name.split(".")[0],
232
+ altRU: h.ru,
233
+ altEN: h.en,
234
+ altAR: h.ar
235
+ });
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,
244
+ borderColor: y ? S.colorError : void 0
245
+ };
246
+ L(() => {
247
+ f({
248
+ uid: r.uid,
249
+ name: r.name.split(".")[0]
250
+ });
251
+ }, []), L(() => {
252
+ a.includes(r.uid) ? (b(!0), f({
253
+ uid: r.uid,
254
+ name: r.name.split(".")[0],
255
+ isError: !0
256
+ })) : b(!1);
257
+ }, [r, a]), L(() => {
258
+ if (!l) return;
259
+ let e = l.find((e) => e.uid === r.uid);
260
+ e && g({
261
+ ru: e.altRU ?? "",
262
+ en: e.altEN ?? "",
263
+ ar: e.altAR ?? ""
264
+ });
265
+ }, [l]), L(() => {
266
+ (async () => {
267
+ r?.originFileObj ? v(await k(r.originFileObj)) : r.url && (g({
268
+ ru: r.altRU ?? "",
269
+ en: r.altEN ?? "",
270
+ ar: r.altAR ?? ""
271
+ }), v(r.url));
272
+ })();
273
+ }, [r.url]);
274
+ let re = () => {
275
+ s || (x(), p(r.uid), m(r.uid));
276
+ }, ie = (e, t) => {
277
+ g((n) => ({
278
+ ...n,
279
+ [e.toLocaleLowerCase()]: t
280
+ }));
281
+ };
282
+ return /* @__PURE__ */ P(ke, {
283
+ ref: !y && !s && c !== 1 ? ee : void 0,
284
+ className: ne,
285
+ hoverable: !s,
286
+ size: "small",
287
+ loading: !_ || d,
288
+ style: D,
289
+ cover: _ ? /* @__PURE__ */ P(Pe, {
290
+ className: Z.image,
291
+ height: 160,
292
+ src: _
293
+ }) : void 0,
294
+ actions: [/* @__PURE__ */ P(Qe, { onClick: re }, "delete")],
295
+ ...C,
296
+ ...w,
297
+ children: zt.map((r) => /* @__PURE__ */ P(Ne.Item, {
298
+ label: `${t} ${r.lang.toUpperCase()}`,
299
+ style: { display: i === r.lang.toLowerCase() ? "block" : "none" },
300
+ children: /* @__PURE__ */ P(Bt, {
301
+ emptyText: e,
302
+ disabled: y || s,
303
+ value: h[r.lang.toLowerCase()],
304
+ autoComplete: "new-password",
305
+ placeholder: y ? n : t,
306
+ onChange: (e) => ie(r.lang, e.target.value)
307
+ })
308
+ }, r.alt))
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 }) => {
311
+ let [_, v] = B([]), [y, b] = B([]);
312
+ L(() => {
313
+ if (!i?.length) return;
314
+ let e = i.map((e) => {
315
+ let t = e.url?.split("/") ?? [], n = t[t.length - 1];
316
+ return {
317
+ uid: e.uid ?? "",
318
+ name: n ?? `${Math.random()}.jpg`,
319
+ status: "done",
320
+ url: e.url ?? "",
321
+ altRU: e.altRU || "",
322
+ altEN: e.altEN || "",
323
+ altAR: e.altAR || ""
324
+ };
325
+ }).filter((e) => !!e.uid), t = e.map((e) => e.uid);
326
+ v(e), p?.(t);
327
+ }, [i]), L(() => {
328
+ if (!_?.length) return;
329
+ let e = _.map((e) => e.uid);
330
+ p?.(e);
331
+ }, [_]);
332
+ let x = Ue(He, { activationConstraint: { distance: 10 } }), S = (e) => {
333
+ let { fileList: t } = e;
334
+ v(t), u?.(e);
335
+ }, C = (e) => {
336
+ b((t) => t.filter((t) => t !== e));
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) => {
340
+ let { file: n, onSuccess: r, onError: i } = e, a = n, o = new FormData();
341
+ o.append("files", n);
342
+ let s = await h(o);
343
+ s.status === 201 ? (m({
344
+ tempName: s.data.data.tempFiles[0],
345
+ uid: a.uid ?? ""
346
+ }), r?.("Ok")) : (b((e) => [...e, a.uid ?? ""]), i?.(s.error)), l?.(e, t);
347
+ };
348
+ return /* @__PURE__ */ P("div", {
349
+ className: Z.uploadContainer,
350
+ children: /* @__PURE__ */ P(Ve, {
351
+ sensors: [x],
352
+ onDragEnd: w,
353
+ children: /* @__PURE__ */ P(We, {
354
+ items: _.map((e) => e.uid),
355
+ children: /* @__PURE__ */ P(Be, {
356
+ ...g,
357
+ disabled: o,
358
+ maxCount: s,
359
+ customRequest: ee,
360
+ accept: "image/png, image/jpeg",
361
+ listType: "picture-card",
362
+ fileList: _,
363
+ itemRender: (r, i, l, u) => /* @__PURE__ */ P(Wt, {
364
+ emptyText: n,
365
+ labelText: e,
366
+ loadingErrorText: t,
367
+ file: i,
368
+ language: c,
369
+ errorsUid: y,
370
+ actions: u,
371
+ disabled: o,
372
+ maxCount: s,
373
+ updatedImages: a,
374
+ isLoading: i.status === "uploading",
375
+ onUpdateData: d,
376
+ onDeleteImage: f,
377
+ onDeleteError: C
378
+ }),
379
+ onChange: S,
380
+ children: (!s || _?.length < s) && /* @__PURE__ */ P(Rt, { downloadText: r })
381
+ })
382
+ })
383
+ })
384
+ });
385
+ }, Kt = ({ children: e }) => {
386
+ let { token: { colorBgContainer: t, boxShadow: n, borderRadius: r } } = q.useToken();
387
+ return /* @__PURE__ */ P("div", {
388
+ style: {
389
+ padding: w.OFFSET[1],
390
+ boxShadow: n,
391
+ borderRadius: r,
392
+ background: t
393
+ },
394
+ children: e
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(() => {
399
+ h(e);
400
+ }, [e]), L(() => {
401
+ _(t);
402
+ }, [t]);
403
+ let y = (e, t) => {
404
+ e?.length < 2 || l || (h(e[0]), _(e[1]), d?.(e, t));
405
+ };
406
+ return /* @__PURE__ */ P(mt, {
407
+ query: {
408
+ apikey: s,
409
+ suggest_apikey: c
410
+ },
411
+ children: /* @__PURE__ */ F(dt, {
412
+ instanceRef: (e) => p(e),
413
+ defaultState: {
414
+ center: [n, r],
415
+ zoom: i,
416
+ controls: []
417
+ },
418
+ state: {
419
+ center: m && g ? [m, g] : [n, r],
420
+ zoom: m && g ? a : i
421
+ },
422
+ width: "100%",
423
+ height: o,
424
+ onClick: (e) => {
425
+ let t = e.get("coords"), n = f?.getZoom();
426
+ y(t, n);
427
+ },
428
+ children: [
429
+ m && g && /* @__PURE__ */ P(ft, {
430
+ geometry: [m, g],
431
+ options: {
432
+ iconColor: v,
433
+ draggable: !l
434
+ },
435
+ onDragEnd: (e) => {
436
+ let t = e.get("target").geometry.getCoordinates(), n = f?.getZoom();
437
+ y(t, n);
438
+ }
439
+ }),
440
+ /* @__PURE__ */ P(ut, {}),
441
+ /* @__PURE__ */ P(ht, {}),
442
+ u && /* @__PURE__ */ P(pt, {})
443
+ ]
444
+ })
445
+ });
446
+ }, Jt = {
447
+ readOnly: "_readOnly_e6ors_1",
448
+ noData: "_noData_e6ors_19"
449
+ }, Yt = ({ value: e, emptyText: t }) => /* @__PURE__ */ P(K.Text, {
450
+ className: J(Jt.readOnly, Jt.noData),
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 }) => {
453
+ let [m, h] = B([]), [g, _] = B(""), [v, y] = B(i), [b, x] = B(t);
454
+ return I(() => {
455
+ f(g, v, h);
456
+ }, u.milliseconds.milliseconds500, [g, v]), L(() => {
457
+ x(t);
458
+ }, [t]), L(() => {
459
+ if (!(!b || !n)) if (Array.isArray(n) && Array.isArray(b)) {
460
+ let e = n.map((e, t) => {
461
+ let n = b[t];
462
+ return n ? {
463
+ label: n,
464
+ value: e
465
+ } : null;
466
+ }).filter(Boolean);
467
+ h((t) => {
468
+ let n = t || [], r = e.filter((e) => !n.find((t) => t.value === e.value));
469
+ return r.length === 0 ? n : [...n, ...r];
470
+ });
471
+ } else typeof n == "string" && typeof b == "string" && h((e) => {
472
+ let t = e || [], r = t.find((e) => e.value === n);
473
+ return r && r.label === b ? t : r ? t.map((e) => e.value === n ? {
474
+ ...e,
475
+ label: b
476
+ } : e) : [...t, {
477
+ label: b,
478
+ value: n
479
+ }];
480
+ });
481
+ }, [b, n]), /* @__PURE__ */ F(H, {
482
+ className: Xt.flex,
483
+ gap: "small",
484
+ children: [/* @__PURE__ */ P(Re, {
485
+ defaultValue: i,
486
+ value: v,
487
+ options: a,
488
+ style: s,
489
+ disabled: l,
490
+ onChange: (e) => {
491
+ y(e);
492
+ }
493
+ }), /* @__PURE__ */ P(Re, {
494
+ mode: d,
495
+ value: n,
496
+ placeholder: r,
497
+ defaultActiveFirstOption: !1,
498
+ suffixIcon: null,
499
+ filterOption: !1,
500
+ onSearch: (e) => _(e),
501
+ onChange: (e, t) => {
502
+ t && x(Array.isArray(t) ? t.map((e) => e.label) : t.label), p(e);
503
+ },
504
+ options: m || [],
505
+ style: o,
506
+ notFoundContent: c ? /* @__PURE__ */ P(W.Input, {
507
+ size: "small",
508
+ block: !0,
509
+ active: !0
510
+ }) : e,
511
+ showSearch: !0,
512
+ allowClear: !0,
513
+ disabled: l
514
+ })]
515
+ });
516
+ }, Qt = ({ children: e, spinFontSize: t = 36, ...n }) => /* @__PURE__ */ P(ze, {
517
+ ...n,
518
+ indicator: /* @__PURE__ */ P(nt, { style: { fontSize: t } }),
519
+ children: e
520
+ }), $t = {
521
+ "mod+b": "bold",
522
+ "mod+i": "italic",
523
+ "mod+u": "underline",
524
+ "mod+`": "code"
525
+ }, en = ["numbered-list", "bulleted-list"], tn = [
526
+ "left",
527
+ "center",
528
+ "right",
529
+ "justify"
530
+ ], nn = [
531
+ "http:",
532
+ "https:",
533
+ "mailto:",
534
+ "tel:"
535
+ ], rn = [
536
+ {
537
+ id: "1",
538
+ format: "title",
539
+ text: "Заголовок"
540
+ },
541
+ {
542
+ id: "2",
543
+ format: "subtitle",
544
+ text: "Подзаголовок"
545
+ },
546
+ {
547
+ id: "3",
548
+ format: "note",
549
+ text: "Примечание"
550
+ },
551
+ {
552
+ id: "4",
553
+ format: "info",
554
+ text: "Информационный блок"
555
+ }
556
+ ], an = ({ boldText: e, italicText: t, underlineText: n, numberedListText: r, bulletedListText: i, leftText: a, centerText: o, rightText: s, justifyText: c }) => [
557
+ {
558
+ id: "1",
559
+ title: e,
560
+ format: "bold",
561
+ icon: /* @__PURE__ */ P(Ze, {}),
562
+ type: "mark"
563
+ },
564
+ {
565
+ id: "2",
566
+ title: t,
567
+ format: "italic",
568
+ icon: /* @__PURE__ */ P(et, {}),
569
+ type: "mark"
570
+ },
571
+ {
572
+ id: "3",
573
+ title: n,
574
+ format: "underline",
575
+ icon: /* @__PURE__ */ P(ot, {}),
576
+ type: "mark"
577
+ },
578
+ {
579
+ id: "4",
580
+ title: r,
581
+ format: "numbered-list",
582
+ icon: /* @__PURE__ */ P(it, {}),
583
+ type: "list"
584
+ },
585
+ {
586
+ id: "5",
587
+ title: i,
588
+ format: "bulleted-list",
589
+ icon: /* @__PURE__ */ P(st, {}),
590
+ type: "list"
591
+ },
592
+ {
593
+ id: "6",
594
+ title: a,
595
+ format: "left",
596
+ icon: /* @__PURE__ */ P(Ye, {}),
597
+ type: "align"
598
+ },
599
+ {
600
+ id: "7",
601
+ title: o,
602
+ format: "center",
603
+ icon: /* @__PURE__ */ P(Je, {}),
604
+ type: "align"
605
+ },
606
+ {
607
+ id: "8",
608
+ title: s,
609
+ format: "right",
610
+ icon: /* @__PURE__ */ P(Xe, {}),
611
+ type: "align"
612
+ },
613
+ {
614
+ id: "9",
615
+ title: c,
616
+ format: "justify",
617
+ icon: /* @__PURE__ */ P(rt, {}),
618
+ type: "align"
619
+ }
620
+ ], on = (e, t, n = "type") => {
621
+ let { selection: r } = e;
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
626
+ }));
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
+ }, 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),
637
+ split: !0
638
+ });
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) {
641
+ let n = {
642
+ type: t,
643
+ children: []
644
+ };
645
+ X.wrapNodes(e, n);
646
+ }
647
+ }, un = (e) => {
648
+ let [t] = Y.nodes(e, { match: (e) => !Y.isEditor(e) && gt.isElement(e) && e.type === "link" });
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 = {
657
+ type: "link",
658
+ href: t,
659
+ children: r ? [{ text: t }] : []
660
+ };
661
+ r ? X.insertNodes(e, i) : (X.wrapNodes(e, i, { split: !0 }), X.collapse(e, { edge: "end" }));
662
+ }, mn = (e) => {
663
+ let { insertData: t, insertText: n, isInline: r } = e;
664
+ return e.isInline = (e) => ["link"].includes(e.type) || r(e), e.insertText = (t) => {
665
+ t && O(t) ? pn(e, t) : n(t);
666
+ }, e.insertData = (n) => {
667
+ let r = n.getData("text/plain");
668
+ r && O(r) ? pn(e, r) : t(n);
669
+ }, e;
670
+ }, hn = (e) => {
671
+ let t = /["'&<>]/, n = "" + e, r = t.exec(n);
672
+ if (!r) return n;
673
+ let i, a = "", o, s = 0;
674
+ for (o = r.index; o < n.length; o++) {
675
+ switch (n.charCodeAt(o)) {
676
+ case 34:
677
+ i = "&quot;";
678
+ break;
679
+ case 38:
680
+ i = "&amp;";
681
+ break;
682
+ case 39:
683
+ i = "&#39;";
684
+ break;
685
+ case 60:
686
+ i = "&lt;";
687
+ break;
688
+ case 62:
689
+ i = "&gt;";
690
+ break;
691
+ default: continue;
692
+ }
693
+ s !== o && (a += n.substring(s, o)), s = o + 1, a += i;
694
+ }
695
+ return s === o ? a : a + n.substring(s, o);
696
+ }, gn = (e) => {
697
+ if (vt.isText(e)) {
698
+ let t = hn(e.text);
699
+ 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
+ }
701
+ let t = e.children.map((e) => gn(e)).join(""), n = e.align ? `text-align: ${e.align}` : "";
702
+ switch (e.type) {
703
+ case "title": return `<h2 class="content-title"${n ? ` style="${n}"` : ""}>${t}</h2>`;
704
+ case "subtitle": return `<h3 class="content-subtitle"${n ? ` style="${n}"` : ""}>${t}</h3>`;
705
+ case "note": return `<p class="content-note"${n ? ` style="${n}"` : ""}>${t}</p>`;
706
+ case "info": return `<p class="content-info"${n ? ` style="${n}"` : ""}>${t}</p>`;
707
+ case "paragraph": return `<p class="content-paragraph" ${n ? ` style="${n}"` : ""}>${t}</p>`;
708
+ case "bulleted-list": return `<ul class="content-bulleted-list"${n ? ` style="${n}"` : ""}>${t}</ul>`;
709
+ case "numbered-list": return `<ol class="content-numbered-list"${n ? ` style="${n}"` : ""}>${t}</ol>`;
710
+ 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>`;
712
+ default: return t;
713
+ }
714
+ }, _n = (e) => {
715
+ let t = [{
716
+ type: "paragraph",
717
+ children: [{ text: "" }]
718
+ }];
719
+ if (!e) return t;
720
+ if (typeof e == "string") try {
721
+ return _n(JSON.parse(e));
722
+ } catch {
723
+ return t;
724
+ }
725
+ if (Array.isArray(e)) return e.every((e) => e && typeof e == "object" && ("type" in e && "children" in e || "text" in e)) ? e : t;
726
+ if (typeof e == "object" && e) {
727
+ if ("children" in e && Array.isArray(e.children)) {
728
+ let t = e.children;
729
+ if (t.every((e) => e && typeof e == "object" && ("type" in e && "children" in e || "text" in e))) return t;
730
+ }
731
+ if ("type" in e && "children" in e && Array.isArray(e.children)) return [e];
732
+ }
733
+ return t;
734
+ }, vn = () => /* @__PURE__ */ P("span", {
735
+ contentEditable: !1,
736
+ style: { fontSize: 0 },
737
+ 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(() => {
740
+ let e = null;
741
+ try {
742
+ e = new URL(n.href);
743
+ } catch (e) {
744
+ console.log(e);
745
+ }
746
+ return e && nn.includes(e.protocol) ? e.href : "about:blank";
747
+ }, [n.href]);
748
+ return /* @__PURE__ */ P(Le, {
749
+ title: "URL",
750
+ content: o,
751
+ children: /* @__PURE__ */ F("a", {
752
+ ...e,
753
+ href: o,
754
+ style: { color: r ? a : i },
755
+ children: [
756
+ /* @__PURE__ */ P(vn, {}),
757
+ t,
758
+ /* @__PURE__ */ P(vn, {})
759
+ ]
760
+ })
761
+ });
762
+ }, bn = ({ attributes: e, children: t, element: n }) => {
763
+ let r = { textAlign: n.align };
764
+ switch (n.type) {
765
+ case "bulleted-list": return /* @__PURE__ */ P("ul", {
766
+ className: "content-bulleted-list",
767
+ style: r,
768
+ ...e,
769
+ children: t
770
+ });
771
+ case "title": return /* @__PURE__ */ P("h2", {
772
+ className: "content-title",
773
+ style: r,
774
+ ...e,
775
+ children: t
776
+ });
777
+ case "subtitle": return /* @__PURE__ */ P("h3", {
778
+ className: "content-subtitle",
779
+ style: r,
780
+ ...e,
781
+ children: t
782
+ });
783
+ case "list-item": return /* @__PURE__ */ P("li", {
784
+ style: r,
785
+ ...e,
786
+ children: t
787
+ });
788
+ case "numbered-list": return /* @__PURE__ */ P("ol", {
789
+ className: "content-numbered-list",
790
+ style: r,
791
+ ...e,
792
+ children: t
793
+ });
794
+ case "note": return /* @__PURE__ */ P("p", {
795
+ className: "content-note",
796
+ style: r,
797
+ ...e,
798
+ children: t
799
+ });
800
+ case "info": return /* @__PURE__ */ P("p", {
801
+ className: "content-info",
802
+ style: r,
803
+ ...e,
804
+ children: t
805
+ });
806
+ case "link": return /* @__PURE__ */ P(yn, {
807
+ attributes: e,
808
+ children: t,
809
+ element: n
810
+ });
811
+ default: return /* @__PURE__ */ P("p", {
812
+ style: r,
813
+ ...e,
814
+ children: t
815
+ });
816
+ }
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", {
818
+ ...e,
819
+ children: t
820
+ })), Sn = ({ tooltipText: e, linkErrorText: t, onErrorMessage: n }) => {
821
+ let [r, i] = B(!1), [a, o] = B(""), s = Ct(), c = () => {
822
+ i((e) => !e);
823
+ };
824
+ return /* @__PURE__ */ F(Ce, { children: [/* @__PURE__ */ P(G, {
825
+ title: e,
826
+ children: /* @__PURE__ */ P(V, {
827
+ icon: /* @__PURE__ */ P(tt, {}),
828
+ onClick: c
829
+ })
830
+ }), /* @__PURE__ */ P(Ie, {
831
+ title: e,
832
+ open: r,
833
+ destroyOnHidden: !0,
834
+ onOk: () => {
835
+ 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, {
839
+ protocols: ["http", "https"],
840
+ require_protocol: !0
841
+ })) e += a;
842
+ else {
843
+ n(t);
844
+ return;
845
+ }
846
+ fn(s, e), o(""), c();
847
+ },
848
+ onCancel: () => {
849
+ c(), o("");
850
+ },
851
+ children: /* @__PURE__ */ P(U, {
852
+ placeholder: "https://site.ru | test@mail.ru | +79881234567",
853
+ value: a,
854
+ onChange: (e) => {
855
+ o(e.target.value);
856
+ }
857
+ })
858
+ })] });
859
+ }, Cn = ({ tooltipText: e }) => {
860
+ let t = Ct();
861
+ return /* @__PURE__ */ P(G, {
862
+ title: e,
863
+ children: /* @__PURE__ */ P(V, {
864
+ icon: /* @__PURE__ */ P($e, {}),
865
+ onClick: () => {
866
+ un(t) && dn(t);
867
+ }
868
+ })
869
+ });
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({
872
+ boldText: e,
873
+ italicText: t,
874
+ underlineText: n,
875
+ numberedListText: r,
876
+ bulletedListText: i,
877
+ leftText: a,
878
+ centerText: o,
879
+ rightText: s,
880
+ justifyText: c
881
+ });
882
+ return /* @__PURE__ */ F(H, {
883
+ gap: "small",
884
+ wrap: !0,
885
+ children: [/* @__PURE__ */ P(H, {
886
+ gap: "small",
887
+ wrap: !0,
888
+ children: rn.map((e) => /* @__PURE__ */ P(V, {
889
+ type: on(p, e.format, "type"),
890
+ onClick: () => ln(p, e.format),
891
+ children: e.text
892
+ }, e.id))
893
+ }), /* @__PURE__ */ F(H, {
894
+ gap: "small",
895
+ wrap: !0,
896
+ children: [
897
+ m.map((e) => {
898
+ 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, {
900
+ title: e.title,
901
+ children: /* @__PURE__ */ P(V, {
902
+ type: t,
903
+ icon: e.icon,
904
+ onClick: n
905
+ })
906
+ }, e.id);
907
+ }),
908
+ /* @__PURE__ */ P(Sn, {
909
+ tooltipText: u,
910
+ linkErrorText: l,
911
+ onErrorMessage: f
912
+ }),
913
+ /* @__PURE__ */ P(Cn, { tooltipText: d })
914
+ ]
915
+ })]
916
+ });
917
+ }, Tn = { editable: "_editable_136f6_1" }, $ = [{
918
+ type: "paragraph",
919
+ 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, () => ({
926
+ resetData: () => {
927
+ b($), x.children = $, X.deselect(x);
928
+ },
929
+ setValue: (e) => {
930
+ 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])
936
+ });
937
+ }, 0);
938
+ } catch (e) {
939
+ console.error("Error parsing slate value:", e), b($), x.children = $, X.deselect(x);
940
+ }
941
+ }
942
+ }));
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,
947
+ onChange: (e) => {
948
+ b(e);
949
+ },
950
+ children: /* @__PURE__ */ F(H, {
951
+ gap: "small",
952
+ vertical: !0,
953
+ children: [!m && /* @__PURE__ */ P(wn, {
954
+ boldText: e,
955
+ italicText: t,
956
+ underlineText: n,
957
+ numberedListText: r,
958
+ bulletedListText: i,
959
+ leftText: a,
960
+ centerText: o,
961
+ rightText: s,
962
+ justifyText: c,
963
+ linkErrorText: l,
964
+ linkButtonTooltipText: d,
965
+ removeLinkTooltipText: f,
966
+ onErrorMessage: _
967
+ }), /* @__PURE__ */ P(bt, {
968
+ className: Tn.editable,
969
+ style: {
970
+ padding: S.padding,
971
+ border: `1px solid ${S.colorBorder}`,
972
+ borderRadius: `${S.borderRadius}px`
973
+ },
974
+ spellCheck: !0,
975
+ readOnly: m,
976
+ renderElement: C,
977
+ renderLeaf: w,
978
+ onKeyDown: (e) => {
979
+ for (let t in $t) if (Tt(t, e)) {
980
+ e.preventDefault();
981
+ let n = $t[t];
982
+ cn(x, n);
983
+ }
984
+ }
985
+ })]
986
+ })
987
+ });
988
+ }), On = () => /* @__PURE__ */ F("div", {
989
+ className: j.tableHeadSkeleton,
990
+ style: { marginBottom: w.OFFSET[1] },
991
+ children: [/* @__PURE__ */ F(H, {
992
+ align: "center",
993
+ gap: "middle",
994
+ wrap: "wrap",
995
+ children: [/* @__PURE__ */ P("div", {
996
+ className: j.skeletonHead1,
997
+ children: /* @__PURE__ */ P(W.Button, {
998
+ active: !0,
999
+ block: !0
1000
+ })
1001
+ }), /* @__PURE__ */ P("div", {
1002
+ className: j.skeletonHead2,
1003
+ children: /* @__PURE__ */ P(W.Button, {
1004
+ active: !0,
1005
+ block: !0
1006
+ })
1007
+ })]
1008
+ }), /* @__PURE__ */ F(H, {
1009
+ className: J(j.buttonsContainer, j.skeletonButtonsContainer),
1010
+ gap: "small",
1011
+ children: [/* @__PURE__ */ P("div", {
1012
+ className: j.skeletonHead3,
1013
+ children: /* @__PURE__ */ P(W.Button, {
1014
+ active: !0,
1015
+ block: !0
1016
+ })
1017
+ }), /* @__PURE__ */ P("div", {
1018
+ className: j.skeletonHead4,
1019
+ children: /* @__PURE__ */ P(W.Button, {
1020
+ active: !0,
1021
+ block: !0
1022
+ })
1023
+ })]
1024
+ })]
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);
1034
+ }, R = () => {
1035
+ ye((e) => !e);
1036
+ }, z = () => {
1037
+ M(!1);
1038
+ }, V = () => {
1039
+ if (Se === _) {
1040
+ z();
1041
+ return;
1042
+ }
1043
+ xe((e) => !e);
1044
+ }, ke = async () => {
1045
+ try {
1046
+ await A?.(Ce), j(x);
1047
+ } catch (e) {
1048
+ fe({ error: e }), ge(C);
1049
+ }
1050
+ ye(!1);
1051
+ }, je = (e) => {
1052
+ e.current && (me(e.current, e.pageSize ?? 10), k());
1053
+ }, H = (e) => {
1054
+ N(e);
1055
+ };
1056
+ return /* @__PURE__ */ F(Ae, {
1057
+ ...de,
1058
+ children: [
1059
+ /* @__PURE__ */ P(we, {
1060
+ fallback: /* @__PURE__ */ P(On, {}),
1061
+ children: /* @__PURE__ */ P(kn, {
1062
+ sortTooltipText: t,
1063
+ updateDataText: n,
1064
+ refreshText: r,
1065
+ createText: i,
1066
+ createNewElementText: a,
1067
+ order: d,
1068
+ orderOptions: f,
1069
+ searchProps: p,
1070
+ createButtonTooltip: g,
1071
+ isCanCreate: ae,
1072
+ isHiddenCreate: ce,
1073
+ onCreate: Oe,
1074
+ onChangeOrder: pe,
1075
+ onRefetch: k
1076
+ })
1077
+ }),
1078
+ /* @__PURE__ */ P(Kt, { children: /* @__PURE__ */ P(we, {
1079
+ fallback: /* @__PURE__ */ P("div", {
1080
+ style: { height: "70vh" },
1081
+ children: /* @__PURE__ */ P(W, { active: !0 })
1082
+ }),
1083
+ children: /* @__PURE__ */ P(An, {
1084
+ viewText: o,
1085
+ actionsText: s,
1086
+ editText: c,
1087
+ deleteText: b,
1088
+ dataSource: l,
1089
+ columns: u,
1090
+ serverPagination: m,
1091
+ 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, {
1100
+ bordered: !0,
1101
+ dataSource: e.list,
1102
+ renderItem: (e) => /* @__PURE__ */ P(Fe.Item, { children: /* @__PURE__ */ P(K.Text, { children: e.text }) })
1103
+ });
1104
+ } } : void 0,
1105
+ onView: Ee,
1106
+ onDropdownClick: De,
1107
+ onEdit: L,
1108
+ onDelete: A ? R : void 0,
1109
+ onChange: je,
1110
+ onShowSizeChange: he
1111
+ })
1112
+ }) }),
1113
+ /* @__PURE__ */ P(Me, {
1114
+ title: w,
1115
+ open: _e,
1116
+ size: ne,
1117
+ destroyOnHidden: !0,
1118
+ onClose: V,
1119
+ children: Te(e, {
1120
+ id: Ce,
1121
+ action: Se,
1122
+ onClose: z,
1123
+ onRefetch: k,
1124
+ onChangeActionValue: H
1125
+ })
1126
+ }),
1127
+ /* @__PURE__ */ P(Ie, {
1128
+ title: ee,
1129
+ open: be,
1130
+ okText: te,
1131
+ cancelText: E,
1132
+ destroyOnHidden: !0,
1133
+ onOk: () => {
1134
+ z(), V();
1135
+ },
1136
+ onCancel: V,
1137
+ children: T
1138
+ }),
1139
+ A && /* @__PURE__ */ P(Ie, {
1140
+ title: D,
1141
+ open: ve,
1142
+ okText: b,
1143
+ cancelText: S,
1144
+ okButtonProps: { danger: !0 },
1145
+ onOk: ke,
1146
+ onCancel: R
1147
+ })
1148
+ ]
1149
+ });
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", {
1153
+ ref: i,
1154
+ style: {
1155
+ transform: lt.Translate.toString(a),
1156
+ transition: o,
1157
+ cursor: "move"
1158
+ },
1159
+ className: s ? "is-dragging" : "",
1160
+ ...n,
1161
+ ...r,
1162
+ children: t.status === "error" && s ? e.props.children : e
1163
+ });
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(() => {
1167
+ c?.length && n(c.map((e) => e.uid));
1168
+ }, [c]), L(() => {
1169
+ if (!t?.length) {
1170
+ l([]), n([]);
1171
+ return;
1172
+ }
1173
+ let e = t.map((e) => {
1174
+ let t = e.url?.split("/") ?? [], n = t[t.length - 1];
1175
+ return {
1176
+ uid: e.uid ?? "",
1177
+ name: n ?? `${Math.random()}.jpg`,
1178
+ status: "done",
1179
+ url: e.url ?? ""
1180
+ };
1181
+ }).filter((e) => !!e.uid), r = e.map((e) => e.uid);
1182
+ l(e), n(r);
1183
+ }, [t]);
1184
+ 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)));
1186
+ }, f = (e) => {
1187
+ let { fileList: t } = e;
1188
+ l(t), r?.(e);
1189
+ }, p = async (e, t) => {
1190
+ let { file: n, onSuccess: r, onError: s } = e, c = n, l = new FormData();
1191
+ l.append("files", n);
1192
+ let u = await i(l);
1193
+ u.status === 201 ? (o({
1194
+ tempName: u.data.data.tempFiles[0],
1195
+ uid: c.uid ?? ""
1196
+ }), r?.("Ok")) : s?.(u.error), a?.(e, t);
1197
+ };
1198
+ return /* @__PURE__ */ P(Ve, {
1199
+ sensors: [u],
1200
+ onDragEnd: d,
1201
+ children: /* @__PURE__ */ P(We, {
1202
+ items: c.map((e) => e.uid),
1203
+ strategy: qe,
1204
+ children: /* @__PURE__ */ P(Be, {
1205
+ ...s,
1206
+ fileList: c,
1207
+ itemRender: (e, t) => /* @__PURE__ */ P(Mn, {
1208
+ originNode: e,
1209
+ file: t
1210
+ }),
1211
+ customRequest: p,
1212
+ onChange: f,
1213
+ children: /* @__PURE__ */ P(V, {
1214
+ icon: /* @__PURE__ */ P(ct, {}),
1215
+ children: e
1216
+ })
1217
+ })
1218
+ })
1219
+ });
86
1220
  };
1221
+ //#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 };