@scbt-ecom/ui 0.35.1 → 0.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shared/ui/formElements/uncontrolled/autocomplete/Autocomplete.d.ts +3 -1
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +4 -2
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
- package/dist/ui.js +104 -108
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -6,7 +6,7 @@ var pe = (t, e, n) => (xc(t, e, "read from private field"), n ? n.call(t) : e.ge
|
|
|
6
6
|
import { j as P, c as Al, R as Z1, B as Ev, I as ze, e as yt, f as Pr, g as Cv, u as pn, h as eS, i as qe, k as Rl, D as tS, l as nS, m as rS, n as iS, o as hf, p as ki, q as oS, r as Tv, s as Nl, t as sS, A as aS, H as lS, d as cS, v as uS, w as Ro, x as dS, y as Ov, z as wc, E as kc, F as fS, G as pS, J as hS, K as mS, M as gS, N as yS, O as Il, _ as Si, L as vS, a as jl } from "./CustomLink-fcD_1hIU.js";
|
|
7
7
|
import { C as QH, P as XH, S as ZH, b as e5 } from "./CustomLink-fcD_1hIU.js";
|
|
8
8
|
import * as B from "react";
|
|
9
|
-
import oe, { forwardRef as
|
|
9
|
+
import oe, { forwardRef as ot, createContext as st, useContext as _e, useState as Ae, useEffect as Fe, useMemo as De, useCallback as Oe, useRef as we, useId as Ut, useInsertionEffect as Mv, Children as Ui, isValidElement as io, useLayoutEffect as Is, Fragment as un, createElement as mf, Component as bS, cloneElement as gf, useReducer as yf, useSyncExternalStore as xS, createRef as wS, memo as Dv, useImperativeHandle as kS, useDebugValue as Pv } from "react";
|
|
10
10
|
import { c as ee } from "./cn-DIfn7EPB.js";
|
|
11
11
|
import { t as ht, c as bn, g as uh, m as SS, a as Av, b as Rv, d as ES, e as CS, f as Nv, h as Iv, j as vf, i as bf, l as TS, k as OS, n as MS, w as DS, s as Iu, o as Sc, q as Eo, r as PS, u as Co, v as AS, x as RS, y as jv, A as Lv, B as Fr, D as Wo, p as Fv, C as Ec, z as Cc, V as dh } from "./utils-b38KjjXe.js";
|
|
12
12
|
import { u as NS } from "./useDevice-L83kSsN7.js";
|
|
@@ -878,7 +878,7 @@ const fE = Al(
|
|
|
878
878
|
size: "lg"
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
|
-
), TH =
|
|
881
|
+
), TH = ot(
|
|
882
882
|
({ size: t, intent: e, children: n, classes: r, type: i = "button", ...o }, s) => /* @__PURE__ */ P.jsx("button", { ref: s, type: i, className: ee(fE({ intent: e, size: t }), r == null ? void 0 : r.button), ...o, children: /* @__PURE__ */ P.jsx("span", { className: ee(r == null ? void 0 : r.icon), children: n }) })
|
|
883
883
|
), OH = ({ className: t }) => /* @__PURE__ */ P.jsx("div", { className: ee("skeleton-apply h-full w-full", t) }), MH = ({ isVisible: t, classes: e, children: n, buttonProps: r }) => /* @__PURE__ */ P.jsxs(
|
|
884
884
|
Z1,
|
|
@@ -1858,7 +1858,7 @@ function cC(t) {
|
|
|
1858
1858
|
function uC(t) {
|
|
1859
1859
|
return oe.createElement("div", { ...t });
|
|
1860
1860
|
}
|
|
1861
|
-
const Hv =
|
|
1861
|
+
const Hv = st(void 0);
|
|
1862
1862
|
function Ci() {
|
|
1863
1863
|
const t = _e(Hv);
|
|
1864
1864
|
if (t === void 0)
|
|
@@ -2666,12 +2666,12 @@ function kT(t) {
|
|
|
2666
2666
|
)
|
|
2667
2667
|
);
|
|
2668
2668
|
}
|
|
2669
|
-
const Ef =
|
|
2669
|
+
const Ef = st({});
|
|
2670
2670
|
function Cf(t) {
|
|
2671
2671
|
const e = we(null);
|
|
2672
2672
|
return e.current === null && (e.current = t()), e.current;
|
|
2673
2673
|
}
|
|
2674
|
-
const Bl =
|
|
2674
|
+
const Bl = st(null), Tf = st({
|
|
2675
2675
|
transformPagePoint: (t) => t,
|
|
2676
2676
|
isStatic: !1,
|
|
2677
2677
|
reducedMotion: "never"
|
|
@@ -2896,7 +2896,7 @@ function ib(t, e) {
|
|
|
2896
2896
|
s[Zs[b]].cancel(y);
|
|
2897
2897
|
}, state: i, steps: s };
|
|
2898
2898
|
}
|
|
2899
|
-
const { schedule: Ze, cancel: Or, state: Ct, steps: Oc } = ib(typeof requestAnimationFrame < "u" ? requestAnimationFrame : qt, !0), ob =
|
|
2899
|
+
const { schedule: Ze, cancel: Or, state: Ct, steps: Oc } = ib(typeof requestAnimationFrame < "u" ? requestAnimationFrame : qt, !0), ob = st({ strict: !1 }), Sh = {
|
|
2900
2900
|
animation: [
|
|
2901
2901
|
"animate",
|
|
2902
2902
|
"variants",
|
|
@@ -2994,7 +2994,7 @@ function IT(t) {
|
|
|
2994
2994
|
get: (r, i) => i === "create" ? t : (e.has(i) || e.set(i, t(i)), e.get(i))
|
|
2995
2995
|
});
|
|
2996
2996
|
}
|
|
2997
|
-
const $l =
|
|
2997
|
+
const $l = st({});
|
|
2998
2998
|
function cs(t) {
|
|
2999
2999
|
return typeof t == "string" || Array.isArray(t);
|
|
3000
3000
|
}
|
|
@@ -3050,7 +3050,7 @@ function _T(t, e, n) {
|
|
|
3050
3050
|
[e]
|
|
3051
3051
|
);
|
|
3052
3052
|
}
|
|
3053
|
-
const Af = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), BT = "framerAppearId", lb = "data-" + Af(BT), { schedule: Rf, cancel: PH } = ib(queueMicrotask, !1), cb =
|
|
3053
|
+
const Af = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), BT = "framerAppearId", lb = "data-" + Af(BT), { schedule: Rf, cancel: PH } = ib(queueMicrotask, !1), cb = st({});
|
|
3054
3054
|
function VT(t, e, n, r, i) {
|
|
3055
3055
|
var o, s;
|
|
3056
3056
|
const { visualElement: a } = _e($l), l = _e(ob), c = _e(Bl), u = _e(Tf).reducedMotion, d = we(null);
|
|
@@ -3120,7 +3120,7 @@ function zT({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
3120
3120
|
return P.jsxs($l.Provider, { value: h, children: [d && h.visualElement ? P.jsx(d, { visualElement: h.visualElement, ...f }) : null, n(i, c, _T(m, h.visualElement, u), m, p, h.visualElement)] });
|
|
3121
3121
|
}
|
|
3122
3122
|
a.displayName = `motion.${typeof i == "string" ? i : `create(${(s = (o = i.displayName) !== null && o !== void 0 ? o : i.name) !== null && s !== void 0 ? s : ""})`}`;
|
|
3123
|
-
const l =
|
|
3123
|
+
const l = ot(a);
|
|
3124
3124
|
return l[FT] = i, l;
|
|
3125
3125
|
}
|
|
3126
3126
|
function WT({ layoutId: t }) {
|
|
@@ -9087,7 +9087,7 @@ const jR = Al(
|
|
|
9087
9087
|
}
|
|
9088
9088
|
),
|
|
9089
9089
|
/* @__PURE__ */ P.jsx("span", { children: r !== t.length - 1 && "+" })
|
|
9090
|
-
] }, r)) }), VR = ({ children: t }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: t }), od =
|
|
9090
|
+
] }, r)) }), VR = ({ children: t }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: t }), od = ot(({ children: t, ...e }, n) => {
|
|
9091
9091
|
if (io(t)) {
|
|
9092
9092
|
const r = zR(t);
|
|
9093
9093
|
return gf(t, {
|
|
@@ -9113,7 +9113,7 @@ const $R = (t) => io(t) && t.type === VR, zR = (t) => {
|
|
|
9113
9113
|
}) : i ? n[r] = i : r === "style" ? n[r] = { ...i, ...o } : r === "className" && (n[r] = [i, o].filter(Boolean).join(" "));
|
|
9114
9114
|
}
|
|
9115
9115
|
return { ...t, ...n };
|
|
9116
|
-
}, c0 =
|
|
9116
|
+
}, c0 = ot(({ children: t, ...e }, n) => {
|
|
9117
9117
|
const r = Ui.toArray(t), i = r.find($R);
|
|
9118
9118
|
if (i) {
|
|
9119
9119
|
const o = i.props.children, s = r.map((a) => a === i ? Ui.count(o) > 1 ? Ui.only(null) : io(o) ? o.props.children : null : a);
|
|
@@ -9207,12 +9207,12 @@ const HR = ({ badge: t, withValidateIcons: e, isValid: n, isInvalid: r, classes:
|
|
|
9207
9207
|
disabled: r,
|
|
9208
9208
|
rules: o,
|
|
9209
9209
|
shouldUnregister: s
|
|
9210
|
-
}), {
|
|
9211
|
-
return /* @__PURE__ */ P.jsxs("div", { className: ee("w-full",
|
|
9212
|
-
/* @__PURE__ */ P.jsx(St.AutocompleteBase, { ...c, ...
|
|
9213
|
-
/* @__PURE__ */ P.jsx(hn, { className:
|
|
9210
|
+
}), { error: f, invalid: p } = d, { container: h, message: m } = a || {};
|
|
9211
|
+
return /* @__PURE__ */ P.jsxs("div", { className: ee("w-full", h), children: [
|
|
9212
|
+
/* @__PURE__ */ P.jsx(St.AutocompleteBase, { ...c, ...u, immediate: l, invalid: p }),
|
|
9213
|
+
/* @__PURE__ */ P.jsx(hn, { className: m, text: (f == null ? void 0 : f.message) || i, intent: f ? "error" : "simple" })
|
|
9214
9214
|
] });
|
|
9215
|
-
}, lp =
|
|
9215
|
+
}, lp = ot(
|
|
9216
9216
|
({ label: t, value: e, invalid: n, disabled: r, classes: i, renderValues: o, attachmentProps: s, externalHandlers: a, onChange: l, ...c }, u) => {
|
|
9217
9217
|
const d = Ut(), { onChange: f, ...p } = a || {}, h = (m) => {
|
|
9218
9218
|
l && l(m), f && f(m);
|
|
@@ -12922,7 +12922,7 @@ const Km = !(typeof window < "u" && window.document && window.document.createEle
|
|
|
12922
12922
|
C: {
|
|
12923
12923
|
validator: (t) => /([АВЕКМНОРСТУХавекмнорстух])/.test(t)
|
|
12924
12924
|
}
|
|
12925
|
-
}, u0 =
|
|
12925
|
+
}, u0 = ot(({ mask: t, externalMaskDefinitions: e, ...n }, r) => {
|
|
12926
12926
|
const i = eN({
|
|
12927
12927
|
mask: t,
|
|
12928
12928
|
options: {
|
|
@@ -13389,7 +13389,7 @@ function SN({ disabled: t = !1 } = {}) {
|
|
|
13389
13389
|
});
|
|
13390
13390
|
return { pressed: n, pressProps: t ? {} : { onPointerDown: s, onPointerUp: o, onClick: o } };
|
|
13391
13391
|
}
|
|
13392
|
-
let EN =
|
|
13392
|
+
let EN = st(void 0);
|
|
13393
13393
|
function up() {
|
|
13394
13394
|
return _e(EN);
|
|
13395
13395
|
}
|
|
@@ -13496,7 +13496,7 @@ function dp(...t) {
|
|
|
13496
13496
|
}
|
|
13497
13497
|
function Sn(t) {
|
|
13498
13498
|
var e;
|
|
13499
|
-
return Object.assign(
|
|
13499
|
+
return Object.assign(ot(t), { displayName: (e = t.displayName) != null ? e : t.name });
|
|
13500
13500
|
}
|
|
13501
13501
|
function Wr(t) {
|
|
13502
13502
|
let e = Object.assign({}, t);
|
|
@@ -13537,7 +13537,7 @@ function NN(t, e) {
|
|
|
13537
13537
|
let { features: r = 1, ...i } = t, o = { ref: e, "aria-hidden": (r & 2) === 2 ? !0 : (n = i["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
13538
13538
|
return kn()({ ourProps: o, theirProps: i, slot: {}, defaultTag: RN, name: "Hidden" });
|
|
13539
13539
|
}
|
|
13540
|
-
let T0 = Sn(NN), IN =
|
|
13540
|
+
let T0 = Sn(NN), IN = st(null);
|
|
13541
13541
|
function jN({ children: t }) {
|
|
13542
13542
|
let e = _e(IN);
|
|
13543
13543
|
if (!e) return oe.createElement(oe.Fragment, null, t);
|
|
@@ -13562,7 +13562,7 @@ function FN({ setForm: t, formId: e }) {
|
|
|
13562
13562
|
r && t(r);
|
|
13563
13563
|
} });
|
|
13564
13564
|
}
|
|
13565
|
-
let _N =
|
|
13565
|
+
let _N = st(void 0);
|
|
13566
13566
|
function O0() {
|
|
13567
13567
|
return _e(_N);
|
|
13568
13568
|
}
|
|
@@ -13595,7 +13595,7 @@ function tr(...t) {
|
|
|
13595
13595
|
});
|
|
13596
13596
|
return t.every((r) => r == null || (r == null ? void 0 : r[M0])) ? void 0 : n;
|
|
13597
13597
|
}
|
|
13598
|
-
let pp =
|
|
13598
|
+
let pp = st(null);
|
|
13599
13599
|
pp.displayName = "DescriptionContext";
|
|
13600
13600
|
function D0() {
|
|
13601
13601
|
let t = _e(pp);
|
|
@@ -13619,7 +13619,7 @@ function HN(t, e) {
|
|
|
13619
13619
|
let UN = Sn(HN);
|
|
13620
13620
|
Object.assign(UN, {});
|
|
13621
13621
|
var Vt = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Vt || {});
|
|
13622
|
-
let Zl =
|
|
13622
|
+
let Zl = st(null);
|
|
13623
13623
|
Zl.displayName = "LabelContext";
|
|
13624
13624
|
function P0() {
|
|
13625
13625
|
let t = _e(Zl);
|
|
@@ -14956,11 +14956,11 @@ function lj(t, e) {
|
|
|
14956
14956
|
floating: f
|
|
14957
14957
|
} : {}, [i, f]);
|
|
14958
14958
|
}
|
|
14959
|
-
let Hs =
|
|
14959
|
+
let Hs = st({ styles: void 0, setReference: () => {
|
|
14960
14960
|
}, setFloating: () => {
|
|
14961
14961
|
}, getReferenceProps: () => ({}), getFloatingProps: () => ({}), slot: {} });
|
|
14962
14962
|
Hs.displayName = "FloatingContext";
|
|
14963
|
-
let mp =
|
|
14963
|
+
let mp = st(null);
|
|
14964
14964
|
mp.displayName = "PlacementContext";
|
|
14965
14965
|
function cj(t) {
|
|
14966
14966
|
return De(() => t ? typeof t == "string" ? { to: t } : t : null, [t]);
|
|
@@ -15098,7 +15098,7 @@ function hd(t, e) {
|
|
|
15098
15098
|
let [n, r] = Ae(e);
|
|
15099
15099
|
return !t && n !== e && r(e), t ? n : e;
|
|
15100
15100
|
}
|
|
15101
|
-
let gp =
|
|
15101
|
+
let gp = st(null);
|
|
15102
15102
|
gp.displayName = "OpenClosedContext";
|
|
15103
15103
|
var ms = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(ms || {});
|
|
15104
15104
|
function yj() {
|
|
@@ -15178,7 +15178,7 @@ function Sj() {
|
|
|
15178
15178
|
e !== !0 && n(!0);
|
|
15179
15179
|
}, [e]), B.useEffect(() => ci.handoff(), []), t ? !1 : e;
|
|
15180
15180
|
}
|
|
15181
|
-
let Ej =
|
|
15181
|
+
let Ej = st(!1);
|
|
15182
15182
|
function Cj() {
|
|
15183
15183
|
return _e(Ej);
|
|
15184
15184
|
}
|
|
@@ -15221,12 +15221,12 @@ function Mj(t, e) {
|
|
|
15221
15221
|
let n = tr(e), { enabled: r = !0, ...i } = t, o = kn();
|
|
15222
15222
|
return r ? oe.createElement(Oj, { ...i, ref: n }) : o({ ourProps: { ref: n }, theirProps: i, slot: {}, defaultTag: $0, name: "Portal" });
|
|
15223
15223
|
}
|
|
15224
|
-
let Dj = un, z0 =
|
|
15224
|
+
let Dj = un, z0 = st(null);
|
|
15225
15225
|
function Pj(t, e) {
|
|
15226
15226
|
let { target: n, ...r } = t, i = { ref: tr(e) }, o = kn();
|
|
15227
15227
|
return oe.createElement(z0.Provider, { value: n }, o({ ourProps: i, theirProps: r, defaultTag: Dj, name: "Popover.Group" }));
|
|
15228
15228
|
}
|
|
15229
|
-
let Aj =
|
|
15229
|
+
let Aj = st(null), Rj = Sn(Mj), Nj = Sn(Pj), Ij = Object.assign(Rj, { Group: Nj });
|
|
15230
15230
|
var jj = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(jj || {}), Lj = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(Lj || {}), Fj = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(Fj || {}), _j = ((t) => (t[t.OpenCombobox = 0] = "OpenCombobox", t[t.CloseCombobox = 1] = "CloseCombobox", t[t.GoToOption = 2] = "GoToOption", t[t.SetTyping = 3] = "SetTyping", t[t.RegisterOption = 4] = "RegisterOption", t[t.UnregisterOption = 5] = "UnregisterOption", t[t.SetActivationTrigger = 6] = "SetActivationTrigger", t[t.UpdateVirtualConfiguration = 7] = "UpdateVirtualConfiguration", t[t.SetInputElement = 8] = "SetInputElement", t[t.SetButtonElement = 9] = "SetButtonElement", t[t.SetOptionsElement = 10] = "SetOptionsElement", t))(_j || {});
|
|
15231
15231
|
function Gc(t, e = (n) => n) {
|
|
15232
15232
|
let n = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, r = e(t.options.slice()), i = r.length > 0 && r[0].dataRef.current.order !== null ? r.sort((s, a) => s.dataRef.current.order - a.dataRef.current.order) : kI(r, (s) => s.dataRef.current.domRef.current), o = n ? i.indexOf(n) : null;
|
|
@@ -15289,7 +15289,7 @@ let Bj = { 1(t) {
|
|
|
15289
15289
|
o !== -1 ? i = o : i = null;
|
|
15290
15290
|
}
|
|
15291
15291
|
return { ...t, activeOptionIndex: i, virtual: { options: e.options, disabled: (r = e.disabled) != null ? r : () => !1 } };
|
|
15292
|
-
}, 8: (t, e) => t.inputElement === e.element ? t : { ...t, inputElement: e.element }, 9: (t, e) => t.buttonElement === e.element ? t : { ...t, buttonElement: e.element }, 10: (t, e) => t.optionsElement === e.element ? t : { ...t, optionsElement: e.element } }, vp =
|
|
15292
|
+
}, 8: (t, e) => t.inputElement === e.element ? t : { ...t, inputElement: e.element }, 9: (t, e) => t.buttonElement === e.element ? t : { ...t, buttonElement: e.element }, 10: (t, e) => t.optionsElement === e.element ? t : { ...t, optionsElement: e.element } }, vp = st(null);
|
|
15293
15293
|
vp.displayName = "ComboboxActionsContext";
|
|
15294
15294
|
function Us(t) {
|
|
15295
15295
|
let e = _e(vp);
|
|
@@ -15299,7 +15299,7 @@ function Us(t) {
|
|
|
15299
15299
|
}
|
|
15300
15300
|
return e;
|
|
15301
15301
|
}
|
|
15302
|
-
let W0 =
|
|
15302
|
+
let W0 = st(null);
|
|
15303
15303
|
function Vj(t) {
|
|
15304
15304
|
let e = xo("VirtualProvider"), { options: n } = e.virtual, [r, i] = De(() => {
|
|
15305
15305
|
let c = e.optionsElement;
|
|
@@ -15322,7 +15322,7 @@ function Vj(t) {
|
|
|
15322
15322
|
return oe.createElement(un, { key: c.key }, oe.cloneElement((u = t.children) == null ? void 0 : u.call(t, { ...t.slot, option: n[c.index] }), { key: `${s}-${c.key}`, "data-index": c.index, "aria-setsize": n.length, "aria-posinset": c.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${c.start}px)`, overflowAnchor: "none" } }));
|
|
15323
15323
|
})));
|
|
15324
15324
|
}
|
|
15325
|
-
let gs =
|
|
15325
|
+
let gs = st(null);
|
|
15326
15326
|
gs.displayName = "ComboboxDataContext";
|
|
15327
15327
|
function xo(t) {
|
|
15328
15328
|
let e = _e(gs);
|
|
@@ -15602,7 +15602,7 @@ const nL = ({
|
|
|
15602
15602
|
if (g)
|
|
15603
15603
|
return Array.isArray(g) ? g.map((y) => u(y)).join(", ") : u(g);
|
|
15604
15604
|
} };
|
|
15605
|
-
}, pg =
|
|
15605
|
+
}, pg = ot(
|
|
15606
15606
|
({ option: t, classes: e, displayValue: n, isMulti: r, motionProps: i, ...o }, s) => {
|
|
15607
15607
|
const a = n ? n(t) : t.label, { item: l, helperText: c, checkbox: u } = e || {}, d = r || t.attachment || t.helperText ? "div" : un;
|
|
15608
15608
|
return /* @__PURE__ */ P.jsx(K0, { ...o, as: un, disabled: t.disabled, value: t, children: ({ disabled: f, selected: p }) => /* @__PURE__ */ P.jsxs(
|
|
@@ -15645,7 +15645,7 @@ const nL = ({
|
|
|
15645
15645
|
}
|
|
15646
15646
|
) });
|
|
15647
15647
|
}
|
|
15648
|
-
), rL =
|
|
15648
|
+
), rL = ot(
|
|
15649
15649
|
({
|
|
15650
15650
|
label: t,
|
|
15651
15651
|
invalid: e,
|
|
@@ -15680,7 +15680,6 @@ const nL = ({
|
|
|
15680
15680
|
return /* @__PURE__ */ P.jsx(
|
|
15681
15681
|
tL,
|
|
15682
15682
|
{
|
|
15683
|
-
ref: b,
|
|
15684
15683
|
...y,
|
|
15685
15684
|
virtual: u ? {
|
|
15686
15685
|
options: x
|
|
@@ -15699,6 +15698,7 @@ const nL = ({
|
|
|
15699
15698
|
/* @__PURE__ */ P.jsx(O, { className: "w-full", disabled: D, children: /* @__PURE__ */ P.jsx(
|
|
15700
15699
|
H0,
|
|
15701
15700
|
{
|
|
15701
|
+
ref: b,
|
|
15702
15702
|
as: St.InputBase,
|
|
15703
15703
|
label: t,
|
|
15704
15704
|
disabled: D,
|
|
@@ -15902,7 +15902,7 @@ function J0(t) {
|
|
|
15902
15902
|
return xr(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
15903
15903
|
}
|
|
15904
15904
|
var lL = G0, cL = Y0;
|
|
15905
|
-
const Q0 =
|
|
15905
|
+
const Q0 = ot(
|
|
15906
15906
|
({ classes: t, className: e, invalid: n, disabled: r, externalHandlers: i, ...o }, s) => {
|
|
15907
15907
|
const { onChange: a, ...l } = i || {}, c = (u) => {
|
|
15908
15908
|
o.onCheckedChange && o.onCheckedChange(u), a && a(u);
|
|
@@ -15944,7 +15944,7 @@ const Q0 = lt(
|
|
|
15944
15944
|
}
|
|
15945
15945
|
);
|
|
15946
15946
|
Q0.displayName = "CheckboxBase";
|
|
15947
|
-
const X0 =
|
|
15947
|
+
const X0 = ot(
|
|
15948
15948
|
({ defaultOpen: t = !1, value: e, onChange: n, disabled: r, externalHandlers: i, classes: o, ...s }, a) => {
|
|
15949
15949
|
const { onChange: l, onFocus: c, ...u } = i || {}, d = we(null), [f, p] = Ae(t), h = () => {
|
|
15950
15950
|
p((k) => !k);
|
|
@@ -16108,7 +16108,7 @@ function nw(t) {
|
|
|
16108
16108
|
return t ? "checked" : "unchecked";
|
|
16109
16109
|
}
|
|
16110
16110
|
var hL = Z0, mL = tw;
|
|
16111
|
-
const rw =
|
|
16111
|
+
const rw = ot(
|
|
16112
16112
|
({ classes: t, className: e, disabled: n, externalHandlers: r, onCheckedChange: i, ...o }, s) => {
|
|
16113
16113
|
const { onChange: a, ...l } = r || {}, c = (u) => {
|
|
16114
16114
|
i && i(u), a && a(u);
|
|
@@ -16148,32 +16148,28 @@ const rw = lt(
|
|
|
16148
16148
|
}
|
|
16149
16149
|
);
|
|
16150
16150
|
rw.displayName = "SwitchBase";
|
|
16151
|
-
const gL = (
|
|
16152
|
-
formatter: t,
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
onInputChange: a
|
|
16174
|
-
}
|
|
16175
|
-
);
|
|
16176
|
-
};
|
|
16151
|
+
const gL = ot(
|
|
16152
|
+
({ formatter: t, query: e, value: n, returnValue: r, onChange: i, ...o }, s) => {
|
|
16153
|
+
const [a, l] = Ae(""), c = IS(a, 100), { data: u } = e(c), d = u ? u.map(t) : [], f = (h) => {
|
|
16154
|
+
!h || Array.isArray(h) || i && i(r ? r(h) : h.value);
|
|
16155
|
+
}, p = De(() => d.find((h) => r ? r(h) : h.value === n), [d, r, n]);
|
|
16156
|
+
return /* @__PURE__ */ P.jsx(
|
|
16157
|
+
St.SelectBase,
|
|
16158
|
+
{
|
|
16159
|
+
...o,
|
|
16160
|
+
ref: s,
|
|
16161
|
+
options: d,
|
|
16162
|
+
filterDisabled: !0,
|
|
16163
|
+
onChange: f,
|
|
16164
|
+
value: p,
|
|
16165
|
+
inputValue: a,
|
|
16166
|
+
isSearchable: !0,
|
|
16167
|
+
isMulti: !1,
|
|
16168
|
+
onInputChange: l
|
|
16169
|
+
}
|
|
16170
|
+
);
|
|
16171
|
+
}
|
|
16172
|
+
);
|
|
16177
16173
|
function iw(t, e) {
|
|
16178
16174
|
var n = {};
|
|
16179
16175
|
for (var r in t)
|
|
@@ -17214,7 +17210,7 @@ const cF = /* @__PURE__ */ P.jsx(
|
|
|
17214
17210
|
name: "general/edit",
|
|
17215
17211
|
className: "size-[19px] text-icon-blue-grey-600 transition-[color] group-focus-within/icon:text-icon-blue-grey-800"
|
|
17216
17212
|
}
|
|
17217
|
-
), uF =
|
|
17213
|
+
), uF = ot(
|
|
17218
17214
|
({
|
|
17219
17215
|
classes: t,
|
|
17220
17216
|
invalid: e,
|
|
@@ -17583,7 +17579,7 @@ const SF = Dv(
|
|
|
17583
17579
|
}
|
|
17584
17580
|
) });
|
|
17585
17581
|
}
|
|
17586
|
-
), EF =
|
|
17582
|
+
), EF = ot(
|
|
17587
17583
|
({ options: t, displayValue: e, returnValue: n, invalid: r, className: i, disabled: o, classes: s, externalHandlers: a, onValueChange: l, ...c }, u) => {
|
|
17588
17584
|
const { root: d, list: f, radioItem: p } = s || {}, { onChange: h, ...m } = a || {}, g = (y) => {
|
|
17589
17585
|
l && l(y), h && h(y);
|
|
@@ -17602,7 +17598,7 @@ const SF = Dv(
|
|
|
17602
17598
|
}
|
|
17603
17599
|
)) }) });
|
|
17604
17600
|
}
|
|
17605
|
-
), Fw =
|
|
17601
|
+
), Fw = ot(
|
|
17606
17602
|
({ label: t, value: e, invalid: n, disabled: r, classes: i, attachmentProps: o, rows: s = 4, externalHandlers: a, onChange: l, ...c }, u) => {
|
|
17607
17603
|
const d = Ut(), { onChange: f, ...p } = a || {}, h = (m) => {
|
|
17608
17604
|
l && l(m), f && f(m);
|
|
@@ -19998,7 +19994,7 @@ function O_(t, e) {
|
|
|
19998
19994
|
i = r[o], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
|
|
19999
19995
|
return n;
|
|
20000
19996
|
}
|
|
20001
|
-
var Op = /* @__PURE__ */
|
|
19997
|
+
var Op = /* @__PURE__ */ ot(function(t, e) {
|
|
20002
19998
|
var n = t.children, r = Wa(t, g_), i = Qw(r), o = i.open, s = Wa(i, y_);
|
|
20003
19999
|
return kS(e, function() {
|
|
20004
20000
|
return {
|
|
@@ -20527,7 +20523,7 @@ const D_ = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
|
|
|
20527
20523
|
},
|
|
20528
20524
|
l
|
|
20529
20525
|
)) });
|
|
20530
|
-
}, I_ =
|
|
20526
|
+
}, I_ = ot(
|
|
20531
20527
|
({ dropzoneState: t, classes: e, disabled: n, invalid: r, name: i }, o) => {
|
|
20532
20528
|
const s = t.getRootProps();
|
|
20533
20529
|
return /* @__PURE__ */ P.jsxs(
|
|
@@ -20563,7 +20559,7 @@ const D_ = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
|
|
|
20563
20559
|
}
|
|
20564
20560
|
);
|
|
20565
20561
|
}
|
|
20566
|
-
), j_ =
|
|
20562
|
+
), j_ = ot(
|
|
20567
20563
|
({ classes: t, dropzoneOptions: e = TF, name: n, value: r, disabled: i, invalid: o, onChange: s }, a) => {
|
|
20568
20564
|
const { filesStatus: l, removeFile: c, dropzoneState: u } = D_({
|
|
20569
20565
|
controlledFiles: r,
|
|
@@ -20775,7 +20771,7 @@ var q_ = `
|
|
|
20775
20771
|
--nojs-fg: white !important;
|
|
20776
20772
|
}
|
|
20777
20773
|
}`, Y_ = "^\\d+$";
|
|
20778
|
-
const rk =
|
|
20774
|
+
const rk = ot(({ index: t, classes: e, invalid: n, ...r }, i) => {
|
|
20779
20775
|
const o = _e(tk), { char: s, hasFakeCaret: a, isActive: l } = o.slots[t];
|
|
20780
20776
|
return /* @__PURE__ */ P.jsxs(
|
|
20781
20777
|
"div",
|
|
@@ -20804,7 +20800,7 @@ const rk = lt(({ index: t, classes: e, invalid: n, ...r }, i) => {
|
|
|
20804
20800
|
);
|
|
20805
20801
|
});
|
|
20806
20802
|
rk.displayName = "InputOTPSlot";
|
|
20807
|
-
const J_ =
|
|
20803
|
+
const J_ = ot(
|
|
20808
20804
|
({ value: t, onChange: e, classes: n, maxLength: r = 4, initialFocus: i = !0, externalHandlers: o, invalid: s, ...a }, l) => {
|
|
20809
20805
|
const c = we(null);
|
|
20810
20806
|
return Fe(() => {
|
|
@@ -34157,7 +34153,7 @@ class X3 extends oe.Component {
|
|
|
34157
34153
|
);
|
|
34158
34154
|
}
|
|
34159
34155
|
}
|
|
34160
|
-
const Z3 =
|
|
34156
|
+
const Z3 = ot((t, e) => {
|
|
34161
34157
|
const n = oe.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
|
|
34162
34158
|
return oe.createElement(X3, {
|
|
34163
34159
|
key: n,
|
|
@@ -34510,11 +34506,11 @@ function uW(t = {}, e = []) {
|
|
|
34510
34506
|
selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
|
|
34511
34507
|
}), i;
|
|
34512
34508
|
}
|
|
34513
|
-
const dW =
|
|
34509
|
+
const dW = st({
|
|
34514
34510
|
editor: null
|
|
34515
34511
|
});
|
|
34516
34512
|
dW.Consumer;
|
|
34517
|
-
const fW =
|
|
34513
|
+
const fW = st({
|
|
34518
34514
|
onDragStart: void 0
|
|
34519
34515
|
}), pW = () => _e(fW);
|
|
34520
34516
|
oe.forwardRef((t, e) => {
|
|
@@ -34794,7 +34790,7 @@ Gt.prototype = {
|
|
|
34794
34790
|
return i.j[t] = s, s;
|
|
34795
34791
|
}
|
|
34796
34792
|
};
|
|
34797
|
-
const Ne = (t, e, n, r, i) => t.ta(e, n, r, i),
|
|
34793
|
+
const Ne = (t, e, n, r, i) => t.ta(e, n, r, i), at = (t, e, n, r, i) => t.tr(e, n, r, i), lv = (t, e, n, r, i) => t.ts(e, n, r, i), de = (t, e, n, r, i) => t.tt(e, n, r, i), Wn = "WORD", uf = "UWORD", $1 = "ASCIINUMERICAL", z1 = "ALPHANUMERICAL", Ps = "LOCALHOST", df = "TLD", ff = "UTLD", Oa = "SCHEME", Fi = "SLASH_SCHEME", Xp = "NUM", pf = "WS", Zp = "NL", ns = "OPENBRACE", rs = "CLOSEBRACE", il = "OPENBRACKET", ol = "CLOSEBRACKET", sl = "OPENPAREN", al = "CLOSEPAREN", ll = "OPENANGLEBRACKET", cl = "CLOSEANGLEBRACKET", ul = "FULLWIDTHLEFTPAREN", dl = "FULLWIDTHRIGHTPAREN", fl = "LEFTCORNERBRACKET", pl = "RIGHTCORNERBRACKET", hl = "LEFTWHITECORNERBRACKET", ml = "RIGHTWHITECORNERBRACKET", gl = "FULLWIDTHLESSTHAN", yl = "FULLWIDTHGREATERTHAN", vl = "AMPERSAND", eh = "APOSTROPHE", bl = "ASTERISK", ar = "AT", xl = "BACKSLASH", wl = "BACKTICK", kl = "CARET", fr = "COLON", th = "COMMA", Sl = "DOLLAR", Tn = "DOT", El = "EQUALS", nh = "EXCLAMATION", on = "HYPHEN", is = "PERCENT", Cl = "PIPE", Tl = "PLUS", Ol = "POUND", ss = "QUERY", rh = "QUOTE", W1 = "FULLWIDTHMIDDLEDOT", ih = "SEMI", On = "SLASH", as = "TILDE", Ml = "UNDERSCORE", H1 = "EMOJI", Dl = "SYM";
|
|
34798
34794
|
var U1 = /* @__PURE__ */ Object.freeze({
|
|
34799
34795
|
__proto__: null,
|
|
34800
34796
|
WORD: Wn,
|
|
@@ -34861,36 +34857,36 @@ function CW(t = []) {
|
|
|
34861
34857
|
Gt.groups = e;
|
|
34862
34858
|
const n = new Gt();
|
|
34863
34859
|
fa == null && (fa = uv(yW)), pa == null && (pa = uv(vW)), de(n, "'", eh), de(n, "{", ns), de(n, "}", rs), de(n, "[", il), de(n, "]", ol), de(n, "(", sl), de(n, ")", al), de(n, "<", ll), de(n, ">", cl), de(n, "(", ul), de(n, ")", dl), de(n, "「", fl), de(n, "」", pl), de(n, "『", hl), de(n, "』", ml), de(n, "<", gl), de(n, ">", yl), de(n, "&", vl), de(n, "*", bl), de(n, "@", ar), de(n, "`", wl), de(n, "^", kl), de(n, ":", fr), de(n, ",", th), de(n, "$", Sl), de(n, ".", Tn), de(n, "=", El), de(n, "!", nh), de(n, "-", on), de(n, "%", is), de(n, "|", Cl), de(n, "+", Tl), de(n, "#", Ol), de(n, "?", ss), de(n, '"', rh), de(n, "/", On), de(n, ";", ih), de(n, "~", as), de(n, "_", Ml), de(n, "\\", xl), de(n, "・", W1);
|
|
34864
|
-
const r =
|
|
34860
|
+
const r = at(n, zn, Xp, {
|
|
34865
34861
|
[sf]: !0
|
|
34866
34862
|
});
|
|
34867
|
-
|
|
34868
|
-
const i =
|
|
34863
|
+
at(r, zn, r);
|
|
34864
|
+
const i = at(r, $n, $1, {
|
|
34869
34865
|
[ts]: !0
|
|
34870
|
-
}), o =
|
|
34866
|
+
}), o = at(r, Ao, z1, {
|
|
34871
34867
|
[$o]: !0
|
|
34872
|
-
}), s =
|
|
34868
|
+
}), s = at(n, $n, Wn, {
|
|
34873
34869
|
[af]: !0
|
|
34874
34870
|
});
|
|
34875
|
-
|
|
34876
|
-
const a =
|
|
34871
|
+
at(s, zn, i), at(s, $n, s), at(i, zn, i), at(i, $n, i);
|
|
34872
|
+
const a = at(n, Ao, uf, {
|
|
34877
34873
|
[lf]: !0
|
|
34878
34874
|
});
|
|
34879
|
-
|
|
34875
|
+
at(a, $n), at(a, zn, o), at(a, Ao, a), at(o, zn, o), at(o, $n), at(o, Ao, o);
|
|
34880
34876
|
const l = de(n, Du, Zp, {
|
|
34881
34877
|
[Tu]: !0
|
|
34882
34878
|
}), c = de(n, cv, pf, {
|
|
34883
34879
|
[Tu]: !0
|
|
34884
|
-
}), u =
|
|
34880
|
+
}), u = at(n, Mu, pf, {
|
|
34885
34881
|
[Tu]: !0
|
|
34886
34882
|
});
|
|
34887
|
-
de(n, Pu, u), de(c, Du, l), de(c, Pu, u),
|
|
34888
|
-
const d =
|
|
34883
|
+
de(n, Pu, u), de(c, Du, l), de(c, Pu, u), at(c, Mu, u), de(u, cv), de(u, Du), at(u, Mu, u), de(u, Pu, u);
|
|
34884
|
+
const d = at(n, Ou, H1, {
|
|
34889
34885
|
[V1]: !0
|
|
34890
34886
|
});
|
|
34891
|
-
de(d, "#"),
|
|
34887
|
+
de(d, "#"), at(d, Ou, d), de(d, SW, d);
|
|
34892
34888
|
const f = de(d, EW);
|
|
34893
|
-
de(f, "#"),
|
|
34889
|
+
de(f, "#"), at(f, Ou, d);
|
|
34894
34890
|
const p = [[$n, s], [zn, i]], h = [[$n, null], [Ao, a], [zn, o]];
|
|
34895
34891
|
for (let m = 0; m < fa.length; m++)
|
|
34896
34892
|
rr(n, fa[m], df, Wn, p);
|
|
@@ -36062,7 +36058,7 @@ const o4 = jt.create({
|
|
|
36062
36058
|
];
|
|
36063
36059
|
}
|
|
36064
36060
|
});
|
|
36065
|
-
class
|
|
36061
|
+
class lt extends Re {
|
|
36066
36062
|
/**
|
|
36067
36063
|
Create a gap cursor.
|
|
36068
36064
|
*/
|
|
@@ -36071,13 +36067,13 @@ class at extends Re {
|
|
|
36071
36067
|
}
|
|
36072
36068
|
map(e, n) {
|
|
36073
36069
|
let r = e.resolve(n.map(this.head));
|
|
36074
|
-
return
|
|
36070
|
+
return lt.valid(r) ? new lt(r) : Re.near(r);
|
|
36075
36071
|
}
|
|
36076
36072
|
content() {
|
|
36077
36073
|
return me.empty;
|
|
36078
36074
|
}
|
|
36079
36075
|
eq(e) {
|
|
36080
|
-
return e instanceof
|
|
36076
|
+
return e instanceof lt && e.head == this.head;
|
|
36081
36077
|
}
|
|
36082
36078
|
toJSON() {
|
|
36083
36079
|
return { type: "gapcursor", pos: this.head };
|
|
@@ -36088,7 +36084,7 @@ class at extends Re {
|
|
|
36088
36084
|
static fromJSON(e, n) {
|
|
36089
36085
|
if (typeof n.pos != "number")
|
|
36090
36086
|
throw new RangeError("Invalid input for GapCursor.fromJSON");
|
|
36091
|
-
return new
|
|
36087
|
+
return new lt(e.resolve(n.pos));
|
|
36092
36088
|
}
|
|
36093
36089
|
/**
|
|
36094
36090
|
@internal
|
|
@@ -36114,7 +36110,7 @@ class at extends Re {
|
|
|
36114
36110
|
*/
|
|
36115
36111
|
static findGapCursorFrom(e, n, r = !1) {
|
|
36116
36112
|
e: for (; ; ) {
|
|
36117
|
-
if (!r &&
|
|
36113
|
+
if (!r && lt.valid(e))
|
|
36118
36114
|
return e;
|
|
36119
36115
|
let i = e.pos, o = null;
|
|
36120
36116
|
for (let s = e.depth; ; s--) {
|
|
@@ -36126,7 +36122,7 @@ class at extends Re {
|
|
|
36126
36122
|
return null;
|
|
36127
36123
|
i += n;
|
|
36128
36124
|
let l = e.doc.resolve(i);
|
|
36129
|
-
if (
|
|
36125
|
+
if (lt.valid(l))
|
|
36130
36126
|
return l;
|
|
36131
36127
|
}
|
|
36132
36128
|
for (; ; ) {
|
|
@@ -36140,16 +36136,16 @@ class at extends Re {
|
|
|
36140
36136
|
}
|
|
36141
36137
|
o = s, i += n;
|
|
36142
36138
|
let a = e.doc.resolve(i);
|
|
36143
|
-
if (
|
|
36139
|
+
if (lt.valid(a))
|
|
36144
36140
|
return a;
|
|
36145
36141
|
}
|
|
36146
36142
|
return null;
|
|
36147
36143
|
}
|
|
36148
36144
|
}
|
|
36149
36145
|
}
|
|
36150
|
-
|
|
36151
|
-
|
|
36152
|
-
Re.jsonID("gapcursor",
|
|
36146
|
+
lt.prototype.visible = !1;
|
|
36147
|
+
lt.findFrom = lt.findGapCursorFrom;
|
|
36148
|
+
Re.jsonID("gapcursor", lt);
|
|
36153
36149
|
class ah {
|
|
36154
36150
|
constructor(e) {
|
|
36155
36151
|
this.pos = e;
|
|
@@ -36159,7 +36155,7 @@ class ah {
|
|
|
36159
36155
|
}
|
|
36160
36156
|
resolve(e) {
|
|
36161
36157
|
let n = e.resolve(this.pos);
|
|
36162
|
-
return
|
|
36158
|
+
return lt.valid(n) ? new lt(n) : Re.near(n);
|
|
36163
36159
|
}
|
|
36164
36160
|
}
|
|
36165
36161
|
function s4(t) {
|
|
@@ -36201,7 +36197,7 @@ function l4() {
|
|
|
36201
36197
|
props: {
|
|
36202
36198
|
decorations: f4,
|
|
36203
36199
|
createSelectionBetween(t, e, n) {
|
|
36204
|
-
return e.pos == n.pos &&
|
|
36200
|
+
return e.pos == n.pos && lt.valid(n) ? new lt(n) : null;
|
|
36205
36201
|
},
|
|
36206
36202
|
handleClick: u4,
|
|
36207
36203
|
handleKeyDown: c4,
|
|
@@ -36224,21 +36220,21 @@ function ma(t, e) {
|
|
|
36224
36220
|
return !1;
|
|
36225
36221
|
l = !1, a = r.doc.resolve(e > 0 ? a.after() : a.before());
|
|
36226
36222
|
}
|
|
36227
|
-
let c =
|
|
36228
|
-
return c ? (i && i(r.tr.setSelection(new
|
|
36223
|
+
let c = lt.findGapCursorFrom(a, e, l);
|
|
36224
|
+
return c ? (i && i(r.tr.setSelection(new lt(c))), !0) : !1;
|
|
36229
36225
|
};
|
|
36230
36226
|
}
|
|
36231
36227
|
function u4(t, e, n) {
|
|
36232
36228
|
if (!t || !t.editable)
|
|
36233
36229
|
return !1;
|
|
36234
36230
|
let r = t.state.doc.resolve(e);
|
|
36235
|
-
if (!
|
|
36231
|
+
if (!lt.valid(r))
|
|
36236
36232
|
return !1;
|
|
36237
36233
|
let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
36238
|
-
return i && i.inside > -1 && ke.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new
|
|
36234
|
+
return i && i.inside > -1 && ke.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new lt(r))), !0);
|
|
36239
36235
|
}
|
|
36240
36236
|
function d4(t, e) {
|
|
36241
|
-
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof
|
|
36237
|
+
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof lt))
|
|
36242
36238
|
return !1;
|
|
36243
36239
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
36244
36240
|
if (!r)
|
|
@@ -36250,7 +36246,7 @@ function d4(t, e) {
|
|
|
36250
36246
|
return o.setSelection(Me.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
|
|
36251
36247
|
}
|
|
36252
36248
|
function f4(t) {
|
|
36253
|
-
if (!(t.selection instanceof
|
|
36249
|
+
if (!(t.selection instanceof lt))
|
|
36254
36250
|
return null;
|
|
36255
36251
|
let e = document.createElement("div");
|
|
36256
36252
|
return e.className = "ProseMirror-gapcursor", gt.create(t.doc, [cn.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
@@ -37244,7 +37240,7 @@ const Q1 = J1(!1, !0), X1 = J1(!0, !0), E4 = jt.create({
|
|
|
37244
37240
|
/* @__PURE__ */ P.jsx(K4, { editor: t }),
|
|
37245
37241
|
/* @__PURE__ */ P.jsx(Y4, { editor: t })
|
|
37246
37242
|
] })
|
|
37247
|
-
] }), Q4 =
|
|
37243
|
+
] }), Q4 = ot(
|
|
37248
37244
|
({
|
|
37249
37245
|
onChange: t,
|
|
37250
37246
|
value: e = "",
|