@scbt-ecom/ui 0.7.23 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +175 -174
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +3 -3
- package/dist/hybrid.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/{utils-tailwind-C70VBN9S.js → utils-tailwind-Bh4Yv0Ys.js} +2 -2
- package/dist/utils-tailwind-Bh4Yv0Ys.js.map +1 -0
- package/package.json +1 -1
- package/dist/utils-tailwind-C70VBN9S.js.map +0 -1
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Jn, e as ri, f as KS, h as Sh, m as qS, k as Yb, l as QS, n as eI, o as tI, q as nI, r as rI, i as iI, s as oI, v as sI, w as aI, x as lI, y as Wu, j as x, A as kt, S as Ih, C as Un, E as Nn, F as hs, G as Ze, J as _e, K as ms, M as cI, c as M, I as Fe, O as Zb, Q as uI, R as dI, T as fI, U as pI, V as hI, W as mI, b as gI, u as vI, X as bI, H as yI, Y as xI, _ as CI, Z as wI, B as SI, a as gf, $ as II, a0 as Co, a1 as EI, a2 as Jb, a3 as Ic, a4 as Ec, a5 as AI, a6 as TI, a7 as kI, a8 as MI, a9 as OI, aa as Ub, D as PI, d as RI, ab as Ol, ac as Ac, ad as co, ae as DI, af as uo, p as NI, g as FI, ag as di, N as Mo, L as VI, P as Kb, z as BI } from "./utils-tailwind-
|
|
1
|
+
import { t as Jn, e as ri, f as KS, h as Sh, m as qS, k as Yb, l as QS, n as eI, o as tI, q as nI, r as rI, i as iI, s as oI, v as sI, w as aI, x as lI, y as Wu, j as x, A as kt, S as Ih, C as Un, E as Nn, F as hs, G as Ze, J as _e, K as ms, M as cI, c as M, I as Fe, O as Zb, Q as uI, R as dI, T as fI, U as pI, V as hI, W as mI, b as gI, u as vI, X as bI, H as yI, Y as xI, _ as CI, Z as wI, B as SI, a as gf, $ as II, a0 as Co, a1 as EI, a2 as Jb, a3 as Ic, a4 as Ec, a5 as AI, a6 as TI, a7 as kI, a8 as MI, a9 as OI, aa as Ub, D as PI, d as RI, ab as Ol, ac as Ac, ad as co, ae as DI, af as uo, p as NI, g as FI, ag as di, N as Mo, L as VI, P as Kb, z as BI } from "./utils-tailwind-Bh4Yv0Ys.js";
|
|
2
2
|
import * as I from "react";
|
|
3
3
|
import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as qb, useLayoutEffect as to, useRef as de, useInsertionEffect as Qb, useMemo as we, forwardRef as fi, Fragment as $t, createElement as ey, Children as LI, isValidElement as ty, useState as Oe, cloneElement as jI, useReducer as vf, useSyncExternalStore as GI, createRef as zI, useImperativeHandle as _I, useDebugValue as ny } from "react";
|
|
4
4
|
import * as $u from "react-dom";
|
|
@@ -917,7 +917,7 @@ function vs(t) {
|
|
|
917
917
|
const e = I.useContext(vE);
|
|
918
918
|
return t || e || "ltr";
|
|
919
919
|
}
|
|
920
|
-
var Kn = "Accordion", bE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Sf, yE, xE] = bf(Kn), [Rl,
|
|
920
|
+
var Kn = "Accordion", bE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Sf, yE, xE] = bf(Kn), [Rl, e$] = Un(Kn, [
|
|
921
921
|
xE,
|
|
922
922
|
ry
|
|
923
923
|
]), If = ry(), ly = $.forwardRef(
|
|
@@ -1192,7 +1192,7 @@ var DE = "VisuallyHidden", xy = I.forwardRef(
|
|
|
1192
1192
|
)
|
|
1193
1193
|
);
|
|
1194
1194
|
xy.displayName = DE;
|
|
1195
|
-
var NE = xy, [Nl,
|
|
1195
|
+
var NE = xy, [Nl, t$] = Un("Tooltip", [
|
|
1196
1196
|
Zb
|
|
1197
1197
|
]), Fl = Zb(), Cy = "TooltipProvider", FE = 700, Yu = "tooltip.open", [VE, Af] = Nl(Cy), wy = (t) => {
|
|
1198
1198
|
const {
|
|
@@ -1308,7 +1308,7 @@ var Zu = "TooltipTrigger", Iy = I.forwardRef(
|
|
|
1308
1308
|
}
|
|
1309
1309
|
);
|
|
1310
1310
|
Iy.displayName = Zu;
|
|
1311
|
-
var LE = "TooltipPortal", [
|
|
1311
|
+
var LE = "TooltipPortal", [n$, jE] = Nl(LE, {
|
|
1312
1312
|
forceMount: void 0
|
|
1313
1313
|
}), Hi = "TooltipContent", Ey = I.forwardRef(
|
|
1314
1314
|
(t, e) => {
|
|
@@ -2638,7 +2638,7 @@ var xA = function(t, e) {
|
|
|
2638
2638
|
}
|
|
2639
2639
|
};
|
|
2640
2640
|
};
|
|
2641
|
-
const
|
|
2641
|
+
const r$ = ({ schema: t, ...e }) => vA({
|
|
2642
2642
|
...e,
|
|
2643
2643
|
resolver: CA(t)
|
|
2644
2644
|
}), wA = (t, e) => {
|
|
@@ -2651,7 +2651,7 @@ const n$ = ({ schema: t, ...e }) => vA({
|
|
|
2651
2651
|
return I.useEffect(() => {
|
|
2652
2652
|
n.current !== t && (o(t), n.current = t);
|
|
2653
2653
|
}, [t]), r;
|
|
2654
|
-
},
|
|
2654
|
+
}, i$ = (...t) => fe(
|
|
2655
2655
|
(n) => {
|
|
2656
2656
|
t.forEach((r) => {
|
|
2657
2657
|
r && (typeof r == "function" ? r(n) : r.current = n);
|
|
@@ -2901,7 +2901,7 @@ function Ky(t, e = !1) {
|
|
|
2901
2901
|
function FA(t, e) {
|
|
2902
2902
|
return t.map((n, r) => t[(e + r) % t.length]);
|
|
2903
2903
|
}
|
|
2904
|
-
var qy = Zy, Qy = Uy, Nf = "Tabs", [VA,
|
|
2904
|
+
var qy = Zy, Qy = Uy, Nf = "Tabs", [VA, o$] = Un(Nf, [
|
|
2905
2905
|
Gl
|
|
2906
2906
|
]), e0 = Gl(), [BA, Ff] = VA(Nf), t0 = I.forwardRef(
|
|
2907
2907
|
(t, e) => {
|
|
@@ -3043,7 +3043,7 @@ function c0(t, e) {
|
|
|
3043
3043
|
return `${t}-content-${e}`;
|
|
3044
3044
|
}
|
|
3045
3045
|
var LA = t0, jA = r0, GA = o0, Gh = a0;
|
|
3046
|
-
const
|
|
3046
|
+
const s$ = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeTab: r, classes: i }) => {
|
|
3047
3047
|
var o, s;
|
|
3048
3048
|
return /* @__PURE__ */ x.jsxs(
|
|
3049
3049
|
LA,
|
|
@@ -5778,7 +5778,7 @@ const ho = {
|
|
|
5778
5778
|
function IM(t) {
|
|
5779
5779
|
Object.assign(Aa, t);
|
|
5780
5780
|
}
|
|
5781
|
-
const { schedule: op, cancel:
|
|
5781
|
+
const { schedule: op, cancel: a$ } = d0(queueMicrotask, !1);
|
|
5782
5782
|
class EM extends qb {
|
|
5783
5783
|
/**
|
|
5784
5784
|
* This only mounts projection nodes for components that
|
|
@@ -7792,7 +7792,7 @@ const Vx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
7792
7792
|
className: M("size-8 cursor-pointer text-icon-dark-hover", n == null ? void 0 : n.icon)
|
|
7793
7793
|
}
|
|
7794
7794
|
)
|
|
7795
|
-
] }),
|
|
7795
|
+
] }), c$ = ({
|
|
7796
7796
|
title: t,
|
|
7797
7797
|
children: e,
|
|
7798
7798
|
isModalOpen: n,
|
|
@@ -7832,7 +7832,7 @@ const Vx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
7832
7832
|
}
|
|
7833
7833
|
) });
|
|
7834
7834
|
return /* @__PURE__ */ x.jsx(x.Fragment, { children: r ? Pl(l, i) : l });
|
|
7835
|
-
},
|
|
7835
|
+
}, u$ = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
|
|
7836
7836
|
const { toasts: n } = xI();
|
|
7837
7837
|
return Pe(() => {
|
|
7838
7838
|
n.filter((r) => r.visible).filter((r, i) => i >= t).forEach((r) => CI.dismiss(r.id));
|
|
@@ -7978,7 +7978,7 @@ const Vx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
7978
7978
|
}
|
|
7979
7979
|
}, [e]);
|
|
7980
7980
|
return { passportIsVisible: e, handleShowPassword: r, displayPasswordIcon: i };
|
|
7981
|
-
},
|
|
7981
|
+
}, d$ = ({
|
|
7982
7982
|
label: t,
|
|
7983
7983
|
size: e = "full",
|
|
7984
7984
|
helperText: n,
|
|
@@ -8728,7 +8728,7 @@ function Zx(t) {
|
|
|
8728
8728
|
var e = $P(t);
|
|
8729
8729
|
return $.createElement(Xx, Object.assign({}, e));
|
|
8730
8730
|
}
|
|
8731
|
-
const
|
|
8731
|
+
const f$ = ({
|
|
8732
8732
|
format: t,
|
|
8733
8733
|
allowEmptyFormatting: e = !1,
|
|
8734
8734
|
mask: n = "",
|
|
@@ -8806,7 +8806,7 @@ const d$ = ({
|
|
|
8806
8806
|
] })
|
|
8807
8807
|
}
|
|
8808
8808
|
);
|
|
8809
|
-
},
|
|
8809
|
+
}, p$ = () => /* @__PURE__ */ x.jsx("div", { className: "", children: "Form example" }), Jx = typeof document < "u" ? $.useLayoutEffect : () => {
|
|
8810
8810
|
};
|
|
8811
8811
|
function XP(t) {
|
|
8812
8812
|
const e = de(null);
|
|
@@ -11489,7 +11489,7 @@ const YN = (t) => {
|
|
|
11489
11489
|
o(JN(t, l));
|
|
11490
11490
|
})();
|
|
11491
11491
|
}, [s, t, e]), { setQuery: r, suggestionsOptions: i, debounceQuery: s };
|
|
11492
|
-
},
|
|
11492
|
+
}, g$ = ({
|
|
11493
11493
|
control: t,
|
|
11494
11494
|
helperText: e,
|
|
11495
11495
|
classes: n,
|
|
@@ -11592,7 +11592,7 @@ function Ql(t) {
|
|
|
11592
11592
|
const e = I.useRef({ value: t, previous: t });
|
|
11593
11593
|
return I.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
|
|
11594
11594
|
}
|
|
11595
|
-
var Mp = "Checkbox", [qN,
|
|
11595
|
+
var Mp = "Checkbox", [qN, v$] = Un(Mp), [QN, e2] = qN(Mp), M1 = I.forwardRef(
|
|
11596
11596
|
(t, e) => {
|
|
11597
11597
|
const {
|
|
11598
11598
|
__scopeCheckbox: n,
|
|
@@ -11710,7 +11710,7 @@ function R1(t) {
|
|
|
11710
11710
|
return mr(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
11711
11711
|
}
|
|
11712
11712
|
var n2 = M1, r2 = P1;
|
|
11713
|
-
const
|
|
11713
|
+
const b$ = ({
|
|
11714
11714
|
control: t,
|
|
11715
11715
|
helperText: e,
|
|
11716
11716
|
label: n,
|
|
@@ -11884,7 +11884,7 @@ var a2 = (t) => {
|
|
|
11884
11884
|
function B1(t) {
|
|
11885
11885
|
return t ? "checked" : "unchecked";
|
|
11886
11886
|
}
|
|
11887
|
-
var l2 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Pp = "RadioGroup", [c2,
|
|
11887
|
+
var l2 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Pp = "RadioGroup", [c2, y$] = Un(Pp, [
|
|
11888
11888
|
Gl,
|
|
11889
11889
|
D1
|
|
11890
11890
|
]), L1 = Gl(), j1 = D1(), [u2, d2] = c2(Pp), G1 = I.forwardRef(
|
|
@@ -12002,7 +12002,7 @@ const g2 = gf("flex gap-2", {
|
|
|
12002
12002
|
defaultVariants: {
|
|
12003
12003
|
orientation: "vertical"
|
|
12004
12004
|
}
|
|
12005
|
-
}),
|
|
12005
|
+
}), x$ = ({
|
|
12006
12006
|
radioItemsGroup: t,
|
|
12007
12007
|
control: e,
|
|
12008
12008
|
groupName: n,
|
|
@@ -12093,7 +12093,7 @@ const g2 = gf("flex gap-2", {
|
|
|
12093
12093
|
] })
|
|
12094
12094
|
}
|
|
12095
12095
|
);
|
|
12096
|
-
var Rp = "Switch", [v2,
|
|
12096
|
+
var Rp = "Switch", [v2, C$] = Un(Rp), [b2, y2] = v2(Rp), W1 = I.forwardRef(
|
|
12097
12097
|
(t, e) => {
|
|
12098
12098
|
const {
|
|
12099
12099
|
__scopeSwitch: n,
|
|
@@ -12195,7 +12195,7 @@ function Y1(t) {
|
|
|
12195
12195
|
return t ? "checked" : "unchecked";
|
|
12196
12196
|
}
|
|
12197
12197
|
var C2 = W1, w2 = X1;
|
|
12198
|
-
const
|
|
12198
|
+
const w$ = ({
|
|
12199
12199
|
disabled: t,
|
|
12200
12200
|
classes: e,
|
|
12201
12201
|
control: n,
|
|
@@ -12297,7 +12297,7 @@ var J1 = ["PageUp", "PageDown"], U1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
12297
12297
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
12298
12298
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
12299
12299
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
12300
|
-
}, oo = "Slider", [wd, k2, M2] = bf(oo), [q1,
|
|
12300
|
+
}, oo = "Slider", [wd, k2, M2] = bf(oo), [q1, S$] = Un(oo, [
|
|
12301
12301
|
M2
|
|
12302
12302
|
]), [O2, ec] = q1(oo), Dp = I.forwardRef(
|
|
12303
12303
|
(t, e) => {
|
|
@@ -12720,7 +12720,7 @@ const X2 = I.forwardRef(
|
|
|
12720
12720
|
) })
|
|
12721
12721
|
);
|
|
12722
12722
|
Dp.displayName = aC.displayName;
|
|
12723
|
-
const
|
|
12723
|
+
const I$ = ({
|
|
12724
12724
|
label: t,
|
|
12725
12725
|
size: e = "full",
|
|
12726
12726
|
helperText: n,
|
|
@@ -12832,7 +12832,7 @@ const S$ = ({
|
|
|
12832
12832
|
] })
|
|
12833
12833
|
}
|
|
12834
12834
|
);
|
|
12835
|
-
},
|
|
12835
|
+
}, E$ = ({
|
|
12836
12836
|
label: t,
|
|
12837
12837
|
size: e = "full",
|
|
12838
12838
|
helperText: n,
|
|
@@ -13755,7 +13755,7 @@ const nF = {
|
|
|
13755
13755
|
classes: l
|
|
13756
13756
|
}
|
|
13757
13757
|
)
|
|
13758
|
-
] }), LF = sn(/* @__PURE__ */ new Date(), "dd.MM.yyyy"),
|
|
13758
|
+
] }), LF = sn(/* @__PURE__ */ new Date(), "dd.MM.yyyy"), A$ = ({
|
|
13759
13759
|
control: t,
|
|
13760
13760
|
classes: e,
|
|
13761
13761
|
label: n,
|
|
@@ -13928,10 +13928,10 @@ const nF = {
|
|
|
13928
13928
|
"div",
|
|
13929
13929
|
{
|
|
13930
13930
|
className: M(
|
|
13931
|
-
'flex h-[64px] w-[476px] rounded-sm bg-[length:100%_100%] bg-no-repeat hover:border hover:border-primary-hover hover:bg-color-primary-tr-hover focus-visible:border focus-visible:border-primary-hover focus-visible:bg-color-primary-tr-hover focus-visible:outline-none active:border active:border-primary-hover active:bg-color-primary-tr-pressed [&:not(:hover)(:focus-visible)(:active)(:disabled)]:bg-[url("
|
|
13931
|
+
'flex h-[64px] w-[476px] rounded-sm bg-[length:100%_100%] bg-no-repeat hover:border hover:border-primary-hover hover:bg-color-primary-tr-hover focus-visible:border focus-visible:border-primary-hover focus-visible:bg-color-primary-tr-hover focus-visible:outline-none active:border active:border-primary-hover active:bg-color-primary-tr-pressed [&:not(:hover)(:focus-visible)(:active)(:disabled)]:bg-[url("/static/files/border.svg")]',
|
|
13932
13932
|
n == null ? void 0 : n.borderContent,
|
|
13933
13933
|
{ "bg-color-primary-light-default opacity-50": r },
|
|
13934
|
-
{ '[&:not(:hover)(:focus-visible)(:active)(:disabled)]:bg-[url("
|
|
13934
|
+
{ '[&:not(:hover)(:focus-visible)(:active)(:disabled)]:bg-[url("/static/files/borderError.svg")]': i }
|
|
13935
13935
|
),
|
|
13936
13936
|
ref: s,
|
|
13937
13937
|
...a,
|
|
@@ -16819,7 +16819,7 @@ const _V = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
16819
16819
|
] }),
|
|
16820
16820
|
/* @__PURE__ */ x.jsx($V, { filesStatus: u, removeFile: d, controlledFiles: n })
|
|
16821
16821
|
] });
|
|
16822
|
-
}),
|
|
16822
|
+
}), T$ = ({
|
|
16823
16823
|
control: t,
|
|
16824
16824
|
disabled: e,
|
|
16825
16825
|
helperText: n,
|
|
@@ -20774,7 +20774,7 @@ const D4 = (t, e, n) => ({
|
|
|
20774
20774
|
t == null ? void 0 : t.indicatorIcon
|
|
20775
20775
|
)
|
|
20776
20776
|
}
|
|
20777
|
-
) }), V4 = ({ classes: t, ...e }) => /* @__PURE__ */ x.jsx(oc.MultiValueRemove, { ...e, children: /* @__PURE__ */ x.jsx(Fe, { name: "general/close", className: M("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }),
|
|
20777
|
+
) }), V4 = ({ classes: t, ...e }) => /* @__PURE__ */ x.jsx(oc.MultiValueRemove, { ...e, children: /* @__PURE__ */ x.jsx(Fe, { name: "general/close", className: M("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), k$ = ({
|
|
20778
20778
|
options: t,
|
|
20779
20779
|
control: e,
|
|
20780
20780
|
defaultValue: n,
|
|
@@ -20944,7 +20944,7 @@ const D4 = (t, e, n) => ({
|
|
|
20944
20944
|
r.engName
|
|
20945
20945
|
))
|
|
20946
20946
|
}
|
|
20947
|
-
),
|
|
20947
|
+
), M$ = ({
|
|
20948
20948
|
label: t,
|
|
20949
20949
|
size: e = "full",
|
|
20950
20950
|
helperText: n,
|
|
@@ -34524,7 +34524,8 @@ function EW() {
|
|
|
34524
34524
|
}
|
|
34525
34525
|
process.env.NODE_ENV === "production" ? hf.exports = IW() : hf.exports = EW();
|
|
34526
34526
|
var AW = hf.exports;
|
|
34527
|
-
|
|
34527
|
+
const TW = typeof window < "u" ? to : Pe;
|
|
34528
|
+
class kW {
|
|
34528
34529
|
constructor(e) {
|
|
34529
34530
|
this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = e, this.lastSnapshot = { editor: e, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
|
|
34530
34531
|
}
|
|
@@ -34562,13 +34563,13 @@ class TW {
|
|
|
34562
34563
|
}
|
|
34563
34564
|
}
|
|
34564
34565
|
}
|
|
34565
|
-
function
|
|
34566
|
+
function MW(t) {
|
|
34566
34567
|
var e;
|
|
34567
|
-
const [n] = Oe(() => new
|
|
34568
|
-
return
|
|
34568
|
+
const [n] = Oe(() => new kW(t.editor)), r = AW.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : SW);
|
|
34569
|
+
return TW(() => n.watch(t.editor), [t.editor, n]), ny(r), r;
|
|
34569
34570
|
}
|
|
34570
|
-
const Gb = process.env.NODE_ENV !== "production", mf = typeof window > "u",
|
|
34571
|
-
class
|
|
34571
|
+
const Gb = process.env.NODE_ENV !== "production", mf = typeof window > "u", OW = mf || !!(typeof window < "u" && window.next);
|
|
34572
|
+
class PW {
|
|
34572
34573
|
constructor(e) {
|
|
34573
34574
|
this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
|
|
34574
34575
|
}
|
|
@@ -34577,7 +34578,7 @@ class OW {
|
|
|
34577
34578
|
}
|
|
34578
34579
|
getInitialEditor() {
|
|
34579
34580
|
if (this.options.current.immediatelyRender === void 0)
|
|
34580
|
-
return mf ||
|
|
34581
|
+
return mf || OW ? (Gb && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
|
|
34581
34582
|
if (this.options.current.immediatelyRender && mf && Gb)
|
|
34582
34583
|
throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
|
|
34583
34584
|
return this.options.current.immediatelyRender ? this.createEditor() : null;
|
|
@@ -34699,24 +34700,24 @@ class OW {
|
|
|
34699
34700
|
}, 1);
|
|
34700
34701
|
}
|
|
34701
34702
|
}
|
|
34702
|
-
function
|
|
34703
|
+
function RW(t = {}, e = []) {
|
|
34703
34704
|
const n = de(t);
|
|
34704
34705
|
n.current = t;
|
|
34705
|
-
const [r] = Oe(() => new
|
|
34706
|
-
return ny(i), Pe(r.onRender(e)),
|
|
34706
|
+
const [r] = Oe(() => new PW(n)), i = xc.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
34707
|
+
return ny(i), Pe(r.onRender(e)), MW({
|
|
34707
34708
|
editor: i,
|
|
34708
34709
|
selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
|
|
34709
34710
|
}), i;
|
|
34710
34711
|
}
|
|
34711
|
-
const
|
|
34712
|
+
const DW = qe({
|
|
34712
34713
|
editor: null
|
|
34713
34714
|
});
|
|
34714
|
-
|
|
34715
|
-
const
|
|
34715
|
+
DW.Consumer;
|
|
34716
|
+
const NW = qe({
|
|
34716
34717
|
onDragStart: void 0
|
|
34717
|
-
}),
|
|
34718
|
+
}), FW = () => Me(NW);
|
|
34718
34719
|
$.forwardRef((t, e) => {
|
|
34719
|
-
const { onDragStart: n } =
|
|
34720
|
+
const { onDragStart: n } = FW(), r = t.as || "div";
|
|
34720
34721
|
return (
|
|
34721
34722
|
// @ts-ignore
|
|
34722
34723
|
$.createElement(r, { ...t, ref: e, "data-node-view-wrapper": "", onDragStart: n, style: {
|
|
@@ -34725,7 +34726,7 @@ $.forwardRef((t, e) => {
|
|
|
34725
34726
|
} })
|
|
34726
34727
|
);
|
|
34727
34728
|
});
|
|
34728
|
-
const
|
|
34729
|
+
const VW = /^\s*>\s$/, BW = mn.create({
|
|
34729
34730
|
name: "blockquote",
|
|
34730
34731
|
addOptions() {
|
|
34731
34732
|
return {
|
|
@@ -34758,12 +34759,12 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
34758
34759
|
addInputRules() {
|
|
34759
34760
|
return [
|
|
34760
34761
|
ds({
|
|
34761
|
-
find:
|
|
34762
|
+
find: VW,
|
|
34762
34763
|
type: this.type
|
|
34763
34764
|
})
|
|
34764
34765
|
];
|
|
34765
34766
|
}
|
|
34766
|
-
}),
|
|
34767
|
+
}), LW = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, jW = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, GW = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, zW = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, _W = fn.create({
|
|
34767
34768
|
name: "bold",
|
|
34768
34769
|
addOptions() {
|
|
34769
34770
|
return {
|
|
@@ -34808,11 +34809,11 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
34808
34809
|
addInputRules() {
|
|
34809
34810
|
return [
|
|
34810
34811
|
Qi({
|
|
34811
|
-
find:
|
|
34812
|
+
find: LW,
|
|
34812
34813
|
type: this.type
|
|
34813
34814
|
}),
|
|
34814
34815
|
Qi({
|
|
34815
|
-
find:
|
|
34816
|
+
find: GW,
|
|
34816
34817
|
type: this.type
|
|
34817
34818
|
})
|
|
34818
34819
|
];
|
|
@@ -34820,16 +34821,16 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
34820
34821
|
addPasteRules() {
|
|
34821
34822
|
return [
|
|
34822
34823
|
ui({
|
|
34823
|
-
find:
|
|
34824
|
+
find: jW,
|
|
34824
34825
|
type: this.type
|
|
34825
34826
|
}),
|
|
34826
34827
|
ui({
|
|
34827
|
-
find:
|
|
34828
|
+
find: zW,
|
|
34828
34829
|
type: this.type
|
|
34829
34830
|
})
|
|
34830
34831
|
];
|
|
34831
34832
|
}
|
|
34832
|
-
}),
|
|
34833
|
+
}), HW = "listItem", zb = "textStyle", _b = /^\s*([-+*])\s$/, WW = mn.create({
|
|
34833
34834
|
name: "bulletList",
|
|
34834
34835
|
addOptions() {
|
|
34835
34836
|
return {
|
|
@@ -34853,7 +34854,7 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
34853
34854
|
},
|
|
34854
34855
|
addCommands() {
|
|
34855
34856
|
return {
|
|
34856
|
-
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
34857
|
+
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(HW, this.editor.getAttributes(zb)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
34857
34858
|
};
|
|
34858
34859
|
},
|
|
34859
34860
|
addKeyboardShortcuts() {
|
|
@@ -34877,7 +34878,7 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
34877
34878
|
t
|
|
34878
34879
|
];
|
|
34879
34880
|
}
|
|
34880
|
-
}),
|
|
34881
|
+
}), $W = new RegExp("(?<!`)`([^`]+)`(?!`)"), XW = new RegExp("(?<!`)`([^`]+)`(?!`)", "g"), YW = fn.create({
|
|
34881
34882
|
name: "code",
|
|
34882
34883
|
addOptions() {
|
|
34883
34884
|
return {
|
|
@@ -34910,7 +34911,7 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
34910
34911
|
addInputRules() {
|
|
34911
34912
|
return [
|
|
34912
34913
|
Qi({
|
|
34913
|
-
find:
|
|
34914
|
+
find: $W,
|
|
34914
34915
|
type: this.type
|
|
34915
34916
|
})
|
|
34916
34917
|
];
|
|
@@ -34918,12 +34919,12 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
34918
34919
|
addPasteRules() {
|
|
34919
34920
|
return [
|
|
34920
34921
|
ui({
|
|
34921
|
-
find:
|
|
34922
|
+
find: XW,
|
|
34922
34923
|
type: this.type
|
|
34923
34924
|
})
|
|
34924
34925
|
];
|
|
34925
34926
|
}
|
|
34926
|
-
}),
|
|
34927
|
+
}), ZW = /^```([a-z]+)?[\s\n]$/, JW = /^~~~([a-z]+)?[\s\n]$/, UW = mn.create({
|
|
34927
34928
|
name: "codeBlock",
|
|
34928
34929
|
addOptions() {
|
|
34929
34930
|
return {
|
|
@@ -35014,14 +35015,14 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
35014
35015
|
addInputRules() {
|
|
35015
35016
|
return [
|
|
35016
35017
|
rf({
|
|
35017
|
-
find:
|
|
35018
|
+
find: ZW,
|
|
35018
35019
|
type: this.type,
|
|
35019
35020
|
getAttributes: (t) => ({
|
|
35020
35021
|
language: t[1]
|
|
35021
35022
|
})
|
|
35022
35023
|
}),
|
|
35023
35024
|
rf({
|
|
35024
|
-
find:
|
|
35025
|
+
find: JW,
|
|
35025
35026
|
type: this.type,
|
|
35026
35027
|
getAttributes: (t) => ({
|
|
35027
35028
|
language: t[1]
|
|
@@ -35050,19 +35051,19 @@ const FW = /^\s*>\s$/, VW = mn.create({
|
|
|
35050
35051
|
})
|
|
35051
35052
|
];
|
|
35052
35053
|
}
|
|
35053
|
-
}),
|
|
35054
|
+
}), KW = mn.create({
|
|
35054
35055
|
name: "doc",
|
|
35055
35056
|
topNode: !0,
|
|
35056
35057
|
content: "block+"
|
|
35057
35058
|
});
|
|
35058
|
-
function
|
|
35059
|
+
function qW(t = {}) {
|
|
35059
35060
|
return new Ct({
|
|
35060
35061
|
view(e) {
|
|
35061
|
-
return new
|
|
35062
|
+
return new QW(e, t);
|
|
35062
35063
|
}
|
|
35063
35064
|
});
|
|
35064
35065
|
}
|
|
35065
|
-
class
|
|
35066
|
+
class QW {
|
|
35066
35067
|
constructor(e, n) {
|
|
35067
35068
|
var r;
|
|
35068
35069
|
this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === !1 ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => {
|
|
@@ -35134,7 +35135,7 @@ class qW {
|
|
|
35134
35135
|
(e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
|
|
35135
35136
|
}
|
|
35136
35137
|
}
|
|
35137
|
-
const
|
|
35138
|
+
const e5 = Mt.create({
|
|
35138
35139
|
name: "dropCursor",
|
|
35139
35140
|
addOptions() {
|
|
35140
35141
|
return {
|
|
@@ -35145,7 +35146,7 @@ const QW = Mt.create({
|
|
|
35145
35146
|
},
|
|
35146
35147
|
addProseMirrorPlugins() {
|
|
35147
35148
|
return [
|
|
35148
|
-
|
|
35149
|
+
qW(this.options)
|
|
35149
35150
|
];
|
|
35150
35151
|
}
|
|
35151
35152
|
});
|
|
@@ -35188,7 +35189,7 @@ class et extends Ee {
|
|
|
35188
35189
|
*/
|
|
35189
35190
|
static valid(e) {
|
|
35190
35191
|
let n = e.parent;
|
|
35191
|
-
if (n.isTextblock || !
|
|
35192
|
+
if (n.isTextblock || !t5(e) || !n5(e))
|
|
35192
35193
|
return !1;
|
|
35193
35194
|
let r = n.type.spec.allowGapCursor;
|
|
35194
35195
|
if (r != null)
|
|
@@ -35249,7 +35250,7 @@ class wh {
|
|
|
35249
35250
|
return et.valid(n) ? new et(n) : Ee.near(n);
|
|
35250
35251
|
}
|
|
35251
35252
|
}
|
|
35252
|
-
function
|
|
35253
|
+
function t5(t) {
|
|
35253
35254
|
for (let e = t.depth; e >= 0; e--) {
|
|
35254
35255
|
let n = t.index(e), r = t.node(e);
|
|
35255
35256
|
if (n == 0) {
|
|
@@ -35266,7 +35267,7 @@ function e5(t) {
|
|
|
35266
35267
|
}
|
|
35267
35268
|
return !0;
|
|
35268
35269
|
}
|
|
35269
|
-
function
|
|
35270
|
+
function n5(t) {
|
|
35270
35271
|
for (let e = t.depth; e >= 0; e--) {
|
|
35271
35272
|
let n = t.indexAfter(e), r = t.node(e);
|
|
35272
35273
|
if (n == r.childCount) {
|
|
@@ -35283,20 +35284,20 @@ function t5(t) {
|
|
|
35283
35284
|
}
|
|
35284
35285
|
return !0;
|
|
35285
35286
|
}
|
|
35286
|
-
function
|
|
35287
|
+
function r5() {
|
|
35287
35288
|
return new Ct({
|
|
35288
35289
|
props: {
|
|
35289
|
-
decorations:
|
|
35290
|
+
decorations: a5,
|
|
35290
35291
|
createSelectionBetween(t, e, n) {
|
|
35291
35292
|
return e.pos == n.pos && et.valid(n) ? new et(n) : null;
|
|
35292
35293
|
},
|
|
35293
|
-
handleClick:
|
|
35294
|
-
handleKeyDown:
|
|
35295
|
-
handleDOMEvents: { beforeinput:
|
|
35294
|
+
handleClick: o5,
|
|
35295
|
+
handleKeyDown: i5,
|
|
35296
|
+
handleDOMEvents: { beforeinput: s5 }
|
|
35296
35297
|
}
|
|
35297
35298
|
});
|
|
35298
35299
|
}
|
|
35299
|
-
const
|
|
35300
|
+
const i5 = xS({
|
|
35300
35301
|
ArrowLeft: ea("horiz", -1),
|
|
35301
35302
|
ArrowRight: ea("horiz", 1),
|
|
35302
35303
|
ArrowUp: ea("vert", -1),
|
|
@@ -35315,7 +35316,7 @@ function ea(t, e) {
|
|
|
35315
35316
|
return c ? (i && i(r.tr.setSelection(new et(c))), !0) : !1;
|
|
35316
35317
|
};
|
|
35317
35318
|
}
|
|
35318
|
-
function
|
|
35319
|
+
function o5(t, e, n) {
|
|
35319
35320
|
if (!t || !t.editable)
|
|
35320
35321
|
return !1;
|
|
35321
35322
|
let r = t.state.doc.resolve(e);
|
|
@@ -35324,7 +35325,7 @@ function i5(t, e, n) {
|
|
|
35324
35325
|
let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
35325
35326
|
return i && i.inside > -1 && ge.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new et(r))), !0);
|
|
35326
35327
|
}
|
|
35327
|
-
function
|
|
35328
|
+
function s5(t, e) {
|
|
35328
35329
|
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof et))
|
|
35329
35330
|
return !1;
|
|
35330
35331
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
@@ -35336,17 +35337,17 @@ function o5(t, e) {
|
|
|
35336
35337
|
let o = t.state.tr.replace(n.pos, n.pos, new le(i, 0, 0));
|
|
35337
35338
|
return o.setSelection(Ce.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
|
|
35338
35339
|
}
|
|
35339
|
-
function
|
|
35340
|
+
function a5(t) {
|
|
35340
35341
|
if (!(t.selection instanceof et))
|
|
35341
35342
|
return null;
|
|
35342
35343
|
let e = document.createElement("div");
|
|
35343
35344
|
return e.className = "ProseMirror-gapcursor", ut.create(t.doc, [rn.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
35344
35345
|
}
|
|
35345
|
-
const
|
|
35346
|
+
const l5 = Mt.create({
|
|
35346
35347
|
name: "gapCursor",
|
|
35347
35348
|
addProseMirrorPlugins() {
|
|
35348
35349
|
return [
|
|
35349
|
-
|
|
35350
|
+
r5()
|
|
35350
35351
|
];
|
|
35351
35352
|
},
|
|
35352
35353
|
extendNodeSchema(t) {
|
|
@@ -35360,7 +35361,7 @@ const a5 = Mt.create({
|
|
|
35360
35361
|
allowGapCursor: (e = Te(ce(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
|
|
35361
35362
|
};
|
|
35362
35363
|
}
|
|
35363
|
-
}),
|
|
35364
|
+
}), c5 = mn.create({
|
|
35364
35365
|
name: "hardBreak",
|
|
35365
35366
|
addOptions() {
|
|
35366
35367
|
return {
|
|
@@ -35420,7 +35421,7 @@ pt.prototype.prepend = function(e) {
|
|
|
35420
35421
|
return e.length ? pt.from(e).append(this) : this;
|
|
35421
35422
|
};
|
|
35422
35423
|
pt.prototype.appendInner = function(e) {
|
|
35423
|
-
return new
|
|
35424
|
+
return new u5(this, e);
|
|
35424
35425
|
};
|
|
35425
35426
|
pt.prototype.slice = function(e, n) {
|
|
35426
35427
|
return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? pt.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
|
|
@@ -35475,7 +35476,7 @@ var XS = /* @__PURE__ */ function(t) {
|
|
|
35475
35476
|
}, Object.defineProperties(e.prototype, n), e;
|
|
35476
35477
|
}(pt);
|
|
35477
35478
|
pt.empty = new XS([]);
|
|
35478
|
-
var
|
|
35479
|
+
var u5 = /* @__PURE__ */ function(t) {
|
|
35479
35480
|
function e(n, r) {
|
|
35480
35481
|
t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
|
|
35481
35482
|
}
|
|
@@ -35508,7 +35509,7 @@ var c5 = /* @__PURE__ */ function(t) {
|
|
|
35508
35509
|
return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
|
|
35509
35510
|
}, e;
|
|
35510
35511
|
}(pt);
|
|
35511
|
-
const
|
|
35512
|
+
const d5 = 500;
|
|
35512
35513
|
class cn {
|
|
35513
35514
|
constructor(e, n) {
|
|
35514
35515
|
this.items = e, this.eventCount = n;
|
|
@@ -35550,7 +35551,7 @@ class cn {
|
|
|
35550
35551
|
(p = l && l.merge(f)) && (f = p, u ? o.pop() : a = a.slice(0, a.length - 1)), o.push(f), n && (s++, n = void 0), i || (l = f);
|
|
35551
35552
|
}
|
|
35552
35553
|
let c = s - r.depth;
|
|
35553
|
-
return c >
|
|
35554
|
+
return c > p5 && (a = f5(a, c), s -= c), new cn(a.append(o), s);
|
|
35554
35555
|
}
|
|
35555
35556
|
remapping(e, n) {
|
|
35556
35557
|
let r = new ji();
|
|
@@ -35590,7 +35591,7 @@ class cn {
|
|
|
35590
35591
|
for (let f = n; f < s; f++)
|
|
35591
35592
|
c.push(new Cn(o.maps[f]));
|
|
35592
35593
|
let u = this.items.slice(0, i).append(c).append(r), d = new cn(u, a);
|
|
35593
|
-
return d.emptyItemCount() >
|
|
35594
|
+
return d.emptyItemCount() > d5 && (d = d.compress(this.items.length - r.length)), d;
|
|
35594
35595
|
}
|
|
35595
35596
|
emptyItemCount() {
|
|
35596
35597
|
let e = 0;
|
|
@@ -35622,7 +35623,7 @@ class cn {
|
|
|
35622
35623
|
}
|
|
35623
35624
|
}
|
|
35624
35625
|
cn.empty = new cn(pt.empty, 0);
|
|
35625
|
-
function
|
|
35626
|
+
function f5(t, e) {
|
|
35626
35627
|
let n;
|
|
35627
35628
|
return t.forEach((r, i) => {
|
|
35628
35629
|
if (r.selection && e-- == 0)
|
|
@@ -35646,23 +35647,23 @@ class ar {
|
|
|
35646
35647
|
this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = i, this.prevComposition = o;
|
|
35647
35648
|
}
|
|
35648
35649
|
}
|
|
35649
|
-
const
|
|
35650
|
-
function
|
|
35650
|
+
const p5 = 20;
|
|
35651
|
+
function h5(t, e, n, r) {
|
|
35651
35652
|
let i = n.getMeta(ni), o;
|
|
35652
35653
|
if (i)
|
|
35653
35654
|
return i.historyState;
|
|
35654
|
-
n.getMeta(
|
|
35655
|
+
n.getMeta(v5) && (t = new ar(t.done, t.undone, null, 0, -1));
|
|
35655
35656
|
let s = n.getMeta("appendedTransaction");
|
|
35656
35657
|
if (n.steps.length == 0)
|
|
35657
35658
|
return t;
|
|
35658
35659
|
if (s && s.getMeta(ni))
|
|
35659
35660
|
return s.getMeta(ni).redo ? new ar(t.done.addTransform(n, void 0, r, ha(e)), t.undone, Hb(n.mapping.maps), t.prevTime, t.prevComposition) : new ar(t.done, t.undone.addTransform(n, void 0, r, ha(e)), null, t.prevTime, t.prevComposition);
|
|
35660
35661
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
35661
|
-
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !
|
|
35662
|
+
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !m5(n, t.prevRanges)), c = s ? _u(t.prevRanges, n.mapping) : Hb(n.mapping.maps);
|
|
35662
35663
|
return new ar(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ha(e)), cn.empty, c, n.time, a ?? t.prevComposition);
|
|
35663
35664
|
} else return (o = n.getMeta("rebased")) ? new ar(t.done.rebased(n, o), t.undone.rebased(n, o), _u(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new ar(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), _u(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
35664
35665
|
}
|
|
35665
|
-
function
|
|
35666
|
+
function m5(t, e) {
|
|
35666
35667
|
if (!e)
|
|
35667
35668
|
return !1;
|
|
35668
35669
|
if (!t.docChanged)
|
|
@@ -35689,7 +35690,7 @@ function _u(t, e) {
|
|
|
35689
35690
|
}
|
|
35690
35691
|
return n;
|
|
35691
35692
|
}
|
|
35692
|
-
function
|
|
35693
|
+
function g5(t, e, n) {
|
|
35693
35694
|
let r = ha(e), i = ni.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
|
|
35694
35695
|
if (!o)
|
|
35695
35696
|
return null;
|
|
@@ -35709,8 +35710,8 @@ function ha(t) {
|
|
|
35709
35710
|
}
|
|
35710
35711
|
return Hu;
|
|
35711
35712
|
}
|
|
35712
|
-
const ni = new Zt("history"),
|
|
35713
|
-
function
|
|
35713
|
+
const ni = new Zt("history"), v5 = new Zt("closeHistory");
|
|
35714
|
+
function b5(t = {}) {
|
|
35714
35715
|
return t = {
|
|
35715
35716
|
depth: t.depth || 100,
|
|
35716
35717
|
newGroupDelay: t.newGroupDelay || 500
|
|
@@ -35721,7 +35722,7 @@ function v5(t = {}) {
|
|
|
35721
35722
|
return new ar(cn.empty, cn.empty, null, 0, -1);
|
|
35722
35723
|
},
|
|
35723
35724
|
apply(e, n, r) {
|
|
35724
|
-
return
|
|
35725
|
+
return h5(n, r, e, t);
|
|
35725
35726
|
}
|
|
35726
35727
|
},
|
|
35727
35728
|
config: t,
|
|
@@ -35741,13 +35742,13 @@ function YS(t, e) {
|
|
|
35741
35742
|
if (!i || (t ? i.undone : i.done).eventCount == 0)
|
|
35742
35743
|
return !1;
|
|
35743
35744
|
if (r) {
|
|
35744
|
-
let o =
|
|
35745
|
+
let o = g5(i, n, t);
|
|
35745
35746
|
o && r(e ? o.scrollIntoView() : o);
|
|
35746
35747
|
}
|
|
35747
35748
|
return !0;
|
|
35748
35749
|
};
|
|
35749
35750
|
}
|
|
35750
|
-
const ZS = YS(!1, !0), JS = YS(!0, !0),
|
|
35751
|
+
const ZS = YS(!1, !0), JS = YS(!0, !0), y5 = Mt.create({
|
|
35751
35752
|
name: "history",
|
|
35752
35753
|
addOptions() {
|
|
35753
35754
|
return {
|
|
@@ -35763,7 +35764,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35763
35764
|
},
|
|
35764
35765
|
addProseMirrorPlugins() {
|
|
35765
35766
|
return [
|
|
35766
|
-
|
|
35767
|
+
b5(this.options)
|
|
35767
35768
|
];
|
|
35768
35769
|
},
|
|
35769
35770
|
addKeyboardShortcuts() {
|
|
@@ -35776,7 +35777,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35776
35777
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
35777
35778
|
};
|
|
35778
35779
|
}
|
|
35779
|
-
}),
|
|
35780
|
+
}), x5 = mn.create({
|
|
35780
35781
|
name: "horizontalRule",
|
|
35781
35782
|
addOptions() {
|
|
35782
35783
|
return {
|
|
@@ -35826,7 +35827,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35826
35827
|
})
|
|
35827
35828
|
];
|
|
35828
35829
|
}
|
|
35829
|
-
}),
|
|
35830
|
+
}), C5 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, w5 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, S5 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, I5 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, E5 = fn.create({
|
|
35830
35831
|
name: "italic",
|
|
35831
35832
|
addOptions() {
|
|
35832
35833
|
return {
|
|
@@ -35870,11 +35871,11 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35870
35871
|
addInputRules() {
|
|
35871
35872
|
return [
|
|
35872
35873
|
Qi({
|
|
35873
|
-
find:
|
|
35874
|
+
find: C5,
|
|
35874
35875
|
type: this.type
|
|
35875
35876
|
}),
|
|
35876
35877
|
Qi({
|
|
35877
|
-
find:
|
|
35878
|
+
find: S5,
|
|
35878
35879
|
type: this.type
|
|
35879
35880
|
})
|
|
35880
35881
|
];
|
|
@@ -35882,16 +35883,16 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35882
35883
|
addPasteRules() {
|
|
35883
35884
|
return [
|
|
35884
35885
|
ui({
|
|
35885
|
-
find:
|
|
35886
|
+
find: w5,
|
|
35886
35887
|
type: this.type
|
|
35887
35888
|
}),
|
|
35888
35889
|
ui({
|
|
35889
|
-
find:
|
|
35890
|
+
find: I5,
|
|
35890
35891
|
type: this.type
|
|
35891
35892
|
})
|
|
35892
35893
|
];
|
|
35893
35894
|
}
|
|
35894
|
-
}),
|
|
35895
|
+
}), A5 = mn.create({
|
|
35895
35896
|
name: "listItem",
|
|
35896
35897
|
addOptions() {
|
|
35897
35898
|
return {
|
|
@@ -35919,7 +35920,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35919
35920
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
35920
35921
|
};
|
|
35921
35922
|
}
|
|
35922
|
-
}),
|
|
35923
|
+
}), T5 = "listItem", $b = "textStyle", Xb = /^(\d+)\.\s$/, k5 = mn.create({
|
|
35923
35924
|
name: "orderedList",
|
|
35924
35925
|
addOptions() {
|
|
35925
35926
|
return {
|
|
@@ -35958,7 +35959,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35958
35959
|
},
|
|
35959
35960
|
addCommands() {
|
|
35960
35961
|
return {
|
|
35961
|
-
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
35962
|
+
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(T5, this.editor.getAttributes($b)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
35962
35963
|
};
|
|
35963
35964
|
},
|
|
35964
35965
|
addKeyboardShortcuts() {
|
|
@@ -35985,7 +35986,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
35985
35986
|
t
|
|
35986
35987
|
];
|
|
35987
35988
|
}
|
|
35988
|
-
}),
|
|
35989
|
+
}), M5 = mn.create({
|
|
35989
35990
|
name: "paragraph",
|
|
35990
35991
|
priority: 1e3,
|
|
35991
35992
|
addOptions() {
|
|
@@ -36013,7 +36014,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36013
36014
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
36014
36015
|
};
|
|
36015
36016
|
}
|
|
36016
|
-
}),
|
|
36017
|
+
}), O5 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, P5 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, R5 = fn.create({
|
|
36017
36018
|
name: "strike",
|
|
36018
36019
|
addOptions() {
|
|
36019
36020
|
return {
|
|
@@ -36056,7 +36057,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36056
36057
|
addInputRules() {
|
|
36057
36058
|
return [
|
|
36058
36059
|
Qi({
|
|
36059
|
-
find:
|
|
36060
|
+
find: O5,
|
|
36060
36061
|
type: this.type
|
|
36061
36062
|
})
|
|
36062
36063
|
];
|
|
@@ -36064,35 +36065,35 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36064
36065
|
addPasteRules() {
|
|
36065
36066
|
return [
|
|
36066
36067
|
ui({
|
|
36067
|
-
find:
|
|
36068
|
+
find: P5,
|
|
36068
36069
|
type: this.type
|
|
36069
36070
|
})
|
|
36070
36071
|
];
|
|
36071
36072
|
}
|
|
36072
|
-
}),
|
|
36073
|
+
}), D5 = mn.create({
|
|
36073
36074
|
name: "text",
|
|
36074
36075
|
group: "inline"
|
|
36075
|
-
}),
|
|
36076
|
+
}), N5 = Mt.create({
|
|
36076
36077
|
name: "starterKit",
|
|
36077
36078
|
addExtensions() {
|
|
36078
36079
|
var t, e, n, r, i, o, s, a, l, c, u, d, f, p, h, m, g, v;
|
|
36079
36080
|
const b = [];
|
|
36080
|
-
return this.options.bold !== !1 && b.push(
|
|
36081
|
+
return this.options.bold !== !1 && b.push(_W.configure((t = this.options) === null || t === void 0 ? void 0 : t.bold)), this.options.blockquote !== !1 && b.push(BW.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && b.push(WW.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && b.push(YW.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && b.push(UW.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && b.push(KW.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && b.push(e5.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && b.push(l5.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && b.push(c5.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && b.push(BS.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && b.push(y5.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && b.push(x5.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && b.push(E5.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && b.push(A5.configure((p = this.options) === null || p === void 0 ? void 0 : p.listItem)), this.options.orderedList !== !1 && b.push(k5.configure((h = this.options) === null || h === void 0 ? void 0 : h.orderedList)), this.options.paragraph !== !1 && b.push(M5.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && b.push(R5.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && b.push(D5.configure((v = this.options) === null || v === void 0 ? void 0 : v.text)), b;
|
|
36081
36082
|
}
|
|
36082
|
-
}),
|
|
36083
|
+
}), F5 = [
|
|
36083
36084
|
{ shortcuts: ["ctrl", "alt", "1"], level: 1 },
|
|
36084
36085
|
{ shortcuts: ["ctrl", "alt", "2"], level: 2 },
|
|
36085
36086
|
{ shortcuts: ["ctrl", "alt", "3"], level: 3 },
|
|
36086
36087
|
{ shortcuts: ["ctrl", "alt", "4"], level: 4 }
|
|
36087
36088
|
// {shortcuts: ['ctrl', 'alt', '5'],level: 5},
|
|
36088
36089
|
// {shortcuts: ['ctrl', 'alt', '6'],level: 6}
|
|
36089
|
-
],
|
|
36090
|
+
], V5 = {
|
|
36090
36091
|
1: "mob-headline-bold-m desktop:desk-headline-bold-l",
|
|
36091
36092
|
2: "mob-headline-bold-s desktop:desk-headline-bold-m",
|
|
36092
36093
|
3: "mob-title-bold-l desktop:desk-title-bold-l",
|
|
36093
36094
|
4: "mob-title-bold-m desktop:desk-title-bold-s"
|
|
36094
36095
|
//TODO: Добавить h5/h6 для компонента heading , после добавить сюда
|
|
36095
|
-
},
|
|
36096
|
+
}, B5 = [
|
|
36096
36097
|
{ name: "Черный", color: "#292929" },
|
|
36097
36098
|
{ name: "Белый", color: "#FFFFFF" },
|
|
36098
36099
|
{ name: "Темный-серый", color: "#40465A" },
|
|
@@ -36105,7 +36106,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36105
36106
|
{ name: "Зеленый", color: "#76BC21" },
|
|
36106
36107
|
{ name: "Оранжевый", color: "#F49F00" },
|
|
36107
36108
|
{ name: "Красный", color: "#F42500" }
|
|
36108
|
-
],
|
|
36109
|
+
], L5 = (t) => [
|
|
36109
36110
|
{
|
|
36110
36111
|
label: "Жирный текст",
|
|
36111
36112
|
icon: /* @__PURE__ */ x.jsx(Fe, { name: "editor/bold", className: "size-4" }),
|
|
@@ -36166,9 +36167,9 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36166
36167
|
icon: /* @__PURE__ */ x.jsx(Fe, { name: "general/close", className: "size-4" }),
|
|
36167
36168
|
onClick: () => t.commands.clearContent()
|
|
36168
36169
|
}
|
|
36169
|
-
],
|
|
36170
|
+
], j5 = ({ editor: t }) => {
|
|
36170
36171
|
var e;
|
|
36171
|
-
return /* @__PURE__ */ x.jsx("div", { className: "flex items-center gap-3", children: (e =
|
|
36172
|
+
return /* @__PURE__ */ x.jsx("div", { className: "flex items-center gap-3", children: (e = L5(t)) == null ? void 0 : e.map(({ label: n, icon: r, onClick: i, isActive: o }) => /* @__PURE__ */ x.jsx(
|
|
36172
36173
|
Xy,
|
|
36173
36174
|
{
|
|
36174
36175
|
sideOffset: 12,
|
|
@@ -36191,7 +36192,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36191
36192
|
},
|
|
36192
36193
|
n
|
|
36193
36194
|
)) });
|
|
36194
|
-
},
|
|
36195
|
+
}, G5 = ({ editor: t }) => /* @__PURE__ */ x.jsx(
|
|
36195
36196
|
Kb,
|
|
36196
36197
|
{
|
|
36197
36198
|
classes: { content: "w-full" },
|
|
@@ -36203,7 +36204,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36203
36204
|
children: /* @__PURE__ */ x.jsx(Fe, { name: "editor/heading", className: "size-4" })
|
|
36204
36205
|
}
|
|
36205
36206
|
),
|
|
36206
|
-
children: /* @__PURE__ */ x.jsx("div", { className: "flex w-full flex-1 flex-col gap-2", children:
|
|
36207
|
+
children: /* @__PURE__ */ x.jsx("div", { className: "flex w-full flex-1 flex-col gap-2", children: F5.map(({ level: e, shortcuts: n }) => /* @__PURE__ */ x.jsxs("div", { className: "flex items-center gap-4 border-b border-solid border-warm-grey-200 pb-4 last:border-none", children: [
|
|
36207
36208
|
/* @__PURE__ */ x.jsx(
|
|
36208
36209
|
"button",
|
|
36209
36210
|
{
|
|
@@ -36219,12 +36220,12 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36219
36220
|
/* @__PURE__ */ x.jsx(mP, { keyList: n })
|
|
36220
36221
|
] }, e)) })
|
|
36221
36222
|
}
|
|
36222
|
-
),
|
|
36223
|
+
), z5 = BI.string().url(), _5 = ({ editor: t }) => {
|
|
36223
36224
|
const e = fe(() => {
|
|
36224
36225
|
const n = t == null ? void 0 : t.getAttributes("link").href, r = window == null ? void 0 : window.prompt("URL", n);
|
|
36225
36226
|
if (r === null)
|
|
36226
36227
|
return;
|
|
36227
|
-
if (
|
|
36228
|
+
if (z5.safeParse(r).success)
|
|
36228
36229
|
Mo({ intent: "info", text: "Ссылка успешно вставлена" });
|
|
36229
36230
|
else {
|
|
36230
36231
|
Mo({ intent: "error", text: "Невалидная ссылка" });
|
|
@@ -36248,7 +36249,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36248
36249
|
children: /* @__PURE__ */ x.jsx(Fe, { name: "editor/link", className: "size-4" })
|
|
36249
36250
|
}
|
|
36250
36251
|
);
|
|
36251
|
-
},
|
|
36252
|
+
}, H5 = ({ editor: t }) => /* @__PURE__ */ x.jsx(
|
|
36252
36253
|
Kb,
|
|
36253
36254
|
{
|
|
36254
36255
|
classes: {
|
|
@@ -36263,7 +36264,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36263
36264
|
children: /* @__PURE__ */ x.jsx(Fe, { name: "editor/palette", className: "size-4" })
|
|
36264
36265
|
}
|
|
36265
36266
|
),
|
|
36266
|
-
children: /* @__PURE__ */ x.jsx("div", { className: "grid grid-cols-2 gap-3", children:
|
|
36267
|
+
children: /* @__PURE__ */ x.jsx("div", { className: "grid grid-cols-2 gap-3", children: B5.map(({ name: e, color: n }) => /* @__PURE__ */ x.jsx(
|
|
36267
36268
|
"button",
|
|
36268
36269
|
{
|
|
36269
36270
|
type: "button",
|
|
@@ -36278,17 +36279,17 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36278
36279
|
e
|
|
36279
36280
|
)) })
|
|
36280
36281
|
}
|
|
36281
|
-
),
|
|
36282
|
-
/* @__PURE__ */ x.jsx(
|
|
36282
|
+
), W5 = ({ editor: t }) => /* @__PURE__ */ x.jsxs("div", { className: "flex items-center gap-12 bg-color-blue-grey-200 px-4 py-3", children: [
|
|
36283
|
+
/* @__PURE__ */ x.jsx(j5, { editor: t }),
|
|
36283
36284
|
/* @__PURE__ */ x.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
36284
|
-
/* @__PURE__ */ x.jsx(
|
|
36285
|
-
/* @__PURE__ */ x.jsx(
|
|
36286
|
-
/* @__PURE__ */ x.jsx(
|
|
36285
|
+
/* @__PURE__ */ x.jsx(H5, { editor: t }),
|
|
36286
|
+
/* @__PURE__ */ x.jsx(G5, { editor: t }),
|
|
36287
|
+
/* @__PURE__ */ x.jsx(_5, { editor: t })
|
|
36287
36288
|
] })
|
|
36288
|
-
] }),
|
|
36289
|
-
const a =
|
|
36289
|
+
] }), $5 = ({ onChange: t, value: e, label: n, error: r, classes: i, editable: o, helperText: s }) => {
|
|
36290
|
+
const a = RW({
|
|
36290
36291
|
extensions: [
|
|
36291
|
-
|
|
36292
|
+
N5.configure({
|
|
36292
36293
|
heading: !1,
|
|
36293
36294
|
bold: {
|
|
36294
36295
|
HTMLAttributes: {
|
|
@@ -36317,7 +36318,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36317
36318
|
return [
|
|
36318
36319
|
`h${d}`,
|
|
36319
36320
|
lt(this.options.HTMLAttributes, c, {
|
|
36320
|
-
class: `${
|
|
36321
|
+
class: `${V5[d]}`
|
|
36321
36322
|
}),
|
|
36322
36323
|
0
|
|
36323
36324
|
];
|
|
@@ -36350,7 +36351,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36350
36351
|
});
|
|
36351
36352
|
return a ? /* @__PURE__ */ x.jsxs("div", { className: M("flex flex-col", i == null ? void 0 : i.root), children: [
|
|
36352
36353
|
/* @__PURE__ */ x.jsxs("div", { className: M("relative flex w-full flex-col rounded-md border border-solid border-warm-grey-200", i == null ? void 0 : i.wrapper), children: [
|
|
36353
|
-
/* @__PURE__ */ x.jsx(
|
|
36354
|
+
/* @__PURE__ */ x.jsx(W5, { editor: a }),
|
|
36354
36355
|
!e && /* @__PURE__ */ x.jsx("p", { className: "absolute left-4 top-16 text-color-disabled", children: n }),
|
|
36355
36356
|
/* @__PURE__ */ x.jsx(CW, { editor: a })
|
|
36356
36357
|
] }),
|
|
@@ -36364,7 +36365,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36364
36365
|
}
|
|
36365
36366
|
)
|
|
36366
36367
|
] }) : null;
|
|
36367
|
-
},
|
|
36368
|
+
}, P$ = ({
|
|
36368
36369
|
control: t,
|
|
36369
36370
|
name: e,
|
|
36370
36371
|
label: n,
|
|
@@ -36377,7 +36378,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36377
36378
|
name: e,
|
|
36378
36379
|
control: t,
|
|
36379
36380
|
render: ({ field: { onChange: s, value: a }, fieldState: { error: l } }) => /* @__PURE__ */ x.jsx(
|
|
36380
|
-
|
|
36381
|
+
$5,
|
|
36381
36382
|
{
|
|
36382
36383
|
onChange: s,
|
|
36383
36384
|
value: a,
|
|
@@ -36389,7 +36390,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36389
36390
|
}
|
|
36390
36391
|
)
|
|
36391
36392
|
}
|
|
36392
|
-
),
|
|
36393
|
+
), X5 = (t, e) => {
|
|
36393
36394
|
switch (t) {
|
|
36394
36395
|
case "country":
|
|
36395
36396
|
return e.matches;
|
|
@@ -36398,7 +36399,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36398
36399
|
default:
|
|
36399
36400
|
return e.suggestions;
|
|
36400
36401
|
}
|
|
36401
|
-
},
|
|
36402
|
+
}, Y5 = (t, e) => {
|
|
36402
36403
|
switch (t) {
|
|
36403
36404
|
case "country":
|
|
36404
36405
|
return e == null ? void 0 : e.map((n) => ({
|
|
@@ -36428,7 +36429,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36428
36429
|
default:
|
|
36429
36430
|
return [];
|
|
36430
36431
|
}
|
|
36431
|
-
},
|
|
36432
|
+
}, Z5 = async (t, e, n) => {
|
|
36432
36433
|
try {
|
|
36433
36434
|
const r = await fetch(`${n}/${e}`, {
|
|
36434
36435
|
method: "POST",
|
|
@@ -36440,19 +36441,19 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36440
36441
|
});
|
|
36441
36442
|
if (!r.ok) throw new Error("error");
|
|
36442
36443
|
const i = await r.json();
|
|
36443
|
-
return
|
|
36444
|
+
return X5(e, i);
|
|
36444
36445
|
} catch (r) {
|
|
36445
36446
|
return console.error(r), [];
|
|
36446
36447
|
}
|
|
36447
|
-
},
|
|
36448
|
+
}, J5 = (t, e) => {
|
|
36448
36449
|
const [n, r] = I.useState(""), [i, o] = I.useState(null), s = $y(n, 300);
|
|
36449
36450
|
return I.useEffect(() => {
|
|
36450
36451
|
s && (async () => {
|
|
36451
|
-
const l = await
|
|
36452
|
-
o(
|
|
36452
|
+
const l = await Z5(s, t, e);
|
|
36453
|
+
o(Y5(t, l));
|
|
36453
36454
|
})();
|
|
36454
36455
|
}, [s, t, e]), { setQuery: r, suggestionsOptions: i, debounceQuery: s };
|
|
36455
|
-
},
|
|
36456
|
+
}, U5 = ({ suggestionsOptions: t }) => /* @__PURE__ */ x.jsx(
|
|
36456
36457
|
kp,
|
|
36457
36458
|
{
|
|
36458
36459
|
transition: !0,
|
|
@@ -36489,7 +36490,7 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36489
36490
|
onKeyDownIcon: f,
|
|
36490
36491
|
...p
|
|
36491
36492
|
}) => {
|
|
36492
|
-
const { setQuery: h, suggestionsOptions: m } =
|
|
36493
|
+
const { setQuery: h, suggestionsOptions: m } = J5(s, a), g = I.useId();
|
|
36493
36494
|
return /* @__PURE__ */ x.jsx(
|
|
36494
36495
|
_t,
|
|
36495
36496
|
{
|
|
@@ -36546,41 +36547,41 @@ const ZS = YS(!1, !0), JS = YS(!0, !0), b5 = Mt.create({
|
|
|
36546
36547
|
disabled: o
|
|
36547
36548
|
}
|
|
36548
36549
|
),
|
|
36549
|
-
/* @__PURE__ */ x.jsx(
|
|
36550
|
+
/* @__PURE__ */ x.jsx(U5, { suggestionsOptions: m })
|
|
36550
36551
|
] }) })
|
|
36551
36552
|
}
|
|
36552
36553
|
);
|
|
36553
|
-
},
|
|
36554
|
+
}, R$ = ({ control: t, name: e, label: n, baseUrl: r }) => /* @__PURE__ */ x.jsx(Rs, { control: t, name: e, label: n, dadataType: "fio", dadataBaseUrl: r }), D$ = ({ control: t, name: e, label: n, baseUrl: r }) => /* @__PURE__ */ x.jsx(Rs, { control: t, name: e, label: n, dadataType: "address", dadataBaseUrl: r }), N$ = ({ control: t, name: e, label: n, baseUrl: r }) => /* @__PURE__ */ x.jsx(Rs, { control: t, name: e, label: n, dadataType: "party", dadataBaseUrl: r }), F$ = ({ control: t, name: e, label: n, baseUrl: r }) => /* @__PURE__ */ x.jsx(Rs, { control: t, name: e, label: n, dadataType: "country", dadataBaseUrl: r }), V$ = ({ control: t, name: e, label: n, baseUrl: r }) => /* @__PURE__ */ x.jsx(Rs, { control: t, name: e, label: n, dadataType: "auto", dadataBaseUrl: r });
|
|
36554
36555
|
export {
|
|
36555
36556
|
RE as Accordion,
|
|
36556
|
-
|
|
36557
|
-
|
|
36558
|
-
|
|
36559
|
-
|
|
36560
|
-
|
|
36561
|
-
|
|
36562
|
-
|
|
36563
|
-
|
|
36564
|
-
|
|
36565
|
-
|
|
36566
|
-
|
|
36567
|
-
|
|
36568
|
-
|
|
36569
|
-
|
|
36570
|
-
|
|
36571
|
-
|
|
36572
|
-
|
|
36573
|
-
|
|
36557
|
+
A$ as CalendarControl,
|
|
36558
|
+
b$ as CheckboxControl,
|
|
36559
|
+
k$ as ComboboxControl,
|
|
36560
|
+
D$ as DadataAddress,
|
|
36561
|
+
V$ as DadataAuto,
|
|
36562
|
+
F$ as DadataCountry,
|
|
36563
|
+
R$ as DadataFio,
|
|
36564
|
+
g$ as DadataInputControl,
|
|
36565
|
+
N$ as DadataOrganization,
|
|
36566
|
+
P$ as EditorControl,
|
|
36567
|
+
p$ as FormControl,
|
|
36568
|
+
d$ as InputControl,
|
|
36569
|
+
f$ as InputControlMask,
|
|
36570
|
+
T$ as InputControlUploader,
|
|
36571
|
+
M$ as InputCurrencyControl,
|
|
36572
|
+
I$ as InputSliderControl,
|
|
36573
|
+
c$ as Modal,
|
|
36574
|
+
u$ as NotificationProvider,
|
|
36574
36575
|
Kb as Popover,
|
|
36575
|
-
|
|
36576
|
-
|
|
36577
|
-
|
|
36578
|
-
|
|
36576
|
+
x$ as RadioControl,
|
|
36577
|
+
w$ as SwitchControl,
|
|
36578
|
+
s$ as TabsSwitcher,
|
|
36579
|
+
E$ as TextareaControl,
|
|
36579
36580
|
wA as debounce,
|
|
36580
36581
|
Tc as useBoolean,
|
|
36581
36582
|
Tf as useClickOutside,
|
|
36582
|
-
|
|
36583
|
-
|
|
36583
|
+
i$ as useCombineRef,
|
|
36584
|
+
r$ as useControlledForm,
|
|
36584
36585
|
SA as useDebounceCallback,
|
|
36585
36586
|
$y as useDebounceValue,
|
|
36586
36587
|
vI as useDevice
|