@jackuait/blok 0.4.1-beta.12 → 0.4.1-beta.14
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/blok.mjs +2 -2
- package/dist/chunks/{blok-BU6NwVkN.mjs → blok-CqdUPkVp.mjs} +405 -401
- package/dist/chunks/{i18next-loader-D8GzSwio.mjs → i18next-loader-DGwfKvj7.mjs} +1 -1
- package/dist/chunks/{index-C5e_WLFg.mjs → index-Bq6UT5hl.mjs} +1 -1
- package/dist/chunks/{inline-tool-convert-CLUxkCe_.mjs → inline-tool-convert-CmxgdS16.mjs} +1 -1
- package/dist/full.mjs +2 -2
- package/dist/tools.mjs +43 -26
- package/package.json +25 -7
- package/src/components/modules/ui.ts +10 -6
- package/src/components/utils/data-model-transform.ts +59 -37
- package/src/tools/list/index.ts +23 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Uo = Object.defineProperty, Ko = Object.defineProperties;
|
|
2
|
+
var Wo = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var At = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Fe = Object.prototype.hasOwnProperty, _e = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (a, t, e) => t in a ? Uo(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, w = (a, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Fe.call(t, e) && He(a, e, t[e]);
|
|
8
8
|
if (At)
|
|
9
9
|
for (var e of At(t))
|
|
10
|
-
|
|
10
|
+
_e.call(t, e) && He(a, e, t[e]);
|
|
11
11
|
return a;
|
|
12
|
-
}, R = (a, t) =>
|
|
12
|
+
}, R = (a, t) => Ko(a, Wo(t));
|
|
13
13
|
var jt = (a, t) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var o in a)
|
|
16
|
-
|
|
16
|
+
Fe.call(a, o) && t.indexOf(o) < 0 && (e[o] = a[o]);
|
|
17
17
|
if (a != null && At)
|
|
18
18
|
for (var o of At(a))
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
19
|
+
t.indexOf(o) < 0 && _e.call(a, o) && (e[o] = a[o]);
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
22
|
-
import { i as N, g as
|
|
23
|
-
function
|
|
22
|
+
import { i as N, g as $o, a as g, b as ve, c as E, l as I, S as y, d as jo, e as Yo, D as m, t as C, f as j, h as bo, P as O, j as Ht, k as V, m as A, n as Bt, o as ht, p as ko, q as nt, T as Yt, r as Ft, s as v, I as Vo, u as Xo, v as ct, w as oe, x as qo, y as Zo, z as Go, A as vo, B as Jo, C as Bo, E as wo, F as Qo, G as ze, H as tn, J as en, K as on, L as Be, M as Ue, N as nn, O as Ke, Q as We, R as sn, U as rn, V as an, W as ln, X as cn, Y as ne, Z as _t, _ as dn, $ as hn, a0 as un, a1 as $e, a2 as pn, a3 as fn, a4 as gn, a5 as mn, a6 as bn, a7 as kn, a8 as vn } from "./inline-tool-convert-CmxgdS16.mjs";
|
|
23
|
+
function Bn(a) {
|
|
24
24
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
25
25
|
}
|
|
26
|
-
var Vt,
|
|
27
|
-
function
|
|
28
|
-
if (
|
|
29
|
-
|
|
26
|
+
var Vt, je;
|
|
27
|
+
function wn() {
|
|
28
|
+
if (je) return Vt;
|
|
29
|
+
je = 1;
|
|
30
30
|
function a() {
|
|
31
31
|
}
|
|
32
32
|
return Vt = Object.assign(a, {
|
|
@@ -37,7 +37,7 @@ function vn() {
|
|
|
37
37
|
__esModule: !0
|
|
38
38
|
}), Vt;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
wn();
|
|
41
41
|
typeof Element != "undefined" && typeof Element.prototype.scrollIntoViewIfNeeded == "undefined" && (Element.prototype.scrollIntoViewIfNeeded = function(a) {
|
|
42
42
|
const t = a != null ? a : !0, e = this.parentElement;
|
|
43
43
|
if (!e)
|
|
@@ -45,12 +45,12 @@ typeof Element != "undefined" && typeof Element.prototype.scrollIntoViewIfNeeded
|
|
|
45
45
|
const o = window.getComputedStyle(e, null), n = parseInt(o.getPropertyValue("border-top-width")), s = parseInt(o.getPropertyValue("border-left-width")), i = this.offsetTop - e.offsetTop < e.scrollTop, r = this.offsetTop - e.offsetTop + this.clientHeight - n > e.scrollTop + e.clientHeight, l = this.offsetLeft - e.offsetLeft < e.scrollLeft, c = this.offsetLeft - e.offsetLeft + this.clientWidth - s > e.scrollLeft + e.clientWidth, d = i && !r;
|
|
46
46
|
(i || r) && t && (e.scrollTop = this.offsetTop - e.offsetTop - e.clientHeight / 2 - n + this.clientHeight / 2), (l || c) && t && (e.scrollLeft = this.offsetLeft - e.offsetLeft - e.clientWidth / 2 - s + this.clientWidth / 2), (i || r || l || c) && !t && this.scrollIntoView(d);
|
|
47
47
|
});
|
|
48
|
-
const
|
|
48
|
+
const yn = globalThis.setTimeout.bind(globalThis), xn = globalThis.clearTimeout.bind(globalThis), zt = /* @__PURE__ */ new Map(), Tn = (a) => {
|
|
49
49
|
const t = Number(a);
|
|
50
50
|
return Number.isFinite(t) && t > 0 ? t : Date.now();
|
|
51
51
|
};
|
|
52
52
|
typeof window != "undefined" && typeof window.requestIdleCallback == "undefined" && (window.requestIdleCallback = function(a) {
|
|
53
|
-
const t = Date.now(), e = {}, o =
|
|
53
|
+
const t = Date.now(), e = {}, o = yn(() => {
|
|
54
54
|
const s = e.value;
|
|
55
55
|
typeof s == "number" && zt.delete(s), a({
|
|
56
56
|
didTimeout: !1,
|
|
@@ -58,12 +58,12 @@ typeof window != "undefined" && typeof window.requestIdleCallback == "undefined"
|
|
|
58
58
|
return Math.max(0, 50 - (Date.now() - t));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
}, 1), n =
|
|
61
|
+
}, 1), n = Tn(o);
|
|
62
62
|
return e.value = n, zt.set(n, o), n;
|
|
63
63
|
});
|
|
64
64
|
typeof window != "undefined" && typeof window.cancelIdleCallback == "undefined" && (window.cancelIdleCallback = function(a) {
|
|
65
65
|
const t = zt.get(a);
|
|
66
|
-
t !== void 0 && (zt.delete(a),
|
|
66
|
+
t !== void 0 && (zt.delete(a), xn(t)), globalThis.clearTimeout(a);
|
|
67
67
|
});
|
|
68
68
|
class bt extends Error {
|
|
69
69
|
}
|
|
@@ -125,7 +125,7 @@ class Ct {
|
|
|
125
125
|
this.subscribers = {};
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const Sn = function(t) {
|
|
129
129
|
return Object.setPrototypeOf(this, {
|
|
130
130
|
/**
|
|
131
131
|
* Block id
|
|
@@ -243,7 +243,7 @@ const xn = function(t) {
|
|
|
243
243
|
configurable: !0
|
|
244
244
|
}
|
|
245
245
|
}), this;
|
|
246
|
-
}, q =
|
|
246
|
+
}, q = Sn;
|
|
247
247
|
class It {
|
|
248
248
|
constructor() {
|
|
249
249
|
this.allListeners = [];
|
|
@@ -258,7 +258,7 @@ class It {
|
|
|
258
258
|
on(t, e, o, n = !1) {
|
|
259
259
|
if (this.findOne(t, e, o, n))
|
|
260
260
|
return;
|
|
261
|
-
const i =
|
|
261
|
+
const i = $o("l"), r = {
|
|
262
262
|
id: i,
|
|
263
263
|
element: t,
|
|
264
264
|
eventType: e,
|
|
@@ -459,10 +459,10 @@ class T {
|
|
|
459
459
|
return ((t = this.config.i18n) == null ? void 0 : t.direction) === "rtl";
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
const
|
|
462
|
+
const Cn = (a, t) => {
|
|
463
463
|
const { type: e, target: o, addedNodes: n, removedNodes: s } = a;
|
|
464
464
|
return a.type === "attributes" && a.attributeName === "data-blok-empty" ? !1 : t.contains(o) ? !0 : e !== "childList" ? !1 : Array.from(n).some((l) => l === t) ? !0 : Array.from(s).some((l) => l === t);
|
|
465
|
-
}, se = "redactor dom changed", wt = "block changed",
|
|
465
|
+
}, se = "redactor dom changed", wt = "block changed", yo = "fake cursor is about to be toggled", xo = "fake cursor have been set", yt = "blok mobile layout toggled", ie = "block-settings-opened", re = "block-settings-closed", In = "history:state-changed";
|
|
466
466
|
var Y = /* @__PURE__ */ ((a) => (a.RENDERED = "rendered", a.MOVED = "moved", a.UPDATED = "updated", a.REMOVED = "removed", a.ON_PASTE = "onPaste", a))(Y || {});
|
|
467
467
|
const U = class U extends Ct {
|
|
468
468
|
/**
|
|
@@ -747,14 +747,14 @@ const U = class U extends Ct {
|
|
|
747
747
|
if (t.length === 1)
|
|
748
748
|
return Promise.resolve(t[0]);
|
|
749
749
|
const e = await this.data;
|
|
750
|
-
return t.find((o) =>
|
|
750
|
+
return t.find((o) => jo(o.data, e));
|
|
751
751
|
}
|
|
752
752
|
/**
|
|
753
753
|
* Exports Block data as string using conversion config
|
|
754
754
|
*/
|
|
755
755
|
async exportDataAsString() {
|
|
756
756
|
const t = await this.data;
|
|
757
|
-
return
|
|
757
|
+
return Yo(t, this.tool.conversionConfig);
|
|
758
758
|
}
|
|
759
759
|
/**
|
|
760
760
|
* Find and return all editable elements (contenteditable and native inputs) in the Tool HTML
|
|
@@ -890,7 +890,7 @@ const U = class U extends Ct {
|
|
|
890
890
|
this.contentElement.className = t ? C(U.styles.content, U.styles.contentSelected) : C(U.styles.content, i);
|
|
891
891
|
}
|
|
892
892
|
const e = t === !0 && y.isRangeInsideContainer(this.holder), o = t === !1 && y.isFakeCursorInsideContainer(this.holder);
|
|
893
|
-
!e && !o || ((n = this.blokEventBus) == null || n.emit(
|
|
893
|
+
!e && !o || ((n = this.blokEventBus) == null || n.emit(yo, { state: t }), e && y.addFakeCursor(), o && y.removeFakeCursor(this.holder), (s = this.blokEventBus) == null || s.emit(xo, { state: t }));
|
|
894
894
|
}
|
|
895
895
|
/**
|
|
896
896
|
* Returns True if it is Selected
|
|
@@ -1021,7 +1021,7 @@ const U = class U extends Ct {
|
|
|
1021
1021
|
const { mutations: o } = e, n = this.toolRenderedElement;
|
|
1022
1022
|
if (n === null)
|
|
1023
1023
|
return;
|
|
1024
|
-
const s = o.filter((i) =>
|
|
1024
|
+
const s = o.filter((i) => Cn(i, n));
|
|
1025
1025
|
s.length > 0 && this.didMutated(s);
|
|
1026
1026
|
}, (t = this.blokEventBus) == null || t.on(se, this.redactorDomChangedCallback);
|
|
1027
1027
|
}
|
|
@@ -1069,7 +1069,7 @@ const U = class U extends Ct {
|
|
|
1069
1069
|
* Mark inputs with 'data-blok-empty' attribute with the empty state
|
|
1070
1070
|
*/
|
|
1071
1071
|
toggleInputsEmptyMark() {
|
|
1072
|
-
this.inputs.forEach(
|
|
1072
|
+
this.inputs.forEach(bo);
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
1075
|
U.styles = {
|
|
@@ -1079,7 +1079,7 @@ U.styles = {
|
|
|
1079
1079
|
contentStretched: "max-w-none"
|
|
1080
1080
|
};
|
|
1081
1081
|
let xt = U;
|
|
1082
|
-
class
|
|
1082
|
+
class En extends T {
|
|
1083
1083
|
constructor() {
|
|
1084
1084
|
super(...arguments), this.insert = (t, e = {}, o = {}, n, s, i, r) => {
|
|
1085
1085
|
const l = t != null ? t : this.config.defaultBlock, c = this.Blok.BlockManager.insert({
|
|
@@ -1291,11 +1291,11 @@ class Cn extends T {
|
|
|
1291
1291
|
throw new Error("Index should be greater than or equal to 0");
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
const
|
|
1295
|
-
class
|
|
1294
|
+
const An = (a, t) => typeof a == "number" ? t.BlockManager.getBlockByIndex(a) : typeof a == "string" ? t.BlockManager.getBlockById(a) : t.BlockManager.getBlockById(a.id);
|
|
1295
|
+
class Mn extends T {
|
|
1296
1296
|
constructor() {
|
|
1297
1297
|
super(...arguments), this.setToFirstBlock = (t = this.Blok.Caret.positions.DEFAULT, e = 0) => this.Blok.BlockManager.firstBlock ? (this.Blok.Caret.setToBlock(this.Blok.BlockManager.firstBlock, t, e), !0) : !1, this.setToLastBlock = (t = this.Blok.Caret.positions.DEFAULT, e = 0) => this.Blok.BlockManager.lastBlock ? (this.Blok.Caret.setToBlock(this.Blok.BlockManager.lastBlock, t, e), !0) : !1, this.setToPreviousBlock = (t = this.Blok.Caret.positions.DEFAULT, e = 0) => this.Blok.BlockManager.previousBlock ? (this.Blok.Caret.setToBlock(this.Blok.BlockManager.previousBlock, t, e), !0) : !1, this.setToNextBlock = (t = this.Blok.Caret.positions.DEFAULT, e = 0) => this.Blok.BlockManager.nextBlock ? (this.Blok.Caret.setToBlock(this.Blok.BlockManager.nextBlock, t, e), !0) : !1, this.setToBlock = (t, e = this.Blok.Caret.positions.DEFAULT, o = 0) => {
|
|
1298
|
-
const n =
|
|
1298
|
+
const n = An(t, this.Blok);
|
|
1299
1299
|
return n === void 0 ? !1 : (this.Blok.Caret.setToBlock(n, e, o), !0);
|
|
1300
1300
|
}, this.focus = (t = !1) => t ? this.setToLastBlock(this.Blok.Caret.positions.END) : this.setToFirstBlock(this.Blok.Caret.positions.START);
|
|
1301
1301
|
}
|
|
@@ -1314,7 +1314,7 @@ class En extends T {
|
|
|
1314
1314
|
};
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
class
|
|
1317
|
+
class Dn extends T {
|
|
1318
1318
|
/**
|
|
1319
1319
|
* Available methods
|
|
1320
1320
|
* @returns {Events}
|
|
@@ -1354,7 +1354,7 @@ class An extends T {
|
|
|
1354
1354
|
this.eventsDispatcher.off(t, e);
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
class
|
|
1357
|
+
class Ln extends T {
|
|
1358
1358
|
constructor() {
|
|
1359
1359
|
super(...arguments), this.cachedMethods = null;
|
|
1360
1360
|
}
|
|
@@ -1372,7 +1372,7 @@ class Mn extends T {
|
|
|
1372
1372
|
}), this.cachedMethods;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
class
|
|
1375
|
+
class On extends T {
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Blok Core API modules
|
|
1378
1378
|
*/
|
|
@@ -1398,7 +1398,7 @@ class Dn extends T {
|
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
class
|
|
1401
|
+
class Nn extends T {
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Available methods
|
|
1404
1404
|
* @returns {InlineToolbar}
|
|
@@ -1422,7 +1422,7 @@ class Ln extends T {
|
|
|
1422
1422
|
this.Blok.InlineToolbar.close();
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
|
-
class
|
|
1425
|
+
class Rn extends T {
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Available methods
|
|
1428
1428
|
* @returns {Listeners}
|
|
@@ -1462,7 +1462,7 @@ class On extends T {
|
|
|
1462
1462
|
this.listeners.offById(t);
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
class
|
|
1465
|
+
class Pn {
|
|
1466
1466
|
constructor() {
|
|
1467
1467
|
this.notifierModule = null, this.loadingPromise = null;
|
|
1468
1468
|
}
|
|
@@ -1471,7 +1471,7 @@ class Nn {
|
|
|
1471
1471
|
* @returns {Promise<NotifierModule>} loaded notifier module
|
|
1472
1472
|
*/
|
|
1473
1473
|
loadNotifierModule() {
|
|
1474
|
-
return this.notifierModule !== null ? Promise.resolve(this.notifierModule) : (this.loadingPromise === null && (this.loadingPromise = import("./index-
|
|
1474
|
+
return this.notifierModule !== null ? Promise.resolve(this.notifierModule) : (this.loadingPromise === null && (this.loadingPromise = import("./index-Bq6UT5hl.mjs").then((t) => {
|
|
1475
1475
|
const e = t;
|
|
1476
1476
|
if (!this.isNotifierModule(e))
|
|
1477
1477
|
throw new Error('notifier module does not expose a "show" method.');
|
|
@@ -1499,7 +1499,7 @@ class Nn {
|
|
|
1499
1499
|
return typeof t == "object" && t !== null && "show" in t && typeof t.show == "function";
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
class
|
|
1502
|
+
class Hn extends T {
|
|
1503
1503
|
/**
|
|
1504
1504
|
* @param moduleConfiguration - Module Configuration
|
|
1505
1505
|
* @param moduleConfiguration.config - Blok's config
|
|
@@ -1509,7 +1509,7 @@ class Rn extends T {
|
|
|
1509
1509
|
super({
|
|
1510
1510
|
config: t,
|
|
1511
1511
|
eventsDispatcher: e
|
|
1512
|
-
}), this.notifier = new
|
|
1512
|
+
}), this.notifier = new Pn();
|
|
1513
1513
|
}
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Available methods
|
|
@@ -1527,7 +1527,7 @@ class Rn extends T {
|
|
|
1527
1527
|
return this.notifier.show(t);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
|
-
class
|
|
1530
|
+
class Fn extends T {
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Available methods
|
|
1533
1533
|
*/
|
|
@@ -1555,12 +1555,12 @@ class Pn extends T {
|
|
|
1555
1555
|
return this.Blok.ReadOnly.isEnabled;
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
|
-
var Ot = { exports: {} },
|
|
1559
|
-
function
|
|
1560
|
-
return
|
|
1558
|
+
var Ot = { exports: {} }, _n = Ot.exports, Ye;
|
|
1559
|
+
function zn() {
|
|
1560
|
+
return Ye || (Ye = 1, (function(a, t) {
|
|
1561
1561
|
(function(e, o) {
|
|
1562
1562
|
a.exports = o();
|
|
1563
|
-
})(
|
|
1563
|
+
})(_n, function() {
|
|
1564
1564
|
function e(h) {
|
|
1565
1565
|
var u = h.tags, f = Object.keys(u), p = f.map(function(b) {
|
|
1566
1566
|
return typeof u[b];
|
|
@@ -1635,8 +1635,8 @@ function Fn() {
|
|
|
1635
1635
|
});
|
|
1636
1636
|
})(Ot)), Ot.exports;
|
|
1637
1637
|
}
|
|
1638
|
-
var
|
|
1639
|
-
const
|
|
1638
|
+
var Un = zn();
|
|
1639
|
+
const Kn = /* @__PURE__ */ Bn(Un), Wn = /^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i, $n = /\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi, we = (a, t, e = {}) => a.map((o) => {
|
|
1640
1640
|
const n = E(t) ? t(o.tool) : t, s = n != null ? n : {};
|
|
1641
1641
|
return A(s) && N(s) && N(e) ? o : R(w({}, o), {
|
|
1642
1642
|
data: ye(o.data, s, e)
|
|
@@ -1645,28 +1645,28 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1645
1645
|
const e = {
|
|
1646
1646
|
tags: t
|
|
1647
1647
|
};
|
|
1648
|
-
return new
|
|
1649
|
-
}, ye = (a, t, e) => Array.isArray(a) ?
|
|
1648
|
+
return new Kn(e).clean(a);
|
|
1649
|
+
}, ye = (a, t, e) => Array.isArray(a) ? jn(a, t, e) : A(a) ? Yn(a, t, e) : ht(a) ? Vn(a, t, e) : a, jn = (a, t, e) => a.map((o) => ye(o, t, e)), Yn = (a, t, e) => {
|
|
1650
1650
|
const o = {}, n = a;
|
|
1651
1651
|
for (const s in a) {
|
|
1652
1652
|
if (!Object.prototype.hasOwnProperty.call(a, s))
|
|
1653
1653
|
continue;
|
|
1654
|
-
const i = n[s], r = A(t) ? t : void 0, l = r == null ? void 0 : r[s], c = l !== void 0 &&
|
|
1654
|
+
const i = n[s], r = A(t) ? t : void 0, l = r == null ? void 0 : r[s], c = l !== void 0 && Xn(l) ? l : t;
|
|
1655
1655
|
o[s] = ye(i, c, e);
|
|
1656
1656
|
}
|
|
1657
1657
|
return o;
|
|
1658
|
-
},
|
|
1659
|
-
const o =
|
|
1658
|
+
}, Vn = (a, t, e) => {
|
|
1659
|
+
const o = ts(t, e);
|
|
1660
1660
|
if (o) {
|
|
1661
1661
|
const n = Z(a, o);
|
|
1662
|
-
return Xt(
|
|
1662
|
+
return Xt(Xe(n, o));
|
|
1663
1663
|
}
|
|
1664
1664
|
if (!N(e)) {
|
|
1665
1665
|
const n = Z(a, e);
|
|
1666
|
-
return Xt(
|
|
1666
|
+
return Xt(Xe(n, e));
|
|
1667
1667
|
}
|
|
1668
1668
|
return Xt(a);
|
|
1669
|
-
},
|
|
1669
|
+
}, Xn = (a) => A(a) || ko(a) || E(a), qn = (a) => a ? Wn.test(a) : !1, Xt = (a) => {
|
|
1670
1670
|
if (!a || a.indexOf("<") === -1)
|
|
1671
1671
|
return a;
|
|
1672
1672
|
if (typeof document != "undefined") {
|
|
@@ -1674,11 +1674,11 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1674
1674
|
return t.innerHTML = a, t.content.querySelectorAll("[href],[src]").forEach((o) => {
|
|
1675
1675
|
["href", "src"].forEach((n) => {
|
|
1676
1676
|
const s = o.getAttribute(n);
|
|
1677
|
-
|
|
1677
|
+
qn(s) && o.removeAttribute(n);
|
|
1678
1678
|
});
|
|
1679
1679
|
}), t.innerHTML;
|
|
1680
1680
|
}
|
|
1681
|
-
return a.replace(
|
|
1681
|
+
return a.replace($n, "");
|
|
1682
1682
|
}, xe = (a) => {
|
|
1683
1683
|
if (N(a))
|
|
1684
1684
|
return {};
|
|
@@ -1686,18 +1686,18 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1686
1686
|
for (const e in a)
|
|
1687
1687
|
Object.prototype.hasOwnProperty.call(a, e) && (t[e] = at(a[e]));
|
|
1688
1688
|
return t;
|
|
1689
|
-
},
|
|
1689
|
+
}, Ve = (a) => function(e) {
|
|
1690
1690
|
const o = a.call(this, e);
|
|
1691
1691
|
return o == null ? {} : o;
|
|
1692
|
-
},
|
|
1692
|
+
}, Zn = /* @__PURE__ */ new Set(["class", "id", "title", "role", "dir", "lang"]), Gn = (a) => {
|
|
1693
1693
|
const t = a.toLowerCase();
|
|
1694
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1695
|
-
},
|
|
1694
|
+
return t.startsWith("data-") || t.startsWith("aria-") || Zn.has(t);
|
|
1695
|
+
}, Jn = (a) => {
|
|
1696
1696
|
const t = {};
|
|
1697
1697
|
return Array.from(a.attributes).forEach((e) => {
|
|
1698
|
-
|
|
1698
|
+
Gn(e.name) && (t[e.name] = !0);
|
|
1699
1699
|
}), t;
|
|
1700
|
-
}, at = (a) => a === !0 ?
|
|
1700
|
+
}, at = (a) => a === !0 ? Ve(Jn) : a === !1 ? !1 : E(a) ? Ve(a) : ht(a) ? a : A(a) ? Bt({}, a) : a, Qn = (a, t) => {
|
|
1701
1701
|
if (N(a))
|
|
1702
1702
|
return xe(t);
|
|
1703
1703
|
const e = {};
|
|
@@ -1724,7 +1724,7 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1724
1724
|
e[o] = at(n);
|
|
1725
1725
|
}
|
|
1726
1726
|
return e;
|
|
1727
|
-
},
|
|
1727
|
+
}, ts = (a, t) => A(a) && !E(a) ? Qn(t, a) : a === !1 ? {} : N(t) ? null : xe(t), Te = (a, ...t) => {
|
|
1728
1728
|
if (N(a))
|
|
1729
1729
|
return Object.assign({}, ...t);
|
|
1730
1730
|
const e = xe(a);
|
|
@@ -1755,7 +1755,7 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
}), e;
|
|
1758
|
-
},
|
|
1758
|
+
}, Xe = (a, t) => {
|
|
1759
1759
|
if (typeof document == "undefined" || !a || a.indexOf("<") === -1)
|
|
1760
1760
|
return a;
|
|
1761
1761
|
const e = Object.entries(t).filter(([, n]) => E(n));
|
|
@@ -1765,7 +1765,7 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1765
1765
|
return o.innerHTML = a, e.forEach(([n, s]) => {
|
|
1766
1766
|
o.content.querySelectorAll(n).forEach((r) => {
|
|
1767
1767
|
const l = s(r);
|
|
1768
|
-
if (!(
|
|
1768
|
+
if (!(ko(l) || E(l) || l == null))
|
|
1769
1769
|
for (const [c, d] of Object.entries(l)) {
|
|
1770
1770
|
if (d === !1) {
|
|
1771
1771
|
r.removeAttribute(c);
|
|
@@ -1776,7 +1776,7 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1776
1776
|
});
|
|
1777
1777
|
}), o.innerHTML;
|
|
1778
1778
|
};
|
|
1779
|
-
class
|
|
1779
|
+
class es extends T {
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Available methods
|
|
1782
1782
|
* @returns {SanitizerConfig}
|
|
@@ -1796,7 +1796,7 @@ class Qn extends T {
|
|
|
1796
1796
|
return Z(t, e);
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
|
-
class
|
|
1799
|
+
class os extends T {
|
|
1800
1800
|
/**
|
|
1801
1801
|
* Available methods
|
|
1802
1802
|
* @returns {Saver}
|
|
@@ -1825,7 +1825,7 @@ class ts extends T {
|
|
|
1825
1825
|
throw new Error(n);
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
|
-
class
|
|
1828
|
+
class ns extends T {
|
|
1829
1829
|
constructor() {
|
|
1830
1830
|
super(...arguments), this.selectionUtils = new y();
|
|
1831
1831
|
}
|
|
@@ -1861,7 +1861,7 @@ class es extends T {
|
|
|
1861
1861
|
this.selectionUtils.expandToTag(t);
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
class
|
|
1864
|
+
class ss extends T {
|
|
1865
1865
|
/**
|
|
1866
1866
|
* Available methods
|
|
1867
1867
|
*/
|
|
@@ -1871,7 +1871,7 @@ class os extends T {
|
|
|
1871
1871
|
};
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
class
|
|
1874
|
+
class is extends T {
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Exported CSS class names for tool styling.
|
|
1877
1877
|
* These are single class names that can be safely used with classList.add().
|
|
@@ -1920,7 +1920,7 @@ class ns extends T {
|
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
class
|
|
1923
|
+
class rs extends T {
|
|
1924
1924
|
/**
|
|
1925
1925
|
* Available methods
|
|
1926
1926
|
* @returns {Toolbar}
|
|
@@ -1968,7 +1968,7 @@ class ss extends T {
|
|
|
1968
1968
|
(t != null ? t : !this.Blok.Toolbar.toolbox.opened) ? (this.Blok.Toolbar.moveAndOpen(), this.Blok.Toolbar.toolbox.open()) : this.Blok.Toolbar.toolbox.close();
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
|
-
const qt = 10,
|
|
1971
|
+
const qt = 10, as = "tooltip", ls = "aria-hidden", cs = "false", ds = "true", hs = "visibility", us = "visible", ps = "hidden", tt = class tt {
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Module constructor
|
|
1974
1974
|
*/
|
|
@@ -2121,7 +2121,7 @@ const qt = 10, is = "tooltip", rs = "aria-hidden", as = "false", ls = "true", cs
|
|
|
2121
2121
|
if (!this.nodes.wrapper)
|
|
2122
2122
|
return;
|
|
2123
2123
|
const t = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, e = this.nodes.wrapper.classList.contains(t);
|
|
2124
|
-
this.nodes.wrapper.style.setProperty(
|
|
2124
|
+
this.nodes.wrapper.style.setProperty(hs, e ? us : ps), this.nodes.wrapper.setAttribute(ls, e ? cs : ds), this.nodes.wrapper.setAttribute("data-blok-shown", e ? "true" : "false");
|
|
2125
2125
|
}
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Watch tooltip visibility changes for accessibility
|
|
@@ -2139,7 +2139,7 @@ const qt = 10, is = "tooltip", rs = "aria-hidden", as = "false", ls = "true", cs
|
|
|
2139
2139
|
* Ensure tooltip has proper accessibility attributes
|
|
2140
2140
|
*/
|
|
2141
2141
|
ensureTooltipAttributes() {
|
|
2142
|
-
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(m.interface) || this.nodes.wrapper.getAttribute(m.interface) !== Yt) && this.nodes.wrapper.setAttribute(m.interface, Yt), this.nodes.wrapper.setAttribute("role",
|
|
2142
|
+
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(m.interface) || this.nodes.wrapper.getAttribute(m.interface) !== Yt) && this.nodes.wrapper.setAttribute(m.interface, Yt), this.nodes.wrapper.setAttribute("role", as), this.watchTooltipVisibility());
|
|
2143
2143
|
}
|
|
2144
2144
|
/**
|
|
2145
2145
|
* Calculates element coords and moves tooltip bottom of the element
|
|
@@ -2232,16 +2232,16 @@ const qt = 10, is = "tooltip", rs = "aria-hidden", as = "false", ls = "true", cs
|
|
|
2232
2232
|
};
|
|
2233
2233
|
tt.instance = null;
|
|
2234
2234
|
let ae = tt;
|
|
2235
|
-
const $t = () => ae.getInstance(),
|
|
2235
|
+
const $t = () => ae.getInstance(), fs = (a, t, e) => {
|
|
2236
2236
|
$t().show(a, t, e != null ? e : {});
|
|
2237
2237
|
}, Tt = () => {
|
|
2238
2238
|
$t().hide();
|
|
2239
2239
|
}, Ut = (a, t, e) => {
|
|
2240
2240
|
$t().onHover(a, t, e != null ? e : {});
|
|
2241
|
-
},
|
|
2241
|
+
}, gs = () => {
|
|
2242
2242
|
$t().destroy();
|
|
2243
2243
|
};
|
|
2244
|
-
class
|
|
2244
|
+
class ms extends T {
|
|
2245
2245
|
/**
|
|
2246
2246
|
* @class
|
|
2247
2247
|
* @param moduleConfiguration - Module Configuration
|
|
@@ -2271,7 +2271,7 @@ class fs extends T {
|
|
|
2271
2271
|
* @param {TooltipOptions} options - tooltip options
|
|
2272
2272
|
*/
|
|
2273
2273
|
show(t, e, o) {
|
|
2274
|
-
|
|
2274
|
+
fs(t, e, o);
|
|
2275
2275
|
}
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Method hides tooltip on HTML page
|
|
@@ -2289,7 +2289,7 @@ class fs extends T {
|
|
|
2289
2289
|
Ut(t, e, o);
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
|
-
class
|
|
2292
|
+
class bs extends T {
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Available methods / getters
|
|
2295
2295
|
*/
|
|
@@ -2317,7 +2317,7 @@ class gs extends T {
|
|
|
2317
2317
|
};
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
|
-
class
|
|
2320
|
+
class ks extends T {
|
|
2321
2321
|
/**
|
|
2322
2322
|
* Available methods for public API
|
|
2323
2323
|
*/
|
|
@@ -2710,7 +2710,7 @@ const mt = {
|
|
|
2710
2710
|
title: "",
|
|
2711
2711
|
description: "opacity-60 mt-[3px]"
|
|
2712
2712
|
};
|
|
2713
|
-
class
|
|
2713
|
+
class vs {
|
|
2714
2714
|
/**
|
|
2715
2715
|
* Constructs the hint content instance
|
|
2716
2716
|
* @param params - hint content parameters
|
|
@@ -2777,7 +2777,7 @@ class Se {
|
|
|
2777
2777
|
* @param hintData - hint data
|
|
2778
2778
|
*/
|
|
2779
2779
|
addHint(t, e) {
|
|
2780
|
-
const o = new
|
|
2780
|
+
const o = new vs(e);
|
|
2781
2781
|
Ut(t, o.getElement(), {
|
|
2782
2782
|
placement: e.position
|
|
2783
2783
|
});
|
|
@@ -2873,12 +2873,12 @@ const lt = {
|
|
|
2873
2873
|
* Used alongside data-blok-focused attribute.
|
|
2874
2874
|
*/
|
|
2875
2875
|
focused: "is-focused"
|
|
2876
|
-
},
|
|
2876
|
+
}, Bs = {
|
|
2877
2877
|
/**
|
|
2878
2878
|
* Item in inline context - more compact styling
|
|
2879
2879
|
*/
|
|
2880
2880
|
item: "rounded p-1"
|
|
2881
|
-
},
|
|
2881
|
+
}, ws = {
|
|
2882
2882
|
/**
|
|
2883
2883
|
* Nested item - back to desktop popover styling
|
|
2884
2884
|
*/
|
|
@@ -3022,7 +3022,7 @@ class G extends Se {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
3024
3024
|
const u = document.createElement("div");
|
|
3025
|
-
u.className = this.getChevronClass(s), u.setAttribute(m.popoverItemIcon, ""), u.setAttribute(m.popoverItemIconChevronRight, ""), u.setAttribute("data-blok-testid", "popover-item-chevron-right"), u.innerHTML =
|
|
3025
|
+
u.className = this.getChevronClass(s), u.setAttribute(m.popoverItemIcon, ""), u.setAttribute(m.popoverItemIconChevronRight, ""), u.setAttribute("data-blok-testid", "popover-item-chevron-right"), u.innerHTML = Vo, t.appendChild(u), this.nodes.chevron = u;
|
|
3026
3026
|
}
|
|
3027
3027
|
}
|
|
3028
3028
|
/**
|
|
@@ -3040,8 +3040,8 @@ class G extends Se {
|
|
|
3040
3040
|
const t = (n = (o = this.renderParams) == null ? void 0 : o.isInline) != null ? n : !1, e = (i = (s = this.renderParams) == null ? void 0 : s.isNestedInline) != null ? i : !1;
|
|
3041
3041
|
return C(
|
|
3042
3042
|
lt.item,
|
|
3043
|
-
t &&
|
|
3044
|
-
e &&
|
|
3043
|
+
t && Bs.item,
|
|
3044
|
+
e && ws.item,
|
|
3045
3045
|
this.params.isDisabled && lt.itemDisabled
|
|
3046
3046
|
);
|
|
3047
3047
|
}
|
|
@@ -3247,7 +3247,7 @@ const ot = {
|
|
|
3247
3247
|
nestedContainer: "py-1 px-[3px]",
|
|
3248
3248
|
nestedLine: "w-full h-px"
|
|
3249
3249
|
};
|
|
3250
|
-
class
|
|
3250
|
+
class To extends Se {
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Constructs the instance
|
|
3253
3253
|
* @param renderParams - optional render params for styling context
|
|
@@ -3299,7 +3299,7 @@ var X = /* @__PURE__ */ ((a) => (a.Closed = "closed", a.ClosedOnActivate = "clos
|
|
|
3299
3299
|
const Zt = {
|
|
3300
3300
|
root: "",
|
|
3301
3301
|
rootHidden: "hidden"
|
|
3302
|
-
},
|
|
3302
|
+
}, qe = {
|
|
3303
3303
|
root: "flex items-center"
|
|
3304
3304
|
};
|
|
3305
3305
|
class St extends Se {
|
|
@@ -3343,7 +3343,7 @@ class St extends Se {
|
|
|
3343
3343
|
updateRootClasses() {
|
|
3344
3344
|
this.nodes.root && (this.nodes.root.className = C(
|
|
3345
3345
|
Zt.root,
|
|
3346
|
-
this.isInline &&
|
|
3346
|
+
this.isInline && qe.root,
|
|
3347
3347
|
this.isHidden && Zt.rootHidden
|
|
3348
3348
|
));
|
|
3349
3349
|
}
|
|
@@ -3357,7 +3357,7 @@ class St extends Se {
|
|
|
3357
3357
|
const o = document.createElement("div");
|
|
3358
3358
|
return o.className = C(
|
|
3359
3359
|
Zt.root,
|
|
3360
|
-
this.isInline &&
|
|
3360
|
+
this.isInline && qe.root
|
|
3361
3361
|
), o.setAttribute(m.popoverItemHtml, ""), o.setAttribute("data-blok-testid", "popover-item-html"), t.name && o.setAttribute("data-blok-item-name", t.name), o.appendChild(t.element), t.hint !== void 0 && ((n = e == null ? void 0 : e.hint) == null ? void 0 : n.enabled) !== !1 && this.addHint(o, R(w({}, t.hint), {
|
|
3362
3362
|
position: ((s = e == null ? void 0 : e.hint) == null ? void 0 : s.position) || "right",
|
|
3363
3363
|
alignment: ((i = e == null ? void 0 : e.hint) == null ? void 0 : i.alignment) || "center"
|
|
@@ -3380,9 +3380,9 @@ const L = {
|
|
|
3380
3380
|
popover: "relative",
|
|
3381
3381
|
// Container for inline popover
|
|
3382
3382
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
3383
|
-
},
|
|
3383
|
+
}, ys = (a) => `level-${a}`;
|
|
3384
3384
|
var W = /* @__PURE__ */ ((a) => (a.NestingLevel = "--nesting-level", a.PopoverHeight = "--popover-height", a.InlinePopoverWidth = "--inline-popover-width", a.PopoverTop = "--popover-top", a.PopoverLeft = "--popover-left", a.TriggerItemLeft = "--trigger-item-left", a.TriggerItemTop = "--trigger-item-top", a))(W || {});
|
|
3385
|
-
class
|
|
3385
|
+
class So extends Ct {
|
|
3386
3386
|
/**
|
|
3387
3387
|
* Constructs the instance
|
|
3388
3388
|
* @param params - popover construction params
|
|
@@ -3456,7 +3456,7 @@ class xo extends Ct {
|
|
|
3456
3456
|
return t.map((e) => {
|
|
3457
3457
|
switch (e.type) {
|
|
3458
3458
|
case O.Separator:
|
|
3459
|
-
return new
|
|
3459
|
+
return new To(this.itemsRenderParams[O.Separator]);
|
|
3460
3460
|
case O.Html:
|
|
3461
3461
|
return new St(e, this.itemsRenderParams[O.Html]);
|
|
3462
3462
|
default:
|
|
@@ -3591,7 +3591,7 @@ class xo extends Ct {
|
|
|
3591
3591
|
});
|
|
3592
3592
|
}
|
|
3593
3593
|
}
|
|
3594
|
-
const
|
|
3594
|
+
const Co = (a, t) => {
|
|
3595
3595
|
var i, r, l, c, d;
|
|
3596
3596
|
const e = t.toLowerCase(), o = (r = (i = a.title) == null ? void 0 : i.toLowerCase()) != null ? r : "", n = (c = (l = a.englishTitle) == null ? void 0 : l.toLowerCase()) != null ? c : "", s = (d = a.searchTerms) != null ? d : [];
|
|
3597
3597
|
return o.includes(e) || n.includes(e) || s.some((h) => h.toLowerCase().includes(e));
|
|
@@ -3602,7 +3602,7 @@ const Gt = {
|
|
|
3602
3602
|
icon: "w-toolbox-btn h-toolbox-btn flex items-center justify-center mr-2 [&_svg]:w-icon [&_svg]:h-icon [&_svg]:text-gray-text",
|
|
3603
3603
|
input: "text-sm outline-none font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[22px] min-w-[calc(100%-theme('spacing.6')-10px)] placeholder:text-gray-text placeholder:font-medium"
|
|
3604
3604
|
};
|
|
3605
|
-
class
|
|
3605
|
+
class xs extends Ct {
|
|
3606
3606
|
/**
|
|
3607
3607
|
* @param options - available config
|
|
3608
3608
|
* @param options.items - searchable items list
|
|
@@ -3613,7 +3613,7 @@ class ws extends Ct {
|
|
|
3613
3613
|
this.applySearch(this.input.value);
|
|
3614
3614
|
}, this.listeners = new It(), this.items = t, this.wrapper = g.make("div", Gt.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
|
|
3615
3615
|
const o = g.make("div", Gt.icon, {
|
|
3616
|
-
innerHTML:
|
|
3616
|
+
innerHTML: Xo
|
|
3617
3617
|
});
|
|
3618
3618
|
this.input = g.make("input", Gt.input, {
|
|
3619
3619
|
type: "search",
|
|
@@ -3695,10 +3695,10 @@ class ws extends Ct {
|
|
|
3695
3695
|
* @param item - item to be checked
|
|
3696
3696
|
*/
|
|
3697
3697
|
checkItem(t) {
|
|
3698
|
-
return
|
|
3698
|
+
return Co(t, this.searchQuery);
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
|
-
class ft extends
|
|
3701
|
+
class ft extends So {
|
|
3702
3702
|
/**
|
|
3703
3703
|
* Construct the instance
|
|
3704
3704
|
* @param params - popover params
|
|
@@ -3717,7 +3717,7 @@ class ft extends xo {
|
|
|
3717
3717
|
var c;
|
|
3718
3718
|
const s = n.query === "", i = n.items.length === 0, r = n.items;
|
|
3719
3719
|
this.items.forEach((d) => {
|
|
3720
|
-
const h = d instanceof G, u = d instanceof
|
|
3720
|
+
const h = d instanceof G, u = d instanceof To || d instanceof St, f = h ? !r.includes(d) : u && (i || !s);
|
|
3721
3721
|
d.toggleHidden(f);
|
|
3722
3722
|
}), this.toggleNothingFoundMessage(i);
|
|
3723
3723
|
const l = s ? this.flippableElements : n.items.map((d) => d.getElement());
|
|
@@ -3965,7 +3965,7 @@ class ft extends xo {
|
|
|
3965
3965
|
* Adds search to the popover
|
|
3966
3966
|
*/
|
|
3967
3967
|
addSearch() {
|
|
3968
|
-
this.search = new
|
|
3968
|
+
this.search = new xs({
|
|
3969
3969
|
items: this.itemsDefault,
|
|
3970
3970
|
placeholder: this.messages.search
|
|
3971
3971
|
}), this.search.on(Ce.Search, this.onSearch);
|
|
@@ -3978,15 +3978,15 @@ class ft extends xo {
|
|
|
3978
3978
|
* @param query - search query text
|
|
3979
3979
|
*/
|
|
3980
3980
|
filterItems(t) {
|
|
3981
|
-
const e = this.itemsDefault.filter((o) =>
|
|
3981
|
+
const e = this.itemsDefault.filter((o) => Co(o, t));
|
|
3982
3982
|
this.onSearch({
|
|
3983
3983
|
query: t,
|
|
3984
3984
|
items: e
|
|
3985
3985
|
});
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
const
|
|
3989
|
-
class
|
|
3988
|
+
const Ts = "38px", Ss = "46px";
|
|
3989
|
+
class Ze extends ft {
|
|
3990
3990
|
/**
|
|
3991
3991
|
* Constructs the instance
|
|
3992
3992
|
* @param params - instance parameters
|
|
@@ -4048,7 +4048,7 @@ class qe extends ft {
|
|
|
4048
4048
|
}, this.nodes.popover.className = C(ut.popover), this.nodes.popoverContainer && (this.nodes.popoverContainer.className = C(
|
|
4049
4049
|
L.popoverContainer,
|
|
4050
4050
|
ut.popoverContainer
|
|
4051
|
-
)), this.nodes.items && (this.nodes.items.className = C(L.items, "flex")), this.nodes.popover.style.setProperty("--height",
|
|
4051
|
+
)), this.nodes.items && (this.nodes.items.className = C(L.items, "flex")), this.nodes.popover.style.setProperty("--height", Ts), this.nodes.popover.style.setProperty("--height-mobile", Ss), this.nodes.popover.setAttribute(m.popoverInline, ""), (n = this.flipper) == null || n.setHandleContentEditableTargets(!0), this.items.forEach((s) => {
|
|
4052
4052
|
!(s instanceof G) && !(s instanceof St) || s.hasChildren && s.isChildrenOpen && this.showNestedItems(s);
|
|
4053
4053
|
});
|
|
4054
4054
|
}
|
|
@@ -4141,7 +4141,7 @@ class qe extends ft {
|
|
|
4141
4141
|
"h-fit p-1.5 flex-col"
|
|
4142
4142
|
));
|
|
4143
4143
|
const s = o.querySelector(`[${m.popoverItems}]`);
|
|
4144
|
-
if (s && (s.className = C(s.className, "block w-full")), o.setAttribute(m.nestedLevel,
|
|
4144
|
+
if (s && (s.className = C(s.className, "block w-full")), o.setAttribute(m.nestedLevel, ys(e.nestingLevel)), e.nestingLevel === 1 && n) {
|
|
4145
4145
|
n.className = C(n.className, "left-0");
|
|
4146
4146
|
const r = ct() ? "calc(var(--height-mobile) + 3px)" : "calc(var(--height) + 3px)";
|
|
4147
4147
|
n.style.top = r;
|
|
@@ -4212,7 +4212,7 @@ const Jt = {
|
|
|
4212
4212
|
text: "text-lg font-semibold text-text-primary",
|
|
4213
4213
|
backButton: "border-0 bg-transparent w-9 h-9 text-text-primary cursor-pointer [&_svg]:block [&_svg]:w-7 [&_svg]:h-7"
|
|
4214
4214
|
};
|
|
4215
|
-
class
|
|
4215
|
+
class Cs {
|
|
4216
4216
|
/**
|
|
4217
4217
|
* Constructs the instance
|
|
4218
4218
|
* @param params - popover header params
|
|
@@ -4231,7 +4231,7 @@ class Ts {
|
|
|
4231
4231
|
"data-blok-testid": "popover-header-text",
|
|
4232
4232
|
[m.popoverHeaderText]: ""
|
|
4233
4233
|
})
|
|
4234
|
-
}, this.nodes.backButton.innerHTML =
|
|
4234
|
+
}, this.nodes.backButton.innerHTML = qo, this.nodes.root.appendChild(this.nodes.backButton), this.listeners.on(this.nodes.backButton, "click", this.onBackButtonClick), this.nodes.text.innerText = this.text, this.nodes.root.appendChild(this.nodes.text);
|
|
4235
4235
|
}
|
|
4236
4236
|
/**
|
|
4237
4237
|
* Returns popover header root html element
|
|
@@ -4246,7 +4246,7 @@ class Ts {
|
|
|
4246
4246
|
this.nodes.root.remove(), this.listeners.destroy();
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
class
|
|
4249
|
+
class Is {
|
|
4250
4250
|
constructor() {
|
|
4251
4251
|
this.history = [];
|
|
4252
4252
|
}
|
|
@@ -4283,7 +4283,7 @@ class Ss {
|
|
|
4283
4283
|
this.pop();
|
|
4284
4284
|
}
|
|
4285
4285
|
}
|
|
4286
|
-
class
|
|
4286
|
+
class Io extends So {
|
|
4287
4287
|
/**
|
|
4288
4288
|
* Construct the instance
|
|
4289
4289
|
* @param params - popover params
|
|
@@ -4300,7 +4300,7 @@ class So extends xo {
|
|
|
4300
4300
|
enabled: !1
|
|
4301
4301
|
}
|
|
4302
4302
|
}
|
|
4303
|
-
}), this.scrollLocker = new le(), this.history = new
|
|
4303
|
+
}), this.scrollLocker = new le(), this.history = new Is(), this.isHidden = !0, this.nodes.overlay = g.make("div", [L.popoverOverlay], {
|
|
4304
4304
|
[m.popoverOverlay]: "",
|
|
4305
4305
|
[m.overlayHidden]: "",
|
|
4306
4306
|
"data-blok-testid": "popover-overlay"
|
|
@@ -4356,7 +4356,7 @@ class So extends xo {
|
|
|
4356
4356
|
var s, i;
|
|
4357
4357
|
this.header !== null && this.header !== void 0 && (this.header.destroy(), this.header = null);
|
|
4358
4358
|
const o = e !== void 0;
|
|
4359
|
-
o && (this.header = new
|
|
4359
|
+
o && (this.header = new Cs({
|
|
4360
4360
|
text: e,
|
|
4361
4361
|
onBackButtonClick: () => {
|
|
4362
4362
|
this.history.pop(), this.updateItemsAndHeader(this.history.currentItems, this.history.currentTitle);
|
|
@@ -4373,7 +4373,7 @@ class So extends xo {
|
|
|
4373
4373
|
});
|
|
4374
4374
|
}
|
|
4375
4375
|
}
|
|
4376
|
-
class
|
|
4376
|
+
class Es extends T {
|
|
4377
4377
|
constructor() {
|
|
4378
4378
|
super(...arguments), this.opened = !1, this.selection = new y(), this.popover = null, this.flipperInstance = new J({
|
|
4379
4379
|
focusedItemClass: lt.focused,
|
|
@@ -4440,7 +4440,7 @@ class Cs extends T {
|
|
|
4440
4440
|
if (s === void 0)
|
|
4441
4441
|
return;
|
|
4442
4442
|
this.selection.save(), n || (this.Blok.BlockSelection.selectBlock(s), this.Blok.BlockSelection.clearCache());
|
|
4443
|
-
const { toolTunes: i, commonTunes: r } = s.getTunes(), l = ct() ?
|
|
4443
|
+
const { toolTunes: i, commonTunes: r } = s.getTunes(), l = ct() ? Io : ft, c = {
|
|
4444
4444
|
searchable: !1,
|
|
4445
4445
|
trigger: e || this.nodes.wrapper,
|
|
4446
4446
|
items: await this.getTunesItems(s, r, i),
|
|
@@ -4479,14 +4479,14 @@ class Cs extends T {
|
|
|
4479
4479
|
!i && o !== void 0 && o.length > 0 && (n.push(...o), n.push({
|
|
4480
4480
|
type: O.Separator
|
|
4481
4481
|
}));
|
|
4482
|
-
const r = Array.from(this.Blok.Tools.blockTools.values()), c = (i ? await
|
|
4482
|
+
const r = Array.from(this.Blok.Tools.blockTools.values()), c = (i ? await Zo(
|
|
4483
4483
|
s.map((d) => new q(d)),
|
|
4484
4484
|
r
|
|
4485
|
-
) : await
|
|
4485
|
+
) : await Go(t, r)).reduce((d, h) => (h.toolbox === void 0 || h.toolbox.forEach((u) => {
|
|
4486
4486
|
var f;
|
|
4487
4487
|
d.push({
|
|
4488
4488
|
icon: u.icon,
|
|
4489
|
-
title:
|
|
4489
|
+
title: vo(this.Blok.I18n, u, h.name),
|
|
4490
4490
|
name: (f = u.name) != null ? f : h.name,
|
|
4491
4491
|
closeOnActivate: !0,
|
|
4492
4492
|
onActivate: async () => {
|
|
@@ -4502,7 +4502,7 @@ class Cs extends T {
|
|
|
4502
4502
|
});
|
|
4503
4503
|
}), d), []);
|
|
4504
4504
|
return c.length > 0 && (n.push({
|
|
4505
|
-
icon:
|
|
4505
|
+
icon: Jo,
|
|
4506
4506
|
name: "convert-to",
|
|
4507
4507
|
title: this.Blok.I18n.t("popover.convertTo"),
|
|
4508
4508
|
children: {
|
|
@@ -4511,7 +4511,7 @@ class Cs extends T {
|
|
|
4511
4511
|
}), n.push({
|
|
4512
4512
|
type: O.Separator
|
|
4513
4513
|
})), i ? n.push({
|
|
4514
|
-
icon:
|
|
4514
|
+
icon: Bo,
|
|
4515
4515
|
title: this.Blok.I18n.t("blockSettings.delete"),
|
|
4516
4516
|
name: "delete",
|
|
4517
4517
|
closeOnActivate: !0,
|
|
@@ -4715,11 +4715,11 @@ line2` };
|
|
|
4715
4715
|
this.flipperKeydownSource !== null && this.flipperKeydownHandler !== null && this.flipperKeydownSource.removeEventListener("keydown", this.flipperKeydownHandler, !0), this.flipperInstance.setHandleContentEditableTargets(!1), this.flipperKeydownSource = null, this.flipperKeydownHandler = null;
|
|
4716
4716
|
}
|
|
4717
4717
|
}
|
|
4718
|
-
const
|
|
4718
|
+
const Ge = {
|
|
4719
4719
|
SHIFT: ["SHIFT"],
|
|
4720
4720
|
CMD: ["CMD", "CONTROL", "COMMAND", "WINDOWS", "CTRL"],
|
|
4721
4721
|
ALT: ["ALT", "OPTION"]
|
|
4722
|
-
},
|
|
4722
|
+
}, As = {
|
|
4723
4723
|
0: "Digit0",
|
|
4724
4724
|
1: "Digit1",
|
|
4725
4725
|
2: "Digit2",
|
|
@@ -4766,10 +4766,10 @@ const Ze = {
|
|
|
4766
4766
|
INSERT: "Insert",
|
|
4767
4767
|
DELETE: "Delete",
|
|
4768
4768
|
".": "Period"
|
|
4769
|
-
},
|
|
4770
|
-
(e) =>
|
|
4769
|
+
}, Ms = (a) => Object.keys(Ge).find(
|
|
4770
|
+
(e) => Ge[e].includes(a)
|
|
4771
4771
|
);
|
|
4772
|
-
class
|
|
4772
|
+
class Ds {
|
|
4773
4773
|
/**
|
|
4774
4774
|
* Creates a new Shortcut instance
|
|
4775
4775
|
* @param options - Configuration options
|
|
@@ -4796,7 +4796,7 @@ class As {
|
|
|
4796
4796
|
parseShortcutName(t) {
|
|
4797
4797
|
const e = t.split("+");
|
|
4798
4798
|
for (const o of e) {
|
|
4799
|
-
const n = o.toUpperCase(), s =
|
|
4799
|
+
const n = o.toUpperCase(), s = Ms(n);
|
|
4800
4800
|
s !== void 0 ? this.commands[s] = !0 : this.keys[n] = !0;
|
|
4801
4801
|
}
|
|
4802
4802
|
}
|
|
@@ -4822,7 +4822,7 @@ class As {
|
|
|
4822
4822
|
*/
|
|
4823
4823
|
checkKeys(t) {
|
|
4824
4824
|
return Object.keys(this.keys).every((o) => {
|
|
4825
|
-
const n =
|
|
4825
|
+
const n = As[o];
|
|
4826
4826
|
return t.code === n;
|
|
4827
4827
|
});
|
|
4828
4828
|
}
|
|
@@ -4835,7 +4835,7 @@ class As {
|
|
|
4835
4835
|
e && o && this.callback(t);
|
|
4836
4836
|
}
|
|
4837
4837
|
}
|
|
4838
|
-
class
|
|
4838
|
+
class Ls {
|
|
4839
4839
|
constructor() {
|
|
4840
4840
|
this.registeredShortcuts = /* @__PURE__ */ new Map();
|
|
4841
4841
|
}
|
|
@@ -4848,7 +4848,7 @@ class Ms {
|
|
|
4848
4848
|
throw Error(
|
|
4849
4849
|
`Shortcut ${t.name} is already registered for ${t.on}. Please remove it before add a new handler.`
|
|
4850
4850
|
);
|
|
4851
|
-
const o = new
|
|
4851
|
+
const o = new Ds({
|
|
4852
4852
|
name: t.name,
|
|
4853
4853
|
on: t.on,
|
|
4854
4854
|
callback: t.handler
|
|
@@ -4885,9 +4885,9 @@ class Ms {
|
|
|
4885
4885
|
return (this.registeredShortcuts.get(t) || []).find(({ name: n }) => n === e);
|
|
4886
4886
|
}
|
|
4887
4887
|
}
|
|
4888
|
-
const z = new
|
|
4888
|
+
const z = new Ls();
|
|
4889
4889
|
var Nt = /* @__PURE__ */ ((a) => (a.Opened = "toolbox-opened", a.Closed = "toolbox-closed", a.BlockAdded = "toolbox-block-added", a))(Nt || {});
|
|
4890
|
-
class
|
|
4890
|
+
class Os extends Ct {
|
|
4891
4891
|
/**
|
|
4892
4892
|
* Toolbox constructor
|
|
4893
4893
|
* @param options - available parameters
|
|
@@ -5004,7 +5004,7 @@ class Ds extends Ct {
|
|
|
5004
5004
|
* Creates toolbox popover and appends it inside wrapper element
|
|
5005
5005
|
*/
|
|
5006
5006
|
initPopover() {
|
|
5007
|
-
const t = ct() ?
|
|
5007
|
+
const t = ct() ? Io : ft;
|
|
5008
5008
|
this.popover = new t({
|
|
5009
5009
|
scopeElement: this.api.ui.nodes.redactor,
|
|
5010
5010
|
trigger: this.triggerElement || this.nodes.toolbox,
|
|
@@ -5044,12 +5044,12 @@ class Ds extends Ct {
|
|
|
5044
5044
|
const i = o.titleKey, r = i ? `toolNames.${i}` : void 0, l = r ? this.api.i18n.getEnglishTranslation(r) : o.title, c = (f = o.searchTerms) != null ? f : [], d = (p = n.searchTerms) != null ? p : [], h = [.../* @__PURE__ */ new Set([...c, ...d])], u = (b = o.shortcut) != null ? b : s ? n.shortcut : void 0;
|
|
5045
5045
|
return {
|
|
5046
5046
|
icon: o.icon,
|
|
5047
|
-
title:
|
|
5047
|
+
title: vo(this.i18n, o, Ht(n.name)),
|
|
5048
5048
|
name: (k = o.name) != null ? k : n.name,
|
|
5049
5049
|
onActivate: () => {
|
|
5050
5050
|
this.toolButtonActivated(n.name, o.data);
|
|
5051
5051
|
},
|
|
5052
|
-
secondaryLabel: u ?
|
|
5052
|
+
secondaryLabel: u ? wo(u) : "",
|
|
5053
5053
|
englishTitle: l,
|
|
5054
5054
|
searchTerms: h
|
|
5055
5055
|
};
|
|
@@ -5152,8 +5152,8 @@ class Ds extends Ct {
|
|
|
5152
5152
|
return (((n = e == null ? void 0 : e.textContent) == null ? void 0 : n.trim()) || "").startsWith("/");
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
const ce = "block hovered",
|
|
5156
|
-
class
|
|
5155
|
+
const ce = "block hovered", Je = 10;
|
|
5156
|
+
class Ns extends T {
|
|
5157
5157
|
/**
|
|
5158
5158
|
* @class
|
|
5159
5159
|
* @param moduleConfiguration - Module Configuration
|
|
@@ -5435,18 +5435,18 @@ class Ls extends T {
|
|
|
5435
5435
|
]);
|
|
5436
5436
|
this.nodes.content = e, this.nodes.actions = o, o.setAttribute("data-blok-testid", "toolbar-actions"), g.append(t, e), g.append(e, o);
|
|
5437
5437
|
const n = g.make("div", this.CSS.plusButton, {
|
|
5438
|
-
innerHTML:
|
|
5438
|
+
innerHTML: Qo
|
|
5439
5439
|
});
|
|
5440
5440
|
n.setAttribute("data-blok-testid", "plus-button"), this.nodes.plusButton = n, g.append(o, n), this.readOnlyMutableListeners.on(n, "mousedown", (h) => {
|
|
5441
5441
|
Tt(), this.setupClickVsDrag(
|
|
5442
5442
|
h,
|
|
5443
5443
|
(u) => {
|
|
5444
|
-
const p =
|
|
5444
|
+
const p = ze().win ? u.ctrlKey : u.altKey;
|
|
5445
5445
|
this.plusButtonClicked(p);
|
|
5446
5446
|
}
|
|
5447
5447
|
);
|
|
5448
5448
|
}, !0);
|
|
5449
|
-
const i =
|
|
5449
|
+
const i = ze().win ? this.Blok.I18n.t("toolbox.ctrlAddAbove") : this.Blok.I18n.t("toolbox.optionAddAbove"), r = this.createTooltipContent([
|
|
5450
5450
|
this.Blok.I18n.t("toolbox.addBelow"),
|
|
5451
5451
|
i
|
|
5452
5452
|
]);
|
|
@@ -5458,7 +5458,7 @@ class Ls extends T {
|
|
|
5458
5458
|
this.CSS.settingsToggler,
|
|
5459
5459
|
"group-data-[blok-dragging=true]:cursor-grabbing"
|
|
5460
5460
|
], {
|
|
5461
|
-
innerHTML:
|
|
5461
|
+
innerHTML: tn
|
|
5462
5462
|
});
|
|
5463
5463
|
l.setAttribute(m.settingsToggler, ""), l.setAttribute(m.dragHandle, ""), l.setAttribute("data-blok-testid", "settings-toggler"), l.setAttribute("role", "button"), l.setAttribute("tabindex", "-1"), l.setAttribute(
|
|
5464
5464
|
"aria-label",
|
|
@@ -5483,7 +5483,7 @@ class Ls extends T {
|
|
|
5483
5483
|
* Creates the Toolbox instance and return it's rendered element
|
|
5484
5484
|
*/
|
|
5485
5485
|
makeToolbox() {
|
|
5486
|
-
this.toolboxInstance = new
|
|
5486
|
+
this.toolboxInstance = new Os({
|
|
5487
5487
|
api: this.Blok.API.methods,
|
|
5488
5488
|
tools: this.Blok.Tools.blockTools,
|
|
5489
5489
|
i18nLabels: {
|
|
@@ -5661,7 +5661,7 @@ class Ls extends T {
|
|
|
5661
5661
|
x: t.clientX,
|
|
5662
5662
|
y: t.clientY
|
|
5663
5663
|
}, s = (i) => {
|
|
5664
|
-
document.removeEventListener("mouseup", s, !0), this.pendingMouseUpListeners.delete(s), !(o != null && o.beforeCallback && !o.beforeCallback() || Math.abs(i.clientX - n.x) >
|
|
5664
|
+
document.removeEventListener("mouseup", s, !0), this.pendingMouseUpListeners.delete(s), !(o != null && o.beforeCallback && !o.beforeCallback() || Math.abs(i.clientX - n.x) > Je || Math.abs(i.clientY - n.y) > Je) && e(i);
|
|
5665
5665
|
};
|
|
5666
5666
|
this.pendingMouseUpListeners.add(s), document.addEventListener("mouseup", s, !0);
|
|
5667
5667
|
}
|
|
@@ -5677,7 +5677,7 @@ class Ls extends T {
|
|
|
5677
5677
|
}
|
|
5678
5678
|
}
|
|
5679
5679
|
var dt = /* @__PURE__ */ ((a) => (a[a.Block = 0] = "Block", a[a.Inline = 1] = "Inline", a[a.Tune = 2] = "Tune", a))(dt || {});
|
|
5680
|
-
const
|
|
5680
|
+
const Rs = /* @__PURE__ */ new Set([
|
|
5681
5681
|
"class",
|
|
5682
5682
|
"inlineToolbar",
|
|
5683
5683
|
"tunes",
|
|
@@ -5686,7 +5686,7 @@ const Os = /* @__PURE__ */ new Set([
|
|
|
5686
5686
|
"config",
|
|
5687
5687
|
"isInternal"
|
|
5688
5688
|
]);
|
|
5689
|
-
var Rt = /* @__PURE__ */ ((a) => (a.Shortcut = "shortcut", a.Toolbox = "toolbox", a.EnabledInlineTools = "inlineToolbar", a.EnabledBlockTunes = "tunes", a.Config = "config", a))(Rt || {}),
|
|
5689
|
+
var Rt = /* @__PURE__ */ ((a) => (a.Shortcut = "shortcut", a.Toolbox = "toolbox", a.EnabledInlineTools = "inlineToolbar", a.EnabledBlockTunes = "tunes", a.Config = "config", a))(Rt || {}), Eo = /* @__PURE__ */ ((a) => (a.Shortcut = "shortcut", a.SanitizeConfig = "sanitize", a))(Eo || {}), pt = /* @__PURE__ */ ((a) => (a.IsEnabledLineBreaks = "enableLineBreaks", a.Toolbox = "toolbox", a.ConversionConfig = "conversionConfig", a.IsReadOnlySupported = "isReadOnlySupported", a.PasteConfig = "pasteConfig", a))(pt || {}), Ao = /* @__PURE__ */ ((a) => (a.IsInline = "isInline", a.Title = "title", a.IsReadOnlySupported = "isReadOnlySupported", a))(Ao || {}), Mo = /* @__PURE__ */ ((a) => (a.IsTune = "isTune", a))(Mo || {});
|
|
5690
5690
|
class Ie {
|
|
5691
5691
|
/**
|
|
5692
5692
|
* @class
|
|
@@ -5711,7 +5711,7 @@ class Ie {
|
|
|
5711
5711
|
var n;
|
|
5712
5712
|
const t = (n = this.config.config) != null ? n : {}, e = {};
|
|
5713
5713
|
for (const s of Object.keys(this.config))
|
|
5714
|
-
|
|
5714
|
+
Rs.has(s) || (e[s] = this.config[s]);
|
|
5715
5715
|
const o = w(w({}, t), e);
|
|
5716
5716
|
return this.isDefault && !("placeholder" in o) && this.defaultPlaceholder && (o.placeholder = this.defaultPlaceholder), o;
|
|
5717
5717
|
}
|
|
@@ -5767,7 +5767,7 @@ class Ie {
|
|
|
5767
5767
|
return this.type === dt.Tune;
|
|
5768
5768
|
}
|
|
5769
5769
|
}
|
|
5770
|
-
class
|
|
5770
|
+
class Ps extends T {
|
|
5771
5771
|
/**
|
|
5772
5772
|
* @param moduleConfiguration - Module Configuration
|
|
5773
5773
|
* @param moduleConfiguration.config - Blok's config
|
|
@@ -5896,7 +5896,7 @@ class Ns extends T {
|
|
|
5896
5896
|
if (!this.opened)
|
|
5897
5897
|
return;
|
|
5898
5898
|
this.tools = /* @__PURE__ */ new Map(), this.opened = !1, this.openingPromise = null, this.popover && ((n = (o = this.popover).hide) == null || n.call(o), (i = (s = this.popover).destroy) == null || i.call(s), this.popover = null), this.nodes.wrapper && (this.nodes.wrapper.innerHTML = "");
|
|
5899
|
-
const t =
|
|
5899
|
+
const t = Ze.mock, e = (l = (r = t == null ? void 0 : t.results) == null ? void 0 : r.at(-1)) == null ? void 0 : l.value;
|
|
5900
5900
|
e && ((c = e.hide) == null || c.call(e), (d = e.destroy) == null || d.call(e));
|
|
5901
5901
|
}
|
|
5902
5902
|
/**
|
|
@@ -5922,18 +5922,18 @@ class Ns extends T {
|
|
|
5922
5922
|
"transition-opacity duration-[250ms] ease-out",
|
|
5923
5923
|
"will-change-[opacity,left,top]",
|
|
5924
5924
|
"[&_[hidden]]:!hidden"
|
|
5925
|
-
)), this.nodes.wrapper.setAttribute(m.interface,
|
|
5925
|
+
)), this.nodes.wrapper.setAttribute(m.interface, en), this.nodes.wrapper.setAttribute("data-blok-testid", "inline-toolbar"), g.append(this.Blok.UI.nodes.wrapper, this.nodes.wrapper);
|
|
5926
5926
|
}
|
|
5927
5927
|
/**
|
|
5928
5928
|
* Shows Inline Toolbar
|
|
5929
5929
|
*/
|
|
5930
5930
|
async open() {
|
|
5931
|
-
var i, r, l, c, d, h, u, f, p, b, k, B, x, S, M, P, D, et,
|
|
5931
|
+
var i, r, l, c, d, h, u, f, p, b, k, B, x, S, M, P, D, et, Ne, Re, Pe;
|
|
5932
5932
|
if (this.opened || (this.initialize(), this.opened = !0, this.popover && ((r = (i = this.popover).hide) == null || r.call(i), (c = (l = this.popover).destroy) == null || c.call(l), this.popover = null), this.createToolsInstances(), !this.nodes.wrapper))
|
|
5933
5933
|
return;
|
|
5934
5934
|
this.nodes.wrapper.innerHTML = "";
|
|
5935
5935
|
const t = await this.buildPopoverItems(), e = (p = (f = (u = (h = (d = this.Blok.API) == null ? void 0 : d.methods) == null ? void 0 : h.ui) == null ? void 0 : u.nodes) == null ? void 0 : f.redactor) != null ? p : this.Blok.UI.nodes.redactor;
|
|
5936
|
-
this.popover = new
|
|
5936
|
+
this.popover = new Ze({
|
|
5937
5937
|
items: t,
|
|
5938
5938
|
scopeElement: e,
|
|
5939
5939
|
messages: {
|
|
@@ -5941,8 +5941,8 @@ class Ns extends T {
|
|
|
5941
5941
|
search: this.Blok.I18n.t("popover.search")
|
|
5942
5942
|
}
|
|
5943
5943
|
});
|
|
5944
|
-
const o = (S = (k = (b = this.popover).getMountElement) == null ? void 0 : k.call(b)) != null ? S : (x = (B = this.popover).getElement) == null ? void 0 : x.call(B), n = (P = (M = this.popover).getElement) == null ? void 0 : P.call(M), s = (
|
|
5945
|
-
this.applyPosition(s), o && this.nodes.wrapper && this.nodes.wrapper.appendChild(o), (
|
|
5944
|
+
const o = (S = (k = (b = this.popover).getMountElement) == null ? void 0 : k.call(b)) != null ? S : (x = (B = this.popover).getElement) == null ? void 0 : x.call(B), n = (P = (M = this.popover).getElement) == null ? void 0 : P.call(M), s = (Ne = (et = (D = this.popover.size) == null ? void 0 : D.width) != null ? et : n == null ? void 0 : n.getBoundingClientRect().width) != null ? Ne : 0;
|
|
5945
|
+
this.applyPosition(s), o && this.nodes.wrapper && this.nodes.wrapper.appendChild(o), (Pe = (Re = this.popover).show) == null || Pe.call(Re);
|
|
5946
5946
|
}
|
|
5947
5947
|
/**
|
|
5948
5948
|
* Build popover items from tools map
|
|
@@ -5950,7 +5950,7 @@ class Ns extends T {
|
|
|
5950
5950
|
async buildPopoverItems() {
|
|
5951
5951
|
const t = [], e = Array.from(this.tools.entries());
|
|
5952
5952
|
for (const [o, [n, s]] of e.entries()) {
|
|
5953
|
-
const i = await s.render(), r = this.getToolShortcut(n.name), l = r !== void 0 ?
|
|
5953
|
+
const i = await s.render(), r = this.getToolShortcut(n.name), l = r !== void 0 ? wo(r) : void 0, c = on(this.Blok.I18n, n.titleKey, n.title || Ht(n.name)), d = Array.isArray(i) ? i : [i], h = o === 0;
|
|
5954
5954
|
for (const u of d) {
|
|
5955
5955
|
const f = this.processPopoverItem(u, n.name, c, l, h);
|
|
5956
5956
|
t.push(...f);
|
|
@@ -6059,7 +6059,7 @@ class Ns extends T {
|
|
|
6059
6059
|
*/
|
|
6060
6060
|
getToolShortcut(t) {
|
|
6061
6061
|
const { Tools: e } = this.Blok, o = e.inlineTools.get(t), n = e.internal.inlineTools;
|
|
6062
|
-
return Array.from(n.keys()).includes(t) ? this.inlineTools[t][
|
|
6062
|
+
return Array.from(n.keys()).includes(t) ? this.inlineTools[t][Eo.Shortcut] : o == null ? void 0 : o.shortcut;
|
|
6063
6063
|
}
|
|
6064
6064
|
/**
|
|
6065
6065
|
* Enable Tool shortcut with Blok Shortcuts Module
|
|
@@ -6183,7 +6183,7 @@ const Et = {
|
|
|
6183
6183
|
"a11y.movedDown": "Block moved down to position {position} of {total}",
|
|
6184
6184
|
"a11y.atTop": "Block is at the top, cannot move up",
|
|
6185
6185
|
"a11y.atBottom": "Block is at the bottom, cannot move down"
|
|
6186
|
-
},
|
|
6186
|
+
}, Hs = /* @__PURE__ */ new Set([
|
|
6187
6187
|
"ar",
|
|
6188
6188
|
"dv",
|
|
6189
6189
|
"fa",
|
|
@@ -6194,10 +6194,10 @@ const Et = {
|
|
|
6194
6194
|
"ug",
|
|
6195
6195
|
"ur",
|
|
6196
6196
|
"yi"
|
|
6197
|
-
]), de = (a) =>
|
|
6197
|
+
]), de = (a) => Hs.has(a) ? "rtl" : "ltr", Do = (a, t) => ({
|
|
6198
6198
|
dictionary: t,
|
|
6199
6199
|
direction: de(a)
|
|
6200
|
-
}),
|
|
6200
|
+
}), Fs = [
|
|
6201
6201
|
"am",
|
|
6202
6202
|
"ar",
|
|
6203
6203
|
"az",
|
|
@@ -6266,9 +6266,9 @@ const Et = {
|
|
|
6266
6266
|
"vi",
|
|
6267
6267
|
"yi",
|
|
6268
6268
|
"zh"
|
|
6269
|
-
],
|
|
6270
|
-
he.set("en",
|
|
6271
|
-
const
|
|
6269
|
+
], Qe = "en", _s = Do("en", Et), he = /* @__PURE__ */ new Map();
|
|
6270
|
+
he.set("en", _s);
|
|
6271
|
+
const zs = {
|
|
6272
6272
|
am: () => import("./messages-Bdv-IkfG.mjs"),
|
|
6273
6273
|
ar: () => import("./messages-AHESHJm_.mjs"),
|
|
6274
6274
|
az: () => import("./messages-Bn253WWC.mjs"),
|
|
@@ -6337,14 +6337,14 @@ const Fs = {
|
|
|
6337
6337
|
vi: () => import("./messages-Cyi2AMmz.mjs"),
|
|
6338
6338
|
yi: () => import("./messages-RvMHb2Ht.mjs"),
|
|
6339
6339
|
zh: () => import("./messages-B66ZSDCJ.mjs")
|
|
6340
|
-
},
|
|
6340
|
+
}, Us = async (a) => {
|
|
6341
6341
|
const t = he.get(a);
|
|
6342
6342
|
if (t !== void 0)
|
|
6343
6343
|
return t;
|
|
6344
|
-
const e =
|
|
6344
|
+
const e = zs[a], o = await e(), n = Do(a, o.default);
|
|
6345
6345
|
return he.set(a, n), n;
|
|
6346
6346
|
};
|
|
6347
|
-
class
|
|
6347
|
+
class Ks {
|
|
6348
6348
|
constructor() {
|
|
6349
6349
|
this.overrides = null, this.dictionary = Et;
|
|
6350
6350
|
}
|
|
@@ -6389,13 +6389,13 @@ class zs {
|
|
|
6389
6389
|
return "ltr";
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
|
-
const
|
|
6393
|
-
class
|
|
6392
|
+
const _i = Et;
|
|
6393
|
+
class Ws extends T {
|
|
6394
6394
|
/**
|
|
6395
6395
|
* Constructor - creates lightweight i18n instance
|
|
6396
6396
|
*/
|
|
6397
6397
|
constructor(...t) {
|
|
6398
|
-
super(...t), this.i18nextWrapper = null, this.locale =
|
|
6398
|
+
super(...t), this.i18nextWrapper = null, this.locale = Qe, this.defaultLocale = Qe, this.usingI18next = !1, this.lightweightI18n = new Ks();
|
|
6399
6399
|
}
|
|
6400
6400
|
/**
|
|
6401
6401
|
* Translate a key with optional interpolation.
|
|
@@ -6448,7 +6448,7 @@ class Us extends T {
|
|
|
6448
6448
|
this.locale = "en", this.usingI18next = !1;
|
|
6449
6449
|
return;
|
|
6450
6450
|
}
|
|
6451
|
-
const e = await
|
|
6451
|
+
const e = await Us(t);
|
|
6452
6452
|
if (await this.ensureI18nextLoaded(t, e), this.i18nextWrapper === null)
|
|
6453
6453
|
return;
|
|
6454
6454
|
!this.i18nextWrapper.instance.hasResourceBundle(t, "translation") && this.i18nextWrapper.instance.addResourceBundle(t, "translation", e.dictionary), await this.i18nextWrapper.changeLanguage(t), this.locale = t, this.usingI18next = !0;
|
|
@@ -6511,7 +6511,7 @@ class Us extends T {
|
|
|
6511
6511
|
async ensureI18nextLoaded(t, e) {
|
|
6512
6512
|
if (this.i18nextWrapper !== null)
|
|
6513
6513
|
return;
|
|
6514
|
-
const { loadI18next: o } = await import("./i18next-loader-
|
|
6514
|
+
const { loadI18next: o } = await import("./i18next-loader-DGwfKvj7.mjs");
|
|
6515
6515
|
this.i18nextWrapper = await o(t, e);
|
|
6516
6516
|
}
|
|
6517
6517
|
/**
|
|
@@ -6532,7 +6532,7 @@ class Us extends T {
|
|
|
6532
6532
|
* All 68 locales in ALL_LOCALE_CODES are supported.
|
|
6533
6533
|
*/
|
|
6534
6534
|
isLocaleSupported(t) {
|
|
6535
|
-
return
|
|
6535
|
+
return Fs.includes(t);
|
|
6536
6536
|
}
|
|
6537
6537
|
/**
|
|
6538
6538
|
* Detect best matching locale from browser settings
|
|
@@ -6580,20 +6580,20 @@ const Ee = " ", ue = /* @__PURE__ */ new WeakSet(), Ae = () => {
|
|
|
6580
6580
|
return [o, 0];
|
|
6581
6581
|
const n = (i = t.childNodes[e - 1]) != null ? i : null, s = (r = n == null ? void 0 : n.textContent) != null ? r : null;
|
|
6582
6582
|
return [n, s !== null ? s.length : 0];
|
|
6583
|
-
},
|
|
6583
|
+
}, Lo = (a) => {
|
|
6584
6584
|
var e;
|
|
6585
6585
|
if (!(a instanceof HTMLElement) || g.isSingleTag(a) || g.isNativeInput(a))
|
|
6586
6586
|
return !1;
|
|
6587
6587
|
if (a.childNodes.length === 0)
|
|
6588
6588
|
return !0;
|
|
6589
6589
|
const t = (e = a.textContent) != null ? e : "";
|
|
6590
|
-
return t.includes(Ee) || !Be(t) ? !1 : Array.from(a.children).every((o) =>
|
|
6591
|
-
},
|
|
6590
|
+
return t.includes(Ee) || !Be(t) ? !1 : Array.from(a.children).every((o) => Lo(o));
|
|
6591
|
+
}, to = typeof window != "undefined" && typeof window.MutationObserver != "undefined" ? new window.MutationObserver((a) => {
|
|
6592
6592
|
for (const t of a) {
|
|
6593
6593
|
const e = t.nextSibling;
|
|
6594
6594
|
t.removedNodes.forEach((o) => {
|
|
6595
6595
|
var l, c, d;
|
|
6596
|
-
if (!(o instanceof Element) || !
|
|
6596
|
+
if (!(o instanceof Element) || !Lo(o))
|
|
6597
6597
|
return;
|
|
6598
6598
|
const n = e instanceof Text ? e : null;
|
|
6599
6599
|
if (n === null || !n.isConnected)
|
|
@@ -6605,21 +6605,21 @@ const Ee = " ", ue = /* @__PURE__ */ new WeakSet(), Ae = () => {
|
|
|
6605
6605
|
(i === Ee || i === " ") && ue.add(n);
|
|
6606
6606
|
});
|
|
6607
6607
|
}
|
|
6608
|
-
}) : null,
|
|
6609
|
-
if (
|
|
6608
|
+
}) : null, eo = /* @__PURE__ */ new WeakSet(), Oo = (a) => {
|
|
6609
|
+
if (to === null || eo.has(a))
|
|
6610
6610
|
return;
|
|
6611
6611
|
const t = () => {
|
|
6612
|
-
a.body !== null && (
|
|
6612
|
+
a.body !== null && (to.observe(a.body, {
|
|
6613
6613
|
childList: !0,
|
|
6614
6614
|
subtree: !0
|
|
6615
|
-
}),
|
|
6615
|
+
}), eo.add(a));
|
|
6616
6616
|
};
|
|
6617
6617
|
a.readyState === "loading" ? a.addEventListener("DOMContentLoaded", t, { once: !0 }) : t();
|
|
6618
6618
|
};
|
|
6619
|
-
typeof window != "undefined" && typeof window.document != "undefined" &&
|
|
6620
|
-
const
|
|
6619
|
+
typeof window != "undefined" && typeof window.document != "undefined" && Oo(window.document);
|
|
6620
|
+
const $s = (a) => {
|
|
6621
6621
|
var n, s;
|
|
6622
|
-
|
|
6622
|
+
Oo(a.ownerDocument);
|
|
6623
6623
|
const [t, e] = Ae();
|
|
6624
6624
|
if (t === null || !a.contains(t) || t.nodeType === Node.TEXT_NODE && e < ((n = t.textContent) != null ? n : "").length)
|
|
6625
6625
|
return null;
|
|
@@ -6653,7 +6653,7 @@ const Ks = (a) => {
|
|
|
6653
6653
|
offset: 0
|
|
6654
6654
|
};
|
|
6655
6655
|
}
|
|
6656
|
-
},
|
|
6656
|
+
}, No = (a, t, e, o) => {
|
|
6657
6657
|
const n = document.createRange();
|
|
6658
6658
|
o === "left" ? (n.selectNodeContents(a), n.setEnd(t, e)) : (n.selectNodeContents(a), n.setStart(t, e));
|
|
6659
6659
|
const s = n.cloneContents(), i = document.createElement("div");
|
|
@@ -6680,7 +6680,7 @@ const Ks = (a) => {
|
|
|
6680
6680
|
if (e === null)
|
|
6681
6681
|
return !1;
|
|
6682
6682
|
const n = window.getSelection(), s = (i = n == null ? void 0 : n.focusNode) != null ? i : null;
|
|
6683
|
-
return s !== null && s !== a && !(s.nodeType === Node.TEXT_NODE && s.parentNode === a) ? !1 :
|
|
6683
|
+
return s !== null && s !== a && !(s.nodeType === Node.TEXT_NODE && s.parentNode === a) ? !1 : No(a, e, o, "left");
|
|
6684
6684
|
}, kt = (a) => {
|
|
6685
6685
|
const t = g.getDeepestNode(a, !0);
|
|
6686
6686
|
if (t === null)
|
|
@@ -6688,8 +6688,8 @@ const Ks = (a) => {
|
|
|
6688
6688
|
if (g.isNativeInput(t))
|
|
6689
6689
|
return t.selectionEnd === t.value.length;
|
|
6690
6690
|
const [e, o] = Ae();
|
|
6691
|
-
return e === null ? !1 :
|
|
6692
|
-
},
|
|
6691
|
+
return e === null ? !1 : No(a, e, o, "right");
|
|
6692
|
+
}, Ro = (a, t) => {
|
|
6693
6693
|
const e = a.getBoundingClientRect();
|
|
6694
6694
|
if (e.height !== 0 || e.top !== 0)
|
|
6695
6695
|
return e;
|
|
@@ -6698,7 +6698,7 @@ const Ks = (a) => {
|
|
|
6698
6698
|
return t.getBoundingClientRect();
|
|
6699
6699
|
const s = n.getBoundingClientRect();
|
|
6700
6700
|
return s.height !== 0 || s.top !== 0 ? s : t.getBoundingClientRect();
|
|
6701
|
-
},
|
|
6701
|
+
}, js = (a) => {
|
|
6702
6702
|
var l;
|
|
6703
6703
|
if (g.isNativeInput(a) && a.tagName === "INPUT")
|
|
6704
6704
|
return !0;
|
|
@@ -6710,7 +6710,7 @@ const Ks = (a) => {
|
|
|
6710
6710
|
const t = window.getSelection();
|
|
6711
6711
|
if (!t || t.rangeCount === 0)
|
|
6712
6712
|
return !0;
|
|
6713
|
-
const e = t.getRangeAt(0), o =
|
|
6713
|
+
const e = t.getRangeAt(0), o = Ro(e, a), n = g.getDeepestNode(a, !1);
|
|
6714
6714
|
if (!n)
|
|
6715
6715
|
return !0;
|
|
6716
6716
|
const s = document.createRange();
|
|
@@ -6725,7 +6725,7 @@ const Ks = (a) => {
|
|
|
6725
6725
|
return o.top < c.top + d;
|
|
6726
6726
|
}
|
|
6727
6727
|
return Math.abs(o.top - i.top) < 5;
|
|
6728
|
-
},
|
|
6728
|
+
}, Ys = (a) => {
|
|
6729
6729
|
var c;
|
|
6730
6730
|
if (g.isNativeInput(a) && a.tagName === "INPUT")
|
|
6731
6731
|
return !0;
|
|
@@ -6737,7 +6737,7 @@ const Ks = (a) => {
|
|
|
6737
6737
|
const t = window.getSelection();
|
|
6738
6738
|
if (!t || t.rangeCount === 0)
|
|
6739
6739
|
return !0;
|
|
6740
|
-
const e = t.getRangeAt(0), o =
|
|
6740
|
+
const e = t.getRangeAt(0), o = Ro(e, a), n = g.getDeepestNode(a, !0);
|
|
6741
6741
|
if (!n)
|
|
6742
6742
|
return !0;
|
|
6743
6743
|
const s = document.createRange(), i = g.getContentLength(n);
|
|
@@ -6752,7 +6752,7 @@ const Ks = (a) => {
|
|
|
6752
6752
|
return o.bottom > d.bottom - h;
|
|
6753
6753
|
}
|
|
6754
6754
|
return Math.abs(o.bottom - r.bottom) < 5;
|
|
6755
|
-
},
|
|
6755
|
+
}, Po = (a, t = !0) => {
|
|
6756
6756
|
var h, u, f, p;
|
|
6757
6757
|
if (g.isNativeInput(a)) {
|
|
6758
6758
|
a.focus();
|
|
@@ -6785,7 +6785,7 @@ const Ks = (a) => {
|
|
|
6785
6785
|
}
|
|
6786
6786
|
const c = (p = (f = l.textContent) == null ? void 0 : f.length) != null ? p : 0, d = t ? 0 : c;
|
|
6787
6787
|
e.setStart(l, d), e.setEnd(l, d), o.removeAllRanges(), o.addRange(e);
|
|
6788
|
-
},
|
|
6788
|
+
}, oo = () => {
|
|
6789
6789
|
const a = window.getSelection();
|
|
6790
6790
|
if (!a || a.rangeCount === 0)
|
|
6791
6791
|
return null;
|
|
@@ -6794,13 +6794,13 @@ const Ks = (a) => {
|
|
|
6794
6794
|
return e.left;
|
|
6795
6795
|
const n = t.startContainer, s = n.nodeType === Node.ELEMENT_NODE ? n : n.parentElement;
|
|
6796
6796
|
return s ? s.getBoundingClientRect().left : null;
|
|
6797
|
-
},
|
|
6797
|
+
}, no = (a, t, e) => {
|
|
6798
6798
|
if (g.isNativeInput(a)) {
|
|
6799
|
-
|
|
6799
|
+
Vs(a, t, e);
|
|
6800
6800
|
return;
|
|
6801
6801
|
}
|
|
6802
|
-
|
|
6803
|
-
},
|
|
6802
|
+
Xs(a, t, e);
|
|
6803
|
+
}, Vs = (a, t, e) => {
|
|
6804
6804
|
a.focus();
|
|
6805
6805
|
const o = a.value;
|
|
6806
6806
|
if (o.length === 0) {
|
|
@@ -6809,19 +6809,19 @@ const Ks = (a) => {
|
|
|
6809
6809
|
}
|
|
6810
6810
|
if (a.tagName === "TEXTAREA") {
|
|
6811
6811
|
const s = o.split(`
|
|
6812
|
-
`), i = e ? 0 : s.length - 1, r = s.slice(0, i).reduce((h, u) => h + u.length + 1, 0), l = r, c = r + s[i].length, d =
|
|
6812
|
+
`), i = e ? 0 : s.length - 1, r = s.slice(0, i).reduce((h, u) => h + u.length + 1, 0), l = r, c = r + s[i].length, d = so(a, l, c, t);
|
|
6813
6813
|
a.setSelectionRange(d, d);
|
|
6814
6814
|
return;
|
|
6815
6815
|
}
|
|
6816
|
-
const n =
|
|
6816
|
+
const n = so(a, 0, o.length, t);
|
|
6817
6817
|
a.setSelectionRange(n, n);
|
|
6818
|
-
},
|
|
6818
|
+
}, so = (a, t, e, o) => {
|
|
6819
6819
|
const n = a.getBoundingClientRect(), s = window.getComputedStyle(a), i = parseFloat(s.paddingLeft) || 0, r = o - n.left - i;
|
|
6820
6820
|
if (r <= 0)
|
|
6821
6821
|
return t;
|
|
6822
6822
|
const l = a.value.substring(t, e), d = (parseFloat(s.fontSize) || 16) * 0.6, h = Math.round(r / d), u = Math.min(Math.max(h, 0), l.length);
|
|
6823
6823
|
return t + u;
|
|
6824
|
-
},
|
|
6824
|
+
}, Xs = (a, t, e) => {
|
|
6825
6825
|
const o = window.getSelection();
|
|
6826
6826
|
if (!o)
|
|
6827
6827
|
return;
|
|
@@ -6831,12 +6831,12 @@ const Ks = (a) => {
|
|
|
6831
6831
|
Qt(a, o, e);
|
|
6832
6832
|
return;
|
|
6833
6833
|
}
|
|
6834
|
-
const s =
|
|
6834
|
+
const s = qs(a, n, e);
|
|
6835
6835
|
if (s === null) {
|
|
6836
6836
|
Qt(a, o, e);
|
|
6837
6837
|
return;
|
|
6838
6838
|
}
|
|
6839
|
-
const i =
|
|
6839
|
+
const i = Zs(t, s);
|
|
6840
6840
|
if (i && a.contains(i.node)) {
|
|
6841
6841
|
const r = document.createRange();
|
|
6842
6842
|
try {
|
|
@@ -6858,9 +6858,9 @@ const Ks = (a) => {
|
|
|
6858
6858
|
try {
|
|
6859
6859
|
s.setStart(n, i), s.setEnd(n, i), o.removeAllRanges(), o.addRange(s);
|
|
6860
6860
|
} catch (r) {
|
|
6861
|
-
|
|
6861
|
+
Po(a, e);
|
|
6862
6862
|
}
|
|
6863
|
-
},
|
|
6863
|
+
}, qs = (a, t, e) => {
|
|
6864
6864
|
const o = document.createRange();
|
|
6865
6865
|
try {
|
|
6866
6866
|
if (e)
|
|
@@ -6878,13 +6878,13 @@ const Ks = (a) => {
|
|
|
6878
6878
|
} catch (n) {
|
|
6879
6879
|
return null;
|
|
6880
6880
|
}
|
|
6881
|
-
},
|
|
6881
|
+
}, Zs = (a, t) => {
|
|
6882
6882
|
const e = document.caretPositionFromPoint(a, t);
|
|
6883
6883
|
return e === null ? null : {
|
|
6884
6884
|
node: e.offsetNode,
|
|
6885
6885
|
offset: e.offset
|
|
6886
6886
|
};
|
|
6887
|
-
},
|
|
6887
|
+
}, io = {
|
|
6888
6888
|
Backspace: v.BACKSPACE,
|
|
6889
6889
|
Delete: v.DELETE,
|
|
6890
6890
|
Enter: v.ENTER,
|
|
@@ -6893,7 +6893,7 @@ const Ks = (a) => {
|
|
|
6893
6893
|
ArrowRight: v.RIGHT,
|
|
6894
6894
|
ArrowUp: v.UP,
|
|
6895
6895
|
ArrowLeft: v.LEFT
|
|
6896
|
-
},
|
|
6896
|
+
}, Gs = /* @__PURE__ */ new Set(["Enter", "Process", "Spacebar", "Space", "Dead"]), Dt = '[contenteditable="true"], textarea, input', ro = (a, t) => {
|
|
6897
6897
|
const e = t === "up" ? "ArrowUp" : "ArrowDown";
|
|
6898
6898
|
return a.key === e && a.shiftKey && (a.ctrlKey || a.metaKey);
|
|
6899
6899
|
}, F = class F extends T {
|
|
@@ -7302,7 +7302,7 @@ const Ks = (a) => {
|
|
|
7302
7302
|
l && o.setToBlock(l, o.positions.END);
|
|
7303
7303
|
return;
|
|
7304
7304
|
}
|
|
7305
|
-
|
|
7305
|
+
Ue(s, n) ? this.mergeBlocks(s, n) : o.setToBlock(s, o.positions.END);
|
|
7306
7306
|
}
|
|
7307
7307
|
/**
|
|
7308
7308
|
* Handles delete keydown on Block
|
|
@@ -7328,7 +7328,7 @@ const Ks = (a) => {
|
|
|
7328
7328
|
e.removeBlock(n), o.setToBlock(s, o.positions.START);
|
|
7329
7329
|
return;
|
|
7330
7330
|
}
|
|
7331
|
-
|
|
7331
|
+
Ue(n, s) ? this.mergeBlocks(n, s) : o.setToBlock(s, o.positions.START);
|
|
7332
7332
|
}
|
|
7333
7333
|
/**
|
|
7334
7334
|
* Merge passed Blocks
|
|
@@ -7337,7 +7337,7 @@ const Ks = (a) => {
|
|
|
7337
7337
|
*/
|
|
7338
7338
|
mergeBlocks(t, e) {
|
|
7339
7339
|
const { BlockManager: o, Toolbar: n } = this.Blok;
|
|
7340
|
-
t.lastInput !== void 0 && (
|
|
7340
|
+
t.lastInput !== void 0 && (Po(t.lastInput, !1), o.mergeBlocks(t, e).then(() => {
|
|
7341
7341
|
n.close();
|
|
7342
7342
|
}).catch(() => {
|
|
7343
7343
|
}));
|
|
@@ -7349,7 +7349,7 @@ const Ks = (a) => {
|
|
|
7349
7349
|
arrowRightAndDown(t) {
|
|
7350
7350
|
var x;
|
|
7351
7351
|
const e = this.getKeyCode(t);
|
|
7352
|
-
if (e === null ||
|
|
7352
|
+
if (e === null || ro(t, "down"))
|
|
7353
7353
|
return;
|
|
7354
7354
|
const o = J.usedKeys.includes(e) && (!t.shiftKey || e === v.TAB);
|
|
7355
7355
|
if (this.Blok.UI.someToolbarOpened && o)
|
|
@@ -7368,7 +7368,7 @@ const Ks = (a) => {
|
|
|
7368
7368
|
return;
|
|
7369
7369
|
}
|
|
7370
7370
|
u && this.Blok.InlineToolbar.tryToShow();
|
|
7371
|
-
const p = e === v.RIGHT && !t.shiftKey && !this.isRtl && c instanceof HTMLElement ?
|
|
7371
|
+
const p = e === v.RIGHT && !t.shiftKey && !this.isRtl && c instanceof HTMLElement ? $s(c) : null;
|
|
7372
7372
|
if (p !== null) {
|
|
7373
7373
|
y.setCursor(p.node, p.offset), t.preventDefault();
|
|
7374
7374
|
return;
|
|
@@ -7389,7 +7389,7 @@ const Ks = (a) => {
|
|
|
7389
7389
|
arrowLeftAndUp(t) {
|
|
7390
7390
|
var k;
|
|
7391
7391
|
const e = this.Blok.UI.someToolbarOpened, o = this.getKeyCode(t);
|
|
7392
|
-
if (o === null ||
|
|
7392
|
+
if (o === null || ro(t, "up") || e && J.usedKeys.includes(o) && (!t.shiftKey || o === v.TAB))
|
|
7393
7393
|
return;
|
|
7394
7394
|
e && this.Blok.UI.closeAllToolbars(), t.shiftKey || (this.Blok.Toolbar.close(), this.Blok.InlineToolbar.close());
|
|
7395
7395
|
const n = window.getSelection();
|
|
@@ -7440,10 +7440,10 @@ const Ks = (a) => {
|
|
|
7440
7440
|
* @param event - keyboard event
|
|
7441
7441
|
*/
|
|
7442
7442
|
getKeyCode(t) {
|
|
7443
|
-
const e = t.key &&
|
|
7443
|
+
const e = t.key && io[t.key];
|
|
7444
7444
|
if (e !== void 0 && typeof e == "number")
|
|
7445
7445
|
return e;
|
|
7446
|
-
const o = t.code &&
|
|
7446
|
+
const o = t.code && io[t.code];
|
|
7447
7447
|
return o !== void 0 && typeof o == "number" ? o : null;
|
|
7448
7448
|
}
|
|
7449
7449
|
/**
|
|
@@ -7451,7 +7451,7 @@ const Ks = (a) => {
|
|
|
7451
7451
|
* @param event - keyboard event
|
|
7452
7452
|
*/
|
|
7453
7453
|
isPrintableKeyEvent(t) {
|
|
7454
|
-
return t.key ? t.key.length === 1 ||
|
|
7454
|
+
return t.key ? t.key.length === 1 || Gs.has(t.key) : !1;
|
|
7455
7455
|
}
|
|
7456
7456
|
};
|
|
7457
7457
|
F.LIST_TOOL_NAME = "list", F.HEADER_TOOL_NAME = "header", F.ORDERED_LIST_PATTERN = /^(\d+)[.)]\s([\s\S]*)$/, F.CHECKLIST_PATTERN = /^\[(x|X| )?\]\s([\s\S]*)$/, F.UNORDERED_LIST_PATTERN = /^[-*]\s([\s\S]*)$/, F.HEADER_PATTERN = /^(#{1,6})\s([\s\S]*)$/;
|
|
@@ -7483,7 +7483,7 @@ class te {
|
|
|
7483
7483
|
* @returns {HTMLElement[]}
|
|
7484
7484
|
*/
|
|
7485
7485
|
get nodes() {
|
|
7486
|
-
return
|
|
7486
|
+
return nn(this.workingArea.children);
|
|
7487
7487
|
}
|
|
7488
7488
|
/**
|
|
7489
7489
|
* Proxy trap to implement array-like setter
|
|
@@ -7651,8 +7651,8 @@ class te {
|
|
|
7651
7651
|
});
|
|
7652
7652
|
}
|
|
7653
7653
|
}
|
|
7654
|
-
const
|
|
7655
|
-
class
|
|
7654
|
+
const ao = "block-removed", Js = "block-added", Qs = "block-moved", lo = "block-changed";
|
|
7655
|
+
class Ho {
|
|
7656
7656
|
constructor() {
|
|
7657
7657
|
this.tail = Promise.resolve();
|
|
7658
7658
|
}
|
|
@@ -7675,7 +7675,7 @@ class Ro {
|
|
|
7675
7675
|
}), e;
|
|
7676
7676
|
}
|
|
7677
7677
|
}
|
|
7678
|
-
const
|
|
7678
|
+
const co = "blok-announcer", ti = [
|
|
7679
7679
|
"absolute",
|
|
7680
7680
|
"w-px",
|
|
7681
7681
|
"h-px",
|
|
@@ -7709,13 +7709,13 @@ const lo = "blok-announcer", Js = [
|
|
|
7709
7709
|
* Uses sr-only pattern to hide from sighted users while remaining accessible
|
|
7710
7710
|
*/
|
|
7711
7711
|
createLiveRegion() {
|
|
7712
|
-
const t = document.getElementById(
|
|
7712
|
+
const t = document.getElementById(co);
|
|
7713
7713
|
if (t) {
|
|
7714
7714
|
this.liveRegion = t;
|
|
7715
7715
|
return;
|
|
7716
7716
|
}
|
|
7717
7717
|
const e = document.createElement("div");
|
|
7718
|
-
e.id =
|
|
7718
|
+
e.id = co, e.className = ti, e.setAttribute("role", "status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), e.setAttribute("data-blok-announcer", ""), document.body.appendChild(e), this.liveRegion = e;
|
|
7719
7719
|
}
|
|
7720
7720
|
/**
|
|
7721
7721
|
* Announce a message to screen readers
|
|
@@ -7742,12 +7742,12 @@ K.instance = null, K.referenceCount = 0;
|
|
|
7742
7742
|
let gt = K;
|
|
7743
7743
|
const $ = (a, t) => {
|
|
7744
7744
|
gt.getInstance().announce(a, t);
|
|
7745
|
-
},
|
|
7745
|
+
}, ei = () => {
|
|
7746
7746
|
gt.addReference(), gt.getInstance();
|
|
7747
|
-
},
|
|
7747
|
+
}, oi = () => {
|
|
7748
7748
|
gt.getInstance().destroy();
|
|
7749
7749
|
};
|
|
7750
|
-
class
|
|
7750
|
+
class ni extends T {
|
|
7751
7751
|
constructor() {
|
|
7752
7752
|
super(...arguments), this._currentBlockIndex = -1, this._blocks = null, this.registeredShortcuts = [];
|
|
7753
7753
|
}
|
|
@@ -7943,9 +7943,9 @@ class ei extends T {
|
|
|
7943
7943
|
const h = this.composeBlock(d), u = i ? this.getBlockByIndex(l) : void 0;
|
|
7944
7944
|
if (i && u === void 0)
|
|
7945
7945
|
throw new Error(`Could not replace Block at index ${l}. Block not found.`);
|
|
7946
|
-
return i && u !== void 0 && this.blockDidMutated(
|
|
7946
|
+
return i && u !== void 0 && this.blockDidMutated(ao, u, {
|
|
7947
7947
|
index: l
|
|
7948
|
-
}), this.blocksStore.insert(l, h, i), this.blockDidMutated(
|
|
7948
|
+
}), this.blocksStore.insert(l, h, i), this.blockDidMutated(Js, h, {
|
|
7949
7949
|
index: l
|
|
7950
7950
|
}), s && (this.currentBlockIndex = l), !s && l <= this.currentBlockIndex && this.currentBlockIndex++, h;
|
|
7951
7951
|
}
|
|
@@ -7979,7 +7979,7 @@ class ei extends T {
|
|
|
7979
7979
|
data: Object.assign({}, n, e != null ? e : {}),
|
|
7980
7980
|
tunes: o != null ? o : t.tunes
|
|
7981
7981
|
}), i = this.getBlockIndex(t);
|
|
7982
|
-
return this.blocksStore.replace(i, s), this.blockDidMutated(
|
|
7982
|
+
return this.blocksStore.replace(i, s), this.blockDidMutated(lo, s, {
|
|
7983
7983
|
index: i
|
|
7984
7984
|
}), s;
|
|
7985
7985
|
}
|
|
@@ -8077,8 +8077,8 @@ class ei extends T {
|
|
|
8077
8077
|
await o(r.data);
|
|
8078
8078
|
return;
|
|
8079
8079
|
}
|
|
8080
|
-
if (t.mergeable &&
|
|
8081
|
-
const r = await e.exportDataAsString(), l = (i = t.tool.conversionConfig) == null ? void 0 : i.import, c = ht(l) && A(t.tool.sanitizeConfig[l]) ? t.tool.sanitizeConfig[l] : t.tool.sanitizeConfig, d = Z(r, c), h =
|
|
8080
|
+
if (t.mergeable && Ke(e, "export") && Ke(t, "import")) {
|
|
8081
|
+
const r = await e.exportDataAsString(), l = (i = t.tool.conversionConfig) == null ? void 0 : i.import, c = ht(l) && A(t.tool.sanitizeConfig[l]) ? t.tool.sanitizeConfig[l] : t.tool.sanitizeConfig, d = Z(r, c), h = We(d, t.tool.conversionConfig);
|
|
8082
8082
|
await o(h);
|
|
8083
8083
|
}
|
|
8084
8084
|
}
|
|
@@ -8092,7 +8092,7 @@ class ei extends T {
|
|
|
8092
8092
|
const n = this.blocksStore.indexOf(t);
|
|
8093
8093
|
if (!this.validateIndex(n))
|
|
8094
8094
|
throw new Error("Can't find a Block to remove");
|
|
8095
|
-
this.blocksStore.remove(n), this.blockDidMutated(
|
|
8095
|
+
this.blocksStore.remove(n), this.blockDidMutated(ao, t, {
|
|
8096
8096
|
index: n
|
|
8097
8097
|
}), this.currentBlockIndex >= n && this.currentBlockIndex--;
|
|
8098
8098
|
const s = this.blocks.length === 0;
|
|
@@ -8267,7 +8267,7 @@ class ei extends T {
|
|
|
8267
8267
|
const n = this.currentBlock;
|
|
8268
8268
|
if (n === void 0)
|
|
8269
8269
|
throw new Error(`Could not move Block. Block at index ${t} is not available.`);
|
|
8270
|
-
this.blockDidMutated(
|
|
8270
|
+
this.blockDidMutated(Qs, n, {
|
|
8271
8271
|
fromIndex: e,
|
|
8272
8272
|
toIndex: t
|
|
8273
8273
|
});
|
|
@@ -8290,7 +8290,7 @@ class ei extends T {
|
|
|
8290
8290
|
const i = await t.exportDataAsString(), r = (u = s.conversionConfig) == null ? void 0 : u.import, l = ht(r) && A(s.sanitizeConfig[r]) ? s.sanitizeConfig[r] : s.sanitizeConfig, c = Z(
|
|
8291
8291
|
i,
|
|
8292
8292
|
Te(this.config.sanitizer, l)
|
|
8293
|
-
), d =
|
|
8293
|
+
), d = We(c, s.conversionConfig, s.settings), h = o ? Object.assign(d, o) : d;
|
|
8294
8294
|
return this.replace(t, s.name, h);
|
|
8295
8295
|
}
|
|
8296
8296
|
/**
|
|
@@ -8307,7 +8307,7 @@ class ei extends T {
|
|
|
8307
8307
|
* 2) in api.blocks.clear we should add empty block
|
|
8308
8308
|
*/
|
|
8309
8309
|
async clear(t = !1) {
|
|
8310
|
-
const e = new
|
|
8310
|
+
const e = new Ho();
|
|
8311
8311
|
[...this.blocks].forEach((n) => {
|
|
8312
8312
|
e.add(async () => {
|
|
8313
8313
|
await this.removeBlock(n, !1);
|
|
@@ -8416,7 +8416,7 @@ class ei extends T {
|
|
|
8416
8416
|
o instanceof KeyboardEvent && e.keyup(o);
|
|
8417
8417
|
}), this.readOnlyMutableListeners.on(t.holder, "input", (o) => {
|
|
8418
8418
|
o instanceof InputEvent && e.input(o);
|
|
8419
|
-
}), t.on("didMutated", (o) => this.blockDidMutated(
|
|
8419
|
+
}), t.on("didMutated", (o) => this.blockDidMutated(lo, o, {
|
|
8420
8420
|
index: this.getBlockIndex(o)
|
|
8421
8421
|
}));
|
|
8422
8422
|
}
|
|
@@ -8473,7 +8473,7 @@ class ei extends T {
|
|
|
8473
8473
|
}), e;
|
|
8474
8474
|
}
|
|
8475
8475
|
}
|
|
8476
|
-
class
|
|
8476
|
+
class si extends T {
|
|
8477
8477
|
constructor() {
|
|
8478
8478
|
super(...arguments), this.anyBlockSelectedCache = null, this._navigationModeEnabled = !1, this.navigationFocusIndex = -1, this.needToSelectAll = !1, this.nativeInputSelected = !1, this.readyToBlockSelection = !1, this.selection = new y();
|
|
8479
8479
|
}
|
|
@@ -8792,30 +8792,30 @@ class oi extends T {
|
|
|
8792
8792
|
}, 20)();
|
|
8793
8793
|
}
|
|
8794
8794
|
}
|
|
8795
|
-
const
|
|
8795
|
+
const ii = 127, ho = (a) => {
|
|
8796
8796
|
for (const t of a) {
|
|
8797
8797
|
if (t.trim().length === 0)
|
|
8798
8798
|
continue;
|
|
8799
8799
|
if (t >= "0" && t <= "9" || t.toLowerCase() !== t.toUpperCase())
|
|
8800
8800
|
return !1;
|
|
8801
8801
|
const e = t.codePointAt(0);
|
|
8802
|
-
if (typeof e == "number" && e >
|
|
8802
|
+
if (typeof e == "number" && e > ii)
|
|
8803
8803
|
return !1;
|
|
8804
8804
|
}
|
|
8805
8805
|
return !0;
|
|
8806
|
-
},
|
|
8806
|
+
}, Fo = (a) => {
|
|
8807
8807
|
var t;
|
|
8808
|
-
return a.nodeType === Node.TEXT_NODE ? [a] : (t = a.hasChildNodes) != null && t.call(a) ? Array.from(a.childNodes).flatMap((e) =>
|
|
8809
|
-
},
|
|
8808
|
+
return a.nodeType === Node.TEXT_NODE ? [a] : (t = a.hasChildNodes) != null && t.call(a) ? Array.from(a.childNodes).flatMap((e) => Fo(e)) : [];
|
|
8809
|
+
}, ri = (a) => {
|
|
8810
8810
|
var n, s;
|
|
8811
|
-
const t =
|
|
8811
|
+
const t = Fo(a);
|
|
8812
8812
|
if (t.length === 0)
|
|
8813
8813
|
return null;
|
|
8814
8814
|
const e = t[t.length - 1], o = (n = [...t].reverse().find((i) => {
|
|
8815
8815
|
var r;
|
|
8816
|
-
return !
|
|
8816
|
+
return !ho((r = i.textContent) != null ? r : "");
|
|
8817
8817
|
})) != null ? n : null;
|
|
8818
|
-
return o && o !== e &&
|
|
8818
|
+
return o && o !== e && ho((s = e.textContent) != null ? s : "") && o.parentNode !== a ? o : e;
|
|
8819
8819
|
};
|
|
8820
8820
|
class Me extends T {
|
|
8821
8821
|
/**
|
|
@@ -8888,7 +8888,7 @@ class Me extends T {
|
|
|
8888
8888
|
node: e,
|
|
8889
8889
|
offset: g.getContentLength(e)
|
|
8890
8890
|
};
|
|
8891
|
-
const o =
|
|
8891
|
+
const o = ri(t);
|
|
8892
8892
|
return o ? {
|
|
8893
8893
|
node: o,
|
|
8894
8894
|
offset: g.getContentLength(o)
|
|
@@ -8928,7 +8928,7 @@ class Me extends T {
|
|
|
8928
8928
|
const i = o ? t.firstInput : t.lastInput;
|
|
8929
8929
|
if (i) {
|
|
8930
8930
|
if (e !== null)
|
|
8931
|
-
|
|
8931
|
+
no(i, e, o);
|
|
8932
8932
|
else {
|
|
8933
8933
|
const l = o ? this.positions.START : this.positions.END;
|
|
8934
8934
|
this.setCaretToInputPosition(i, l, 0);
|
|
@@ -8946,7 +8946,7 @@ class Me extends T {
|
|
|
8946
8946
|
setToInputAtXPosition(t, e, o) {
|
|
8947
8947
|
const { currentBlock: n } = this.Blok.BlockManager;
|
|
8948
8948
|
if (e !== null)
|
|
8949
|
-
|
|
8949
|
+
no(t, e, o);
|
|
8950
8950
|
else {
|
|
8951
8951
|
const s = o ? this.positions.START : this.positions.END;
|
|
8952
8952
|
this.setCaretToInputPosition(t, s, 0);
|
|
@@ -9105,9 +9105,9 @@ class Me extends T {
|
|
|
9105
9105
|
if (e.isEmpty)
|
|
9106
9106
|
return this.navigateToBlock(o, !0);
|
|
9107
9107
|
const { currentInput: n } = e;
|
|
9108
|
-
if (!(n !== void 0 ?
|
|
9108
|
+
if (!(n !== void 0 ? Ys(n) : !0))
|
|
9109
9109
|
return !1;
|
|
9110
|
-
const i =
|
|
9110
|
+
const i = oo(), { nextInput: r } = e;
|
|
9111
9111
|
if (r)
|
|
9112
9112
|
return this.setToInputAtXPosition(r, i, !0), !0;
|
|
9113
9113
|
if (o !== null)
|
|
@@ -9134,9 +9134,9 @@ class Me extends T {
|
|
|
9134
9134
|
if (e.isEmpty)
|
|
9135
9135
|
return this.navigateToBlock(o, !1);
|
|
9136
9136
|
const { currentInput: n } = e;
|
|
9137
|
-
if (!(n !== void 0 ?
|
|
9137
|
+
if (!(n !== void 0 ? js(n) : !0))
|
|
9138
9138
|
return !1;
|
|
9139
|
-
const i =
|
|
9139
|
+
const i = oo(), { previousInput: r } = e;
|
|
9140
9140
|
return r ? (this.setToInputAtXPosition(r, i, !1), !0) : o !== null ? (this.setToBlockAtXPosition(o, i, !1), !0) : !1;
|
|
9141
9141
|
}
|
|
9142
9142
|
/**
|
|
@@ -9174,7 +9174,7 @@ class Me extends T {
|
|
|
9174
9174
|
l !== null && l.textContent !== null && r.setStart(l, l.textContent.length), n.removeAllRanges(), n.addRange(r);
|
|
9175
9175
|
}
|
|
9176
9176
|
}
|
|
9177
|
-
class
|
|
9177
|
+
class ai extends T {
|
|
9178
9178
|
constructor() {
|
|
9179
9179
|
super(...arguments), this.firstSelectedBlock = null, this.lastSelectedBlock = null, this.onMouseUp = () => {
|
|
9180
9180
|
this.listeners.off(document, "mouseover", this.onMouseOver), this.listeners.off(document, "mouseup", this.onMouseUp), this.isCrossBlockSelectionStarted && this.Blok.Toolbar.moveAndOpenForMultipleBlocks();
|
|
@@ -9211,7 +9211,7 @@ class ii extends T {
|
|
|
9211
9211
|
* @param {MouseEvent} event - mouse down event
|
|
9212
9212
|
*/
|
|
9213
9213
|
watchSelection(t) {
|
|
9214
|
-
if (t.button !==
|
|
9214
|
+
if (t.button !== sn.LEFT)
|
|
9215
9215
|
return;
|
|
9216
9216
|
const { BlockManager: e } = this.Blok, o = e.getBlock(t.target);
|
|
9217
9217
|
o && (this.firstSelectedBlock = o, this.lastSelectedBlock = o, this.listeners.on(document, "mouseover", this.onMouseOver), this.listeners.on(document, "mouseup", this.onMouseUp));
|
|
@@ -9305,7 +9305,7 @@ const Lt = {
|
|
|
9305
9305
|
/** Horizontal distance to the left of blocks where drop is still valid */
|
|
9306
9306
|
leftDropZone: 50
|
|
9307
9307
|
};
|
|
9308
|
-
class
|
|
9308
|
+
class li extends T {
|
|
9309
9309
|
constructor() {
|
|
9310
9310
|
super(...arguments), this.dragState = null, this.boundHandlers = null;
|
|
9311
9311
|
}
|
|
@@ -9852,7 +9852,7 @@ class ri extends T {
|
|
|
9852
9852
|
this.cleanup();
|
|
9853
9853
|
}
|
|
9854
9854
|
}
|
|
9855
|
-
class
|
|
9855
|
+
class ci extends T {
|
|
9856
9856
|
/**
|
|
9857
9857
|
* Prepare the module
|
|
9858
9858
|
* @param options - options used by the modification observer module
|
|
@@ -9863,13 +9863,13 @@ class ai extends T {
|
|
|
9863
9863
|
super({
|
|
9864
9864
|
config: t,
|
|
9865
9865
|
eventsDispatcher: e
|
|
9866
|
-
}), this.disabled = !1, this.batchingTimeout = null, this.batchingOnChangeQueue = /* @__PURE__ */ new Map(), this.batchTime =
|
|
9866
|
+
}), this.disabled = !1, this.batchingTimeout = null, this.batchingOnChangeQueue = /* @__PURE__ */ new Map(), this.batchTime = rn, this.mutationObserver = new MutationObserver((o) => {
|
|
9867
9867
|
this.redactorChanged(o);
|
|
9868
9868
|
}), this.eventsDispatcher.on(wt, (o) => {
|
|
9869
9869
|
this.particularBlockChanged(o.event);
|
|
9870
|
-
}), this.eventsDispatcher.on(
|
|
9870
|
+
}), this.eventsDispatcher.on(yo, () => {
|
|
9871
9871
|
this.disable();
|
|
9872
|
-
}), this.eventsDispatcher.on(
|
|
9872
|
+
}), this.eventsDispatcher.on(xo, () => {
|
|
9873
9873
|
this.enable();
|
|
9874
9874
|
});
|
|
9875
9875
|
}
|
|
@@ -9916,7 +9916,7 @@ class ai extends T {
|
|
|
9916
9916
|
});
|
|
9917
9917
|
}
|
|
9918
9918
|
}
|
|
9919
|
-
const
|
|
9919
|
+
const uo = /* @__PURE__ */ new Set([
|
|
9920
9920
|
"table",
|
|
9921
9921
|
"thead",
|
|
9922
9922
|
"tbody",
|
|
@@ -9984,7 +9984,7 @@ const ho = /* @__PURE__ */ new Set([
|
|
|
9984
9984
|
if (!s)
|
|
9985
9985
|
continue;
|
|
9986
9986
|
const i = s.tagName.toLowerCase();
|
|
9987
|
-
|
|
9987
|
+
uo.has(i) && (e[i] = (n = e[i]) != null ? n : {}), o.push(...Array.from(s.children));
|
|
9988
9988
|
}
|
|
9989
9989
|
return e;
|
|
9990
9990
|
}
|
|
@@ -10131,7 +10131,7 @@ const ho = /* @__PURE__ */ new Set([
|
|
|
10131
10131
|
const { files: e = {} } = t.pasteConfig, { extensions: o, mimeTypes: n } = e;
|
|
10132
10132
|
if (!o && !n)
|
|
10133
10133
|
return;
|
|
10134
|
-
const s = o == null ? [] : Array.isArray(o) ? o : (I(`«extensions» property of the paste config for «${t.name}» Tool should be an array`), []), i = n == null ? [] : Array.isArray(n) ? n.filter((r) =>
|
|
10134
|
+
const s = o == null ? [] : Array.isArray(o) ? o : (I(`«extensions» property of the paste config for «${t.name}» Tool should be an array`), []), i = n == null ? [] : Array.isArray(n) ? n.filter((r) => an(r) ? !0 : (I(`MIME type value «${r}» for the «${t.name}» Tool is not a valid MIME type`, "warn"), !1)) : (I(`«mimeTypes» property of the paste config for «${t.name}» Tool should be an array`), []);
|
|
10135
10135
|
this.toolsFiles[t.name] = {
|
|
10136
10136
|
extensions: s,
|
|
10137
10137
|
mimeTypes: i
|
|
@@ -10181,7 +10181,7 @@ const ho = /* @__PURE__ */ new Set([
|
|
|
10181
10181
|
* @param {File} file - file to process
|
|
10182
10182
|
*/
|
|
10183
10183
|
async processFile(t) {
|
|
10184
|
-
const e =
|
|
10184
|
+
const e = ln(t), o = Object.entries(this.toolsFiles).find(([i, { mimeTypes: r, extensions: l }]) => {
|
|
10185
10185
|
const [c, d] = t.type.split("/"), h = l.find((f) => f.toLowerCase() === e.toLowerCase()), u = r.find((f) => {
|
|
10186
10186
|
const [p, b] = f.split("/");
|
|
10187
10187
|
return p === c && (b === d || b === "*");
|
|
@@ -10389,7 +10389,7 @@ const ho = /* @__PURE__ */ new Set([
|
|
|
10389
10389
|
*/
|
|
10390
10390
|
processElementNode(t, e, o) {
|
|
10391
10391
|
var p, b;
|
|
10392
|
-
const n = Object.keys(this.toolsTags), s = t, i = this.toolsTags[s.tagName], r = i == null ? void 0 : i.tool, l = (b = this.tagsByTool[(p = r == null ? void 0 : r.name) != null ? p : ""]) != null ? b : [], c = n.includes(s.tagName), d = g.blockElements.includes(s.tagName.toLowerCase()), h =
|
|
10392
|
+
const n = Object.keys(this.toolsTags), s = t, i = this.toolsTags[s.tagName], r = i == null ? void 0 : i.tool, l = (b = this.tagsByTool[(p = r == null ? void 0 : r.name) != null ? p : ""]) != null ? b : [], c = n.includes(s.tagName), d = g.blockElements.includes(s.tagName.toLowerCase()), h = uo.has(s.tagName.toLowerCase()), u = Array.from(s.children).some(
|
|
10393
10393
|
({ tagName: k }) => n.includes(k) && !l.includes(k)
|
|
10394
10394
|
), f = Array.from(s.children).some(
|
|
10395
10395
|
({ tagName: k }) => g.blockElements.includes(k.toLowerCase())
|
|
@@ -10442,7 +10442,7 @@ const ho = /* @__PURE__ */ new Set([
|
|
|
10442
10442
|
};
|
|
10443
10443
|
Kt.PATTERN_PROCESSING_MAX_LENGTH = 450;
|
|
10444
10444
|
let fe = Kt;
|
|
10445
|
-
class
|
|
10445
|
+
class di extends T {
|
|
10446
10446
|
constructor() {
|
|
10447
10447
|
super(...arguments), this.toolsDontSupportReadOnly = [], this.readOnlyEnabled = !1;
|
|
10448
10448
|
}
|
|
@@ -10490,7 +10490,7 @@ class li extends T {
|
|
|
10490
10490
|
);
|
|
10491
10491
|
}
|
|
10492
10492
|
}
|
|
10493
|
-
class
|
|
10493
|
+
class hi extends T {
|
|
10494
10494
|
constructor() {
|
|
10495
10495
|
super(...arguments), this.isRectSelectionActivated = !1, this.SCROLL_SPEED = 3, this.HEIGHT_OF_SCROLL_ZONE = 40, this.BOTTOM_SCROLL_ZONE = 1, this.TOP_SCROLL_ZONE = 2, this.MAIN_MOUSE_BUTTON = 0, this.mousedown = !1, this.isScrolling = !1, this.inScrollZone = null, this.startX = 0, this.startY = 0, this.mouseX = 0, this.mouseY = 0, this.stackOfSelected = [], this.rectCrossesBlocks = !1, this.overlayRectangle = null, this.listenerIds = [];
|
|
10496
10496
|
}
|
|
@@ -10533,7 +10533,7 @@ class ci extends T {
|
|
|
10533
10533
|
j(m.elementContent),
|
|
10534
10534
|
j(m.toolbar),
|
|
10535
10535
|
j(m.popover),
|
|
10536
|
-
|
|
10536
|
+
cn
|
|
10537
10537
|
].some((b) => !!h.closest(b))) || (this.Blok.Toolbar.close(), this.mousedown = !0, this.startX = t, this.startY = e);
|
|
10538
10538
|
}
|
|
10539
10539
|
/**
|
|
@@ -10801,58 +10801,59 @@ class ci extends T {
|
|
|
10801
10801
|
f.length > 0 && this.stackOfSelected.splice(this.stackOfSelected.length - f.length, f.length);
|
|
10802
10802
|
}
|
|
10803
10803
|
}
|
|
10804
|
-
const
|
|
10805
|
-
var
|
|
10806
|
-
return a.type === "list" && ((
|
|
10807
|
-
}, ui = (a) => a.parent !== void 0 || a.content !== void 0 && a.content.length > 0,
|
|
10804
|
+
const ui = (a) => a.some((t) => t.items !== void 0 && t.items.length > 0), De = (a) => {
|
|
10805
|
+
var t;
|
|
10806
|
+
return a.type === "list" && Array.isArray((t = a.data) == null ? void 0 : t.items);
|
|
10807
|
+
}, pi = (a) => De(a) ? ui(a.data.items) : !1, fi = (a) => a.parent !== void 0 || a.content !== void 0 && a.content.length > 0, gi = (a) => a.some(fi) ? { format: "hierarchical", hasHierarchy: !0 } : a.some(De) ? { format: "legacy", hasHierarchy: a.some(pi) } : { format: "flat", hasHierarchy: !1 }, _o = (a, t, e, o, n, s, i) => {
|
|
10808
10808
|
const r = [];
|
|
10809
10809
|
return a.forEach((l, c) => {
|
|
10810
10810
|
const d = ve();
|
|
10811
10811
|
r.push(d);
|
|
10812
|
-
const h =
|
|
10812
|
+
const h = o === "ordered" && e === 0 && c === 0 && n !== void 0 && n !== 1, u = l.items && l.items.length > 0, f = w(w({
|
|
10813
10813
|
id: d,
|
|
10814
|
-
type: "
|
|
10815
|
-
data: w({
|
|
10814
|
+
type: "list",
|
|
10815
|
+
data: w(w({
|
|
10816
10816
|
text: l.content,
|
|
10817
10817
|
checked: l.checked,
|
|
10818
10818
|
style: o
|
|
10819
|
-
},
|
|
10820
|
-
}, s !== void 0 ? { tunes: s } : {}), t !== void 0 ? { parent: t } : {})
|
|
10821
|
-
i.push(f)
|
|
10819
|
+
}, e > 0 ? { depth: e } : {}), h ? { start: n } : {})
|
|
10820
|
+
}, s !== void 0 ? { tunes: s } : {}), t !== void 0 ? { parent: t } : {});
|
|
10821
|
+
if (i.push(f), !u)
|
|
10822
|
+
return;
|
|
10823
|
+
const p = _o(l.items, d, e + 1, o, void 0, s, i);
|
|
10824
|
+
p.length > 0 && (f.content = p);
|
|
10822
10825
|
}), r;
|
|
10823
|
-
},
|
|
10826
|
+
}, mi = (a, t) => {
|
|
10824
10827
|
const e = [], o = a.style, n = a.start;
|
|
10825
|
-
return
|
|
10826
|
-
},
|
|
10827
|
-
var e
|
|
10828
|
+
return _o(a.items, void 0, 0, o, n, t, e), e;
|
|
10829
|
+
}, bi = (a) => {
|
|
10830
|
+
var e;
|
|
10828
10831
|
const t = [];
|
|
10829
|
-
for (const
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
t.push(...l);
|
|
10832
|
+
for (const o of a)
|
|
10833
|
+
if (De(o)) {
|
|
10834
|
+
const n = o.data, s = mi(n, o.tunes);
|
|
10835
|
+
t.push(...s);
|
|
10834
10836
|
} else
|
|
10835
|
-
t.push(R(w({},
|
|
10836
|
-
id:
|
|
10837
|
+
t.push(R(w({}, o), {
|
|
10838
|
+
id: (e = o.id) != null ? e : ve()
|
|
10837
10839
|
}));
|
|
10838
|
-
}
|
|
10839
10840
|
return t;
|
|
10840
|
-
},
|
|
10841
|
+
}, ki = (a, t) => {
|
|
10841
10842
|
a && t.add(a);
|
|
10842
|
-
},
|
|
10843
|
+
}, po = (a) => {
|
|
10843
10844
|
const n = a, { parent: t, content: e } = n;
|
|
10844
10845
|
return jt(n, ["parent", "content"]);
|
|
10845
|
-
},
|
|
10846
|
+
}, vi = (a, t, e) => {
|
|
10846
10847
|
const o = [];
|
|
10847
10848
|
for (const n of a) {
|
|
10848
10849
|
const s = t.get(n);
|
|
10849
|
-
if (s && s.type === "
|
|
10850
|
-
const r =
|
|
10850
|
+
if (s && s.type === "list") {
|
|
10851
|
+
const r = zo(s, t, e);
|
|
10851
10852
|
o.push(...r);
|
|
10852
10853
|
}
|
|
10853
10854
|
}
|
|
10854
10855
|
return o;
|
|
10855
|
-
},
|
|
10856
|
+
}, zo = (a, t, e) => {
|
|
10856
10857
|
var r, l;
|
|
10857
10858
|
const o = [];
|
|
10858
10859
|
a.id && e.add(a.id);
|
|
@@ -10860,10 +10861,10 @@ const di = (a) => a.some((t) => t.items !== void 0 && t.items.length > 0), hi =
|
|
|
10860
10861
|
content: ((r = a.data) == null ? void 0 : r.text) || "",
|
|
10861
10862
|
checked: (l = a.data) == null ? void 0 : l.checked
|
|
10862
10863
|
};
|
|
10863
|
-
return a.content && a.content.length > 0 && (n.items =
|
|
10864
|
-
},
|
|
10864
|
+
return a.content && a.content.length > 0 && (n.items = vi(a.content, t, e)), n.items !== void 0 && n.items.length === 0 && delete n.items, o.push(n), o;
|
|
10865
|
+
}, Bi = (a, t, e) => {
|
|
10865
10866
|
var r, l;
|
|
10866
|
-
const o =
|
|
10867
|
+
const o = zo(a, t, e), n = ((r = a.data) == null ? void 0 : r.style) || "unordered", s = (l = a.data) == null ? void 0 : l.start;
|
|
10867
10868
|
return w({
|
|
10868
10869
|
id: a.id,
|
|
10869
10870
|
type: "list",
|
|
@@ -10872,26 +10873,29 @@ const di = (a) => a.some((t) => t.items !== void 0 && t.items.length > 0), hi =
|
|
|
10872
10873
|
items: o
|
|
10873
10874
|
}, n === "ordered" && s !== void 0 && s !== 1 ? { start: s } : {})
|
|
10874
10875
|
}, a.tunes !== void 0 ? { tunes: a.tunes } : {});
|
|
10875
|
-
},
|
|
10876
|
-
|
|
10876
|
+
}, fo = (a) => {
|
|
10877
|
+
var t, e;
|
|
10878
|
+
return a.type === "list" && ((t = a.data) == null ? void 0 : t.text) !== void 0 && ((e = a.data) == null ? void 0 : e.items) === void 0;
|
|
10879
|
+
}, wi = (a) => {
|
|
10880
|
+
const t = /* @__PURE__ */ new Map();
|
|
10877
10881
|
for (const s of a)
|
|
10878
|
-
s.id && t.set(s.id, s)
|
|
10879
|
-
if (
|
|
10880
|
-
return a.map(
|
|
10882
|
+
s.id && t.set(s.id, s);
|
|
10883
|
+
if (!a.some(fo))
|
|
10884
|
+
return a.map(po);
|
|
10881
10885
|
const o = [], n = /* @__PURE__ */ new Set();
|
|
10882
10886
|
for (const s of a) {
|
|
10883
10887
|
if (s.id && n.has(s.id))
|
|
10884
10888
|
continue;
|
|
10885
|
-
const r = s
|
|
10886
|
-
if (
|
|
10887
|
-
const
|
|
10888
|
-
o.push(
|
|
10889
|
+
const r = fo(s), l = r && !s.parent, c = !r;
|
|
10890
|
+
if (l) {
|
|
10891
|
+
const d = Bi(s, t, n);
|
|
10892
|
+
o.push(d);
|
|
10889
10893
|
}
|
|
10890
|
-
|
|
10894
|
+
c && (o.push(po(s)), ki(s.id, n));
|
|
10891
10895
|
}
|
|
10892
10896
|
return o;
|
|
10893
|
-
},
|
|
10894
|
-
class
|
|
10897
|
+
}, yi = (a, t) => a === "hierarchical" ? t === "legacy" : !1, xi = (a, t) => a === "legacy" || a === "auto" && t === "legacy";
|
|
10898
|
+
class Ti extends T {
|
|
10895
10899
|
constructor() {
|
|
10896
10900
|
super(...arguments), this.detectedInputFormat = "flat";
|
|
10897
10901
|
}
|
|
@@ -10911,9 +10915,9 @@ class yi extends T {
|
|
|
10911
10915
|
if (t.length === 0)
|
|
10912
10916
|
n.insert();
|
|
10913
10917
|
else {
|
|
10914
|
-
const s = this.config.dataModel || "auto", i =
|
|
10918
|
+
const s = this.config.dataModel || "auto", i = gi(t);
|
|
10915
10919
|
this.detectedInputFormat = i.format;
|
|
10916
|
-
const l = (
|
|
10920
|
+
const l = (yi(s, i.format) ? bi(t) : t).map((c) => {
|
|
10917
10921
|
const { tunes: d, id: h, parent: u, content: f } = c, p = c.type, b = o.available.has(p) ? {
|
|
10918
10922
|
tool: p,
|
|
10919
10923
|
data: c.data
|
|
@@ -10978,7 +10982,7 @@ class yi extends T {
|
|
|
10978
10982
|
};
|
|
10979
10983
|
}
|
|
10980
10984
|
}
|
|
10981
|
-
class
|
|
10985
|
+
class Si extends T {
|
|
10982
10986
|
/**
|
|
10983
10987
|
* Composes new chain of Promises to fire them alternatelly
|
|
10984
10988
|
* @returns {OutputData | undefined}
|
|
@@ -11067,7 +11071,7 @@ class xi extends T {
|
|
|
11067
11071
|
});
|
|
11068
11072
|
e.push(S);
|
|
11069
11073
|
});
|
|
11070
|
-
const o = this.config.dataModel || "auto", n = (l = (r = (i = this.Blok.Renderer) == null ? void 0 : i.getDetectedInputFormat) == null ? void 0 : r.call(i)) != null ? l : "flat", s =
|
|
11074
|
+
const o = this.config.dataModel || "auto", n = (l = (r = (i = this.Blok.Renderer) == null ? void 0 : i.getDetectedInputFormat) == null ? void 0 : r.call(i)) != null ? l : "flat", s = xi(o, n) ? wi(e) : e;
|
|
11071
11075
|
return {
|
|
11072
11076
|
time: +/* @__PURE__ */ new Date(),
|
|
11073
11077
|
blocks: s,
|
|
@@ -11142,7 +11146,7 @@ class xi extends T {
|
|
|
11142
11146
|
});
|
|
11143
11147
|
}
|
|
11144
11148
|
}
|
|
11145
|
-
const
|
|
11149
|
+
const Le = class Le {
|
|
11146
11150
|
/**
|
|
11147
11151
|
* @param options - constructor options
|
|
11148
11152
|
* @param options.data - stub tool data
|
|
@@ -11170,7 +11174,7 @@ const De = class De {
|
|
|
11170
11174
|
* @returns {HTMLElement}
|
|
11171
11175
|
*/
|
|
11172
11176
|
make() {
|
|
11173
|
-
const t = g.make("div", "flex items-center py-3 px-[18px] my-2.5 rounded-[10px] bg-bg-light border border-line-gray text-gray-text text-sm [&_svg]:size-icon"), e =
|
|
11177
|
+
const t = g.make("div", "flex items-center py-3 px-[18px] my-2.5 rounded-[10px] bg-bg-light border border-line-gray text-gray-text text-sm [&_svg]:size-icon"), e = dn, o = g.make("div", "ml-3.5"), n = g.make("div", "font-medium capitalize", {
|
|
11174
11178
|
textContent: this.title
|
|
11175
11179
|
}), s = g.make("div", "", {
|
|
11176
11180
|
textContent: this.subtitle
|
|
@@ -11178,9 +11182,9 @@ const De = class De {
|
|
|
11178
11182
|
return t.setAttribute(m.tool, "stub"), t.setAttribute(m.stub, ""), o.setAttribute(m.stubInfo, ""), n.setAttribute(m.stubTitle, ""), s.setAttribute(m.stubSubtitle, ""), t.innerHTML = e, o.appendChild(n), o.appendChild(s), t.appendChild(o), t;
|
|
11179
11183
|
}
|
|
11180
11184
|
};
|
|
11181
|
-
|
|
11182
|
-
let ge =
|
|
11183
|
-
class
|
|
11185
|
+
Le.isReadOnlySupported = !0;
|
|
11186
|
+
let ge = Le;
|
|
11187
|
+
class Ci extends Ie {
|
|
11184
11188
|
constructor() {
|
|
11185
11189
|
super(...arguments), this.type = dt.Inline;
|
|
11186
11190
|
}
|
|
@@ -11224,7 +11228,7 @@ class Ti extends Ie {
|
|
|
11224
11228
|
return this.constructable.titleKey;
|
|
11225
11229
|
}
|
|
11226
11230
|
}
|
|
11227
|
-
class
|
|
11231
|
+
class Ii extends Ie {
|
|
11228
11232
|
constructor() {
|
|
11229
11233
|
super(...arguments), this.type = dt.Tune;
|
|
11230
11234
|
}
|
|
@@ -11280,7 +11284,7 @@ class _ extends Map {
|
|
|
11280
11284
|
return new _(t);
|
|
11281
11285
|
}
|
|
11282
11286
|
}
|
|
11283
|
-
class
|
|
11287
|
+
class Ei extends Ie {
|
|
11284
11288
|
constructor() {
|
|
11285
11289
|
super(...arguments), this.type = dt.Block, this.inlineTools = new _(), this.tunes = new _();
|
|
11286
11290
|
}
|
|
@@ -11439,7 +11443,7 @@ class Ci extends Ie {
|
|
|
11439
11443
|
return Array.from(this.inlineTools.values()).forEach((e) => Object.assign(t, e.sanitizeConfig)), Array.from(this.tunes.values()).forEach((e) => Object.assign(t, e.sanitizeConfig)), this._baseSanitizeConfig = t, t;
|
|
11440
11444
|
}
|
|
11441
11445
|
}
|
|
11442
|
-
class
|
|
11446
|
+
class Ai {
|
|
11443
11447
|
/**
|
|
11444
11448
|
* @class
|
|
11445
11449
|
* @param config - tools config
|
|
@@ -11501,16 +11505,16 @@ class Ii {
|
|
|
11501
11505
|
*/
|
|
11502
11506
|
getConstructor(t) {
|
|
11503
11507
|
switch (!0) {
|
|
11504
|
-
case !!Reflect.get(t,
|
|
11505
|
-
return Ti;
|
|
11506
|
-
case !!Reflect.get(t, Eo.IsTune):
|
|
11507
|
-
return Si;
|
|
11508
|
-
default:
|
|
11508
|
+
case !!Reflect.get(t, Ao.IsInline):
|
|
11509
11509
|
return Ci;
|
|
11510
|
+
case !!Reflect.get(t, Mo.IsTune):
|
|
11511
|
+
return Ii;
|
|
11512
|
+
default:
|
|
11513
|
+
return Ei;
|
|
11510
11514
|
}
|
|
11511
11515
|
}
|
|
11512
11516
|
}
|
|
11513
|
-
const
|
|
11517
|
+
const Oe = class Oe {
|
|
11514
11518
|
/**
|
|
11515
11519
|
* DeleteTune constructor
|
|
11516
11520
|
* @param {API} api - Blok's API
|
|
@@ -11523,7 +11527,7 @@ const Le = class Le {
|
|
|
11523
11527
|
*/
|
|
11524
11528
|
render() {
|
|
11525
11529
|
return {
|
|
11526
|
-
icon:
|
|
11530
|
+
icon: Bo,
|
|
11527
11531
|
title: this.api.i18n.t("blockSettings.delete"),
|
|
11528
11532
|
name: "delete",
|
|
11529
11533
|
onActivate: () => this.handleClick()
|
|
@@ -11536,8 +11540,8 @@ const Le = class Le {
|
|
|
11536
11540
|
this.api.blocks.delete();
|
|
11537
11541
|
}
|
|
11538
11542
|
};
|
|
11539
|
-
|
|
11540
|
-
let me =
|
|
11543
|
+
Oe.isTune = !0;
|
|
11544
|
+
let me = Oe;
|
|
11541
11545
|
const ee = (a) => {
|
|
11542
11546
|
if (!E(a))
|
|
11543
11547
|
throw new Error("Tool constructable must be a function");
|
|
@@ -11607,7 +11611,7 @@ const ee = (a) => {
|
|
|
11607
11611
|
if (!e || Object.keys(e).length === 0)
|
|
11608
11612
|
throw Error("Can't start without tools");
|
|
11609
11613
|
const o = this.prepareConfig(e);
|
|
11610
|
-
this.factory = new
|
|
11614
|
+
this.factory = new Ai(o, this.config, this.Blok.API);
|
|
11611
11615
|
const n = this.getListOfPrepareFunctions(o);
|
|
11612
11616
|
if (n.length === 0)
|
|
11613
11617
|
return Promise.resolve();
|
|
@@ -11615,10 +11619,10 @@ const ee = (a) => {
|
|
|
11615
11619
|
this.isToolPrepareData(c) && this.toolPrepareMethodSuccess({ toolName: c.toolName });
|
|
11616
11620
|
}, i = (c) => {
|
|
11617
11621
|
this.isToolPrepareData(c) && this.toolPrepareMethodFallback({ toolName: c.toolName });
|
|
11618
|
-
}, r = new
|
|
11622
|
+
}, r = new Ho();
|
|
11619
11623
|
n.forEach((c) => {
|
|
11620
11624
|
r.add(async () => {
|
|
11621
|
-
const d =
|
|
11625
|
+
const d = hn(c.data) ? {} : c.data;
|
|
11622
11626
|
try {
|
|
11623
11627
|
await c.function(c.data), s(d);
|
|
11624
11628
|
} catch (h) {
|
|
@@ -11677,7 +11681,7 @@ const ee = (a) => {
|
|
|
11677
11681
|
isInternal: !0
|
|
11678
11682
|
},
|
|
11679
11683
|
convertTo: {
|
|
11680
|
-
class: ee(
|
|
11684
|
+
class: ee(un),
|
|
11681
11685
|
isInternal: !0
|
|
11682
11686
|
}
|
|
11683
11687
|
};
|
|
@@ -11899,14 +11903,14 @@ Wt.BLOK_SETTINGS_KEYS = /* @__PURE__ */ new Set([
|
|
|
11899
11903
|
"isInternal"
|
|
11900
11904
|
]);
|
|
11901
11905
|
let be = Wt;
|
|
11902
|
-
const Ei = `*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:PT Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:651px){.\\!container{max-width:651px!important}.container{max-width:651px}}@media(min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.blok-block{padding:3px 2px}.blok-block::-webkit-input-placeholder{line-height:1.5!important}.blok-inline-tool-button{display:flex;height:100%;width:1.75rem;cursor:pointer;align-items:center;justify-content:center;border-radius:.25rem;border-width:0px;background-color:transparent;padding:0;line-height:1.5;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.blok-inline-tool-button--active{background-color:#388ae51a;--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.blok-input{width:100%;border-radius:3px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1));padding:.625rem .75rem;--tw-shadow: inset 0 1px 2px 0 rgba(35, 44, 72, .06);--tw-shadow-colored: inset 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.blok-input[data-blok-placeholder]:before{pointer-events:none;position:static!important;display:inline-block;width:0px;content:var(--tw-content);white-space:nowrap}.blok-loader{position:relative;border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1))}.blok-loader:before{position:absolute;left:50%;top:50%;margin-left:-11px;margin-top:-11px;height:18px;content:var(--tw-content);width:18px}@keyframes rotation{0%{content:var(--tw-content);transform:rotate(0)}to{content:var(--tw-content);transform:rotate(360deg)}}.blok-loader:before{animation:rotation 1.2s infinite linear;border-radius:9999px;border-width:2px;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1));--tw-border-opacity: 1;border-left-color:rgb(56 138 229 / var(--tw-border-opacity, 1));--tw-content: "";content:var(--tw-content)}.blok-button{cursor:pointer;border-radius:3px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:13px;text-align:center;font-size:14.9px;--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1));--tw-shadow: 0 2px 2px 0 rgba(18, 30, 57, .04);--tw-shadow-colored: 0 2px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blok-button:hover{--tw-bg-opacity: 1;background-color:rgb(251 252 254 / var(--tw-bg-opacity, 1));--tw-shadow: 0 1px 3px 0 rgba(18, 30, 57, .08);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blok-button svg{margin-right:.2em;margin-top:-.125rem;height:1.25rem}.blok-settings-button{margin:0;display:inline-flex;min-height:26px;min-width:26px;cursor:pointer;align-items:center;justify-content:center;border-radius:3px;border-width:0px;background-color:transparent;vertical-align:bottom;color:inherit;outline:2px solid transparent;outline-offset:2px}@media(max-width:650px){.blok-settings-button{height:36px;width:36px;border-radius:.5rem}}@media(hover:hover){.blok-settings-button:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}}.blok-settings-button svg{height:auto;width:auto}@media(max-width:650px){.blok-settings-button svg{height:28px;width:28px}}.blok-settings-button--active{--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.blok-settings-button--focused{background-color:#22baff14;--tw-shadow: inset 0 0 0 1px rgba(7, 161, 227, .08);--tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@keyframes buttonClicked{0%{transform:scale3d(.95,.95,.95)}60%{transform:scale3d(1.02,1.02,1.02)}80%,to{transform:scaleZ(1)}}.blok-settings-button--focused-animated{animation:buttonClicked .75s cubic-bezier(.215,.61,.355,1) forwards}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-\\[auto_var\\(--offset\\)_calc\\(var\\(--offset\\)\\+env\\(safe-area-inset-bottom\\)\\)_var\\(--offset\\)\\]{inset:auto var(--offset) calc(var(--offset) + env(safe-area-inset-bottom)) var(--offset)}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-5{left:1.25rem}.left-\\[var\\(--popover-left\\)\\]{left:var(--popover-left)}.left-auto{left:auto}.right-0{right:0}.right-\\[15px\\]{right:15px}.right-full{right:100%}.top-0{top:0}.top-\\[7px\\]{top:7px}.top-\\[var\\(--popover-top\\)\\]{top:var(--popover-top)}.top-auto{top:auto}.z-0{z-index:0}.z-\\[10000\\]{z-index:10000}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.z-\\[4\\]{z-index:4}.z-overlay{z-index:999}.\\!m-0{margin:0!important}.-m-px{margin:-1px}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2\\.5{margin-top:.625rem;margin-bottom:.625rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-\\[-0\\.5em\\]{margin-top:-.5em;margin-bottom:-.5em}.\\!mr-0{margin-right:0!important}.\\!mr-2{margin-right:.5rem!important}.mb-1{margin-bottom:.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-\\[30px\\]{margin-bottom:30px}.mb-px{margin-bottom:1px}.ml-3\\.5{margin-left:.875rem}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\\[15px\\]{margin-top:15px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-\\[5px\\]{margin-top:5px}.box-border{box-sizing:border-box}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.h-2\\.5{height:.625rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-\\[26px\\]{height:26px}.h-\\[50px\\]{height:50px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-toolbox-btn{height:26px}.max-h-0{max-height:0px}.max-h-\\[var\\(--max-height\\)\\]{max-height:var(--max-height)}.max-h-none{max-height:none}.w-2\\.5{width:.625rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-9{width:2.25rem}.w-\\[230px\\]{width:230px}.w-\\[26px\\]{width:26px}.w-\\[var\\(--width\\)\\]{width:var(--width)}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-toolbox-btn{width:26px}.min-w-0{min-width:0px}.min-w-\\[calc\\(100\\%-theme\\(\\'spacing\\.6\\'\\)-10px\\)\\]{min-width:calc(100% - 1.5rem - 10px)}.min-w-\\[calc\\(100\\%-var\\(--offset\\)\\*2\\)\\]{min-width:calc(100% - var(--offset) * 2)}.min-w-\\[var\\(--width\\)\\]{min-width:var(--width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-\\[130px\\]{max-width:130px}.max-w-content{max-width:650px}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-\\[5px\\]{--tw-translate-x: -5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[5px\\]{--tw-translate-y: -5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[5px\\]{--tw-translate-x: 5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[5px\\]{--tw-translate-y: 5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes panelShowingMobile{0%{opacity:0;transform:translateY(14px) scale(.98)}70%{opacity:1;transform:translateY(-4px)}to{transform:translateY(0)}}.animate-\\[panelShowingMobile_250ms_ease\\]{animation:panelShowingMobile .25s ease}@keyframes panelShowing{0%{opacity:0;transform:translateY(-8px) scale(.9)}70%{opacity:1;transform:translateY(2px)}to{transform:translateY(0)}}.animate-\\[panelShowing_100ms_ease\\]{animation:panelShowing .1s ease}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease forwards}.animate-none{animation:none}@keyframes notifyBounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(.9)}to{transform:scale(1)}}.animate-notify-bounce-in{animation:notifyBounceIn .6s 1}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-9%,0,0)}30%{transform:translate3d(9%,0,0)}45%{transform:translate3d(-4%,0,0)}60%{transform:translate3d(4%,0,0)}75%{transform:translate3d(-1%,0,0)}to{transform:translateZ(0)}}.animate-wobble{animation:wobble .4s}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-\\[auto_auto_1fr\\]{grid-template-columns:auto auto 1fr}.grid-rows-\\[auto\\]{grid-template-rows:auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[7px\\]{border-radius:7px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[\\#e8e8eb\\]{--tw-border-opacity: 1;border-color:rgb(232 232 235 / var(--tw-border-opacity, 1))}.border-\\[rgba\\(226\\,226\\,229\\,0\\.2\\)\\],.border-\\[rgba\\(226\\,226\\,229\\,0\\.20\\)\\]{border-color:#e2e2e533}.border-line-gray,.border-popover-border{--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.\\!bg-\\[\\#fafffe\\]{--tw-bg-opacity: 1 !important;background-color:rgb(250 255 254 / var(--tw-bg-opacity, 1))!important}.\\!bg-\\[\\#fffbfb\\]{--tw-bg-opacity: 1 !important;background-color:rgb(255 251 251 / var(--tw-bg-opacity, 1))!important}.\\!bg-item-confirm-bg{--tw-bg-opacity: 1 !important;background-color:rgb(226 74 74 / var(--tw-bg-opacity, 1))!important}.\\!bg-item-focus-bg{background-color:#22baff14!important}.bg-\\[\\#34c992\\]{--tw-bg-opacity: 1;background-color:rgb(52 201 146 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F8F8F8\\]{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.bg-\\[\\#eff1f4\\]{--tw-bg-opacity: 1;background-color:rgb(239 241 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#f2f5f7\\]{--tw-bg-opacity: 1;background-color:rgb(242 245 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#f7f7f7\\]{--tw-bg-opacity: 1;background-color:rgb(247 247 247 / var(--tw-bg-opacity, 1))}.bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}.bg-dark{--tw-bg-opacity: 1;background-color:rgb(29 32 43 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-item-hover-bg{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.bg-popover-bg{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-popover-border{--tw-bg-opacity: 1;background-color:rgb(239 240 241 / var(--tw-bg-opacity, 1))}.bg-selection{--tw-bg-opacity: 1;background-color:rgb(225 242 255 / var(--tw-bg-opacity, 1))}.bg-selection-highlight{background-color:#2eaadc33}.bg-tooltip-bg{--tw-bg-opacity: 1;background-color:rgb(29 32 43 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[3px\\]{padding:3px}.p-\\[5px\\]{padding:5px}.p-\\[var\\(--item-padding\\)\\]{padding:var(--item-padding)}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-\\[18px\\]{padding-left:18px;padding-right:18px}.px-\\[2px\\]{padding-left:2px;padding-right:2px}.px-\\[30px\\]{padding-left:30px;padding-right:30px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-\\[0\\.5em\\]{padding-top:.5em;padding-bottom:.5em}.py-\\[13px\\]{padding-top:13px;padding-bottom:13px}.py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.pl-0\\.5{padding-left:.125rem}.pr-1\\.5{padding-right:.375rem}.pr-\\[5px\\]{padding-right:5px}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.font-\\[-apple-system\\,BlinkMacSystemFont\\,\\"Segoe_UI\\"\\,\\"Roboto\\"\\,\\"Oxygen\\"\\,\\"Ubuntu\\"\\,\\"Cantarell\\"\\,\\"Fira_Sans\\"\\,\\"Droid_Sans\\"\\,\\"Helvetica_Neue\\"\\,sans-serif\\]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.font-\\[inherit\\]{font-family:inherit}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[13px\\]{font-size:13px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.\\!leading-\\[1\\.3\\]{line-height:1.3!important}.leading-5{line-height:1.25rem}.leading-\\[1\\.4em\\]{line-height:1.4em}.leading-\\[1\\.6em\\]{line-height:1.6em}.leading-\\[1em\\]{line-height:1em}.leading-\\[22px\\]{line-height:22px}.leading-\\[50px\\]{line-height:50px}.leading-relaxed{line-height:1.625}.tracking-\\[0\\.02em\\]{letter-spacing:.02em}.tracking-\\[0\\.25px\\]{letter-spacing:.25px}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-\\[\\#656b7c\\]{--tw-text-opacity: 1;color:rgb(101 107 124 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-dark{--tw-text-opacity: 1;color:rgb(29 32 43 / var(--tw-text-opacity, 1))}.text-gray-text{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-text-primary{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-text-secondary{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.text-tooltip-font{--tw-text-opacity: 1;color:rgb(205 209 224 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-current{accent-color:currentColor}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_11px_17px_0_rgba\\(23\\,32\\,61\\,0\\.13\\)\\]{--tw-shadow: 0 11px 17px 0 rgba(23,32,61,.13);--tw-shadow-colored: 0 11px 17px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_1px_1px_0_rgba\\(18\\,49\\,35\\,0\\.05\\)\\]{--tw-shadow: 0 1px 1px 0 rgba(18,49,35,.05);--tw-shadow-colored: 0 1px 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_2px_1px_0_rgba\\(16\\,19\\,29\\,0\\)\\]{--tw-shadow: 0 2px 1px 0 rgba(16,19,29,0);--tw-shadow-colored: 0 2px 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_3px_15px_-3px_theme\\(colors\\.popover-shadow\\)\\]{--tw-shadow: 0 3px 15px -3px rgba(13, 20, 33, .1);--tw-shadow-colored: 0 3px 15px -3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-tooltip{--tw-shadow: 0 8px 12px 0 rgba(29, 32, 43, .17), 0 4px 5px -3px rgba(5, 6, 12, .49);--tw-shadow-colored: 0 8px 12px 0 var(--tw-shadow-color), 0 4px 5px -3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-\\[120ms\\]{transition-duration:.12s}.duration-\\[250ms\\]{transition-duration:.25s}.duration-\\[50ms\\,70ms\\]{transition-duration:50ms,70ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-\\[opacity\\,left\\,top\\]{will-change:opacity,left,top}.will-change-\\[opacity\\,top\\,left\\]{will-change:opacity,top,left}.will-change-\\[opacity\\,top\\]{will-change:opacity,top}.will-change-\\[opacity\\]{will-change:opacity}.\\[clip\\:rect\\(0\\,0\\,0\\,0\\)\\]{clip:rect(0,0,0,0)}.\\[direction\\:rtl\\]{direction:rtl}[data-blok-navigation-focused=true]{margin-left:auto;margin-right:auto;width:650px;max-width:100%;border-radius:.375rem;background-color:#22baff14}@media(hover:hover){[data-blok-item-name=delete]:hover{--tw-text-opacity: 1;color:rgb(226 74 74 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}}[data-drop-indicator]{position:relative}[data-drop-indicator]:before{pointer-events:none;position:absolute;z-index:10;height:.375rem;width:100%;max-width:650px;border-radius:.125rem;--tw-bg-opacity: 1;background-color:rgb(212 227 252 / var(--tw-bg-opacity, 1));--tw-content: "";content:var(--tw-content);left:50%;margin-left:calc(var(--drop-indicator-depth, 0) * 12px);max-width:calc(650px - var(--drop-indicator-depth, 0) * 24px)}[data-drop-indicator=bottom]:before{bottom:0;transform:translate(-50%) translateY(50%)}[data-drop-indicator=top]:before{top:0;transform:translate(-50%) translateY(-50%)}[data-blok-dragging-multi=true] [data-blok-selected=true]{opacity:.4;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}[data-blok-selected=true] [data-blok-element-content]:has([data-list-style]){background-color:transparent}[data-blok-selected=true] [data-list-style] [role=listitem]{border-radius:4px;--tw-bg-opacity: 1;background-color:rgb(225 242 255 / var(--tw-bg-opacity, 1))}[data-blok-selected=true] [data-list-style] [role=listitem] [contenteditable]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.placeholder\\:font-medium::-moz-placeholder{font-weight:500}.placeholder\\:font-medium::placeholder{font-weight:500}.placeholder\\:text-\\[\\#656b7c\\]::-moz-placeholder{--tw-text-opacity: 1;color:rgb(101 107 124 / var(--tw-text-opacity, 1))}.placeholder\\:text-\\[\\#656b7c\\]::placeholder{--tw-text-opacity: 1;color:rgb(101 107 124 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-text::-moz-placeholder{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-text::placeholder{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);inset:0}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:left-\\[9px\\]:before{content:var(--tw-content);left:9px}.before\\:top-0:before{content:var(--tw-content);top:0}.before\\:top-\\[5px\\]:before{content:var(--tw-content);top:5px}.before\\:-z-10:before{content:var(--tw-content);z-index:-10}.before\\:m-\\[3px\\]:before{content:var(--tw-content);margin:3px}.before\\:block:before{content:var(--tw-content);display:block}.before\\:h-3:before{content:var(--tw-content);height:.75rem}.before\\:h-\\[calc\\(100\\%-6px\\)\\]:before{content:var(--tw-content);height:calc(100% - 6px)}.before\\:w-0\\.5:before{content:var(--tw-content);width:.125rem}.before\\:w-\\[3px\\]:before{content:var(--tw-content);width:3px}.before\\:rotate-\\[-45deg\\]:before{content:var(--tw-content);--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\\:rounded-\\[5px\\]:before{content:var(--tw-content);border-radius:5px}.before\\:rounded-lg:before{content:var(--tw-content);border-radius:.5rem}.before\\:\\!bg-\\[\\#41ffb1\\]:before{content:var(--tw-content);--tw-bg-opacity: 1 !important;background-color:rgb(65 255 177 / var(--tw-bg-opacity, 1))!important}.before\\:\\!bg-\\[\\#fb5d5d\\]:before{content:var(--tw-content);--tw-bg-opacity: 1 !important;background-color:rgb(251 93 93 / var(--tw-bg-opacity, 1))!important}.before\\:bg-\\[\\#575d67\\]:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(87 93 103 / var(--tw-bg-opacity, 1))}.before\\:bg-tooltip-bg:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(29 32 43 / var(--tw-bg-opacity, 1))}.before\\:bg-transparent:before{content:var(--tw-content);background-color:transparent}.before\\:content-\\[\\"\\"\\]:before{--tw-content: "";content:var(--tw-content)}.before\\:content-\\[\\\\\\'\\\\\\'\\]:before{--tw-content: \\'\\';content:var(--tw-content)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-\\[9px\\]:after{content:var(--tw-content);left:9px}.after\\:top-\\[5px\\]:after{content:var(--tw-content);top:5px}.after\\:mx-3:after{content:var(--tw-content);margin-left:.75rem;margin-right:.75rem}.after\\:h-3:after{content:var(--tw-content);height:.75rem}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:rotate-45:after{content:var(--tw-content);--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\\:bg-\\[\\#575d67\\]:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(87 93 103 / var(--tw-bg-opacity, 1))}.after\\:text-\\[\\#ddd\\]:after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(221 221 221 / var(--tw-text-opacity, 1))}.after\\:content-\\[\\"\\"\\]:after{--tw-content: "";content:var(--tw-content)}.after\\:content-\\[\\'\\|\\'\\]:after{--tw-content: "|";content:var(--tw-content)}.first\\:mt-0:first-child{margin-top:0}.last\\:ml-2\\.5:last-child{margin-left:.625rem}.empty\\:before\\:pointer-events-none:empty:before{content:var(--tw-content);pointer-events:none}.empty\\:before\\:cursor-text:empty:before{content:var(--tw-content);cursor:text}.empty\\:before\\:text-gray-text:empty:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.empty\\:before\\:content-\\[attr\\(data-blok-placeholder\\)\\]:empty:before{--tw-content: attr(data-blok-placeholder);content:var(--tw-content)}.empty\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\]:empty:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.empty\\:before\\:content-\\[attr\\(data-placeholder\\)\\]:empty:before{--tw-content: attr(data-placeholder);content:var(--tw-content)}.hover\\:bg-\\[\\#2db583\\]:hover{--tw-bg-opacity: 1;background-color:rgb(45 181 131 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#e0e4eb\\]:hover{--tw-bg-opacity: 1;background-color:rgb(224 228 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#e9ecee\\]:hover{--tw-bg-opacity: 1;background-color:rgb(233 236 238 / var(--tw-bg-opacity, 1))}.hover\\:opacity-100:hover{opacity:1}.focus\\:placeholder\\:text-\\[rgba\\(101\\,107\\,124\\,0\\.3\\)\\]:focus::-moz-placeholder{color:#656b7c4d}.focus\\:placeholder\\:text-\\[rgba\\(101\\,107\\,124\\,0\\.3\\)\\]:focus::placeholder{color:#656b7c4d}.empty\\:focus\\:before\\:pointer-events-none:focus:empty:before{content:var(--tw-content);pointer-events:none}.empty\\:focus\\:before\\:cursor-text:focus:empty:before{content:var(--tw-content);cursor:text}.empty\\:focus\\:before\\:text-gray-text:focus:empty:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.empty\\:focus\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\]:focus:empty:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.active\\:cursor-grabbing:active{cursor:grabbing}.group[data-blok-dragging=true] .group-data-\\[blok-dragging\\=true\\]\\:pointer-events-none{pointer-events:none}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:left-\\[calc\\(-1\\*theme\\(width\\.toolbox-btn\\)\\)\\]{left:-26px}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:left-auto{left:auto}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:right-\\[calc\\(-1\\*theme\\(width\\.toolbox-btn\\)\\)\\]{right:-26px}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:right-auto{right:auto}.group[data-blok-dragging=true] .group-data-\\[blok-dragging\\=true\\]\\:cursor-grabbing{cursor:grabbing}.group[data-blok-block-settings-opened=true] .group-data-\\[blok-block-settings-opened\\=true\\]\\:bg-bg-light,.group[data-blok-toolbox-opened=true] .group-data-\\[blok-toolbox-opened\\=true\\]\\:bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}@media(max-width:650px){.mobile\\:absolute{position:absolute}.mobile\\:right-auto{right:auto}.mobile\\:z-\\[2\\]{z-index:2}.mobile\\:hidden{display:none}.mobile\\:h-toolbox-btn-mobile{height:36px}.mobile\\:w-toolbox-btn-mobile{width:36px}.mobile\\:rounded-\\[6px\\]{border-radius:6px}.mobile\\:border{border-width:1px}.mobile\\:border-\\[\\#e8e8eb\\]{--tw-border-opacity: 1;border-color:rgb(232 232 235 / var(--tw-border-opacity, 1))}.mobile\\:bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.mobile\\:p-1{padding:.25rem}.mobile\\:text-\\[15px\\]{font-size:15px}.mobile\\:font-medium{font-weight:500}.mobile\\:shadow-overlay-pane{--tw-shadow: 0 3px 15px -3px rgba(13, 20, 33, .13);--tw-shadow-colored: 0 3px 15px -3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:ml-0{margin-left:0}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:mr-auto{margin-right:auto}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:pl-\\[10px\\]{padding-left:10px}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:pr-0{padding-right:0}}@media(min-width:651px){.not-mobile\\:w-6{width:1.5rem}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:left-0{left:0}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:left-\\[-5px\\]{left:-5px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:left-\\[calc\\(-1\\*theme\\(spacing\\.narrow-mode-right-padding\\)-5px\\)\\]{left:-55px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:right-\\[5px\\]{right:5px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:right-auto{right:auto}.group[data-blok-narrow=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:left-\\[5px\\]{left:5px}.group[data-blok-narrow=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:right-\\[calc\\(-1\\*theme\\(spacing\\.narrow-mode-right-padding\\)-5px\\)\\]{right:-55px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:ml-\\[theme\\(spacing\\.narrow-mode-right-padding\\)\\]{margin-left:50px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:mr-0{margin-right:0}.group[data-blok-narrow=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:mr-\\[theme\\(spacing\\.narrow-mode-right-padding\\)\\]{margin-right:50px}}@media(hover:hover){.can-hover\\:hover\\:cursor-grab:hover{cursor:grab}.can-hover\\:hover\\:cursor-pointer:hover{cursor:pointer}.can-hover\\:hover\\:bg-bg-light:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}.can-hover\\:hover\\:bg-item-hover-bg:hover{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.group[data-blok-block-settings-opened=true] .group-data-\\[blok-block-settings-opened\\=true\\]\\:can-hover\\:hover\\:cursor-pointer:hover,.group[data-blok-toolbox-opened=true] .group-data-\\[blok-toolbox-opened\\=true\\]\\:can-hover\\:hover\\:cursor-pointer:hover{cursor:pointer}}.\\[\\&\\>p\\:first-of-type\\]\\:mt-0>p:first-of-type{margin-top:0}.\\[\\&\\>p\\:last-of-type\\]\\:mb-0>p:last-of-type{margin-bottom:0}.\\[\\&\\[data-blok-dragging\\=true\\]\\]\\:cursor-grabbing[data-blok-dragging=true]{cursor:grabbing}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:pointer-events-none[data-blok-empty=true]:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:cursor-text[data-blok-empty=true]:before{content:var(--tw-content);cursor:text}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:text-gray-text[data-blok-empty=true]:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:content-\\[attr\\(data-blok-placeholder\\)\\][data-blok-empty=true]:before{--tw-content: attr(data-blok-placeholder);content:var(--tw-content)}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:content-\\[attr\\(data-placeholder\\)\\][data-blok-empty=true]:before{--tw-content: attr(data-placeholder);content:var(--tw-content)}.\\[\\&\\[data-blok-focused\\=\\"true\\"\\]\\]\\:bg-item-focus-bg[data-blok-focused=true]{background-color:#22baff14}.\\[\\&\\[data-blok-force-hover\\]\\]\\:cursor-pointer[data-blok-force-hover]{cursor:pointer}.\\[\\&\\[data-blok-force-hover\\]\\]\\:bg-item-hover-bg[data-blok-force-hover]{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.\\[\\&\\[data-blok-popover-item-active\\]\\]\\:bg-icon-active-bg[data-blok-popover-item-active]{background-color:#388ae51a}.\\[\\&\\[data-blok-popover-item-active\\]\\]\\:text-icon-active-text[data-blok-popover-item-active]{--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-blok-popover-item-no-hover\\]\\]\\:cursor-default[data-blok-popover-item-no-hover]{cursor:default}.\\[\\&\\[data-blok-popover-item-no-hover\\]\\]\\:hover\\:bg-transparent:hover[data-blok-popover-item-no-hover]{background-color:transparent}.\\[\\&\\[data-blok-toolbox-opened\\=true\\]_\\[contentEditable\\=true\\]\\[data-blok-placeholder\\]\\:focus\\]\\:before\\:\\!opacity-0[data-blok-toolbox-opened=true] [contentEditable=true][data-blok-placeholder]:focus:before{content:var(--tw-content);opacity:0!important}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:pointer-events-none[data-empty=true]:focus:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:cursor-text[data-empty=true]:focus:before{content:var(--tw-content);cursor:text}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:text-gray-text[data-empty=true]:focus:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\][data-empty=true]:focus:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:pointer-events-none[data-empty=true]:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:cursor-text[data-empty=true]:before{content:var(--tw-content);cursor:text}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:text-gray-text[data-empty=true]:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\][data-empty=true]:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.\\[\\&_\\:\\:selection\\]\\:bg-selection-inline ::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(212 236 255 / var(--tw-bg-opacity, 1))}.\\[\\&_\\:\\:selection\\]\\:bg-selection-inline ::selection{--tw-bg-opacity: 1;background-color:rgb(212 236 255 / var(--tw-bg-opacity, 1))}.\\[\\&_\\[contenteditable\\]\\:empty\\]\\:after\\:content-\\[\\"\\\\\\\\feff_\\"\\] [contenteditable]:empty:after{--tw-content: "\\\\feff ";content:var(--tw-content)}.\\[\\&_\\[contenteditable\\]\\]\\:select-none [contenteditable]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.\\[\\&_\\[data-blok-tool\\=stub\\]\\]\\:opacity-55 [data-blok-tool=stub]{opacity:.55}.\\[\\&_\\[hidden\\]\\]\\:\\!hidden [hidden]{display:none!important}.\\[\\&_a\\]\\:cursor-pointer a{cursor:pointer}.\\[\\&_a\\]\\:text-link a{--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.\\[\\&_a\\]\\:underline a{text-decoration-line:underline}.\\[\\&_b\\]\\:font-bold b{font-weight:700}.\\[\\&_div\\]\\:\\!m-0 div{margin:0!important}.\\[\\&_div\\]\\:\\!p-0 div{padding:0!important}.\\[\\&_i\\]\\:italic i{font-style:italic}.\\[\\&_img\\]\\:opacity-55 img{opacity:.55}.\\[\\&_p\\]\\:\\!m-0 p{margin:0!important}.\\[\\&_p\\]\\:\\!p-0 p{padding:0!important}.\\[\\&_path\\]\\:stroke-current path{stroke:currentColor}.\\[\\&_svg\\]\\:block svg{display:block}.\\[\\&_svg\\]\\:size-icon svg{width:20px;height:20px}.\\[\\&_svg\\]\\:h-6 svg{height:1.5rem}.\\[\\&_svg\\]\\:h-7 svg{height:1.75rem}.\\[\\&_svg\\]\\:h-icon svg{height:20px}.\\[\\&_svg\\]\\:max-h-full svg{max-height:100%}.\\[\\&_svg\\]\\:w-6 svg{width:1.5rem}.\\[\\&_svg\\]\\:w-7 svg{width:1.75rem}.\\[\\&_svg\\]\\:w-icon svg{width:20px}.\\[\\&_svg\\]\\:text-gray-text svg{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}@media(max-width:650px){.mobile\\:\\[\\&_svg\\]\\:h-icon-mobile svg{height:28px}.mobile\\:\\[\\&_svg\\]\\:w-icon-mobile svg{width:28px}}`, po = 100;
|
|
11903
|
-
class
|
|
11906
|
+
const Mi = `*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:PT Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:651px){.\\!container{max-width:651px!important}.container{max-width:651px}}@media(min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.blok-block{padding:3px 2px}.blok-block::-webkit-input-placeholder{line-height:1.5!important}.blok-inline-tool-button{display:flex;height:100%;width:1.75rem;cursor:pointer;align-items:center;justify-content:center;border-radius:.25rem;border-width:0px;background-color:transparent;padding:0;line-height:1.5;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.blok-inline-tool-button--active{background-color:#388ae51a;--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.blok-input{width:100%;border-radius:3px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1));padding:.625rem .75rem;--tw-shadow: inset 0 1px 2px 0 rgba(35, 44, 72, .06);--tw-shadow-colored: inset 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.blok-input[data-blok-placeholder]:before{pointer-events:none;position:static!important;display:inline-block;width:0px;content:var(--tw-content);white-space:nowrap}.blok-loader{position:relative;border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1))}.blok-loader:before{position:absolute;left:50%;top:50%;margin-left:-11px;margin-top:-11px;height:18px;content:var(--tw-content);width:18px}@keyframes rotation{0%{content:var(--tw-content);transform:rotate(0)}to{content:var(--tw-content);transform:rotate(360deg)}}.blok-loader:before{animation:rotation 1.2s infinite linear;border-radius:9999px;border-width:2px;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1));--tw-border-opacity: 1;border-left-color:rgb(56 138 229 / var(--tw-border-opacity, 1));--tw-content: "";content:var(--tw-content)}.blok-button{cursor:pointer;border-radius:3px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:13px;text-align:center;font-size:14.9px;--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1));--tw-shadow: 0 2px 2px 0 rgba(18, 30, 57, .04);--tw-shadow-colored: 0 2px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blok-button:hover{--tw-bg-opacity: 1;background-color:rgb(251 252 254 / var(--tw-bg-opacity, 1));--tw-shadow: 0 1px 3px 0 rgba(18, 30, 57, .08);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blok-button svg{margin-right:.2em;margin-top:-.125rem;height:1.25rem}.blok-settings-button{margin:0;display:inline-flex;min-height:26px;min-width:26px;cursor:pointer;align-items:center;justify-content:center;border-radius:3px;border-width:0px;background-color:transparent;vertical-align:bottom;color:inherit;outline:2px solid transparent;outline-offset:2px}@media(max-width:650px){.blok-settings-button{height:36px;width:36px;border-radius:.5rem}}@media(hover:hover){.blok-settings-button:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}}.blok-settings-button svg{height:auto;width:auto}@media(max-width:650px){.blok-settings-button svg{height:28px;width:28px}}.blok-settings-button--active{--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.blok-settings-button--focused{background-color:#22baff14;--tw-shadow: inset 0 0 0 1px rgba(7, 161, 227, .08);--tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@keyframes buttonClicked{0%{transform:scale3d(.95,.95,.95)}60%{transform:scale3d(1.02,1.02,1.02)}80%,to{transform:scaleZ(1)}}.blok-settings-button--focused-animated{animation:buttonClicked .75s cubic-bezier(.215,.61,.355,1) forwards}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-\\[auto_var\\(--offset\\)_calc\\(var\\(--offset\\)\\+env\\(safe-area-inset-bottom\\)\\)_var\\(--offset\\)\\]{inset:auto var(--offset) calc(var(--offset) + env(safe-area-inset-bottom)) var(--offset)}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-5{left:1.25rem}.left-\\[var\\(--popover-left\\)\\]{left:var(--popover-left)}.left-auto{left:auto}.right-0{right:0}.right-\\[15px\\]{right:15px}.right-full{right:100%}.top-0{top:0}.top-\\[7px\\]{top:7px}.top-\\[var\\(--popover-top\\)\\]{top:var(--popover-top)}.top-auto{top:auto}.z-0{z-index:0}.z-\\[10000\\]{z-index:10000}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.z-\\[4\\]{z-index:4}.z-overlay{z-index:999}.\\!m-0{margin:0!important}.-m-px{margin:-1px}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2\\.5{margin-top:.625rem;margin-bottom:.625rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-\\[-0\\.5em\\]{margin-top:-.5em;margin-bottom:-.5em}.\\!mr-0{margin-right:0!important}.\\!mr-2{margin-right:.5rem!important}.mb-1{margin-bottom:.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-\\[30px\\]{margin-bottom:30px}.mb-px{margin-bottom:1px}.ml-3\\.5{margin-left:.875rem}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\\[15px\\]{margin-top:15px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-\\[5px\\]{margin-top:5px}.box-border{box-sizing:border-box}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.h-2\\.5{height:.625rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-\\[26px\\]{height:26px}.h-\\[50px\\]{height:50px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-toolbox-btn{height:26px}.max-h-0{max-height:0px}.max-h-\\[var\\(--max-height\\)\\]{max-height:var(--max-height)}.max-h-none{max-height:none}.w-2\\.5{width:.625rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-9{width:2.25rem}.w-\\[230px\\]{width:230px}.w-\\[26px\\]{width:26px}.w-\\[var\\(--width\\)\\]{width:var(--width)}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-toolbox-btn{width:26px}.min-w-0{min-width:0px}.min-w-\\[calc\\(100\\%-theme\\(\\'spacing\\.6\\'\\)-10px\\)\\]{min-width:calc(100% - 1.5rem - 10px)}.min-w-\\[calc\\(100\\%-var\\(--offset\\)\\*2\\)\\]{min-width:calc(100% - var(--offset) * 2)}.min-w-\\[var\\(--width\\)\\]{min-width:var(--width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-\\[130px\\]{max-width:130px}.max-w-content{max-width:650px}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-\\[5px\\]{--tw-translate-x: -5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[5px\\]{--tw-translate-y: -5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[5px\\]{--tw-translate-x: 5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[5px\\]{--tw-translate-y: 5px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes panelShowingMobile{0%{opacity:0;transform:translateY(14px) scale(.98)}70%{opacity:1;transform:translateY(-4px)}to{transform:translateY(0)}}.animate-\\[panelShowingMobile_250ms_ease\\]{animation:panelShowingMobile .25s ease}@keyframes panelShowing{0%{opacity:0;transform:translateY(-8px) scale(.9)}70%{opacity:1;transform:translateY(2px)}to{transform:translateY(0)}}.animate-\\[panelShowing_100ms_ease\\]{animation:panelShowing .1s ease}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease forwards}.animate-none{animation:none}@keyframes notifyBounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(.9)}to{transform:scale(1)}}.animate-notify-bounce-in{animation:notifyBounceIn .6s 1}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-9%,0,0)}30%{transform:translate3d(9%,0,0)}45%{transform:translate3d(-4%,0,0)}60%{transform:translate3d(4%,0,0)}75%{transform:translate3d(-1%,0,0)}to{transform:translateZ(0)}}.animate-wobble{animation:wobble .4s}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-\\[auto_auto_1fr\\]{grid-template-columns:auto auto 1fr}.grid-rows-\\[auto\\]{grid-template-rows:auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[7px\\]{border-radius:7px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[\\#e8e8eb\\]{--tw-border-opacity: 1;border-color:rgb(232 232 235 / var(--tw-border-opacity, 1))}.border-\\[rgba\\(226\\,226\\,229\\,0\\.2\\)\\],.border-\\[rgba\\(226\\,226\\,229\\,0\\.20\\)\\]{border-color:#e2e2e533}.border-line-gray,.border-popover-border{--tw-border-opacity: 1;border-color:rgb(239 240 241 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.\\!bg-\\[\\#fafffe\\]{--tw-bg-opacity: 1 !important;background-color:rgb(250 255 254 / var(--tw-bg-opacity, 1))!important}.\\!bg-\\[\\#fffbfb\\]{--tw-bg-opacity: 1 !important;background-color:rgb(255 251 251 / var(--tw-bg-opacity, 1))!important}.\\!bg-item-confirm-bg{--tw-bg-opacity: 1 !important;background-color:rgb(226 74 74 / var(--tw-bg-opacity, 1))!important}.\\!bg-item-focus-bg{background-color:#22baff14!important}.bg-\\[\\#34c992\\]{--tw-bg-opacity: 1;background-color:rgb(52 201 146 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F8F8F8\\]{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.bg-\\[\\#eff1f4\\]{--tw-bg-opacity: 1;background-color:rgb(239 241 244 / var(--tw-bg-opacity, 1))}.bg-\\[\\#f2f5f7\\]{--tw-bg-opacity: 1;background-color:rgb(242 245 247 / var(--tw-bg-opacity, 1))}.bg-\\[\\#f7f7f7\\]{--tw-bg-opacity: 1;background-color:rgb(247 247 247 / var(--tw-bg-opacity, 1))}.bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}.bg-dark{--tw-bg-opacity: 1;background-color:rgb(29 32 43 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-item-hover-bg{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.bg-popover-bg{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-popover-border{--tw-bg-opacity: 1;background-color:rgb(239 240 241 / var(--tw-bg-opacity, 1))}.bg-selection{--tw-bg-opacity: 1;background-color:rgb(225 242 255 / var(--tw-bg-opacity, 1))}.bg-selection-highlight{background-color:#2eaadc33}.bg-tooltip-bg{--tw-bg-opacity: 1;background-color:rgb(29 32 43 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[3px\\]{padding:3px}.p-\\[5px\\]{padding:5px}.p-\\[var\\(--item-padding\\)\\]{padding:var(--item-padding)}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-\\[18px\\]{padding-left:18px;padding-right:18px}.px-\\[2px\\]{padding-left:2px;padding-right:2px}.px-\\[30px\\]{padding-left:30px;padding-right:30px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-\\[0\\.5em\\]{padding-top:.5em;padding-bottom:.5em}.py-\\[13px\\]{padding-top:13px;padding-bottom:13px}.py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.pl-0\\.5{padding-left:.125rem}.pr-1\\.5{padding-right:.375rem}.pr-\\[5px\\]{padding-right:5px}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.font-\\[-apple-system\\,BlinkMacSystemFont\\,\\"Segoe_UI\\"\\,\\"Roboto\\"\\,\\"Oxygen\\"\\,\\"Ubuntu\\"\\,\\"Cantarell\\"\\,\\"Fira_Sans\\"\\,\\"Droid_Sans\\"\\,\\"Helvetica_Neue\\"\\,sans-serif\\]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.font-\\[inherit\\]{font-family:inherit}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[13px\\]{font-size:13px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.\\!leading-\\[1\\.3\\]{line-height:1.3!important}.leading-5{line-height:1.25rem}.leading-\\[1\\.4em\\]{line-height:1.4em}.leading-\\[1\\.6em\\]{line-height:1.6em}.leading-\\[1em\\]{line-height:1em}.leading-\\[22px\\]{line-height:22px}.leading-\\[50px\\]{line-height:50px}.leading-relaxed{line-height:1.625}.tracking-\\[0\\.02em\\]{letter-spacing:.02em}.tracking-\\[0\\.25px\\]{letter-spacing:.25px}.\\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-\\[\\#656b7c\\]{--tw-text-opacity: 1;color:rgb(101 107 124 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-dark{--tw-text-opacity: 1;color:rgb(29 32 43 / var(--tw-text-opacity, 1))}.text-gray-text{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-text-primary{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-text-secondary{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.text-tooltip-font{--tw-text-opacity: 1;color:rgb(205 209 224 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-current{accent-color:currentColor}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_11px_17px_0_rgba\\(23\\,32\\,61\\,0\\.13\\)\\]{--tw-shadow: 0 11px 17px 0 rgba(23,32,61,.13);--tw-shadow-colored: 0 11px 17px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_1px_1px_0_rgba\\(18\\,49\\,35\\,0\\.05\\)\\]{--tw-shadow: 0 1px 1px 0 rgba(18,49,35,.05);--tw-shadow-colored: 0 1px 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_2px_1px_0_rgba\\(16\\,19\\,29\\,0\\)\\]{--tw-shadow: 0 2px 1px 0 rgba(16,19,29,0);--tw-shadow-colored: 0 2px 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_3px_15px_-3px_theme\\(colors\\.popover-shadow\\)\\]{--tw-shadow: 0 3px 15px -3px rgba(13, 20, 33, .1);--tw-shadow-colored: 0 3px 15px -3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-tooltip{--tw-shadow: 0 8px 12px 0 rgba(29, 32, 43, .17), 0 4px 5px -3px rgba(5, 6, 12, .49);--tw-shadow-colored: 0 8px 12px 0 var(--tw-shadow-color), 0 4px 5px -3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-\\[120ms\\]{transition-duration:.12s}.duration-\\[250ms\\]{transition-duration:.25s}.duration-\\[50ms\\,70ms\\]{transition-duration:50ms,70ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-\\[opacity\\,left\\,top\\]{will-change:opacity,left,top}.will-change-\\[opacity\\,top\\,left\\]{will-change:opacity,top,left}.will-change-\\[opacity\\,top\\]{will-change:opacity,top}.will-change-\\[opacity\\]{will-change:opacity}.\\[clip\\:rect\\(0\\,0\\,0\\,0\\)\\]{clip:rect(0,0,0,0)}.\\[direction\\:rtl\\]{direction:rtl}[data-blok-navigation-focused=true]{margin-left:auto;margin-right:auto;width:650px;max-width:100%;border-radius:.375rem;background-color:#22baff14}@media(hover:hover){[data-blok-item-name=delete]:hover{--tw-text-opacity: 1;color:rgb(226 74 74 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}}[data-drop-indicator]{position:relative}[data-drop-indicator]:before{pointer-events:none;position:absolute;z-index:10;height:.375rem;width:100%;max-width:650px;border-radius:.125rem;--tw-bg-opacity: 1;background-color:rgb(212 227 252 / var(--tw-bg-opacity, 1));--tw-content: "";content:var(--tw-content);left:50%;margin-left:calc(var(--drop-indicator-depth, 0) * 12px);max-width:calc(650px - var(--drop-indicator-depth, 0) * 24px)}[data-drop-indicator=bottom]:before{bottom:0;transform:translate(-50%) translateY(50%)}[data-drop-indicator=top]:before{top:0;transform:translate(-50%) translateY(-50%)}[data-blok-dragging-multi=true] [data-blok-selected=true]{opacity:.4;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}[data-blok-selected=true] [data-blok-element-content]:has([data-list-style]){background-color:transparent}[data-blok-selected=true] [data-list-style] [role=listitem]{border-radius:4px;--tw-bg-opacity: 1;background-color:rgb(225 242 255 / var(--tw-bg-opacity, 1))}[data-blok-selected=true] [data-list-style] [role=listitem] [contenteditable]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.placeholder\\:font-medium::-moz-placeholder{font-weight:500}.placeholder\\:font-medium::placeholder{font-weight:500}.placeholder\\:text-\\[\\#656b7c\\]::-moz-placeholder{--tw-text-opacity: 1;color:rgb(101 107 124 / var(--tw-text-opacity, 1))}.placeholder\\:text-\\[\\#656b7c\\]::placeholder{--tw-text-opacity: 1;color:rgb(101 107 124 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-text::-moz-placeholder{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-text::placeholder{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);inset:0}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:left-\\[9px\\]:before{content:var(--tw-content);left:9px}.before\\:top-0:before{content:var(--tw-content);top:0}.before\\:top-\\[5px\\]:before{content:var(--tw-content);top:5px}.before\\:-z-10:before{content:var(--tw-content);z-index:-10}.before\\:m-\\[3px\\]:before{content:var(--tw-content);margin:3px}.before\\:block:before{content:var(--tw-content);display:block}.before\\:h-3:before{content:var(--tw-content);height:.75rem}.before\\:h-\\[calc\\(100\\%-6px\\)\\]:before{content:var(--tw-content);height:calc(100% - 6px)}.before\\:w-0\\.5:before{content:var(--tw-content);width:.125rem}.before\\:w-\\[3px\\]:before{content:var(--tw-content);width:3px}.before\\:rotate-\\[-45deg\\]:before{content:var(--tw-content);--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\\:rounded-\\[5px\\]:before{content:var(--tw-content);border-radius:5px}.before\\:rounded-lg:before{content:var(--tw-content);border-radius:.5rem}.before\\:\\!bg-\\[\\#41ffb1\\]:before{content:var(--tw-content);--tw-bg-opacity: 1 !important;background-color:rgb(65 255 177 / var(--tw-bg-opacity, 1))!important}.before\\:\\!bg-\\[\\#fb5d5d\\]:before{content:var(--tw-content);--tw-bg-opacity: 1 !important;background-color:rgb(251 93 93 / var(--tw-bg-opacity, 1))!important}.before\\:bg-\\[\\#575d67\\]:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(87 93 103 / var(--tw-bg-opacity, 1))}.before\\:bg-tooltip-bg:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(29 32 43 / var(--tw-bg-opacity, 1))}.before\\:bg-transparent:before{content:var(--tw-content);background-color:transparent}.before\\:content-\\[\\"\\"\\]:before{--tw-content: "";content:var(--tw-content)}.before\\:content-\\[\\\\\\'\\\\\\'\\]:before{--tw-content: \\'\\';content:var(--tw-content)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-\\[9px\\]:after{content:var(--tw-content);left:9px}.after\\:top-\\[5px\\]:after{content:var(--tw-content);top:5px}.after\\:mx-3:after{content:var(--tw-content);margin-left:.75rem;margin-right:.75rem}.after\\:h-3:after{content:var(--tw-content);height:.75rem}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:rotate-45:after{content:var(--tw-content);--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\\:bg-\\[\\#575d67\\]:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(87 93 103 / var(--tw-bg-opacity, 1))}.after\\:text-\\[\\#ddd\\]:after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(221 221 221 / var(--tw-text-opacity, 1))}.after\\:content-\\[\\"\\"\\]:after{--tw-content: "";content:var(--tw-content)}.after\\:content-\\[\\'\\|\\'\\]:after{--tw-content: "|";content:var(--tw-content)}.first\\:mt-0:first-child{margin-top:0}.last\\:ml-2\\.5:last-child{margin-left:.625rem}.empty\\:before\\:pointer-events-none:empty:before{content:var(--tw-content);pointer-events:none}.empty\\:before\\:cursor-text:empty:before{content:var(--tw-content);cursor:text}.empty\\:before\\:text-gray-text:empty:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.empty\\:before\\:content-\\[attr\\(data-blok-placeholder\\)\\]:empty:before{--tw-content: attr(data-blok-placeholder);content:var(--tw-content)}.empty\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\]:empty:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.empty\\:before\\:content-\\[attr\\(data-placeholder\\)\\]:empty:before{--tw-content: attr(data-placeholder);content:var(--tw-content)}.hover\\:bg-\\[\\#2db583\\]:hover{--tw-bg-opacity: 1;background-color:rgb(45 181 131 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#e0e4eb\\]:hover{--tw-bg-opacity: 1;background-color:rgb(224 228 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-\\[\\#e9ecee\\]:hover{--tw-bg-opacity: 1;background-color:rgb(233 236 238 / var(--tw-bg-opacity, 1))}.hover\\:opacity-100:hover{opacity:1}.focus\\:placeholder\\:text-\\[rgba\\(101\\,107\\,124\\,0\\.3\\)\\]:focus::-moz-placeholder{color:#656b7c4d}.focus\\:placeholder\\:text-\\[rgba\\(101\\,107\\,124\\,0\\.3\\)\\]:focus::placeholder{color:#656b7c4d}.empty\\:focus\\:before\\:pointer-events-none:focus:empty:before{content:var(--tw-content);pointer-events:none}.empty\\:focus\\:before\\:cursor-text:focus:empty:before{content:var(--tw-content);cursor:text}.empty\\:focus\\:before\\:text-gray-text:focus:empty:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.empty\\:focus\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\]:focus:empty:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.active\\:cursor-grabbing:active{cursor:grabbing}.group[data-blok-dragging=true] .group-data-\\[blok-dragging\\=true\\]\\:pointer-events-none{pointer-events:none}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:left-\\[calc\\(-1\\*theme\\(width\\.toolbox-btn\\)\\)\\]{left:-26px}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:left-auto{left:auto}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:right-\\[calc\\(-1\\*theme\\(width\\.toolbox-btn\\)\\)\\]{right:-26px}.group[data-blok-rtl=true] .group-data-\\[blok-rtl\\=true\\]\\:right-auto{right:auto}.group[data-blok-dragging=true] .group-data-\\[blok-dragging\\=true\\]\\:cursor-grabbing{cursor:grabbing}.group[data-blok-block-settings-opened=true] .group-data-\\[blok-block-settings-opened\\=true\\]\\:bg-bg-light,.group[data-blok-toolbox-opened=true] .group-data-\\[blok-toolbox-opened\\=true\\]\\:bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}@media(max-width:650px){.mobile\\:absolute{position:absolute}.mobile\\:right-auto{right:auto}.mobile\\:z-\\[2\\]{z-index:2}.mobile\\:hidden{display:none}.mobile\\:h-toolbox-btn-mobile{height:36px}.mobile\\:w-toolbox-btn-mobile{width:36px}.mobile\\:rounded-\\[6px\\]{border-radius:6px}.mobile\\:border{border-width:1px}.mobile\\:border-\\[\\#e8e8eb\\]{--tw-border-opacity: 1;border-color:rgb(232 232 235 / var(--tw-border-opacity, 1))}.mobile\\:bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.mobile\\:p-1{padding:.25rem}.mobile\\:text-\\[15px\\]{font-size:15px}.mobile\\:font-medium{font-weight:500}.mobile\\:shadow-overlay-pane{--tw-shadow: 0 3px 15px -3px rgba(13, 20, 33, .13);--tw-shadow-colored: 0 3px 15px -3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:ml-0{margin-left:0}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:mr-auto{margin-right:auto}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:pl-\\[10px\\]{padding-left:10px}.group[data-blok-rtl=true] .mobile\\:group-data-\\[blok-rtl\\=true\\]\\:pr-0{padding-right:0}}@media(min-width:651px){.not-mobile\\:w-6{width:1.5rem}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:left-0{left:0}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:left-\\[-5px\\]{left:-5px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:left-\\[calc\\(-1\\*theme\\(spacing\\.narrow-mode-right-padding\\)-5px\\)\\]{left:-55px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:right-\\[5px\\]{right:5px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:right-auto{right:auto}.group[data-blok-narrow=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:left-\\[5px\\]{left:5px}.group[data-blok-narrow=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:right-\\[calc\\(-1\\*theme\\(spacing\\.narrow-mode-right-padding\\)-5px\\)\\]{right:-55px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:ml-\\[theme\\(spacing\\.narrow-mode-right-padding\\)\\]{margin-left:50px}.group[data-blok-narrow=true][data-blok-rtl=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:group-data-\\[blok-rtl\\=true\\]\\:mr-0{margin-right:0}.group[data-blok-narrow=true] .not-mobile\\:group-data-\\[blok-narrow\\=true\\]\\:mr-\\[theme\\(spacing\\.narrow-mode-right-padding\\)\\]{margin-right:50px}}@media(hover:hover){.can-hover\\:hover\\:cursor-grab:hover{cursor:grab}.can-hover\\:hover\\:cursor-pointer:hover{cursor:pointer}.can-hover\\:hover\\:bg-bg-light:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 245 / var(--tw-bg-opacity, 1))}.can-hover\\:hover\\:bg-item-hover-bg:hover{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.group[data-blok-block-settings-opened=true] .group-data-\\[blok-block-settings-opened\\=true\\]\\:can-hover\\:hover\\:cursor-pointer:hover,.group[data-blok-toolbox-opened=true] .group-data-\\[blok-toolbox-opened\\=true\\]\\:can-hover\\:hover\\:cursor-pointer:hover{cursor:pointer}}.\\[\\&\\>p\\:first-of-type\\]\\:mt-0>p:first-of-type{margin-top:0}.\\[\\&\\>p\\:last-of-type\\]\\:mb-0>p:last-of-type{margin-bottom:0}.\\[\\&\\[data-blok-dragging\\=true\\]\\]\\:cursor-grabbing[data-blok-dragging=true]{cursor:grabbing}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:pointer-events-none[data-blok-empty=true]:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:cursor-text[data-blok-empty=true]:before{content:var(--tw-content);cursor:text}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:text-gray-text[data-blok-empty=true]:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:content-\\[attr\\(data-blok-placeholder\\)\\][data-blok-empty=true]:before{--tw-content: attr(data-blok-placeholder);content:var(--tw-content)}.\\[\\&\\[data-blok-empty\\=true\\]\\]\\:before\\:content-\\[attr\\(data-placeholder\\)\\][data-blok-empty=true]:before{--tw-content: attr(data-placeholder);content:var(--tw-content)}.\\[\\&\\[data-blok-focused\\=\\"true\\"\\]\\]\\:bg-item-focus-bg[data-blok-focused=true]{background-color:#22baff14}.\\[\\&\\[data-blok-force-hover\\]\\]\\:cursor-pointer[data-blok-force-hover]{cursor:pointer}.\\[\\&\\[data-blok-force-hover\\]\\]\\:bg-item-hover-bg[data-blok-force-hover]{--tw-bg-opacity: 1;background-color:rgb(248 248 248 / var(--tw-bg-opacity, 1))}.\\[\\&\\[data-blok-popover-item-active\\]\\]\\:bg-icon-active-bg[data-blok-popover-item-active]{background-color:#388ae51a}.\\[\\&\\[data-blok-popover-item-active\\]\\]\\:text-icon-active-text[data-blok-popover-item-active]{--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-blok-popover-item-no-hover\\]\\]\\:cursor-default[data-blok-popover-item-no-hover]{cursor:default}.\\[\\&\\[data-blok-popover-item-no-hover\\]\\]\\:hover\\:bg-transparent:hover[data-blok-popover-item-no-hover]{background-color:transparent}.\\[\\&\\[data-blok-toolbox-opened\\=true\\]_\\[contentEditable\\=true\\]\\[data-blok-placeholder\\]\\:focus\\]\\:before\\:\\!opacity-0[data-blok-toolbox-opened=true] [contentEditable=true][data-blok-placeholder]:focus:before{content:var(--tw-content);opacity:0!important}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:pointer-events-none[data-empty=true]:focus:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:cursor-text[data-empty=true]:focus:before{content:var(--tw-content);cursor:text}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:text-gray-text[data-empty=true]:focus:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-empty\\=true\\]\\:focus\\]\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\][data-empty=true]:focus:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:pointer-events-none[data-empty=true]:before{content:var(--tw-content);pointer-events:none}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:cursor-text[data-empty=true]:before{content:var(--tw-content);cursor:text}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:text-gray-text[data-empty=true]:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}.\\[\\&\\[data-empty\\=true\\]\\]\\:before\\:content-\\[attr\\(data-blok-placeholder-active\\)\\][data-empty=true]:before{--tw-content: attr(data-blok-placeholder-active);content:var(--tw-content)}.\\[\\&_\\:\\:selection\\]\\:bg-selection-inline ::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(212 236 255 / var(--tw-bg-opacity, 1))}.\\[\\&_\\:\\:selection\\]\\:bg-selection-inline ::selection{--tw-bg-opacity: 1;background-color:rgb(212 236 255 / var(--tw-bg-opacity, 1))}.\\[\\&_\\[contenteditable\\]\\:empty\\]\\:after\\:content-\\[\\"\\\\\\\\feff_\\"\\] [contenteditable]:empty:after{--tw-content: "\\\\feff ";content:var(--tw-content)}.\\[\\&_\\[contenteditable\\]\\]\\:select-none [contenteditable]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.\\[\\&_\\[data-blok-tool\\=stub\\]\\]\\:opacity-55 [data-blok-tool=stub]{opacity:.55}.\\[\\&_\\[hidden\\]\\]\\:\\!hidden [hidden]{display:none!important}.\\[\\&_a\\]\\:cursor-pointer a{cursor:pointer}.\\[\\&_a\\]\\:text-link a{--tw-text-opacity: 1;color:rgb(56 138 229 / var(--tw-text-opacity, 1))}.\\[\\&_a\\]\\:underline a{text-decoration-line:underline}.\\[\\&_b\\]\\:font-bold b{font-weight:700}.\\[\\&_div\\]\\:\\!m-0 div{margin:0!important}.\\[\\&_div\\]\\:\\!p-0 div{padding:0!important}.\\[\\&_i\\]\\:italic i{font-style:italic}.\\[\\&_img\\]\\:opacity-55 img{opacity:.55}.\\[\\&_p\\]\\:\\!m-0 p{margin:0!important}.\\[\\&_p\\]\\:\\!p-0 p{padding:0!important}.\\[\\&_path\\]\\:stroke-current path{stroke:currentColor}.\\[\\&_svg\\]\\:block svg{display:block}.\\[\\&_svg\\]\\:size-icon svg{width:20px;height:20px}.\\[\\&_svg\\]\\:h-6 svg{height:1.5rem}.\\[\\&_svg\\]\\:h-7 svg{height:1.75rem}.\\[\\&_svg\\]\\:h-icon svg{height:20px}.\\[\\&_svg\\]\\:max-h-full svg{max-height:100%}.\\[\\&_svg\\]\\:w-6 svg{width:1.5rem}.\\[\\&_svg\\]\\:w-7 svg{width:1.75rem}.\\[\\&_svg\\]\\:w-icon svg{width:20px}.\\[\\&_svg\\]\\:text-gray-text svg{--tw-text-opacity: 1;color:rgb(112 118 132 / var(--tw-text-opacity, 1))}@media(max-width:650px){.mobile\\:\\[\\&_svg\\]\\:h-icon-mobile svg{height:28px}.mobile\\:\\[\\&_svg\\]\\:w-icon-mobile svg{width:28px}}`, go = 100;
|
|
11907
|
+
class Di extends T {
|
|
11904
11908
|
constructor() {
|
|
11905
|
-
super(...arguments), this.isMobile = !1, this.contentRectCache = null, this.resizeDebouncer =
|
|
11909
|
+
super(...arguments), this.isMobile = !1, this.contentRectCache = null, this.resizeDebouncer = $e(() => {
|
|
11906
11910
|
this.windowResize();
|
|
11907
|
-
}, 200), this.selectionChangeDebounced =
|
|
11911
|
+
}, 200), this.selectionChangeDebounced = $e(() => {
|
|
11908
11912
|
this.selectionChanged();
|
|
11909
|
-
},
|
|
11913
|
+
}, bn), this.documentTouchedListener = (t) => {
|
|
11910
11914
|
this.documentTouched(t);
|
|
11911
11915
|
};
|
|
11912
11916
|
}
|
|
@@ -11928,7 +11932,7 @@ class Ai extends T {
|
|
|
11928
11932
|
* Making main interface
|
|
11929
11933
|
*/
|
|
11930
11934
|
async prepare() {
|
|
11931
|
-
this.setIsMobile(), this.make(), this.loadStyles(),
|
|
11935
|
+
this.setIsMobile(), this.make(), this.loadStyles(), ei();
|
|
11932
11936
|
}
|
|
11933
11937
|
/**
|
|
11934
11938
|
* Toggle read-only state
|
|
@@ -11980,7 +11984,7 @@ class Ai extends T {
|
|
|
11980
11984
|
* Clean blok`s UI
|
|
11981
11985
|
*/
|
|
11982
11986
|
destroy() {
|
|
11983
|
-
this.nodes.holder.innerHTML = "", this.unbindReadOnlyInsensitiveListeners(),
|
|
11987
|
+
this.nodes.holder.innerHTML = "", this.unbindReadOnlyInsensitiveListeners(), oi();
|
|
11984
11988
|
}
|
|
11985
11989
|
/**
|
|
11986
11990
|
* Close all Blok's toolbars
|
|
@@ -11993,7 +11997,7 @@ class Ai extends T {
|
|
|
11993
11997
|
* Check for mobile mode and save the result
|
|
11994
11998
|
*/
|
|
11995
11999
|
setIsMobile() {
|
|
11996
|
-
const t = window.innerWidth <
|
|
12000
|
+
const t = window.innerWidth < mn;
|
|
11997
12001
|
t !== this.isMobile && this.eventsDispatcher.emit(yt, {
|
|
11998
12002
|
isEnabled: this.isMobile
|
|
11999
12003
|
}), this.isMobile = t;
|
|
@@ -12019,7 +12023,7 @@ class Ai extends T {
|
|
|
12019
12023
|
// Hide placeholder when toolbox is opened
|
|
12020
12024
|
"[&[data-blok-toolbox-opened=true]_[contentEditable=true][data-blok-placeholder]:focus]:before:!opacity-0",
|
|
12021
12025
|
...this.isRtl ? ["[direction:rtl]"] : []
|
|
12022
|
-
]), this.nodes.wrapper.setAttribute(m.interface,
|
|
12026
|
+
]), this.nodes.wrapper.setAttribute(m.interface, pn), this.nodes.wrapper.setAttribute(m.editor, ""), this.nodes.wrapper.setAttribute("data-blok-testid", "blok-editor"), this.isRtl && this.nodes.wrapper.setAttribute(m.rtl, "true"), this.nodes.redactor = g.make("div", [
|
|
12023
12027
|
// Narrow mode: add right margin on non-mobile screens
|
|
12024
12028
|
"not-mobile:group-data-[blok-narrow=true]:mr-[theme(spacing.narrow-mode-right-padding)]",
|
|
12025
12029
|
// RTL narrow mode: add left margin instead
|
|
@@ -12038,7 +12042,7 @@ class Ai extends T {
|
|
|
12038
12042
|
return;
|
|
12039
12043
|
const e = g.make("style", null, {
|
|
12040
12044
|
id: t,
|
|
12041
|
-
textContent:
|
|
12045
|
+
textContent: Mi.toString()
|
|
12042
12046
|
});
|
|
12043
12047
|
this.config.style && !N(this.config.style) && this.config.style.nonce && e.setAttribute("nonce", this.config.style.nonce), g.prepend(document.head, e);
|
|
12044
12048
|
}
|
|
@@ -12114,7 +12118,7 @@ class Ai extends T {
|
|
|
12114
12118
|
*/
|
|
12115
12119
|
findBlockInHoverZone(t, e) {
|
|
12116
12120
|
const o = this.contentRect;
|
|
12117
|
-
if (!(this.isRtl ? t > o.right && t <= o.right +
|
|
12121
|
+
if (!(this.isRtl ? t > o.right && t <= o.right + go : t < o.left && t >= o.left - go))
|
|
12118
12122
|
return null;
|
|
12119
12123
|
for (const s of this.Blok.BlockManager.blocks) {
|
|
12120
12124
|
const i = s.holder.getBoundingClientRect();
|
|
@@ -12212,6 +12216,10 @@ class Ai extends T {
|
|
|
12212
12216
|
this.Blok.BlockSelection.disableNavigationMode(!1);
|
|
12213
12217
|
return;
|
|
12214
12218
|
}
|
|
12219
|
+
if (this.Blok.BlockSettings.opened) {
|
|
12220
|
+
this.Blok.BlockSettings.close();
|
|
12221
|
+
return;
|
|
12222
|
+
}
|
|
12215
12223
|
if (this.Blok.BlockSelection.anyBlockSelected) {
|
|
12216
12224
|
this.Blok.BlockSelection.clearSelection(t);
|
|
12217
12225
|
return;
|
|
@@ -12220,10 +12228,6 @@ class Ai extends T {
|
|
|
12220
12228
|
this.Blok.Toolbar.toolbox.close(), this.Blok.BlockManager.currentBlock && this.Blok.Caret.setToBlock(this.Blok.BlockManager.currentBlock, this.Blok.Caret.positions.END);
|
|
12221
12229
|
return;
|
|
12222
12230
|
}
|
|
12223
|
-
if (this.Blok.BlockSettings.opened) {
|
|
12224
|
-
this.Blok.BlockSettings.close();
|
|
12225
|
-
return;
|
|
12226
|
-
}
|
|
12227
12231
|
if (this.Blok.InlineToolbar.opened && this.Blok.InlineToolbar.hasNestedPopoverOpen) {
|
|
12228
12232
|
t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation(), this.Blok.InlineToolbar.closeNestedPopover();
|
|
12229
12233
|
return;
|
|
@@ -12330,8 +12334,8 @@ class Ai extends T {
|
|
|
12330
12334
|
const s = e.getAttribute("href");
|
|
12331
12335
|
if (!s)
|
|
12332
12336
|
return;
|
|
12333
|
-
const i =
|
|
12334
|
-
|
|
12337
|
+
const i = fn(s);
|
|
12338
|
+
gn(i);
|
|
12335
12339
|
}
|
|
12336
12340
|
/**
|
|
12337
12341
|
* Check if user clicks on the Blok's bottom zone:
|
|
@@ -12380,12 +12384,12 @@ class Ai extends T {
|
|
|
12380
12384
|
enableInputsEmptyMark() {
|
|
12381
12385
|
const t = (e) => {
|
|
12382
12386
|
const o = e.target;
|
|
12383
|
-
|
|
12387
|
+
bo(o);
|
|
12384
12388
|
};
|
|
12385
12389
|
this.readOnlyMutableListeners.on(this.nodes.wrapper, "input", t), this.readOnlyMutableListeners.on(this.nodes.wrapper, "focusin", t), this.readOnlyMutableListeners.on(this.nodes.wrapper, "focusout", t);
|
|
12386
12390
|
}
|
|
12387
12391
|
}
|
|
12388
|
-
const
|
|
12392
|
+
const Li = 30, Oi = 200, Ni = 100, rt = class rt extends T {
|
|
12389
12393
|
constructor() {
|
|
12390
12394
|
super(...arguments), this.undoStack = [], this.redoStack = [], this.registeredShortcuts = [], this.debounceTimeout = null, this.isPerformingUndoRedo = !1, this.initialStateCaptured = !1;
|
|
12391
12395
|
}
|
|
@@ -12394,14 +12398,14 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12394
12398
|
*/
|
|
12395
12399
|
get maxHistoryLength() {
|
|
12396
12400
|
var t;
|
|
12397
|
-
return (t = this.config.maxHistoryLength) != null ? t :
|
|
12401
|
+
return (t = this.config.maxHistoryLength) != null ? t : Li;
|
|
12398
12402
|
}
|
|
12399
12403
|
/**
|
|
12400
12404
|
* Debounce time for batching changes
|
|
12401
12405
|
*/
|
|
12402
12406
|
get debounceTime() {
|
|
12403
12407
|
var t;
|
|
12404
|
-
return (t = this.config.historyDebounceTime) != null ? t :
|
|
12408
|
+
return (t = this.config.historyDebounceTime) != null ? t : Oi;
|
|
12405
12409
|
}
|
|
12406
12410
|
/**
|
|
12407
12411
|
* Whether to use document-level shortcuts for undo/redo
|
|
@@ -12711,7 +12715,7 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12711
12715
|
* This helps ignore late-firing events after state restore
|
|
12712
12716
|
*/
|
|
12713
12717
|
cooldown() {
|
|
12714
|
-
return new Promise((t) => setTimeout(t,
|
|
12718
|
+
return new Promise((t) => setTimeout(t, Ni));
|
|
12715
12719
|
}
|
|
12716
12720
|
/**
|
|
12717
12721
|
* Captures current caret position for later restoration
|
|
@@ -12896,7 +12900,7 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12896
12900
|
* Emits history state changed event
|
|
12897
12901
|
*/
|
|
12898
12902
|
emitStateChanged() {
|
|
12899
|
-
this.eventsDispatcher.emit(
|
|
12903
|
+
this.eventsDispatcher.emit(In, {
|
|
12900
12904
|
canUndo: this.canUndo(),
|
|
12901
12905
|
canRedo: this.canRedo()
|
|
12902
12906
|
});
|
|
@@ -12914,49 +12918,49 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12914
12918
|
};
|
|
12915
12919
|
rt.activeInstance = null;
|
|
12916
12920
|
let ke = rt;
|
|
12917
|
-
const
|
|
12921
|
+
const Ri = {
|
|
12918
12922
|
// API Modules
|
|
12919
|
-
BlocksAPI:
|
|
12920
|
-
CaretAPI:
|
|
12921
|
-
EventsAPI:
|
|
12922
|
-
I18nAPI:
|
|
12923
|
-
API:
|
|
12924
|
-
InlineToolbarAPI:
|
|
12925
|
-
ListenersAPI:
|
|
12926
|
-
NotifierAPI:
|
|
12927
|
-
ReadOnlyAPI:
|
|
12928
|
-
SanitizerAPI:
|
|
12929
|
-
SaverAPI:
|
|
12930
|
-
SelectionAPI:
|
|
12931
|
-
ToolsAPI:
|
|
12932
|
-
StylesAPI:
|
|
12933
|
-
ToolbarAPI:
|
|
12934
|
-
TooltipAPI:
|
|
12935
|
-
UiAPI:
|
|
12936
|
-
HistoryAPI:
|
|
12923
|
+
BlocksAPI: En,
|
|
12924
|
+
CaretAPI: Mn,
|
|
12925
|
+
EventsAPI: Dn,
|
|
12926
|
+
I18nAPI: Ln,
|
|
12927
|
+
API: On,
|
|
12928
|
+
InlineToolbarAPI: Nn,
|
|
12929
|
+
ListenersAPI: Rn,
|
|
12930
|
+
NotifierAPI: Hn,
|
|
12931
|
+
ReadOnlyAPI: Fn,
|
|
12932
|
+
SanitizerAPI: es,
|
|
12933
|
+
SaverAPI: os,
|
|
12934
|
+
SelectionAPI: ns,
|
|
12935
|
+
ToolsAPI: ss,
|
|
12936
|
+
StylesAPI: is,
|
|
12937
|
+
ToolbarAPI: rs,
|
|
12938
|
+
TooltipAPI: ms,
|
|
12939
|
+
UiAPI: bs,
|
|
12940
|
+
HistoryAPI: ks,
|
|
12937
12941
|
// Toolbar Modules
|
|
12938
|
-
BlockSettings:
|
|
12939
|
-
Toolbar:
|
|
12940
|
-
InlineToolbar:
|
|
12942
|
+
BlockSettings: Es,
|
|
12943
|
+
Toolbar: Ns,
|
|
12944
|
+
InlineToolbar: Ps,
|
|
12941
12945
|
// Modules
|
|
12942
|
-
I18n:
|
|
12946
|
+
I18n: Ws,
|
|
12943
12947
|
BlockEvents: pe,
|
|
12944
|
-
BlockManager:
|
|
12945
|
-
BlockSelection:
|
|
12948
|
+
BlockManager: ni,
|
|
12949
|
+
BlockSelection: si,
|
|
12946
12950
|
Caret: Me,
|
|
12947
|
-
CrossBlockSelection:
|
|
12948
|
-
DragManager:
|
|
12949
|
-
ModificationsObserver:
|
|
12951
|
+
CrossBlockSelection: ai,
|
|
12952
|
+
DragManager: li,
|
|
12953
|
+
ModificationsObserver: ci,
|
|
12950
12954
|
Paste: fe,
|
|
12951
|
-
ReadOnly:
|
|
12952
|
-
RectangleSelection:
|
|
12953
|
-
Renderer:
|
|
12954
|
-
Saver:
|
|
12955
|
+
ReadOnly: di,
|
|
12956
|
+
RectangleSelection: hi,
|
|
12957
|
+
Renderer: Ti,
|
|
12958
|
+
Saver: Si,
|
|
12955
12959
|
Tools: be,
|
|
12956
|
-
UI:
|
|
12960
|
+
UI: Di,
|
|
12957
12961
|
History: ke
|
|
12958
12962
|
};
|
|
12959
|
-
class
|
|
12963
|
+
class Pi {
|
|
12960
12964
|
/**
|
|
12961
12965
|
* @param {BlokConfig} config - user configuration
|
|
12962
12966
|
*/
|
|
@@ -12979,7 +12983,7 @@ class Ni {
|
|
|
12979
12983
|
var l, c, d, h;
|
|
12980
12984
|
A(t) ? this.config = w({}, t) : this.config = {
|
|
12981
12985
|
holder: t
|
|
12982
|
-
}, this.config.holder == null && (this.config.holder = "blok"), this.config.logLevel == null && (this.config.logLevel =
|
|
12986
|
+
}, this.config.holder == null && (this.config.holder = "blok"), this.config.logLevel == null && (this.config.logLevel = kn.VERBOSE), vn(this.config.logLevel), this.config.defaultBlock = (l = this.config.defaultBlock) != null ? l : "paragraph";
|
|
12983
12987
|
const e = this.config.tools, o = this.config.defaultBlock, n = e != null && Object.prototype.hasOwnProperty.call(e, o != null ? o : ""), s = (c = this.config.data) == null ? void 0 : c.blocks, i = Array.isArray(s) && s.length > 0;
|
|
12984
12988
|
if (o && o !== "paragraph" && !n && !i) {
|
|
12985
12989
|
I(
|
|
@@ -13069,7 +13073,7 @@ class Ni {
|
|
|
13069
13073
|
* Make modules instances and save it to the @property this.moduleInstances
|
|
13070
13074
|
*/
|
|
13071
13075
|
constructModules() {
|
|
13072
|
-
Object.entries(
|
|
13076
|
+
Object.entries(Ri).forEach(([t, e]) => {
|
|
13073
13077
|
try {
|
|
13074
13078
|
this.moduleInstances[t] = new e({
|
|
13075
13079
|
config: this.configuration,
|
|
@@ -13133,7 +13137,7 @@ class Ni {
|
|
|
13133
13137
|
return e;
|
|
13134
13138
|
}
|
|
13135
13139
|
}
|
|
13136
|
-
const
|
|
13140
|
+
const zi = _t(), vt = class vt {
|
|
13137
13141
|
/** Blok version */
|
|
13138
13142
|
static get version() {
|
|
13139
13143
|
return _t();
|
|
@@ -13144,7 +13148,7 @@ const Fi = _t(), vt = class vt {
|
|
|
13144
13148
|
constructor(t) {
|
|
13145
13149
|
this.initialConfiguration = A(t) ? w({}, t) : t;
|
|
13146
13150
|
const e = A(t) && E(t.onReady) ? t.onReady : () => {
|
|
13147
|
-
}, o = new
|
|
13151
|
+
}, o = new Pi(t);
|
|
13148
13152
|
this.destroy = () => {
|
|
13149
13153
|
}, this.isReady = o.isReady.then(() => {
|
|
13150
13154
|
this.exportAPI(o), e();
|
|
@@ -13163,7 +13167,7 @@ const Fi = _t(), vt = class vt {
|
|
|
13163
13167
|
E(k.destroy) && k.destroy();
|
|
13164
13168
|
const B = k.listeners;
|
|
13165
13169
|
B && E(B.removeAll) && B.removeAll();
|
|
13166
|
-
}),
|
|
13170
|
+
}), gs();
|
|
13167
13171
|
for (const k in this)
|
|
13168
13172
|
Object.prototype.hasOwnProperty.call(this, k) && delete this[k];
|
|
13169
13173
|
Object.setPrototypeOf(this, null);
|
|
@@ -13231,9 +13235,9 @@ const Fi = _t(), vt = class vt {
|
|
|
13231
13235
|
}
|
|
13232
13236
|
};
|
|
13233
13237
|
vt.DATA_ATTR = m;
|
|
13234
|
-
let
|
|
13238
|
+
let mo = vt;
|
|
13235
13239
|
export {
|
|
13236
|
-
|
|
13237
|
-
|
|
13238
|
-
|
|
13240
|
+
mo as B,
|
|
13241
|
+
_i as e,
|
|
13242
|
+
zi as v
|
|
13239
13243
|
};
|