@scbt-ecom/ui 0.89.3 → 0.90.1
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/{index-DM5UjNZl.js → index-CMQOOPU0.js} +358 -408
- package/dist/{index-DM5UjNZl.js.map → index-CMQOOPU0.js.map} +1 -1
- package/dist/{index-Bu5RfW_Z.js → index-Cj4n5Vtu.js} +2 -2
- package/dist/{index-Bu5RfW_Z.js.map → index-Cj4n5Vtu.js.map} +1 -1
- package/dist/lib/widgets/userFeedback/UserFeedback.d.ts +13 -3
- package/dist/lib/widgets/userFeedback/ui/Finally.d.ts +10 -0
- package/dist/lib/widgets/userFeedback/ui/SelectRating.d.ts +11 -1
- package/dist/lib/widgets/userFeedback/ui/UserReview.d.ts +20 -0
- package/dist/lib/widgets/userFeedback/ui/index.d.ts +2 -2
- package/dist/ui.js +3 -3
- package/dist/{utils-BAhmwXLC.js → utils-U4W3nat7.js} +1 -48
- package/dist/{utils-BAhmwXLC.js.map → utils-U4W3nat7.js.map} +1 -1
- package/dist/validation.js +2 -2
- package/dist/widget.js +1232 -1217
- package/dist/widget.js.map +1 -1
- package/package.json +3 -2
- package/dist/lib/widgets/userFeedback/ui/Success.d.ts +0 -4
- package/dist/lib/widgets/userFeedback/ui/UserReviewForm.d.ts +0 -9
|
@@ -11,7 +11,7 @@ import * as Za from "react-dom";
|
|
|
11
11
|
import s3, { createPortal as Po, flushSync as mi } from "react-dom";
|
|
12
12
|
import { u as gm, a as Tl, h as xn, e as i8, b as o8 } from "./useDebounce-5MeprqTX.js";
|
|
13
13
|
import { g as a3 } from "./_commonjsHelpers-C6fGbg64.js";
|
|
14
|
-
import { aU as Mt, aV as qn, aW as Kg, aX as s8, aY as l3, aZ as c3, a_ as u3, a$ as d3, b0 as a8, b1 as l8, b2 as vm, i as ym, b3 as c8, b4 as u8, b5 as d8, b6 as f8, b7 as bp, b8 as p8, b9 as h8, ba as Bd, bb as oa, bc as sa, bd as m8, aR as f3, aS as p3, aT as Zi, aQ as Ma, p as h3, aP as $d, au as g8, a2 as v8, s as y8 } from "./utils-
|
|
14
|
+
import { aU as Mt, aV as qn, aW as Kg, aX as s8, aY as l3, aZ as c3, a_ as u3, a$ as d3, b0 as a8, b1 as l8, b2 as vm, i as ym, b3 as c8, b4 as u8, b5 as d8, b6 as f8, b7 as bp, b8 as p8, b9 as h8, ba as Bd, bb as oa, bc as sa, bd as m8, aR as f3, aS as p3, aT as Zi, aQ as Ma, p as h3, aP as $d, au as g8, a2 as v8, s as y8 } from "./utils-U4W3nat7.js";
|
|
15
15
|
function m3(t, e, n) {
|
|
16
16
|
const r = Mt(t, n == null ? void 0 : n.in);
|
|
17
17
|
if (isNaN(e)) return qn(t, NaN);
|
|
@@ -196,15 +196,12 @@ const Xr = {
|
|
|
196
196
|
G: function(t, e, n) {
|
|
197
197
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
198
198
|
switch (e) {
|
|
199
|
-
// AD, BC
|
|
200
199
|
case "G":
|
|
201
200
|
case "GG":
|
|
202
201
|
case "GGG":
|
|
203
202
|
return n.era(r, { width: "abbreviated" });
|
|
204
|
-
// A, B
|
|
205
203
|
case "GGGGG":
|
|
206
204
|
return n.era(r, { width: "narrow" });
|
|
207
|
-
// Anno Domini, Before Christ
|
|
208
205
|
case "GGGG":
|
|
209
206
|
default:
|
|
210
207
|
return n.era(r, { width: "wide" });
|
|
@@ -249,28 +246,22 @@ const Xr = {
|
|
|
249
246
|
Q: function(t, e, n) {
|
|
250
247
|
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
251
248
|
switch (e) {
|
|
252
|
-
// 1, 2, 3, 4
|
|
253
249
|
case "Q":
|
|
254
250
|
return String(r);
|
|
255
|
-
// 01, 02, 03, 04
|
|
256
251
|
case "QQ":
|
|
257
252
|
return et(r, 2);
|
|
258
|
-
// 1st, 2nd, 3rd, 4th
|
|
259
253
|
case "Qo":
|
|
260
254
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
261
|
-
// Q1, Q2, Q3, Q4
|
|
262
255
|
case "QQQ":
|
|
263
256
|
return n.quarter(r, {
|
|
264
257
|
width: "abbreviated",
|
|
265
258
|
context: "formatting"
|
|
266
259
|
});
|
|
267
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
268
260
|
case "QQQQQ":
|
|
269
261
|
return n.quarter(r, {
|
|
270
262
|
width: "narrow",
|
|
271
263
|
context: "formatting"
|
|
272
264
|
});
|
|
273
|
-
// 1st quarter, 2nd quarter, ...
|
|
274
265
|
case "QQQQ":
|
|
275
266
|
default:
|
|
276
267
|
return n.quarter(r, {
|
|
@@ -283,28 +274,22 @@ const Xr = {
|
|
|
283
274
|
q: function(t, e, n) {
|
|
284
275
|
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
285
276
|
switch (e) {
|
|
286
|
-
// 1, 2, 3, 4
|
|
287
277
|
case "q":
|
|
288
278
|
return String(r);
|
|
289
|
-
// 01, 02, 03, 04
|
|
290
279
|
case "qq":
|
|
291
280
|
return et(r, 2);
|
|
292
|
-
// 1st, 2nd, 3rd, 4th
|
|
293
281
|
case "qo":
|
|
294
282
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
295
|
-
// Q1, Q2, Q3, Q4
|
|
296
283
|
case "qqq":
|
|
297
284
|
return n.quarter(r, {
|
|
298
285
|
width: "abbreviated",
|
|
299
286
|
context: "standalone"
|
|
300
287
|
});
|
|
301
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
302
288
|
case "qqqqq":
|
|
303
289
|
return n.quarter(r, {
|
|
304
290
|
width: "narrow",
|
|
305
291
|
context: "standalone"
|
|
306
292
|
});
|
|
307
|
-
// 1st quarter, 2nd quarter, ...
|
|
308
293
|
case "qqqq":
|
|
309
294
|
default:
|
|
310
295
|
return n.quarter(r, {
|
|
@@ -320,22 +305,18 @@ const Xr = {
|
|
|
320
305
|
case "M":
|
|
321
306
|
case "MM":
|
|
322
307
|
return Xr.M(t, e);
|
|
323
|
-
// 1st, 2nd, ..., 12th
|
|
324
308
|
case "Mo":
|
|
325
309
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
326
|
-
// Jan, Feb, ..., Dec
|
|
327
310
|
case "MMM":
|
|
328
311
|
return n.month(r, {
|
|
329
312
|
width: "abbreviated",
|
|
330
313
|
context: "formatting"
|
|
331
314
|
});
|
|
332
|
-
// J, F, ..., D
|
|
333
315
|
case "MMMMM":
|
|
334
316
|
return n.month(r, {
|
|
335
317
|
width: "narrow",
|
|
336
318
|
context: "formatting"
|
|
337
319
|
});
|
|
338
|
-
// January, February, ..., December
|
|
339
320
|
case "MMMM":
|
|
340
321
|
default:
|
|
341
322
|
return n.month(r, { width: "wide", context: "formatting" });
|
|
@@ -345,28 +326,22 @@ const Xr = {
|
|
|
345
326
|
L: function(t, e, n) {
|
|
346
327
|
const r = t.getMonth();
|
|
347
328
|
switch (e) {
|
|
348
|
-
// 1, 2, ..., 12
|
|
349
329
|
case "L":
|
|
350
330
|
return String(r + 1);
|
|
351
|
-
// 01, 02, ..., 12
|
|
352
331
|
case "LL":
|
|
353
332
|
return et(r + 1, 2);
|
|
354
|
-
// 1st, 2nd, ..., 12th
|
|
355
333
|
case "Lo":
|
|
356
334
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
357
|
-
// Jan, Feb, ..., Dec
|
|
358
335
|
case "LLL":
|
|
359
336
|
return n.month(r, {
|
|
360
337
|
width: "abbreviated",
|
|
361
338
|
context: "standalone"
|
|
362
339
|
});
|
|
363
|
-
// J, F, ..., D
|
|
364
340
|
case "LLLLL":
|
|
365
341
|
return n.month(r, {
|
|
366
342
|
width: "narrow",
|
|
367
343
|
context: "standalone"
|
|
368
344
|
});
|
|
369
|
-
// January, February, ..., December
|
|
370
345
|
case "LLLL":
|
|
371
346
|
default:
|
|
372
347
|
return n.month(r, { width: "wide", context: "standalone" });
|
|
@@ -395,7 +370,6 @@ const Xr = {
|
|
|
395
370
|
E: function(t, e, n) {
|
|
396
371
|
const r = t.getDay();
|
|
397
372
|
switch (e) {
|
|
398
|
-
// Tue
|
|
399
373
|
case "E":
|
|
400
374
|
case "EE":
|
|
401
375
|
case "EEE":
|
|
@@ -403,19 +377,16 @@ const Xr = {
|
|
|
403
377
|
width: "abbreviated",
|
|
404
378
|
context: "formatting"
|
|
405
379
|
});
|
|
406
|
-
// T
|
|
407
380
|
case "EEEEE":
|
|
408
381
|
return n.day(r, {
|
|
409
382
|
width: "narrow",
|
|
410
383
|
context: "formatting"
|
|
411
384
|
});
|
|
412
|
-
// Tu
|
|
413
385
|
case "EEEEEE":
|
|
414
386
|
return n.day(r, {
|
|
415
387
|
width: "short",
|
|
416
388
|
context: "formatting"
|
|
417
389
|
});
|
|
418
|
-
// Tuesday
|
|
419
390
|
case "EEEE":
|
|
420
391
|
default:
|
|
421
392
|
return n.day(r, {
|
|
@@ -428,13 +399,10 @@ const Xr = {
|
|
|
428
399
|
e: function(t, e, n, r) {
|
|
429
400
|
const i = t.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
430
401
|
switch (e) {
|
|
431
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
432
402
|
case "e":
|
|
433
403
|
return String(o);
|
|
434
|
-
// Padded numerical value
|
|
435
404
|
case "ee":
|
|
436
405
|
return et(o, 2);
|
|
437
|
-
// 1st, 2nd, ..., 7th
|
|
438
406
|
case "eo":
|
|
439
407
|
return n.ordinalNumber(o, { unit: "day" });
|
|
440
408
|
case "eee":
|
|
@@ -442,19 +410,16 @@ const Xr = {
|
|
|
442
410
|
width: "abbreviated",
|
|
443
411
|
context: "formatting"
|
|
444
412
|
});
|
|
445
|
-
// T
|
|
446
413
|
case "eeeee":
|
|
447
414
|
return n.day(i, {
|
|
448
415
|
width: "narrow",
|
|
449
416
|
context: "formatting"
|
|
450
417
|
});
|
|
451
|
-
// Tu
|
|
452
418
|
case "eeeeee":
|
|
453
419
|
return n.day(i, {
|
|
454
420
|
width: "short",
|
|
455
421
|
context: "formatting"
|
|
456
422
|
});
|
|
457
|
-
// Tuesday
|
|
458
423
|
case "eeee":
|
|
459
424
|
default:
|
|
460
425
|
return n.day(i, {
|
|
@@ -467,13 +432,10 @@ const Xr = {
|
|
|
467
432
|
c: function(t, e, n, r) {
|
|
468
433
|
const i = t.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
469
434
|
switch (e) {
|
|
470
|
-
// Numerical value (same as in `e`)
|
|
471
435
|
case "c":
|
|
472
436
|
return String(o);
|
|
473
|
-
// Padded numerical value
|
|
474
437
|
case "cc":
|
|
475
438
|
return et(o, e.length);
|
|
476
|
-
// 1st, 2nd, ..., 7th
|
|
477
439
|
case "co":
|
|
478
440
|
return n.ordinalNumber(o, { unit: "day" });
|
|
479
441
|
case "ccc":
|
|
@@ -481,19 +443,16 @@ const Xr = {
|
|
|
481
443
|
width: "abbreviated",
|
|
482
444
|
context: "standalone"
|
|
483
445
|
});
|
|
484
|
-
// T
|
|
485
446
|
case "ccccc":
|
|
486
447
|
return n.day(i, {
|
|
487
448
|
width: "narrow",
|
|
488
449
|
context: "standalone"
|
|
489
450
|
});
|
|
490
|
-
// Tu
|
|
491
451
|
case "cccccc":
|
|
492
452
|
return n.day(i, {
|
|
493
453
|
width: "short",
|
|
494
454
|
context: "standalone"
|
|
495
455
|
});
|
|
496
|
-
// Tuesday
|
|
497
456
|
case "cccc":
|
|
498
457
|
default:
|
|
499
458
|
return n.day(i, {
|
|
@@ -506,34 +465,27 @@ const Xr = {
|
|
|
506
465
|
i: function(t, e, n) {
|
|
507
466
|
const r = t.getDay(), i = r === 0 ? 7 : r;
|
|
508
467
|
switch (e) {
|
|
509
|
-
// 2
|
|
510
468
|
case "i":
|
|
511
469
|
return String(i);
|
|
512
|
-
// 02
|
|
513
470
|
case "ii":
|
|
514
471
|
return et(i, e.length);
|
|
515
|
-
// 2nd
|
|
516
472
|
case "io":
|
|
517
473
|
return n.ordinalNumber(i, { unit: "day" });
|
|
518
|
-
// Tue
|
|
519
474
|
case "iii":
|
|
520
475
|
return n.day(r, {
|
|
521
476
|
width: "abbreviated",
|
|
522
477
|
context: "formatting"
|
|
523
478
|
});
|
|
524
|
-
// T
|
|
525
479
|
case "iiiii":
|
|
526
480
|
return n.day(r, {
|
|
527
481
|
width: "narrow",
|
|
528
482
|
context: "formatting"
|
|
529
483
|
});
|
|
530
|
-
// Tu
|
|
531
484
|
case "iiiiii":
|
|
532
485
|
return n.day(r, {
|
|
533
486
|
width: "short",
|
|
534
487
|
context: "formatting"
|
|
535
488
|
});
|
|
536
|
-
// Tuesday
|
|
537
489
|
case "iiii":
|
|
538
490
|
default:
|
|
539
491
|
return n.day(r, {
|
|
@@ -664,21 +616,13 @@ const Xr = {
|
|
|
664
616
|
if (r === 0)
|
|
665
617
|
return "Z";
|
|
666
618
|
switch (e) {
|
|
667
|
-
// Hours and optional minutes
|
|
668
619
|
case "X":
|
|
669
620
|
return Xg(r);
|
|
670
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
671
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
672
|
-
// so this token always has the same output as `XX`
|
|
673
621
|
case "XXXX":
|
|
674
622
|
case "XX":
|
|
675
623
|
return Ki(r);
|
|
676
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
677
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
678
|
-
// so this token always has the same output as `XXX`
|
|
679
624
|
case "XXXXX":
|
|
680
625
|
case "XXX":
|
|
681
|
-
// Hours and minutes with `:` delimiter
|
|
682
626
|
default:
|
|
683
627
|
return Ki(r, ":");
|
|
684
628
|
}
|
|
@@ -687,21 +631,13 @@ const Xr = {
|
|
|
687
631
|
x: function(t, e, n) {
|
|
688
632
|
const r = t.getTimezoneOffset();
|
|
689
633
|
switch (e) {
|
|
690
|
-
// Hours and optional minutes
|
|
691
634
|
case "x":
|
|
692
635
|
return Xg(r);
|
|
693
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
694
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
695
|
-
// so this token always has the same output as `xx`
|
|
696
636
|
case "xxxx":
|
|
697
637
|
case "xx":
|
|
698
638
|
return Ki(r);
|
|
699
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
700
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
701
|
-
// so this token always has the same output as `xxx`
|
|
702
639
|
case "xxxxx":
|
|
703
640
|
case "xxx":
|
|
704
|
-
// Hours and minutes with `:` delimiter
|
|
705
641
|
default:
|
|
706
642
|
return Ki(r, ":");
|
|
707
643
|
}
|
|
@@ -710,12 +646,10 @@ const Xr = {
|
|
|
710
646
|
O: function(t, e, n) {
|
|
711
647
|
const r = t.getTimezoneOffset();
|
|
712
648
|
switch (e) {
|
|
713
|
-
// Short
|
|
714
649
|
case "O":
|
|
715
650
|
case "OO":
|
|
716
651
|
case "OOO":
|
|
717
652
|
return "GMT" + Jg(r, ":");
|
|
718
|
-
// Long
|
|
719
653
|
case "OOOO":
|
|
720
654
|
default:
|
|
721
655
|
return "GMT" + Ki(r, ":");
|
|
@@ -725,12 +659,10 @@ const Xr = {
|
|
|
725
659
|
z: function(t, e, n) {
|
|
726
660
|
const r = t.getTimezoneOffset();
|
|
727
661
|
switch (e) {
|
|
728
|
-
// Short
|
|
729
662
|
case "z":
|
|
730
663
|
case "zz":
|
|
731
664
|
case "zzz":
|
|
732
665
|
return "GMT" + Jg(r, ":");
|
|
733
|
-
// Long
|
|
734
666
|
case "zzzz":
|
|
735
667
|
default:
|
|
736
668
|
return "GMT" + Ki(r, ":");
|
|
@@ -852,7 +784,7 @@ function Z8(t, e, n) {
|
|
|
852
784
|
const r = Mt(t, n == null ? void 0 : n.in);
|
|
853
785
|
return isNaN(+r) ? qn(t, NaN) : (r.setFullYear(e), r);
|
|
854
786
|
}
|
|
855
|
-
const
|
|
787
|
+
const qY = ({ children: t, offset: e = !0, className: n, ...r }) => /* @__PURE__ */ T.jsx("div", { className: Z("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": e }, n), ...r, children: t }), e0 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, t0 = e3, Ii = (t, e) => (n) => {
|
|
856
788
|
var r;
|
|
857
789
|
if ((e == null ? void 0 : e.variants) == null) return t0(t, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
858
790
|
const { variants: i, defaultVariants: o } = e, s = Object.keys(i).map((c) => {
|
|
@@ -901,7 +833,7 @@ const GY = ({ children: t, offset: e = !0, className: n, ...r }) => /* @__PURE__
|
|
|
901
833
|
uppercase: "uppercase",
|
|
902
834
|
lowercase: "lowercase",
|
|
903
835
|
initial: "initial"
|
|
904
|
-
},
|
|
836
|
+
}, KY = {
|
|
905
837
|
submit: "submit",
|
|
906
838
|
button: "button"
|
|
907
839
|
}, Y8 = {
|
|
@@ -1016,7 +948,7 @@ const GY = ({ children: t, offset: e = !0, className: n, ...r }) => /* @__PURE__
|
|
|
1016
948
|
] })
|
|
1017
949
|
}
|
|
1018
950
|
)
|
|
1019
|
-
),
|
|
951
|
+
), YY = ({ phone: t, text: e, classes: n, ...r }) => /* @__PURE__ */ T.jsxs("div", { className: Z("flex w-max flex-col", n == null ? void 0 : n.root), ...r, children: [
|
|
1020
952
|
/* @__PURE__ */ T.jsx(
|
|
1021
953
|
"a",
|
|
1022
954
|
{
|
|
@@ -2217,7 +2149,7 @@ function Lk(t) {
|
|
|
2217
2149
|
h == null || h(Ae.date, ke, $e);
|
|
2218
2150
|
}, [W, h, e.dir]), be = we((Ae, ke) => ($e) => {
|
|
2219
2151
|
g == null || g(Ae.date, ke, $e);
|
|
2220
|
-
}, [g]),
|
|
2152
|
+
}, [g]), Me = we((Ae, ke) => ($e) => {
|
|
2221
2153
|
v == null || v(Ae.date, ke, $e);
|
|
2222
2154
|
}, [v]), qe = we((Ae) => (ke) => {
|
|
2223
2155
|
const $e = Number(ke.target.value), Ke = o.setMonth(o.startOfMonth(Ae), $e);
|
|
@@ -2317,7 +2249,7 @@ function Lk(t) {
|
|
|
2317
2249
|
He[Zn.range_start] = !!(ra && Wi && o.isSameDay(Rt, ra)), He[Zn.range_end] = !!(ra && Wi && o.isSameDay(Rt, Wi)), He[Zn.range_middle] = Ir(H, Rt, !0, o);
|
|
2318
2250
|
}
|
|
2319
2251
|
const zi = JC(He, b, e.modifiersStyles), Yl = uC(He, a, e.modifiersClassNames), Fd = !K && !He.hidden ? ne(Rt, He, o.options, o) : void 0;
|
|
2320
|
-
return ie.createElement(n.Day, { key: `${o.format(Rt, "yyyy-MM-dd")}_${o.format(st.displayMonth, "yyyy-MM")}`, day: st, modifiers: He, className: Yl.join(" "), style: zi, role: "gridcell", "aria-selected": He.selected || void 0, "aria-label": Fd, "data-day": o.format(Rt, "yyyy-MM-dd"), "data-month": st.outside ? o.format(Rt, "yyyy-MM") : void 0, "data-selected": He.selected || void 0, "data-disabled": He.disabled || void 0, "data-hidden": He.hidden || void 0, "data-outside": st.outside || void 0, "data-focused": He.focused || void 0, "data-today": He.today || void 0 }, !He.hidden && K ? ie.createElement(n.DayButton, { className: a[Se.DayButton], style: b == null ? void 0 : b[Se.DayButton], type: "button", day: st, modifiers: He, disabled: He.disabled || void 0, tabIndex: J(st) ? 0 : -1, "aria-label": ee(Rt, He, o.options, o), onClick: Q(st, He), onBlur: me(st, He), onFocus: de(st, He), onKeyDown: ve(st, He), onMouseEnter: be(st, He), onMouseLeave:
|
|
2252
|
+
return ie.createElement(n.Day, { key: `${o.format(Rt, "yyyy-MM-dd")}_${o.format(st.displayMonth, "yyyy-MM")}`, day: st, modifiers: He, className: Yl.join(" "), style: zi, role: "gridcell", "aria-selected": He.selected || void 0, "aria-label": Fd, "data-day": o.format(Rt, "yyyy-MM-dd"), "data-month": st.outside ? o.format(Rt, "yyyy-MM") : void 0, "data-selected": He.selected || void 0, "data-disabled": He.disabled || void 0, "data-hidden": He.hidden || void 0, "data-outside": st.outside || void 0, "data-focused": He.focused || void 0, "data-today": He.today || void 0 }, !He.hidden && K ? ie.createElement(n.DayButton, { className: a[Se.DayButton], style: b == null ? void 0 : b[Se.DayButton], type: "button", day: st, modifiers: He, disabled: He.disabled || void 0, tabIndex: J(st) ? 0 : -1, "aria-label": ee(Rt, He, o.options, o), onClick: Q(st, He), onBlur: me(st, He), onFocus: de(st, He), onKeyDown: ve(st, He), onMouseEnter: be(st, He), onMouseLeave: Me(st, He) }, E(Rt, o.options, o)) : !He.hidden && E(st.date, o.options, o));
|
|
2321
2253
|
})
|
|
2322
2254
|
)))
|
|
2323
2255
|
)
|
|
@@ -10119,7 +10051,7 @@ var PP = Object.freeze({
|
|
|
10119
10051
|
)
|
|
10120
10052
|
);
|
|
10121
10053
|
_x.displayName = RP;
|
|
10122
|
-
var NP = _x, [sd,
|
|
10054
|
+
var NP = _x, [sd, XY] = Gr("Tooltip", [
|
|
10123
10055
|
od
|
|
10124
10056
|
]), ad = od(), Hx = "TooltipProvider", IP = 700, Bp = "tooltip.open", [LP, v1] = sd(Hx), Bx = (t) => {
|
|
10125
10057
|
const {
|
|
@@ -10236,7 +10168,7 @@ var $p = "TooltipTrigger", zx = k.forwardRef(
|
|
|
10236
10168
|
}
|
|
10237
10169
|
);
|
|
10238
10170
|
zx.displayName = $p;
|
|
10239
|
-
var jP = "TooltipPortal", [
|
|
10171
|
+
var jP = "TooltipPortal", [QY, FP] = sd(jP, {
|
|
10240
10172
|
forceMount: void 0
|
|
10241
10173
|
}), _s = "TooltipContent", Wx = k.forwardRef(
|
|
10242
10174
|
(t, e) => {
|
|
@@ -11149,7 +11081,7 @@ var o4 = k.forwardRef(function(t, e) {
|
|
|
11149
11081
|
return k.createElement(cd, ar({}, t, { ref: e, sideCar: GR }));
|
|
11150
11082
|
});
|
|
11151
11083
|
o4.classNames = cd.classNames;
|
|
11152
|
-
var ud = "Popover", [s4,
|
|
11084
|
+
var ud = "Popover", [s4, eJ] = Gr(ud, [
|
|
11153
11085
|
od
|
|
11154
11086
|
]), Vl = od(), [qR, Vi] = s4(ud), a4 = (t) => {
|
|
11155
11087
|
const {
|
|
@@ -11422,7 +11354,7 @@ const dd = ({
|
|
|
11422
11354
|
]
|
|
11423
11355
|
}
|
|
11424
11356
|
) })
|
|
11425
|
-
] }),
|
|
11357
|
+
] }), tJ = ({ topContent: t, bottomContent: e, progress: n, maxPercent: r = 100, classes: i }) => /* @__PURE__ */ T.jsxs("div", { className: Z("flex w-full flex-col", i == null ? void 0 : i.root), children: [
|
|
11426
11358
|
t && /* @__PURE__ */ T.jsx("div", { className: Z("mb-2 flex justify-between gap-5", i == null ? void 0 : i.topContent), children: t }),
|
|
11427
11359
|
/* @__PURE__ */ T.jsxs("div", { className: Z("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", i == null ? void 0 : i.progressBar), children: [
|
|
11428
11360
|
/* @__PURE__ */ T.jsx(
|
|
@@ -11687,7 +11619,7 @@ const CN = {
|
|
|
11687
11619
|
className: Z("ml-auto size-6 cursor-pointer text-icon-dark-hover", n == null ? void 0 : n.icon)
|
|
11688
11620
|
}
|
|
11689
11621
|
)
|
|
11690
|
-
] }),
|
|
11622
|
+
] }), nJ = ({
|
|
11691
11623
|
title: t,
|
|
11692
11624
|
children: e,
|
|
11693
11625
|
isModalOpen: n,
|
|
@@ -12108,7 +12040,7 @@ var fI = ({ id: t, className: e, style: n, onHeightUpdate: r, children: i }) =>
|
|
|
12108
12040
|
> * {
|
|
12109
12041
|
pointer-events: auto;
|
|
12110
12042
|
}
|
|
12111
|
-
`, lc = 16,
|
|
12043
|
+
`, lc = 16, rJ = ({ reverseOrder: t, position: e = "top-center", toastOptions: n, gutter: r, children: i, containerStyle: o, containerClassName: s }) => {
|
|
12112
12044
|
let { toasts: a, handlers: l } = zN(n);
|
|
12113
12045
|
return k.createElement("div", { id: "_rht_toaster", style: { position: "fixed", zIndex: 9999, top: lc, left: lc, right: lc, bottom: lc, pointerEvents: "none", ...o }, className: s, onMouseEnter: l.startPause, onMouseLeave: l.endPause }, a.map((c) => {
|
|
12114
12046
|
let u = c.position || e, d = l.calculateOffset(c, { reverseOrder: t, gutter: r, defaultPosition: e }), f = pI(u, d);
|
|
@@ -13292,16 +13224,16 @@ function XI(t, e, n, r, i, o, s) {
|
|
|
13292
13224
|
} = FI(D, H, _, y, E), J = j ? G : _, {
|
|
13293
13225
|
limit: W
|
|
13294
13226
|
} = _I(H, J, d), q = D4(_l(J), u, d), ee = q.clone(), ne = nl(n), B = ({
|
|
13295
|
-
dragHandler:
|
|
13227
|
+
dragHandler: Me,
|
|
13296
13228
|
scrollBody: qe,
|
|
13297
13229
|
scrollBounds: _e,
|
|
13298
13230
|
options: {
|
|
13299
13231
|
loop: lt
|
|
13300
13232
|
}
|
|
13301
13233
|
}) => {
|
|
13302
|
-
lt || _e.constrain(
|
|
13234
|
+
lt || _e.constrain(Me.pointerDown()), qe.seek();
|
|
13303
13235
|
}, ae = ({
|
|
13304
|
-
scrollBody:
|
|
13236
|
+
scrollBody: Me,
|
|
13305
13237
|
translate: qe,
|
|
13306
13238
|
location: _e,
|
|
13307
13239
|
offsetLocation: lt,
|
|
@@ -13316,11 +13248,11 @@ function XI(t, e, n, r, i, o, s) {
|
|
|
13316
13248
|
loop: $e
|
|
13317
13249
|
}
|
|
13318
13250
|
}, Ke) => {
|
|
13319
|
-
const ze =
|
|
13251
|
+
const ze = Me.settled(), At = !ke.shouldConstrain(), st = $e ? ze : ze && At, Rt = st && !an.pointerDown();
|
|
13320
13252
|
Rt && Yt.stop();
|
|
13321
13253
|
const He = _e.get() * Ke + Pt.get() * (1 - Ke);
|
|
13322
|
-
lt.set(He), $e && (mn.loop(
|
|
13323
|
-
}, X = AI(r, i, () => B(be), (
|
|
13254
|
+
lt.set(He), $e && (mn.loop(Me.direction()), Kt.loop()), qe.to(lt.get()), Rt && Ae.emit("settle"), st || Ae.emit("scroll");
|
|
13255
|
+
}, X = AI(r, i, () => B(be), (Me) => ae(be, Me)), se = 0.68, pe = J[q.get()], re = va(pe), ue = va(pe), ce = va(pe), ge = va(pe), oe = VI(re, ce, ue, ge, f, se), K = WI(d, J, H, W, ge), te = UI(X, q, ee, oe, K, ge, s), Y = BI(W), Q = il(), de = KI(e, n, s, h), {
|
|
13324
13256
|
slideRegistry: me
|
|
13325
13257
|
} = zI(j, y, J, U, N, ne), ve = ZI(t, n, me, te, oe, Q, s, C), be = {
|
|
13326
13258
|
ownerDocument: r,
|
|
@@ -13617,7 +13549,7 @@ const rL = ({ carouselOptions: t, autoPlayOptions: e }) => {
|
|
|
13617
13549
|
n
|
|
13618
13550
|
]
|
|
13619
13551
|
}
|
|
13620
|
-
),
|
|
13552
|
+
), iJ = ({ classes: t, ...e }) => /* @__PURE__ */ T.jsx("div", { className: Z(t == null ? void 0 : t.root), children: /* @__PURE__ */ T.jsx("div", { className: Z("flex translate-x-0 translate-y-0 transform-gpu select-none flex-col", t == null ? void 0 : t.slide), children: cL(e) }) }), iL = ({ scrollSnaps: t, visibleIndex: e, onClickDot: n, position: r, classes: i, ...o }) => /* @__PURE__ */ T.jsx(
|
|
13621
13553
|
"div",
|
|
13622
13554
|
{
|
|
13623
13555
|
className: Z(
|
|
@@ -13753,7 +13685,7 @@ const rL = ({ carouselOptions: t, autoPlayOptions: e }) => {
|
|
|
13753
13685
|
}
|
|
13754
13686
|
)
|
|
13755
13687
|
] });
|
|
13756
|
-
},
|
|
13688
|
+
}, oJ = ({
|
|
13757
13689
|
dotsOptions: t = ry,
|
|
13758
13690
|
navArrowOptions: e = iy,
|
|
13759
13691
|
carouselOptions: n = ny,
|
|
@@ -13827,7 +13759,7 @@ const rL = ({ carouselOptions: t, autoPlayOptions: e }) => {
|
|
|
13827
13759
|
}
|
|
13828
13760
|
)
|
|
13829
13761
|
] });
|
|
13830
|
-
},
|
|
13762
|
+
}, sJ = ({ className: t, children: e, title: n, portal: r = ((o) => (o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body)(), ...i }) => {
|
|
13831
13763
|
const s = xe(null), a = xe(null), l = () => {
|
|
13832
13764
|
s.current && s.current.close();
|
|
13833
13765
|
};
|
|
@@ -13862,7 +13794,7 @@ const rL = ({ carouselOptions: t, autoPlayOptions: e }) => {
|
|
|
13862
13794
|
}
|
|
13863
13795
|
);
|
|
13864
13796
|
return r ? Po(c, r) : c;
|
|
13865
|
-
},
|
|
13797
|
+
}, aJ = {
|
|
13866
13798
|
main: /* @__PURE__ */ T.jsx(Le, { name: "brandLogos/logoMain" }),
|
|
13867
13799
|
white: /* @__PURE__ */ T.jsx(Le, { name: "brandLogos/logoWhite" }),
|
|
13868
13800
|
gray: /* @__PURE__ */ T.jsx(Le, { name: "brandLogos/logoGray" }),
|
|
@@ -13914,7 +13846,7 @@ const rL = ({ carouselOptions: t, autoPlayOptions: e }) => {
|
|
|
13914
13846
|
intent: "blue",
|
|
13915
13847
|
disabled: !1
|
|
13916
13848
|
}
|
|
13917
|
-
}),
|
|
13849
|
+
}), lJ = ({ intent: t, children: e, disabled: n, size: r, icon: i, classes: o, withUnderline: s, ...a }) => /* @__PURE__ */ T.jsxs("a", { className: Z(hL({ intent: t, withUnderline: s, disabled: n, size: r }), o == null ? void 0 : o.link), ...a, children: [
|
|
13918
13850
|
e,
|
|
13919
13851
|
i && /* @__PURE__ */ T.jsx(Le, { name: i, className: Z(mL({ intent: t, disabled: n }), o == null ? void 0 : o.icon) })
|
|
13920
13852
|
] }), gL = ({ keyList: t, classes: e }) => /* @__PURE__ */ T.jsx("div", { className: Z("flex items-center gap-1", e == null ? void 0 : e.root), children: t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ T.jsxs("div", { className: Z("flex items-center gap-1", e == null ? void 0 : e.keys), children: [
|
|
@@ -14487,13 +14419,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14487
14419
|
function te(Q, de, me, ve) {
|
|
14488
14420
|
var be = P(oe[Q], oe, de);
|
|
14489
14421
|
if (be.type !== "throw") {
|
|
14490
|
-
var
|
|
14422
|
+
var Me = be.arg, qe = Me.value;
|
|
14491
14423
|
return qe && c(qe) == "object" && D.call(qe, "__await") ? K.resolve(qe.__await).then(function(_e) {
|
|
14492
14424
|
te("next", _e, me, ve);
|
|
14493
14425
|
}, function(_e) {
|
|
14494
14426
|
te("throw", _e, me, ve);
|
|
14495
14427
|
}) : K.resolve(qe).then(function(_e) {
|
|
14496
|
-
|
|
14428
|
+
Me.value = _e, me(Me);
|
|
14497
14429
|
}, function(_e) {
|
|
14498
14430
|
return te("throw", _e, me, ve);
|
|
14499
14431
|
});
|
|
@@ -14639,8 +14571,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14639
14571
|
dispatchException: function(oe) {
|
|
14640
14572
|
if (this.done) throw oe;
|
|
14641
14573
|
var K = this;
|
|
14642
|
-
function te(be,
|
|
14643
|
-
return de.type = "throw", de.arg = oe, K.next = be,
|
|
14574
|
+
function te(be, Me) {
|
|
14575
|
+
return de.type = "throw", de.arg = oe, K.next = be, Me && (K.method = "next", K.arg = O), !!Me;
|
|
14644
14576
|
}
|
|
14645
14577
|
for (var Y = this.tryEntries.length - 1; Y >= 0; --Y) {
|
|
14646
14578
|
var Q = this.tryEntries[Y], de = Q.completion;
|
|
@@ -15426,7 +15358,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15426
15358
|
for (re.reset(), R(ce).lastIndex = 0; K = R(ce).exec(ce.inputFormat); ) {
|
|
15427
15359
|
var te;
|
|
15428
15360
|
if ((te = D(K)) && te[3]) {
|
|
15429
|
-
for (var Y = te[1], Q = re[te[2]], de = ce.min[te[2]], me = ce.max ? ce.max[te[2]] : de + 1, ve = [], be = !1,
|
|
15361
|
+
for (var Y = te[1], Q = re[te[2]], de = ce.min[te[2]], me = ce.max ? ce.max[te[2]] : de + 1, ve = [], be = !1, Me = 0; Me < de.length; Me++) ge.validPositions[Me + K.index] !== void 0 || be ? (ve[Me] = Q[Me], be = be || Q[Me] > de[Me]) : (Me + K.index == 0 && Q[Me] < de[Me] ? (ve[Me] = Q[Me], be = !0) : ve[Me] = de[Me], te[2] === "year" && Q.length - 1 == Me && de != me && (ve = (parseInt(ve.join("")) + 1).toString().split("")), te[2] === "ampm" && de != me && ce.min.date.getTime() > re.date.getTime() && (ve[Me] = me[Me]));
|
|
15430
15362
|
Y.call(re._date, ve.join(""));
|
|
15431
15363
|
}
|
|
15432
15364
|
}
|
|
@@ -17156,7 +17088,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
17156
17088
|
}
|
|
17157
17089
|
function ue(K, te, Y) {
|
|
17158
17090
|
var Q, de;
|
|
17159
|
-
if ((D.tests[K] || D.validPositions[K]) && (D.validPositions[K] ? [D.validPositions[K]] : D.tests[K]).every(function(be,
|
|
17091
|
+
if ((D.tests[K] || D.validPositions[K]) && (D.validPositions[K] ? [D.validPositions[K]] : D.tests[K]).every(function(be, Me) {
|
|
17160
17092
|
if (be.mloc[te]) return Q = be, !1;
|
|
17161
17093
|
var qe = Y !== void 0 ? Y : be.alternation, _e = be.locator[qe] !== void 0 ? be.locator[qe].toString().indexOf(te) : -1;
|
|
17162
17094
|
return (de === void 0 || _e < de) && _e !== -1 && (Q = be, de = _e), !0;
|
|
@@ -17225,7 +17157,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
17225
17157
|
M.hasAlternator = !0;
|
|
17226
17158
|
var te, Y = X, Q = [], de = F.slice(), me = se.length, ve = W.length > 0 ? W.shift() : -1;
|
|
17227
17159
|
if (ve === -1 || typeof ve == "string") {
|
|
17228
|
-
var be,
|
|
17160
|
+
var be, Me = V, qe = W.slice(), _e = [];
|
|
17229
17161
|
if (typeof ve == "string") _e = ve.split(",");
|
|
17230
17162
|
else for (be = 0; be < Y.matches.length; be++) _e.push(be.toString());
|
|
17231
17163
|
if (D.excludes[b] !== void 0) {
|
|
@@ -17235,13 +17167,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
17235
17167
|
}
|
|
17236
17168
|
_e.length === 0 && (delete D.excludes[b], _e = lt);
|
|
17237
17169
|
}
|
|
17238
|
-
(R.keepStatic === !0 || isFinite(parseInt(R.keepStatic)) &&
|
|
17170
|
+
(R.keepStatic === !0 || isFinite(parseInt(R.keepStatic)) && Me >= R.keepStatic) && (_e = _e.slice(0, 1));
|
|
17239
17171
|
for (var an = 0; an < _e.length; an++) {
|
|
17240
17172
|
be = parseInt(_e[an]), F = [], W = typeof ve == "string" && ue(V, be, me) || qe.slice();
|
|
17241
17173
|
var Yt = Y.matches[be];
|
|
17242
17174
|
if (Yt && ne(Yt, [be].concat(se), pe)) X = !0;
|
|
17243
17175
|
else if (an === 0 && (N = K(Y)), Yt && Yt.matches && Yt.matches.length > Y.matches[0].matches.length) break;
|
|
17244
|
-
te = F.slice(), V =
|
|
17176
|
+
te = F.slice(), V = Me, F = [];
|
|
17245
17177
|
for (var Ae = 0; Ae < te.length; Ae++) {
|
|
17246
17178
|
var ke = te[Ae], $e = !1;
|
|
17247
17179
|
ke.alternation = ke.alternation || me, ge(ke);
|
|
@@ -21224,7 +21156,7 @@ function B1(t) {
|
|
|
21224
21156
|
const e = k.useRef({ value: t, previous: t });
|
|
21225
21157
|
return k.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
|
|
21226
21158
|
}
|
|
21227
|
-
var yd = "Checkbox", [m_,
|
|
21159
|
+
var yd = "Checkbox", [m_, fJ] = Gr(yd), [g_, $1] = m_(yd);
|
|
21228
21160
|
function v_(t) {
|
|
21229
21161
|
const {
|
|
21230
21162
|
__scopeCheckbox: e,
|
|
@@ -21561,7 +21493,7 @@ const F6 = nt(
|
|
|
21561
21493
|
}
|
|
21562
21494
|
);
|
|
21563
21495
|
F6.displayName = "DayPickerBase";
|
|
21564
|
-
var bd = "Switch", [b_,
|
|
21496
|
+
var bd = "Switch", [b_, pJ] = Gr(bd), [x_, w_] = b_(bd), _6 = k.forwardRef(
|
|
21565
21497
|
(t, e) => {
|
|
21566
21498
|
const {
|
|
21567
21499
|
__scopeSwitch: n,
|
|
@@ -22743,11 +22675,9 @@ var It = {
|
|
|
22743
22675
|
case It.RIGHT:
|
|
22744
22676
|
U = w === "ltr" || w === "btt" ? 1 : -1;
|
|
22745
22677
|
break;
|
|
22746
|
-
// Up is plus
|
|
22747
22678
|
case It.UP:
|
|
22748
22679
|
U = w !== "ttb" ? 1 : -1;
|
|
22749
22680
|
break;
|
|
22750
|
-
// Down is minus
|
|
22751
22681
|
case It.DOWN:
|
|
22752
22682
|
U = w !== "ttb" ? -1 : 1;
|
|
22753
22683
|
break;
|
|
@@ -23200,7 +23130,7 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23200
23130
|
return z ? F ? "ttb" : "btt" : F ? "rtl" : "ltr";
|
|
23201
23131
|
}, [F, z]), K = SH(S), te = Ut(K, 5), Y = te[0], Q = te[1], de = te[2], me = te[3], ve = te[4], be = k.useMemo(function() {
|
|
23202
23132
|
return isFinite(v) ? v : 0;
|
|
23203
|
-
}, [v]),
|
|
23133
|
+
}, [v]), Me = k.useMemo(function() {
|
|
23204
23134
|
return isFinite(w) ? w : 100;
|
|
23205
23135
|
}, [w]), qe = k.useMemo(function() {
|
|
23206
23136
|
return b !== null && b <= 0 ? 1 : b;
|
|
@@ -23218,7 +23148,7 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23218
23148
|
}).sort(function(Qe, De) {
|
|
23219
23149
|
return Qe.value - De.value;
|
|
23220
23150
|
});
|
|
23221
|
-
}, [W]), Pt = kH(be,
|
|
23151
|
+
}, [W]), Pt = kH(be, Me, qe, lt, j, _e), mn = Ut(Pt, 2), Kt = mn[0], an = mn[1], Yt = sH(E, {
|
|
23222
23152
|
value: C
|
|
23223
23153
|
}), Ae = Ut(Yt, 2), ke = Ae[0], $e = Ae[1], Ke = k.useMemo(function() {
|
|
23224
23154
|
var Qe = ke == null ? [] : Array.isArray(ke) ? ke : [ke], De = Ut(Qe, 1), rt = De[0], dt = rt === void 0 ? be : rt, Nt = ke === null ? [] : [dt];
|
|
@@ -23255,9 +23185,9 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23255
23185
|
var dt = Math.max(0, De - 1);
|
|
23256
23186
|
ce.current.hideHelp(), ce.current.focus(dt);
|
|
23257
23187
|
}
|
|
23258
|
-
}, He = CH(ge, oe, Ke, be,
|
|
23188
|
+
}, He = CH(ge, oe, Ke, be, Me, Kt, At, st, an, Q, me), zi = Ut(He, 5), Yl = zi[0], Fd = zi[1], ra = zi[2], Wi = zi[3], Fg = zi[4], _g = function(De, rt) {
|
|
23259
23189
|
if (!u) {
|
|
23260
|
-
var dt = Nr(Ke), Nt = 0, Yr = 0, kr =
|
|
23190
|
+
var dt = Nr(Ke), Nt = 0, Yr = 0, kr = Me - be;
|
|
23261
23191
|
Ke.forEach(function(Jr, Jl) {
|
|
23262
23192
|
var Gg = Math.abs(De - Jr);
|
|
23263
23193
|
Gg <= kr && (kr = Gg, Nt = Jl), Jr < De && (Yr = Jl);
|
|
@@ -23287,7 +23217,7 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23287
23217
|
default:
|
|
23288
23218
|
Jr = (Ui - Yr) / dt;
|
|
23289
23219
|
}
|
|
23290
|
-
var Jl = be + Jr * (
|
|
23220
|
+
var Jl = be + Jr * (Me - be);
|
|
23291
23221
|
_g(Kt(Jl), De);
|
|
23292
23222
|
}, q7 = k.useState(null), Hg = Ut(q7, 2), _d = Hg[0], Bg = Hg[1], K7 = function(De, rt) {
|
|
23293
23223
|
if (!u) {
|
|
@@ -23336,7 +23266,7 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23336
23266
|
var X7 = k.useMemo(function() {
|
|
23337
23267
|
return {
|
|
23338
23268
|
min: be,
|
|
23339
|
-
max:
|
|
23269
|
+
max: Me,
|
|
23340
23270
|
direction: oe,
|
|
23341
23271
|
disabled: u,
|
|
23342
23272
|
keyboard: f,
|
|
@@ -23353,7 +23283,7 @@ var o9 = /* @__PURE__ */ k.forwardRef(function(t, e) {
|
|
|
23353
23283
|
styles: a || {},
|
|
23354
23284
|
classNames: s || {}
|
|
23355
23285
|
};
|
|
23356
|
-
}, [be,
|
|
23286
|
+
}, [be, Me, oe, u, f, qe, N, Ug, Zg, Y, X, se, pe, re, ue, a, s]);
|
|
23357
23287
|
return /* @__PURE__ */ k.createElement(Jo.Provider, {
|
|
23358
23288
|
value: X7
|
|
23359
23289
|
}, /* @__PURE__ */ k.createElement("div", {
|
|
@@ -23905,7 +23835,7 @@ u9.displayName = FH;
|
|
|
23905
23835
|
function d9(t) {
|
|
23906
23836
|
return t ? "checked" : "unchecked";
|
|
23907
23837
|
}
|
|
23908
|
-
var _H = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Cd = "RadioGroup", [HH,
|
|
23838
|
+
var _H = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Cd = "RadioGroup", [HH, hJ] = Gr(Cd, [
|
|
23909
23839
|
x4,
|
|
23910
23840
|
s9
|
|
23911
23841
|
]), f9 = x4(), p9 = s9(), [BH, $H] = HH(Cd), h9 = k.forwardRef(
|
|
@@ -26926,7 +26856,7 @@ function N9() {
|
|
|
26926
26856
|
}, [I, u, E]), ee = we(function(Y, Q) {
|
|
26927
26857
|
var de = [], me = [];
|
|
26928
26858
|
Y.forEach(function(ve) {
|
|
26929
|
-
var be = O9(ve, M),
|
|
26859
|
+
var be = O9(ve, M), Me = Hf(be, 2), qe = Me[0], _e = Me[1], lt = T9(ve, s, o), Pt = Hf(lt, 2), mn = Pt[0], Kt = Pt[1], an = O ? O(ve) : null;
|
|
26930
26860
|
if (qe && mn && !an)
|
|
26931
26861
|
de.push(ve);
|
|
26932
26862
|
else {
|
|
@@ -27004,11 +26934,11 @@ function N9() {
|
|
|
27004
26934
|
E && Q.stopPropagation();
|
|
27005
26935
|
}, oe = Ne(function() {
|
|
27006
26936
|
return function() {
|
|
27007
|
-
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, de = Q === void 0 ? "ref" : Q, me = Y.role, ve = Y.onKeyDown, be = Y.onFocus,
|
|
26937
|
+
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, de = Q === void 0 ? "ref" : Q, me = Y.role, ve = Y.onKeyDown, be = Y.onFocus, Me = Y.onBlur, qe = Y.onClick, _e = Y.onDragEnter, lt = Y.onDragOver, Pt = Y.onDragLeave, mn = Y.onDrop, Kt = ru(Y, $B);
|
|
27008
26938
|
return ft(ft(bh({
|
|
27009
26939
|
onKeyDown: ue(tr(ve, ae)),
|
|
27010
26940
|
onFocus: ue(tr(be, X)),
|
|
27011
|
-
onBlur: ue(tr(
|
|
26941
|
+
onBlur: ue(tr(Me, se)),
|
|
27012
26942
|
onClick: re(tr(qe, pe)),
|
|
27013
26943
|
onDragEnter: ce(tr(_e, J)),
|
|
27014
26944
|
onDragOver: ce(tr(lt, W)),
|
|
@@ -27023,7 +26953,7 @@ function N9() {
|
|
|
27023
26953
|
Y.stopPropagation();
|
|
27024
26954
|
}, []), te = Ne(function() {
|
|
27025
26955
|
return function() {
|
|
27026
|
-
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, de = Q === void 0 ? "ref" : Q, me = Y.onChange, ve = Y.onClick, be = ru(Y, zB),
|
|
26956
|
+
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = Y.refKey, de = Q === void 0 ? "ref" : Q, me = Y.onChange, ve = Y.onClick, be = ru(Y, zB), Me = bh({
|
|
27027
26957
|
accept: M,
|
|
27028
26958
|
multiple: a,
|
|
27029
26959
|
type: "file",
|
|
@@ -27043,7 +26973,7 @@ function N9() {
|
|
|
27043
26973
|
onClick: re(tr(ve, K)),
|
|
27044
26974
|
tabIndex: -1
|
|
27045
26975
|
}, de, j);
|
|
27046
|
-
return ft(ft({},
|
|
26976
|
+
return ft(ft({}, Me), be);
|
|
27047
26977
|
};
|
|
27048
26978
|
}, [j, n, a, ne, r]);
|
|
27049
26979
|
return ft(ft({}, F), {}, {
|
|
@@ -27331,8 +27261,8 @@ var j9 = k.createContext({}), F9 = k.forwardRef((t, e) => {
|
|
|
27331
27261
|
}
|
|
27332
27262
|
Q !== -1 && de !== -1 && Q !== de && R.current.setSelectionRange(Q, de, me);
|
|
27333
27263
|
}
|
|
27334
|
-
let ve = Q !== -1 ? Q : ce, be = de !== -1 ? de : ge,
|
|
27335
|
-
$(ve), H(be), V.current.prev = [ve, be,
|
|
27264
|
+
let ve = Q !== -1 ? Q : ce, be = de !== -1 ? de : ge, Me = me ?? oe;
|
|
27265
|
+
$(ve), H(be), V.current.prev = [ve, be, Me];
|
|
27336
27266
|
}
|
|
27337
27267
|
if (document.addEventListener("selectionchange", pe, { capture: !0 }), pe(), document.activeElement === X && P(!0), !document.getElementById("input-otp-style")) {
|
|
27338
27268
|
let ce = document.createElement("style");
|
|
@@ -27586,7 +27516,7 @@ var X1 = class {
|
|
|
27586
27516
|
}, jo = typeof window > "u" || "Deno" in globalThis;
|
|
27587
27517
|
function fl() {
|
|
27588
27518
|
}
|
|
27589
|
-
function
|
|
27519
|
+
function mJ(t, e) {
|
|
27590
27520
|
return typeof t == "function" ? t(e) : t;
|
|
27591
27521
|
}
|
|
27592
27522
|
function wh(t) {
|
|
@@ -27601,7 +27531,7 @@ function ks(t, e) {
|
|
|
27601
27531
|
function Wn(t, e) {
|
|
27602
27532
|
return typeof t == "function" ? t(e) : t;
|
|
27603
27533
|
}
|
|
27604
|
-
function
|
|
27534
|
+
function gJ(t, e) {
|
|
27605
27535
|
const {
|
|
27606
27536
|
type: n = "all",
|
|
27607
27537
|
exact: r,
|
|
@@ -27624,7 +27554,7 @@ function mJ(t, e) {
|
|
|
27624
27554
|
}
|
|
27625
27555
|
return !(typeof a == "boolean" && e.isStale() !== a || i && i !== e.state.fetchStatus || o && !o(e));
|
|
27626
27556
|
}
|
|
27627
|
-
function
|
|
27557
|
+
function vJ(t, e) {
|
|
27628
27558
|
const { exact: n, status: r, predicate: i, mutationKey: o } = t;
|
|
27629
27559
|
if (o) {
|
|
27630
27560
|
if (!e.options.mutationKey)
|
|
@@ -27708,11 +27638,11 @@ function Mh(t, e, n) {
|
|
|
27708
27638
|
}
|
|
27709
27639
|
return e;
|
|
27710
27640
|
}
|
|
27711
|
-
function
|
|
27641
|
+
function yJ(t, e, n = 0) {
|
|
27712
27642
|
const r = [...t, e];
|
|
27713
27643
|
return n && r.length > n ? r.slice(1) : r;
|
|
27714
27644
|
}
|
|
27715
|
-
function
|
|
27645
|
+
function bJ(t, e, n = 0) {
|
|
27716
27646
|
const r = [e, ...t];
|
|
27717
27647
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
27718
27648
|
}
|
|
@@ -27975,7 +27905,7 @@ var eg = P$(), go, Jb, R$ = (Jb = class {
|
|
|
27975
27905
|
clearGcTimeout() {
|
|
27976
27906
|
le(this, go) && (clearTimeout(le(this, go)), Re(this, go, void 0));
|
|
27977
27907
|
}
|
|
27978
|
-
}, go = new WeakMap(), Jb), As, vo, In, yo, Jt, El, bo, zn, Dr, Xb,
|
|
27908
|
+
}, go = new WeakMap(), Jb), As, vo, In, yo, Jt, El, bo, zn, Dr, Xb, xJ = (Xb = class extends R$ {
|
|
27979
27909
|
constructor(e) {
|
|
27980
27910
|
super();
|
|
27981
27911
|
Ge(this, zn);
|
|
@@ -28558,7 +28488,7 @@ var G9 = k.createContext(
|
|
|
28558
28488
|
if (!e)
|
|
28559
28489
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
28560
28490
|
return e;
|
|
28561
|
-
},
|
|
28491
|
+
}, wJ = ({
|
|
28562
28492
|
client: t,
|
|
28563
28493
|
children: e
|
|
28564
28494
|
}) => (k.useEffect(() => (t.mount(), () => {
|
|
@@ -33598,7 +33528,7 @@ class Md {
|
|
|
33598
33528
|
return Ie.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
33599
33529
|
}
|
|
33600
33530
|
}
|
|
33601
|
-
class
|
|
33531
|
+
class Ee extends Ve {
|
|
33602
33532
|
/**
|
|
33603
33533
|
Create a node selection. Does not verify the validity of its
|
|
33604
33534
|
argument.
|
|
@@ -33609,13 +33539,13 @@ class Me extends Ve {
|
|
|
33609
33539
|
}
|
|
33610
33540
|
map(e, n) {
|
|
33611
33541
|
let { deleted: r, pos: i } = n.mapResult(this.anchor), o = e.resolve(i);
|
|
33612
|
-
return r ? Ve.near(o) : new
|
|
33542
|
+
return r ? Ve.near(o) : new Ee(o);
|
|
33613
33543
|
}
|
|
33614
33544
|
content() {
|
|
33615
33545
|
return new ye(fe.from(this.node), 0, 0);
|
|
33616
33546
|
}
|
|
33617
33547
|
eq(e) {
|
|
33618
|
-
return e instanceof
|
|
33548
|
+
return e instanceof Ee && e.anchor == this.anchor;
|
|
33619
33549
|
}
|
|
33620
33550
|
toJSON() {
|
|
33621
33551
|
return { type: "node", anchor: this.anchor };
|
|
@@ -33629,13 +33559,13 @@ class Me extends Ve {
|
|
|
33629
33559
|
static fromJSON(e, n) {
|
|
33630
33560
|
if (typeof n.anchor != "number")
|
|
33631
33561
|
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
|
33632
|
-
return new
|
|
33562
|
+
return new Ee(e.resolve(n.anchor));
|
|
33633
33563
|
}
|
|
33634
33564
|
/**
|
|
33635
33565
|
Create a node selection from non-resolved positions.
|
|
33636
33566
|
*/
|
|
33637
33567
|
static create(e, n) {
|
|
33638
|
-
return new
|
|
33568
|
+
return new Ee(e.resolve(n));
|
|
33639
33569
|
}
|
|
33640
33570
|
/**
|
|
33641
33571
|
Determines whether the given node may be selected as a node
|
|
@@ -33645,8 +33575,8 @@ class Me extends Ve {
|
|
|
33645
33575
|
return !e.isText && e.type.spec.selectable !== !1;
|
|
33646
33576
|
}
|
|
33647
33577
|
}
|
|
33648
|
-
|
|
33649
|
-
Ve.jsonID("node",
|
|
33578
|
+
Ee.prototype.visible = !1;
|
|
33579
|
+
Ve.jsonID("node", Ee);
|
|
33650
33580
|
class og {
|
|
33651
33581
|
constructor(e) {
|
|
33652
33582
|
this.anchor = e;
|
|
@@ -33657,7 +33587,7 @@ class og {
|
|
|
33657
33587
|
}
|
|
33658
33588
|
resolve(e) {
|
|
33659
33589
|
let n = e.resolve(this.anchor), r = n.nodeAfter;
|
|
33660
|
-
return r &&
|
|
33590
|
+
return r && Ee.isSelectable(r) ? new Ee(n) : Ve.near(n);
|
|
33661
33591
|
}
|
|
33662
33592
|
}
|
|
33663
33593
|
class Mn extends Ve {
|
|
@@ -33709,8 +33639,8 @@ function ls(t, e, n, r, i, o = !1) {
|
|
|
33709
33639
|
for (let s = r - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
|
|
33710
33640
|
let a = e.child(s);
|
|
33711
33641
|
if (a.isAtom) {
|
|
33712
|
-
if (!o &&
|
|
33713
|
-
return
|
|
33642
|
+
if (!o && Ee.isSelectable(a))
|
|
33643
|
+
return Ee.create(t, n - (i < 0 ? a.nodeSize : 0));
|
|
33714
33644
|
} else {
|
|
33715
33645
|
let l = ls(t, a, n + i, i < 0 ? a.childCount : 0, i, o);
|
|
33716
33646
|
if (l)
|
|
@@ -35627,9 +35557,9 @@ function ag(t, e = null) {
|
|
|
35627
35557
|
for (l = s; i && !i.node; )
|
|
35628
35558
|
i = i.parent;
|
|
35629
35559
|
let d = i.node;
|
|
35630
|
-
if (i && d.isAtom &&
|
|
35560
|
+
if (i && d.isAtom && Ee.isSelectable(d) && i.parent && !(d.isInline && hW(n.focusNode, n.focusOffset, i.dom))) {
|
|
35631
35561
|
let f = i.posBefore;
|
|
35632
|
-
c = new
|
|
35562
|
+
c = new Ee(s == f ? a : r.resolve(f));
|
|
35633
35563
|
}
|
|
35634
35564
|
} else {
|
|
35635
35565
|
if (n instanceof t.dom.ownerDocument.defaultView.Selection && n.rangeCount > 1) {
|
|
@@ -35711,7 +35641,7 @@ function WW(t) {
|
|
|
35711
35641
|
i ? n.setStart(r.parentNode, Zt(r) + 1) : n.setStart(r, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !i && !t.state.selection.visible && bn && ki <= 11 && (r.disabled = !0, r.disabled = !1);
|
|
35712
35642
|
}
|
|
35713
35643
|
function zw(t, e) {
|
|
35714
|
-
if (e instanceof
|
|
35644
|
+
if (e instanceof Ee) {
|
|
35715
35645
|
let n = t.docView.descAt(e.from);
|
|
35716
35646
|
n != t.lastSelectedViewDesc && (rb(t), n && n.selectNode(), t.lastSelectedViewDesc = n);
|
|
35717
35647
|
} else
|
|
@@ -35759,17 +35689,17 @@ function ob(t, e, n) {
|
|
|
35759
35689
|
} else if (r.empty) {
|
|
35760
35690
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
35761
35691
|
let i = Kh(t.state, e);
|
|
35762
|
-
return i && i instanceof
|
|
35692
|
+
return i && i instanceof Ee ? ri(t, i) : !1;
|
|
35763
35693
|
} else if (!(Ln && n.indexOf("m") > -1)) {
|
|
35764
35694
|
let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
|
|
35765
35695
|
if (!o || o.isText)
|
|
35766
35696
|
return !1;
|
|
35767
35697
|
let a = e < 0 ? i.pos - o.nodeSize : i.pos;
|
|
35768
|
-
return o.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ?
|
|
35698
|
+
return o.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Ee.isSelectable(o) ? ri(t, new Ee(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : ql ? ri(t, new Ie(t.state.doc.resolve(e < 0 ? a : a + o.nodeSize))) : !1 : !1;
|
|
35769
35699
|
}
|
|
35770
35700
|
} else return !1;
|
|
35771
35701
|
else {
|
|
35772
|
-
if (r instanceof
|
|
35702
|
+
if (r instanceof Ee && r.node.isInline)
|
|
35773
35703
|
return ri(t, new Ie(e > 0 ? r.$to : r.$from));
|
|
35774
35704
|
{
|
|
35775
35705
|
let i = Kh(t.state, e);
|
|
@@ -35925,7 +35855,7 @@ function ab(t, e, n) {
|
|
|
35925
35855
|
let { $from: i, $to: o } = r;
|
|
35926
35856
|
if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
35927
35857
|
let s = Kh(t.state, e);
|
|
35928
|
-
if (s && s instanceof
|
|
35858
|
+
if (s && s instanceof Ee)
|
|
35929
35859
|
return ri(t, s);
|
|
35930
35860
|
}
|
|
35931
35861
|
if (!i.parent.inlineContent) {
|
|
@@ -36282,22 +36212,22 @@ function fU(t, e) {
|
|
|
36282
36212
|
if (e == -1)
|
|
36283
36213
|
return !1;
|
|
36284
36214
|
let n = t.state.doc.resolve(e), r = n.nodeAfter;
|
|
36285
|
-
return r && r.isAtom &&
|
|
36215
|
+
return r && r.isAtom && Ee.isSelectable(r) ? (Es(t, new Ee(n)), !0) : !1;
|
|
36286
36216
|
}
|
|
36287
36217
|
function pU(t, e) {
|
|
36288
36218
|
if (e == -1)
|
|
36289
36219
|
return !1;
|
|
36290
36220
|
let n = t.state.selection, r, i;
|
|
36291
|
-
n instanceof
|
|
36221
|
+
n instanceof Ee && (r = n.node);
|
|
36292
36222
|
let o = t.state.doc.resolve(e);
|
|
36293
36223
|
for (let s = o.depth + 1; s > 0; s--) {
|
|
36294
36224
|
let a = s > o.depth ? o.nodeAfter : o.node(s);
|
|
36295
|
-
if (
|
|
36225
|
+
if (Ee.isSelectable(a)) {
|
|
36296
36226
|
r && n.$from.depth > 0 && s >= n.$from.depth && o.before(n.$from.depth + 1) == n.$from.pos ? i = o.before(n.$from.depth) : i = o.before(s);
|
|
36297
36227
|
break;
|
|
36298
36228
|
}
|
|
36299
36229
|
}
|
|
36300
|
-
return i != null ? (Es(t,
|
|
36230
|
+
return i != null ? (Es(t, Ee.create(t.state.doc, i)), !0) : !1;
|
|
36301
36231
|
}
|
|
36302
36232
|
function hU(t, e, n, r, i) {
|
|
36303
36233
|
return dg(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (o) => o(t, e, r)) || (i ? pU(t, n) : fU(t, n));
|
|
@@ -36319,8 +36249,8 @@ function vU(t, e, n) {
|
|
|
36319
36249
|
let s = o > i.depth ? i.nodeAfter : i.node(o), a = i.before(o);
|
|
36320
36250
|
if (s.inlineContent)
|
|
36321
36251
|
Es(t, Ie.create(r, a + 1, a + 1 + s.content.size));
|
|
36322
|
-
else if (
|
|
36323
|
-
Es(t,
|
|
36252
|
+
else if (Ee.isSelectable(s))
|
|
36253
|
+
Es(t, Ee.create(r, a));
|
|
36324
36254
|
else
|
|
36325
36255
|
continue;
|
|
36326
36256
|
return !0;
|
|
@@ -36351,7 +36281,7 @@ class yU {
|
|
|
36351
36281
|
const a = i ? null : r.target, l = a ? e.docView.nearestDesc(a, !0) : null;
|
|
36352
36282
|
this.target = l && l.dom.nodeType == 1 ? l.dom : null;
|
|
36353
36283
|
let { selection: c } = e.state;
|
|
36354
|
-
(r.button == 0 && o.type.spec.draggable && o.type.spec.selectable !== !1 || c instanceof
|
|
36284
|
+
(r.button == 0 && o.type.spec.draggable && o.type.spec.selectable !== !1 || c instanceof Ee && c.from <= s && c.to > s) && (this.mightDrag = {
|
|
36355
36285
|
node: o,
|
|
36356
36286
|
pos: s,
|
|
36357
36287
|
addAttr: !!(this.target && !this.target.draggable),
|
|
@@ -36530,12 +36460,12 @@ pn.dragstart = (t, e) => {
|
|
|
36530
36460
|
if (r && r.done(), !n.dataTransfer)
|
|
36531
36461
|
return;
|
|
36532
36462
|
let i = t.state.selection, o = i.empty ? null : t.posAtCoords(Ad(n)), s;
|
|
36533
|
-
if (!(o && o.pos >= i.from && o.pos <= (i instanceof
|
|
36463
|
+
if (!(o && o.pos >= i.from && o.pos <= (i instanceof Ee ? i.to - 1 : i.to))) {
|
|
36534
36464
|
if (r && r.mightDrag)
|
|
36535
|
-
s =
|
|
36465
|
+
s = Ee.create(t.state.doc, r.mightDrag.pos);
|
|
36536
36466
|
else if (n.target && n.target.nodeType == 1) {
|
|
36537
36467
|
let d = t.docView.nearestDesc(n.target, !0);
|
|
36538
|
-
d && d.node.type.spec.draggable && d != t.docView && (s =
|
|
36468
|
+
d && d.node.type.spec.draggable && d != t.docView && (s = Ee.create(t.state.doc, d.posBefore));
|
|
36539
36469
|
}
|
|
36540
36470
|
}
|
|
36541
36471
|
let a = (s || t.state.selection).content(), { dom: l, text: c, slice: u } = cg(t, a);
|
|
@@ -36578,8 +36508,8 @@ hn.drop = (t, e) => {
|
|
|
36578
36508
|
if (d ? c.replaceRangeWith(u, u, s.content.firstChild) : c.replaceRange(u, u, s), c.doc.eq(f))
|
|
36579
36509
|
return;
|
|
36580
36510
|
let p = c.doc.resolve(u);
|
|
36581
|
-
if (d &&
|
|
36582
|
-
c.setSelection(new
|
|
36511
|
+
if (d && Ee.isSelectable(s.content.firstChild) && p.nodeAfter && p.nodeAfter.sameMarkup(s.content.firstChild))
|
|
36512
|
+
c.setSelection(new Ee(p));
|
|
36583
36513
|
else {
|
|
36584
36514
|
let m = c.mapping.map(l);
|
|
36585
36515
|
c.mapping.maps[c.mapping.maps.length - 1].forEach((h, g, v, y) => m = y), c.setSelection(lg(t, p, c.doc.resolve(m)));
|
|
@@ -37597,7 +37527,7 @@ class l7 {
|
|
|
37597
37527
|
scrollToSelection() {
|
|
37598
37528
|
let e = this.domSelectionRange().focusNode;
|
|
37599
37529
|
if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
|
|
37600
|
-
if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof
|
|
37530
|
+
if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof Ee) {
|
|
37601
37531
|
let n = this.docView.domAfterPos(this.state.selection.from);
|
|
37602
37532
|
n.nodeType == 1 && Z2(this, n.getBoundingClientRect(), e);
|
|
37603
37533
|
} else
|
|
@@ -37634,7 +37564,7 @@ class l7 {
|
|
|
37634
37564
|
let o = r.from + (this.state.doc.content.size - n.doc.content.size);
|
|
37635
37565
|
(o > 0 && this.state.doc.nodeAt(o)) == r.node && (i = o);
|
|
37636
37566
|
}
|
|
37637
|
-
this.dragging = new r7(e.slice, e.move, i < 0 ? void 0 :
|
|
37567
|
+
this.dragging = new r7(e.slice, e.move, i < 0 ? void 0 : Ee.create(this.state.doc, i));
|
|
37638
37568
|
}
|
|
37639
37569
|
someProp(e, n) {
|
|
37640
37570
|
let r = this._props && this._props[e], i;
|
|
@@ -38047,13 +37977,13 @@ const d7 = (t, e, n) => {
|
|
|
38047
37977
|
let o = i.nodeBefore;
|
|
38048
37978
|
if (x7(t, i, e, -1))
|
|
38049
37979
|
return !0;
|
|
38050
|
-
if (r.parent.content.size == 0 && (Us(o, "end") ||
|
|
37980
|
+
if (r.parent.content.size == 0 && (Us(o, "end") || Ee.isSelectable(o)))
|
|
38051
37981
|
for (let s = r.depth; ; s--) {
|
|
38052
37982
|
let a = Ed(t.doc, r.before(s), r.after(s), ye.empty);
|
|
38053
37983
|
if (a && a.slice.size < a.to - a.from) {
|
|
38054
37984
|
if (e) {
|
|
38055
37985
|
let l = t.tr.step(a);
|
|
38056
|
-
l.setSelection(Us(o, "end") ? Ve.findFrom(l.doc.resolve(l.mapping.map(i.pos, -1)), -1) :
|
|
37986
|
+
l.setSelection(Us(o, "end") ? Ve.findFrom(l.doc.resolve(l.mapping.map(i.pos, -1)), -1) : Ee.create(l.doc, i.pos - o.nodeSize)), e(l.scrollIntoView());
|
|
38057
37987
|
}
|
|
38058
37988
|
return !0;
|
|
38059
37989
|
}
|
|
@@ -38121,7 +38051,7 @@ const p7 = (t, e, n) => {
|
|
|
38121
38051
|
o = gg(r);
|
|
38122
38052
|
}
|
|
38123
38053
|
let s = o && o.nodeBefore;
|
|
38124
|
-
return !s || !
|
|
38054
|
+
return !s || !Ee.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(Ee.create(t.doc, o.pos - s.nodeSize)).scrollIntoView()), !0);
|
|
38125
38055
|
};
|
|
38126
38056
|
function gg(t) {
|
|
38127
38057
|
if (!t.parent.type.spec.isolating)
|
|
@@ -38147,12 +38077,12 @@ const m7 = (t, e, n) => {
|
|
|
38147
38077
|
let o = i.nodeAfter;
|
|
38148
38078
|
if (x7(t, i, e, 1))
|
|
38149
38079
|
return !0;
|
|
38150
|
-
if (r.parent.content.size == 0 && (Us(o, "start") ||
|
|
38080
|
+
if (r.parent.content.size == 0 && (Us(o, "start") || Ee.isSelectable(o))) {
|
|
38151
38081
|
let s = Ed(t.doc, r.before(), r.after(), ye.empty);
|
|
38152
38082
|
if (s && s.slice.size < s.to - s.from) {
|
|
38153
38083
|
if (e) {
|
|
38154
38084
|
let a = t.tr.step(s);
|
|
38155
|
-
a.setSelection(Us(o, "start") ? Ve.findFrom(a.doc.resolve(a.mapping.map(i.pos)), 1) :
|
|
38085
|
+
a.setSelection(Us(o, "start") ? Ve.findFrom(a.doc.resolve(a.mapping.map(i.pos)), 1) : Ee.create(a.doc, a.mapping.map(i.pos))), e(a.scrollIntoView());
|
|
38156
38086
|
}
|
|
38157
38087
|
return !0;
|
|
38158
38088
|
}
|
|
@@ -38168,7 +38098,7 @@ const m7 = (t, e, n) => {
|
|
|
38168
38098
|
o = vg(r);
|
|
38169
38099
|
}
|
|
38170
38100
|
let s = o && o.nodeAfter;
|
|
38171
|
-
return !s || !
|
|
38101
|
+
return !s || !Ee.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(Ee.create(t.doc, o.pos)).scrollIntoView()), !0);
|
|
38172
38102
|
};
|
|
38173
38103
|
function vg(t) {
|
|
38174
38104
|
if (!t.parent.type.spec.isolating)
|
|
@@ -38182,7 +38112,7 @@ function vg(t) {
|
|
|
38182
38112
|
return null;
|
|
38183
38113
|
}
|
|
38184
38114
|
const eZ = (t, e) => {
|
|
38185
|
-
let n = t.selection, r = n instanceof
|
|
38115
|
+
let n = t.selection, r = n instanceof Ee, i;
|
|
38186
38116
|
if (r) {
|
|
38187
38117
|
if (n.node.isTextblock || !Hi(t.doc, n.from))
|
|
38188
38118
|
return !1;
|
|
@@ -38191,12 +38121,12 @@ const eZ = (t, e) => {
|
|
|
38191
38121
|
return !1;
|
|
38192
38122
|
if (e) {
|
|
38193
38123
|
let o = t.tr.join(i);
|
|
38194
|
-
r && o.setSelection(
|
|
38124
|
+
r && o.setSelection(Ee.create(o.doc, i - t.doc.resolve(i).nodeBefore.nodeSize)), e(o.scrollIntoView());
|
|
38195
38125
|
}
|
|
38196
38126
|
return !0;
|
|
38197
38127
|
}, tZ = (t, e) => {
|
|
38198
38128
|
let n = t.selection, r;
|
|
38199
|
-
if (n instanceof
|
|
38129
|
+
if (n instanceof Ee) {
|
|
38200
38130
|
if (n.node.isTextblock || !Hi(t.doc, n.to))
|
|
38201
38131
|
return !1;
|
|
38202
38132
|
r = n.to;
|
|
@@ -38258,7 +38188,7 @@ const rZ = (t, e) => {
|
|
|
38258
38188
|
function iZ(t) {
|
|
38259
38189
|
return (e, n) => {
|
|
38260
38190
|
let { $from: r, $to: i } = e.selection;
|
|
38261
|
-
if (e.selection instanceof
|
|
38191
|
+
if (e.selection instanceof Ee && e.selection.node.isBlock)
|
|
38262
38192
|
return !r.parentOffset || !_r(e.doc, r.pos) ? !1 : (n && n(e.tr.split(r.pos).scrollIntoView()), !0);
|
|
38263
38193
|
if (!r.depth)
|
|
38264
38194
|
return !1;
|
|
@@ -38286,7 +38216,7 @@ function iZ(t) {
|
|
|
38286
38216
|
}
|
|
38287
38217
|
const oZ = iZ(), sZ = (t, e) => {
|
|
38288
38218
|
let { $from: n, to: r } = t.selection, i, o = n.sharedDepth(r);
|
|
38289
|
-
return o == 0 ? !1 : (i = n.before(o), e && e(t.tr.setSelection(
|
|
38219
|
+
return o == 0 ? !1 : (i = n.before(o), e && e(t.tr.setSelection(Ee.create(t.doc, i))), !0);
|
|
38290
38220
|
};
|
|
38291
38221
|
function aZ(t, e, n) {
|
|
38292
38222
|
let r = e.nodeBefore, i = e.nodeAfter, o = e.index();
|
|
@@ -40020,7 +39950,7 @@ function Mg(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
|
40020
39950
|
return !1;
|
|
40021
39951
|
}
|
|
40022
39952
|
function IG(t) {
|
|
40023
|
-
return t instanceof
|
|
39953
|
+
return t instanceof Ee;
|
|
40024
39954
|
}
|
|
40025
39955
|
function LG(t, e, n) {
|
|
40026
39956
|
var r;
|
|
@@ -40073,7 +40003,7 @@ const VG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
40073
40003
|
return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: a }) => kb(o, { ...s, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => kb(o, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
40074
40004
|
}, _G = (t) => ({ tr: e, dispatch: n }) => {
|
|
40075
40005
|
if (n) {
|
|
40076
|
-
const { doc: r } = e, i = po(t, 0, r.content.size), o =
|
|
40006
|
+
const { doc: r } = e, i = po(t, 0, r.content.size), o = Ee.create(r, i);
|
|
40077
40007
|
e.setSelection(o);
|
|
40078
40008
|
}
|
|
40079
40009
|
return !0;
|
|
@@ -40096,7 +40026,7 @@ function Db(t, e) {
|
|
|
40096
40026
|
}
|
|
40097
40027
|
const $G = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
|
|
40098
40028
|
const { selection: o, doc: s } = e, { $from: a, $to: l } = o, c = i.extensionManager.attributes, u = Nc(c, a.node().type.name, a.node().attrs);
|
|
40099
|
-
if (o instanceof
|
|
40029
|
+
if (o instanceof Ee && o.node.isBlock)
|
|
40100
40030
|
return !a.parentOffset || !_r(s, a.pos) ? !1 : (r && (t && Db(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
40101
40031
|
if (!a.parent.isBlock)
|
|
40102
40032
|
return !1;
|
|
@@ -40599,7 +40529,10 @@ class io {
|
|
|
40599
40529
|
get children() {
|
|
40600
40530
|
const e = [];
|
|
40601
40531
|
return this.node.content.forEach((n, r) => {
|
|
40602
|
-
const i = n.isBlock && !n.isTextblock, o = n.isAtom && !n.isText, s = this.pos + r + (o ? 0 : 1)
|
|
40532
|
+
const i = n.isBlock && !n.isTextblock, o = n.isAtom && !n.isText, s = this.pos + r + (o ? 0 : 1);
|
|
40533
|
+
if (s < 0 || s > this.resolvedPos.doc.nodeSize - 2)
|
|
40534
|
+
return;
|
|
40535
|
+
const a = this.resolvedPos.doc.resolve(s);
|
|
40603
40536
|
if (!i && a.depth <= this.depth)
|
|
40604
40537
|
return;
|
|
40605
40538
|
const l = new io(a, this.editor, i, i ? n : null);
|
|
@@ -41206,7 +41139,22 @@ function $o(t) {
|
|
|
41206
41139
|
}
|
|
41207
41140
|
});
|
|
41208
41141
|
}
|
|
41209
|
-
|
|
41142
|
+
function pq(t, e) {
|
|
41143
|
+
const { selection: n } = t, { $from: r } = n;
|
|
41144
|
+
if (n instanceof Ee) {
|
|
41145
|
+
const o = r.index();
|
|
41146
|
+
return r.parent.canReplaceWith(o, o + 1, e);
|
|
41147
|
+
}
|
|
41148
|
+
let i = r.depth;
|
|
41149
|
+
for (; i >= 0; ) {
|
|
41150
|
+
const o = r.index(i);
|
|
41151
|
+
if (r.node(i).contentMatchAt(o).matchType(e))
|
|
41152
|
+
return !0;
|
|
41153
|
+
i -= 1;
|
|
41154
|
+
}
|
|
41155
|
+
return !1;
|
|
41156
|
+
}
|
|
41157
|
+
const hq = qt.create({
|
|
41210
41158
|
name: "characterCount",
|
|
41211
41159
|
addOptions() {
|
|
41212
41160
|
return {
|
|
@@ -41273,7 +41221,7 @@ const pq = qt.create({
|
|
|
41273
41221
|
];
|
|
41274
41222
|
}
|
|
41275
41223
|
});
|
|
41276
|
-
function
|
|
41224
|
+
function mq(t) {
|
|
41277
41225
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
41278
41226
|
}
|
|
41279
41227
|
var im = { exports: {} }, sp = {};
|
|
@@ -41287,7 +41235,7 @@ var im = { exports: {} }, sp = {};
|
|
|
41287
41235
|
* LICENSE file in the root directory of this source tree.
|
|
41288
41236
|
*/
|
|
41289
41237
|
var Pb;
|
|
41290
|
-
function
|
|
41238
|
+
function gq() {
|
|
41291
41239
|
if (Pb) return sp;
|
|
41292
41240
|
Pb = 1;
|
|
41293
41241
|
var t = ie;
|
|
@@ -41332,7 +41280,7 @@ var ap = {};
|
|
|
41332
41280
|
* LICENSE file in the root directory of this source tree.
|
|
41333
41281
|
*/
|
|
41334
41282
|
var Rb;
|
|
41335
|
-
function
|
|
41283
|
+
function vq() {
|
|
41336
41284
|
return Rb || (Rb = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41337
41285
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
41338
41286
|
var t = ie, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -41402,17 +41350,17 @@ function gq() {
|
|
|
41402
41350
|
ap.useSyncExternalStore = y, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
41403
41351
|
}()), ap;
|
|
41404
41352
|
}
|
|
41405
|
-
process.env.NODE_ENV === "production" ? im.exports =
|
|
41353
|
+
process.env.NODE_ENV === "production" ? im.exports = gq() : im.exports = vq();
|
|
41406
41354
|
var Vd = im.exports;
|
|
41407
|
-
const
|
|
41355
|
+
const yq = (...t) => (e) => {
|
|
41408
41356
|
t.forEach((n) => {
|
|
41409
41357
|
typeof n == "function" ? n(e) : n && (n.current = e);
|
|
41410
41358
|
});
|
|
41411
|
-
},
|
|
41359
|
+
}, bq = ({ contentComponent: t }) => {
|
|
41412
41360
|
const e = Vd.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
|
|
41413
41361
|
return ie.createElement(ie.Fragment, null, Object.values(e));
|
|
41414
41362
|
};
|
|
41415
|
-
function
|
|
41363
|
+
function xq() {
|
|
41416
41364
|
const t = /* @__PURE__ */ new Set();
|
|
41417
41365
|
let e = {};
|
|
41418
41366
|
return {
|
|
@@ -41448,7 +41396,7 @@ function bq() {
|
|
|
41448
41396
|
}
|
|
41449
41397
|
};
|
|
41450
41398
|
}
|
|
41451
|
-
class
|
|
41399
|
+
class wq extends ie.Component {
|
|
41452
41400
|
constructor(e) {
|
|
41453
41401
|
var n;
|
|
41454
41402
|
super(e), this.editorContentRef = ie.createRef(), this.initialized = !1, this.state = {
|
|
@@ -41469,7 +41417,7 @@ class xq extends ie.Component {
|
|
|
41469
41417
|
const n = this.editorContentRef.current;
|
|
41470
41418
|
n.append(...e.options.element.childNodes), e.setOptions({
|
|
41471
41419
|
element: n
|
|
41472
|
-
}), e.contentComponent =
|
|
41420
|
+
}), e.contentComponent = xq(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = e.contentComponent.subscribe(() => {
|
|
41473
41421
|
this.setState((r) => r.hasContentComponentInitialized ? r : {
|
|
41474
41422
|
hasContentComponentInitialized: !0
|
|
41475
41423
|
}), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
|
|
@@ -41492,20 +41440,20 @@ class xq extends ie.Component {
|
|
|
41492
41440
|
return ie.createElement(
|
|
41493
41441
|
ie.Fragment,
|
|
41494
41442
|
null,
|
|
41495
|
-
ie.createElement("div", { ref:
|
|
41496
|
-
(e == null ? void 0 : e.contentComponent) && ie.createElement(
|
|
41443
|
+
ie.createElement("div", { ref: yq(n, this.editorContentRef), ...r }),
|
|
41444
|
+
(e == null ? void 0 : e.contentComponent) && ie.createElement(bq, { contentComponent: e.contentComponent })
|
|
41497
41445
|
);
|
|
41498
41446
|
}
|
|
41499
41447
|
}
|
|
41500
|
-
const
|
|
41448
|
+
const Cq = nt((t, e) => {
|
|
41501
41449
|
const n = ie.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [t.editor]);
|
|
41502
|
-
return ie.createElement(
|
|
41450
|
+
return ie.createElement(wq, {
|
|
41503
41451
|
key: n,
|
|
41504
41452
|
innerRef: e,
|
|
41505
41453
|
...t
|
|
41506
41454
|
});
|
|
41507
|
-
}),
|
|
41508
|
-
var
|
|
41455
|
+
}), kq = ie.memo(Cq);
|
|
41456
|
+
var Sq = function t(e, n) {
|
|
41509
41457
|
if (e === n) return !0;
|
|
41510
41458
|
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
41511
41459
|
if (e.constructor !== n.constructor) return !1;
|
|
@@ -41550,7 +41498,7 @@ var kq = function t(e, n) {
|
|
|
41550
41498
|
return !0;
|
|
41551
41499
|
}
|
|
41552
41500
|
return e !== e && n !== n;
|
|
41553
|
-
},
|
|
41501
|
+
}, Eq = /* @__PURE__ */ mq(Sq), om = { exports: {} }, lp = {};
|
|
41554
41502
|
/**
|
|
41555
41503
|
* @license React
|
|
41556
41504
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -41561,7 +41509,7 @@ var kq = function t(e, n) {
|
|
|
41561
41509
|
* LICENSE file in the root directory of this source tree.
|
|
41562
41510
|
*/
|
|
41563
41511
|
var Nb;
|
|
41564
|
-
function
|
|
41512
|
+
function Mq() {
|
|
41565
41513
|
if (Nb) return lp;
|
|
41566
41514
|
Nb = 1;
|
|
41567
41515
|
var t = ie, e = Vd;
|
|
@@ -41612,7 +41560,7 @@ var cp = {};
|
|
|
41612
41560
|
* LICENSE file in the root directory of this source tree.
|
|
41613
41561
|
*/
|
|
41614
41562
|
var Ib;
|
|
41615
|
-
function
|
|
41563
|
+
function Oq() {
|
|
41616
41564
|
return Ib || (Ib = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41617
41565
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
41618
41566
|
var t = ie, e = Vd;
|
|
@@ -41657,10 +41605,10 @@ function Mq() {
|
|
|
41657
41605
|
cp.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
41658
41606
|
}()), cp;
|
|
41659
41607
|
}
|
|
41660
|
-
process.env.NODE_ENV === "production" ? om.exports =
|
|
41661
|
-
var
|
|
41662
|
-
const
|
|
41663
|
-
class
|
|
41608
|
+
process.env.NODE_ENV === "production" ? om.exports = Mq() : om.exports = Oq();
|
|
41609
|
+
var Tq = om.exports;
|
|
41610
|
+
const Aq = typeof window < "u" ? Ni : Pe;
|
|
41611
|
+
class Dq {
|
|
41664
41612
|
constructor(e) {
|
|
41665
41613
|
this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = e, this.lastSnapshot = { editor: e, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
|
|
41666
41614
|
}
|
|
@@ -41698,12 +41646,12 @@ class Aq {
|
|
|
41698
41646
|
}
|
|
41699
41647
|
}
|
|
41700
41648
|
}
|
|
41701
|
-
function
|
|
41649
|
+
function Pq(t) {
|
|
41702
41650
|
var e;
|
|
41703
|
-
const [n] = Te(() => new
|
|
41704
|
-
return
|
|
41651
|
+
const [n] = Te(() => new Dq(t.editor)), r = Tq.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : Eq);
|
|
41652
|
+
return Aq(() => n.watch(t.editor), [t.editor, n]), o3(r), r;
|
|
41705
41653
|
}
|
|
41706
|
-
const Lb = process.env.NODE_ENV !== "production", sm = typeof window > "u",
|
|
41654
|
+
const Lb = process.env.NODE_ENV !== "production", sm = typeof window > "u", Rq = sm || !!(typeof window < "u" && window.next);
|
|
41707
41655
|
class Og {
|
|
41708
41656
|
constructor(e) {
|
|
41709
41657
|
this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
|
|
@@ -41713,7 +41661,7 @@ class Og {
|
|
|
41713
41661
|
}
|
|
41714
41662
|
getInitialEditor() {
|
|
41715
41663
|
if (this.options.current.immediatelyRender === void 0)
|
|
41716
|
-
return sm ||
|
|
41664
|
+
return sm || Rq ? (Lb && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
|
|
41717
41665
|
if (this.options.current.immediatelyRender && sm && Lb)
|
|
41718
41666
|
throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
|
|
41719
41667
|
return this.options.current.immediatelyRender ? this.createEditor() : null;
|
|
@@ -41841,24 +41789,24 @@ class Og {
|
|
|
41841
41789
|
}, 1);
|
|
41842
41790
|
}
|
|
41843
41791
|
}
|
|
41844
|
-
function
|
|
41792
|
+
function Nq(t = {}, e = []) {
|
|
41845
41793
|
const n = xe(t);
|
|
41846
41794
|
n.current = t;
|
|
41847
41795
|
const [r] = Te(() => new Og(n)), i = Vd.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
41848
|
-
return o3(i), Pe(r.onRender(e)),
|
|
41796
|
+
return o3(i), Pe(r.onRender(e)), Pq({
|
|
41849
41797
|
editor: i,
|
|
41850
41798
|
selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
|
|
41851
41799
|
}), i;
|
|
41852
41800
|
}
|
|
41853
|
-
const
|
|
41801
|
+
const Iq = vt({
|
|
41854
41802
|
editor: null
|
|
41855
41803
|
});
|
|
41856
|
-
|
|
41857
|
-
const
|
|
41804
|
+
Iq.Consumer;
|
|
41805
|
+
const Lq = vt({
|
|
41858
41806
|
onDragStart: void 0
|
|
41859
|
-
}),
|
|
41807
|
+
}), Vq = () => Be(Lq);
|
|
41860
41808
|
ie.forwardRef((t, e) => {
|
|
41861
|
-
const { onDragStart: n } =
|
|
41809
|
+
const { onDragStart: n } = Vq(), r = t.as || "div";
|
|
41862
41810
|
return (
|
|
41863
41811
|
// @ts-ignore
|
|
41864
41812
|
ie.createElement(r, { ...t, ref: e, "data-node-view-wrapper": "", onDragStart: n, style: {
|
|
@@ -41867,7 +41815,7 @@ ie.forwardRef((t, e) => {
|
|
|
41867
41815
|
} })
|
|
41868
41816
|
);
|
|
41869
41817
|
});
|
|
41870
|
-
const
|
|
41818
|
+
const jq = (t) => {
|
|
41871
41819
|
if (!t.children.length)
|
|
41872
41820
|
return;
|
|
41873
41821
|
const e = t.querySelectorAll("span");
|
|
@@ -41876,7 +41824,7 @@ const Vq = (t) => {
|
|
|
41876
41824
|
const o = n.getAttribute("style"), s = (i = (r = n.parentElement) === null || r === void 0 ? void 0 : r.closest("span")) === null || i === void 0 ? void 0 : i.getAttribute("style");
|
|
41877
41825
|
n.setAttribute("style", `${s};${o}`);
|
|
41878
41826
|
});
|
|
41879
|
-
},
|
|
41827
|
+
}, Fq = Jn.create({
|
|
41880
41828
|
name: "textStyle",
|
|
41881
41829
|
priority: 101,
|
|
41882
41830
|
addOptions() {
|
|
@@ -41889,7 +41837,7 @@ const Vq = (t) => {
|
|
|
41889
41837
|
return [
|
|
41890
41838
|
{
|
|
41891
41839
|
tag: "span",
|
|
41892
|
-
getAttrs: (t) => t.hasAttribute("style") ? (this.options.mergeNestedSpanStyles &&
|
|
41840
|
+
getAttrs: (t) => t.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && jq(t), {}) : !1
|
|
41893
41841
|
}
|
|
41894
41842
|
];
|
|
41895
41843
|
},
|
|
@@ -41908,7 +41856,7 @@ const Vq = (t) => {
|
|
|
41908
41856
|
}
|
|
41909
41857
|
};
|
|
41910
41858
|
}
|
|
41911
|
-
}),
|
|
41859
|
+
}), _q = qt.create({
|
|
41912
41860
|
name: "color",
|
|
41913
41861
|
addOptions() {
|
|
41914
41862
|
return {
|
|
@@ -41989,22 +41937,22 @@ const Vq = (t) => {
|
|
|
41989
41937
|
}
|
|
41990
41938
|
}));
|
|
41991
41939
|
}
|
|
41992
|
-
}),
|
|
41940
|
+
}), Hq = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Bq = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Gs = (t, e) => {
|
|
41993
41941
|
for (const n in e)
|
|
41994
41942
|
t[n] = e[n];
|
|
41995
41943
|
return t;
|
|
41996
|
-
}, am = "numeric", lm = "ascii", cm = "alpha", Ha = "asciinumeric", Sa = "alphanumeric", um = "domain", I7 = "emoji",
|
|
41997
|
-
function
|
|
41944
|
+
}, am = "numeric", lm = "ascii", cm = "alpha", Ha = "asciinumeric", Sa = "alphanumeric", um = "domain", I7 = "emoji", $q = "scheme", zq = "slashscheme", up = "whitespace";
|
|
41945
|
+
function Wq(t, e) {
|
|
41998
41946
|
return t in e || (e[t] = []), e[t];
|
|
41999
41947
|
}
|
|
42000
41948
|
function ho(t, e, n) {
|
|
42001
41949
|
e[am] && (e[Ha] = !0, e[Sa] = !0), e[lm] && (e[Ha] = !0, e[cm] = !0), e[Ha] && (e[Sa] = !0), e[cm] && (e[Sa] = !0), e[Sa] && (e[um] = !0), e[I7] && (e[um] = !0);
|
|
42002
41950
|
for (const r in e) {
|
|
42003
|
-
const i =
|
|
41951
|
+
const i = Wq(r, n);
|
|
42004
41952
|
i.indexOf(t) < 0 && i.push(t);
|
|
42005
41953
|
}
|
|
42006
41954
|
}
|
|
42007
|
-
function
|
|
41955
|
+
function Uq(t, e) {
|
|
42008
41956
|
const n = {};
|
|
42009
41957
|
for (const r in e)
|
|
42010
41958
|
e[r].indexOf(t) >= 0 && (n[r] = !0);
|
|
@@ -42126,7 +42074,7 @@ vn.prototype = {
|
|
|
42126
42074
|
if (a ? (s = new vn(), Gs(s.j, a.j), s.jr.push.apply(s.jr, a.jr), s.jd = a.jd, s.t = a.t) : s = new vn(), o) {
|
|
42127
42075
|
if (r)
|
|
42128
42076
|
if (s.t && typeof s.t == "string") {
|
|
42129
|
-
const l = Gs(
|
|
42077
|
+
const l = Gs(Uq(s.t, r), n);
|
|
42130
42078
|
ho(o, l, r);
|
|
42131
42079
|
} else n && ho(o, n, r);
|
|
42132
42080
|
s.t = o;
|
|
@@ -42194,13 +42142,13 @@ var _7 = /* @__PURE__ */ Object.freeze({
|
|
|
42194
42142
|
WS: hm
|
|
42195
42143
|
});
|
|
42196
42144
|
const Tr = /[a-z]/, fa = new RegExp("\\p{L}", "u"), dp = new RegExp("\\p{Emoji}", "u"), Ar = /\d/, fp = /\s/, jb = "\r", pp = `
|
|
42197
|
-
`,
|
|
42145
|
+
`, Zq = "️", Gq = "", hp = "";
|
|
42198
42146
|
let bc = null, xc = null;
|
|
42199
|
-
function
|
|
42147
|
+
function qq(t = []) {
|
|
42200
42148
|
const e = {};
|
|
42201
42149
|
vn.groups = e;
|
|
42202
42150
|
const n = new vn();
|
|
42203
|
-
bc == null && (bc = Fb(
|
|
42151
|
+
bc == null && (bc = Fb(Hq)), xc == null && (xc = Fb(Bq)), he(n, "'", Ru), he(n, "{", Ba), he(n, "}", $a), he(n, "[", vu), he(n, "]", yu), he(n, "(", bu), he(n, ")", xu), he(n, "<", wu), he(n, ">", Cu), he(n, "(", ku), he(n, ")", Su), he(n, "「", Eu), he(n, "」", Mu), he(n, "『", Ou), he(n, "』", Tu), he(n, "<", Au), he(n, ">", Du), he(n, "&", Pu), he(n, "*", Nu), he(n, "@", ii), he(n, "`", Lu), he(n, "^", Vu), he(n, ":", ci), he(n, ",", Dg), he(n, "$", ju), he(n, ".", ir), he(n, "=", Fu), he(n, "!", Pg), he(n, "-", Nn), he(n, "%", za), he(n, "|", _u), he(n, "+", Hu), he(n, "#", Bu), he(n, "?", Wa), he(n, '"', Rg), he(n, "/", or), he(n, ";", Ng), he(n, "~", Ua), he(n, "_", $u), he(n, "\\", Iu), he(n, "・", j7);
|
|
42204
42152
|
const r = yt(n, Ar, Tg, {
|
|
42205
42153
|
[am]: !0
|
|
42206
42154
|
});
|
|
@@ -42228,8 +42176,8 @@ function Gq(t = []) {
|
|
|
42228
42176
|
const d = yt(n, dp, F7, {
|
|
42229
42177
|
[I7]: !0
|
|
42230
42178
|
});
|
|
42231
|
-
he(d, "#"), yt(d, dp, d), he(d,
|
|
42232
|
-
const f = he(d,
|
|
42179
|
+
he(d, "#"), yt(d, dp, d), he(d, Zq, d);
|
|
42180
|
+
const f = he(d, Gq);
|
|
42233
42181
|
he(f, "#"), yt(f, dp, d);
|
|
42234
42182
|
const p = [[Tr, s], [Ar, i]], m = [[Tr, null], [fa, a], [Ar, o]];
|
|
42235
42183
|
for (let h = 0; h < bc.length; h++)
|
|
@@ -42251,9 +42199,9 @@ function Gq(t = []) {
|
|
|
42251
42199
|
}, e), t = t.sort((h, g) => h[0] > g[0] ? 1 : -1);
|
|
42252
42200
|
for (let h = 0; h < t.length; h++) {
|
|
42253
42201
|
const g = t[h][0], y = t[h][1] ? {
|
|
42254
|
-
[Bq]: !0
|
|
42255
|
-
} : {
|
|
42256
42202
|
[$q]: !0
|
|
42203
|
+
} : {
|
|
42204
|
+
[zq]: !0
|
|
42257
42205
|
};
|
|
42258
42206
|
g.indexOf("-") >= 0 ? y[um] = !0 : Tr.test(g) ? Ar.test(g) ? y[Ha] = !0 : y[lm] = !0 : y[am] = !0, Vb(n, g, g, y);
|
|
42259
42207
|
}
|
|
@@ -42267,7 +42215,7 @@ function Gq(t = []) {
|
|
|
42267
42215
|
};
|
|
42268
42216
|
}
|
|
42269
42217
|
function H7(t, e) {
|
|
42270
|
-
const n =
|
|
42218
|
+
const n = Kq(e.replace(/[A-Z]/g, (a) => a.toLowerCase())), r = n.length, i = [];
|
|
42271
42219
|
let o = 0, s = 0;
|
|
42272
42220
|
for (; s < r; ) {
|
|
42273
42221
|
let a = t, l = null, c = 0, u = null, d = -1, f = -1;
|
|
@@ -42286,7 +42234,7 @@ function H7(t, e) {
|
|
|
42286
42234
|
}
|
|
42287
42235
|
return i;
|
|
42288
42236
|
}
|
|
42289
|
-
function
|
|
42237
|
+
function Kq(t) {
|
|
42290
42238
|
const e = [], n = t.length;
|
|
42291
42239
|
let r = 0;
|
|
42292
42240
|
for (; r < n; ) {
|
|
@@ -42532,7 +42480,7 @@ const Hb = jd("email", {
|
|
|
42532
42480
|
toHref() {
|
|
42533
42481
|
return "mailto:" + this.toString();
|
|
42534
42482
|
}
|
|
42535
|
-
}), Bb = jd("text"),
|
|
42483
|
+
}), Bb = jd("text"), Yq = jd("nl"), wc = jd("url", {
|
|
42536
42484
|
isLink: !0,
|
|
42537
42485
|
/**
|
|
42538
42486
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -42553,7 +42501,7 @@ const Hb = jd("email", {
|
|
|
42553
42501
|
return t.length >= 2 && t[0].t !== kl && t[1].t === ci;
|
|
42554
42502
|
}
|
|
42555
42503
|
}), Pn = (t) => new vn(t);
|
|
42556
|
-
function
|
|
42504
|
+
function Jq({
|
|
42557
42505
|
groups: t
|
|
42558
42506
|
}) {
|
|
42559
42507
|
const e = t.domain.concat([Pu, Nu, ii, Iu, Lu, Vu, ju, Fu, Nn, Tg, za, _u, Hu, Bu, or, zu, Ua, $u]), n = [Ru, ci, Dg, ir, Pg, za, Wa, Rg, Ng, wu, Cu, Ba, $a, yu, vu, bu, xu, ku, Su, Eu, Mu, Ou, Tu, Au, Du], r = [Pu, Ru, Nu, Iu, Lu, Vu, ju, Fu, Nn, Ba, $a, za, _u, Hu, Bu, Wa, or, zu, Ua, $u], i = Pn(), o = he(i, Ua);
|
|
@@ -42610,12 +42558,12 @@ function Yq({
|
|
|
42610
42558
|
const L = Pn();
|
|
42611
42559
|
je(j, n), je(V, e, V), je(V, n, L), je(L, e, V), je(L, n, L), he(V, I, b), he(L, I, b);
|
|
42612
42560
|
}
|
|
42613
|
-
return he(i, kl, y), he(i, Ag,
|
|
42561
|
+
return he(i, kl, y), he(i, Ag, Yq), {
|
|
42614
42562
|
start: i,
|
|
42615
42563
|
tokens: _7
|
|
42616
42564
|
};
|
|
42617
42565
|
}
|
|
42618
|
-
function
|
|
42566
|
+
function Xq(t, e, n) {
|
|
42619
42567
|
let r = n.length, i = 0, o = [], s = [];
|
|
42620
42568
|
for (; i < r; ) {
|
|
42621
42569
|
let a = t, l = null, c = null, u = 0, d = null, f = -1;
|
|
@@ -42637,8 +42585,8 @@ function mp(t, e, n) {
|
|
|
42637
42585
|
const r = n[0].s, i = n[n.length - 1].e, o = e.slice(r, i);
|
|
42638
42586
|
return new t(o, n);
|
|
42639
42587
|
}
|
|
42640
|
-
const
|
|
42641
|
-
}),
|
|
42588
|
+
const Qq = typeof console < "u" && console && console.warn || (() => {
|
|
42589
|
+
}), eK = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", ct = {
|
|
42642
42590
|
scanner: null,
|
|
42643
42591
|
parser: null,
|
|
42644
42592
|
tokenQueue: [],
|
|
@@ -42646,24 +42594,24 @@ const Xq = typeof console < "u" && console && console.warn || (() => {
|
|
|
42646
42594
|
customSchemes: [],
|
|
42647
42595
|
initialized: !1
|
|
42648
42596
|
};
|
|
42649
|
-
function
|
|
42597
|
+
function tK() {
|
|
42650
42598
|
return vn.groups = {}, ct.scanner = null, ct.parser = null, ct.tokenQueue = [], ct.pluginQueue = [], ct.customSchemes = [], ct.initialized = !1, ct;
|
|
42651
42599
|
}
|
|
42652
42600
|
function $b(t, e = !1) {
|
|
42653
|
-
if (ct.initialized &&
|
|
42601
|
+
if (ct.initialized && Qq(`linkifyjs: already initialized - will not register custom scheme "${t}" ${eK}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
|
|
42654
42602
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
42655
42603
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
42656
42604
|
2. Cannot start or end with "-"
|
|
42657
42605
|
3. "-" cannot repeat`);
|
|
42658
42606
|
ct.customSchemes.push([t, e]);
|
|
42659
42607
|
}
|
|
42660
|
-
function
|
|
42661
|
-
ct.scanner =
|
|
42608
|
+
function nK() {
|
|
42609
|
+
ct.scanner = qq(ct.customSchemes);
|
|
42662
42610
|
for (let t = 0; t < ct.tokenQueue.length; t++)
|
|
42663
42611
|
ct.tokenQueue[t][1]({
|
|
42664
42612
|
scanner: ct.scanner
|
|
42665
42613
|
});
|
|
42666
|
-
ct.parser =
|
|
42614
|
+
ct.parser = Jq(ct.scanner.tokens);
|
|
42667
42615
|
for (let t = 0; t < ct.pluginQueue.length; t++)
|
|
42668
42616
|
ct.pluginQueue[t][1]({
|
|
42669
42617
|
scanner: ct.scanner,
|
|
@@ -42672,7 +42620,7 @@ function tK() {
|
|
|
42672
42620
|
return ct.initialized = !0, ct;
|
|
42673
42621
|
}
|
|
42674
42622
|
function Lg(t) {
|
|
42675
|
-
return ct.initialized ||
|
|
42623
|
+
return ct.initialized || nK(), Xq(ct.parser.start, t, H7(ct.scanner.start, t));
|
|
42676
42624
|
}
|
|
42677
42625
|
Lg.scan = H7;
|
|
42678
42626
|
function $7(t, e = null, n = null) {
|
|
@@ -42688,10 +42636,10 @@ function $7(t, e = null, n = null) {
|
|
|
42688
42636
|
}
|
|
42689
42637
|
return o;
|
|
42690
42638
|
}
|
|
42691
|
-
function
|
|
42639
|
+
function rK(t) {
|
|
42692
42640
|
return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
|
|
42693
42641
|
}
|
|
42694
|
-
function
|
|
42642
|
+
function iK(t) {
|
|
42695
42643
|
return new $t({
|
|
42696
42644
|
key: new wn("autolink"),
|
|
42697
42645
|
appendTransaction: (e, n, r) => {
|
|
@@ -42710,7 +42658,7 @@ function rK(t) {
|
|
|
42710
42658
|
if (!m)
|
|
42711
42659
|
return !1;
|
|
42712
42660
|
const g = Lg(m).map((v) => v.toObject(t.defaultProtocol));
|
|
42713
|
-
if (!
|
|
42661
|
+
if (!rK(g))
|
|
42714
42662
|
return !1;
|
|
42715
42663
|
g.filter((v) => v.isLink).map((v) => ({
|
|
42716
42664
|
...v,
|
|
@@ -42727,7 +42675,7 @@ function rK(t) {
|
|
|
42727
42675
|
}
|
|
42728
42676
|
});
|
|
42729
42677
|
}
|
|
42730
|
-
function
|
|
42678
|
+
function oK(t) {
|
|
42731
42679
|
return new $t({
|
|
42732
42680
|
key: new wn("handleClickLink"),
|
|
42733
42681
|
props: {
|
|
@@ -42747,7 +42695,7 @@ function iK(t) {
|
|
|
42747
42695
|
}
|
|
42748
42696
|
});
|
|
42749
42697
|
}
|
|
42750
|
-
function
|
|
42698
|
+
function sK(t) {
|
|
42751
42699
|
return new $t({
|
|
42752
42700
|
key: new wn("handlePasteLink"),
|
|
42753
42701
|
props: {
|
|
@@ -42767,7 +42715,7 @@ function oK(t) {
|
|
|
42767
42715
|
}
|
|
42768
42716
|
});
|
|
42769
42717
|
}
|
|
42770
|
-
const
|
|
42718
|
+
const aK = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
42771
42719
|
function qi(t, e) {
|
|
42772
42720
|
const n = [
|
|
42773
42721
|
"http",
|
|
@@ -42784,13 +42732,13 @@ function qi(t, e) {
|
|
|
42784
42732
|
return e && e.forEach((r) => {
|
|
42785
42733
|
const i = typeof r == "string" ? r : r.scheme;
|
|
42786
42734
|
i && n.push(i);
|
|
42787
|
-
}), !t || t.replace(
|
|
42735
|
+
}), !t || t.replace(aK, "").match(new RegExp(
|
|
42788
42736
|
// eslint-disable-next-line no-useless-escape
|
|
42789
42737
|
`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
|
|
42790
42738
|
"i"
|
|
42791
42739
|
));
|
|
42792
42740
|
}
|
|
42793
|
-
const
|
|
42741
|
+
const lK = Jn.create({
|
|
42794
42742
|
name: "link",
|
|
42795
42743
|
priority: 1e3,
|
|
42796
42744
|
keepOnSplit: !1,
|
|
@@ -42805,7 +42753,7 @@ const aK = Jn.create({
|
|
|
42805
42753
|
});
|
|
42806
42754
|
},
|
|
42807
42755
|
onDestroy() {
|
|
42808
|
-
|
|
42756
|
+
tK();
|
|
42809
42757
|
},
|
|
42810
42758
|
inclusive() {
|
|
42811
42759
|
return this.options.autolink;
|
|
@@ -42926,7 +42874,7 @@ const aK = Jn.create({
|
|
|
42926
42874
|
},
|
|
42927
42875
|
addProseMirrorPlugins() {
|
|
42928
42876
|
const t = [], { protocols: e, defaultProtocol: n } = this.options;
|
|
42929
|
-
return this.options.autolink && t.push(
|
|
42877
|
+
return this.options.autolink && t.push(iK({
|
|
42930
42878
|
type: this.type,
|
|
42931
42879
|
defaultProtocol: this.options.defaultProtocol,
|
|
42932
42880
|
validate: (r) => this.options.isAllowedUri(r, {
|
|
@@ -42935,15 +42883,15 @@ const aK = Jn.create({
|
|
|
42935
42883
|
defaultProtocol: n
|
|
42936
42884
|
}),
|
|
42937
42885
|
shouldAutoLink: this.options.shouldAutoLink
|
|
42938
|
-
})), this.options.openOnClick === !0 && t.push(
|
|
42886
|
+
})), this.options.openOnClick === !0 && t.push(oK({
|
|
42939
42887
|
type: this.type
|
|
42940
|
-
})), this.options.linkOnPaste && t.push(
|
|
42888
|
+
})), this.options.linkOnPaste && t.push(sK({
|
|
42941
42889
|
editor: this.editor,
|
|
42942
42890
|
defaultProtocol: this.options.defaultProtocol,
|
|
42943
42891
|
type: this.type
|
|
42944
42892
|
})), t;
|
|
42945
42893
|
}
|
|
42946
|
-
}),
|
|
42894
|
+
}), cK = Jn.create({
|
|
42947
42895
|
name: "underline",
|
|
42948
42896
|
addOptions() {
|
|
42949
42897
|
return {
|
|
@@ -42978,7 +42926,7 @@ const aK = Jn.create({
|
|
|
42978
42926
|
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
42979
42927
|
};
|
|
42980
42928
|
}
|
|
42981
|
-
}),
|
|
42929
|
+
}), uK = /^\s*>\s$/, dK = er.create({
|
|
42982
42930
|
name: "blockquote",
|
|
42983
42931
|
addOptions() {
|
|
42984
42932
|
return {
|
|
@@ -43011,12 +42959,12 @@ const aK = Jn.create({
|
|
|
43011
42959
|
addInputRules() {
|
|
43012
42960
|
return [
|
|
43013
42961
|
Cl({
|
|
43014
|
-
find:
|
|
42962
|
+
find: uK,
|
|
43015
42963
|
type: this.type
|
|
43016
42964
|
})
|
|
43017
42965
|
];
|
|
43018
42966
|
}
|
|
43019
|
-
}),
|
|
42967
|
+
}), fK = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, pK = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, hK = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, mK = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, gK = Jn.create({
|
|
43020
42968
|
name: "bold",
|
|
43021
42969
|
addOptions() {
|
|
43022
42970
|
return {
|
|
@@ -43061,11 +43009,11 @@ const aK = Jn.create({
|
|
|
43061
43009
|
addInputRules() {
|
|
43062
43010
|
return [
|
|
43063
43011
|
Zs({
|
|
43064
|
-
find:
|
|
43012
|
+
find: fK,
|
|
43065
43013
|
type: this.type
|
|
43066
43014
|
}),
|
|
43067
43015
|
Zs({
|
|
43068
|
-
find:
|
|
43016
|
+
find: hK,
|
|
43069
43017
|
type: this.type
|
|
43070
43018
|
})
|
|
43071
43019
|
];
|
|
@@ -43073,16 +43021,16 @@ const aK = Jn.create({
|
|
|
43073
43021
|
addPasteRules() {
|
|
43074
43022
|
return [
|
|
43075
43023
|
$o({
|
|
43076
|
-
find:
|
|
43024
|
+
find: pK,
|
|
43077
43025
|
type: this.type
|
|
43078
43026
|
}),
|
|
43079
43027
|
$o({
|
|
43080
|
-
find:
|
|
43028
|
+
find: mK,
|
|
43081
43029
|
type: this.type
|
|
43082
43030
|
})
|
|
43083
43031
|
];
|
|
43084
43032
|
}
|
|
43085
|
-
}),
|
|
43033
|
+
}), vK = "listItem", zb = "textStyle", Wb = /^\s*([-+*])\s$/, yK = er.create({
|
|
43086
43034
|
name: "bulletList",
|
|
43087
43035
|
addOptions() {
|
|
43088
43036
|
return {
|
|
@@ -43106,7 +43054,7 @@ const aK = Jn.create({
|
|
|
43106
43054
|
},
|
|
43107
43055
|
addCommands() {
|
|
43108
43056
|
return {
|
|
43109
|
-
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
43057
|
+
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(vK, this.editor.getAttributes(zb)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
43110
43058
|
};
|
|
43111
43059
|
},
|
|
43112
43060
|
addKeyboardShortcuts() {
|
|
@@ -43130,7 +43078,7 @@ const aK = Jn.create({
|
|
|
43130
43078
|
t
|
|
43131
43079
|
];
|
|
43132
43080
|
}
|
|
43133
|
-
}),
|
|
43081
|
+
}), bK = /(^|[^`])`([^`]+)`(?!`)/, xK = /(^|[^`])`([^`]+)`(?!`)/g, wK = Jn.create({
|
|
43134
43082
|
name: "code",
|
|
43135
43083
|
addOptions() {
|
|
43136
43084
|
return {
|
|
@@ -43163,7 +43111,7 @@ const aK = Jn.create({
|
|
|
43163
43111
|
addInputRules() {
|
|
43164
43112
|
return [
|
|
43165
43113
|
Zs({
|
|
43166
|
-
find:
|
|
43114
|
+
find: bK,
|
|
43167
43115
|
type: this.type
|
|
43168
43116
|
})
|
|
43169
43117
|
];
|
|
@@ -43171,12 +43119,12 @@ const aK = Jn.create({
|
|
|
43171
43119
|
addPasteRules() {
|
|
43172
43120
|
return [
|
|
43173
43121
|
$o({
|
|
43174
|
-
find:
|
|
43122
|
+
find: xK,
|
|
43175
43123
|
type: this.type
|
|
43176
43124
|
})
|
|
43177
43125
|
];
|
|
43178
43126
|
}
|
|
43179
|
-
}),
|
|
43127
|
+
}), CK = /^```([a-z]+)?[\s\n]$/, kK = /^~~~([a-z]+)?[\s\n]$/, SK = er.create({
|
|
43180
43128
|
name: "codeBlock",
|
|
43181
43129
|
addOptions() {
|
|
43182
43130
|
return {
|
|
@@ -43267,14 +43215,14 @@ const aK = Jn.create({
|
|
|
43267
43215
|
addInputRules() {
|
|
43268
43216
|
return [
|
|
43269
43217
|
nm({
|
|
43270
|
-
find:
|
|
43218
|
+
find: CK,
|
|
43271
43219
|
type: this.type,
|
|
43272
43220
|
getAttributes: (t) => ({
|
|
43273
43221
|
language: t[1]
|
|
43274
43222
|
})
|
|
43275
43223
|
}),
|
|
43276
43224
|
nm({
|
|
43277
|
-
find:
|
|
43225
|
+
find: kK,
|
|
43278
43226
|
type: this.type,
|
|
43279
43227
|
getAttributes: (t) => ({
|
|
43280
43228
|
language: t[1]
|
|
@@ -43303,19 +43251,19 @@ const aK = Jn.create({
|
|
|
43303
43251
|
})
|
|
43304
43252
|
];
|
|
43305
43253
|
}
|
|
43306
|
-
}),
|
|
43254
|
+
}), EK = er.create({
|
|
43307
43255
|
name: "doc",
|
|
43308
43256
|
topNode: !0,
|
|
43309
43257
|
content: "block+"
|
|
43310
43258
|
});
|
|
43311
|
-
function
|
|
43259
|
+
function MK(t = {}) {
|
|
43312
43260
|
return new $t({
|
|
43313
43261
|
view(e) {
|
|
43314
|
-
return new
|
|
43262
|
+
return new OK(e, t);
|
|
43315
43263
|
}
|
|
43316
43264
|
});
|
|
43317
43265
|
}
|
|
43318
|
-
class
|
|
43266
|
+
class OK {
|
|
43319
43267
|
constructor(e, n) {
|
|
43320
43268
|
var r;
|
|
43321
43269
|
this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === !1 ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => {
|
|
@@ -43389,7 +43337,7 @@ class MK {
|
|
|
43389
43337
|
this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
|
|
43390
43338
|
}
|
|
43391
43339
|
}
|
|
43392
|
-
const
|
|
43340
|
+
const TK = qt.create({
|
|
43393
43341
|
name: "dropCursor",
|
|
43394
43342
|
addOptions() {
|
|
43395
43343
|
return {
|
|
@@ -43400,7 +43348,7 @@ const OK = qt.create({
|
|
|
43400
43348
|
},
|
|
43401
43349
|
addProseMirrorPlugins() {
|
|
43402
43350
|
return [
|
|
43403
|
-
|
|
43351
|
+
MK(this.options)
|
|
43404
43352
|
];
|
|
43405
43353
|
}
|
|
43406
43354
|
});
|
|
@@ -43443,7 +43391,7 @@ class bt extends Ve {
|
|
|
43443
43391
|
*/
|
|
43444
43392
|
static valid(e) {
|
|
43445
43393
|
let n = e.parent;
|
|
43446
|
-
if (n.isTextblock || !
|
|
43394
|
+
if (n.isTextblock || !AK(e) || !DK(e))
|
|
43447
43395
|
return !1;
|
|
43448
43396
|
let r = n.type.spec.allowGapCursor;
|
|
43449
43397
|
if (r != null)
|
|
@@ -43474,7 +43422,7 @@ class bt extends Ve {
|
|
|
43474
43422
|
for (; ; ) {
|
|
43475
43423
|
let s = n > 0 ? o.firstChild : o.lastChild;
|
|
43476
43424
|
if (!s) {
|
|
43477
|
-
if (o.isAtom && !o.isText && !
|
|
43425
|
+
if (o.isAtom && !o.isText && !Ee.isSelectable(o)) {
|
|
43478
43426
|
e = e.doc.resolve(i + o.nodeSize * n), r = !1;
|
|
43479
43427
|
continue e;
|
|
43480
43428
|
}
|
|
@@ -43504,7 +43452,7 @@ class Vg {
|
|
|
43504
43452
|
return bt.valid(n) ? new bt(n) : Ve.near(n);
|
|
43505
43453
|
}
|
|
43506
43454
|
}
|
|
43507
|
-
function
|
|
43455
|
+
function AK(t) {
|
|
43508
43456
|
for (let e = t.depth; e >= 0; e--) {
|
|
43509
43457
|
let n = t.index(e), r = t.node(e);
|
|
43510
43458
|
if (n == 0) {
|
|
@@ -43521,7 +43469,7 @@ function TK(t) {
|
|
|
43521
43469
|
}
|
|
43522
43470
|
return !0;
|
|
43523
43471
|
}
|
|
43524
|
-
function
|
|
43472
|
+
function DK(t) {
|
|
43525
43473
|
for (let e = t.depth; e >= 0; e--) {
|
|
43526
43474
|
let n = t.indexAfter(e), r = t.node(e);
|
|
43527
43475
|
if (n == r.childCount) {
|
|
@@ -43538,20 +43486,20 @@ function AK(t) {
|
|
|
43538
43486
|
}
|
|
43539
43487
|
return !0;
|
|
43540
43488
|
}
|
|
43541
|
-
function
|
|
43489
|
+
function PK() {
|
|
43542
43490
|
return new $t({
|
|
43543
43491
|
props: {
|
|
43544
|
-
decorations:
|
|
43492
|
+
decorations: LK,
|
|
43545
43493
|
createSelectionBetween(t, e, n) {
|
|
43546
43494
|
return e.pos == n.pos && bt.valid(n) ? new bt(n) : null;
|
|
43547
43495
|
},
|
|
43548
|
-
handleClick:
|
|
43549
|
-
handleKeyDown:
|
|
43550
|
-
handleDOMEvents: { beforeinput:
|
|
43496
|
+
handleClick: NK,
|
|
43497
|
+
handleKeyDown: RK,
|
|
43498
|
+
handleDOMEvents: { beforeinput: IK }
|
|
43551
43499
|
}
|
|
43552
43500
|
});
|
|
43553
43501
|
}
|
|
43554
|
-
const
|
|
43502
|
+
const RK = c7({
|
|
43555
43503
|
ArrowLeft: Cc("horiz", -1),
|
|
43556
43504
|
ArrowRight: Cc("horiz", 1),
|
|
43557
43505
|
ArrowUp: Cc("vert", -1),
|
|
@@ -43570,16 +43518,16 @@ function Cc(t, e) {
|
|
|
43570
43518
|
return c ? (i && i(r.tr.setSelection(new bt(c))), !0) : !1;
|
|
43571
43519
|
};
|
|
43572
43520
|
}
|
|
43573
|
-
function
|
|
43521
|
+
function NK(t, e, n) {
|
|
43574
43522
|
if (!t || !t.editable)
|
|
43575
43523
|
return !1;
|
|
43576
43524
|
let r = t.state.doc.resolve(e);
|
|
43577
43525
|
if (!bt.valid(r))
|
|
43578
43526
|
return !1;
|
|
43579
43527
|
let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
43580
|
-
return i && i.inside > -1 &&
|
|
43528
|
+
return i && i.inside > -1 && Ee.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new bt(r))), !0);
|
|
43581
43529
|
}
|
|
43582
|
-
function
|
|
43530
|
+
function IK(t, e) {
|
|
43583
43531
|
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof bt))
|
|
43584
43532
|
return !1;
|
|
43585
43533
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
@@ -43591,17 +43539,17 @@ function NK(t, e) {
|
|
|
43591
43539
|
let o = t.state.tr.replace(n.pos, n.pos, new ye(i, 0, 0));
|
|
43592
43540
|
return o.setSelection(Ie.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
|
|
43593
43541
|
}
|
|
43594
|
-
function
|
|
43542
|
+
function LK(t) {
|
|
43595
43543
|
if (!(t.selection instanceof bt))
|
|
43596
43544
|
return null;
|
|
43597
43545
|
let e = document.createElement("div");
|
|
43598
43546
|
return e.className = "ProseMirror-gapcursor", Dt.create(t.doc, [_n.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
43599
43547
|
}
|
|
43600
|
-
const
|
|
43548
|
+
const VK = qt.create({
|
|
43601
43549
|
name: "gapCursor",
|
|
43602
43550
|
addProseMirrorPlugins() {
|
|
43603
43551
|
return [
|
|
43604
|
-
|
|
43552
|
+
PK()
|
|
43605
43553
|
];
|
|
43606
43554
|
},
|
|
43607
43555
|
extendNodeSchema(t) {
|
|
@@ -43615,7 +43563,7 @@ const LK = qt.create({
|
|
|
43615
43563
|
allowGapCursor: (e = Fe(Ce(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
|
|
43616
43564
|
};
|
|
43617
43565
|
}
|
|
43618
|
-
}),
|
|
43566
|
+
}), jK = er.create({
|
|
43619
43567
|
name: "hardBreak",
|
|
43620
43568
|
addOptions() {
|
|
43621
43569
|
return {
|
|
@@ -43675,7 +43623,7 @@ _t.prototype.prepend = function(e) {
|
|
|
43675
43623
|
return e.length ? _t.from(e).append(this) : this;
|
|
43676
43624
|
};
|
|
43677
43625
|
_t.prototype.appendInner = function(e) {
|
|
43678
|
-
return new
|
|
43626
|
+
return new FK(this, e);
|
|
43679
43627
|
};
|
|
43680
43628
|
_t.prototype.slice = function(e, n) {
|
|
43681
43629
|
return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? _t.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
|
|
@@ -43730,7 +43678,7 @@ var z7 = /* @__PURE__ */ function(t) {
|
|
|
43730
43678
|
}, Object.defineProperties(e.prototype, n), e;
|
|
43731
43679
|
}(_t);
|
|
43732
43680
|
_t.empty = new z7([]);
|
|
43733
|
-
var
|
|
43681
|
+
var FK = /* @__PURE__ */ function(t) {
|
|
43734
43682
|
function e(n, r) {
|
|
43735
43683
|
t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
|
|
43736
43684
|
}
|
|
@@ -43763,7 +43711,7 @@ var jK = /* @__PURE__ */ function(t) {
|
|
|
43763
43711
|
return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
|
|
43764
43712
|
}, e;
|
|
43765
43713
|
}(_t);
|
|
43766
|
-
const
|
|
43714
|
+
const _K = 500;
|
|
43767
43715
|
class Un {
|
|
43768
43716
|
constructor(e, n) {
|
|
43769
43717
|
this.items = e, this.eventCount = n;
|
|
@@ -43805,7 +43753,7 @@ class Un {
|
|
|
43805
43753
|
(p = l && l.merge(f)) && (f = p, u ? o.pop() : a = a.slice(0, a.length - 1)), o.push(f), n && (s++, n = void 0), i || (l = f);
|
|
43806
43754
|
}
|
|
43807
43755
|
let c = s - r.depth;
|
|
43808
|
-
return c >
|
|
43756
|
+
return c > BK && (a = HK(a, c), s -= c), new Un(a.append(o), s);
|
|
43809
43757
|
}
|
|
43810
43758
|
remapping(e, n) {
|
|
43811
43759
|
let r = new ml();
|
|
@@ -43845,7 +43793,7 @@ class Un {
|
|
|
43845
43793
|
for (let f = n; f < s; f++)
|
|
43846
43794
|
c.push(new sr(o.maps[f]));
|
|
43847
43795
|
let u = this.items.slice(0, i).append(c).append(r), d = new Un(u, a);
|
|
43848
|
-
return d.emptyItemCount() >
|
|
43796
|
+
return d.emptyItemCount() > _K && (d = d.compress(this.items.length - r.length)), d;
|
|
43849
43797
|
}
|
|
43850
43798
|
emptyItemCount() {
|
|
43851
43799
|
let e = 0;
|
|
@@ -43877,7 +43825,7 @@ class Un {
|
|
|
43877
43825
|
}
|
|
43878
43826
|
}
|
|
43879
43827
|
Un.empty = new Un(_t.empty, 0);
|
|
43880
|
-
function
|
|
43828
|
+
function HK(t, e) {
|
|
43881
43829
|
let n;
|
|
43882
43830
|
return t.forEach((r, i) => {
|
|
43883
43831
|
if (r.selection && e-- == 0)
|
|
@@ -43901,23 +43849,23 @@ class oi {
|
|
|
43901
43849
|
this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = i, this.prevComposition = o;
|
|
43902
43850
|
}
|
|
43903
43851
|
}
|
|
43904
|
-
const
|
|
43905
|
-
function
|
|
43852
|
+
const BK = 20;
|
|
43853
|
+
function $K(t, e, n, r) {
|
|
43906
43854
|
let i = n.getMeta(Do), o;
|
|
43907
43855
|
if (i)
|
|
43908
43856
|
return i.historyState;
|
|
43909
|
-
n.getMeta(
|
|
43857
|
+
n.getMeta(UK) && (t = new oi(t.done, t.undone, null, 0, -1));
|
|
43910
43858
|
let s = n.getMeta("appendedTransaction");
|
|
43911
43859
|
if (n.steps.length == 0)
|
|
43912
43860
|
return t;
|
|
43913
43861
|
if (s && s.getMeta(Do))
|
|
43914
43862
|
return s.getMeta(Do).redo ? new oi(t.done.addTransform(n, void 0, r, Lc(e)), t.undone, Ub(n.mapping.maps), t.prevTime, t.prevComposition) : new oi(t.done, t.undone.addTransform(n, void 0, r, Lc(e)), null, t.prevTime, t.prevComposition);
|
|
43915
43863
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
43916
|
-
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay ||
|
|
43864
|
+
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !zK(n, t.prevRanges)), c = s ? gp(t.prevRanges, n.mapping) : Ub(n.mapping.maps);
|
|
43917
43865
|
return new oi(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, Lc(e)), Un.empty, c, n.time, a ?? t.prevComposition);
|
|
43918
43866
|
} else return (o = n.getMeta("rebased")) ? new oi(t.done.rebased(n, o), t.undone.rebased(n, o), gp(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new oi(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), gp(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
43919
43867
|
}
|
|
43920
|
-
function
|
|
43868
|
+
function zK(t, e) {
|
|
43921
43869
|
if (!e)
|
|
43922
43870
|
return !1;
|
|
43923
43871
|
if (!t.docChanged)
|
|
@@ -43944,7 +43892,7 @@ function gp(t, e) {
|
|
|
43944
43892
|
}
|
|
43945
43893
|
return n;
|
|
43946
43894
|
}
|
|
43947
|
-
function
|
|
43895
|
+
function WK(t, e, n) {
|
|
43948
43896
|
let r = Lc(e), i = Do.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
|
|
43949
43897
|
if (!o)
|
|
43950
43898
|
return null;
|
|
@@ -43964,8 +43912,8 @@ function Lc(t) {
|
|
|
43964
43912
|
}
|
|
43965
43913
|
return vp;
|
|
43966
43914
|
}
|
|
43967
|
-
const Do = new wn("history"),
|
|
43968
|
-
function
|
|
43915
|
+
const Do = new wn("history"), UK = new wn("closeHistory");
|
|
43916
|
+
function ZK(t = {}) {
|
|
43969
43917
|
return t = {
|
|
43970
43918
|
depth: t.depth || 100,
|
|
43971
43919
|
newGroupDelay: t.newGroupDelay || 500
|
|
@@ -43976,7 +43924,7 @@ function UK(t = {}) {
|
|
|
43976
43924
|
return new oi(Un.empty, Un.empty, null, 0, -1);
|
|
43977
43925
|
},
|
|
43978
43926
|
apply(e, n, r) {
|
|
43979
|
-
return
|
|
43927
|
+
return $K(n, r, e, t);
|
|
43980
43928
|
}
|
|
43981
43929
|
},
|
|
43982
43930
|
config: t,
|
|
@@ -43996,13 +43944,13 @@ function W7(t, e) {
|
|
|
43996
43944
|
if (!i || (t ? i.undone : i.done).eventCount == 0)
|
|
43997
43945
|
return !1;
|
|
43998
43946
|
if (r) {
|
|
43999
|
-
let o =
|
|
43947
|
+
let o = WK(i, n, t);
|
|
44000
43948
|
o && r(e ? o.scrollIntoView() : o);
|
|
44001
43949
|
}
|
|
44002
43950
|
return !0;
|
|
44003
43951
|
};
|
|
44004
43952
|
}
|
|
44005
|
-
const U7 = W7(!1, !0), Z7 = W7(!0, !0),
|
|
43953
|
+
const U7 = W7(!1, !0), Z7 = W7(!0, !0), GK = qt.create({
|
|
44006
43954
|
name: "history",
|
|
44007
43955
|
addOptions() {
|
|
44008
43956
|
return {
|
|
@@ -44018,7 +43966,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44018
43966
|
},
|
|
44019
43967
|
addProseMirrorPlugins() {
|
|
44020
43968
|
return [
|
|
44021
|
-
|
|
43969
|
+
ZK(this.options)
|
|
44022
43970
|
];
|
|
44023
43971
|
},
|
|
44024
43972
|
addKeyboardShortcuts() {
|
|
@@ -44031,7 +43979,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44031
43979
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
44032
43980
|
};
|
|
44033
43981
|
}
|
|
44034
|
-
}),
|
|
43982
|
+
}), qK = er.create({
|
|
44035
43983
|
name: "horizontalRule",
|
|
44036
43984
|
addOptions() {
|
|
44037
43985
|
return {
|
|
@@ -44048,6 +43996,8 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44048
43996
|
addCommands() {
|
|
44049
43997
|
return {
|
|
44050
43998
|
setHorizontalRule: () => ({ chain: t, state: e }) => {
|
|
43999
|
+
if (!pq(e, e.schema.nodes[this.name]))
|
|
44000
|
+
return !1;
|
|
44051
44001
|
const { selection: n } = e, { $from: r, $to: i } = n, o = t();
|
|
44052
44002
|
return r.parentOffset === 0 ? o.insertContentAt({
|
|
44053
44003
|
from: Math.max(r.pos - 1, 0),
|
|
@@ -44061,7 +44011,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44061
44011
|
if (a) {
|
|
44062
44012
|
const { $to: c } = s.selection, u = c.end();
|
|
44063
44013
|
if (c.nodeAfter)
|
|
44064
|
-
c.nodeAfter.isTextblock ? s.setSelection(Ie.create(s.doc, c.pos + 1)) : c.nodeAfter.isBlock ? s.setSelection(
|
|
44014
|
+
c.nodeAfter.isTextblock ? s.setSelection(Ie.create(s.doc, c.pos + 1)) : c.nodeAfter.isBlock ? s.setSelection(Ee.create(s.doc, c.pos)) : s.setSelection(Ie.create(s.doc, c.pos));
|
|
44065
44015
|
else {
|
|
44066
44016
|
const d = (l = c.parent.type.contentMatch.defaultType) === null || l === void 0 ? void 0 : l.create();
|
|
44067
44017
|
d && (s.insert(u, d), s.setSelection(Ie.create(s.doc, u + 1)));
|
|
@@ -44081,7 +44031,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44081
44031
|
})
|
|
44082
44032
|
];
|
|
44083
44033
|
}
|
|
44084
|
-
}),
|
|
44034
|
+
}), KK = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, YK = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, JK = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, XK = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, QK = Jn.create({
|
|
44085
44035
|
name: "italic",
|
|
44086
44036
|
addOptions() {
|
|
44087
44037
|
return {
|
|
@@ -44125,11 +44075,11 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44125
44075
|
addInputRules() {
|
|
44126
44076
|
return [
|
|
44127
44077
|
Zs({
|
|
44128
|
-
find:
|
|
44078
|
+
find: KK,
|
|
44129
44079
|
type: this.type
|
|
44130
44080
|
}),
|
|
44131
44081
|
Zs({
|
|
44132
|
-
find:
|
|
44082
|
+
find: JK,
|
|
44133
44083
|
type: this.type
|
|
44134
44084
|
})
|
|
44135
44085
|
];
|
|
@@ -44137,16 +44087,16 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44137
44087
|
addPasteRules() {
|
|
44138
44088
|
return [
|
|
44139
44089
|
$o({
|
|
44140
|
-
find:
|
|
44090
|
+
find: YK,
|
|
44141
44091
|
type: this.type
|
|
44142
44092
|
}),
|
|
44143
44093
|
$o({
|
|
44144
|
-
find:
|
|
44094
|
+
find: XK,
|
|
44145
44095
|
type: this.type
|
|
44146
44096
|
})
|
|
44147
44097
|
];
|
|
44148
44098
|
}
|
|
44149
|
-
}),
|
|
44099
|
+
}), eY = er.create({
|
|
44150
44100
|
name: "listItem",
|
|
44151
44101
|
addOptions() {
|
|
44152
44102
|
return {
|
|
@@ -44174,7 +44124,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44174
44124
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
44175
44125
|
};
|
|
44176
44126
|
}
|
|
44177
|
-
}),
|
|
44127
|
+
}), tY = "listItem", Gb = "textStyle", qb = /^(\d+)\.\s$/, nY = er.create({
|
|
44178
44128
|
name: "orderedList",
|
|
44179
44129
|
addOptions() {
|
|
44180
44130
|
return {
|
|
@@ -44213,7 +44163,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44213
44163
|
},
|
|
44214
44164
|
addCommands() {
|
|
44215
44165
|
return {
|
|
44216
|
-
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
44166
|
+
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(tY, this.editor.getAttributes(Gb)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
44217
44167
|
};
|
|
44218
44168
|
},
|
|
44219
44169
|
addKeyboardShortcuts() {
|
|
@@ -44240,7 +44190,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44240
44190
|
t
|
|
44241
44191
|
];
|
|
44242
44192
|
}
|
|
44243
|
-
}),
|
|
44193
|
+
}), rY = er.create({
|
|
44244
44194
|
name: "paragraph",
|
|
44245
44195
|
priority: 1e3,
|
|
44246
44196
|
addOptions() {
|
|
@@ -44268,7 +44218,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44268
44218
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
44269
44219
|
};
|
|
44270
44220
|
}
|
|
44271
|
-
}),
|
|
44221
|
+
}), iY = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, oY = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, sY = Jn.create({
|
|
44272
44222
|
name: "strike",
|
|
44273
44223
|
addOptions() {
|
|
44274
44224
|
return {
|
|
@@ -44311,7 +44261,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44311
44261
|
addInputRules() {
|
|
44312
44262
|
return [
|
|
44313
44263
|
Zs({
|
|
44314
|
-
find:
|
|
44264
|
+
find: iY,
|
|
44315
44265
|
type: this.type
|
|
44316
44266
|
})
|
|
44317
44267
|
];
|
|
@@ -44319,27 +44269,27 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44319
44269
|
addPasteRules() {
|
|
44320
44270
|
return [
|
|
44321
44271
|
$o({
|
|
44322
|
-
find:
|
|
44272
|
+
find: oY,
|
|
44323
44273
|
type: this.type
|
|
44324
44274
|
})
|
|
44325
44275
|
];
|
|
44326
44276
|
}
|
|
44327
|
-
}),
|
|
44277
|
+
}), aY = er.create({
|
|
44328
44278
|
name: "text",
|
|
44329
44279
|
group: "inline"
|
|
44330
|
-
}),
|
|
44280
|
+
}), lY = qt.create({
|
|
44331
44281
|
name: "starterKit",
|
|
44332
44282
|
addExtensions() {
|
|
44333
44283
|
const t = [];
|
|
44334
|
-
return this.options.bold !== !1 && t.push(
|
|
44284
|
+
return this.options.bold !== !1 && t.push(gK.configure(this.options.bold)), this.options.blockquote !== !1 && t.push(dK.configure(this.options.blockquote)), this.options.bulletList !== !1 && t.push(yK.configure(this.options.bulletList)), this.options.code !== !1 && t.push(wK.configure(this.options.code)), this.options.codeBlock !== !1 && t.push(SK.configure(this.options.codeBlock)), this.options.document !== !1 && t.push(EK.configure(this.options.document)), this.options.dropcursor !== !1 && t.push(TK.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && t.push(VK.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && t.push(jK.configure(this.options.hardBreak)), this.options.heading !== !1 && t.push(N7.configure(this.options.heading)), this.options.history !== !1 && t.push(GK.configure(this.options.history)), this.options.horizontalRule !== !1 && t.push(qK.configure(this.options.horizontalRule)), this.options.italic !== !1 && t.push(QK.configure(this.options.italic)), this.options.listItem !== !1 && t.push(eY.configure(this.options.listItem)), this.options.orderedList !== !1 && t.push(nY.configure(this.options.orderedList)), this.options.paragraph !== !1 && t.push(rY.configure(this.options.paragraph)), this.options.strike !== !1 && t.push(sY.configure(this.options.strike)), this.options.text !== !1 && t.push(aY.configure(this.options.text)), t;
|
|
44335
44285
|
}
|
|
44336
|
-
}),
|
|
44286
|
+
}), cY = [
|
|
44337
44287
|
{ shortcuts: ["ctrl", "alt", "3"], level: 3 },
|
|
44338
44288
|
{ shortcuts: ["ctrl", "alt", "4"], level: 4 }
|
|
44339
|
-
],
|
|
44289
|
+
], uY = {
|
|
44340
44290
|
3: "mob-title-bold-l desktop:desk-title-bold-l",
|
|
44341
44291
|
4: "mob-title-bold-m desktop:desk-title-bold-s"
|
|
44342
|
-
},
|
|
44292
|
+
}, dY = [
|
|
44343
44293
|
"#292929",
|
|
44344
44294
|
"#FFFFFF",
|
|
44345
44295
|
"#40465A",
|
|
@@ -44352,7 +44302,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44352
44302
|
"#76BC21",
|
|
44353
44303
|
"#F49F00",
|
|
44354
44304
|
"#F42500"
|
|
44355
|
-
],
|
|
44305
|
+
], fY = (t) => [
|
|
44356
44306
|
{
|
|
44357
44307
|
label: "Жирный текст",
|
|
44358
44308
|
icon: /* @__PURE__ */ T.jsx(Le, { name: "editor/bold", className: "size-4" }),
|
|
@@ -44413,8 +44363,8 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44413
44363
|
icon: /* @__PURE__ */ T.jsx(Le, { name: "general/close", className: "size-4" }),
|
|
44414
44364
|
onClick: () => t.commands.clearContent()
|
|
44415
44365
|
}
|
|
44416
|
-
],
|
|
44417
|
-
|
|
44366
|
+
], pY = [
|
|
44367
|
+
lY.configure({
|
|
44418
44368
|
heading: !1,
|
|
44419
44369
|
bold: {
|
|
44420
44370
|
HTMLAttributes: {
|
|
@@ -44432,9 +44382,9 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44432
44382
|
}
|
|
44433
44383
|
}
|
|
44434
44384
|
}),
|
|
44435
|
-
|
|
44436
|
-
jq,
|
|
44385
|
+
cK,
|
|
44437
44386
|
Fq,
|
|
44387
|
+
_q,
|
|
44438
44388
|
N7.configure({
|
|
44439
44389
|
levels: [3, 4]
|
|
44440
44390
|
}).extend({
|
|
@@ -44443,22 +44393,22 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44443
44393
|
return [
|
|
44444
44394
|
`h${r}`,
|
|
44445
44395
|
St(this.options.HTMLAttributes, e, {
|
|
44446
|
-
class: `${
|
|
44396
|
+
class: `${uY[r]}`
|
|
44447
44397
|
}),
|
|
44448
44398
|
0
|
|
44449
44399
|
];
|
|
44450
44400
|
}
|
|
44451
44401
|
}),
|
|
44452
|
-
|
|
44402
|
+
lK.configure({
|
|
44453
44403
|
openOnClick: !0
|
|
44454
44404
|
}).extend({
|
|
44455
44405
|
renderHTML({ HTMLAttributes: t }) {
|
|
44456
44406
|
return ["a", St(t)];
|
|
44457
44407
|
}
|
|
44458
44408
|
})
|
|
44459
|
-
],
|
|
44409
|
+
], hY = ({ editor: t }) => {
|
|
44460
44410
|
var e;
|
|
44461
|
-
return /* @__PURE__ */ T.jsx("div", { className: "flex items-center gap-2", children: (e =
|
|
44411
|
+
return /* @__PURE__ */ T.jsx("div", { className: "flex items-center gap-2", children: (e = fY(t)) == null ? void 0 : e.map(({ label: n, icon: r, onClick: i, isActive: o }) => /* @__PURE__ */ T.jsx(
|
|
44462
44412
|
qx,
|
|
44463
44413
|
{
|
|
44464
44414
|
sideOffset: 12,
|
|
@@ -44480,7 +44430,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44480
44430
|
},
|
|
44481
44431
|
n
|
|
44482
44432
|
)) });
|
|
44483
|
-
},
|
|
44433
|
+
}, mY = ({ editor: t }) => /* @__PURE__ */ T.jsx(
|
|
44484
44434
|
dd,
|
|
44485
44435
|
{
|
|
44486
44436
|
classes: { content: "w-full " },
|
|
@@ -44492,7 +44442,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44492
44442
|
children: /* @__PURE__ */ T.jsx(Le, { name: "editor/heading", className: "size-4" })
|
|
44493
44443
|
}
|
|
44494
44444
|
),
|
|
44495
|
-
children: /* @__PURE__ */ T.jsx("div", { className: "flex w-full flex-1 flex-col gap-2", children:
|
|
44445
|
+
children: /* @__PURE__ */ T.jsx("div", { className: "flex w-full flex-1 flex-col gap-2", children: cY.map(({ level: e, shortcuts: n }) => /* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-4 border-b border-solid border-warm-grey-200 pb-4 last:border-none", children: [
|
|
44496
44446
|
/* @__PURE__ */ T.jsx(
|
|
44497
44447
|
"button",
|
|
44498
44448
|
{
|
|
@@ -44508,7 +44458,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44508
44458
|
/* @__PURE__ */ T.jsx(gL, { keyList: n })
|
|
44509
44459
|
] }, e)) })
|
|
44510
44460
|
}
|
|
44511
|
-
),
|
|
44461
|
+
), gY = ({ editor: t }) => /* @__PURE__ */ T.jsx(
|
|
44512
44462
|
dd,
|
|
44513
44463
|
{
|
|
44514
44464
|
classes: {
|
|
@@ -44523,7 +44473,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44523
44473
|
children: /* @__PURE__ */ T.jsx(Le, { name: "editor/palette", className: "size-4" })
|
|
44524
44474
|
}
|
|
44525
44475
|
),
|
|
44526
|
-
children: /* @__PURE__ */ T.jsx("div", { className: "grid grid-cols-6 gap-3", children:
|
|
44476
|
+
children: /* @__PURE__ */ T.jsx("div", { className: "grid grid-cols-6 gap-3", children: dY.map((e) => /* @__PURE__ */ T.jsx(
|
|
44527
44477
|
"button",
|
|
44528
44478
|
{
|
|
44529
44479
|
type: "button",
|
|
@@ -44537,12 +44487,12 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44537
44487
|
e
|
|
44538
44488
|
)) })
|
|
44539
44489
|
}
|
|
44540
|
-
),
|
|
44490
|
+
), vY = g8({
|
|
44541
44491
|
href: y8().url(),
|
|
44542
44492
|
underline: v8().optional().default(!0)
|
|
44543
|
-
}),
|
|
44493
|
+
}), yY = ({ editor: t }) => {
|
|
44544
44494
|
const { control: e, handleSubmit: n } = o8({
|
|
44545
|
-
schema:
|
|
44495
|
+
schema: vY,
|
|
44546
44496
|
defaultValues: {
|
|
44547
44497
|
href: "",
|
|
44548
44498
|
underline: !0
|
|
@@ -44586,12 +44536,12 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44586
44536
|
) })
|
|
44587
44537
|
}
|
|
44588
44538
|
) });
|
|
44589
|
-
},
|
|
44590
|
-
/* @__PURE__ */ T.jsx(pY, { editor: t }),
|
|
44591
|
-
/* @__PURE__ */ T.jsx(mY, { editor: t }),
|
|
44539
|
+
}, bY = ({ editor: t }) => /* @__PURE__ */ T.jsxs("div", { className: "customScrollbar-y flex w-full items-center gap-2 overflow-x-auto bg-color-blue-grey-200 px-4 py-3", children: [
|
|
44592
44540
|
/* @__PURE__ */ T.jsx(hY, { editor: t }),
|
|
44593
|
-
/* @__PURE__ */ T.jsx(
|
|
44594
|
-
|
|
44541
|
+
/* @__PURE__ */ T.jsx(gY, { editor: t }),
|
|
44542
|
+
/* @__PURE__ */ T.jsx(mY, { editor: t }),
|
|
44543
|
+
/* @__PURE__ */ T.jsx(yY, { editor: t })
|
|
44544
|
+
] }), xY = Number.MAX_SAFE_INTEGER, wY = nt(
|
|
44595
44545
|
({
|
|
44596
44546
|
onChange: t,
|
|
44597
44547
|
value: e = "",
|
|
@@ -44605,11 +44555,11 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44605
44555
|
externalHandlers: c,
|
|
44606
44556
|
...u
|
|
44607
44557
|
}, d) => {
|
|
44608
|
-
const { onUpdate: f } = c || {}, p =
|
|
44558
|
+
const { onUpdate: f } = c || {}, p = Nq({
|
|
44609
44559
|
extensions: [
|
|
44610
|
-
...
|
|
44611
|
-
|
|
44612
|
-
limit: r ??
|
|
44560
|
+
...pY,
|
|
44561
|
+
hq.configure({
|
|
44562
|
+
limit: r ?? xY
|
|
44613
44563
|
})
|
|
44614
44564
|
],
|
|
44615
44565
|
editable: s,
|
|
@@ -44644,9 +44594,9 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44644
44594
|
{
|
|
44645
44595
|
className: Z("relative flex w-full flex-col rounded-md border border-solid border-warm-grey-200", o == null ? void 0 : o.wrapper),
|
|
44646
44596
|
children: [
|
|
44647
|
-
/* @__PURE__ */ T.jsx(
|
|
44597
|
+
/* @__PURE__ */ T.jsx(bY, { editor: p }),
|
|
44648
44598
|
!e && /* @__PURE__ */ T.jsx("p", { className: Z("absolute left-4 top-16 z-10 text-color-disabled", o == null ? void 0 : o.label), children: n }),
|
|
44649
|
-
/* @__PURE__ */ T.jsx(
|
|
44599
|
+
/* @__PURE__ */ T.jsx(kq, { ref: d, editor: p }),
|
|
44650
44600
|
r && /* @__PURE__ */ T.jsxs("p", { className: "absolute bottom-4 right-4 text-color-disabled", children: [
|
|
44651
44601
|
p.storage.characterCount.characters(),
|
|
44652
44602
|
" / ",
|
|
@@ -44667,7 +44617,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44667
44617
|
)
|
|
44668
44618
|
] }) : null;
|
|
44669
44619
|
}
|
|
44670
|
-
),
|
|
44620
|
+
), CY = ({
|
|
44671
44621
|
control: t,
|
|
44672
44622
|
label: e,
|
|
44673
44623
|
helperText: n,
|
|
@@ -44691,8 +44641,8 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44691
44641
|
shouldUnregister: l,
|
|
44692
44642
|
name: c
|
|
44693
44643
|
});
|
|
44694
|
-
return /* @__PURE__ */ T.jsx(
|
|
44695
|
-
},
|
|
44644
|
+
return /* @__PURE__ */ T.jsx(wY, { ...d, editable: r, error: f, helperText: n, label: e, classes: i, ...u });
|
|
44645
|
+
}, kY = ({
|
|
44696
44646
|
control: t,
|
|
44697
44647
|
name: e,
|
|
44698
44648
|
defaultValue: n,
|
|
@@ -44737,7 +44687,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44737
44687
|
}
|
|
44738
44688
|
)
|
|
44739
44689
|
] });
|
|
44740
|
-
},
|
|
44690
|
+
}, SY = ({
|
|
44741
44691
|
control: t,
|
|
44742
44692
|
name: e,
|
|
44743
44693
|
defaultValue: n,
|
|
@@ -44782,7 +44732,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44782
44732
|
}
|
|
44783
44733
|
)
|
|
44784
44734
|
] });
|
|
44785
|
-
},
|
|
44735
|
+
}, EY = i3(SY), MY = (t) => {
|
|
44786
44736
|
switch (t) {
|
|
44787
44737
|
case "euro":
|
|
44788
44738
|
return "€ ";
|
|
@@ -44823,7 +44773,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44823
44773
|
engName: "AED",
|
|
44824
44774
|
currency: "dirhams"
|
|
44825
44775
|
}
|
|
44826
|
-
],
|
|
44776
|
+
], OY = (t) => {
|
|
44827
44777
|
const [e, n] = ie.useState(!1), [r, i] = ie.useState(
|
|
44828
44778
|
() => (Ea == null ? void 0 : Ea.find((l) => (l == null ? void 0 : l.currency) === t)) || Ea[0]
|
|
44829
44779
|
);
|
|
@@ -44836,7 +44786,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44836
44786
|
onToggleMenu: () => n((l) => !l),
|
|
44837
44787
|
onCloseMenu: () => n(!1)
|
|
44838
44788
|
};
|
|
44839
|
-
},
|
|
44789
|
+
}, TY = ({ onToggleMenu: t, currentCurrencyOption: e }) => /* @__PURE__ */ T.jsxs(
|
|
44840
44790
|
"button",
|
|
44841
44791
|
{
|
|
44842
44792
|
type: "button",
|
|
@@ -44847,7 +44797,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44847
44797
|
/* @__PURE__ */ T.jsx(Le, { name: "arrows/arrowRight", className: "rotate-90 text-icon-blue-grey-700" })
|
|
44848
44798
|
]
|
|
44849
44799
|
}
|
|
44850
|
-
),
|
|
44800
|
+
), AY = ({ optionsList: t, menuIsOpen: e, onSelectOption: n }) => /* @__PURE__ */ T.jsx(
|
|
44851
44801
|
"div",
|
|
44852
44802
|
{
|
|
44853
44803
|
className: Z(
|
|
@@ -44872,7 +44822,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44872
44822
|
r.engName
|
|
44873
44823
|
))
|
|
44874
44824
|
}
|
|
44875
|
-
),
|
|
44825
|
+
), DY = ({
|
|
44876
44826
|
defaultCurrency: t = "rubles",
|
|
44877
44827
|
label: e,
|
|
44878
44828
|
helperText: n,
|
|
@@ -44887,7 +44837,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44887
44837
|
externalHandlers: d,
|
|
44888
44838
|
...f
|
|
44889
44839
|
}) => {
|
|
44890
|
-
const p = k.useId(), m = k.useRef(null), { menuIsOpen: h, currentCurrencyOption: g, onSelectOption: v, onToggleMenu: y, onCloseMenu: w } =
|
|
44840
|
+
const p = k.useId(), m = k.useRef(null), { menuIsOpen: h, currentCurrencyOption: g, onSelectOption: v, onToggleMenu: y, onCloseMenu: w } = OY(t);
|
|
44891
44841
|
Tl(m, w);
|
|
44892
44842
|
const { field: x, fieldState: b } = xn({ control: r, name: s, defaultValue: a, disabled: o, rules: l, shouldUnregister: u }), { error: C, invalid: E } = b;
|
|
44893
44843
|
return /* @__PURE__ */ T.jsxs("div", { ref: m, className: Z("relative flex w-full flex-col", i == null ? void 0 : i.container), children: [
|
|
@@ -44913,7 +44863,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44913
44863
|
"aria-invalid": C != null && C.message ? "true" : "false",
|
|
44914
44864
|
thousandsGroupStyle: "wan",
|
|
44915
44865
|
thousandSeparator: " ",
|
|
44916
|
-
prefix:
|
|
44866
|
+
prefix: MY(g.currency),
|
|
44917
44867
|
getInputRef: x.ref,
|
|
44918
44868
|
allowNegative: !1,
|
|
44919
44869
|
disabled: o,
|
|
@@ -44923,8 +44873,8 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44923
44873
|
)
|
|
44924
44874
|
}
|
|
44925
44875
|
),
|
|
44926
|
-
/* @__PURE__ */ T.jsx(
|
|
44927
|
-
/* @__PURE__ */ T.jsx(
|
|
44876
|
+
/* @__PURE__ */ T.jsx(TY, { onToggleMenu: y, currentCurrencyOption: g }),
|
|
44877
|
+
/* @__PURE__ */ T.jsx(AY, { menuIsOpen: h, optionsList: Ea, onSelectOption: v })
|
|
44928
44878
|
] })
|
|
44929
44879
|
}
|
|
44930
44880
|
),
|
|
@@ -44938,7 +44888,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
44938
44888
|
}
|
|
44939
44889
|
)
|
|
44940
44890
|
] });
|
|
44941
|
-
},
|
|
44891
|
+
}, PY = ({
|
|
44942
44892
|
control: t,
|
|
44943
44893
|
name: e,
|
|
44944
44894
|
defaultValue: n,
|
|
@@ -45006,7 +44956,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45006
44956
|
}
|
|
45007
44957
|
)
|
|
45008
44958
|
] });
|
|
45009
|
-
},
|
|
44959
|
+
}, RY = ({
|
|
45010
44960
|
options: t,
|
|
45011
44961
|
...e
|
|
45012
44962
|
}) => {
|
|
@@ -45023,7 +44973,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45023
44973
|
renderComponent: ({ options: r, ...i }) => /* @__PURE__ */ T.jsx("div", { className: "flex list-none flex-row flex-wrap gap-x-3 gap-y-4", children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ T.jsx(GH, { item: o, ...i }, o.value)) })
|
|
45024
44974
|
}
|
|
45025
44975
|
);
|
|
45026
|
-
},
|
|
44976
|
+
}, NY = ({
|
|
45027
44977
|
className: t,
|
|
45028
44978
|
items: e,
|
|
45029
44979
|
renderComponent: n,
|
|
@@ -45047,7 +44997,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45047
44997
|
children: /* @__PURE__ */ T.jsx("div", { className: e3("inline-flex w-max flex-col", t), children: /* @__PURE__ */ T.jsx("div", { ref: c, className: "flex", style: { columnGap: r }, children: e.map((u, d) => /* @__PURE__ */ T.jsx($r.div, { className: "w-max", children: n(u) }, `cell-${d}`)) }) })
|
|
45048
44998
|
}
|
|
45049
44999
|
) });
|
|
45050
|
-
},
|
|
45000
|
+
}, IY = ({
|
|
45051
45001
|
options: t,
|
|
45052
45002
|
...e
|
|
45053
45003
|
}) => {
|
|
@@ -45061,10 +45011,10 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45061
45011
|
...e == null ? void 0 : e.classes,
|
|
45062
45012
|
list: Z("flex flex-row gap-4 max-w-[540px] overflow-x-auto", (n = e == null ? void 0 : e.classes) == null ? void 0 : n.list)
|
|
45063
45013
|
},
|
|
45064
|
-
renderComponent: ({ options: r, ...i }) => /* @__PURE__ */ T.jsx(
|
|
45014
|
+
renderComponent: ({ options: r, ...i }) => /* @__PURE__ */ T.jsx(NY, { items: r, renderComponent: (o) => /* @__PURE__ */ T.jsx(ZH, { ...i, item: o }) })
|
|
45065
45015
|
}
|
|
45066
45016
|
);
|
|
45067
|
-
},
|
|
45017
|
+
}, LY = ({
|
|
45068
45018
|
control: t,
|
|
45069
45019
|
classes: e,
|
|
45070
45020
|
name: n,
|
|
@@ -45114,7 +45064,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45114
45064
|
}
|
|
45115
45065
|
)
|
|
45116
45066
|
] });
|
|
45117
|
-
},
|
|
45067
|
+
}, VY = (t) => {
|
|
45118
45068
|
const { control: e, name: n, defaultValue: r, disabled: i, rules: o, shouldUnregister: s, classes: a, ...l } = t, { field: c, fieldState: u } = xn({
|
|
45119
45069
|
control: e,
|
|
45120
45070
|
name: n,
|
|
@@ -45124,7 +45074,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45124
45074
|
shouldUnregister: s
|
|
45125
45075
|
}), { invalid: d } = u, { container: f, ...p } = a || {};
|
|
45126
45076
|
return /* @__PURE__ */ T.jsx("div", { className: Z("w-full", f), children: /* @__PURE__ */ T.jsx(Tt.SliderBase, { ...l, ...c, classes: p, invalid: d }) });
|
|
45127
|
-
},
|
|
45077
|
+
}, jY = ({
|
|
45128
45078
|
classes: t,
|
|
45129
45079
|
className: e,
|
|
45130
45080
|
control: n,
|
|
@@ -45208,7 +45158,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45208
45158
|
] }),
|
|
45209
45159
|
w && /* @__PURE__ */ T.jsx(Tn, { text: w.message, className: b, intent: "error", disabled: s })
|
|
45210
45160
|
] });
|
|
45211
|
-
},
|
|
45161
|
+
}, FY = ({
|
|
45212
45162
|
classes: t,
|
|
45213
45163
|
control: e,
|
|
45214
45164
|
name: n,
|
|
@@ -45254,7 +45204,7 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45254
45204
|
}
|
|
45255
45205
|
)
|
|
45256
45206
|
] });
|
|
45257
|
-
},
|
|
45207
|
+
}, _Y = ({
|
|
45258
45208
|
control: t,
|
|
45259
45209
|
name: e,
|
|
45260
45210
|
defaultValue: n,
|
|
@@ -45285,27 +45235,27 @@ const U7 = W7(!1, !0), Z7 = W7(!0, !0), ZK = qt.create({
|
|
|
45285
45235
|
)
|
|
45286
45236
|
] });
|
|
45287
45237
|
}, zo = {
|
|
45288
|
-
InputControl:
|
|
45289
|
-
MaskInputControl:
|
|
45238
|
+
InputControl: kY,
|
|
45239
|
+
MaskInputControl: EY,
|
|
45290
45240
|
DayPickerControl: hz,
|
|
45291
45241
|
CheckboxControl: w$,
|
|
45292
|
-
SelectControl:
|
|
45293
|
-
SwitchControl:
|
|
45242
|
+
SelectControl: LY,
|
|
45243
|
+
SwitchControl: jY,
|
|
45294
45244
|
RadioGroupControl: jg,
|
|
45295
|
-
RadioGroupTabControl:
|
|
45296
|
-
RadioGroupCardControl:
|
|
45245
|
+
RadioGroupTabControl: RY,
|
|
45246
|
+
RadioGroupCardControl: IY,
|
|
45297
45247
|
AutocompleteControl: xL,
|
|
45298
45248
|
DadataFio: cz,
|
|
45299
45249
|
DadataAddress: ez,
|
|
45300
45250
|
DadataCountry: sz,
|
|
45301
45251
|
DadataAuto: rz,
|
|
45302
45252
|
DadataOrganization: J$,
|
|
45303
|
-
SliderControl:
|
|
45304
|
-
TextareaControl:
|
|
45305
|
-
UploaderControl:
|
|
45306
|
-
InputOtpControl:
|
|
45307
|
-
EditorControl:
|
|
45308
|
-
InputCurrencyControl:
|
|
45253
|
+
SliderControl: VY,
|
|
45254
|
+
TextareaControl: FY,
|
|
45255
|
+
UploaderControl: _Y,
|
|
45256
|
+
InputOtpControl: PY,
|
|
45257
|
+
EditorControl: CY,
|
|
45258
|
+
InputCurrencyControl: DY
|
|
45309
45259
|
};
|
|
45310
45260
|
export {
|
|
45311
45261
|
eg as $,
|
|
@@ -45314,19 +45264,19 @@ export {
|
|
|
45314
45264
|
r1 as C,
|
|
45315
45265
|
jN as D,
|
|
45316
45266
|
b1 as E,
|
|
45317
|
-
|
|
45267
|
+
aJ as F,
|
|
45318
45268
|
pL as G,
|
|
45319
45269
|
qx as H,
|
|
45320
45270
|
wN as I,
|
|
45321
45271
|
dL as J,
|
|
45322
45272
|
fL as K,
|
|
45323
45273
|
b3 as L,
|
|
45324
|
-
|
|
45274
|
+
nJ as M,
|
|
45325
45275
|
yf as N,
|
|
45326
|
-
|
|
45276
|
+
rJ as O,
|
|
45327
45277
|
wt as P,
|
|
45328
|
-
|
|
45329
|
-
|
|
45278
|
+
lJ as Q,
|
|
45279
|
+
qY as R,
|
|
45330
45280
|
oL as S,
|
|
45331
45281
|
gL as T,
|
|
45332
45282
|
zo as U,
|
|
@@ -45335,24 +45285,24 @@ export {
|
|
|
45335
45285
|
h_ as X,
|
|
45336
45286
|
X1 as Y,
|
|
45337
45287
|
C$ as Z,
|
|
45338
|
-
|
|
45288
|
+
xJ as _,
|
|
45339
45289
|
ea as a,
|
|
45340
|
-
|
|
45290
|
+
gJ as a0,
|
|
45341
45291
|
R$ as a1,
|
|
45342
45292
|
A$ as a2,
|
|
45343
|
-
|
|
45293
|
+
vJ as a3,
|
|
45344
45294
|
fl as a4,
|
|
45345
45295
|
S$ as a5,
|
|
45346
|
-
|
|
45347
|
-
|
|
45296
|
+
bJ as a6,
|
|
45297
|
+
yJ as a7,
|
|
45348
45298
|
B9 as a8,
|
|
45349
45299
|
$9 as a9,
|
|
45350
45300
|
ks as aa,
|
|
45351
|
-
|
|
45301
|
+
mJ as ab,
|
|
45352
45302
|
Ch as ac,
|
|
45353
45303
|
Q1 as ad,
|
|
45354
45304
|
Oh as ae,
|
|
45355
|
-
|
|
45305
|
+
wJ as af,
|
|
45356
45306
|
$r as ag,
|
|
45357
45307
|
Mm as ah,
|
|
45358
45308
|
Gr as b,
|
|
@@ -45366,19 +45316,19 @@ export {
|
|
|
45366
45316
|
Y8 as j,
|
|
45367
45317
|
K8 as k,
|
|
45368
45318
|
q8 as l,
|
|
45369
|
-
|
|
45370
|
-
|
|
45319
|
+
KY as m,
|
|
45320
|
+
YY as n,
|
|
45371
45321
|
eC as o,
|
|
45372
45322
|
dd as p,
|
|
45373
|
-
|
|
45374
|
-
|
|
45323
|
+
tJ as q,
|
|
45324
|
+
oJ as r,
|
|
45375
45325
|
Yc as s,
|
|
45376
|
-
|
|
45326
|
+
iJ as t,
|
|
45377
45327
|
y4 as u,
|
|
45378
45328
|
iL as v,
|
|
45379
45329
|
sL as w,
|
|
45380
45330
|
aL as x,
|
|
45381
45331
|
ty as y,
|
|
45382
|
-
|
|
45332
|
+
sJ as z
|
|
45383
45333
|
};
|
|
45384
|
-
//# sourceMappingURL=index-
|
|
45334
|
+
//# sourceMappingURL=index-CMQOOPU0.js.map
|