@clickcns/vmedic-react 0.0.11 → 0.0.12
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/es/ui/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function vp() {
|
|
|
77
77
|
return "StrictMode";
|
|
78
78
|
case T:
|
|
79
79
|
return "Suspense";
|
|
80
|
-
case
|
|
80
|
+
case x:
|
|
81
81
|
return "SuspenseList";
|
|
82
82
|
case W:
|
|
83
83
|
return "Activity";
|
|
@@ -93,14 +93,14 @@ function vp() {
|
|
|
93
93
|
case w:
|
|
94
94
|
return (C._context.displayName || "Context") + ".Consumer";
|
|
95
95
|
case b:
|
|
96
|
-
var
|
|
97
|
-
return C = C.displayName, C || (C =
|
|
98
|
-
case
|
|
99
|
-
return
|
|
96
|
+
var B = C.render;
|
|
97
|
+
return C = C.displayName, C || (C = B.displayName || B.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
98
|
+
case v:
|
|
99
|
+
return B = C.displayName || null, B !== null ? B : n(C.type) || "Memo";
|
|
100
100
|
case O:
|
|
101
|
-
|
|
101
|
+
B = C._payload, C = C._init;
|
|
102
102
|
try {
|
|
103
|
-
return n(C(
|
|
103
|
+
return n(C(B));
|
|
104
104
|
} catch {
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -112,15 +112,15 @@ function vp() {
|
|
|
112
112
|
function t(C) {
|
|
113
113
|
try {
|
|
114
114
|
e(C);
|
|
115
|
-
var
|
|
115
|
+
var B = !1;
|
|
116
116
|
} catch {
|
|
117
|
-
|
|
117
|
+
B = !0;
|
|
118
118
|
}
|
|
119
|
-
if (
|
|
120
|
-
|
|
121
|
-
var
|
|
122
|
-
return
|
|
123
|
-
|
|
119
|
+
if (B) {
|
|
120
|
+
B = console;
|
|
121
|
+
var V = B.error, _ = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
122
|
+
return V.call(
|
|
123
|
+
B,
|
|
124
124
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
125
125
|
_
|
|
126
126
|
), e(C);
|
|
@@ -131,14 +131,14 @@ function vp() {
|
|
|
131
131
|
if (typeof C == "object" && C !== null && C.$$typeof === O)
|
|
132
132
|
return "<...>";
|
|
133
133
|
try {
|
|
134
|
-
var
|
|
135
|
-
return
|
|
134
|
+
var B = n(C);
|
|
135
|
+
return B ? "<" + B + ">" : "<...>";
|
|
136
136
|
} catch {
|
|
137
137
|
return "<...>";
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
function o() {
|
|
141
|
-
var C =
|
|
141
|
+
var C = G.A;
|
|
142
142
|
return C === null ? null : C.getOwner();
|
|
143
143
|
}
|
|
144
144
|
function s() {
|
|
@@ -146,38 +146,38 @@ function vp() {
|
|
|
146
146
|
}
|
|
147
147
|
function i(C) {
|
|
148
148
|
if (he.call(C, "key")) {
|
|
149
|
-
var
|
|
150
|
-
if (
|
|
149
|
+
var B = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
150
|
+
if (B && B.isReactWarning) return !1;
|
|
151
151
|
}
|
|
152
152
|
return C.key !== void 0;
|
|
153
153
|
}
|
|
154
|
-
function a(C,
|
|
155
|
-
function
|
|
156
|
-
|
|
154
|
+
function a(C, B) {
|
|
155
|
+
function V() {
|
|
156
|
+
X || (X = !0, console.error(
|
|
157
157
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
158
|
-
|
|
158
|
+
B
|
|
159
159
|
));
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
get:
|
|
161
|
+
V.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
162
|
+
get: V,
|
|
163
163
|
configurable: !0
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
function l() {
|
|
167
167
|
var C = n(this.type);
|
|
168
|
-
return
|
|
168
|
+
return Y[C] || (Y[C] = !0, console.error(
|
|
169
169
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
170
170
|
)), C = this.props.ref, C !== void 0 ? C : null;
|
|
171
171
|
}
|
|
172
|
-
function c(C,
|
|
173
|
-
var
|
|
172
|
+
function c(C, B, V, _, Se, q) {
|
|
173
|
+
var $ = V.ref;
|
|
174
174
|
return C = {
|
|
175
175
|
$$typeof: f,
|
|
176
176
|
type: C,
|
|
177
|
-
key:
|
|
178
|
-
props:
|
|
177
|
+
key: B,
|
|
178
|
+
props: V,
|
|
179
179
|
_owner: _
|
|
180
|
-
}, (
|
|
180
|
+
}, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(C, "ref", {
|
|
181
181
|
enumerable: !1,
|
|
182
182
|
get: l
|
|
183
183
|
}) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
@@ -194,33 +194,33 @@ function vp() {
|
|
|
194
194
|
configurable: !1,
|
|
195
195
|
enumerable: !1,
|
|
196
196
|
writable: !0,
|
|
197
|
-
value:
|
|
197
|
+
value: Se
|
|
198
198
|
}), Object.defineProperty(C, "_debugTask", {
|
|
199
199
|
configurable: !1,
|
|
200
200
|
enumerable: !1,
|
|
201
201
|
writable: !0,
|
|
202
|
-
value:
|
|
202
|
+
value: q
|
|
203
203
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
204
204
|
}
|
|
205
|
-
function d(C,
|
|
206
|
-
var
|
|
207
|
-
if (
|
|
205
|
+
function d(C, B, V, _, Se, q) {
|
|
206
|
+
var $ = B.children;
|
|
207
|
+
if ($ !== void 0)
|
|
208
208
|
if (_)
|
|
209
|
-
if (
|
|
210
|
-
for (_ = 0; _ <
|
|
211
|
-
u(
|
|
212
|
-
Object.freeze && Object.freeze(
|
|
209
|
+
if (Z($)) {
|
|
210
|
+
for (_ = 0; _ < $.length; _++)
|
|
211
|
+
u($[_]);
|
|
212
|
+
Object.freeze && Object.freeze($);
|
|
213
213
|
} else
|
|
214
214
|
console.error(
|
|
215
215
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
216
216
|
);
|
|
217
|
-
else u(
|
|
218
|
-
if (he.call(
|
|
219
|
-
|
|
220
|
-
var
|
|
217
|
+
else u($);
|
|
218
|
+
if (he.call(B, "key")) {
|
|
219
|
+
$ = n(C);
|
|
220
|
+
var ae = Object.keys(B).filter(function(He) {
|
|
221
221
|
return He !== "key";
|
|
222
222
|
});
|
|
223
|
-
_ = 0 <
|
|
223
|
+
_ = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", Ce[$ + _] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
224
224
|
`A props object containing a "key" prop is being spread into JSX:
|
|
225
225
|
let props = %s;
|
|
226
226
|
<%s {...props} />
|
|
@@ -228,26 +228,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
228
228
|
let props = %s;
|
|
229
229
|
<%s key={someKey} {...props} />`,
|
|
230
230
|
_,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
), Ce[
|
|
231
|
+
$,
|
|
232
|
+
ae,
|
|
233
|
+
$
|
|
234
|
+
), Ce[$ + _] = !0);
|
|
235
235
|
}
|
|
236
|
-
if (
|
|
237
|
-
|
|
238
|
-
for (var De in
|
|
239
|
-
De !== "key" && (
|
|
240
|
-
} else
|
|
241
|
-
return
|
|
242
|
-
|
|
236
|
+
if ($ = null, V !== void 0 && (t(V), $ = "" + V), i(B) && (t(B.key), $ = "" + B.key), "key" in B) {
|
|
237
|
+
V = {};
|
|
238
|
+
for (var De in B)
|
|
239
|
+
De !== "key" && (V[De] = B[De]);
|
|
240
|
+
} else V = B;
|
|
241
|
+
return $ && a(
|
|
242
|
+
V,
|
|
243
243
|
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
244
244
|
), c(
|
|
245
245
|
C,
|
|
246
|
+
$,
|
|
246
247
|
V,
|
|
247
|
-
B,
|
|
248
248
|
o(),
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
Se,
|
|
250
|
+
q
|
|
251
251
|
);
|
|
252
252
|
}
|
|
253
253
|
function u(C) {
|
|
@@ -256,7 +256,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
256
256
|
function h(C) {
|
|
257
257
|
return typeof C == "object" && C !== null && C.$$typeof === f;
|
|
258
258
|
}
|
|
259
|
-
var p = Pe, f = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), M = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"),
|
|
259
|
+
var p = Pe, f = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), M = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), G = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = Object.prototype.hasOwnProperty, Z = Array.isArray, U = console.createTask ? console.createTask : function() {
|
|
260
260
|
return null;
|
|
261
261
|
};
|
|
262
262
|
p = {
|
|
@@ -264,26 +264,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
return C();
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
|
-
var
|
|
267
|
+
var X, Y = {}, z = p.react_stack_bottom_frame.bind(
|
|
268
268
|
p,
|
|
269
269
|
s
|
|
270
270
|
)(), xe = U(r(s)), Ce = {};
|
|
271
|
-
xr.Fragment = g, xr.jsx = function(C,
|
|
272
|
-
var _ = 1e4 >
|
|
271
|
+
xr.Fragment = g, xr.jsx = function(C, B, V) {
|
|
272
|
+
var _ = 1e4 > G.recentlyCreatedOwnerStacks++;
|
|
273
273
|
return d(
|
|
274
274
|
C,
|
|
275
|
-
H,
|
|
276
275
|
B,
|
|
276
|
+
V,
|
|
277
277
|
!1,
|
|
278
278
|
_ ? Error("react-stack-top-frame") : z,
|
|
279
279
|
_ ? U(r(C)) : xe
|
|
280
280
|
);
|
|
281
|
-
}, xr.jsxs = function(C,
|
|
282
|
-
var _ = 1e4 >
|
|
281
|
+
}, xr.jsxs = function(C, B, V) {
|
|
282
|
+
var _ = 1e4 > G.recentlyCreatedOwnerStacks++;
|
|
283
283
|
return d(
|
|
284
284
|
C,
|
|
285
|
-
H,
|
|
286
285
|
B,
|
|
286
|
+
V,
|
|
287
287
|
!0,
|
|
288
288
|
_ ? Error("react-stack-top-frame") : z,
|
|
289
289
|
_ ? U(r(C)) : xe
|
|
@@ -299,11 +299,11 @@ var N = xp();
|
|
|
299
299
|
function Cp(n) {
|
|
300
300
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Me(n) {
|
|
303
303
|
this.content = n;
|
|
304
304
|
}
|
|
305
|
-
|
|
306
|
-
constructor:
|
|
305
|
+
Me.prototype = {
|
|
306
|
+
constructor: Me,
|
|
307
307
|
find: function(n) {
|
|
308
308
|
for (var e = 0; e < this.content.length; e += 2)
|
|
309
309
|
if (this.content[e] === n) return e;
|
|
@@ -322,7 +322,7 @@ Se.prototype = {
|
|
|
322
322
|
// given, the key of the binding will be replaced with that key.
|
|
323
323
|
update: function(n, e, t) {
|
|
324
324
|
var r = t && t != n ? this.remove(t) : this, o = r.find(n), s = r.content.slice();
|
|
325
|
-
return o == -1 ? s.push(t || n, e) : (s[o + 1] = e, t && (s[o] = t)), new
|
|
325
|
+
return o == -1 ? s.push(t || n, e) : (s[o + 1] = e, t && (s[o] = t)), new Me(s);
|
|
326
326
|
},
|
|
327
327
|
// :: (string) → OrderedMap
|
|
328
328
|
// Return a map with the given key removed, if it existed.
|
|
@@ -330,25 +330,25 @@ Se.prototype = {
|
|
|
330
330
|
var e = this.find(n);
|
|
331
331
|
if (e == -1) return this;
|
|
332
332
|
var t = this.content.slice();
|
|
333
|
-
return t.splice(e, 2), new
|
|
333
|
+
return t.splice(e, 2), new Me(t);
|
|
334
334
|
},
|
|
335
335
|
// :: (string, any) → OrderedMap
|
|
336
336
|
// Add a new key to the start of the map.
|
|
337
337
|
addToStart: function(n, e) {
|
|
338
|
-
return new
|
|
338
|
+
return new Me([n, e].concat(this.remove(n).content));
|
|
339
339
|
},
|
|
340
340
|
// :: (string, any) → OrderedMap
|
|
341
341
|
// Add a new key to the end of the map.
|
|
342
342
|
addToEnd: function(n, e) {
|
|
343
343
|
var t = this.remove(n).content.slice();
|
|
344
|
-
return t.push(n, e), new
|
|
344
|
+
return t.push(n, e), new Me(t);
|
|
345
345
|
},
|
|
346
346
|
// :: (string, string, any) → OrderedMap
|
|
347
347
|
// Add a key after the given key. If `place` is not found, the new
|
|
348
348
|
// key is added to the end.
|
|
349
349
|
addBefore: function(n, e, t) {
|
|
350
350
|
var r = this.remove(e), o = r.content.slice(), s = r.find(n);
|
|
351
|
-
return o.splice(s == -1 ? o.length : s, 0, e, t), new
|
|
351
|
+
return o.splice(s == -1 ? o.length : s, 0, e, t), new Me(o);
|
|
352
352
|
},
|
|
353
353
|
// :: ((key: string, value: any))
|
|
354
354
|
// Call the given function for each key/value pair in the map, in
|
|
@@ -361,20 +361,20 @@ Se.prototype = {
|
|
|
361
361
|
// Create a new map by prepending the keys in this map that don't
|
|
362
362
|
// appear in `map` before the keys in `map`.
|
|
363
363
|
prepend: function(n) {
|
|
364
|
-
return n =
|
|
364
|
+
return n = Me.from(n), n.size ? new Me(n.content.concat(this.subtract(n).content)) : this;
|
|
365
365
|
},
|
|
366
366
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
367
367
|
// Create a new map by appending the keys in this map that don't
|
|
368
368
|
// appear in `map` after the keys in `map`.
|
|
369
369
|
append: function(n) {
|
|
370
|
-
return n =
|
|
370
|
+
return n = Me.from(n), n.size ? new Me(this.subtract(n).content.concat(n.content)) : this;
|
|
371
371
|
},
|
|
372
372
|
// :: (union<Object, OrderedMap>) → OrderedMap
|
|
373
373
|
// Create a map containing all the keys in this map that don't
|
|
374
374
|
// appear in `map`.
|
|
375
375
|
subtract: function(n) {
|
|
376
376
|
var e = this;
|
|
377
|
-
n =
|
|
377
|
+
n = Me.from(n);
|
|
378
378
|
for (var t = 0; t < n.content.length; t += 2)
|
|
379
379
|
e = e.remove(n.content[t]);
|
|
380
380
|
return e;
|
|
@@ -393,11 +393,11 @@ Se.prototype = {
|
|
|
393
393
|
return this.content.length >> 1;
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
|
-
|
|
397
|
-
if (n instanceof
|
|
396
|
+
Me.from = function(n) {
|
|
397
|
+
if (n instanceof Me) return n;
|
|
398
398
|
var e = [];
|
|
399
399
|
if (n) for (var t in n) e.push(t, n[t]);
|
|
400
|
-
return new
|
|
400
|
+
return new Me(e);
|
|
401
401
|
};
|
|
402
402
|
function Kc(n, e, t) {
|
|
403
403
|
for (let r = 0; ; r++) {
|
|
@@ -2351,7 +2351,7 @@ class ad {
|
|
|
2351
2351
|
let t = this.spec = {};
|
|
2352
2352
|
for (let o in e)
|
|
2353
2353
|
t[o] = e[o];
|
|
2354
|
-
t.nodes =
|
|
2354
|
+
t.nodes = Me.from(e.nodes), t.marks = Me.from(e.marks || {}), this.nodes = Da.compile(this.spec.nodes, this), this.marks = Vo.compile(this.spec.marks, this);
|
|
2355
2355
|
let r = /* @__PURE__ */ Object.create(null);
|
|
2356
2356
|
for (let o in this.nodes) {
|
|
2357
2357
|
if (o in this.marks)
|
|
@@ -4705,7 +4705,7 @@ class F {
|
|
|
4705
4705
|
found.
|
|
4706
4706
|
*/
|
|
4707
4707
|
static findFrom(e, t, r = !1) {
|
|
4708
|
-
let o = e.parent.inlineContent ? new
|
|
4708
|
+
let o = e.parent.inlineContent ? new H(e) : vn(e.node(0), e.parent, e.pos, e.index(), t, r);
|
|
4709
4709
|
if (o)
|
|
4710
4710
|
return o;
|
|
4711
4711
|
for (let s = e.depth - 1; s >= 0; s--) {
|
|
@@ -4772,7 +4772,7 @@ class F {
|
|
|
4772
4772
|
returns the bookmark for that.
|
|
4773
4773
|
*/
|
|
4774
4774
|
getBookmark() {
|
|
4775
|
-
return
|
|
4775
|
+
return H.between(this.$anchor, this.$head).getBookmark();
|
|
4776
4776
|
}
|
|
4777
4777
|
}
|
|
4778
4778
|
F.prototype.visible = !0;
|
|
@@ -4788,7 +4788,7 @@ let Fa = !1;
|
|
|
4788
4788
|
function Wa(n) {
|
|
4789
4789
|
!Fa && !n.parent.inlineContent && (Fa = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
|
|
4790
4790
|
}
|
|
4791
|
-
class
|
|
4791
|
+
class H extends F {
|
|
4792
4792
|
/**
|
|
4793
4793
|
Construct a text selection between the given points.
|
|
4794
4794
|
*/
|
|
@@ -4807,7 +4807,7 @@ class P extends F {
|
|
|
4807
4807
|
if (!r.parent.inlineContent)
|
|
4808
4808
|
return F.near(r);
|
|
4809
4809
|
let o = e.resolve(t.map(this.anchor));
|
|
4810
|
-
return new
|
|
4810
|
+
return new H(o.parent.inlineContent ? o : r, r);
|
|
4811
4811
|
}
|
|
4812
4812
|
replace(e, t = R.empty) {
|
|
4813
4813
|
if (super.replace(e, t), t == R.empty) {
|
|
@@ -4816,7 +4816,7 @@ class P extends F {
|
|
|
4816
4816
|
}
|
|
4817
4817
|
}
|
|
4818
4818
|
eq(e) {
|
|
4819
|
-
return e instanceof
|
|
4819
|
+
return e instanceof H && e.anchor == this.anchor && e.head == this.head;
|
|
4820
4820
|
}
|
|
4821
4821
|
getBookmark() {
|
|
4822
4822
|
return new _o(this.anchor, this.head);
|
|
@@ -4830,7 +4830,7 @@ class P extends F {
|
|
|
4830
4830
|
static fromJSON(e, t) {
|
|
4831
4831
|
if (typeof t.anchor != "number" || typeof t.head != "number")
|
|
4832
4832
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
4833
|
-
return new
|
|
4833
|
+
return new H(e.resolve(t.anchor), e.resolve(t.head));
|
|
4834
4834
|
}
|
|
4835
4835
|
/**
|
|
4836
4836
|
Create a text selection from non-resolved positions.
|
|
@@ -4856,10 +4856,10 @@ class P extends F {
|
|
|
4856
4856
|
else
|
|
4857
4857
|
return F.near(t, r);
|
|
4858
4858
|
}
|
|
4859
|
-
return e.parent.inlineContent || (o == 0 ? e = t : (e = (F.findFrom(e, -r, !0) || F.findFrom(e, r, !0)).$anchor, e.pos < t.pos != o < 0 && (e = t))), new
|
|
4859
|
+
return e.parent.inlineContent || (o == 0 ? e = t : (e = (F.findFrom(e, -r, !0) || F.findFrom(e, r, !0)).$anchor, e.pos < t.pos != o < 0 && (e = t))), new H(e, t);
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
|
-
F.jsonID("text",
|
|
4862
|
+
F.jsonID("text", H);
|
|
4863
4863
|
class _o {
|
|
4864
4864
|
constructor(e, t) {
|
|
4865
4865
|
this.anchor = e, this.head = t;
|
|
@@ -4868,10 +4868,10 @@ class _o {
|
|
|
4868
4868
|
return new _o(e.map(this.anchor), e.map(this.head));
|
|
4869
4869
|
}
|
|
4870
4870
|
resolve(e) {
|
|
4871
|
-
return
|
|
4871
|
+
return H.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
4872
4872
|
}
|
|
4873
4873
|
}
|
|
4874
|
-
class
|
|
4874
|
+
class j extends F {
|
|
4875
4875
|
/**
|
|
4876
4876
|
Create a node selection. Does not verify the validity of its
|
|
4877
4877
|
argument.
|
|
@@ -4882,13 +4882,13 @@ class $ extends F {
|
|
|
4882
4882
|
}
|
|
4883
4883
|
map(e, t) {
|
|
4884
4884
|
let { deleted: r, pos: o } = t.mapResult(this.anchor), s = e.resolve(o);
|
|
4885
|
-
return r ? F.near(s) : new
|
|
4885
|
+
return r ? F.near(s) : new j(s);
|
|
4886
4886
|
}
|
|
4887
4887
|
content() {
|
|
4888
4888
|
return new R(E.from(this.node), 0, 0);
|
|
4889
4889
|
}
|
|
4890
4890
|
eq(e) {
|
|
4891
|
-
return e instanceof
|
|
4891
|
+
return e instanceof j && e.anchor == this.anchor;
|
|
4892
4892
|
}
|
|
4893
4893
|
toJSON() {
|
|
4894
4894
|
return { type: "node", anchor: this.anchor };
|
|
@@ -4902,13 +4902,13 @@ class $ extends F {
|
|
|
4902
4902
|
static fromJSON(e, t) {
|
|
4903
4903
|
if (typeof t.anchor != "number")
|
|
4904
4904
|
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
|
4905
|
-
return new
|
|
4905
|
+
return new j(e.resolve(t.anchor));
|
|
4906
4906
|
}
|
|
4907
4907
|
/**
|
|
4908
4908
|
Create a node selection from non-resolved positions.
|
|
4909
4909
|
*/
|
|
4910
4910
|
static create(e, t) {
|
|
4911
|
-
return new
|
|
4911
|
+
return new j(e.resolve(t));
|
|
4912
4912
|
}
|
|
4913
4913
|
/**
|
|
4914
4914
|
Determines whether the given node may be selected as a node
|
|
@@ -4918,8 +4918,8 @@ class $ extends F {
|
|
|
4918
4918
|
return !e.isText && e.type.spec.selectable !== !1;
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
|
|
4922
|
-
F.jsonID("node",
|
|
4921
|
+
j.prototype.visible = !1;
|
|
4922
|
+
F.jsonID("node", j);
|
|
4923
4923
|
class Ri {
|
|
4924
4924
|
constructor(e) {
|
|
4925
4925
|
this.anchor = e;
|
|
@@ -4930,7 +4930,7 @@ class Ri {
|
|
|
4930
4930
|
}
|
|
4931
4931
|
resolve(e) {
|
|
4932
4932
|
let t = e.resolve(this.anchor), r = t.nodeAfter;
|
|
4933
|
-
return r &&
|
|
4933
|
+
return r && j.isSelectable(r) ? new j(t) : F.near(t);
|
|
4934
4934
|
}
|
|
4935
4935
|
}
|
|
4936
4936
|
class We extends F {
|
|
@@ -4978,12 +4978,12 @@ const gf = {
|
|
|
4978
4978
|
};
|
|
4979
4979
|
function vn(n, e, t, r, o, s = !1) {
|
|
4980
4980
|
if (e.inlineContent)
|
|
4981
|
-
return
|
|
4981
|
+
return H.create(n, t);
|
|
4982
4982
|
for (let i = r - (o > 0 ? 0 : 1); o > 0 ? i < e.childCount : i >= 0; i += o) {
|
|
4983
4983
|
let a = e.child(i);
|
|
4984
4984
|
if (a.isAtom) {
|
|
4985
|
-
if (!s &&
|
|
4986
|
-
return
|
|
4985
|
+
if (!s && j.isSelectable(a))
|
|
4986
|
+
return j.create(n, t - (o < 0 ? a.nodeSize : 0));
|
|
4987
4987
|
} else {
|
|
4988
4988
|
let l = vn(n, a, t + o, o < 0 ? a.childCount : 0, o, s);
|
|
4989
4989
|
if (l)
|
|
@@ -5380,7 +5380,7 @@ function Sd(n, e, t) {
|
|
|
5380
5380
|
}
|
|
5381
5381
|
return t;
|
|
5382
5382
|
}
|
|
5383
|
-
class
|
|
5383
|
+
class ie {
|
|
5384
5384
|
/**
|
|
5385
5385
|
Create a plugin.
|
|
5386
5386
|
*/
|
|
@@ -5436,13 +5436,13 @@ const Ed = (n, e, t) => {
|
|
|
5436
5436
|
let s = o.nodeBefore;
|
|
5437
5437
|
if ($d(n, o, e, -1))
|
|
5438
5438
|
return !0;
|
|
5439
|
-
if (r.parent.content.size == 0 && (On(s, "end") ||
|
|
5439
|
+
if (r.parent.content.size == 0 && (On(s, "end") || j.isSelectable(s)))
|
|
5440
5440
|
for (let i = r.depth; ; i--) {
|
|
5441
5441
|
let a = Wo(n.doc, r.before(i), r.after(i), R.empty);
|
|
5442
5442
|
if (a && a.slice.size < a.to - a.from) {
|
|
5443
5443
|
if (e) {
|
|
5444
5444
|
let l = n.tr.step(a);
|
|
5445
|
-
l.setSelection(On(s, "end") ? F.findFrom(l.doc.resolve(l.mapping.map(o.pos, -1)), -1) :
|
|
5445
|
+
l.setSelection(On(s, "end") ? F.findFrom(l.doc.resolve(l.mapping.map(o.pos, -1)), -1) : j.create(l.doc, o.pos - s.nodeSize)), e(l.scrollIntoView());
|
|
5446
5446
|
}
|
|
5447
5447
|
return !0;
|
|
5448
5448
|
}
|
|
@@ -5487,7 +5487,7 @@ function Nd(n, e, t) {
|
|
|
5487
5487
|
return !1;
|
|
5488
5488
|
if (t) {
|
|
5489
5489
|
let d = n.tr.step(c);
|
|
5490
|
-
d.setSelection(
|
|
5490
|
+
d.setSelection(H.create(d.doc, s)), t(d.scrollIntoView());
|
|
5491
5491
|
}
|
|
5492
5492
|
return !0;
|
|
5493
5493
|
}
|
|
@@ -5510,7 +5510,7 @@ const Ad = (n, e, t) => {
|
|
|
5510
5510
|
s = Li(r);
|
|
5511
5511
|
}
|
|
5512
5512
|
let i = s && s.nodeBefore;
|
|
5513
|
-
return !i ||
|
|
5513
|
+
return !i || !j.isSelectable(i) ? !1 : (e && e(n.tr.setSelection(j.create(n.doc, s.pos - i.nodeSize)).scrollIntoView()), !0);
|
|
5514
5514
|
};
|
|
5515
5515
|
function Li(n) {
|
|
5516
5516
|
if (!n.parent.type.spec.isolating)
|
|
@@ -5536,12 +5536,12 @@ const Rd = (n, e, t) => {
|
|
|
5536
5536
|
let s = o.nodeAfter;
|
|
5537
5537
|
if ($d(n, o, e, 1))
|
|
5538
5538
|
return !0;
|
|
5539
|
-
if (r.parent.content.size == 0 && (On(s, "start") ||
|
|
5539
|
+
if (r.parent.content.size == 0 && (On(s, "start") || j.isSelectable(s))) {
|
|
5540
5540
|
let i = Wo(n.doc, r.before(), r.after(), R.empty);
|
|
5541
5541
|
if (i && i.slice.size < i.to - i.from) {
|
|
5542
5542
|
if (e) {
|
|
5543
5543
|
let a = n.tr.step(i);
|
|
5544
|
-
a.setSelection(On(s, "start") ? F.findFrom(a.doc.resolve(a.mapping.map(o.pos)), 1) :
|
|
5544
|
+
a.setSelection(On(s, "start") ? F.findFrom(a.doc.resolve(a.mapping.map(o.pos)), 1) : j.create(a.doc, a.mapping.map(o.pos))), e(a.scrollIntoView());
|
|
5545
5545
|
}
|
|
5546
5546
|
return !0;
|
|
5547
5547
|
}
|
|
@@ -5557,7 +5557,7 @@ const Rd = (n, e, t) => {
|
|
|
5557
5557
|
s = zi(r);
|
|
5558
5558
|
}
|
|
5559
5559
|
let i = s && s.nodeAfter;
|
|
5560
|
-
return !i ||
|
|
5560
|
+
return !i || !j.isSelectable(i) ? !1 : (e && e(n.tr.setSelection(j.create(n.doc, s.pos)).scrollIntoView()), !0);
|
|
5561
5561
|
};
|
|
5562
5562
|
function zi(n) {
|
|
5563
5563
|
if (!n.parent.type.spec.isolating)
|
|
@@ -5571,7 +5571,7 @@ function zi(n) {
|
|
|
5571
5571
|
return null;
|
|
5572
5572
|
}
|
|
5573
5573
|
const vf = (n, e) => {
|
|
5574
|
-
let t = n.selection, r = t instanceof
|
|
5574
|
+
let t = n.selection, r = t instanceof j, o;
|
|
5575
5575
|
if (r) {
|
|
5576
5576
|
if (t.node.isTextblock || !Wt(n.doc, t.from))
|
|
5577
5577
|
return !1;
|
|
@@ -5580,12 +5580,12 @@ const vf = (n, e) => {
|
|
|
5580
5580
|
return !1;
|
|
5581
5581
|
if (e) {
|
|
5582
5582
|
let s = n.tr.join(o);
|
|
5583
|
-
r && s.setSelection(
|
|
5583
|
+
r && s.setSelection(j.create(s.doc, o - n.doc.resolve(o).nodeBefore.nodeSize)), e(s.scrollIntoView());
|
|
5584
5584
|
}
|
|
5585
5585
|
return !0;
|
|
5586
5586
|
}, xf = (n, e) => {
|
|
5587
5587
|
let t = n.selection, r;
|
|
5588
|
-
if (t instanceof
|
|
5588
|
+
if (t instanceof j) {
|
|
5589
5589
|
if (t.node.isTextblock || !Wt(n.doc, t.to))
|
|
5590
5590
|
return !1;
|
|
5591
5591
|
r = t.to;
|
|
@@ -5629,7 +5629,7 @@ const Sf = (n, e) => {
|
|
|
5629
5629
|
return !1;
|
|
5630
5630
|
if (e) {
|
|
5631
5631
|
let i = (!r.parentOffset && o.index() < o.parent.childCount ? r : o).pos, a = n.tr.insert(i, s.createAndFill());
|
|
5632
|
-
a.setSelection(
|
|
5632
|
+
a.setSelection(H.create(a.doc, i + 1)), e(a.scrollIntoView());
|
|
5633
5633
|
}
|
|
5634
5634
|
return !0;
|
|
5635
5635
|
}, Id = (n, e) => {
|
|
@@ -5647,7 +5647,7 @@ const Sf = (n, e) => {
|
|
|
5647
5647
|
function Mf(n) {
|
|
5648
5648
|
return (e, t) => {
|
|
5649
5649
|
let { $from: r, $to: o } = e.selection;
|
|
5650
|
-
if (e.selection instanceof
|
|
5650
|
+
if (e.selection instanceof j && e.selection.node.isBlock)
|
|
5651
5651
|
return !r.parentOffset || !wt(e.doc, r.pos) ? !1 : (t && t(e.tr.split(r.pos).scrollIntoView()), !0);
|
|
5652
5652
|
if (!r.depth)
|
|
5653
5653
|
return !1;
|
|
@@ -5662,7 +5662,7 @@ function Mf(n) {
|
|
|
5662
5662
|
s.unshift(null);
|
|
5663
5663
|
}
|
|
5664
5664
|
let d = e.tr;
|
|
5665
|
-
(e.selection instanceof
|
|
5665
|
+
(e.selection instanceof H || e.selection instanceof We) && d.deleteSelection();
|
|
5666
5666
|
let u = d.mapping.map(r.pos), h = wt(d.doc, u, s.length, s);
|
|
5667
5667
|
if (h || (s[0] = a ? { type: a } : null, h = wt(d.doc, u, s.length, s)), !h)
|
|
5668
5668
|
return !1;
|
|
@@ -5675,7 +5675,7 @@ function Mf(n) {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
const Tf = Mf(), Ef = (n, e) => {
|
|
5677
5677
|
let { $from: t, to: r } = n.selection, o, s = t.sharedDepth(r);
|
|
5678
|
-
return s == 0 ? !1 : (o = t.before(s), e && e(n.tr.setSelection(
|
|
5678
|
+
return s == 0 ? !1 : (o = t.before(s), e && e(n.tr.setSelection(j.create(n.doc, o))), !0);
|
|
5679
5679
|
};
|
|
5680
5680
|
function Nf(n, e, t) {
|
|
5681
5681
|
let r = e.nodeBefore, o = e.nodeAfter, s = e.index();
|
|
@@ -5728,7 +5728,7 @@ function jd(n) {
|
|
|
5728
5728
|
return !1;
|
|
5729
5729
|
s--;
|
|
5730
5730
|
}
|
|
5731
|
-
return o.node(s).isTextblock ? (t && t(e.tr.setSelection(
|
|
5731
|
+
return o.node(s).isTextblock ? (t && t(e.tr.setSelection(H.create(e.doc, n < 0 ? o.start(s) : o.end(s)))), !0) : !1;
|
|
5732
5732
|
};
|
|
5733
5733
|
}
|
|
5734
5734
|
const Af = jd(-1), Of = jd(1);
|
|
@@ -5860,7 +5860,7 @@ function Pf(n) {
|
|
|
5860
5860
|
return !0;
|
|
5861
5861
|
};
|
|
5862
5862
|
}
|
|
5863
|
-
const
|
|
5863
|
+
const Te = function(n) {
|
|
5864
5864
|
for (var e = 0; ; e++)
|
|
5865
5865
|
if (n = n.previousSibling, !n)
|
|
5866
5866
|
return e;
|
|
@@ -5885,7 +5885,7 @@ function Ga(n, e, t, r, o) {
|
|
|
5885
5885
|
let i = n.parentNode;
|
|
5886
5886
|
if (!i || i.nodeType != 1 || gr(n) || Bf.test(n.nodeName) || n.contentEditable == "false")
|
|
5887
5887
|
return !1;
|
|
5888
|
-
e =
|
|
5888
|
+
e = Te(n) + (o < 0 ? 0 : 1), n = i;
|
|
5889
5889
|
} else if (n.nodeType == 1) {
|
|
5890
5890
|
let i = n.childNodes[e + (o < 0 ? -1 : 0)];
|
|
5891
5891
|
if (i.nodeType == 1 && i.contentEditable == "false")
|
|
@@ -5911,7 +5911,7 @@ function Vf(n, e) {
|
|
|
5911
5911
|
return null;
|
|
5912
5912
|
n = n.childNodes[e - 1], e = qe(n);
|
|
5913
5913
|
} else if (n.parentNode && !gr(n))
|
|
5914
|
-
e =
|
|
5914
|
+
e = Te(n), n = n.parentNode;
|
|
5915
5915
|
else
|
|
5916
5916
|
return null;
|
|
5917
5917
|
}
|
|
@@ -5925,7 +5925,7 @@ function Ff(n, e) {
|
|
|
5925
5925
|
return null;
|
|
5926
5926
|
n = n.childNodes[e], e = 0;
|
|
5927
5927
|
} else if (n.parentNode && !gr(n))
|
|
5928
|
-
e =
|
|
5928
|
+
e = Te(n) + 1, n = n.parentNode;
|
|
5929
5929
|
else
|
|
5930
5930
|
return null;
|
|
5931
5931
|
}
|
|
@@ -5934,7 +5934,7 @@ function Wf(n, e, t) {
|
|
|
5934
5934
|
for (let r = e == 0, o = e == qe(n); r || o; ) {
|
|
5935
5935
|
if (n == t)
|
|
5936
5936
|
return !0;
|
|
5937
|
-
let s =
|
|
5937
|
+
let s = Te(n);
|
|
5938
5938
|
if (n = n.parentNode, !n)
|
|
5939
5939
|
return !1;
|
|
5940
5940
|
r = r && s == 0, o = o && s == qe(n);
|
|
@@ -6405,7 +6405,7 @@ class br {
|
|
|
6405
6405
|
}
|
|
6406
6406
|
let o;
|
|
6407
6407
|
if (e == this.dom && this.contentDOM)
|
|
6408
|
-
o = t >
|
|
6408
|
+
o = t > Te(this.contentDOM);
|
|
6409
6409
|
else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
|
|
6410
6410
|
o = e.compareDocumentPosition(this.contentDOM) & 2;
|
|
6411
6411
|
else if (this.dom.firstChild) {
|
|
@@ -6495,12 +6495,12 @@ class br {
|
|
|
6495
6495
|
let s, i = !0;
|
|
6496
6496
|
for (; s = r ? this.children[r - 1] : null, !(!s || s.dom.parentNode == this.contentDOM); r--, i = !1)
|
|
6497
6497
|
;
|
|
6498
|
-
return s && t && i && !s.border && !s.domAtom ? s.domFromPos(s.size, t) : { node: this.contentDOM, offset: s ?
|
|
6498
|
+
return s && t && i && !s.border && !s.domAtom ? s.domFromPos(s.size, t) : { node: this.contentDOM, offset: s ? Te(s.dom) + 1 : 0 };
|
|
6499
6499
|
} else {
|
|
6500
6500
|
let s, i = !0;
|
|
6501
6501
|
for (; s = r < this.children.length ? this.children[r] : null, !(!s || s.dom.parentNode == this.contentDOM); r++, i = !1)
|
|
6502
6502
|
;
|
|
6503
|
-
return s && i && !s.border && !s.domAtom ? s.domFromPos(0, t) : { node: this.contentDOM, offset: s ?
|
|
6503
|
+
return s && i && !s.border && !s.domAtom ? s.domFromPos(0, t) : { node: this.contentDOM, offset: s ? Te(s.dom) : this.contentDOM.childNodes.length };
|
|
6504
6504
|
}
|
|
6505
6505
|
}
|
|
6506
6506
|
// Used to find a DOM range in a single parent for a given changed
|
|
@@ -6519,7 +6519,7 @@ class br {
|
|
|
6519
6519
|
for (let u = a; u > 0; u--) {
|
|
6520
6520
|
let h = this.children[u - 1];
|
|
6521
6521
|
if (h.size && h.dom.parentNode == this.contentDOM && !h.emptyChildAt(1)) {
|
|
6522
|
-
o =
|
|
6522
|
+
o = Te(h.dom) + 1;
|
|
6523
6523
|
break;
|
|
6524
6524
|
}
|
|
6525
6525
|
e -= h.size;
|
|
@@ -6531,7 +6531,7 @@ class br {
|
|
|
6531
6531
|
for (let d = a + 1; d < this.children.length; d++) {
|
|
6532
6532
|
let u = this.children[d];
|
|
6533
6533
|
if (u.size && u.dom.parentNode == this.contentDOM && !u.emptyChildAt(-1)) {
|
|
6534
|
-
s =
|
|
6534
|
+
s = Te(u.dom);
|
|
6535
6535
|
break;
|
|
6536
6536
|
}
|
|
6537
6537
|
t += u.size;
|
|
@@ -6576,7 +6576,7 @@ class br {
|
|
|
6576
6576
|
`), u && f == p.nodeValue.length)
|
|
6577
6577
|
for (let m = p, g; m; m = m.parentNode) {
|
|
6578
6578
|
if (g = m.nextSibling) {
|
|
6579
|
-
g.nodeName == "BR" && (a = l = { node: g.parentNode, offset:
|
|
6579
|
+
g.nodeName == "BR" && (a = l = { node: g.parentNode, offset: Te(g) + 1 });
|
|
6580
6580
|
break;
|
|
6581
6581
|
}
|
|
6582
6582
|
let y = m.pmViewDesc;
|
|
@@ -6825,7 +6825,7 @@ class jt extends br {
|
|
|
6825
6825
|
}
|
|
6826
6826
|
localCompositionInfo(e, t) {
|
|
6827
6827
|
let { from: r, to: o } = e.state.selection;
|
|
6828
|
-
if (!(e.state.selection instanceof
|
|
6828
|
+
if (!(e.state.selection instanceof H) || r < t || o > t + this.node.content.size)
|
|
6829
6829
|
return null;
|
|
6830
6830
|
let s = e.input.compositionNode;
|
|
6831
6831
|
if (!s || !this.dom.contains(s.parentNode))
|
|
@@ -7341,9 +7341,9 @@ function Pi(n, e = null) {
|
|
|
7341
7341
|
for (l = i; o && !o.node; )
|
|
7342
7342
|
o = o.parent;
|
|
7343
7343
|
let u = o.node;
|
|
7344
|
-
if (o && u.isAtom &&
|
|
7344
|
+
if (o && u.isAtom && j.isSelectable(u) && o.parent && !(u.isInline && Wf(t.focusNode, t.focusOffset, o.dom))) {
|
|
7345
7345
|
let h = o.posBefore;
|
|
7346
|
-
c = new
|
|
7346
|
+
c = new j(i == h ? a : r.resolve(h));
|
|
7347
7347
|
}
|
|
7348
7348
|
} else {
|
|
7349
7349
|
if (t instanceof n.dom.ownerDocument.defaultView.Selection && t.rangeCount > 1) {
|
|
@@ -7384,7 +7384,7 @@ function kt(n, e = !1) {
|
|
|
7384
7384
|
wm(n);
|
|
7385
7385
|
else {
|
|
7386
7386
|
let { anchor: r, head: o } = t, s, i;
|
|
7387
|
-
sl && !(t instanceof
|
|
7387
|
+
sl && !(t instanceof H) && (t.$from.parent.inlineContent || (s = il(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (i = il(n, t.to))), n.docView.setSelection(r, o, n, e), sl && (s && al(s), i && al(i)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && bm(n));
|
|
7388
7388
|
}
|
|
7389
7389
|
n.domObserver.setCurSelection(), n.domObserver.connectSelection();
|
|
7390
7390
|
}
|
|
@@ -7422,10 +7422,10 @@ function wm(n) {
|
|
|
7422
7422
|
if (!e)
|
|
7423
7423
|
return;
|
|
7424
7424
|
let t = n.cursorWrapper.dom, r = t.nodeName == "IMG";
|
|
7425
|
-
r ? e.collapse(t.parentNode,
|
|
7425
|
+
r ? e.collapse(t.parentNode, Te(t) + 1) : e.collapse(t, 0), !r && !n.state.selection.visible && je && $t <= 11 && (t.disabled = !0, t.disabled = !1);
|
|
7426
7426
|
}
|
|
7427
7427
|
function Qd(n, e) {
|
|
7428
|
-
if (e instanceof
|
|
7428
|
+
if (e instanceof j) {
|
|
7429
7429
|
let t = n.docView.descAt(e.from);
|
|
7430
7430
|
t != n.lastSelectedViewDesc && (ll(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
|
|
7431
7431
|
} else
|
|
@@ -7435,7 +7435,7 @@ function ll(n) {
|
|
|
7435
7435
|
n.lastSelectedViewDesc && (n.lastSelectedViewDesc.parent && n.lastSelectedViewDesc.deselectNode(), n.lastSelectedViewDesc = void 0);
|
|
7436
7436
|
}
|
|
7437
7437
|
function Hi(n, e, t, r) {
|
|
7438
|
-
return n.someProp("createSelectionBetween", (o) => o(n, e, t)) ||
|
|
7438
|
+
return n.someProp("createSelectionBetween", (o) => o(n, e, t)) || H.between(e, t, r);
|
|
7439
7439
|
}
|
|
7440
7440
|
function cl(n) {
|
|
7441
7441
|
return n.editable && !n.hasFocus() ? !1 : Zd(n);
|
|
@@ -7463,28 +7463,28 @@ function Tt(n, e) {
|
|
|
7463
7463
|
}
|
|
7464
7464
|
function dl(n, e, t) {
|
|
7465
7465
|
let r = n.state.selection;
|
|
7466
|
-
if (r instanceof
|
|
7466
|
+
if (r instanceof H)
|
|
7467
7467
|
if (t.indexOf("s") > -1) {
|
|
7468
7468
|
let { $head: o } = r, s = o.textOffset ? null : e < 0 ? o.nodeBefore : o.nodeAfter;
|
|
7469
7469
|
if (!s || s.isText || !s.isLeaf)
|
|
7470
7470
|
return !1;
|
|
7471
7471
|
let i = n.state.doc.resolve(o.pos + s.nodeSize * (e < 0 ? -1 : 1));
|
|
7472
|
-
return Tt(n, new
|
|
7472
|
+
return Tt(n, new H(r.$anchor, i));
|
|
7473
7473
|
} else if (r.empty) {
|
|
7474
7474
|
if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
7475
7475
|
let o = ei(n.state, e);
|
|
7476
|
-
return o && o instanceof
|
|
7476
|
+
return o && o instanceof j ? Tt(n, o) : !1;
|
|
7477
7477
|
} else if (!(Ke && t.indexOf("m") > -1)) {
|
|
7478
7478
|
let o = r.$head, s = o.textOffset ? null : e < 0 ? o.nodeBefore : o.nodeAfter, i;
|
|
7479
7479
|
if (!s || s.isText)
|
|
7480
7480
|
return !1;
|
|
7481
7481
|
let a = e < 0 ? o.pos - s.nodeSize : o.pos;
|
|
7482
|
-
return s.isAtom || (i = n.docView.descAt(a)) && !i.contentDOM ?
|
|
7482
|
+
return s.isAtom || (i = n.docView.descAt(a)) && !i.contentDOM ? j.isSelectable(s) ? Tt(n, new j(e < 0 ? n.state.doc.resolve(o.pos - s.nodeSize) : o)) : yr ? Tt(n, new H(n.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
|
|
7483
7483
|
}
|
|
7484
7484
|
} else return !1;
|
|
7485
7485
|
else {
|
|
7486
|
-
if (r instanceof
|
|
7487
|
-
return Tt(n, new
|
|
7486
|
+
if (r instanceof j && r.node.isInline)
|
|
7487
|
+
return Tt(n, new H(e > 0 ? r.$to : r.$from));
|
|
7488
7488
|
{
|
|
7489
7489
|
let o = ei(n.state, e);
|
|
7490
7490
|
return o ? Tt(n, o) : !1;
|
|
@@ -7525,7 +7525,7 @@ function vm(n) {
|
|
|
7525
7525
|
{
|
|
7526
7526
|
let a = t.previousSibling;
|
|
7527
7527
|
for (; a && Xn(a, -1); )
|
|
7528
|
-
o = t.parentNode, s =
|
|
7528
|
+
o = t.parentNode, s = Te(a), a = a.previousSibling;
|
|
7529
7529
|
if (a)
|
|
7530
7530
|
t = a, r = eo(t);
|
|
7531
7531
|
else {
|
|
@@ -7557,7 +7557,7 @@ function xm(n) {
|
|
|
7557
7557
|
{
|
|
7558
7558
|
let a = t.nextSibling;
|
|
7559
7559
|
for (; a && Xn(a, 1); )
|
|
7560
|
-
s = a.parentNode, i =
|
|
7560
|
+
s = a.parentNode, i = Te(a) + 1, a = a.nextSibling;
|
|
7561
7561
|
if (a)
|
|
7562
7562
|
t = a, r = 0, o = eo(t);
|
|
7563
7563
|
else {
|
|
@@ -7575,7 +7575,7 @@ function eu(n) {
|
|
|
7575
7575
|
}
|
|
7576
7576
|
function Cm(n, e) {
|
|
7577
7577
|
for (; n && e == n.childNodes.length && !gr(n); )
|
|
7578
|
-
e =
|
|
7578
|
+
e = Te(n) + 1, n = n.parentNode;
|
|
7579
7579
|
for (; n && e < n.childNodes.length; ) {
|
|
7580
7580
|
let t = n.childNodes[e];
|
|
7581
7581
|
if (t.nodeType == 3)
|
|
@@ -7587,7 +7587,7 @@ function Cm(n, e) {
|
|
|
7587
7587
|
}
|
|
7588
7588
|
function Sm(n, e) {
|
|
7589
7589
|
for (; n && !e && !gr(n); )
|
|
7590
|
-
e =
|
|
7590
|
+
e = Te(n), n = n.parentNode;
|
|
7591
7591
|
for (; n && e; ) {
|
|
7592
7592
|
let t = n.childNodes[e - 1];
|
|
7593
7593
|
if (t.nodeType == 3)
|
|
@@ -7634,12 +7634,12 @@ function ul(n, e) {
|
|
|
7634
7634
|
}
|
|
7635
7635
|
function hl(n, e, t) {
|
|
7636
7636
|
let r = n.state.selection;
|
|
7637
|
-
if (r instanceof
|
|
7637
|
+
if (r instanceof H && !r.empty || t.indexOf("s") > -1 || Ke && t.indexOf("m") > -1)
|
|
7638
7638
|
return !1;
|
|
7639
7639
|
let { $from: o, $to: s } = r;
|
|
7640
7640
|
if (!o.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
7641
7641
|
let i = ei(n.state, e);
|
|
7642
|
-
if (i && i instanceof
|
|
7642
|
+
if (i && i instanceof j)
|
|
7643
7643
|
return Tt(n, i);
|
|
7644
7644
|
}
|
|
7645
7645
|
if (!o.parent.inlineContent) {
|
|
@@ -7649,7 +7649,7 @@ function hl(n, e, t) {
|
|
|
7649
7649
|
return !1;
|
|
7650
7650
|
}
|
|
7651
7651
|
function pl(n, e) {
|
|
7652
|
-
if (!(n.state.selection instanceof
|
|
7652
|
+
if (!(n.state.selection instanceof H))
|
|
7653
7653
|
return !0;
|
|
7654
7654
|
let { $head: t, $anchor: r, empty: o } = n.state.selection;
|
|
7655
7655
|
if (!t.sameParent(r))
|
|
@@ -7967,7 +7967,7 @@ Ie.keypress = (n, e) => {
|
|
|
7967
7967
|
return;
|
|
7968
7968
|
}
|
|
7969
7969
|
let r = n.state.selection;
|
|
7970
|
-
if (!(r instanceof
|
|
7970
|
+
if (!(r instanceof H) || !r.$from.sameParent(r.$to)) {
|
|
7971
7971
|
let o = String.fromCharCode(t.charCode), s = () => n.state.tr.insertText(o).scrollIntoView();
|
|
7972
7972
|
!/[\r\n]/.test(o) && !n.someProp("handleTextInput", (i) => i(n, r.$from.pos, r.$to.pos, o, s)) && n.dispatch(s()), t.preventDefault();
|
|
7973
7973
|
}
|
|
@@ -7998,22 +7998,22 @@ function Vm(n, e) {
|
|
|
7998
7998
|
if (e == -1)
|
|
7999
7999
|
return !1;
|
|
8000
8000
|
let t = n.state.doc.resolve(e), r = t.nodeAfter;
|
|
8001
|
-
return r && r.isAtom &&
|
|
8001
|
+
return r && r.isAtom && j.isSelectable(r) ? (Nn(n, new j(t)), !0) : !1;
|
|
8002
8002
|
}
|
|
8003
8003
|
function Fm(n, e) {
|
|
8004
8004
|
if (e == -1)
|
|
8005
8005
|
return !1;
|
|
8006
8006
|
let t = n.state.selection, r, o;
|
|
8007
|
-
t instanceof
|
|
8007
|
+
t instanceof j && (r = t.node);
|
|
8008
8008
|
let s = n.state.doc.resolve(e);
|
|
8009
8009
|
for (let i = s.depth + 1; i > 0; i--) {
|
|
8010
8010
|
let a = i > s.depth ? s.nodeAfter : s.node(i);
|
|
8011
|
-
if (
|
|
8011
|
+
if (j.isSelectable(a)) {
|
|
8012
8012
|
r && t.$from.depth > 0 && i >= t.$from.depth && s.before(t.$from.depth + 1) == t.$from.pos ? o = s.before(t.$from.depth) : o = s.before(i);
|
|
8013
8013
|
break;
|
|
8014
8014
|
}
|
|
8015
8015
|
}
|
|
8016
|
-
return o != null ? (Nn(n,
|
|
8016
|
+
return o != null ? (Nn(n, j.create(n.state.doc, o)), !0) : !1;
|
|
8017
8017
|
}
|
|
8018
8018
|
function Wm(n, e, t, r, o) {
|
|
8019
8019
|
return Fi(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (o ? Fm(n, t) : Vm(n, t));
|
|
@@ -8029,14 +8029,14 @@ function Km(n, e, t) {
|
|
|
8029
8029
|
return !1;
|
|
8030
8030
|
let r = n.state.doc;
|
|
8031
8031
|
if (e == -1)
|
|
8032
|
-
return r.inlineContent ? (Nn(n,
|
|
8032
|
+
return r.inlineContent ? (Nn(n, H.create(r, 0, r.content.size)), !0) : !1;
|
|
8033
8033
|
let o = r.resolve(e);
|
|
8034
8034
|
for (let s = o.depth + 1; s > 0; s--) {
|
|
8035
8035
|
let i = s > o.depth ? o.nodeAfter : o.node(s), a = o.before(s);
|
|
8036
8036
|
if (i.inlineContent)
|
|
8037
|
-
Nn(n,
|
|
8038
|
-
else if (
|
|
8039
|
-
Nn(n,
|
|
8037
|
+
Nn(n, H.create(r, a + 1, a + 1 + i.content.size));
|
|
8038
|
+
else if (j.isSelectable(i))
|
|
8039
|
+
Nn(n, j.create(r, a));
|
|
8040
8040
|
else
|
|
8041
8041
|
continue;
|
|
8042
8042
|
return !0;
|
|
@@ -8067,7 +8067,7 @@ class qm {
|
|
|
8067
8067
|
const a = o ? null : r.target, l = a ? e.docView.nearestDesc(a, !0) : null;
|
|
8068
8068
|
this.target = l && l.nodeDOM.nodeType == 1 ? l.nodeDOM : null;
|
|
8069
8069
|
let { selection: c } = e.state;
|
|
8070
|
-
(r.button == 0 && s.type.spec.draggable && s.type.spec.selectable !== !1 || c instanceof
|
|
8070
|
+
(r.button == 0 && s.type.spec.draggable && s.type.spec.selectable !== !1 || c instanceof j && c.from <= i && c.to > i) && (this.mightDrag = {
|
|
8071
8071
|
node: s,
|
|
8072
8072
|
pos: i,
|
|
8073
8073
|
addAttr: !!(this.target && !this.target.draggable),
|
|
@@ -8115,7 +8115,7 @@ Ie.compositionstart = Ie.compositionupdate = (n) => {
|
|
|
8115
8115
|
if (!n.composing) {
|
|
8116
8116
|
n.domObserver.flush();
|
|
8117
8117
|
let { state: e } = n, t = e.selection.$to;
|
|
8118
|
-
if (e.selection instanceof
|
|
8118
|
+
if (e.selection instanceof H && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
8119
8119
|
n.markCursor = n.state.storedMarks || t.marks(), to(n, !0), n.markCursor = null;
|
|
8120
8120
|
else if (to(n, !e.selection.empty), Ge && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
|
|
8121
8121
|
let r = n.domSelectionRange();
|
|
@@ -8245,12 +8245,12 @@ ze.dragstart = (n, e) => {
|
|
|
8245
8245
|
if (r && r.done(), !t.dataTransfer)
|
|
8246
8246
|
return;
|
|
8247
8247
|
let o = n.state.selection, s = o.empty ? null : n.posAtCoords(qo(t)), i;
|
|
8248
|
-
if (!(s && s.pos >= o.from && s.pos <= (o instanceof
|
|
8248
|
+
if (!(s && s.pos >= o.from && s.pos <= (o instanceof j ? o.to - 1 : o.to))) {
|
|
8249
8249
|
if (r && r.mightDrag)
|
|
8250
|
-
i =
|
|
8250
|
+
i = j.create(n.state.doc, r.mightDrag.pos);
|
|
8251
8251
|
else if (t.target && t.target.nodeType == 1) {
|
|
8252
8252
|
let u = n.docView.nearestDesc(t.target, !0);
|
|
8253
|
-
u && u.node.type.spec.draggable && u != n.docView && (i =
|
|
8253
|
+
u && u.node.type.spec.draggable && u != n.docView && (i = j.create(n.state.doc, u.posBefore));
|
|
8254
8254
|
}
|
|
8255
8255
|
}
|
|
8256
8256
|
let a = (i || n.state.selection).content(), { dom: l, text: c, slice: d } = Bi(n, a);
|
|
@@ -8293,8 +8293,8 @@ Ie.drop = (n, e) => {
|
|
|
8293
8293
|
if (u ? c.replaceRangeWith(d, d, i.content.firstChild) : c.replaceRange(d, d, i), c.doc.eq(h))
|
|
8294
8294
|
return;
|
|
8295
8295
|
let p = c.doc.resolve(d);
|
|
8296
|
-
if (u &&
|
|
8297
|
-
c.setSelection(new
|
|
8296
|
+
if (u && j.isSelectable(i.content.firstChild) && p.nodeAfter && p.nodeAfter.sameMarkup(i.content.firstChild))
|
|
8297
|
+
c.setSelection(new j(p));
|
|
8298
8298
|
else {
|
|
8299
8299
|
let f = c.mapping.map(l);
|
|
8300
8300
|
c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, k) => f = k), c.setSelection(Hi(n, p, c.doc.resolve(f)));
|
|
@@ -8466,7 +8466,7 @@ class be {
|
|
|
8466
8466
|
}
|
|
8467
8467
|
}
|
|
8468
8468
|
const xn = [], en = {};
|
|
8469
|
-
class
|
|
8469
|
+
class re {
|
|
8470
8470
|
/**
|
|
8471
8471
|
@internal
|
|
8472
8472
|
*/
|
|
@@ -8520,7 +8520,7 @@ class oe {
|
|
|
8520
8520
|
let l = this.local[a].map(e, r, o);
|
|
8521
8521
|
l && l.type.valid(t, l) ? (i || (i = [])).push(l) : s.onRemove && s.onRemove(this.local[a].spec);
|
|
8522
8522
|
}
|
|
8523
|
-
return this.children.length ? tg(this.children, i || [], e, t, r, o, s) : i ? new
|
|
8523
|
+
return this.children.length ? tg(this.children, i || [], e, t, r, o, s) : i ? new re(i.sort(tn), xn) : Ne;
|
|
8524
8524
|
}
|
|
8525
8525
|
/**
|
|
8526
8526
|
Add the given array of decorations to the ones in the set,
|
|
@@ -8529,7 +8529,7 @@ class oe {
|
|
|
8529
8529
|
structure.
|
|
8530
8530
|
*/
|
|
8531
8531
|
add(e, t) {
|
|
8532
|
-
return t.length ? this == Ne ?
|
|
8532
|
+
return t.length ? this == Ne ? re.create(e, t) : this.addInner(e, t, 0) : this;
|
|
8533
8533
|
}
|
|
8534
8534
|
addInner(e, t, r) {
|
|
8535
8535
|
let o, s = 0;
|
|
@@ -8544,7 +8544,7 @@ class oe {
|
|
|
8544
8544
|
let i = fu(s ? gu(t) : t, -r);
|
|
8545
8545
|
for (let a = 0; a < i.length; a++)
|
|
8546
8546
|
i[a].type.valid(e, i[a]) || i.splice(a--, 1);
|
|
8547
|
-
return new
|
|
8547
|
+
return new re(i.length ? this.local.concat(i).sort(tn) : this.local, o || this.children);
|
|
8548
8548
|
}
|
|
8549
8549
|
/**
|
|
8550
8550
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -8571,13 +8571,13 @@ class oe {
|
|
|
8571
8571
|
for (let a = 0; a < o.length; a++)
|
|
8572
8572
|
o[a].eq(i, t) && (o == this.local && (o = this.local.slice()), o.splice(a--, 1));
|
|
8573
8573
|
}
|
|
8574
|
-
return r == this.children && o == this.local ? this : o.length || r.length ? new
|
|
8574
|
+
return r == this.children && o == this.local ? this : o.length || r.length ? new re(o, r) : Ne;
|
|
8575
8575
|
}
|
|
8576
8576
|
forChild(e, t) {
|
|
8577
8577
|
if (this == Ne)
|
|
8578
8578
|
return this;
|
|
8579
8579
|
if (t.isLeaf)
|
|
8580
|
-
return
|
|
8580
|
+
return re.empty;
|
|
8581
8581
|
let r, o;
|
|
8582
8582
|
for (let a = 0; a < this.children.length; a += 3)
|
|
8583
8583
|
if (this.children[a] >= e) {
|
|
@@ -8593,7 +8593,7 @@ class oe {
|
|
|
8593
8593
|
}
|
|
8594
8594
|
}
|
|
8595
8595
|
if (o) {
|
|
8596
|
-
let a = new
|
|
8596
|
+
let a = new re(o.sort(tn), xn);
|
|
8597
8597
|
return r ? new At([a, r]) : a;
|
|
8598
8598
|
}
|
|
8599
8599
|
return r || Ne;
|
|
@@ -8604,7 +8604,7 @@ class oe {
|
|
|
8604
8604
|
eq(e) {
|
|
8605
8605
|
if (this == e)
|
|
8606
8606
|
return !0;
|
|
8607
|
-
if (!(e instanceof
|
|
8607
|
+
if (!(e instanceof re) || this.local.length != e.local.length || this.children.length != e.children.length)
|
|
8608
8608
|
return !1;
|
|
8609
8609
|
for (let t = 0; t < this.local.length; t++)
|
|
8610
8610
|
if (!this.local[t].eq(e.local[t]))
|
|
@@ -8637,9 +8637,9 @@ class oe {
|
|
|
8637
8637
|
e(this);
|
|
8638
8638
|
}
|
|
8639
8639
|
}
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
const Ne =
|
|
8640
|
+
re.empty = new re([], []);
|
|
8641
|
+
re.removeOverlap = Ui;
|
|
8642
|
+
const Ne = re.empty;
|
|
8643
8643
|
class At {
|
|
8644
8644
|
constructor(e) {
|
|
8645
8645
|
this.members = e;
|
|
@@ -8650,7 +8650,7 @@ class At {
|
|
|
8650
8650
|
}
|
|
8651
8651
|
forChild(e, t) {
|
|
8652
8652
|
if (t.isLeaf)
|
|
8653
|
-
return
|
|
8653
|
+
return re.empty;
|
|
8654
8654
|
let r = [];
|
|
8655
8655
|
for (let o = 0; o < this.members.length; o++) {
|
|
8656
8656
|
let s = this.members[o].forChild(e, t);
|
|
@@ -8690,7 +8690,7 @@ class At {
|
|
|
8690
8690
|
case 1:
|
|
8691
8691
|
return e[0];
|
|
8692
8692
|
default:
|
|
8693
|
-
return new At(e.every((t) => t instanceof
|
|
8693
|
+
return new At(e.every((t) => t instanceof re) ? e : e.reduce((t, r) => t.concat(r instanceof re ? r : r.members), []));
|
|
8694
8694
|
}
|
|
8695
8695
|
}
|
|
8696
8696
|
forEachSet(e) {
|
|
@@ -8745,7 +8745,7 @@ function tg(n, e, t, r, o, s, i) {
|
|
|
8745
8745
|
a.splice(h, 0, d.children[u], d.children[u + 1], d.children[u + 2]);
|
|
8746
8746
|
}
|
|
8747
8747
|
}
|
|
8748
|
-
return new
|
|
8748
|
+
return new re(e.sort(tn), a);
|
|
8749
8749
|
}
|
|
8750
8750
|
function fu(n, e) {
|
|
8751
8751
|
if (!e || !n.length)
|
|
@@ -8797,7 +8797,7 @@ function ro(n, e, t, r) {
|
|
|
8797
8797
|
let i = fu(s ? gu(n) : n, -t).sort(tn);
|
|
8798
8798
|
for (let a = 0; a < i.length; a++)
|
|
8799
8799
|
i[a].type.valid(e, i[a]) || (r.onRemove && r.onRemove(i[a].spec), i.splice(a--, 1));
|
|
8800
|
-
return i.length || o.length ? new
|
|
8800
|
+
return i.length || o.length ? new re(i, o) : Ne;
|
|
8801
8801
|
}
|
|
8802
8802
|
function tn(n, e) {
|
|
8803
8803
|
return n.from - e.from || n.to - e.to;
|
|
@@ -8830,7 +8830,7 @@ function ws(n) {
|
|
|
8830
8830
|
return n.someProp("decorations", (t) => {
|
|
8831
8831
|
let r = t(n.state);
|
|
8832
8832
|
r && r != Ne && e.push(r);
|
|
8833
|
-
}), n.cursorWrapper && e.push(
|
|
8833
|
+
}), n.cursorWrapper && e.push(re.create(n.state.doc, [n.cursorWrapper.deco])), At.from(e);
|
|
8834
8834
|
}
|
|
8835
8835
|
const rg = {
|
|
8836
8836
|
childList: !0,
|
|
@@ -8983,7 +8983,7 @@ class ig {
|
|
|
8983
8983
|
let { previousSibling: u, nextSibling: h } = e.addedNodes[d];
|
|
8984
8984
|
(!u || Array.prototype.indexOf.call(e.addedNodes, u) < 0) && (o = u), (!h || Array.prototype.indexOf.call(e.addedNodes, h) < 0) && (s = h);
|
|
8985
8985
|
}
|
|
8986
|
-
let i = o && o.parentNode == e.target ?
|
|
8986
|
+
let i = o && o.parentNode == e.target ? Te(o) + 1 : 0, a = r.localPosFromDOM(e.target, i, -1), l = s && s.parentNode == e.target ? Te(s) : e.target.childNodes.length, c = r.localPosFromDOM(e.target, l, 1);
|
|
8987
8987
|
return { from: a, to: c };
|
|
8988
8988
|
} else return e.type == "attributes" ? { from: r.posAtStart - r.border, to: r.posAtEnd + r.border } : (this.lastChangedTextNode = e.target, {
|
|
8989
8989
|
from: r.posAtStart,
|
|
@@ -9075,12 +9075,12 @@ const hg = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
|
|
|
9075
9075
|
function pg(n, e, t, r, o) {
|
|
9076
9076
|
let s = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
|
|
9077
9077
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
9078
|
-
let
|
|
9079
|
-
if (
|
|
9078
|
+
let x = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, v = Pi(n, x);
|
|
9079
|
+
if (v && !n.state.selection.eq(v)) {
|
|
9080
9080
|
if (Ae && bt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (W) => W(n, qt(13, "Enter"))))
|
|
9081
9081
|
return;
|
|
9082
|
-
let O = n.state.tr.setSelection(
|
|
9083
|
-
|
|
9082
|
+
let O = n.state.tr.setSelection(v);
|
|
9083
|
+
x == "pointer" ? O.setMeta("pointer", !0) : x == "key" && O.scrollIntoView(), s && O.setMeta("composition", s), n.dispatch(O);
|
|
9084
9084
|
}
|
|
9085
9085
|
return;
|
|
9086
9086
|
}
|
|
@@ -9089,60 +9089,60 @@ function pg(n, e, t, r, o) {
|
|
|
9089
9089
|
let l = n.state.selection, c = dg(n, e, t), d = n.state.doc, u = d.slice(c.from, c.to), h, p;
|
|
9090
9090
|
n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (h = n.state.selection.to, p = "end") : (h = n.state.selection.from, p = "start"), n.input.lastKeyCode = null;
|
|
9091
9091
|
let f = gg(u.content, c.doc.content, c.from, h, p);
|
|
9092
|
-
if (f && n.input.domChangeCount++, (Dn && n.input.lastIOSEnter > Date.now() - 225 || bt) && o.some((
|
|
9092
|
+
if (f && n.input.domChangeCount++, (Dn && n.input.lastIOSEnter > Date.now() - 225 || bt) && o.some((x) => x.nodeType == 1 && !hg.test(x.nodeName)) && (!f || f.endA >= f.endB) && n.someProp("handleKeyDown", (x) => x(n, qt(13, "Enter")))) {
|
|
9093
9093
|
n.input.lastIOSEnter = 0;
|
|
9094
9094
|
return;
|
|
9095
9095
|
}
|
|
9096
9096
|
if (!f)
|
|
9097
|
-
if (r && l instanceof
|
|
9097
|
+
if (r && l instanceof H && !l.empty && l.$head.sameParent(l.$anchor) && !n.composing && !(c.sel && c.sel.anchor != c.sel.head))
|
|
9098
9098
|
f = { start: l.from, endA: l.to, endB: l.to };
|
|
9099
9099
|
else {
|
|
9100
9100
|
if (c.sel) {
|
|
9101
|
-
let
|
|
9102
|
-
if (
|
|
9103
|
-
let
|
|
9104
|
-
s &&
|
|
9101
|
+
let x = vl(n, n.state.doc, c.sel);
|
|
9102
|
+
if (x && !x.eq(n.state.selection)) {
|
|
9103
|
+
let v = n.state.tr.setSelection(x);
|
|
9104
|
+
s && v.setMeta("composition", s), n.dispatch(v);
|
|
9105
9105
|
}
|
|
9106
9106
|
}
|
|
9107
9107
|
return;
|
|
9108
9108
|
}
|
|
9109
|
-
n.state.selection.from < n.state.selection.to && f.start == f.endB && n.state.selection instanceof
|
|
9109
|
+
n.state.selection.from < n.state.selection.to && f.start == f.endB && n.state.selection instanceof H && (f.start > n.state.selection.from && f.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? f.start = n.state.selection.from : f.endA < n.state.selection.to && f.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (f.endB += n.state.selection.to - f.endA, f.endA = n.state.selection.to)), je && $t <= 11 && f.endB == f.start + 1 && f.endA == f.start && f.start > c.from && c.doc.textBetween(f.start - c.from - 1, f.start - c.from + 1) == " " && (f.start--, f.endA--, f.endB--);
|
|
9110
9110
|
let m = c.doc.resolveNoCache(f.start - c.from), g = c.doc.resolveNoCache(f.endB - c.from), y = d.resolve(f.start), k = m.sameParent(g) && m.parent.inlineContent && y.end() >= f.endA;
|
|
9111
|
-
if ((Dn && n.input.lastIOSEnter > Date.now() - 225 && (!k || o.some((
|
|
9111
|
+
if ((Dn && n.input.lastIOSEnter > Date.now() - 225 && (!k || o.some((x) => x.nodeName == "DIV" || x.nodeName == "P")) || !k && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && m.pos < g.pos && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", ""))) && n.someProp("handleKeyDown", (x) => x(n, qt(13, "Enter")))) {
|
|
9112
9112
|
n.input.lastIOSEnter = 0;
|
|
9113
9113
|
return;
|
|
9114
9114
|
}
|
|
9115
|
-
if (n.state.selection.anchor > f.start && mg(d, f.start, f.endA, m, g) && n.someProp("handleKeyDown", (
|
|
9115
|
+
if (n.state.selection.anchor > f.start && mg(d, f.start, f.endA, m, g) && n.someProp("handleKeyDown", (x) => x(n, qt(8, "Backspace")))) {
|
|
9116
9116
|
bt && Ae && n.domObserver.suppressSelectionUpdates();
|
|
9117
9117
|
return;
|
|
9118
9118
|
}
|
|
9119
9119
|
Ae && f.endB == f.start && (n.input.lastChromeDelete = Date.now()), bt && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == f.endA && (f.endB -= 2, g = c.doc.resolveNoCache(f.endB - c.from), setTimeout(() => {
|
|
9120
|
-
n.someProp("handleKeyDown", function(
|
|
9121
|
-
return
|
|
9120
|
+
n.someProp("handleKeyDown", function(x) {
|
|
9121
|
+
return x(n, qt(13, "Enter"));
|
|
9122
9122
|
});
|
|
9123
9123
|
}, 20));
|
|
9124
|
-
let w = f.start, M = f.endA, b = (
|
|
9125
|
-
let
|
|
9124
|
+
let w = f.start, M = f.endA, b = (x) => {
|
|
9125
|
+
let v = x || n.state.tr.replace(w, M, c.doc.slice(f.start - c.from, f.endB - c.from));
|
|
9126
9126
|
if (c.sel) {
|
|
9127
|
-
let O = vl(n,
|
|
9128
|
-
O && !(Ae && n.composing && O.empty && (f.start != f.endB || n.input.lastChromeDelete < Date.now() - 100) && (O.head == w || O.head ==
|
|
9127
|
+
let O = vl(n, v.doc, c.sel);
|
|
9128
|
+
O && !(Ae && n.composing && O.empty && (f.start != f.endB || n.input.lastChromeDelete < Date.now() - 100) && (O.head == w || O.head == v.mapping.map(M) - 1) || je && O.empty && O.head == w) && v.setSelection(O);
|
|
9129
9129
|
}
|
|
9130
|
-
return s &&
|
|
9130
|
+
return s && v.setMeta("composition", s), v.scrollIntoView();
|
|
9131
9131
|
}, T;
|
|
9132
9132
|
if (k)
|
|
9133
9133
|
if (m.pos == g.pos) {
|
|
9134
9134
|
je && $t <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => kt(n), 20));
|
|
9135
|
-
let
|
|
9136
|
-
|
|
9135
|
+
let x = b(n.state.tr.delete(w, M)), v = d.resolve(f.start).marksAcross(d.resolve(f.endA));
|
|
9136
|
+
v && x.ensureMarks(v), n.dispatch(x);
|
|
9137
9137
|
} else if (
|
|
9138
9138
|
// Adding or removing a mark
|
|
9139
9139
|
f.endA == f.endB && (T = fg(m.parent.content.cut(m.parentOffset, g.parentOffset), y.parent.content.cut(y.parentOffset, f.endA - y.start())))
|
|
9140
9140
|
) {
|
|
9141
|
-
let
|
|
9142
|
-
T.type == "add" ?
|
|
9141
|
+
let x = b(n.state.tr);
|
|
9142
|
+
T.type == "add" ? x.addMark(w, M, T.mark) : x.removeMark(w, M, T.mark), n.dispatch(x);
|
|
9143
9143
|
} else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
9144
|
-
let
|
|
9145
|
-
n.someProp("handleTextInput", (O) => O(n, w, M,
|
|
9144
|
+
let x = m.parent.textBetween(m.parentOffset, g.parentOffset), v = () => b(n.state.tr.insertText(x, w, M));
|
|
9145
|
+
n.someProp("handleTextInput", (O) => O(n, w, M, x, v)) || n.dispatch(v());
|
|
9146
9146
|
} else
|
|
9147
9147
|
n.dispatch(b());
|
|
9148
9148
|
else
|
|
@@ -9313,7 +9313,7 @@ class yu {
|
|
|
9313
9313
|
scrollToSelection() {
|
|
9314
9314
|
let e = this.domSelectionRange().focusNode;
|
|
9315
9315
|
if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode)) && !this.someProp("handleScrollToSelection", (t) => t(this)))
|
|
9316
|
-
if (this.state.selection instanceof
|
|
9316
|
+
if (this.state.selection instanceof j) {
|
|
9317
9317
|
let t = this.docView.domAfterPos(this.state.selection.from);
|
|
9318
9318
|
t.nodeType == 1 && Ya(this, t.getBoundingClientRect(), e);
|
|
9319
9319
|
} else
|
|
@@ -9349,7 +9349,7 @@ class yu {
|
|
|
9349
9349
|
let s = r.from + (this.state.doc.content.size - t.doc.content.size);
|
|
9350
9350
|
(s > 0 && this.state.doc.nodeAt(s)) == r.node && (o = s);
|
|
9351
9351
|
}
|
|
9352
|
-
this.dragging = new hu(e.slice, e.move, o < 0 ? void 0 :
|
|
9352
|
+
this.dragging = new hu(e.slice, e.move, o < 0 ? void 0 : j.create(this.state.doc, o));
|
|
9353
9353
|
}
|
|
9354
9354
|
someProp(e, t) {
|
|
9355
9355
|
let r = this._props && this._props[e], o;
|
|
@@ -9680,10 +9680,10 @@ var Ht = {
|
|
|
9680
9680
|
221: "}",
|
|
9681
9681
|
222: '"'
|
|
9682
9682
|
}, wg = typeof navigator < "u" && /Mac/.test(navigator.platform), kg = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
9683
|
-
for (var
|
|
9684
|
-
for (var
|
|
9685
|
-
for (var
|
|
9686
|
-
Ht[
|
|
9683
|
+
for (var Ee = 0; Ee < 10; Ee++) Ht[48 + Ee] = Ht[96 + Ee] = String(Ee);
|
|
9684
|
+
for (var Ee = 1; Ee <= 24; Ee++) Ht[Ee + 111] = "F" + Ee;
|
|
9685
|
+
for (var Ee = 65; Ee <= 90; Ee++)
|
|
9686
|
+
Ht[Ee] = String.fromCharCode(Ee + 32), oo[Ee] = String.fromCharCode(Ee);
|
|
9687
9687
|
for (var vs in Ht) oo.hasOwnProperty(vs) || (oo[vs] = Ht[vs]);
|
|
9688
9688
|
function vg(n) {
|
|
9689
9689
|
var e = wg && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || kg && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? oo : Ht)[n.keyCode] || n.key || "Unidentified";
|
|
@@ -9721,7 +9721,7 @@ function xs(n, e, t = !0) {
|
|
|
9721
9721
|
return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
|
|
9722
9722
|
}
|
|
9723
9723
|
function Tg(n) {
|
|
9724
|
-
return new
|
|
9724
|
+
return new ie({ props: { handleKeyDown: Ki(n) } });
|
|
9725
9725
|
}
|
|
9726
9726
|
function Ki(n) {
|
|
9727
9727
|
let e = Mg(n);
|
|
@@ -9928,7 +9928,7 @@ var Ng = () => ({ editor: n, view: e }) => (requestAnimationFrame(() => {
|
|
|
9928
9928
|
const { state: o } = t, s = o.doc.slice(n.from, n.to);
|
|
9929
9929
|
r.deleteRange(n.from, n.to);
|
|
9930
9930
|
const i = r.mapping.map(e);
|
|
9931
|
-
return r.insert(i, s.content), r.setSelection(new
|
|
9931
|
+
return r.insert(i, s.content), r.setSelection(new H(r.doc.resolve(Math.max(i - 1, 0)))), !0;
|
|
9932
9932
|
}, zg = () => ({ tr: n, dispatch: e }) => {
|
|
9933
9933
|
const { selection: t } = n, r = t.$anchor.node();
|
|
9934
9934
|
if (r.content.size > 0)
|
|
@@ -10014,7 +10014,7 @@ var Bg = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
10014
10014
|
if (o) {
|
|
10015
10015
|
const u = Gi(l, s, e);
|
|
10016
10016
|
if (u && u.from <= c && u.to >= d) {
|
|
10017
|
-
const h =
|
|
10017
|
+
const h = H.create(i, u.from, u.to);
|
|
10018
10018
|
t.setSelection(h);
|
|
10019
10019
|
}
|
|
10020
10020
|
}
|
|
@@ -10027,7 +10027,7 @@ var Bg = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
10027
10027
|
return !1;
|
|
10028
10028
|
};
|
|
10029
10029
|
function ku(n) {
|
|
10030
|
-
return n instanceof
|
|
10030
|
+
return n instanceof H;
|
|
10031
10031
|
}
|
|
10032
10032
|
function Xt(n = 0, e = 0, t = 0) {
|
|
10033
10033
|
return Math.min(Math.max(n, e), t);
|
|
@@ -10041,7 +10041,7 @@ function vu(n, e = null) {
|
|
|
10041
10041
|
if (e === "end")
|
|
10042
10042
|
return r;
|
|
10043
10043
|
const o = t.from, s = r.to;
|
|
10044
|
-
return e === "all" ?
|
|
10044
|
+
return e === "all" ? H.create(n, Xt(0, o, s), Xt(n.content.size, o, s)) : H.create(n, Xt(e, o, s), Xt(e, o, s));
|
|
10045
10045
|
}
|
|
10046
10046
|
function xu() {
|
|
10047
10047
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
@@ -10388,10 +10388,10 @@ function Eu(n, e) {
|
|
|
10388
10388
|
function Qo(n) {
|
|
10389
10389
|
return (e) => Eu(e.$from, n);
|
|
10390
10390
|
}
|
|
10391
|
-
function
|
|
10392
|
-
return n.config[e] === void 0 && n.parent ?
|
|
10391
|
+
function P(n, e, t) {
|
|
10392
|
+
return n.config[e] === void 0 && n.parent ? P(n.parent, e, t) : typeof n.config[e] == "function" ? n.config[e].bind({
|
|
10393
10393
|
...t,
|
|
10394
|
-
parent: n.parent ?
|
|
10394
|
+
parent: n.parent ? P(n.parent, e, t) : null
|
|
10395
10395
|
}) : n.config[e];
|
|
10396
10396
|
}
|
|
10397
10397
|
function Xi(n) {
|
|
@@ -10400,7 +10400,7 @@ function Xi(n) {
|
|
|
10400
10400
|
name: e.name,
|
|
10401
10401
|
options: e.options,
|
|
10402
10402
|
storage: e.storage
|
|
10403
|
-
}, r =
|
|
10403
|
+
}, r = P(e, "addExtensions", t);
|
|
10404
10404
|
return r ? [e, ...Xi(r())] : e;
|
|
10405
10405
|
}).flat(10);
|
|
10406
10406
|
}
|
|
@@ -10411,7 +10411,7 @@ function Yi(n, e) {
|
|
|
10411
10411
|
function Nu(n) {
|
|
10412
10412
|
return typeof n == "function";
|
|
10413
10413
|
}
|
|
10414
|
-
function
|
|
10414
|
+
function Q(n, e = void 0, ...t) {
|
|
10415
10415
|
return Nu(n) ? e ? n.bind(e)(...t) : n(...t) : n;
|
|
10416
10416
|
}
|
|
10417
10417
|
function wy(n = {}) {
|
|
@@ -10441,7 +10441,7 @@ function Au(n) {
|
|
|
10441
10441
|
options: i.options,
|
|
10442
10442
|
storage: i.storage,
|
|
10443
10443
|
extensions: o
|
|
10444
|
-
}, l =
|
|
10444
|
+
}, l = P(
|
|
10445
10445
|
i,
|
|
10446
10446
|
"addGlobalAttributes",
|
|
10447
10447
|
a
|
|
@@ -10465,7 +10465,7 @@ function Au(n) {
|
|
|
10465
10465
|
name: i.name,
|
|
10466
10466
|
options: i.options,
|
|
10467
10467
|
storage: i.storage
|
|
10468
|
-
}, l =
|
|
10468
|
+
}, l = P(
|
|
10469
10469
|
i,
|
|
10470
10470
|
"addAttributes",
|
|
10471
10471
|
a
|
|
@@ -10550,7 +10550,7 @@ function Dl(n) {
|
|
|
10550
10550
|
}
|
|
10551
10551
|
function Ou(n, e) {
|
|
10552
10552
|
var t;
|
|
10553
|
-
const r = Au(n), { nodeExtensions: o, markExtensions: s } = Ln(n), i = (t = o.find((c) =>
|
|
10553
|
+
const r = Au(n), { nodeExtensions: o, markExtensions: s } = Ln(n), i = (t = o.find((c) => P(c, "topNode"))) == null ? void 0 : t.name, a = Object.fromEntries(
|
|
10554
10554
|
o.map((c) => {
|
|
10555
10555
|
const d = r.filter((y) => y.type === c.name), u = {
|
|
10556
10556
|
name: c.name,
|
|
@@ -10558,38 +10558,38 @@ function Ou(n, e) {
|
|
|
10558
10558
|
storage: c.storage,
|
|
10559
10559
|
editor: e
|
|
10560
10560
|
}, h = n.reduce((y, k) => {
|
|
10561
|
-
const w =
|
|
10561
|
+
const w = P(k, "extendNodeSchema", u);
|
|
10562
10562
|
return {
|
|
10563
10563
|
...y,
|
|
10564
10564
|
...w ? w(c) : {}
|
|
10565
10565
|
};
|
|
10566
10566
|
}, {}), p = Rl({
|
|
10567
10567
|
...h,
|
|
10568
|
-
content:
|
|
10569
|
-
marks:
|
|
10570
|
-
group:
|
|
10571
|
-
inline:
|
|
10572
|
-
atom:
|
|
10573
|
-
selectable:
|
|
10574
|
-
draggable:
|
|
10575
|
-
code:
|
|
10576
|
-
whitespace:
|
|
10577
|
-
linebreakReplacement:
|
|
10578
|
-
|
|
10568
|
+
content: Q(P(c, "content", u)),
|
|
10569
|
+
marks: Q(P(c, "marks", u)),
|
|
10570
|
+
group: Q(P(c, "group", u)),
|
|
10571
|
+
inline: Q(P(c, "inline", u)),
|
|
10572
|
+
atom: Q(P(c, "atom", u)),
|
|
10573
|
+
selectable: Q(P(c, "selectable", u)),
|
|
10574
|
+
draggable: Q(P(c, "draggable", u)),
|
|
10575
|
+
code: Q(P(c, "code", u)),
|
|
10576
|
+
whitespace: Q(P(c, "whitespace", u)),
|
|
10577
|
+
linebreakReplacement: Q(
|
|
10578
|
+
P(c, "linebreakReplacement", u)
|
|
10579
10579
|
),
|
|
10580
|
-
defining:
|
|
10581
|
-
isolating:
|
|
10580
|
+
defining: Q(P(c, "defining", u)),
|
|
10581
|
+
isolating: Q(P(c, "isolating", u)),
|
|
10582
10582
|
attrs: Object.fromEntries(d.map(Dl))
|
|
10583
|
-
}), f =
|
|
10583
|
+
}), f = Q(P(c, "parseHTML", u));
|
|
10584
10584
|
f && (p.parseDOM = f.map(
|
|
10585
10585
|
(y) => Ol(y, d)
|
|
10586
10586
|
));
|
|
10587
|
-
const m =
|
|
10587
|
+
const m = P(c, "renderHTML", u);
|
|
10588
10588
|
m && (p.toDOM = (y) => m({
|
|
10589
10589
|
node: y,
|
|
10590
10590
|
HTMLAttributes: hr(y, d)
|
|
10591
10591
|
}));
|
|
10592
|
-
const g =
|
|
10592
|
+
const g = P(c, "renderText", u);
|
|
10593
10593
|
return g && (p.toText = g), [c.name, p];
|
|
10594
10594
|
})
|
|
10595
10595
|
), l = Object.fromEntries(
|
|
@@ -10600,24 +10600,24 @@ function Ou(n, e) {
|
|
|
10600
10600
|
storage: c.storage,
|
|
10601
10601
|
editor: e
|
|
10602
10602
|
}, h = n.reduce((g, y) => {
|
|
10603
|
-
const k =
|
|
10603
|
+
const k = P(y, "extendMarkSchema", u);
|
|
10604
10604
|
return {
|
|
10605
10605
|
...g,
|
|
10606
10606
|
...k ? k(c) : {}
|
|
10607
10607
|
};
|
|
10608
10608
|
}, {}), p = Rl({
|
|
10609
10609
|
...h,
|
|
10610
|
-
inclusive:
|
|
10611
|
-
excludes:
|
|
10612
|
-
group:
|
|
10613
|
-
spanning:
|
|
10614
|
-
code:
|
|
10610
|
+
inclusive: Q(P(c, "inclusive", u)),
|
|
10611
|
+
excludes: Q(P(c, "excludes", u)),
|
|
10612
|
+
group: Q(P(c, "group", u)),
|
|
10613
|
+
spanning: Q(P(c, "spanning", u)),
|
|
10614
|
+
code: Q(P(c, "code", u)),
|
|
10615
10615
|
attrs: Object.fromEntries(d.map(Dl))
|
|
10616
|
-
}), f =
|
|
10616
|
+
}), f = Q(P(c, "parseHTML", u));
|
|
10617
10617
|
f && (p.parseDOM = f.map(
|
|
10618
10618
|
(g) => Ol(g, d)
|
|
10619
10619
|
));
|
|
10620
|
-
const m =
|
|
10620
|
+
const m = P(c, "renderHTML", u);
|
|
10621
10621
|
return m && (p.toDOM = (g) => m({
|
|
10622
10622
|
mark: g,
|
|
10623
10623
|
HTMLAttributes: hr(g, d)
|
|
@@ -10636,7 +10636,7 @@ function vy(n) {
|
|
|
10636
10636
|
}
|
|
10637
10637
|
function Qi(n) {
|
|
10638
10638
|
return n.sort((e, t) => {
|
|
10639
|
-
const r =
|
|
10639
|
+
const r = P(e, "priority") || 100, o = P(t, "priority") || 100;
|
|
10640
10640
|
return r > o ? -1 : r < o ? 1 : 0;
|
|
10641
10641
|
});
|
|
10642
10642
|
}
|
|
@@ -10845,7 +10845,7 @@ function zl(n, e) {
|
|
|
10845
10845
|
name: r.name,
|
|
10846
10846
|
options: r.options,
|
|
10847
10847
|
storage: r.storage
|
|
10848
|
-
}, s =
|
|
10848
|
+
}, s = Q(P(r, "group", o));
|
|
10849
10849
|
return typeof s != "string" ? !1 : s.split(" ").includes("list");
|
|
10850
10850
|
}
|
|
10851
10851
|
function Zo(n, {
|
|
@@ -10874,7 +10874,7 @@ function Zo(n, {
|
|
|
10874
10874
|
return !1;
|
|
10875
10875
|
}
|
|
10876
10876
|
function Iu(n) {
|
|
10877
|
-
return n instanceof
|
|
10877
|
+
return n instanceof j;
|
|
10878
10878
|
}
|
|
10879
10879
|
function Dy(n, e, t) {
|
|
10880
10880
|
var r;
|
|
@@ -10933,7 +10933,7 @@ var Ly = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
10933
10933
|
return t.selection.$anchor.sameParent(t.selection.$head) && (i = t.selection.$anchor.parent.attrs), s.isTextblock ? o().command(({ commands: a }) => Ja(s, { ...i, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => Ja(s, { ...i, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
10934
10934
|
}, $y = (n) => ({ tr: e, dispatch: t }) => {
|
|
10935
10935
|
if (t) {
|
|
10936
|
-
const { doc: r } = e, o = Xt(n, 0, r.content.size), s =
|
|
10936
|
+
const { doc: r } = e, o = Xt(n, 0, r.content.size), s = j.create(r, o);
|
|
10937
10937
|
e.setSelection(s);
|
|
10938
10938
|
}
|
|
10939
10939
|
return !0;
|
|
@@ -10948,7 +10948,7 @@ var Ly = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
|
|
|
10948
10948
|
}), !0;
|
|
10949
10949
|
}, Py = (n) => ({ tr: e, dispatch: t }) => {
|
|
10950
10950
|
if (t) {
|
|
10951
|
-
const { doc: r } = e, { from: o, to: s } = typeof n == "number" ? { from: n, to: n } : n, i =
|
|
10951
|
+
const { doc: r } = e, { from: o, to: s } = typeof n == "number" ? { from: n, to: n } : n, i = H.atStart(r).from, a = H.atEnd(r).to, l = Xt(o, i, a), c = Xt(s, i, a), d = H.create(r, l, c);
|
|
10952
10952
|
e.setSelection(d);
|
|
10953
10953
|
}
|
|
10954
10954
|
return !0;
|
|
@@ -10965,7 +10965,7 @@ function Il(n, e) {
|
|
|
10965
10965
|
}
|
|
10966
10966
|
var By = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: o }) => {
|
|
10967
10967
|
const { selection: s, doc: i } = e, { $from: a, $to: l } = s, c = o.extensionManager.attributes, d = Fr(c, a.node().type.name, a.node().attrs);
|
|
10968
|
-
if (s instanceof
|
|
10968
|
+
if (s instanceof j && s.node.isBlock)
|
|
10969
10969
|
return !a.parentOffset || !wt(i, a.pos) ? !1 : (r && (n && Il(t, o.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
10970
10970
|
if (!a.parent.isBlock)
|
|
10971
10971
|
return !1;
|
|
@@ -10982,7 +10982,7 @@ var By = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
|
|
|
10982
10982
|
attrs: d
|
|
10983
10983
|
}
|
|
10984
10984
|
] : void 0), r) {
|
|
10985
|
-
if (f && (s instanceof
|
|
10985
|
+
if (f && (s instanceof H && e.deleteSelection(), e.split(e.mapping.map(a.pos), 1, p), h && !u && !a.parentOffset && a.parent.type !== h)) {
|
|
10986
10986
|
const m = e.mapping.map(a.before()), g = e.doc.resolve(m);
|
|
10987
10987
|
a.node(-1).canReplaceWith(g.index(), g.index() + 1, h) && e.setNodeMarkup(e.mapping.map(a.before()), h);
|
|
10988
10988
|
}
|
|
@@ -11004,8 +11004,8 @@ var By = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
|
|
|
11004
11004
|
if (o) {
|
|
11005
11005
|
let y = E.empty;
|
|
11006
11006
|
const k = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
11007
|
-
for (let
|
|
11008
|
-
y = E.from(l.node(
|
|
11007
|
+
for (let v = l.depth - k; v >= l.depth - 3; v -= 1)
|
|
11008
|
+
y = E.from(l.node(v).copy(y));
|
|
11009
11009
|
const w = (
|
|
11010
11010
|
// eslint-disable-next-line no-nested-ternary
|
|
11011
11011
|
l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3
|
|
@@ -11016,12 +11016,12 @@ var By = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
|
|
|
11016
11016
|
y = y.append(E.from(a.createAndFill(null, b) || void 0));
|
|
11017
11017
|
const T = l.before(l.depth - (k - 1));
|
|
11018
11018
|
t.replace(T, l.after(-w), new R(y, 4 - k, 0));
|
|
11019
|
-
let
|
|
11020
|
-
t.doc.nodesBetween(T, t.doc.content.size, (
|
|
11021
|
-
if (
|
|
11019
|
+
let x = -1;
|
|
11020
|
+
t.doc.nodesBetween(T, t.doc.content.size, (v, O) => {
|
|
11021
|
+
if (x > -1)
|
|
11022
11022
|
return !1;
|
|
11023
|
-
|
|
11024
|
-
}),
|
|
11023
|
+
v.isTextblock && v.content.size === 0 && (x = O + 1);
|
|
11024
|
+
}), x > -1 && t.setSelection(H.near(t.doc.resolve(x))), t.scrollIntoView();
|
|
11025
11025
|
}
|
|
11026
11026
|
return !0;
|
|
11027
11027
|
}
|
|
@@ -11077,8 +11077,8 @@ var By = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
|
|
|
11077
11077
|
return l().command(() => (s.setNodeMarkup(b.pos, p), !0)).command(() => Ss(s, p)).command(() => Ms(s, p)).run();
|
|
11078
11078
|
}
|
|
11079
11079
|
return !t || !M || !a ? l().command(() => d().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Ss(s, p)).command(() => Ms(s, p)).run() : l().command(() => {
|
|
11080
|
-
const T = d().wrapInList(p, r),
|
|
11081
|
-
return s.ensureMarks(
|
|
11080
|
+
const T = d().wrapInList(p, r), x = M.filter((v) => h.includes(v.type.name));
|
|
11081
|
+
return s.ensureMarks(x), T ? !0 : c.clearNodes();
|
|
11082
11082
|
}).wrapInList(p, r).command(() => Ss(s, p)).command(() => Ms(s, p)).run();
|
|
11083
11083
|
}, Wy = (n, e = {}, t = {}) => ({ state: r, commands: o }) => {
|
|
11084
11084
|
const { extendEmptyMarkRange: s = !1 } = t, i = vt(n, r.schema);
|
|
@@ -11273,7 +11273,7 @@ function Er(n) {
|
|
|
11273
11273
|
}), d;
|
|
11274
11274
|
}
|
|
11275
11275
|
function tb(n) {
|
|
11276
|
-
const { editor: e, rules: t } = n, r = new
|
|
11276
|
+
const { editor: e, rules: t } = n, r = new ie({
|
|
11277
11277
|
state: {
|
|
11278
11278
|
init() {
|
|
11279
11279
|
return null;
|
|
@@ -11367,8 +11367,8 @@ var ta = class {
|
|
|
11367
11367
|
}
|
|
11368
11368
|
get options() {
|
|
11369
11369
|
return {
|
|
11370
|
-
...
|
|
11371
|
-
|
|
11370
|
+
...Q(
|
|
11371
|
+
P(this, "addOptions", {
|
|
11372
11372
|
name: this.name
|
|
11373
11373
|
})
|
|
11374
11374
|
) || {}
|
|
@@ -11376,8 +11376,8 @@ var ta = class {
|
|
|
11376
11376
|
}
|
|
11377
11377
|
get storage() {
|
|
11378
11378
|
return {
|
|
11379
|
-
...
|
|
11380
|
-
|
|
11379
|
+
...Q(
|
|
11380
|
+
P(this, "addStorage", {
|
|
11381
11381
|
name: this.name,
|
|
11382
11382
|
options: this.options
|
|
11383
11383
|
})
|
|
@@ -11455,16 +11455,16 @@ function ib(n) {
|
|
|
11455
11455
|
if (M >= b)
|
|
11456
11456
|
return;
|
|
11457
11457
|
const T = h.isText ? h.text || "" : h.textBetween(M - p, b - p, void 0, "");
|
|
11458
|
-
sb(T, s.find, i).forEach((
|
|
11459
|
-
if (
|
|
11458
|
+
sb(T, s.find, i).forEach((x) => {
|
|
11459
|
+
if (x.index === void 0)
|
|
11460
11460
|
return;
|
|
11461
|
-
const
|
|
11462
|
-
from: t.tr.mapping.map(
|
|
11461
|
+
const v = M + x.index + 1, O = v + x[0].length, W = {
|
|
11462
|
+
from: t.tr.mapping.map(v),
|
|
11463
11463
|
to: t.tr.mapping.map(O)
|
|
11464
11464
|
}, I = s.handler({
|
|
11465
11465
|
state: t,
|
|
11466
11466
|
range: W,
|
|
11467
|
-
match:
|
|
11467
|
+
match: x,
|
|
11468
11468
|
commands: l,
|
|
11469
11469
|
chain: c,
|
|
11470
11470
|
can: d,
|
|
@@ -11518,7 +11518,7 @@ function lb(n) {
|
|
|
11518
11518
|
return i = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, f;
|
|
11519
11519
|
}
|
|
11520
11520
|
};
|
|
11521
|
-
return t.map((c) => new
|
|
11521
|
+
return t.map((c) => new ie({
|
|
11522
11522
|
// we register a global drag handler to track the current drag source element
|
|
11523
11523
|
view(d) {
|
|
11524
11524
|
const u = (p) => {
|
|
@@ -11559,13 +11559,13 @@ function lb(n) {
|
|
|
11559
11559
|
if (y) {
|
|
11560
11560
|
let { text: M } = g;
|
|
11561
11561
|
typeof M == "string" ? M = M : M = Yi(E.from(M), h.schema);
|
|
11562
|
-
const { from: b } = g, T = b + M.length,
|
|
11562
|
+
const { from: b } = g, T = b + M.length, x = ab(M);
|
|
11563
11563
|
return l({
|
|
11564
11564
|
rule: c,
|
|
11565
11565
|
state: h,
|
|
11566
11566
|
from: b,
|
|
11567
11567
|
to: { b: T },
|
|
11568
|
-
pasteEvt:
|
|
11568
|
+
pasteEvt: x
|
|
11569
11569
|
});
|
|
11570
11570
|
}
|
|
11571
11571
|
const k = u.doc.content.findDiffStart(h.doc.content), w = u.doc.content.findDiffEnd(h.doc.content);
|
|
@@ -11596,7 +11596,7 @@ var ts = class {
|
|
|
11596
11596
|
storage: this.editor.extensionStorage[e.name],
|
|
11597
11597
|
editor: this.editor,
|
|
11598
11598
|
type: Cs(e.name, this.schema)
|
|
11599
|
-
}, r =
|
|
11599
|
+
}, r = P(e, "addCommands", t);
|
|
11600
11600
|
return r ? {
|
|
11601
11601
|
...n,
|
|
11602
11602
|
...r()
|
|
@@ -11616,13 +11616,13 @@ var ts = class {
|
|
|
11616
11616
|
storage: this.editor.extensionStorage[e.name],
|
|
11617
11617
|
editor: n,
|
|
11618
11618
|
type: Cs(e.name, this.schema)
|
|
11619
|
-
}, r = [], o =
|
|
11619
|
+
}, r = [], o = P(
|
|
11620
11620
|
e,
|
|
11621
11621
|
"addKeyboardShortcuts",
|
|
11622
11622
|
t
|
|
11623
11623
|
);
|
|
11624
11624
|
let s = {};
|
|
11625
|
-
if (e.type === "mark" &&
|
|
11625
|
+
if (e.type === "mark" && P(e, "exitable", t) && (s.ArrowRight = () => xt.handleExit({ editor: n, mark: e })), o) {
|
|
11626
11626
|
const d = Object.fromEntries(
|
|
11627
11627
|
Object.entries(o()).map(([u, h]) => [u, () => h({ editor: n })])
|
|
11628
11628
|
);
|
|
@@ -11630,7 +11630,7 @@ var ts = class {
|
|
|
11630
11630
|
}
|
|
11631
11631
|
const i = Tg(s);
|
|
11632
11632
|
r.push(i);
|
|
11633
|
-
const a =
|
|
11633
|
+
const a = P(e, "addInputRules", t);
|
|
11634
11634
|
if (Ll(e, n.options.enableInputRules) && a) {
|
|
11635
11635
|
const d = a();
|
|
11636
11636
|
if (d && d.length) {
|
|
@@ -11641,7 +11641,7 @@ var ts = class {
|
|
|
11641
11641
|
r.push(...h);
|
|
11642
11642
|
}
|
|
11643
11643
|
}
|
|
11644
|
-
const l =
|
|
11644
|
+
const l = P(e, "addPasteRules", t);
|
|
11645
11645
|
if (Ll(e, n.options.enablePasteRules) && l) {
|
|
11646
11646
|
const d = l();
|
|
11647
11647
|
if (d && d.length) {
|
|
@@ -11649,7 +11649,7 @@ var ts = class {
|
|
|
11649
11649
|
r.push(...u);
|
|
11650
11650
|
}
|
|
11651
11651
|
}
|
|
11652
|
-
const c =
|
|
11652
|
+
const c = P(
|
|
11653
11653
|
e,
|
|
11654
11654
|
"addProseMirrorPlugins",
|
|
11655
11655
|
t
|
|
@@ -11675,14 +11675,14 @@ var ts = class {
|
|
|
11675
11675
|
get nodeViews() {
|
|
11676
11676
|
const { editor: n } = this, { nodeExtensions: e } = Ln(this.extensions);
|
|
11677
11677
|
return Object.fromEntries(
|
|
11678
|
-
e.filter((t) => !!
|
|
11678
|
+
e.filter((t) => !!P(t, "addNodeView")).map((t) => {
|
|
11679
11679
|
const r = this.attributes.filter((l) => l.type === t.name), o = {
|
|
11680
11680
|
name: t.name,
|
|
11681
11681
|
options: t.options,
|
|
11682
11682
|
storage: this.editor.extensionStorage[t.name],
|
|
11683
11683
|
editor: n,
|
|
11684
11684
|
type: fe(t.name, this.schema)
|
|
11685
|
-
}, s =
|
|
11685
|
+
}, s = P(t, "addNodeView", o);
|
|
11686
11686
|
if (!s)
|
|
11687
11687
|
return [];
|
|
11688
11688
|
const i = s();
|
|
@@ -11710,14 +11710,14 @@ var ts = class {
|
|
|
11710
11710
|
get markViews() {
|
|
11711
11711
|
const { editor: n } = this, { markExtensions: e } = Ln(this.extensions);
|
|
11712
11712
|
return Object.fromEntries(
|
|
11713
|
-
e.filter((t) => !!
|
|
11713
|
+
e.filter((t) => !!P(t, "addMarkView")).map((t) => {
|
|
11714
11714
|
const r = this.attributes.filter((a) => a.type === t.name), o = {
|
|
11715
11715
|
name: t.name,
|
|
11716
11716
|
options: t.options,
|
|
11717
11717
|
storage: this.editor.extensionStorage[t.name],
|
|
11718
11718
|
editor: n,
|
|
11719
11719
|
type: vt(t.name, this.schema)
|
|
11720
|
-
}, s =
|
|
11720
|
+
}, s = P(t, "addMarkView", o);
|
|
11721
11721
|
if (!s)
|
|
11722
11722
|
return [];
|
|
11723
11723
|
const i = (a, l, c) => {
|
|
@@ -11757,12 +11757,12 @@ var ts = class {
|
|
|
11757
11757
|
editor: this.editor,
|
|
11758
11758
|
type: Cs(e.name, this.schema)
|
|
11759
11759
|
};
|
|
11760
|
-
e.type === "mark" && ((t =
|
|
11761
|
-
const o =
|
|
11760
|
+
e.type === "mark" && ((t = Q(P(e, "keepOnSplit", r))) == null || t) && this.splittableMarks.push(e.name);
|
|
11761
|
+
const o = P(e, "onBeforeCreate", r), s = P(e, "onCreate", r), i = P(e, "onUpdate", r), a = P(
|
|
11762
11762
|
e,
|
|
11763
11763
|
"onSelectionUpdate",
|
|
11764
11764
|
r
|
|
11765
|
-
), l =
|
|
11765
|
+
), l = P(e, "onTransaction", r), c = P(e, "onFocus", r), d = P(e, "onBlur", r), u = P(e, "onDestroy", r);
|
|
11766
11766
|
o && this.editor.on("beforeCreate", o), s && this.editor.on("create", s), i && this.editor.on("update", i), a && this.editor.on("selectionUpdate", a), l && this.editor.on("transaction", l), c && this.editor.on("focus", c), d && this.editor.on("blur", d), u && this.editor.on("destroy", u);
|
|
11767
11767
|
});
|
|
11768
11768
|
}
|
|
@@ -11812,7 +11812,7 @@ var ee = class Pu extends ta {
|
|
|
11812
11812
|
},
|
|
11813
11813
|
addProseMirrorPlugins() {
|
|
11814
11814
|
return [
|
|
11815
|
-
new
|
|
11815
|
+
new ie({
|
|
11816
11816
|
key: new ue("clipboardTextSerializer"),
|
|
11817
11817
|
props: {
|
|
11818
11818
|
clipboardTextSerializer: () => {
|
|
@@ -11893,7 +11893,7 @@ var ee = class Pu extends ta {
|
|
|
11893
11893
|
name: "drop",
|
|
11894
11894
|
addProseMirrorPlugins() {
|
|
11895
11895
|
return [
|
|
11896
|
-
new
|
|
11896
|
+
new ie({
|
|
11897
11897
|
key: new ue("tiptapDrop"),
|
|
11898
11898
|
props: {
|
|
11899
11899
|
handleDrop: (n, e, t, r) => {
|
|
@@ -11912,7 +11912,7 @@ var ee = class Pu extends ta {
|
|
|
11912
11912
|
name: "editable",
|
|
11913
11913
|
addProseMirrorPlugins() {
|
|
11914
11914
|
return [
|
|
11915
|
-
new
|
|
11915
|
+
new ie({
|
|
11916
11916
|
key: new ue("editable"),
|
|
11917
11917
|
props: {
|
|
11918
11918
|
editable: () => this.editor.options.editable
|
|
@@ -11925,7 +11925,7 @@ var ee = class Pu extends ta {
|
|
|
11925
11925
|
addProseMirrorPlugins() {
|
|
11926
11926
|
const { editor: n } = this;
|
|
11927
11927
|
return [
|
|
11928
|
-
new
|
|
11928
|
+
new ie({
|
|
11929
11929
|
key: _u,
|
|
11930
11930
|
props: {
|
|
11931
11931
|
handleDOMEvents: {
|
|
@@ -11998,7 +11998,7 @@ var ee = class Pu extends ta {
|
|
|
11998
11998
|
// to a paragraph if necessary.
|
|
11999
11999
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
12000
12000
|
// with many other commands.
|
|
12001
|
-
new
|
|
12001
|
+
new ie({
|
|
12002
12002
|
key: new ue("clearDocument"),
|
|
12003
12003
|
appendTransaction: (n, e, t) => {
|
|
12004
12004
|
if (n.some((p) => p.getMeta("composition")))
|
|
@@ -12026,7 +12026,7 @@ var ee = class Pu extends ta {
|
|
|
12026
12026
|
name: "paste",
|
|
12027
12027
|
addProseMirrorPlugins() {
|
|
12028
12028
|
return [
|
|
12029
|
-
new
|
|
12029
|
+
new ie({
|
|
12030
12030
|
key: new ue("tiptapPaste"),
|
|
12031
12031
|
props: {
|
|
12032
12032
|
handlePaste: (n, e, t) => {
|
|
@@ -12044,7 +12044,7 @@ var ee = class Pu extends ta {
|
|
|
12044
12044
|
name: "tabindex",
|
|
12045
12045
|
addProseMirrorPlugins() {
|
|
12046
12046
|
return [
|
|
12047
|
-
new
|
|
12047
|
+
new ie({
|
|
12048
12048
|
key: new ue("tabindex"),
|
|
12049
12049
|
props: {
|
|
12050
12050
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
@@ -12083,7 +12083,7 @@ var ee = class Pu extends ta {
|
|
|
12083
12083
|
},
|
|
12084
12084
|
addProseMirrorPlugins() {
|
|
12085
12085
|
return [
|
|
12086
|
-
new
|
|
12086
|
+
new ie({
|
|
12087
12087
|
key: new ue("textDirection"),
|
|
12088
12088
|
props: {
|
|
12089
12089
|
attributes: () => {
|
|
@@ -12727,7 +12727,7 @@ function ln(n) {
|
|
|
12727
12727
|
return new es({
|
|
12728
12728
|
find: n.find,
|
|
12729
12729
|
handler: ({ state: e, range: t, match: r }) => {
|
|
12730
|
-
const o =
|
|
12730
|
+
const o = Q(n.getAttributes, void 0, r);
|
|
12731
12731
|
if (o === !1 || o === null)
|
|
12732
12732
|
return null;
|
|
12733
12733
|
const { tr: s } = e, i = r[r.length - 1], a = r[0];
|
|
@@ -12747,7 +12747,7 @@ function Xu(n) {
|
|
|
12747
12747
|
return new es({
|
|
12748
12748
|
find: n.find,
|
|
12749
12749
|
handler: ({ state: e, range: t, match: r }) => {
|
|
12750
|
-
const o =
|
|
12750
|
+
const o = Q(n.getAttributes, void 0, r) || {}, { tr: s } = e, i = t.from;
|
|
12751
12751
|
let a = t.to;
|
|
12752
12752
|
const l = n.type.create(o);
|
|
12753
12753
|
if (r[1]) {
|
|
@@ -12769,7 +12769,7 @@ function ii(n) {
|
|
|
12769
12769
|
return new es({
|
|
12770
12770
|
find: n.find,
|
|
12771
12771
|
handler: ({ state: e, range: t, match: r }) => {
|
|
12772
|
-
const o = e.doc.resolve(t.from), s =
|
|
12772
|
+
const o = e.doc.resolve(t.from), s = Q(n.getAttributes, void 0, r) || {};
|
|
12773
12773
|
if (!o.node(-1).canReplaceWith(o.index(-1), o.indexAfter(-1), n.type))
|
|
12774
12774
|
return null;
|
|
12775
12775
|
e.tr.delete(t.from, t.to).setBlockType(t.from, t.from, n.type, s);
|
|
@@ -12781,7 +12781,7 @@ function zn(n) {
|
|
|
12781
12781
|
return new es({
|
|
12782
12782
|
find: n.find,
|
|
12783
12783
|
handler: ({ state: e, range: t, match: r, chain: o }) => {
|
|
12784
|
-
const s =
|
|
12784
|
+
const s = Q(n.getAttributes, void 0, r) || {}, i = e.tr.delete(t.from, t.to), a = i.doc.resolve(t.from).blockRange(), l = a && Ai(a, n.type, s);
|
|
12785
12785
|
if (!l)
|
|
12786
12786
|
return null;
|
|
12787
12787
|
if (i.wrap(a, l), n.keepMarks && n.editor) {
|
|
@@ -13055,7 +13055,7 @@ var fb = (n) => "touches" in n, mb = class {
|
|
|
13055
13055
|
};
|
|
13056
13056
|
function gb(n, e) {
|
|
13057
13057
|
const { selection: t } = n, { $from: r } = t;
|
|
13058
|
-
if (t instanceof
|
|
13058
|
+
if (t instanceof j) {
|
|
13059
13059
|
const s = r.index();
|
|
13060
13060
|
return r.parent.canReplaceWith(s, s + 1, e);
|
|
13061
13061
|
}
|
|
@@ -13201,9 +13201,9 @@ function wb(n) {
|
|
|
13201
13201
|
let M = 1;
|
|
13202
13202
|
const b = y.length;
|
|
13203
13203
|
let T = "";
|
|
13204
|
-
const
|
|
13205
|
-
for (
|
|
13206
|
-
const O =
|
|
13204
|
+
const x = /^:::([\w-]*)(\s.*)?/gm, v = u.slice(b);
|
|
13205
|
+
for (x.lastIndex = 0; ; ) {
|
|
13206
|
+
const O = x.exec(v);
|
|
13207
13207
|
if (O === null)
|
|
13208
13208
|
break;
|
|
13209
13209
|
const W = O.index, I = O[1];
|
|
@@ -13211,29 +13211,29 @@ function wb(n) {
|
|
|
13211
13211
|
if (I)
|
|
13212
13212
|
M += 1;
|
|
13213
13213
|
else if (M -= 1, M === 0) {
|
|
13214
|
-
const
|
|
13215
|
-
T =
|
|
13214
|
+
const G = v.slice(0, W);
|
|
13215
|
+
T = G.trim();
|
|
13216
13216
|
const he = u.slice(0, b + W + O[0].length);
|
|
13217
|
-
let
|
|
13217
|
+
let Z = [];
|
|
13218
13218
|
if (T)
|
|
13219
13219
|
if (a === "block")
|
|
13220
|
-
for (
|
|
13220
|
+
for (Z = p.blockTokens(G), Z.forEach((U) => {
|
|
13221
13221
|
U.text && (!U.tokens || U.tokens.length === 0) && (U.tokens = p.inlineTokens(U.text));
|
|
13222
|
-
});
|
|
13223
|
-
const U =
|
|
13222
|
+
}); Z.length > 0; ) {
|
|
13223
|
+
const U = Z[Z.length - 1];
|
|
13224
13224
|
if (U.type === "paragraph" && (!U.text || U.text.trim() === ""))
|
|
13225
|
-
|
|
13225
|
+
Z.pop();
|
|
13226
13226
|
else
|
|
13227
13227
|
break;
|
|
13228
13228
|
}
|
|
13229
13229
|
else
|
|
13230
|
-
|
|
13230
|
+
Z = p.inlineTokens(T);
|
|
13231
13231
|
return {
|
|
13232
13232
|
type: e,
|
|
13233
13233
|
raw: he,
|
|
13234
13234
|
attributes: w,
|
|
13235
13235
|
content: T,
|
|
13236
|
-
tokens:
|
|
13236
|
+
tokens: Z
|
|
13237
13237
|
};
|
|
13238
13238
|
}
|
|
13239
13239
|
}
|
|
@@ -13353,7 +13353,7 @@ function ai(n, e, t) {
|
|
|
13353
13353
|
for (d += 1; d < a.length; ) {
|
|
13354
13354
|
const b = a[d];
|
|
13355
13355
|
if (b.trim() === "") {
|
|
13356
|
-
const T = a.slice(d + 1).findIndex((
|
|
13356
|
+
const T = a.slice(d + 1).findIndex((x) => x.trim() !== "");
|
|
13357
13357
|
if (T === -1)
|
|
13358
13358
|
break;
|
|
13359
13359
|
if ((((o = (r = a[d + 1 + T].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : o.length) || 0) > m) {
|
|
@@ -13488,7 +13488,7 @@ var ve = class Yu extends ta {
|
|
|
13488
13488
|
const m = this.getPos();
|
|
13489
13489
|
if (typeof m != "number")
|
|
13490
13490
|
return;
|
|
13491
|
-
const g =
|
|
13491
|
+
const g = j.create(l.state.doc, m), y = l.state.tr.setSelection(g);
|
|
13492
13492
|
l.dispatch(y);
|
|
13493
13493
|
}
|
|
13494
13494
|
stopEvent(n) {
|
|
@@ -13503,7 +13503,7 @@ var ve = class Yu extends ta {
|
|
|
13503
13503
|
const r = n.type.startsWith("drag"), o = n.type === "drop";
|
|
13504
13504
|
if ((["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(t.tagName) || t.isContentEditable) && !o && !r)
|
|
13505
13505
|
return !0;
|
|
13506
|
-
const { isEditable: s } = this.editor, { isDragging: i } = this, a = !!this.node.type.spec.draggable, l =
|
|
13506
|
+
const { isEditable: s } = this.editor, { isDragging: i } = this, a = !!this.node.type.spec.draggable, l = j.isSelectable(this.node), c = n.type === "copy", d = n.type === "paste", u = n.type === "cut", h = n.type === "mousedown";
|
|
13507
13507
|
if (!a && l && r && n.target === this.dom && n.preventDefault(), a && r && !i && n.target === this.dom)
|
|
13508
13508
|
return n.preventDefault(), !1;
|
|
13509
13509
|
if (a && s && !i && h) {
|
|
@@ -13565,7 +13565,7 @@ function Vt(n) {
|
|
|
13565
13565
|
return new ob({
|
|
13566
13566
|
find: n.find,
|
|
13567
13567
|
handler: ({ state: e, range: t, match: r, pasteEvent: o }) => {
|
|
13568
|
-
const s =
|
|
13568
|
+
const s = Q(n.getAttributes, void 0, r, o);
|
|
13569
13569
|
if (s === !1 || s === null)
|
|
13570
13570
|
return null;
|
|
13571
13571
|
const { tr: i } = e, a = r[r.length - 1], l = r[0];
|
|
@@ -14014,8 +14014,8 @@ function $b(n) {
|
|
|
14014
14014
|
});
|
|
14015
14015
|
const T = k && k[b];
|
|
14016
14016
|
if (T) {
|
|
14017
|
-
const
|
|
14018
|
-
|
|
14017
|
+
const x = (M + b) % e * 2, v = i[x];
|
|
14018
|
+
v == null || v != T && i[x + 1] == 1 ? (i[x] = T, i[x + 1] = 1) : v == T && i[x + 1]++;
|
|
14019
14019
|
}
|
|
14020
14020
|
}
|
|
14021
14021
|
}
|
|
@@ -14168,7 +14168,7 @@ function Wb(n, e, t) {
|
|
|
14168
14168
|
return !1;
|
|
14169
14169
|
return !0;
|
|
14170
14170
|
}
|
|
14171
|
-
var
|
|
14171
|
+
var oe = class mt extends F {
|
|
14172
14172
|
// A table selection is identified by its anchor and head cells. The
|
|
14173
14173
|
// positions given to this constructor should point _before_ two
|
|
14174
14174
|
// cells in the same table. They may be the same, to select a single
|
|
@@ -14197,7 +14197,7 @@ var se = class mt extends F {
|
|
|
14197
14197
|
const s = this.$anchorCell.node(-1) != r.node(-1);
|
|
14198
14198
|
return s && this.isRowSelection() ? mt.rowSelection(r, o) : s && this.isColSelection() ? mt.colSelection(r, o) : new mt(r, o);
|
|
14199
14199
|
}
|
|
14200
|
-
return
|
|
14200
|
+
return H.between(r, o);
|
|
14201
14201
|
}
|
|
14202
14202
|
// Returns a rectangular slice of table rows containing the selected
|
|
14203
14203
|
// cells.
|
|
@@ -14332,8 +14332,8 @@ var se = class mt extends F {
|
|
|
14332
14332
|
return new _b(this.$anchorCell.pos, this.$headCell.pos);
|
|
14333
14333
|
}
|
|
14334
14334
|
};
|
|
14335
|
-
|
|
14336
|
-
F.jsonID("cell",
|
|
14335
|
+
oe.prototype.visible = !1;
|
|
14336
|
+
F.jsonID("cell", oe);
|
|
14337
14337
|
var _b = class rh {
|
|
14338
14338
|
constructor(e, t) {
|
|
14339
14339
|
this.anchor = e, this.head = t;
|
|
@@ -14343,17 +14343,17 @@ var _b = class rh {
|
|
|
14343
14343
|
}
|
|
14344
14344
|
resolve(e) {
|
|
14345
14345
|
const t = e.resolve(this.anchor), r = e.resolve(this.head);
|
|
14346
|
-
return t.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && r.index() < r.parent.childCount && sa(t, r) ? new
|
|
14346
|
+
return t.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && r.index() < r.parent.childCount && sa(t, r) ? new oe(t, r) : F.near(r, 1);
|
|
14347
14347
|
}
|
|
14348
14348
|
};
|
|
14349
14349
|
function Ub(n) {
|
|
14350
|
-
if (!(n.selection instanceof
|
|
14350
|
+
if (!(n.selection instanceof oe)) return null;
|
|
14351
14351
|
const e = [];
|
|
14352
14352
|
return n.selection.forEachCell((t, r) => {
|
|
14353
14353
|
e.push(
|
|
14354
14354
|
be.node(r, r + t.nodeSize, { class: "selectedCell" })
|
|
14355
14355
|
);
|
|
14356
|
-
}),
|
|
14356
|
+
}), re.create(n.doc, e);
|
|
14357
14357
|
}
|
|
14358
14358
|
function Kb({ $from: n, $to: e }) {
|
|
14359
14359
|
if (n.pos == e.pos || n.pos < e.pos - 6) return !1;
|
|
@@ -14385,17 +14385,17 @@ function qb({ $from: n, $to: e }) {
|
|
|
14385
14385
|
function Jb(n, e, t) {
|
|
14386
14386
|
const r = (e || n).selection, o = (e || n).doc;
|
|
14387
14387
|
let s, i;
|
|
14388
|
-
if (r instanceof
|
|
14388
|
+
if (r instanceof j && (i = r.node.type.spec.tableRole)) {
|
|
14389
14389
|
if (i == "cell" || i == "header_cell")
|
|
14390
|
-
s =
|
|
14390
|
+
s = oe.create(o, r.from);
|
|
14391
14391
|
else if (i == "row") {
|
|
14392
14392
|
const a = o.resolve(r.from + 1);
|
|
14393
|
-
s =
|
|
14393
|
+
s = oe.rowSelection(a, a);
|
|
14394
14394
|
} else if (!t) {
|
|
14395
14395
|
const a = de.get(r.node), l = r.from + 1, c = l + a.map[a.width * a.height - 1];
|
|
14396
|
-
s =
|
|
14396
|
+
s = oe.create(o, l + 1, c);
|
|
14397
14397
|
}
|
|
14398
|
-
} else r instanceof
|
|
14398
|
+
} else r instanceof H && Kb(r) ? s = H.create(o, r.from) : r instanceof H && qb(r) && (s = H.create(o, r.$from.start(), r.$from.end()));
|
|
14399
14399
|
return s && (e || (e = n.tr)).setSelection(s), e;
|
|
14400
14400
|
}
|
|
14401
14401
|
var Gb = new ue("fix-tables");
|
|
@@ -14479,7 +14479,7 @@ function Xb(n, e, t, r) {
|
|
|
14479
14479
|
}
|
|
14480
14480
|
function dt(n) {
|
|
14481
14481
|
const e = n.selection, t = ns(n), r = t.node(-1), o = t.start(-1), s = de.get(r);
|
|
14482
|
-
return { ...e instanceof
|
|
14482
|
+
return { ...e instanceof oe ? s.rectBetween(
|
|
14483
14483
|
e.$anchorCell.pos - o,
|
|
14484
14484
|
e.$headCell.pos - o
|
|
14485
14485
|
) : s.findCell(t.pos - o), tableStart: o, map: s, table: r };
|
|
@@ -14655,7 +14655,7 @@ function i0({ width: n, height: e, map: t }, r) {
|
|
|
14655
14655
|
}
|
|
14656
14656
|
function jl(n, e) {
|
|
14657
14657
|
const t = n.selection;
|
|
14658
|
-
if (!(t instanceof
|
|
14658
|
+
if (!(t instanceof oe) || t.$anchorCell.pos == t.$headCell.pos)
|
|
14659
14659
|
return !1;
|
|
14660
14660
|
const r = dt(n), { map: o } = r;
|
|
14661
14661
|
if (i0(o, r)) return !1;
|
|
@@ -14688,7 +14688,7 @@ function jl(n, e) {
|
|
|
14688
14688
|
s.replaceWith(u + r.tableStart, d + r.tableStart, a);
|
|
14689
14689
|
}
|
|
14690
14690
|
s.setSelection(
|
|
14691
|
-
new
|
|
14691
|
+
new oe(s.doc.resolve(l + r.tableStart))
|
|
14692
14692
|
), e(s);
|
|
14693
14693
|
}
|
|
14694
14694
|
return !0;
|
|
@@ -14702,7 +14702,7 @@ function a0(n) {
|
|
|
14702
14702
|
var r;
|
|
14703
14703
|
const o = e.selection;
|
|
14704
14704
|
let s, i;
|
|
14705
|
-
if (o instanceof
|
|
14705
|
+
if (o instanceof oe) {
|
|
14706
14706
|
if (o.$anchorCell.pos != o.$headCell.pos) return !1;
|
|
14707
14707
|
s = o.$anchorCell.nodeAfter, i = o.$anchorCell.pos;
|
|
14708
14708
|
} else {
|
|
@@ -14737,8 +14737,8 @@ function a0(n) {
|
|
|
14737
14737
|
i,
|
|
14738
14738
|
n({ node: s, row: d.top, col: d.left }),
|
|
14739
14739
|
l[0]
|
|
14740
|
-
), o instanceof
|
|
14741
|
-
new
|
|
14740
|
+
), o instanceof oe && u.setSelection(
|
|
14741
|
+
new oe(
|
|
14742
14742
|
u.doc.resolve(o.$anchorCell.pos),
|
|
14743
14743
|
h ? u.doc.resolve(h) : void 0
|
|
14744
14744
|
)
|
|
@@ -14754,7 +14754,7 @@ function l0(n, e) {
|
|
|
14754
14754
|
if (o.nodeAfter.attrs[n] === e) return !1;
|
|
14755
14755
|
if (r) {
|
|
14756
14756
|
const s = t.tr;
|
|
14757
|
-
t.selection instanceof
|
|
14757
|
+
t.selection instanceof oe ? t.selection.forEachCell((i, a) => {
|
|
14758
14758
|
i.attrs[n] !== e && s.setNodeMarkup(a, null, {
|
|
14759
14759
|
...i.attrs,
|
|
14760
14760
|
[n]: e
|
|
@@ -14882,7 +14882,7 @@ function Bl(n) {
|
|
|
14882
14882
|
if (t) {
|
|
14883
14883
|
const o = e.doc.resolve(r);
|
|
14884
14884
|
t(
|
|
14885
|
-
e.tr.setSelection(
|
|
14885
|
+
e.tr.setSelection(H.between(o, Fb(o))).scrollIntoView()
|
|
14886
14886
|
);
|
|
14887
14887
|
}
|
|
14888
14888
|
return !0;
|
|
@@ -14899,7 +14899,7 @@ function h0(n, e) {
|
|
|
14899
14899
|
}
|
|
14900
14900
|
function Or(n, e) {
|
|
14901
14901
|
const t = n.selection;
|
|
14902
|
-
if (!(t instanceof
|
|
14902
|
+
if (!(t instanceof oe)) return !1;
|
|
14903
14903
|
if (e) {
|
|
14904
14904
|
const r = n.tr, o = Oe(n.schema).cell.createAndFill().content;
|
|
14905
14905
|
t.forEachCell((s, i) => {
|
|
@@ -15102,7 +15102,7 @@ function Wl(n, e, t, r, o) {
|
|
|
15102
15102
|
);
|
|
15103
15103
|
}
|
|
15104
15104
|
p(), u.setSelection(
|
|
15105
|
-
new
|
|
15105
|
+
new oe(
|
|
15106
15106
|
u.doc.resolve(t + i.positionAt(a, l, s)),
|
|
15107
15107
|
u.doc.resolve(t + i.positionAt(d - 1, c - 1, s))
|
|
15108
15108
|
)
|
|
@@ -15129,7 +15129,7 @@ function Rr(n, e) {
|
|
|
15129
15129
|
return (t, r, o) => {
|
|
15130
15130
|
if (!o) return !1;
|
|
15131
15131
|
const s = t.selection;
|
|
15132
|
-
if (s instanceof
|
|
15132
|
+
if (s instanceof oe)
|
|
15133
15133
|
return Wr(
|
|
15134
15134
|
t,
|
|
15135
15135
|
r,
|
|
@@ -15156,30 +15156,30 @@ function Dr(n, e) {
|
|
|
15156
15156
|
if (!o) return !1;
|
|
15157
15157
|
const s = t.selection;
|
|
15158
15158
|
let i;
|
|
15159
|
-
if (s instanceof
|
|
15159
|
+
if (s instanceof oe)
|
|
15160
15160
|
i = s;
|
|
15161
15161
|
else {
|
|
15162
15162
|
const l = lh(o, n, e);
|
|
15163
15163
|
if (l == null) return !1;
|
|
15164
|
-
i = new
|
|
15164
|
+
i = new oe(t.doc.resolve(l));
|
|
15165
15165
|
}
|
|
15166
15166
|
const a = th(i.$headCell, n, e);
|
|
15167
15167
|
return a ? Wr(
|
|
15168
15168
|
t,
|
|
15169
15169
|
r,
|
|
15170
|
-
new
|
|
15170
|
+
new oe(i.$anchorCell, a)
|
|
15171
15171
|
) : !1;
|
|
15172
15172
|
};
|
|
15173
15173
|
}
|
|
15174
15174
|
function b0(n, e) {
|
|
15175
15175
|
const t = n.state.doc, r = $n(t.resolve(e));
|
|
15176
|
-
return r ? (n.dispatch(n.state.tr.setSelection(new
|
|
15176
|
+
return r ? (n.dispatch(n.state.tr.setSelection(new oe(r))), !0) : !1;
|
|
15177
15177
|
}
|
|
15178
15178
|
function w0(n, e, t) {
|
|
15179
15179
|
if (!tt(n.state)) return !1;
|
|
15180
15180
|
let r = p0(t);
|
|
15181
15181
|
const o = n.state.selection;
|
|
15182
|
-
if (o instanceof
|
|
15182
|
+
if (o instanceof oe) {
|
|
15183
15183
|
r || (r = {
|
|
15184
15184
|
width: 1,
|
|
15185
15185
|
height: 1,
|
|
@@ -15211,7 +15211,7 @@ function k0(n, e) {
|
|
|
15211
15211
|
if (e.ctrlKey || e.metaKey) return;
|
|
15212
15212
|
const r = _l(n, e.target);
|
|
15213
15213
|
let o;
|
|
15214
|
-
if (e.shiftKey && n.state.selection instanceof
|
|
15214
|
+
if (e.shiftKey && n.state.selection instanceof oe)
|
|
15215
15215
|
s(n.state.selection.$anchorCell, e), e.preventDefault();
|
|
15216
15216
|
else if (e.shiftKey && r && (o = $n(n.state.selection.$anchor)) != null && ((t = Ts(n, e)) == null ? void 0 : t.pos) != o.pos)
|
|
15217
15217
|
s(o, e), e.preventDefault();
|
|
@@ -15223,7 +15223,7 @@ function k0(n, e) {
|
|
|
15223
15223
|
if (!d || !sa(l, d))
|
|
15224
15224
|
if (u) d = l;
|
|
15225
15225
|
else return;
|
|
15226
|
-
const h = new
|
|
15226
|
+
const h = new oe(l, d);
|
|
15227
15227
|
if (u || !n.state.selection.eq(h)) {
|
|
15228
15228
|
const p = n.state.tr.setSelection(h);
|
|
15229
15229
|
u && p.setMeta(Ot, l.pos), n.dispatch(p);
|
|
@@ -15244,7 +15244,7 @@ function k0(n, e) {
|
|
|
15244
15244
|
n.root.addEventListener("mouseup", i), n.root.addEventListener("dragstart", i), n.root.addEventListener("mousemove", a);
|
|
15245
15245
|
}
|
|
15246
15246
|
function lh(n, e, t) {
|
|
15247
|
-
if (!(n.state.selection instanceof
|
|
15247
|
+
if (!(n.state.selection instanceof H)) return null;
|
|
15248
15248
|
const { $head: r } = n.state.selection;
|
|
15249
15249
|
for (let o = r.depth - 1; o >= 0; o--) {
|
|
15250
15250
|
const s = r.node(o);
|
|
@@ -15322,7 +15322,7 @@ function x0({
|
|
|
15322
15322
|
View: r = v0,
|
|
15323
15323
|
lastColumnResizable: o = !0
|
|
15324
15324
|
} = {}) {
|
|
15325
|
-
const s = new
|
|
15325
|
+
const s = new ie({
|
|
15326
15326
|
key: Ve,
|
|
15327
15327
|
state: {
|
|
15328
15328
|
init(i, a) {
|
|
@@ -15514,7 +15514,7 @@ function R0(n, e) {
|
|
|
15514
15514
|
var t;
|
|
15515
15515
|
const r = [], o = n.doc.resolve(e), s = o.node(-1);
|
|
15516
15516
|
if (!s)
|
|
15517
|
-
return
|
|
15517
|
+
return re.empty;
|
|
15518
15518
|
const i = de.get(s), a = o.start(-1), l = i.colCount(o.pos - a) + o.nodeAfter.attrs.colspan - 1;
|
|
15519
15519
|
for (let c = 0; c < i.height; c++) {
|
|
15520
15520
|
const d = l + c * i.width;
|
|
@@ -15531,12 +15531,12 @@ function R0(n, e) {
|
|
|
15531
15531
|
), r.push(be.widget(h, p));
|
|
15532
15532
|
}
|
|
15533
15533
|
}
|
|
15534
|
-
return
|
|
15534
|
+
return re.create(n.doc, r);
|
|
15535
15535
|
}
|
|
15536
15536
|
function D0({
|
|
15537
15537
|
allowTableNodeSelection: n = !1
|
|
15538
15538
|
} = {}) {
|
|
15539
|
-
return new
|
|
15539
|
+
return new ie({
|
|
15540
15540
|
key: Ot,
|
|
15541
15541
|
// This piece of state is used to remember when a mouse-drag
|
|
15542
15542
|
// cell-selection is happening, so that it can continue even as
|
|
@@ -15751,7 +15751,7 @@ function $0(n, e, t, r, o) {
|
|
|
15751
15751
|
return s.table.createChecked(null, l);
|
|
15752
15752
|
}
|
|
15753
15753
|
function j0(n) {
|
|
15754
|
-
return n instanceof
|
|
15754
|
+
return n instanceof oe;
|
|
15755
15755
|
}
|
|
15756
15756
|
var Lr = ({ editor: n }) => {
|
|
15757
15757
|
const { selection: e } = n.state;
|
|
@@ -15864,7 +15864,7 @@ var V0 = B0, ph = ve.create({
|
|
|
15864
15864
|
const i = $0(s.schema, n, e, t);
|
|
15865
15865
|
if (o) {
|
|
15866
15866
|
const a = r.selection.from + 1;
|
|
15867
|
-
r.replaceSelectionWith(i).scrollIntoView().setSelection(
|
|
15867
|
+
r.replaceSelectionWith(i).scrollIntoView().setSelection(H.near(r.doc.resolve(a)));
|
|
15868
15868
|
}
|
|
15869
15869
|
return !0;
|
|
15870
15870
|
},
|
|
@@ -15887,7 +15887,7 @@ var V0 = B0, ph = ve.create({
|
|
|
15887
15887
|
fixTables: () => ({ state: n, dispatch: e }) => (e && sh(n), !0),
|
|
15888
15888
|
setCellSelection: (n) => ({ tr: e, dispatch: t }) => {
|
|
15889
15889
|
if (t) {
|
|
15890
|
-
const r =
|
|
15890
|
+
const r = oe.create(e.doc, n.anchorCell, n.headCell);
|
|
15891
15891
|
e.setSelection(r);
|
|
15892
15892
|
}
|
|
15893
15893
|
return !0;
|
|
@@ -15927,7 +15927,7 @@ var V0 = B0, ph = ve.create({
|
|
|
15927
15927
|
storage: n.storage
|
|
15928
15928
|
};
|
|
15929
15929
|
return {
|
|
15930
|
-
tableRole:
|
|
15930
|
+
tableRole: Q(P(n, "tableRole", e))
|
|
15931
15931
|
};
|
|
15932
15932
|
}
|
|
15933
15933
|
});
|
|
@@ -16343,7 +16343,7 @@ ${t}
|
|
|
16343
16343
|
let k = d;
|
|
16344
16344
|
for (let w = 0; w < p; w += 1)
|
|
16345
16345
|
k += h[w].length + 1;
|
|
16346
|
-
return a.delete(k, k + y), c - k <= y && a.setSelection(
|
|
16346
|
+
return a.delete(k, k + y), c - k <= y && a.setSelection(H.create(a.doc, k)), !0;
|
|
16347
16347
|
}) : n.commands.command(({ tr: a }) => {
|
|
16348
16348
|
const { from: l, to: c } = o, d = r.doc.textBetween(l, c, `
|
|
16349
16349
|
`, `
|
|
@@ -16403,7 +16403,7 @@ ${t}
|
|
|
16403
16403
|
return [
|
|
16404
16404
|
// this plugin creates a code block for pasted content from VS Code
|
|
16405
16405
|
// we can also detect the copied code language
|
|
16406
|
-
new
|
|
16406
|
+
new ie({
|
|
16407
16407
|
key: new ue("codeBlockVSCodeHandler"),
|
|
16408
16408
|
props: {
|
|
16409
16409
|
handlePaste: (n, e) => {
|
|
@@ -16414,7 +16414,7 @@ ${t}
|
|
|
16414
16414
|
return !1;
|
|
16415
16415
|
const { tr: i, schema: a } = n.state, l = a.text(t.replace(/\r\n?/g, `
|
|
16416
16416
|
`));
|
|
16417
|
-
return i.replaceSelectionWith(this.type.create({ language: s }, l)), i.selection.$from.parent.type !== this.type && i.setSelection(
|
|
16417
|
+
return i.replaceSelectionWith(this.type.create({ language: s }, l)), i.selection.$from.parent.type !== this.type && i.setSelection(H.near(i.doc.resolve(Math.max(0, i.selection.from - 2)))), i.setMeta("paste", !0), n.dispatch(i), !0;
|
|
16418
16418
|
}
|
|
16419
16419
|
}
|
|
16420
16420
|
})
|
|
@@ -16569,10 +16569,10 @@ ${t}
|
|
|
16569
16569
|
if (a) {
|
|
16570
16570
|
const { $to: l } = i.selection, c = l.end();
|
|
16571
16571
|
if (l.nodeAfter)
|
|
16572
|
-
l.nodeAfter.isTextblock ? i.setSelection(
|
|
16572
|
+
l.nodeAfter.isTextblock ? i.setSelection(H.create(i.doc, l.pos + 1)) : l.nodeAfter.isBlock ? i.setSelection(j.create(i.doc, l.pos)) : i.setSelection(H.create(i.doc, l.pos));
|
|
16573
16573
|
else {
|
|
16574
16574
|
const d = s.schema.nodes[this.options.nextNodeType] || l.parent.type.contentMatch.defaultType, u = d?.create();
|
|
16575
|
-
u && (i.insert(c, u), i.setSelection(
|
|
16575
|
+
u && (i.insert(c, u), i.setSelection(H.create(i.doc, c + 1)));
|
|
16576
16576
|
}
|
|
16577
16577
|
i.scrollIntoView();
|
|
16578
16578
|
}
|
|
@@ -16799,7 +16799,7 @@ $e.prototype = {
|
|
|
16799
16799
|
return o.j[n] = i, i;
|
|
16800
16800
|
}
|
|
16801
16801
|
};
|
|
16802
|
-
const
|
|
16802
|
+
const K = (n, e, t, r, o) => n.ta(e, t, r, o), le = (n, e, t, r, o) => n.tr(e, t, r, o), Xl = (n, e, t, r, o) => n.ts(e, t, r, o), A = (n, e, t, r, o) => n.tt(e, t, r, o), gt = "WORD", bi = "UWORD", gh = "ASCIINUMERICAL", yh = "ALPHANUMERICAL", fr = "LOCALHOST", wi = "TLD", ki = "UTLD", Ur = "SCHEME", Sn = "SLASH_SCHEME", ia = "NUM", vi = "WS", aa = "NL", Qn = "OPENBRACE", Zn = "CLOSEBRACE", ao = "OPENBRACKET", lo = "CLOSEBRACKET", co = "OPENPAREN", uo = "CLOSEPAREN", ho = "OPENANGLEBRACKET", po = "CLOSEANGLEBRACKET", fo = "FULLWIDTHLEFTPAREN", mo = "FULLWIDTHRIGHTPAREN", go = "LEFTCORNERBRACKET", yo = "RIGHTCORNERBRACKET", bo = "LEFTWHITECORNERBRACKET", wo = "RIGHTWHITECORNERBRACKET", ko = "FULLWIDTHLESSTHAN", vo = "FULLWIDTHGREATERTHAN", xo = "AMPERSAND", Co = "APOSTROPHE", So = "ASTERISK", Et = "AT", Mo = "BACKSLASH", To = "BACKTICK", Eo = "CARET", Rt = "COLON", la = "COMMA", No = "DOLLAR", ot = "DOT", Ao = "EQUALS", ca = "EXCLAMATION", Ue = "HYPHEN", er = "PERCENT", Oo = "PIPE", Ro = "PLUS", Do = "POUND", tr = "QUERY", da = "QUOTE", bh = "FULLWIDTHMIDDLEDOT", ua = "SEMI", st = "SLASH", nr = "TILDE", Lo = "UNDERSCORE", wh = "EMOJI", zo = "SYM";
|
|
16803
16803
|
var kh = /* @__PURE__ */ Object.freeze({
|
|
16804
16804
|
__proto__: null,
|
|
16805
16805
|
ALPHANUMERICAL: yh,
|
|
@@ -17222,33 +17222,33 @@ function E1({
|
|
|
17222
17222
|
groups: n
|
|
17223
17223
|
}) {
|
|
17224
17224
|
const e = n.domain.concat([xo, So, Et, Mo, To, Eo, No, Ao, Ue, ia, er, Oo, Ro, Do, st, zo, nr, Lo]), t = [Co, Rt, la, ot, ca, er, tr, da, ua, ho, po, Qn, Zn, lo, ao, co, uo, fo, mo, go, yo, bo, wo, ko, vo], r = [xo, Co, So, Mo, To, Eo, No, Ao, Ue, Qn, Zn, er, Oo, Ro, Do, tr, st, zo, nr, Lo], o = _e(), s = A(o, nr);
|
|
17225
|
-
|
|
17225
|
+
K(s, r, s), K(s, n.domain, s);
|
|
17226
17226
|
const i = _e(), a = _e(), l = _e();
|
|
17227
|
-
|
|
17227
|
+
K(o, n.domain, i), K(o, n.scheme, a), K(o, n.slashscheme, l), K(i, r, s), K(i, n.domain, i);
|
|
17228
17228
|
const c = A(i, Et);
|
|
17229
17229
|
A(s, Et, c), A(a, Et, c), A(l, Et, c);
|
|
17230
17230
|
const d = A(s, ot);
|
|
17231
|
-
|
|
17231
|
+
K(d, r, s), K(d, n.domain, s);
|
|
17232
17232
|
const u = _e();
|
|
17233
|
-
|
|
17233
|
+
K(c, n.domain, u), K(u, n.domain, u);
|
|
17234
17234
|
const h = A(u, ot);
|
|
17235
|
-
|
|
17235
|
+
K(h, n.domain, u);
|
|
17236
17236
|
const p = _e(ec);
|
|
17237
|
-
|
|
17237
|
+
K(h, n.tld, p), K(h, n.utld, p), A(c, fr, p);
|
|
17238
17238
|
const f = A(u, Ue);
|
|
17239
|
-
A(f, Ue, f),
|
|
17239
|
+
A(f, Ue, f), K(f, n.domain, u), K(p, n.domain, u), A(p, ot, h), A(p, Ue, f);
|
|
17240
17240
|
const m = A(p, Rt);
|
|
17241
|
-
|
|
17241
|
+
K(m, n.numeric, ec);
|
|
17242
17242
|
const g = A(i, Ue), y = A(i, ot);
|
|
17243
|
-
A(g, Ue, g),
|
|
17243
|
+
A(g, Ue, g), K(g, n.domain, i), K(y, r, s), K(y, n.domain, i);
|
|
17244
17244
|
const k = _e($r);
|
|
17245
|
-
|
|
17245
|
+
K(y, n.tld, k), K(y, n.utld, k), K(k, n.domain, i), K(k, r, s), A(k, ot, y), A(k, Ue, g), A(k, Et, c);
|
|
17246
17246
|
const w = A(k, Rt), M = _e($r);
|
|
17247
|
-
|
|
17247
|
+
K(w, n.numeric, M);
|
|
17248
17248
|
const b = _e($r), T = _e();
|
|
17249
|
-
|
|
17250
|
-
const
|
|
17251
|
-
|
|
17249
|
+
K(b, e, b), K(b, t, T), K(T, e, b), K(T, t, T), A(k, st, b), A(M, st, b);
|
|
17250
|
+
const x = A(a, Rt), v = A(l, Rt), O = A(v, st), W = A(O, st);
|
|
17251
|
+
K(a, n.domain, i), A(a, ot, y), A(a, Ue, g), K(l, n.domain, i), A(l, ot, y), A(l, Ue, g), K(x, n.domain, b), A(x, st, b), A(x, tr, b), K(W, n.domain, b), K(W, e, b), A(W, st, b);
|
|
17252
17252
|
const I = [
|
|
17253
17253
|
[Qn, Zn],
|
|
17254
17254
|
// {}
|
|
@@ -17267,13 +17267,13 @@ function E1({
|
|
|
17267
17267
|
[ko, vo]
|
|
17268
17268
|
// <>
|
|
17269
17269
|
];
|
|
17270
|
-
for (let
|
|
17271
|
-
const [he,
|
|
17272
|
-
A(T, he, U), A(U,
|
|
17273
|
-
const
|
|
17274
|
-
|
|
17275
|
-
const
|
|
17276
|
-
|
|
17270
|
+
for (let G = 0; G < I.length; G++) {
|
|
17271
|
+
const [he, Z] = I[G], U = A(b, he);
|
|
17272
|
+
A(T, he, U), A(U, Z, b);
|
|
17273
|
+
const X = _e($r);
|
|
17274
|
+
K(U, e, X);
|
|
17275
|
+
const Y = _e();
|
|
17276
|
+
K(U, t), K(X, e, X), K(X, t, Y), K(Y, e, X), K(Y, t, Y), A(X, Z, b), A(Y, Z, b);
|
|
17277
17277
|
}
|
|
17278
17278
|
return A(o, fr, k), A(o, aa, T1), {
|
|
17279
17279
|
start: o,
|
|
@@ -17303,7 +17303,7 @@ function Ls(n, e, t) {
|
|
|
17303
17303
|
return new n(s, t);
|
|
17304
17304
|
}
|
|
17305
17305
|
const A1 = typeof console < "u" && console && console.warn || (() => {
|
|
17306
|
-
}), O1 = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",
|
|
17306
|
+
}), O1 = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", se = {
|
|
17307
17307
|
scanner: null,
|
|
17308
17308
|
parser: null,
|
|
17309
17309
|
tokenQueue: [],
|
|
@@ -17312,32 +17312,32 @@ const A1 = typeof console < "u" && console && console.warn || (() => {
|
|
|
17312
17312
|
initialized: !1
|
|
17313
17313
|
};
|
|
17314
17314
|
function R1() {
|
|
17315
|
-
return $e.groups = {},
|
|
17315
|
+
return $e.groups = {}, se.scanner = null, se.parser = null, se.tokenQueue = [], se.pluginQueue = [], se.customSchemes = [], se.initialized = !1, se;
|
|
17316
17316
|
}
|
|
17317
17317
|
function nc(n, e = !1) {
|
|
17318
|
-
if (
|
|
17318
|
+
if (se.initialized && A1(`linkifyjs: already initialized - will not register custom scheme "${n}" ${O1}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
|
|
17319
17319
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
17320
17320
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
17321
17321
|
2. Cannot start or end with "-"
|
|
17322
17322
|
3. "-" cannot repeat`);
|
|
17323
|
-
|
|
17323
|
+
se.customSchemes.push([n, e]);
|
|
17324
17324
|
}
|
|
17325
17325
|
function D1() {
|
|
17326
|
-
|
|
17327
|
-
for (let n = 0; n <
|
|
17328
|
-
|
|
17329
|
-
scanner:
|
|
17326
|
+
se.scanner = S1(se.customSchemes);
|
|
17327
|
+
for (let n = 0; n < se.tokenQueue.length; n++)
|
|
17328
|
+
se.tokenQueue[n][1]({
|
|
17329
|
+
scanner: se.scanner
|
|
17330
17330
|
});
|
|
17331
|
-
|
|
17332
|
-
for (let n = 0; n <
|
|
17333
|
-
|
|
17334
|
-
scanner:
|
|
17335
|
-
parser:
|
|
17331
|
+
se.parser = E1(se.scanner.tokens);
|
|
17332
|
+
for (let n = 0; n < se.pluginQueue.length; n++)
|
|
17333
|
+
se.pluginQueue[n][1]({
|
|
17334
|
+
scanner: se.scanner,
|
|
17335
|
+
parser: se.parser
|
|
17336
17336
|
});
|
|
17337
|
-
return
|
|
17337
|
+
return se.initialized = !0, se;
|
|
17338
17338
|
}
|
|
17339
17339
|
function pa(n) {
|
|
17340
|
-
return
|
|
17340
|
+
return se.initialized || D1(), N1(se.parser.start, n, vh(se.scanner.start, n));
|
|
17341
17341
|
}
|
|
17342
17342
|
pa.scan = vh;
|
|
17343
17343
|
function Ch(n, e = null, t = null) {
|
|
@@ -17358,7 +17358,7 @@ function $1(n) {
|
|
|
17358
17358
|
return n.length === 1 ? n[0].isLink : n.length === 3 && n[1].isLink ? ["()", "[]"].includes(n[0].value + n[2].value) : !1;
|
|
17359
17359
|
}
|
|
17360
17360
|
function j1(n) {
|
|
17361
|
-
return new
|
|
17361
|
+
return new ie({
|
|
17362
17362
|
key: new ue("autolink"),
|
|
17363
17363
|
appendTransaction: (e, t, r) => {
|
|
17364
17364
|
const o = e.some((l) => l.docChanged) && !t.doc.eq(r.doc), s = e.some((l) => l.getMeta("preventAutolink"));
|
|
@@ -17411,7 +17411,7 @@ function j1(n) {
|
|
|
17411
17411
|
});
|
|
17412
17412
|
}
|
|
17413
17413
|
function P1(n) {
|
|
17414
|
-
return new
|
|
17414
|
+
return new ie({
|
|
17415
17415
|
key: new ue("handleClickLink"),
|
|
17416
17416
|
props: {
|
|
17417
17417
|
handleClick: (e, t, r) => {
|
|
@@ -17437,7 +17437,7 @@ function P1(n) {
|
|
|
17437
17437
|
});
|
|
17438
17438
|
}
|
|
17439
17439
|
function H1(n) {
|
|
17440
|
-
return new
|
|
17440
|
+
return new ie({
|
|
17441
17441
|
key: new ue("handlePasteLink"),
|
|
17442
17442
|
props: {
|
|
17443
17443
|
handlePaste: (e, t, r) => {
|
|
@@ -18449,7 +18449,7 @@ var Z1 = ve.create({
|
|
|
18449
18449
|
renderMarkdown: (n) => n.text || ""
|
|
18450
18450
|
});
|
|
18451
18451
|
function ow(n = {}) {
|
|
18452
|
-
return new
|
|
18452
|
+
return new ie({
|
|
18453
18453
|
view(e) {
|
|
18454
18454
|
return new sw(e, n);
|
|
18455
18455
|
}
|
|
@@ -18599,7 +18599,7 @@ class ce extends F {
|
|
|
18599
18599
|
for (; ; ) {
|
|
18600
18600
|
let i = t > 0 ? s.firstChild : s.lastChild;
|
|
18601
18601
|
if (!i) {
|
|
18602
|
-
if (s.isAtom && !s.isText &&
|
|
18602
|
+
if (s.isAtom && !s.isText && !j.isSelectable(s)) {
|
|
18603
18603
|
e = e.doc.resolve(o + s.nodeSize * t), r = !1;
|
|
18604
18604
|
continue e;
|
|
18605
18605
|
}
|
|
@@ -18667,7 +18667,7 @@ function aw(n) {
|
|
|
18667
18667
|
return !0;
|
|
18668
18668
|
}
|
|
18669
18669
|
function lw() {
|
|
18670
|
-
return new
|
|
18670
|
+
return new ie({
|
|
18671
18671
|
props: {
|
|
18672
18672
|
decorations: hw,
|
|
18673
18673
|
createSelectionBetween(n, e, t) {
|
|
@@ -18689,7 +18689,7 @@ function jr(n, e) {
|
|
|
18689
18689
|
const t = n == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
18690
18690
|
return function(r, o, s) {
|
|
18691
18691
|
let i = r.selection, a = e > 0 ? i.$to : i.$from, l = i.empty;
|
|
18692
|
-
if (i instanceof
|
|
18692
|
+
if (i instanceof H) {
|
|
18693
18693
|
if (!s.endOfTextblock(t) || a.depth == 0)
|
|
18694
18694
|
return !1;
|
|
18695
18695
|
l = !1, a = r.doc.resolve(e > 0 ? a.after() : a.before());
|
|
@@ -18705,7 +18705,7 @@ function dw(n, e, t) {
|
|
|
18705
18705
|
if (!ce.valid(r))
|
|
18706
18706
|
return !1;
|
|
18707
18707
|
let o = n.posAtCoords({ left: t.clientX, top: t.clientY });
|
|
18708
|
-
return o && o.inside > -1 &&
|
|
18708
|
+
return o && o.inside > -1 && j.isSelectable(n.state.doc.nodeAt(o.inside)) ? !1 : (n.dispatch(n.state.tr.setSelection(new ce(r))), !0);
|
|
18709
18709
|
}
|
|
18710
18710
|
function uw(n, e) {
|
|
18711
18711
|
if (e.inputType != "insertCompositionText" || !(n.state.selection instanceof ce))
|
|
@@ -18717,13 +18717,13 @@ function uw(n, e) {
|
|
|
18717
18717
|
for (let i = r.length - 1; i >= 0; i--)
|
|
18718
18718
|
o = E.from(r[i].createAndFill(null, o));
|
|
18719
18719
|
let s = n.state.tr.replace(t.pos, t.pos, new R(o, 0, 0));
|
|
18720
|
-
return s.setSelection(
|
|
18720
|
+
return s.setSelection(H.near(s.doc.resolve(t.pos + 1))), n.dispatch(s), !1;
|
|
18721
18721
|
}
|
|
18722
18722
|
function hw(n) {
|
|
18723
18723
|
if (!(n.selection instanceof ce))
|
|
18724
18724
|
return null;
|
|
18725
18725
|
let e = document.createElement("div");
|
|
18726
|
-
return e.className = "ProseMirror-gapcursor",
|
|
18726
|
+
return e.className = "ProseMirror-gapcursor", re.create(n.doc, [be.widget(n.selection.head, e, { key: "gapcursor" })]);
|
|
18727
18727
|
}
|
|
18728
18728
|
var Io = 200, ke = function() {
|
|
18729
18729
|
};
|
|
@@ -19028,7 +19028,7 @@ function vw(n = {}) {
|
|
|
19028
19028
|
return n = {
|
|
19029
19029
|
depth: n.depth || 100,
|
|
19030
19030
|
newGroupDelay: n.newGroupDelay || 500
|
|
19031
|
-
}, new
|
|
19031
|
+
}, new ie({
|
|
19032
19032
|
key: nn,
|
|
19033
19033
|
state: {
|
|
19034
19034
|
init() {
|
|
@@ -19094,7 +19094,7 @@ ee.create({
|
|
|
19094
19094
|
addProseMirrorPlugins() {
|
|
19095
19095
|
let n = !1;
|
|
19096
19096
|
return [
|
|
19097
|
-
new
|
|
19097
|
+
new ie({
|
|
19098
19098
|
key: new ue("characterCount"),
|
|
19099
19099
|
appendTransaction: (e, t, r) => {
|
|
19100
19100
|
if (n)
|
|
@@ -19154,13 +19154,13 @@ ee.create({
|
|
|
19154
19154
|
},
|
|
19155
19155
|
addProseMirrorPlugins() {
|
|
19156
19156
|
return [
|
|
19157
|
-
new
|
|
19157
|
+
new ie({
|
|
19158
19158
|
key: new ue("focus"),
|
|
19159
19159
|
props: {
|
|
19160
19160
|
decorations: ({ doc: n, selection: e }) => {
|
|
19161
19161
|
const { isEditable: t, isFocused: r } = this.editor, { anchor: o } = e, s = [];
|
|
19162
19162
|
if (!t || !r)
|
|
19163
|
-
return
|
|
19163
|
+
return re.create(n, []);
|
|
19164
19164
|
let i = 0;
|
|
19165
19165
|
this.options.mode === "deepest" && n.descendants((l, c) => {
|
|
19166
19166
|
if (!l.isText) {
|
|
@@ -19180,7 +19180,7 @@ ee.create({
|
|
|
19180
19180
|
class: this.options.className
|
|
19181
19181
|
})
|
|
19182
19182
|
);
|
|
19183
|
-
}),
|
|
19183
|
+
}), re.create(n, s);
|
|
19184
19184
|
}
|
|
19185
19185
|
}
|
|
19186
19186
|
})
|
|
@@ -19200,7 +19200,7 @@ var Cw = ee.create({
|
|
|
19200
19200
|
storage: n.storage
|
|
19201
19201
|
};
|
|
19202
19202
|
return {
|
|
19203
|
-
allowGapCursor: (e =
|
|
19203
|
+
allowGapCursor: (e = Q(P(n, "allowGapCursor", t))) != null ? e : null
|
|
19204
19204
|
};
|
|
19205
19205
|
}
|
|
19206
19206
|
});
|
|
@@ -19218,7 +19218,7 @@ ee.create({
|
|
|
19218
19218
|
},
|
|
19219
19219
|
addProseMirrorPlugins() {
|
|
19220
19220
|
return [
|
|
19221
|
-
new
|
|
19221
|
+
new ie({
|
|
19222
19222
|
key: new ue("placeholder"),
|
|
19223
19223
|
props: {
|
|
19224
19224
|
decorations: ({ doc: n, selection: e }) => {
|
|
@@ -19243,7 +19243,7 @@ ee.create({
|
|
|
19243
19243
|
o.push(u);
|
|
19244
19244
|
}
|
|
19245
19245
|
return this.options.includeChildren;
|
|
19246
|
-
}),
|
|
19246
|
+
}), re.create(n, o);
|
|
19247
19247
|
}
|
|
19248
19248
|
}
|
|
19249
19249
|
})
|
|
@@ -19260,11 +19260,11 @@ ee.create({
|
|
|
19260
19260
|
addProseMirrorPlugins() {
|
|
19261
19261
|
const { editor: n, options: e } = this;
|
|
19262
19262
|
return [
|
|
19263
|
-
new
|
|
19263
|
+
new ie({
|
|
19264
19264
|
key: new ue("selection"),
|
|
19265
19265
|
props: {
|
|
19266
19266
|
decorations(t) {
|
|
19267
|
-
return t.selection.empty || n.isFocused || !n.isEditable || Iu(t.selection) || n.view.dragging ? null :
|
|
19267
|
+
return t.selection.empty || n.isFocused || !n.isEditable || Iu(t.selection) || n.view.dragging ? null : re.create(t.doc, [
|
|
19268
19268
|
be.inline(t.selection.from, t.selection.to, {
|
|
19269
19269
|
class: e.className
|
|
19270
19270
|
})
|
|
@@ -19290,7 +19290,7 @@ var Sw = ee.create({
|
|
|
19290
19290
|
var n;
|
|
19291
19291
|
const e = new ue(this.name), t = ((n = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : n.name) || this.options.node || "paragraph", r = Object.entries(this.editor.schema.nodes).map(([, o]) => o).filter((o) => (this.options.notAfter || []).concat(t).includes(o.name));
|
|
19292
19292
|
return [
|
|
19293
|
-
new
|
|
19293
|
+
new ie({
|
|
19294
19294
|
key: e,
|
|
19295
19295
|
appendTransaction: (o, s, i) => {
|
|
19296
19296
|
const { doc: a, tr: l, schema: c } = i, d = e.getState(i), u = a.content.size, h = c.nodes[t];
|
|
@@ -19637,15 +19637,15 @@ function $w() {
|
|
|
19637
19637
|
function y(T) {
|
|
19638
19638
|
if (!k) {
|
|
19639
19639
|
if (k = !0, w = T, T = h(T), p !== void 0 && m.hasValue) {
|
|
19640
|
-
var
|
|
19641
|
-
if (p(
|
|
19642
|
-
return M =
|
|
19640
|
+
var x = m.value;
|
|
19641
|
+
if (p(x, T))
|
|
19642
|
+
return M = x;
|
|
19643
19643
|
}
|
|
19644
19644
|
return M = T;
|
|
19645
19645
|
}
|
|
19646
|
-
if (
|
|
19647
|
-
var
|
|
19648
|
-
return p !== void 0 && p(
|
|
19646
|
+
if (x = M, r(w, T)) return x;
|
|
19647
|
+
var v = h(T);
|
|
19648
|
+
return p !== void 0 && p(x, v) ? (w = T, x) : (w = T, M = v);
|
|
19649
19649
|
}
|
|
19650
19650
|
var k = !1, w, M, b = u === void 0 ? null : u;
|
|
19651
19651
|
return [
|
|
@@ -19687,16 +19687,16 @@ function jw() {
|
|
|
19687
19687
|
function y(T) {
|
|
19688
19688
|
if (!k) {
|
|
19689
19689
|
if (k = !0, w = T, T = h(T), p !== void 0 && m.hasValue) {
|
|
19690
|
-
var
|
|
19691
|
-
if (p(
|
|
19692
|
-
return M =
|
|
19690
|
+
var x = m.value;
|
|
19691
|
+
if (p(x, T))
|
|
19692
|
+
return M = x;
|
|
19693
19693
|
}
|
|
19694
19694
|
return M = T;
|
|
19695
19695
|
}
|
|
19696
|
-
if (
|
|
19697
|
-
return
|
|
19698
|
-
var
|
|
19699
|
-
return p !== void 0 && p(
|
|
19696
|
+
if (x = M, r(w, T))
|
|
19697
|
+
return x;
|
|
19698
|
+
var v = h(T);
|
|
19699
|
+
return p !== void 0 && p(x, v) ? (w = T, x) : (w = T, M = v);
|
|
19700
19700
|
}
|
|
19701
19701
|
var k = !1, w, M, b = u === void 0 ? null : u;
|
|
19702
19702
|
return [
|
|
@@ -20329,45 +20329,45 @@ function sk(n) {
|
|
|
20329
20329
|
if (d) {
|
|
20330
20330
|
let I;
|
|
20331
20331
|
e[1] !== h ? (I = h?.substring(0, 50), e[1] = h, e[2] = I) : I = e[2];
|
|
20332
|
-
let
|
|
20333
|
-
return e[3] !== I ? (
|
|
20332
|
+
let G;
|
|
20333
|
+
return e[3] !== I ? (G = /* @__PURE__ */ N.jsxs(Bs, { as: "div", className: "resizable-image-error", children: [
|
|
20334
20334
|
"이미지를 불러올 수 없습니다: ",
|
|
20335
20335
|
I,
|
|
20336
20336
|
"..."
|
|
20337
|
-
] }), e[3] = I, e[4] =
|
|
20337
|
+
] }), e[3] = I, e[4] = G) : G = e[4], G;
|
|
20338
20338
|
}
|
|
20339
20339
|
let p;
|
|
20340
|
-
e[5] !== r ? (p = (I,
|
|
20340
|
+
e[5] !== r ? (p = (I, G) => {
|
|
20341
20341
|
if (I.button !== 0)
|
|
20342
20342
|
return;
|
|
20343
20343
|
I.preventDefault(), a(!0);
|
|
20344
|
-
const he = I.clientX,
|
|
20345
|
-
const C = Ce.clientX - he,
|
|
20346
|
-
let
|
|
20347
|
-
e: switch (
|
|
20344
|
+
const he = I.clientX, Z = I.clientY, U = o.current?.offsetWidth || 0, X = o.current?.offsetHeight || 0, Y = X / U, z = (Ce) => {
|
|
20345
|
+
const C = Ce.clientX - he, B = Ce.clientY - Z;
|
|
20346
|
+
let V = U;
|
|
20347
|
+
e: switch (G) {
|
|
20348
20348
|
case "se":
|
|
20349
20349
|
case "e": {
|
|
20350
|
-
|
|
20350
|
+
V = Math.max(100, U + C);
|
|
20351
20351
|
break e;
|
|
20352
20352
|
}
|
|
20353
20353
|
case "sw":
|
|
20354
20354
|
case "w": {
|
|
20355
|
-
|
|
20355
|
+
V = Math.max(100, U - C);
|
|
20356
20356
|
break e;
|
|
20357
20357
|
}
|
|
20358
20358
|
case "ne":
|
|
20359
20359
|
case "n": {
|
|
20360
|
-
|
|
20360
|
+
V = Math.max(100, U + C);
|
|
20361
20361
|
break e;
|
|
20362
20362
|
}
|
|
20363
20363
|
case "nw": {
|
|
20364
|
-
|
|
20364
|
+
V = Math.max(100, U - C);
|
|
20365
20365
|
break e;
|
|
20366
20366
|
}
|
|
20367
20367
|
case "s":
|
|
20368
|
-
|
|
20368
|
+
V = Math.max(100 * Y, X + B) / Y;
|
|
20369
20369
|
}
|
|
20370
|
-
o.current && (o.current.style.width = `${
|
|
20370
|
+
o.current && (o.current.style.width = `${V}px`, o.current.style.height = `${V * Y}px`);
|
|
20371
20371
|
}, xe = () => {
|
|
20372
20372
|
a(!1), o.current && r({
|
|
20373
20373
|
width: o.current.offsetWidth,
|
|
@@ -20390,13 +20390,13 @@ function sk(n) {
|
|
|
20390
20390
|
let w;
|
|
20391
20391
|
e[9] === Symbol.for("react.memo_cache_sentinel") ? (w = () => u(!0), e[9] = w) : w = e[9];
|
|
20392
20392
|
const M = `resizable-image ${i ? "resizing" : ""} ${l ? "selected" : ""}`, b = t.attrs.width ? `${t.attrs.width}px` : "auto", T = t.attrs.height ? `${t.attrs.height}px` : "auto";
|
|
20393
|
-
let
|
|
20394
|
-
e[10] !== b || e[11] !== T ? (
|
|
20393
|
+
let x;
|
|
20394
|
+
e[10] !== b || e[11] !== T ? (x = {
|
|
20395
20395
|
width: b,
|
|
20396
20396
|
height: T
|
|
20397
|
-
}, e[10] = b, e[11] = T, e[12] =
|
|
20398
|
-
let
|
|
20399
|
-
e[13] !== h || e[14] !== M || e[15] !==
|
|
20397
|
+
}, e[10] = b, e[11] = T, e[12] = x) : x = e[12];
|
|
20398
|
+
let v;
|
|
20399
|
+
e[13] !== h || e[14] !== M || e[15] !== x ? (v = /* @__PURE__ */ N.jsx("img", { ref: o, src: h, alt: "inserted image", onClick: g, onError: w, className: M, style: x, draggable: "false" }), e[13] = h, e[14] = M, e[15] = x, e[16] = v) : v = e[16];
|
|
20400
20400
|
let O;
|
|
20401
20401
|
e[17] !== f || e[18] !== l ? (O = l && /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
|
20402
20402
|
/* @__PURE__ */ N.jsx("div", { className: "resizable-image-border" }),
|
|
@@ -20410,10 +20410,10 @@ function sk(n) {
|
|
|
20410
20410
|
/* @__PURE__ */ N.jsx("div", { onMouseDown: (I) => f(I, "se"), className: "resize-handle br" })
|
|
20411
20411
|
] }), e[17] = f, e[18] = l, e[19] = O) : O = e[19];
|
|
20412
20412
|
let W;
|
|
20413
|
-
return e[20] !== O || e[21] !==
|
|
20414
|
-
|
|
20413
|
+
return e[20] !== O || e[21] !== v ? (W = /* @__PURE__ */ N.jsx(Bs, { as: "div", onClick: k, className: "resizable-image-wrapper", draggable: "true", "data-drag-handle": !0, children: /* @__PURE__ */ N.jsxs("div", { ref: s, className: "resizable-image-container", onClick: ik, children: [
|
|
20414
|
+
v,
|
|
20415
20415
|
O
|
|
20416
|
-
] }) }), e[20] = O, e[21] =
|
|
20416
|
+
] }) }), e[20] = O, e[21] = v, e[22] = W) : W = e[22], W;
|
|
20417
20417
|
}
|
|
20418
20418
|
function ik(n) {
|
|
20419
20419
|
return n.stopPropagation();
|
|
@@ -20780,8 +20780,8 @@ const ck = (n, e) => {
|
|
|
20780
20780
|
i.push(M);
|
|
20781
20781
|
const b = o(y, g);
|
|
20782
20782
|
for (let T = 0; T < b.length; ++T) {
|
|
20783
|
-
const
|
|
20784
|
-
i.push(w +
|
|
20783
|
+
const x = b[T];
|
|
20784
|
+
i.push(w + x);
|
|
20785
20785
|
}
|
|
20786
20786
|
l = d + (l.length > 0 ? " " + l : l);
|
|
20787
20787
|
}
|
|
@@ -20844,15 +20844,15 @@ const ck = (n, e) => {
|
|
|
20844
20844
|
"bottom-left",
|
|
20845
20845
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
20846
20846
|
"left-bottom"
|
|
20847
|
-
], b = () => [...M(), L, D], T = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
20847
|
+
], b = () => [...M(), L, D], T = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], v = () => [L, D, l], O = () => [kn, "full", "auto", ...v()], W = () => [St, "none", "subgrid", L, D], I = () => ["auto", {
|
|
20848
20848
|
span: ["full", St, L, D]
|
|
20849
|
-
}, St, L, D],
|
|
20849
|
+
}, St, L, D], G = () => [St, "auto", L, D], he = () => ["auto", "min", "max", "fr", L, D], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], X = () => ["auto", ...v()], Y = () => [kn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], z = () => [n, L, D], xe = () => [...M(), Nc, Ec, {
|
|
20850
20850
|
position: [L, D]
|
|
20851
20851
|
}], Ce = () => ["no-repeat", {
|
|
20852
20852
|
repeat: ["", "x", "y", "space", "round"]
|
|
20853
20853
|
}], C = () => ["auto", "cover", "contain", Uk, Fk, {
|
|
20854
20854
|
size: [L, D]
|
|
20855
|
-
}],
|
|
20855
|
+
}], B = () => [Vs, Fn, Kt], V = () => [
|
|
20856
20856
|
// Deprecated since Tailwind CSS v4.0.0
|
|
20857
20857
|
"",
|
|
20858
20858
|
"none",
|
|
@@ -20860,14 +20860,14 @@ const ck = (n, e) => {
|
|
|
20860
20860
|
c,
|
|
20861
20861
|
L,
|
|
20862
20862
|
D
|
|
20863
|
-
], _ = () => ["", J, Fn, Kt],
|
|
20863
|
+
], _ = () => ["", J, Fn, Kt], Se = () => ["solid", "dashed", "dotted", "double"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => [J, Vs, Nc, Ec], ae = () => [
|
|
20864
20864
|
// Deprecated since Tailwind CSS v4.0.0
|
|
20865
20865
|
"",
|
|
20866
20866
|
"none",
|
|
20867
20867
|
f,
|
|
20868
20868
|
L,
|
|
20869
20869
|
D
|
|
20870
|
-
], De = () => ["none", J, L, D], He = () => ["none", J, L, D], nt = () => [J, L, D], Ye = () => [kn, "full", ...
|
|
20870
|
+
], De = () => ["none", J, L, D], He = () => ["none", J, L, D], nt = () => [J, L, D], Ye = () => [kn, "full", ...v()];
|
|
20871
20871
|
return {
|
|
20872
20872
|
cacheSize: 500,
|
|
20873
20873
|
theme: {
|
|
@@ -21019,21 +21019,21 @@ const ck = (n, e) => {
|
|
|
21019
21019
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
21020
21020
|
*/
|
|
21021
21021
|
overscroll: [{
|
|
21022
|
-
overscroll:
|
|
21022
|
+
overscroll: x()
|
|
21023
21023
|
}],
|
|
21024
21024
|
/**
|
|
21025
21025
|
* Overscroll Behavior X
|
|
21026
21026
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
21027
21027
|
*/
|
|
21028
21028
|
"overscroll-x": [{
|
|
21029
|
-
"overscroll-x":
|
|
21029
|
+
"overscroll-x": x()
|
|
21030
21030
|
}],
|
|
21031
21031
|
/**
|
|
21032
21032
|
* Overscroll Behavior Y
|
|
21033
21033
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
21034
21034
|
*/
|
|
21035
21035
|
"overscroll-y": [{
|
|
21036
|
-
"overscroll-y":
|
|
21036
|
+
"overscroll-y": x()
|
|
21037
21037
|
}],
|
|
21038
21038
|
/**
|
|
21039
21039
|
* Position
|
|
@@ -21123,7 +21123,7 @@ const ck = (n, e) => {
|
|
|
21123
21123
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
21124
21124
|
*/
|
|
21125
21125
|
basis: [{
|
|
21126
|
-
basis: [kn, "full", "auto", a, ...
|
|
21126
|
+
basis: [kn, "full", "auto", a, ...v()]
|
|
21127
21127
|
}],
|
|
21128
21128
|
/**
|
|
21129
21129
|
* Flex Direction
|
|
@@ -21186,14 +21186,14 @@ const ck = (n, e) => {
|
|
|
21186
21186
|
* @see https://tailwindcss.com/docs/grid-column
|
|
21187
21187
|
*/
|
|
21188
21188
|
"col-start": [{
|
|
21189
|
-
"col-start":
|
|
21189
|
+
"col-start": G()
|
|
21190
21190
|
}],
|
|
21191
21191
|
/**
|
|
21192
21192
|
* Grid Column End
|
|
21193
21193
|
* @see https://tailwindcss.com/docs/grid-column
|
|
21194
21194
|
*/
|
|
21195
21195
|
"col-end": [{
|
|
21196
|
-
"col-end":
|
|
21196
|
+
"col-end": G()
|
|
21197
21197
|
}],
|
|
21198
21198
|
/**
|
|
21199
21199
|
* Grid Template Rows
|
|
@@ -21214,14 +21214,14 @@ const ck = (n, e) => {
|
|
|
21214
21214
|
* @see https://tailwindcss.com/docs/grid-row
|
|
21215
21215
|
*/
|
|
21216
21216
|
"row-start": [{
|
|
21217
|
-
"row-start":
|
|
21217
|
+
"row-start": G()
|
|
21218
21218
|
}],
|
|
21219
21219
|
/**
|
|
21220
21220
|
* Grid Row End
|
|
21221
21221
|
* @see https://tailwindcss.com/docs/grid-row
|
|
21222
21222
|
*/
|
|
21223
21223
|
"row-end": [{
|
|
21224
|
-
"row-end":
|
|
21224
|
+
"row-end": G()
|
|
21225
21225
|
}],
|
|
21226
21226
|
/**
|
|
21227
21227
|
* Grid Auto Flow
|
|
@@ -21249,28 +21249,28 @@ const ck = (n, e) => {
|
|
|
21249
21249
|
* @see https://tailwindcss.com/docs/gap
|
|
21250
21250
|
*/
|
|
21251
21251
|
gap: [{
|
|
21252
|
-
gap:
|
|
21252
|
+
gap: v()
|
|
21253
21253
|
}],
|
|
21254
21254
|
/**
|
|
21255
21255
|
* Gap X
|
|
21256
21256
|
* @see https://tailwindcss.com/docs/gap
|
|
21257
21257
|
*/
|
|
21258
21258
|
"gap-x": [{
|
|
21259
|
-
"gap-x":
|
|
21259
|
+
"gap-x": v()
|
|
21260
21260
|
}],
|
|
21261
21261
|
/**
|
|
21262
21262
|
* Gap Y
|
|
21263
21263
|
* @see https://tailwindcss.com/docs/gap
|
|
21264
21264
|
*/
|
|
21265
21265
|
"gap-y": [{
|
|
21266
|
-
"gap-y":
|
|
21266
|
+
"gap-y": v()
|
|
21267
21267
|
}],
|
|
21268
21268
|
/**
|
|
21269
21269
|
* Justify Content
|
|
21270
21270
|
* @see https://tailwindcss.com/docs/justify-content
|
|
21271
21271
|
*/
|
|
21272
21272
|
"justify-content": [{
|
|
21273
|
-
justify: [...
|
|
21273
|
+
justify: [...Z(), "normal"]
|
|
21274
21274
|
}],
|
|
21275
21275
|
/**
|
|
21276
21276
|
* Justify Items
|
|
@@ -21291,7 +21291,7 @@ const ck = (n, e) => {
|
|
|
21291
21291
|
* @see https://tailwindcss.com/docs/align-content
|
|
21292
21292
|
*/
|
|
21293
21293
|
"align-content": [{
|
|
21294
|
-
content: ["normal", ...
|
|
21294
|
+
content: ["normal", ...Z()]
|
|
21295
21295
|
}],
|
|
21296
21296
|
/**
|
|
21297
21297
|
* Align Items
|
|
@@ -21316,7 +21316,7 @@ const ck = (n, e) => {
|
|
|
21316
21316
|
* @see https://tailwindcss.com/docs/place-content
|
|
21317
21317
|
*/
|
|
21318
21318
|
"place-content": [{
|
|
21319
|
-
"place-content":
|
|
21319
|
+
"place-content": Z()
|
|
21320
21320
|
}],
|
|
21321
21321
|
/**
|
|
21322
21322
|
* Place Items
|
|
@@ -21338,133 +21338,133 @@ const ck = (n, e) => {
|
|
|
21338
21338
|
* @see https://tailwindcss.com/docs/padding
|
|
21339
21339
|
*/
|
|
21340
21340
|
p: [{
|
|
21341
|
-
p:
|
|
21341
|
+
p: v()
|
|
21342
21342
|
}],
|
|
21343
21343
|
/**
|
|
21344
21344
|
* Padding X
|
|
21345
21345
|
* @see https://tailwindcss.com/docs/padding
|
|
21346
21346
|
*/
|
|
21347
21347
|
px: [{
|
|
21348
|
-
px:
|
|
21348
|
+
px: v()
|
|
21349
21349
|
}],
|
|
21350
21350
|
/**
|
|
21351
21351
|
* Padding Y
|
|
21352
21352
|
* @see https://tailwindcss.com/docs/padding
|
|
21353
21353
|
*/
|
|
21354
21354
|
py: [{
|
|
21355
|
-
py:
|
|
21355
|
+
py: v()
|
|
21356
21356
|
}],
|
|
21357
21357
|
/**
|
|
21358
21358
|
* Padding Start
|
|
21359
21359
|
* @see https://tailwindcss.com/docs/padding
|
|
21360
21360
|
*/
|
|
21361
21361
|
ps: [{
|
|
21362
|
-
ps:
|
|
21362
|
+
ps: v()
|
|
21363
21363
|
}],
|
|
21364
21364
|
/**
|
|
21365
21365
|
* Padding End
|
|
21366
21366
|
* @see https://tailwindcss.com/docs/padding
|
|
21367
21367
|
*/
|
|
21368
21368
|
pe: [{
|
|
21369
|
-
pe:
|
|
21369
|
+
pe: v()
|
|
21370
21370
|
}],
|
|
21371
21371
|
/**
|
|
21372
21372
|
* Padding Top
|
|
21373
21373
|
* @see https://tailwindcss.com/docs/padding
|
|
21374
21374
|
*/
|
|
21375
21375
|
pt: [{
|
|
21376
|
-
pt:
|
|
21376
|
+
pt: v()
|
|
21377
21377
|
}],
|
|
21378
21378
|
/**
|
|
21379
21379
|
* Padding Right
|
|
21380
21380
|
* @see https://tailwindcss.com/docs/padding
|
|
21381
21381
|
*/
|
|
21382
21382
|
pr: [{
|
|
21383
|
-
pr:
|
|
21383
|
+
pr: v()
|
|
21384
21384
|
}],
|
|
21385
21385
|
/**
|
|
21386
21386
|
* Padding Bottom
|
|
21387
21387
|
* @see https://tailwindcss.com/docs/padding
|
|
21388
21388
|
*/
|
|
21389
21389
|
pb: [{
|
|
21390
|
-
pb:
|
|
21390
|
+
pb: v()
|
|
21391
21391
|
}],
|
|
21392
21392
|
/**
|
|
21393
21393
|
* Padding Left
|
|
21394
21394
|
* @see https://tailwindcss.com/docs/padding
|
|
21395
21395
|
*/
|
|
21396
21396
|
pl: [{
|
|
21397
|
-
pl:
|
|
21397
|
+
pl: v()
|
|
21398
21398
|
}],
|
|
21399
21399
|
/**
|
|
21400
21400
|
* Margin
|
|
21401
21401
|
* @see https://tailwindcss.com/docs/margin
|
|
21402
21402
|
*/
|
|
21403
21403
|
m: [{
|
|
21404
|
-
m:
|
|
21404
|
+
m: X()
|
|
21405
21405
|
}],
|
|
21406
21406
|
/**
|
|
21407
21407
|
* Margin X
|
|
21408
21408
|
* @see https://tailwindcss.com/docs/margin
|
|
21409
21409
|
*/
|
|
21410
21410
|
mx: [{
|
|
21411
|
-
mx:
|
|
21411
|
+
mx: X()
|
|
21412
21412
|
}],
|
|
21413
21413
|
/**
|
|
21414
21414
|
* Margin Y
|
|
21415
21415
|
* @see https://tailwindcss.com/docs/margin
|
|
21416
21416
|
*/
|
|
21417
21417
|
my: [{
|
|
21418
|
-
my:
|
|
21418
|
+
my: X()
|
|
21419
21419
|
}],
|
|
21420
21420
|
/**
|
|
21421
21421
|
* Margin Start
|
|
21422
21422
|
* @see https://tailwindcss.com/docs/margin
|
|
21423
21423
|
*/
|
|
21424
21424
|
ms: [{
|
|
21425
|
-
ms:
|
|
21425
|
+
ms: X()
|
|
21426
21426
|
}],
|
|
21427
21427
|
/**
|
|
21428
21428
|
* Margin End
|
|
21429
21429
|
* @see https://tailwindcss.com/docs/margin
|
|
21430
21430
|
*/
|
|
21431
21431
|
me: [{
|
|
21432
|
-
me:
|
|
21432
|
+
me: X()
|
|
21433
21433
|
}],
|
|
21434
21434
|
/**
|
|
21435
21435
|
* Margin Top
|
|
21436
21436
|
* @see https://tailwindcss.com/docs/margin
|
|
21437
21437
|
*/
|
|
21438
21438
|
mt: [{
|
|
21439
|
-
mt:
|
|
21439
|
+
mt: X()
|
|
21440
21440
|
}],
|
|
21441
21441
|
/**
|
|
21442
21442
|
* Margin Right
|
|
21443
21443
|
* @see https://tailwindcss.com/docs/margin
|
|
21444
21444
|
*/
|
|
21445
21445
|
mr: [{
|
|
21446
|
-
mr:
|
|
21446
|
+
mr: X()
|
|
21447
21447
|
}],
|
|
21448
21448
|
/**
|
|
21449
21449
|
* Margin Bottom
|
|
21450
21450
|
* @see https://tailwindcss.com/docs/margin
|
|
21451
21451
|
*/
|
|
21452
21452
|
mb: [{
|
|
21453
|
-
mb:
|
|
21453
|
+
mb: X()
|
|
21454
21454
|
}],
|
|
21455
21455
|
/**
|
|
21456
21456
|
* Margin Left
|
|
21457
21457
|
* @see https://tailwindcss.com/docs/margin
|
|
21458
21458
|
*/
|
|
21459
21459
|
ml: [{
|
|
21460
|
-
ml:
|
|
21460
|
+
ml: X()
|
|
21461
21461
|
}],
|
|
21462
21462
|
/**
|
|
21463
21463
|
* Space Between X
|
|
21464
21464
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
21465
21465
|
*/
|
|
21466
21466
|
"space-x": [{
|
|
21467
|
-
"space-x":
|
|
21467
|
+
"space-x": v()
|
|
21468
21468
|
}],
|
|
21469
21469
|
/**
|
|
21470
21470
|
* Space Between X Reverse
|
|
@@ -21476,7 +21476,7 @@ const ck = (n, e) => {
|
|
|
21476
21476
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
21477
21477
|
*/
|
|
21478
21478
|
"space-y": [{
|
|
21479
|
-
"space-y":
|
|
21479
|
+
"space-y": v()
|
|
21480
21480
|
}],
|
|
21481
21481
|
/**
|
|
21482
21482
|
* Space Between Y Reverse
|
|
@@ -21491,14 +21491,14 @@ const ck = (n, e) => {
|
|
|
21491
21491
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
21492
21492
|
*/
|
|
21493
21493
|
size: [{
|
|
21494
|
-
size:
|
|
21494
|
+
size: Y()
|
|
21495
21495
|
}],
|
|
21496
21496
|
/**
|
|
21497
21497
|
* Width
|
|
21498
21498
|
* @see https://tailwindcss.com/docs/width
|
|
21499
21499
|
*/
|
|
21500
21500
|
w: [{
|
|
21501
|
-
w: [a, "screen", ...
|
|
21501
|
+
w: [a, "screen", ...Y()]
|
|
21502
21502
|
}],
|
|
21503
21503
|
/**
|
|
21504
21504
|
* Min-Width
|
|
@@ -21510,7 +21510,7 @@ const ck = (n, e) => {
|
|
|
21510
21510
|
"screen",
|
|
21511
21511
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
21512
21512
|
"none",
|
|
21513
|
-
...
|
|
21513
|
+
...Y()
|
|
21514
21514
|
]
|
|
21515
21515
|
}],
|
|
21516
21516
|
/**
|
|
@@ -21528,7 +21528,7 @@ const ck = (n, e) => {
|
|
|
21528
21528
|
{
|
|
21529
21529
|
screen: [i]
|
|
21530
21530
|
},
|
|
21531
|
-
...
|
|
21531
|
+
...Y()
|
|
21532
21532
|
]
|
|
21533
21533
|
}],
|
|
21534
21534
|
/**
|
|
@@ -21536,21 +21536,21 @@ const ck = (n, e) => {
|
|
|
21536
21536
|
* @see https://tailwindcss.com/docs/height
|
|
21537
21537
|
*/
|
|
21538
21538
|
h: [{
|
|
21539
|
-
h: ["screen", "lh", ...
|
|
21539
|
+
h: ["screen", "lh", ...Y()]
|
|
21540
21540
|
}],
|
|
21541
21541
|
/**
|
|
21542
21542
|
* Min-Height
|
|
21543
21543
|
* @see https://tailwindcss.com/docs/min-height
|
|
21544
21544
|
*/
|
|
21545
21545
|
"min-h": [{
|
|
21546
|
-
"min-h": ["screen", "lh", "none", ...
|
|
21546
|
+
"min-h": ["screen", "lh", "none", ...Y()]
|
|
21547
21547
|
}],
|
|
21548
21548
|
/**
|
|
21549
21549
|
* Max-Height
|
|
21550
21550
|
* @see https://tailwindcss.com/docs/max-height
|
|
21551
21551
|
*/
|
|
21552
21552
|
"max-h": [{
|
|
21553
|
-
"max-h": ["screen", "lh", ...
|
|
21553
|
+
"max-h": ["screen", "lh", ...Y()]
|
|
21554
21554
|
}],
|
|
21555
21555
|
// ------------------
|
|
21556
21556
|
// --- Typography ---
|
|
@@ -21645,7 +21645,7 @@ const ck = (n, e) => {
|
|
|
21645
21645
|
leading: [
|
|
21646
21646
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
21647
21647
|
s,
|
|
21648
|
-
...
|
|
21648
|
+
...v()
|
|
21649
21649
|
]
|
|
21650
21650
|
}],
|
|
21651
21651
|
/**
|
|
@@ -21701,7 +21701,7 @@ const ck = (n, e) => {
|
|
|
21701
21701
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
21702
21702
|
*/
|
|
21703
21703
|
"text-decoration-style": [{
|
|
21704
|
-
decoration: [...
|
|
21704
|
+
decoration: [...Se(), "wavy"]
|
|
21705
21705
|
}],
|
|
21706
21706
|
/**
|
|
21707
21707
|
* Text Decoration Thickness
|
|
@@ -21746,7 +21746,7 @@ const ck = (n, e) => {
|
|
|
21746
21746
|
* @see https://tailwindcss.com/docs/text-indent
|
|
21747
21747
|
*/
|
|
21748
21748
|
indent: [{
|
|
21749
|
-
indent:
|
|
21749
|
+
indent: v()
|
|
21750
21750
|
}],
|
|
21751
21751
|
/**
|
|
21752
21752
|
* Vertical Alignment
|
|
@@ -21860,21 +21860,21 @@ const ck = (n, e) => {
|
|
|
21860
21860
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
21861
21861
|
*/
|
|
21862
21862
|
"gradient-from-pos": [{
|
|
21863
|
-
from:
|
|
21863
|
+
from: B()
|
|
21864
21864
|
}],
|
|
21865
21865
|
/**
|
|
21866
21866
|
* Gradient Color Stops Via Position
|
|
21867
21867
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
21868
21868
|
*/
|
|
21869
21869
|
"gradient-via-pos": [{
|
|
21870
|
-
via:
|
|
21870
|
+
via: B()
|
|
21871
21871
|
}],
|
|
21872
21872
|
/**
|
|
21873
21873
|
* Gradient Color Stops To Position
|
|
21874
21874
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
21875
21875
|
*/
|
|
21876
21876
|
"gradient-to-pos": [{
|
|
21877
|
-
to:
|
|
21877
|
+
to: B()
|
|
21878
21878
|
}],
|
|
21879
21879
|
/**
|
|
21880
21880
|
* Gradient Color Stops From
|
|
@@ -21905,105 +21905,105 @@ const ck = (n, e) => {
|
|
|
21905
21905
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21906
21906
|
*/
|
|
21907
21907
|
rounded: [{
|
|
21908
|
-
rounded:
|
|
21908
|
+
rounded: V()
|
|
21909
21909
|
}],
|
|
21910
21910
|
/**
|
|
21911
21911
|
* Border Radius Start
|
|
21912
21912
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21913
21913
|
*/
|
|
21914
21914
|
"rounded-s": [{
|
|
21915
|
-
"rounded-s":
|
|
21915
|
+
"rounded-s": V()
|
|
21916
21916
|
}],
|
|
21917
21917
|
/**
|
|
21918
21918
|
* Border Radius End
|
|
21919
21919
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21920
21920
|
*/
|
|
21921
21921
|
"rounded-e": [{
|
|
21922
|
-
"rounded-e":
|
|
21922
|
+
"rounded-e": V()
|
|
21923
21923
|
}],
|
|
21924
21924
|
/**
|
|
21925
21925
|
* Border Radius Top
|
|
21926
21926
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21927
21927
|
*/
|
|
21928
21928
|
"rounded-t": [{
|
|
21929
|
-
"rounded-t":
|
|
21929
|
+
"rounded-t": V()
|
|
21930
21930
|
}],
|
|
21931
21931
|
/**
|
|
21932
21932
|
* Border Radius Right
|
|
21933
21933
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21934
21934
|
*/
|
|
21935
21935
|
"rounded-r": [{
|
|
21936
|
-
"rounded-r":
|
|
21936
|
+
"rounded-r": V()
|
|
21937
21937
|
}],
|
|
21938
21938
|
/**
|
|
21939
21939
|
* Border Radius Bottom
|
|
21940
21940
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21941
21941
|
*/
|
|
21942
21942
|
"rounded-b": [{
|
|
21943
|
-
"rounded-b":
|
|
21943
|
+
"rounded-b": V()
|
|
21944
21944
|
}],
|
|
21945
21945
|
/**
|
|
21946
21946
|
* Border Radius Left
|
|
21947
21947
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21948
21948
|
*/
|
|
21949
21949
|
"rounded-l": [{
|
|
21950
|
-
"rounded-l":
|
|
21950
|
+
"rounded-l": V()
|
|
21951
21951
|
}],
|
|
21952
21952
|
/**
|
|
21953
21953
|
* Border Radius Start Start
|
|
21954
21954
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21955
21955
|
*/
|
|
21956
21956
|
"rounded-ss": [{
|
|
21957
|
-
"rounded-ss":
|
|
21957
|
+
"rounded-ss": V()
|
|
21958
21958
|
}],
|
|
21959
21959
|
/**
|
|
21960
21960
|
* Border Radius Start End
|
|
21961
21961
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21962
21962
|
*/
|
|
21963
21963
|
"rounded-se": [{
|
|
21964
|
-
"rounded-se":
|
|
21964
|
+
"rounded-se": V()
|
|
21965
21965
|
}],
|
|
21966
21966
|
/**
|
|
21967
21967
|
* Border Radius End End
|
|
21968
21968
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21969
21969
|
*/
|
|
21970
21970
|
"rounded-ee": [{
|
|
21971
|
-
"rounded-ee":
|
|
21971
|
+
"rounded-ee": V()
|
|
21972
21972
|
}],
|
|
21973
21973
|
/**
|
|
21974
21974
|
* Border Radius End Start
|
|
21975
21975
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21976
21976
|
*/
|
|
21977
21977
|
"rounded-es": [{
|
|
21978
|
-
"rounded-es":
|
|
21978
|
+
"rounded-es": V()
|
|
21979
21979
|
}],
|
|
21980
21980
|
/**
|
|
21981
21981
|
* Border Radius Top Left
|
|
21982
21982
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21983
21983
|
*/
|
|
21984
21984
|
"rounded-tl": [{
|
|
21985
|
-
"rounded-tl":
|
|
21985
|
+
"rounded-tl": V()
|
|
21986
21986
|
}],
|
|
21987
21987
|
/**
|
|
21988
21988
|
* Border Radius Top Right
|
|
21989
21989
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21990
21990
|
*/
|
|
21991
21991
|
"rounded-tr": [{
|
|
21992
|
-
"rounded-tr":
|
|
21992
|
+
"rounded-tr": V()
|
|
21993
21993
|
}],
|
|
21994
21994
|
/**
|
|
21995
21995
|
* Border Radius Bottom Right
|
|
21996
21996
|
* @see https://tailwindcss.com/docs/border-radius
|
|
21997
21997
|
*/
|
|
21998
21998
|
"rounded-br": [{
|
|
21999
|
-
"rounded-br":
|
|
21999
|
+
"rounded-br": V()
|
|
22000
22000
|
}],
|
|
22001
22001
|
/**
|
|
22002
22002
|
* Border Radius Bottom Left
|
|
22003
22003
|
* @see https://tailwindcss.com/docs/border-radius
|
|
22004
22004
|
*/
|
|
22005
22005
|
"rounded-bl": [{
|
|
22006
|
-
"rounded-bl":
|
|
22006
|
+
"rounded-bl": V()
|
|
22007
22007
|
}],
|
|
22008
22008
|
/**
|
|
22009
22009
|
* Border Width
|
|
@@ -22097,14 +22097,14 @@ const ck = (n, e) => {
|
|
|
22097
22097
|
* @see https://tailwindcss.com/docs/border-style
|
|
22098
22098
|
*/
|
|
22099
22099
|
"border-style": [{
|
|
22100
|
-
border: [...
|
|
22100
|
+
border: [...Se(), "hidden", "none"]
|
|
22101
22101
|
}],
|
|
22102
22102
|
/**
|
|
22103
22103
|
* Divide Style
|
|
22104
22104
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
22105
22105
|
*/
|
|
22106
22106
|
"divide-style": [{
|
|
22107
|
-
divide: [...
|
|
22107
|
+
divide: [...Se(), "hidden", "none"]
|
|
22108
22108
|
}],
|
|
22109
22109
|
/**
|
|
22110
22110
|
* Border Color
|
|
@@ -22181,7 +22181,7 @@ const ck = (n, e) => {
|
|
|
22181
22181
|
* @see https://tailwindcss.com/docs/outline-style
|
|
22182
22182
|
*/
|
|
22183
22183
|
"outline-style": [{
|
|
22184
|
-
outline: [...
|
|
22184
|
+
outline: [...Se(), "none", "hidden"]
|
|
22185
22185
|
}],
|
|
22186
22186
|
/**
|
|
22187
22187
|
* Outline Offset
|
|
@@ -22321,14 +22321,14 @@ const ck = (n, e) => {
|
|
|
22321
22321
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
22322
22322
|
*/
|
|
22323
22323
|
"mix-blend": [{
|
|
22324
|
-
"mix-blend": [...
|
|
22324
|
+
"mix-blend": [...q(), "plus-darker", "plus-lighter"]
|
|
22325
22325
|
}],
|
|
22326
22326
|
/**
|
|
22327
22327
|
* Background Blend Mode
|
|
22328
22328
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
22329
22329
|
*/
|
|
22330
22330
|
"bg-blend": [{
|
|
22331
|
-
"bg-blend":
|
|
22331
|
+
"bg-blend": q()
|
|
22332
22332
|
}],
|
|
22333
22333
|
/**
|
|
22334
22334
|
* Mask Clip
|
|
@@ -22352,10 +22352,10 @@ const ck = (n, e) => {
|
|
|
22352
22352
|
"mask-linear": [J]
|
|
22353
22353
|
}],
|
|
22354
22354
|
"mask-image-linear-from-pos": [{
|
|
22355
|
-
"mask-linear-from":
|
|
22355
|
+
"mask-linear-from": $()
|
|
22356
22356
|
}],
|
|
22357
22357
|
"mask-image-linear-to-pos": [{
|
|
22358
|
-
"mask-linear-to":
|
|
22358
|
+
"mask-linear-to": $()
|
|
22359
22359
|
}],
|
|
22360
22360
|
"mask-image-linear-from-color": [{
|
|
22361
22361
|
"mask-linear-from": z()
|
|
@@ -22364,10 +22364,10 @@ const ck = (n, e) => {
|
|
|
22364
22364
|
"mask-linear-to": z()
|
|
22365
22365
|
}],
|
|
22366
22366
|
"mask-image-t-from-pos": [{
|
|
22367
|
-
"mask-t-from":
|
|
22367
|
+
"mask-t-from": $()
|
|
22368
22368
|
}],
|
|
22369
22369
|
"mask-image-t-to-pos": [{
|
|
22370
|
-
"mask-t-to":
|
|
22370
|
+
"mask-t-to": $()
|
|
22371
22371
|
}],
|
|
22372
22372
|
"mask-image-t-from-color": [{
|
|
22373
22373
|
"mask-t-from": z()
|
|
@@ -22376,10 +22376,10 @@ const ck = (n, e) => {
|
|
|
22376
22376
|
"mask-t-to": z()
|
|
22377
22377
|
}],
|
|
22378
22378
|
"mask-image-r-from-pos": [{
|
|
22379
|
-
"mask-r-from":
|
|
22379
|
+
"mask-r-from": $()
|
|
22380
22380
|
}],
|
|
22381
22381
|
"mask-image-r-to-pos": [{
|
|
22382
|
-
"mask-r-to":
|
|
22382
|
+
"mask-r-to": $()
|
|
22383
22383
|
}],
|
|
22384
22384
|
"mask-image-r-from-color": [{
|
|
22385
22385
|
"mask-r-from": z()
|
|
@@ -22388,10 +22388,10 @@ const ck = (n, e) => {
|
|
|
22388
22388
|
"mask-r-to": z()
|
|
22389
22389
|
}],
|
|
22390
22390
|
"mask-image-b-from-pos": [{
|
|
22391
|
-
"mask-b-from":
|
|
22391
|
+
"mask-b-from": $()
|
|
22392
22392
|
}],
|
|
22393
22393
|
"mask-image-b-to-pos": [{
|
|
22394
|
-
"mask-b-to":
|
|
22394
|
+
"mask-b-to": $()
|
|
22395
22395
|
}],
|
|
22396
22396
|
"mask-image-b-from-color": [{
|
|
22397
22397
|
"mask-b-from": z()
|
|
@@ -22400,10 +22400,10 @@ const ck = (n, e) => {
|
|
|
22400
22400
|
"mask-b-to": z()
|
|
22401
22401
|
}],
|
|
22402
22402
|
"mask-image-l-from-pos": [{
|
|
22403
|
-
"mask-l-from":
|
|
22403
|
+
"mask-l-from": $()
|
|
22404
22404
|
}],
|
|
22405
22405
|
"mask-image-l-to-pos": [{
|
|
22406
|
-
"mask-l-to":
|
|
22406
|
+
"mask-l-to": $()
|
|
22407
22407
|
}],
|
|
22408
22408
|
"mask-image-l-from-color": [{
|
|
22409
22409
|
"mask-l-from": z()
|
|
@@ -22412,10 +22412,10 @@ const ck = (n, e) => {
|
|
|
22412
22412
|
"mask-l-to": z()
|
|
22413
22413
|
}],
|
|
22414
22414
|
"mask-image-x-from-pos": [{
|
|
22415
|
-
"mask-x-from":
|
|
22415
|
+
"mask-x-from": $()
|
|
22416
22416
|
}],
|
|
22417
22417
|
"mask-image-x-to-pos": [{
|
|
22418
|
-
"mask-x-to":
|
|
22418
|
+
"mask-x-to": $()
|
|
22419
22419
|
}],
|
|
22420
22420
|
"mask-image-x-from-color": [{
|
|
22421
22421
|
"mask-x-from": z()
|
|
@@ -22424,10 +22424,10 @@ const ck = (n, e) => {
|
|
|
22424
22424
|
"mask-x-to": z()
|
|
22425
22425
|
}],
|
|
22426
22426
|
"mask-image-y-from-pos": [{
|
|
22427
|
-
"mask-y-from":
|
|
22427
|
+
"mask-y-from": $()
|
|
22428
22428
|
}],
|
|
22429
22429
|
"mask-image-y-to-pos": [{
|
|
22430
|
-
"mask-y-to":
|
|
22430
|
+
"mask-y-to": $()
|
|
22431
22431
|
}],
|
|
22432
22432
|
"mask-image-y-from-color": [{
|
|
22433
22433
|
"mask-y-from": z()
|
|
@@ -22439,10 +22439,10 @@ const ck = (n, e) => {
|
|
|
22439
22439
|
"mask-radial": [L, D]
|
|
22440
22440
|
}],
|
|
22441
22441
|
"mask-image-radial-from-pos": [{
|
|
22442
|
-
"mask-radial-from":
|
|
22442
|
+
"mask-radial-from": $()
|
|
22443
22443
|
}],
|
|
22444
22444
|
"mask-image-radial-to-pos": [{
|
|
22445
|
-
"mask-radial-to":
|
|
22445
|
+
"mask-radial-to": $()
|
|
22446
22446
|
}],
|
|
22447
22447
|
"mask-image-radial-from-color": [{
|
|
22448
22448
|
"mask-radial-from": z()
|
|
@@ -22466,10 +22466,10 @@ const ck = (n, e) => {
|
|
|
22466
22466
|
"mask-conic": [J]
|
|
22467
22467
|
}],
|
|
22468
22468
|
"mask-image-conic-from-pos": [{
|
|
22469
|
-
"mask-conic-from":
|
|
22469
|
+
"mask-conic-from": $()
|
|
22470
22470
|
}],
|
|
22471
22471
|
"mask-image-conic-to-pos": [{
|
|
22472
|
-
"mask-conic-to":
|
|
22472
|
+
"mask-conic-to": $()
|
|
22473
22473
|
}],
|
|
22474
22474
|
"mask-image-conic-from-color": [{
|
|
22475
22475
|
"mask-conic-from": z()
|
|
@@ -22547,7 +22547,7 @@ const ck = (n, e) => {
|
|
|
22547
22547
|
* @see https://tailwindcss.com/docs/blur
|
|
22548
22548
|
*/
|
|
22549
22549
|
blur: [{
|
|
22550
|
-
blur:
|
|
22550
|
+
blur: ae()
|
|
22551
22551
|
}],
|
|
22552
22552
|
/**
|
|
22553
22553
|
* Brightness
|
|
@@ -22637,7 +22637,7 @@ const ck = (n, e) => {
|
|
|
22637
22637
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
22638
22638
|
*/
|
|
22639
22639
|
"backdrop-blur": [{
|
|
22640
|
-
"backdrop-blur":
|
|
22640
|
+
"backdrop-blur": ae()
|
|
22641
22641
|
}],
|
|
22642
22642
|
/**
|
|
22643
22643
|
* Backdrop Brightness
|
|
@@ -22710,21 +22710,21 @@ const ck = (n, e) => {
|
|
|
22710
22710
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
22711
22711
|
*/
|
|
22712
22712
|
"border-spacing": [{
|
|
22713
|
-
"border-spacing":
|
|
22713
|
+
"border-spacing": v()
|
|
22714
22714
|
}],
|
|
22715
22715
|
/**
|
|
22716
22716
|
* Border Spacing X
|
|
22717
22717
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
22718
22718
|
*/
|
|
22719
22719
|
"border-spacing-x": [{
|
|
22720
|
-
"border-spacing-x":
|
|
22720
|
+
"border-spacing-x": v()
|
|
22721
22721
|
}],
|
|
22722
22722
|
/**
|
|
22723
22723
|
* Border Spacing Y
|
|
22724
22724
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
22725
22725
|
*/
|
|
22726
22726
|
"border-spacing-y": [{
|
|
22727
|
-
"border-spacing-y":
|
|
22727
|
+
"border-spacing-y": v()
|
|
22728
22728
|
}],
|
|
22729
22729
|
/**
|
|
22730
22730
|
* Table Layout
|
|
@@ -23016,126 +23016,126 @@ const ck = (n, e) => {
|
|
|
23016
23016
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23017
23017
|
*/
|
|
23018
23018
|
"scroll-m": [{
|
|
23019
|
-
"scroll-m":
|
|
23019
|
+
"scroll-m": v()
|
|
23020
23020
|
}],
|
|
23021
23021
|
/**
|
|
23022
23022
|
* Scroll Margin X
|
|
23023
23023
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23024
23024
|
*/
|
|
23025
23025
|
"scroll-mx": [{
|
|
23026
|
-
"scroll-mx":
|
|
23026
|
+
"scroll-mx": v()
|
|
23027
23027
|
}],
|
|
23028
23028
|
/**
|
|
23029
23029
|
* Scroll Margin Y
|
|
23030
23030
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23031
23031
|
*/
|
|
23032
23032
|
"scroll-my": [{
|
|
23033
|
-
"scroll-my":
|
|
23033
|
+
"scroll-my": v()
|
|
23034
23034
|
}],
|
|
23035
23035
|
/**
|
|
23036
23036
|
* Scroll Margin Start
|
|
23037
23037
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23038
23038
|
*/
|
|
23039
23039
|
"scroll-ms": [{
|
|
23040
|
-
"scroll-ms":
|
|
23040
|
+
"scroll-ms": v()
|
|
23041
23041
|
}],
|
|
23042
23042
|
/**
|
|
23043
23043
|
* Scroll Margin End
|
|
23044
23044
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23045
23045
|
*/
|
|
23046
23046
|
"scroll-me": [{
|
|
23047
|
-
"scroll-me":
|
|
23047
|
+
"scroll-me": v()
|
|
23048
23048
|
}],
|
|
23049
23049
|
/**
|
|
23050
23050
|
* Scroll Margin Top
|
|
23051
23051
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23052
23052
|
*/
|
|
23053
23053
|
"scroll-mt": [{
|
|
23054
|
-
"scroll-mt":
|
|
23054
|
+
"scroll-mt": v()
|
|
23055
23055
|
}],
|
|
23056
23056
|
/**
|
|
23057
23057
|
* Scroll Margin Right
|
|
23058
23058
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23059
23059
|
*/
|
|
23060
23060
|
"scroll-mr": [{
|
|
23061
|
-
"scroll-mr":
|
|
23061
|
+
"scroll-mr": v()
|
|
23062
23062
|
}],
|
|
23063
23063
|
/**
|
|
23064
23064
|
* Scroll Margin Bottom
|
|
23065
23065
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23066
23066
|
*/
|
|
23067
23067
|
"scroll-mb": [{
|
|
23068
|
-
"scroll-mb":
|
|
23068
|
+
"scroll-mb": v()
|
|
23069
23069
|
}],
|
|
23070
23070
|
/**
|
|
23071
23071
|
* Scroll Margin Left
|
|
23072
23072
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
23073
23073
|
*/
|
|
23074
23074
|
"scroll-ml": [{
|
|
23075
|
-
"scroll-ml":
|
|
23075
|
+
"scroll-ml": v()
|
|
23076
23076
|
}],
|
|
23077
23077
|
/**
|
|
23078
23078
|
* Scroll Padding
|
|
23079
23079
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23080
23080
|
*/
|
|
23081
23081
|
"scroll-p": [{
|
|
23082
|
-
"scroll-p":
|
|
23082
|
+
"scroll-p": v()
|
|
23083
23083
|
}],
|
|
23084
23084
|
/**
|
|
23085
23085
|
* Scroll Padding X
|
|
23086
23086
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23087
23087
|
*/
|
|
23088
23088
|
"scroll-px": [{
|
|
23089
|
-
"scroll-px":
|
|
23089
|
+
"scroll-px": v()
|
|
23090
23090
|
}],
|
|
23091
23091
|
/**
|
|
23092
23092
|
* Scroll Padding Y
|
|
23093
23093
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23094
23094
|
*/
|
|
23095
23095
|
"scroll-py": [{
|
|
23096
|
-
"scroll-py":
|
|
23096
|
+
"scroll-py": v()
|
|
23097
23097
|
}],
|
|
23098
23098
|
/**
|
|
23099
23099
|
* Scroll Padding Start
|
|
23100
23100
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23101
23101
|
*/
|
|
23102
23102
|
"scroll-ps": [{
|
|
23103
|
-
"scroll-ps":
|
|
23103
|
+
"scroll-ps": v()
|
|
23104
23104
|
}],
|
|
23105
23105
|
/**
|
|
23106
23106
|
* Scroll Padding End
|
|
23107
23107
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23108
23108
|
*/
|
|
23109
23109
|
"scroll-pe": [{
|
|
23110
|
-
"scroll-pe":
|
|
23110
|
+
"scroll-pe": v()
|
|
23111
23111
|
}],
|
|
23112
23112
|
/**
|
|
23113
23113
|
* Scroll Padding Top
|
|
23114
23114
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23115
23115
|
*/
|
|
23116
23116
|
"scroll-pt": [{
|
|
23117
|
-
"scroll-pt":
|
|
23117
|
+
"scroll-pt": v()
|
|
23118
23118
|
}],
|
|
23119
23119
|
/**
|
|
23120
23120
|
* Scroll Padding Right
|
|
23121
23121
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23122
23122
|
*/
|
|
23123
23123
|
"scroll-pr": [{
|
|
23124
|
-
"scroll-pr":
|
|
23124
|
+
"scroll-pr": v()
|
|
23125
23125
|
}],
|
|
23126
23126
|
/**
|
|
23127
23127
|
* Scroll Padding Bottom
|
|
23128
23128
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23129
23129
|
*/
|
|
23130
23130
|
"scroll-pb": [{
|
|
23131
|
-
"scroll-pb":
|
|
23131
|
+
"scroll-pb": v()
|
|
23132
23132
|
}],
|
|
23133
23133
|
/**
|
|
23134
23134
|
* Scroll Padding Left
|
|
23135
23135
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
23136
23136
|
*/
|
|
23137
23137
|
"scroll-pl": [{
|
|
23138
|
-
"scroll-pl":
|
|
23138
|
+
"scroll-pl": v()
|
|
23139
23139
|
}],
|
|
23140
23140
|
/**
|
|
23141
23141
|
* Scroll Snap Align
|
|
@@ -23599,18 +23599,18 @@ function Vv(n) {
|
|
|
23599
23599
|
let M;
|
|
23600
23600
|
e[8] !== a ? (M = (rt) => a.includes(rt), e[8] = a, e[9] = M) : M = e[9];
|
|
23601
23601
|
const b = M, T = s?.container;
|
|
23602
|
-
let v;
|
|
23603
|
-
e[10] !== T ? (v = Tn("menubar-container", T), e[10] = T, e[11] = v) : v = e[11];
|
|
23604
23602
|
let x;
|
|
23605
|
-
e[
|
|
23603
|
+
e[10] !== T ? (x = Tn("menubar-container", T), e[10] = T, e[11] = x) : x = e[11];
|
|
23604
|
+
let v;
|
|
23605
|
+
e[12] !== w || e[13] !== t || e[14] !== y || e[15] !== b ? (v = !b("bold") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleBold().run(), title: "Bold (Ctrl+B)", className: w(y.isBold), children: /* @__PURE__ */ N.jsx(rv, { size: 14 }) }), e[12] = w, e[13] = t, e[14] = y, e[15] = b, e[16] = v) : v = e[16];
|
|
23606
23606
|
let O;
|
|
23607
23607
|
e[17] !== w || e[18] !== t || e[19] !== y || e[20] !== b ? (O = !b("italic") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleItalic().run(), title: "Italic (Ctrl+I)", className: w(y.isItalic), children: /* @__PURE__ */ N.jsx(fv, { size: 14 }) }), e[17] = w, e[18] = t, e[19] = y, e[20] = b, e[21] = O) : O = e[21];
|
|
23608
23608
|
let W;
|
|
23609
23609
|
e[22] !== w || e[23] !== t || e[24] !== y || e[25] !== b ? (W = !b("strike") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleStrike().run(), title: "Strikethrough", className: w(y.isStrike), children: /* @__PURE__ */ N.jsx(Ov, { size: 14 }) }), e[22] = w, e[23] = t, e[24] = y, e[25] = b, e[26] = W) : W = e[26];
|
|
23610
23610
|
let I;
|
|
23611
23611
|
e[27] !== w || e[28] !== t || e[29] !== y || e[30] !== b ? (I = !b("underline") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleUnderline().run(), title: "Underline (Ctrl+U)", className: w(y.isUnderline), children: /* @__PURE__ */ N.jsx(Bv, { size: 14 }) }), e[27] = w, e[28] = t, e[29] = y, e[30] = b, e[31] = I) : I = e[31];
|
|
23612
|
-
let
|
|
23613
|
-
e[32] !== b ? (
|
|
23612
|
+
let G;
|
|
23613
|
+
e[32] !== b ? (G = (!b("bold") || !b("italic") || !b("strike") || !b("underline") || !b("textColor") || !b("bgColor")) && /* @__PURE__ */ N.jsx("div", { className: "menubar-separator" }), e[32] = b, e[33] = G) : G = e[33];
|
|
23614
23614
|
let he;
|
|
23615
23615
|
e[34] !== w || e[35] !== t || e[36] !== y || e[37] !== b || e[38] !== l ? (he = !b("textColor") && /* @__PURE__ */ N.jsxs("div", { className: "color-picker-container", ref: h, children: [
|
|
23616
23616
|
/* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => {
|
|
@@ -23626,8 +23626,8 @@ function Vv(n) {
|
|
|
23626
23626
|
t.chain().focus().setColor(yn).run();
|
|
23627
23627
|
}, onReset: () => t.chain().focus().unsetColor().run(), onClose: () => c(!1), type: "text" })
|
|
23628
23628
|
] }), e[34] = w, e[35] = t, e[36] = y, e[37] = b, e[38] = l, e[39] = he) : he = e[39];
|
|
23629
|
-
let
|
|
23630
|
-
e[40] !== w || e[41] !== t || e[42] !== y || e[43] !== b || e[44] !== d ? (
|
|
23629
|
+
let Z;
|
|
23630
|
+
e[40] !== w || e[41] !== t || e[42] !== y || e[43] !== b || e[44] !== d ? (Z = !b("bgColor") && /* @__PURE__ */ N.jsxs("div", { className: "color-picker-container", ref: p, children: [
|
|
23631
23631
|
/* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => {
|
|
23632
23632
|
u(!d), c(!1);
|
|
23633
23633
|
}, title: "Background Color", className: Tn(w(!1), "color-button"), children: /* @__PURE__ */ N.jsxs("div", { className: "color-button", children: [
|
|
@@ -23642,19 +23642,19 @@ function Vv(n) {
|
|
|
23642
23642
|
color: yn
|
|
23643
23643
|
}).run();
|
|
23644
23644
|
}, onReset: () => t.chain().focus().unsetHighlight().run(), onClose: () => u(!1), type: "background" })
|
|
23645
|
-
] }), e[40] = w, e[41] = t, e[42] = y, e[43] = b, e[44] = d, e[45] =
|
|
23645
|
+
] }), e[40] = w, e[41] = t, e[42] = y, e[43] = b, e[44] = d, e[45] = Z) : Z = e[45];
|
|
23646
23646
|
let U;
|
|
23647
23647
|
e[46] !== b ? (U = (!b("table") || !b("image")) && /* @__PURE__ */ N.jsx("div", { className: "menubar-separator" }), e[46] = b, e[47] = U) : U = e[47];
|
|
23648
|
-
let
|
|
23649
|
-
e[48] !== w || e[49] !== t || e[50] !== y || e[51] !== b ? (
|
|
23648
|
+
let X;
|
|
23649
|
+
e[48] !== w || e[49] !== t || e[50] !== y || e[51] !== b ? (X = !b("table") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().insertTable({
|
|
23650
23650
|
rows: 3,
|
|
23651
23651
|
cols: 3
|
|
23652
23652
|
}).run(), title: "Insert Table", className: w(y.isTable), children: /* @__PURE__ */ N.jsxs("svg", { className: "menubar-table-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23653
23653
|
/* @__PURE__ */ N.jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
23654
23654
|
/* @__PURE__ */ N.jsx("path", { d: "M3 9h18M3 15h18M9 21V3M15 21V3" })
|
|
23655
|
-
] }) }), e[48] = w, e[49] = t, e[50] = y, e[51] = b, e[52] =
|
|
23656
|
-
let
|
|
23657
|
-
e[53] !== w || e[54] !== b || e[55] !== r ? (
|
|
23655
|
+
] }) }), e[48] = w, e[49] = t, e[50] = y, e[51] = b, e[52] = X) : X = e[52];
|
|
23656
|
+
let Y;
|
|
23657
|
+
e[53] !== w || e[54] !== b || e[55] !== r ? (Y = !b("image") && r && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: r, title: "Insert Image", className: w(!1), children: /* @__PURE__ */ N.jsx(hv, { size: 14 }) }), e[53] = w, e[54] = b, e[55] = r, e[56] = Y) : Y = e[56];
|
|
23658
23658
|
let z;
|
|
23659
23659
|
e[57] !== b ? (z = (!b("h1") || !b("h2") || !b("h3") || !b("paragraph")) && /* @__PURE__ */ N.jsx("div", { className: "menubar-separator" }), e[57] = b, e[58] = z) : z = e[58];
|
|
23660
23660
|
let xe;
|
|
@@ -23669,20 +23669,20 @@ function Vv(n) {
|
|
|
23669
23669
|
e[69] !== w || e[70] !== t || e[71] !== y || e[72] !== b ? (C = !b("h3") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleHeading({
|
|
23670
23670
|
level: 3
|
|
23671
23671
|
}).run(), title: "Heading 3", className: w(y.isHeading3), children: /* @__PURE__ */ N.jsx(dv, { size: 14 }) }), e[69] = w, e[70] = t, e[71] = y, e[72] = b, e[73] = C) : C = e[73];
|
|
23672
|
-
let H;
|
|
23673
|
-
e[74] !== w || e[75] !== t || e[76] !== y || e[77] !== b ? (H = !b("paragraph") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().setParagraph().run(), title: "Paragraph", className: w(y.isParagraph), children: "¶" }), e[74] = w, e[75] = t, e[76] = y, e[77] = b, e[78] = H) : H = e[78];
|
|
23674
23672
|
let B;
|
|
23675
|
-
e[
|
|
23673
|
+
e[74] !== w || e[75] !== t || e[76] !== y || e[77] !== b ? (B = !b("paragraph") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().setParagraph().run(), title: "Paragraph", className: w(y.isParagraph), children: "¶" }), e[74] = w, e[75] = t, e[76] = y, e[77] = b, e[78] = B) : B = e[78];
|
|
23674
|
+
let V;
|
|
23675
|
+
e[79] !== b ? (V = (!b("bulletList") || !b("orderedList")) && /* @__PURE__ */ N.jsx("div", { className: "menubar-separator" }), e[79] = b, e[80] = V) : V = e[80];
|
|
23676
23676
|
let _;
|
|
23677
23677
|
e[81] !== w || e[82] !== t || e[83] !== y || e[84] !== b ? (_ = !b("bulletList") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleBulletList().run(), title: "Bullet List", className: w(y.isBulletList), children: /* @__PURE__ */ N.jsx(bv, { size: 14 }) }), e[81] = w, e[82] = t, e[83] = y, e[84] = b, e[85] = _) : _ = e[85];
|
|
23678
|
-
let
|
|
23679
|
-
e[86] !== w || e[87] !== t || e[88] !== y || e[89] !== b ? (
|
|
23680
|
-
let
|
|
23681
|
-
e[91] !== b ? (
|
|
23682
|
-
let
|
|
23683
|
-
e[93] !== w || e[94] !== t || e[95] !== y || e[96] !== b ? (
|
|
23684
|
-
let
|
|
23685
|
-
e[98] !== w || e[99] !== t || e[100] !== y || e[101] !== b ? (
|
|
23678
|
+
let Se;
|
|
23679
|
+
e[86] !== w || e[87] !== t || e[88] !== y || e[89] !== b ? (Se = !b("orderedList") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleOrderedList().run(), title: "Ordered List", className: w(y.isOrderedList), children: /* @__PURE__ */ N.jsx(gv, { size: 14 }) }), e[86] = w, e[87] = t, e[88] = y, e[89] = b, e[90] = Se) : Se = e[90];
|
|
23680
|
+
let q;
|
|
23681
|
+
e[91] !== b ? (q = (!b("code") || !b("codeBlock") || !b("blockquote") || !b("horizontalRule")) && /* @__PURE__ */ N.jsx("div", { className: "menubar-separator" }), e[91] = b, e[92] = q) : q = e[92];
|
|
23682
|
+
let $;
|
|
23683
|
+
e[93] !== w || e[94] !== t || e[95] !== y || e[96] !== b ? ($ = !b("code") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleCode().run(), title: "Code (Ctrl+`)", className: w(y.isCode), children: /* @__PURE__ */ N.jsx(Oc, { size: 14 }) }), e[93] = w, e[94] = t, e[95] = y, e[96] = b, e[97] = $) : $ = e[97];
|
|
23684
|
+
let ae;
|
|
23685
|
+
e[98] !== w || e[99] !== t || e[100] !== y || e[101] !== b ? (ae = !b("codeBlock") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleCodeBlock().run(), title: "Code Block", className: w(y.isCodeBlock), children: /* @__PURE__ */ N.jsx(Oc, { size: 14 }) }), e[98] = w, e[99] = t, e[100] = y, e[101] = b, e[102] = ae) : ae = e[102];
|
|
23686
23686
|
let De;
|
|
23687
23687
|
e[103] !== w || e[104] !== t || e[105] !== y || e[106] !== b ? (De = !b("blockquote") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().toggleBlockquote().run(), title: "Blockquote", className: w(y.isBlockquote), children: /* @__PURE__ */ N.jsx(Sv, { size: 14 }) }), e[103] = w, e[104] = t, e[105] = y, e[106] = b, e[107] = De) : De = e[107];
|
|
23688
23688
|
let He;
|
|
@@ -23704,28 +23704,28 @@ function Vv(n) {
|
|
|
23704
23704
|
let gn;
|
|
23705
23705
|
e[141] !== w || e[142] !== t || e[143] !== y || e[144] !== b ? (gn = !b("redo") && /* @__PURE__ */ N.jsx("button", { type: "button", onClick: () => t.chain().focus().redo().run(), disabled: !y.canRedo, title: "Redo (Ctrl+Y)", className: w(!1), children: /* @__PURE__ */ N.jsx(Nv, { size: 14 }) }), e[141] = w, e[142] = t, e[143] = y, e[144] = b, e[145] = gn) : gn = e[145];
|
|
23706
23706
|
let kr;
|
|
23707
|
-
return e[146] !==
|
|
23708
|
-
|
|
23707
|
+
return e[146] !== v || e[147] !== O || e[148] !== W || e[149] !== I || e[150] !== G || e[151] !== he || e[152] !== Z || e[153] !== U || e[154] !== X || e[155] !== Y || e[156] !== z || e[157] !== xe || e[158] !== Ce || e[159] !== C || e[160] !== B || e[161] !== V || e[162] !== _ || e[163] !== Se || e[164] !== q || e[165] !== $ || e[166] !== ae || e[167] !== De || e[168] !== He || e[169] !== nt || e[170] !== Ye || e[171] !== un || e[172] !== hn || e[173] !== pn || e[174] !== fn || e[175] !== mn || e[176] !== gn || e[177] !== x ? (kr = /* @__PURE__ */ N.jsxs("div", { className: x, children: [
|
|
23708
|
+
v,
|
|
23709
23709
|
O,
|
|
23710
23710
|
W,
|
|
23711
23711
|
I,
|
|
23712
|
-
X,
|
|
23713
|
-
he,
|
|
23714
|
-
Q,
|
|
23715
|
-
U,
|
|
23716
23712
|
G,
|
|
23713
|
+
he,
|
|
23717
23714
|
Z,
|
|
23715
|
+
U,
|
|
23716
|
+
X,
|
|
23717
|
+
Y,
|
|
23718
23718
|
z,
|
|
23719
23719
|
xe,
|
|
23720
23720
|
Ce,
|
|
23721
23721
|
C,
|
|
23722
|
-
H,
|
|
23723
23722
|
B,
|
|
23724
|
-
_,
|
|
23725
|
-
K,
|
|
23726
|
-
re,
|
|
23727
23723
|
V,
|
|
23728
|
-
|
|
23724
|
+
_,
|
|
23725
|
+
Se,
|
|
23726
|
+
q,
|
|
23727
|
+
$,
|
|
23728
|
+
ae,
|
|
23729
23729
|
De,
|
|
23730
23730
|
He,
|
|
23731
23731
|
nt,
|
|
@@ -23736,7 +23736,7 @@ function Vv(n) {
|
|
|
23736
23736
|
fn,
|
|
23737
23737
|
mn,
|
|
23738
23738
|
gn
|
|
23739
|
-
] }), e[146] =
|
|
23739
|
+
] }), e[146] = v, e[147] = O, e[148] = W, e[149] = I, e[150] = G, e[151] = he, e[152] = Z, e[153] = U, e[154] = X, e[155] = Y, e[156] = z, e[157] = xe, e[158] = Ce, e[159] = C, e[160] = B, e[161] = V, e[162] = _, e[163] = Se, e[164] = q, e[165] = $, e[166] = ae, e[167] = De, e[168] = He, e[169] = nt, e[170] = Ye, e[171] = un, e[172] = hn, e[173] = pn, e[174] = fn, e[175] = mn, e[176] = gn, e[177] = x, e[178] = kr) : kr = e[178], kr;
|
|
23740
23740
|
}
|
|
23741
23741
|
function Fv(n) {
|
|
23742
23742
|
const e = n.editor.getAttributes("textStyle").color, t = n.editor.getAttributes("highlight").color;
|
|
@@ -23878,15 +23878,15 @@ function Wv({
|
|
|
23878
23878
|
if (p.attrs.src.startsWith("data:image/"))
|
|
23879
23879
|
try {
|
|
23880
23880
|
const g = p.attrs.src.split(",")[1], y = p.attrs.src.match(/data:([^;]+);/)?.[1] || "image/png", k = atob(g), w = new Array(k.length);
|
|
23881
|
-
for (let
|
|
23882
|
-
w[
|
|
23881
|
+
for (let x = 0; x < k.length; x++)
|
|
23882
|
+
w[x] = k.charCodeAt(x);
|
|
23883
23883
|
const M = new Uint8Array(w), b = new Blob([M], {
|
|
23884
23884
|
type: y
|
|
23885
23885
|
}), T = new ClipboardItem({
|
|
23886
23886
|
[y]: b
|
|
23887
23887
|
});
|
|
23888
|
-
navigator.clipboard.write([T]).catch((
|
|
23889
|
-
console.error("Failed to copy image to clipboard:",
|
|
23888
|
+
navigator.clipboard.write([T]).catch((x) => {
|
|
23889
|
+
console.error("Failed to copy image to clipboard:", x);
|
|
23890
23890
|
});
|
|
23891
23891
|
} catch (g) {
|
|
23892
23892
|
console.error("Failed to process image for clipboard:", g);
|
|
@@ -23995,18 +23995,18 @@ const op = (n) => {
|
|
|
23995
23995
|
/* @__PURE__ */ S.jsx(Fe, { size: "sm", variant: "outline", onClick: a, disabled: f, children: g })
|
|
23996
23996
|
] })
|
|
23997
23997
|
] }), e[0] = g, e[1] = f, e[2] = k, e[3] = a, e[4] = i, e[5] = y, e[6] = m, e[7] = b) : b = e[7];
|
|
23998
|
-
let T,
|
|
23998
|
+
let T, x;
|
|
23999
23999
|
e[8] === Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
24000
24000
|
menubarContainer: "dark:bg-background!",
|
|
24001
24001
|
editorContent: "dark:bg-card! min-h-[4rem]! max-h-[8rem]! overflow-y-auto"
|
|
24002
|
-
},
|
|
24003
|
-
let
|
|
24004
|
-
e[10] !== p || e[11] !== r ? (
|
|
24002
|
+
}, x = ["table", "bgColor", "undo", "redo", "alignLeft", "alignCenter", "alignRight", "alignJustify", "paragraph"], e[8] = T, e[9] = x) : (T = e[8], x = e[9]);
|
|
24003
|
+
let v;
|
|
24004
|
+
e[10] !== p || e[11] !== r ? (v = /* @__PURE__ */ S.jsx("div", { className: "overflow-hidden rounded-lg border border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900", children: /* @__PURE__ */ S.jsx(Wv, { ref: r, initialContent: p, className: "rounded", classNames: T, hideMenuButtons: x }) }), e[10] = p, e[11] = r, e[12] = v) : v = e[12];
|
|
24005
24005
|
let O;
|
|
24006
|
-
return e[13] !== t || e[14] !==
|
|
24006
|
+
return e[13] !== t || e[14] !== v || e[15] !== M || e[16] !== b ? (O = /* @__PURE__ */ S.jsxs("div", { ref: t, className: M, children: [
|
|
24007
24007
|
b,
|
|
24008
|
-
|
|
24009
|
-
] }), e[13] = t, e[14] =
|
|
24008
|
+
v
|
|
24009
|
+
] }), e[13] = t, e[14] = v, e[15] = M, e[16] = b, e[17] = O) : O = e[17], O;
|
|
24010
24010
|
}, ka = (n, e = 100) => {
|
|
24011
24011
|
setTimeout(() => {
|
|
24012
24012
|
let t = null;
|
|
@@ -24090,18 +24090,18 @@ const op = (n) => {
|
|
|
24090
24090
|
] }),
|
|
24091
24091
|
o === t.userId && /* @__PURE__ */ S.jsx(qv, { onEdit: () => d(t.id), onDelete: () => f(t.id) })
|
|
24092
24092
|
] }) }), e[2] = t.body, e[3] = t.createdAt, e[4] = t.id, e[5] = t.isAdmin, e[6] = t.userId, e[7] = t.userName, e[8] = o, e[9] = h, e[10] = m, e[11] = y, e[12] = g, e[13] = r, e[14] = f, e[15] = d, e[16] = s, e[17] = p, e[18] = w, e[19] = T) : T = e[19];
|
|
24093
|
-
let v;
|
|
24094
|
-
e[20] !== t.id || e[21] !== g || e[22] !== c || e[23] !== s || e[24] !== l || e[25] !== w || e[26] !== a ? (v = g && /* @__PURE__ */ S.jsx(jo, { ref: (W) => {
|
|
24095
|
-
W && (W.id = w);
|
|
24096
|
-
}, tiptapRef: a, isSubmitting: c, onSubmit: () => l(t.id), onCancel: () => s(""), submitLabel: "작성", labelText: "답글 작성" }), e[20] = t.id, e[21] = g, e[22] = c, e[23] = s, e[24] = l, e[25] = w, e[26] = a, e[27] = v) : v = e[27];
|
|
24097
24093
|
let x;
|
|
24098
|
-
e[
|
|
24094
|
+
e[20] !== t.id || e[21] !== g || e[22] !== c || e[23] !== s || e[24] !== l || e[25] !== w || e[26] !== a ? (x = g && /* @__PURE__ */ S.jsx(jo, { ref: (W) => {
|
|
24095
|
+
W && (W.id = w);
|
|
24096
|
+
}, tiptapRef: a, isSubmitting: c, onSubmit: () => l(t.id), onCancel: () => s(""), submitLabel: "작성", labelText: "답글 작성" }), e[20] = t.id, e[21] = g, e[22] = c, e[23] = s, e[24] = l, e[25] = w, e[26] = a, e[27] = x) : x = e[27];
|
|
24097
|
+
let v;
|
|
24098
|
+
e[28] !== t.children || e[29] !== o || e[30] !== h || e[31] !== u || e[32] !== k || e[33] !== m || e[34] !== c || e[35] !== r || e[36] !== f || e[37] !== d || e[38] !== s || e[39] !== p || e[40] !== l || e[41] !== a || e[42] !== i ? (v = k && /* @__PURE__ */ S.jsx("div", { className: "flex flex-col gap-2", children: t.children.map((W) => /* @__PURE__ */ S.jsx(sp, { comment: W, level: r + 1, currentUserId: o, onReplyOpen: s, replyingToId: i, replyEditorRef: a, onSubmitReply: l, isSubmitting: c, onEdit: d, editingId: u, editEditorRef: h, onSubmitEdit: p, onDelete: f, isEditing: m }, W.id)) }), e[28] = t.children, e[29] = o, e[30] = h, e[31] = u, e[32] = k, e[33] = m, e[34] = c, e[35] = r, e[36] = f, e[37] = d, e[38] = s, e[39] = p, e[40] = l, e[41] = a, e[42] = i, e[43] = v) : v = e[43];
|
|
24099
24099
|
let O;
|
|
24100
|
-
return e[44] !== b || e[45] !== T || e[46] !==
|
|
24100
|
+
return e[44] !== b || e[45] !== T || e[46] !== x || e[47] !== v ? (O = /* @__PURE__ */ S.jsxs("div", { className: b, children: [
|
|
24101
24101
|
T,
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
] }), e[44] = b, e[45] = T, e[46] =
|
|
24102
|
+
x,
|
|
24103
|
+
v
|
|
24104
|
+
] }), e[44] = b, e[45] = T, e[46] = x, e[47] = v, e[48] = O) : O = e[48], O;
|
|
24105
24105
|
}, Jv = (n) => {
|
|
24106
24106
|
const e = dn.c(33), {
|
|
24107
24107
|
comments: t,
|
|
@@ -24141,19 +24141,19 @@ const op = (n) => {
|
|
|
24141
24141
|
M,
|
|
24142
24142
|
b
|
|
24143
24143
|
] }), e[5] = M, e[6] = b, e[7] = T) : T = e[7];
|
|
24144
|
-
let v;
|
|
24145
|
-
e[8] !== i || e[9] !== o || e[10] !== l || e[11] !== s || e[12] !== a ? (v = o && /* @__PURE__ */ S.jsx(jo, { tiptapRef: i, isSubmitting: l, onSubmit: a, onCancel: () => s(!1), submitLabel: "작성", labelText: "댓글 작성" }), e[8] = i, e[9] = o, e[10] = l, e[11] = s, e[12] = a, e[13] = v) : v = e[13];
|
|
24146
24144
|
let x;
|
|
24147
|
-
e[
|
|
24145
|
+
e[8] !== i || e[9] !== o || e[10] !== l || e[11] !== s || e[12] !== a ? (x = o && /* @__PURE__ */ S.jsx(jo, { tiptapRef: i, isSubmitting: l, onSubmit: a, onCancel: () => s(!1), submitLabel: "작성", labelText: "댓글 작성" }), e[8] = i, e[9] = o, e[10] = l, e[11] = s, e[12] = a, e[13] = x) : x = e[13];
|
|
24146
|
+
let v;
|
|
24147
|
+
e[14] !== t || e[15] !== w || e[16] !== m || e[17] !== p || e[18] !== k || e[19] !== r || e[20] !== l || e[21] !== y || e[22] !== f || e[23] !== d || e[24] !== g || e[25] !== h || e[26] !== u || e[27] !== c ? (v = /* @__PURE__ */ S.jsx("div", { className: "mt-4", children: r ? /* @__PURE__ */ S.jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ S.jsx(Po, { className: "h-4 w-4 animate-spin text-gray-400" }) }) : t.length === 0 ? /* @__PURE__ */ S.jsx("div", { className: "text-center text-xs text-gray-500 dark:text-gray-400", children: "아직 댓글이 없습니다." }) : /* @__PURE__ */ S.jsx("div", { className: "flex flex-col gap-0", children: t.map((W, I) => /* @__PURE__ */ S.jsxs("div", { children: [
|
|
24148
24148
|
/* @__PURE__ */ S.jsx(sp, { comment: W, level: 0, currentUserId: w, onReplyOpen: d, replyingToId: c, replyEditorRef: u, onSubmitReply: h, isSubmitting: l, onEdit: f, editingId: p, editEditorRef: m, onSubmitEdit: g, onDelete: y, isEditing: k }),
|
|
24149
24149
|
I < t.length - 1 && /* @__PURE__ */ S.jsx(Pc, { className: "my-3 bg-gray-200 dark:bg-gray-700" })
|
|
24150
|
-
] }, W.id)) }) }), e[14] = t, e[15] = w, e[16] = m, e[17] = p, e[18] = k, e[19] = r, e[20] = l, e[21] = y, e[22] = f, e[23] = d, e[24] = g, e[25] = h, e[26] = u, e[27] = c, e[28] =
|
|
24150
|
+
] }, W.id)) }) }), e[14] = t, e[15] = w, e[16] = m, e[17] = p, e[18] = k, e[19] = r, e[20] = l, e[21] = y, e[22] = f, e[23] = d, e[24] = g, e[25] = h, e[26] = u, e[27] = c, e[28] = v) : v = e[28];
|
|
24151
24151
|
let O;
|
|
24152
|
-
return e[29] !== T || e[30] !==
|
|
24152
|
+
return e[29] !== T || e[30] !== x || e[31] !== v ? (O = /* @__PURE__ */ S.jsxs("div", { children: [
|
|
24153
24153
|
T,
|
|
24154
|
-
|
|
24155
|
-
|
|
24156
|
-
] }), e[29] = T, e[30] =
|
|
24154
|
+
x,
|
|
24155
|
+
v
|
|
24156
|
+
] }), e[29] = T, e[30] = x, e[31] = v, e[32] = O) : O = e[32], O;
|
|
24157
24157
|
}, Gv = (n) => {
|
|
24158
24158
|
const e = dn.c(43), {
|
|
24159
24159
|
feedback: t,
|
|
@@ -24202,15 +24202,15 @@ const op = (n) => {
|
|
|
24202
24202
|
d,
|
|
24203
24203
|
b
|
|
24204
24204
|
] }), e[24] = d, e[25] = b, e[26] = T) : T = e[26];
|
|
24205
|
-
let
|
|
24206
|
-
e[27] !== t.feedbackDetail.recordId || e[28] !== l || e[29] !== c || e[30] !== a ? (
|
|
24205
|
+
let x;
|
|
24206
|
+
e[27] !== t.feedbackDetail.recordId || e[28] !== l || e[29] !== c || e[30] !== a ? (x = l && c && /* @__PURE__ */ S.jsxs(Fe, { size: "sm", variant: "default", onClick: () => {
|
|
24207
24207
|
t.feedbackDetail.recordId && a?.(t.feedbackDetail.recordId);
|
|
24208
24208
|
}, className: "flex items-center gap-1 text-xs", children: [
|
|
24209
24209
|
/* @__PURE__ */ S.jsx(ip, { className: "h-3 w-3" }),
|
|
24210
24210
|
"상세보기"
|
|
24211
|
-
] }), e[27] = t.feedbackDetail.recordId, e[28] = l, e[29] = c, e[30] = a, e[31] =
|
|
24212
|
-
let
|
|
24213
|
-
e[32] !== r || e[33] !== t.userId || e[34] !== i || e[35] !== s ? (
|
|
24211
|
+
] }), e[27] = t.feedbackDetail.recordId, e[28] = l, e[29] = c, e[30] = a, e[31] = x) : x = e[31];
|
|
24212
|
+
let v;
|
|
24213
|
+
e[32] !== r || e[33] !== t.userId || e[34] !== i || e[35] !== s ? (v = r === t.userId && /* @__PURE__ */ S.jsxs($c, { children: [
|
|
24214
24214
|
/* @__PURE__ */ S.jsx(Ic, { asChild: !0, children: /* @__PURE__ */ S.jsx(Fe, { size: "sm", variant: "ghost", className: "h-auto px-2 py-1 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200", children: /* @__PURE__ */ S.jsx(Bc, { className: "h-5 w-5" }) }) }),
|
|
24215
24215
|
/* @__PURE__ */ S.jsx(jc, { className: "w-auto p-1 pointer-events-auto", children: /* @__PURE__ */ S.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
24216
24216
|
/* @__PURE__ */ S.jsxs(Fe, { size: "sm", variant: "ghost", onClick: s, className: "justify-start text-xs text-gray-700 dark:text-gray-300", children: [
|
|
@@ -24222,12 +24222,12 @@ const op = (n) => {
|
|
|
24222
24222
|
"삭제"
|
|
24223
24223
|
] })
|
|
24224
24224
|
] }) })
|
|
24225
|
-
] }), e[32] = r, e[33] = t.userId, e[34] = i, e[35] = s, e[36] =
|
|
24225
|
+
] }), e[32] = r, e[33] = t.userId, e[34] = i, e[35] = s, e[36] = v) : v = e[36];
|
|
24226
24226
|
let O;
|
|
24227
|
-
e[37] !==
|
|
24228
|
-
|
|
24229
|
-
|
|
24230
|
-
] }), e[37] =
|
|
24227
|
+
e[37] !== x || e[38] !== v ? (O = /* @__PURE__ */ S.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
24228
|
+
x,
|
|
24229
|
+
v
|
|
24230
|
+
] }), e[37] = x, e[38] = v, e[39] = O) : O = e[39];
|
|
24231
24231
|
let W;
|
|
24232
24232
|
return e[40] !== T || e[41] !== O ? (W = /* @__PURE__ */ S.jsxs("div", { className: "mb-6 flex items-start justify-between", children: [
|
|
24233
24233
|
T,
|
|
@@ -24300,126 +24300,127 @@ const hx = ({
|
|
|
24300
24300
|
currentUser: s,
|
|
24301
24301
|
onClose: i,
|
|
24302
24302
|
callbacks: a,
|
|
24303
|
-
isDialog: l = !1
|
|
24303
|
+
isDialog: l = !1,
|
|
24304
|
+
showHeader: c = !0
|
|
24304
24305
|
}) => {
|
|
24305
24306
|
const {
|
|
24306
|
-
commentEditorRef:
|
|
24307
|
-
replyEditorRef:
|
|
24308
|
-
editEditorRef:
|
|
24309
|
-
feedbackEditorRef:
|
|
24310
|
-
clearEditor:
|
|
24311
|
-
getEditorContent:
|
|
24312
|
-
validateContent:
|
|
24313
|
-
} = Yv(), [
|
|
24314
|
-
const
|
|
24315
|
-
if (!
|
|
24307
|
+
commentEditorRef: d,
|
|
24308
|
+
replyEditorRef: u,
|
|
24309
|
+
editEditorRef: h,
|
|
24310
|
+
feedbackEditorRef: p,
|
|
24311
|
+
clearEditor: f,
|
|
24312
|
+
getEditorContent: m,
|
|
24313
|
+
validateContent: g
|
|
24314
|
+
} = Yv(), [y, k] = Ze(!1), [w, M] = Ze(null), [b, T] = Ze(null), [x, v] = Ze(!1), O = at(null), [W, I] = vr(), [G, he] = vr(), [Z, U] = vr(), [X, Y] = vr(), z = r || [], xe = async () => {
|
|
24315
|
+
const q = m(d);
|
|
24316
|
+
if (!g(q))
|
|
24316
24317
|
return a.onValidateError("empty");
|
|
24317
|
-
n?.id &&
|
|
24318
|
+
n?.id && I(async () => {
|
|
24318
24319
|
try {
|
|
24319
24320
|
await a.onCommentCreate(n.id, {
|
|
24320
|
-
body:
|
|
24321
|
-
}),
|
|
24322
|
-
} catch (
|
|
24323
|
-
a.onError(
|
|
24321
|
+
body: q
|
|
24322
|
+
}), f(d), k(!1), a.onCommentChanged();
|
|
24323
|
+
} catch ($) {
|
|
24324
|
+
a.onError($);
|
|
24324
24325
|
}
|
|
24325
24326
|
});
|
|
24326
|
-
},
|
|
24327
|
-
const
|
|
24328
|
-
if (!
|
|
24327
|
+
}, Ce = async (q) => {
|
|
24328
|
+
const $ = m(u);
|
|
24329
|
+
if (!g($))
|
|
24329
24330
|
return a.onValidateError("empty");
|
|
24330
|
-
n?.id &&
|
|
24331
|
+
n?.id && I(async () => {
|
|
24331
24332
|
try {
|
|
24332
24333
|
await a.onCommentCreate(n.id, {
|
|
24333
|
-
body:
|
|
24334
|
-
refId:
|
|
24335
|
-
}),
|
|
24336
|
-
} catch (
|
|
24337
|
-
a.onError(
|
|
24334
|
+
body: $,
|
|
24335
|
+
refId: q
|
|
24336
|
+
}), f(u), M(null), a.onCommentChanged();
|
|
24337
|
+
} catch (ae) {
|
|
24338
|
+
a.onError(ae);
|
|
24338
24339
|
}
|
|
24339
24340
|
});
|
|
24340
|
-
},
|
|
24341
|
-
const
|
|
24342
|
-
if (!
|
|
24341
|
+
}, C = async (q) => {
|
|
24342
|
+
const $ = m(h);
|
|
24343
|
+
if (!g($))
|
|
24343
24344
|
return a.onValidateError("empty");
|
|
24344
|
-
|
|
24345
|
+
he(async () => {
|
|
24345
24346
|
try {
|
|
24346
|
-
await a.onCommentUpdate(
|
|
24347
|
-
body:
|
|
24348
|
-
}),
|
|
24349
|
-
} catch (
|
|
24350
|
-
a.onError(
|
|
24347
|
+
await a.onCommentUpdate(q, {
|
|
24348
|
+
body: $
|
|
24349
|
+
}), T(null), f(h), a.onCommentChanged();
|
|
24350
|
+
} catch (ae) {
|
|
24351
|
+
a.onError(ae);
|
|
24351
24352
|
}
|
|
24352
24353
|
});
|
|
24353
|
-
},
|
|
24354
|
-
confirm("댓글을 삭제하시겠습니까?") &&
|
|
24354
|
+
}, B = async (q) => {
|
|
24355
|
+
confirm("댓글을 삭제하시겠습니까?") && U(async () => {
|
|
24355
24356
|
try {
|
|
24356
|
-
await a.onCommentDelete(
|
|
24357
|
-
} catch (
|
|
24358
|
-
a.onError(
|
|
24357
|
+
await a.onCommentDelete(q), a.onCommentChanged();
|
|
24358
|
+
} catch ($) {
|
|
24359
|
+
a.onError($);
|
|
24359
24360
|
}
|
|
24360
24361
|
});
|
|
24361
|
-
},
|
|
24362
|
-
const
|
|
24363
|
-
if (!
|
|
24362
|
+
}, V = async () => {
|
|
24363
|
+
const q = O.current?.value || "", $ = m(p);
|
|
24364
|
+
if (!g(q)) {
|
|
24364
24365
|
a.onValidateError("empty");
|
|
24365
24366
|
return;
|
|
24366
24367
|
}
|
|
24367
|
-
if (!
|
|
24368
|
+
if (!g($)) {
|
|
24368
24369
|
a.onValidateError("empty");
|
|
24369
24370
|
return;
|
|
24370
24371
|
}
|
|
24371
|
-
n &&
|
|
24372
|
+
n && Y(async () => {
|
|
24372
24373
|
try {
|
|
24373
24374
|
await a.onFeedbackUpdate(n.id, {
|
|
24374
24375
|
feedbackDetail: {
|
|
24375
|
-
title:
|
|
24376
|
-
body:
|
|
24376
|
+
title: q,
|
|
24377
|
+
body: $
|
|
24377
24378
|
}
|
|
24378
|
-
}), v(!1), p
|
|
24379
|
-
} catch (
|
|
24380
|
-
a.onError(
|
|
24379
|
+
}), v(!1), f(p), a.onFeedbackChanged();
|
|
24380
|
+
} catch (ae) {
|
|
24381
|
+
a.onError(ae);
|
|
24381
24382
|
}
|
|
24382
24383
|
});
|
|
24383
|
-
},
|
|
24384
|
-
n &&
|
|
24384
|
+
}, _ = async () => {
|
|
24385
|
+
n && Y(async () => {
|
|
24385
24386
|
try {
|
|
24386
|
-
const
|
|
24387
|
+
const q = n.status === "pending" ? "resolved" : "pending";
|
|
24387
24388
|
await a.onFeedbackStatusUpdate?.(n.id, {
|
|
24388
|
-
status:
|
|
24389
|
+
status: q
|
|
24389
24390
|
}), a.onFeedbackChanged();
|
|
24390
|
-
} catch (
|
|
24391
|
-
a.onError(
|
|
24391
|
+
} catch (q) {
|
|
24392
|
+
a.onError(q);
|
|
24392
24393
|
}
|
|
24393
24394
|
});
|
|
24394
|
-
},
|
|
24395
|
+
}, Se = async () => {
|
|
24395
24396
|
if (confirm("피드백을 삭제하시겠습니까?") && n?.id)
|
|
24396
24397
|
try {
|
|
24397
24398
|
await a.onDeleteFeedback(n.id), a.onFeedbackChanged(), i ? i() : window.close();
|
|
24398
|
-
} catch (
|
|
24399
|
-
a.onError(
|
|
24399
|
+
} catch (q) {
|
|
24400
|
+
a.onError(q);
|
|
24400
24401
|
}
|
|
24401
24402
|
};
|
|
24402
24403
|
if (e) {
|
|
24403
|
-
const
|
|
24404
|
-
return l ?
|
|
24404
|
+
const q = /* @__PURE__ */ S.jsx("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ S.jsx(Po, { className: "h-6 w-6 animate-spin text-gray-400" }) });
|
|
24405
|
+
return l ? q : /* @__PURE__ */ S.jsx("div", { className: "bg-background flex min-h-screen items-center justify-center", children: q });
|
|
24405
24406
|
}
|
|
24406
24407
|
if (t || !n) {
|
|
24407
|
-
const
|
|
24408
|
+
const q = /* @__PURE__ */ S.jsxs("div", { className: "flex flex-col items-center justify-center p-4", children: [
|
|
24408
24409
|
/* @__PURE__ */ S.jsxs("div", { className: "flex items-center gap-2 rounded-md bg-red-50 p-4 text-sm text-red-700 dark:bg-red-900/20 dark:text-red-400", children: [
|
|
24409
24410
|
/* @__PURE__ */ S.jsx(lp, { className: "h-4 w-4 shrink-0" }),
|
|
24410
24411
|
/* @__PURE__ */ S.jsx("span", { children: "피드백을 불러오는데 실패했습니다." })
|
|
24411
24412
|
] }),
|
|
24412
24413
|
!l && /* @__PURE__ */ S.jsx(Fe, { onClick: () => window.close(), variant: "ghost", size: "sm", className: "mt-4 text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100", children: "닫기" })
|
|
24413
24414
|
] });
|
|
24414
|
-
return l ? /* @__PURE__ */ S.jsx("div", { className: "flex items-center justify-center py-8", children:
|
|
24415
|
+
return l ? /* @__PURE__ */ S.jsx("div", { className: "flex items-center justify-center py-8", children: q }) : /* @__PURE__ */ S.jsx("div", { className: "bg-background flex min-h-screen flex-col items-center justify-center", children: q });
|
|
24415
24416
|
}
|
|
24416
24417
|
return /* @__PURE__ */ S.jsxs("div", { className: rr("bg-background flex flex-col", l ? "h-auto" : "min-h-screen"), children: [
|
|
24417
|
-
/* @__PURE__ */ S.jsx("div", { className: "shrink-0 border-b border-gray-200 py-4 dark:border-gray-700", children: /* @__PURE__ */ S.jsx("div", { className: "
|
|
24418
|
-
/* @__PURE__ */ S.jsx("div", { className: "bg-background flex-1 overflow-y-auto", children: /* @__PURE__ */ S.jsxs("div", { className: "
|
|
24419
|
-
/* @__PURE__ */ S.jsx(Gv, { feedback: n, currentUserId: s?.id, currentUser: s, onEditClick: () => v(!0), onDeleteClick:
|
|
24420
|
-
/* @__PURE__ */ S.jsx(Xv, { feedback: n, isEditing:
|
|
24418
|
+
c && /* @__PURE__ */ S.jsx("div", { className: "shrink-0 border-b border-gray-200 py-4 dark:border-gray-700", children: /* @__PURE__ */ S.jsx("div", { className: "max-w-5xl px-6", children: /* @__PURE__ */ S.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ S.jsx("h1", { className: "text-lg font-semibold text-gray-900 dark:text-gray-100", children: "피드백 상세" }) }) }) }),
|
|
24419
|
+
/* @__PURE__ */ S.jsx("div", { className: "bg-background flex-1 overflow-y-auto", children: /* @__PURE__ */ S.jsxs("div", { className: "max-w-5xl px-6 py-6", children: [
|
|
24420
|
+
/* @__PURE__ */ S.jsx(Gv, { feedback: n, currentUserId: s?.id, currentUser: s, onEditClick: () => v(!0), onDeleteClick: Se, onViewDetailClick: (q) => a.onViewRecordDetail?.(q) }),
|
|
24421
|
+
/* @__PURE__ */ S.jsx(Xv, { feedback: n, isEditing: x, isUpdating: X, currentUserRole: s?.role, feedbackEditorRef: p, titleInputRef: O, onEditCancel: () => v(!1), onEditSave: V, onStatusChange: _ }),
|
|
24421
24422
|
/* @__PURE__ */ S.jsx(Pc, { className: "mb-6 bg-gray-200 dark:bg-gray-700" }),
|
|
24422
|
-
/* @__PURE__ */ S.jsx(Jv, { comments:
|
|
24423
|
+
/* @__PURE__ */ S.jsx(Jv, { comments: z, isLoading: o, isCommentEditOpen: y, onCommentEditOpen: k, commentEditorRef: d, onSubmitComment: xe, isSubmitting: W, replyingToId: w, onReplyOpen: M, replyEditorRef: u, onSubmitReply: Ce, editingId: b, onEdit: T, editEditorRef: h, onSubmitEdit: C, onDelete: B, isEditing: G || Z, currentUserId: s?.id })
|
|
24423
24424
|
] }) })
|
|
24424
24425
|
] });
|
|
24425
24426
|
};
|