@jackuait/blok 0.4.1-beta.12 → 0.4.1-beta.13
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-Xfgk2kCJ.mjs} +326 -320
- package/dist/chunks/{i18next-loader-D8GzSwio.mjs → i18next-loader-BMO6Rg_l.mjs} +1 -1
- package/dist/chunks/{index-C5e_WLFg.mjs → index-DyPp5v5e.mjs} +1 -1
- package/dist/chunks/{inline-tool-convert-CLUxkCe_.mjs → inline-tool-convert-DhHW7EYl.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 +38 -21
- package/src/tools/list/index.ts +23 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var zo = Object.defineProperty, Uo = Object.defineProperties;
|
|
2
|
+
var Ko = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var At = Object.getOwnPropertySymbols;
|
|
4
4
|
var He = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Pe = (a, t, e) => t in a ?
|
|
5
|
+
var Pe = (a, t, e) => t in a ? zo(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
|
He.call(t, e) && Pe(a, e, t[e]);
|
|
8
8
|
if (At)
|
|
9
9
|
for (var e of At(t))
|
|
10
10
|
Fe.call(t, e) && Pe(a, e, t[e]);
|
|
11
11
|
return a;
|
|
12
|
-
}, R = (a, t) =>
|
|
12
|
+
}, R = (a, t) => Uo(a, Ko(t));
|
|
13
13
|
var jt = (a, t) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var o in a)
|
|
@@ -19,12 +19,12 @@ var jt = (a, t) => {
|
|
|
19
19
|
t.indexOf(o) < 0 && Fe.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 Wo, a as g, b as ve, c as E, l as I, S as y, d as $o, e as jo, D as m, t as C, f as j, h as mo, P as O, j as Ht, k as V, m as A, n as Bt, o as ht, p as bo, q as nt, T as Yt, r as Ft, s as v, I as Yo, u as Vo, v as ct, w as oe, x as Xo, y as qo, z as Zo, A as ko, B as Go, C as vo, E as Bo, F as Jo, G as _e, H as Qo, J as tn, K as en, L as Be, M as ze, N as on, O as Ue, Q as Ke, R as nn, U as sn, V as rn, W as an, X as ln, Y as ne, Z as _t, _ as cn, $ as dn, a0 as hn, a1 as We, a2 as un, a3 as pn, a4 as fn, a5 as gn, a6 as mn, a7 as bn, a8 as kn } from "./inline-tool-convert-DhHW7EYl.mjs";
|
|
23
|
+
function vn(a) {
|
|
24
24
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
25
25
|
}
|
|
26
26
|
var Vt, $e;
|
|
27
|
-
function
|
|
27
|
+
function Bn() {
|
|
28
28
|
if ($e) return Vt;
|
|
29
29
|
$e = 1;
|
|
30
30
|
function a() {
|
|
@@ -37,7 +37,7 @@ function vn() {
|
|
|
37
37
|
__esModule: !0
|
|
38
38
|
}), Vt;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
Bn();
|
|
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 wn = globalThis.setTimeout.bind(globalThis), yn = globalThis.clearTimeout.bind(globalThis), zt = /* @__PURE__ */ new Map(), xn = (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 = wn(() => {
|
|
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 = xn(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), yn(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 Tn = 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 = Tn;
|
|
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 = Wo("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 Sn = (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", wo = "fake cursor is about to be toggled", yo = "fake cursor have been set", yt = "blok mobile layout toggled", ie = "block-settings-opened", re = "block-settings-closed", Cn = "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) => $o(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 jo(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(wo, { state: t }), e && y.addFakeCursor(), o && y.removeFakeCursor(this.holder), (s = this.blokEventBus) == null || s.emit(yo, { 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) => Sn(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(mo);
|
|
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 In 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 En = (a, t) => typeof a == "number" ? t.BlockManager.getBlockByIndex(a) : typeof a == "string" ? t.BlockManager.getBlockById(a) : t.BlockManager.getBlockById(a.id);
|
|
1295
|
+
class An 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 = En(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 Mn 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 Dn 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 Ln 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 On 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 Nn 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 Rn {
|
|
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-DyPp5v5e.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 Pn 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 Rn();
|
|
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 Hn 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
|
|
1558
|
+
var Ot = { exports: {} }, Fn = Ot.exports, je;
|
|
1559
|
+
function _n() {
|
|
1560
1560
|
return je || (je = 1, (function(a, t) {
|
|
1561
1561
|
(function(e, o) {
|
|
1562
1562
|
a.exports = o();
|
|
1563
|
-
})(
|
|
1563
|
+
})(Fn, 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 zn = _n();
|
|
1639
|
+
const Un = /* @__PURE__ */ vn(zn), Kn = /^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i, Wn = /\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,18 +1645,18 @@ 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 Un(e).clean(a);
|
|
1649
|
+
}, ye = (a, t, e) => Array.isArray(a) ? $n(a, t, e) : A(a) ? jn(a, t, e) : ht(a) ? Yn(a, t, e) : a, $n = (a, t, e) => a.map((o) => ye(o, t, e)), jn = (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 && Vn(l) ? l : t;
|
|
1655
1655
|
o[s] = ye(i, c, e);
|
|
1656
1656
|
}
|
|
1657
1657
|
return o;
|
|
1658
|
-
},
|
|
1659
|
-
const o =
|
|
1658
|
+
}, Yn = (a, t, e) => {
|
|
1659
|
+
const o = Qn(t, e);
|
|
1660
1660
|
if (o) {
|
|
1661
1661
|
const n = Z(a, o);
|
|
1662
1662
|
return Xt(Ve(n, o));
|
|
@@ -1666,7 +1666,7 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1666
1666
|
return Xt(Ve(n, e));
|
|
1667
1667
|
}
|
|
1668
1668
|
return Xt(a);
|
|
1669
|
-
},
|
|
1669
|
+
}, Vn = (a) => A(a) || bo(a) || E(a), Xn = (a) => a ? Kn.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
|
+
Xn(s) && o.removeAttribute(n);
|
|
1678
1678
|
});
|
|
1679
1679
|
}), t.innerHTML;
|
|
1680
1680
|
}
|
|
1681
|
-
return a.replace(
|
|
1681
|
+
return a.replace(Wn, "");
|
|
1682
1682
|
}, xe = (a) => {
|
|
1683
1683
|
if (N(a))
|
|
1684
1684
|
return {};
|
|
@@ -1689,15 +1689,15 @@ const zn = /* @__PURE__ */ kn(_n), Un = /^\s*(?:javascript\s*:|data\s*:\s*text\s
|
|
|
1689
1689
|
}, Ye = (a) => function(e) {
|
|
1690
1690
|
const o = a.call(this, e);
|
|
1691
1691
|
return o == null ? {} : o;
|
|
1692
|
-
},
|
|
1692
|
+
}, qn = /* @__PURE__ */ new Set(["class", "id", "title", "role", "dir", "lang"]), Zn = (a) => {
|
|
1693
1693
|
const t = a.toLowerCase();
|
|
1694
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1695
|
-
},
|
|
1694
|
+
return t.startsWith("data-") || t.startsWith("aria-") || qn.has(t);
|
|
1695
|
+
}, Gn = (a) => {
|
|
1696
1696
|
const t = {};
|
|
1697
1697
|
return Array.from(a.attributes).forEach((e) => {
|
|
1698
|
-
|
|
1698
|
+
Zn(e.name) && (t[e.name] = !0);
|
|
1699
1699
|
}), t;
|
|
1700
|
-
}, at = (a) => a === !0 ? Ye(
|
|
1700
|
+
}, at = (a) => a === !0 ? Ye(Gn) : a === !1 ? !1 : E(a) ? Ye(a) : ht(a) ? a : A(a) ? Bt({}, a) : a, Jn = (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
|
+
}, Qn = (a, t) => A(a) && !E(a) ? Jn(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);
|
|
@@ -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 (!(bo(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 ts 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 es 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 os 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 ns 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 ss 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 is 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, rs = "tooltip", as = "aria-hidden", ls = "false", cs = "true", ds = "visibility", hs = "visible", us = "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(ds, e ? hs : us), this.nodes.wrapper.setAttribute(as, e ? ls : cs), 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", rs), 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(), ps = (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
|
+
}, fs = () => {
|
|
2242
2242
|
$t().destroy();
|
|
2243
2243
|
};
|
|
2244
|
-
class
|
|
2244
|
+
class gs 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
|
+
ps(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 ms 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 bs 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 ks {
|
|
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 ks(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
|
+
}, vs = {
|
|
2877
2877
|
/**
|
|
2878
2878
|
* Item in inline context - more compact styling
|
|
2879
2879
|
*/
|
|
2880
2880
|
item: "rounded p-1"
|
|
2881
|
-
},
|
|
2881
|
+
}, Bs = {
|
|
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 = Yo, 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 && vs.item,
|
|
3044
|
+
e && Bs.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 xo extends Se {
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Constructs the instance
|
|
3253
3253
|
* @param renderParams - optional render params for styling context
|
|
@@ -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
|
+
}, ws = (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 To 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 xo(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 So = (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 ys 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: Vo
|
|
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 So(t, this.searchQuery);
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
|
-
class ft extends
|
|
3701
|
+
class ft extends To {
|
|
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 xo || 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 ys({
|
|
3969
3969
|
items: this.itemsDefault,
|
|
3970
3970
|
placeholder: this.messages.search
|
|
3971
3971
|
}), this.search.on(Ce.Search, this.onSearch);
|
|
@@ -3978,14 +3978,14 @@ 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) => So(o, t));
|
|
3982
3982
|
this.onSearch({
|
|
3983
3983
|
query: t,
|
|
3984
3984
|
items: e
|
|
3985
3985
|
});
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
const
|
|
3988
|
+
const xs = "38px", Ts = "46px";
|
|
3989
3989
|
class qe extends ft {
|
|
3990
3990
|
/**
|
|
3991
3991
|
* Constructs the instance
|
|
@@ -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", xs), this.nodes.popover.style.setProperty("--height-mobile", Ts), 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, ws(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 Ss {
|
|
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 = Xo, 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 Cs {
|
|
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 Co extends To {
|
|
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 Cs(), 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 Ss({
|
|
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 Is 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() ? Co : 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 qo(
|
|
4483
4483
|
s.map((d) => new q(d)),
|
|
4484
4484
|
r
|
|
4485
|
-
) : await
|
|
4485
|
+
) : await Zo(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: ko(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: Go,
|
|
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: vo,
|
|
4515
4515
|
title: this.Blok.I18n.t("blockSettings.delete"),
|
|
4516
4516
|
name: "delete",
|
|
4517
4517
|
closeOnActivate: !0,
|
|
@@ -4719,7 +4719,7 @@ const Ze = {
|
|
|
4719
4719
|
SHIFT: ["SHIFT"],
|
|
4720
4720
|
CMD: ["CMD", "CONTROL", "COMMAND", "WINDOWS", "CTRL"],
|
|
4721
4721
|
ALT: ["ALT", "OPTION"]
|
|
4722
|
-
},
|
|
4722
|
+
}, Es = {
|
|
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
|
-
},
|
|
4769
|
+
}, As = (a) => Object.keys(Ze).find(
|
|
4770
4770
|
(e) => Ze[e].includes(a)
|
|
4771
4771
|
);
|
|
4772
|
-
class
|
|
4772
|
+
class Ms {
|
|
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 = As(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 = Es[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 Ds {
|
|
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 Ms({
|
|
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 Ds();
|
|
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 Ls 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() ? Co : 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: ko(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 ? Bo(u) : "",
|
|
5053
5053
|
englishTitle: l,
|
|
5054
5054
|
searchTerms: h
|
|
5055
5055
|
};
|
|
@@ -5153,7 +5153,7 @@ class Ds extends Ct {
|
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
5155
|
const ce = "block hovered", Ge = 10;
|
|
5156
|
-
class
|
|
5156
|
+
class Os extends T {
|
|
5157
5157
|
/**
|
|
5158
5158
|
* @class
|
|
5159
5159
|
* @param moduleConfiguration - Module Configuration
|
|
@@ -5435,7 +5435,7 @@ 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: Jo
|
|
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(
|
|
@@ -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: Qo
|
|
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 Ls({
|
|
5487
5487
|
api: this.Blok.API.methods,
|
|
5488
5488
|
tools: this.Blok.Tools.blockTools,
|
|
5489
5489
|
i18nLabels: {
|
|
@@ -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 Ns = /* @__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 || {}), Io = /* @__PURE__ */ ((a) => (a.Shortcut = "shortcut", a.SanitizeConfig = "sanitize", a))(Io || {}), pt = /* @__PURE__ */ ((a) => (a.IsEnabledLineBreaks = "enableLineBreaks", a.Toolbox = "toolbox", a.ConversionConfig = "conversionConfig", a.IsReadOnlySupported = "isReadOnlySupported", a.PasteConfig = "pasteConfig", a))(pt || {}), Eo = /* @__PURE__ */ ((a) => (a.IsInline = "isInline", a.Title = "title", a.IsReadOnlySupported = "isReadOnlySupported", a))(Eo || {}), Ao = /* @__PURE__ */ ((a) => (a.IsTune = "isTune", a))(Ao || {});
|
|
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
|
+
Ns.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 Rs extends T {
|
|
5771
5771
|
/**
|
|
5772
5772
|
* @param moduleConfiguration - Module Configuration
|
|
5773
5773
|
* @param moduleConfiguration.config - Blok's config
|
|
@@ -5922,7 +5922,7 @@ 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, tn), 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
|
|
@@ -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 ? Bo(r) : void 0, c = en(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][Io.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
|
+
}, Ps = /* @__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) => Ps.has(a) ? "rtl" : "ltr", Mo = (a, t) => ({
|
|
6198
6198
|
dictionary: t,
|
|
6199
6199
|
direction: de(a)
|
|
6200
|
-
}),
|
|
6200
|
+
}), Hs = [
|
|
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
|
-
], Je = "en",
|
|
6270
|
-
he.set("en",
|
|
6271
|
-
const
|
|
6269
|
+
], Je = "en", Fs = Mo("en", Et), he = /* @__PURE__ */ new Map();
|
|
6270
|
+
he.set("en", Fs);
|
|
6271
|
+
const _s = {
|
|
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
|
+
}, zs = 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 = _s[a], o = await e(), n = Mo(a, o.default);
|
|
6345
6345
|
return he.set(a, n), n;
|
|
6346
6346
|
};
|
|
6347
|
-
class
|
|
6347
|
+
class Us {
|
|
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 Fi = Et;
|
|
6393
|
+
class Ks 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 = Je, this.defaultLocale = Je, this.usingI18next = !1, this.lightweightI18n = new
|
|
6398
|
+
super(...t), this.i18nextWrapper = null, this.locale = Je, this.defaultLocale = Je, this.usingI18next = !1, this.lightweightI18n = new Us();
|
|
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 zs(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-BMO6Rg_l.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 Hs.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
|
+
}, Do = (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) =>
|
|
6590
|
+
return t.includes(Ee) || !Be(t) ? !1 : Array.from(a.children).every((o) => Do(o));
|
|
6591
6591
|
}, Qe = 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) || !Do(o))
|
|
6597
6597
|
return;
|
|
6598
6598
|
const n = e instanceof Text ? e : null;
|
|
6599
6599
|
if (n === null || !n.isConnected)
|
|
@@ -6605,7 +6605,7 @@ const Ee = " ", ue = /* @__PURE__ */ new WeakSet(), Ae = () => {
|
|
|
6605
6605
|
(i === Ee || i === " ") && ue.add(n);
|
|
6606
6606
|
});
|
|
6607
6607
|
}
|
|
6608
|
-
}) : null, to = /* @__PURE__ */ new WeakSet(),
|
|
6608
|
+
}) : null, to = /* @__PURE__ */ new WeakSet(), Lo = (a) => {
|
|
6609
6609
|
if (Qe === null || to.has(a))
|
|
6610
6610
|
return;
|
|
6611
6611
|
const t = () => {
|
|
@@ -6616,10 +6616,10 @@ const Ee = " ", ue = /* @__PURE__ */ new WeakSet(), Ae = () => {
|
|
|
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" && Lo(window.document);
|
|
6620
|
+
const Ws = (a) => {
|
|
6621
6621
|
var n, s;
|
|
6622
|
-
|
|
6622
|
+
Lo(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
|
+
}, Oo = (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 : Oo(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 : Oo(a, e, o, "right");
|
|
6692
|
+
}, No = (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
|
+
}, $s = (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 = No(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
|
+
}, js = (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 = No(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
|
+
}, Ro = (a, t = !0) => {
|
|
6756
6756
|
var h, u, f, p;
|
|
6757
6757
|
if (g.isNativeInput(a)) {
|
|
6758
6758
|
a.focus();
|
|
@@ -6796,11 +6796,11 @@ const Ks = (a) => {
|
|
|
6796
6796
|
return s ? s.getBoundingClientRect().left : null;
|
|
6797
6797
|
}, oo = (a, t, e) => {
|
|
6798
6798
|
if (g.isNativeInput(a)) {
|
|
6799
|
-
|
|
6799
|
+
Ys(a, t, e);
|
|
6800
6800
|
return;
|
|
6801
6801
|
}
|
|
6802
|
-
|
|
6803
|
-
},
|
|
6802
|
+
Vs(a, t, e);
|
|
6803
|
+
}, Ys = (a, t, e) => {
|
|
6804
6804
|
a.focus();
|
|
6805
6805
|
const o = a.value;
|
|
6806
6806
|
if (o.length === 0) {
|
|
@@ -6821,7 +6821,7 @@ const Ks = (a) => {
|
|
|
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
|
+
}, Vs = (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 = Xs(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 = qs(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
|
+
Ro(a, e);
|
|
6862
6862
|
}
|
|
6863
|
-
},
|
|
6863
|
+
}, Xs = (a, t, e) => {
|
|
6864
6864
|
const o = document.createRange();
|
|
6865
6865
|
try {
|
|
6866
6866
|
if (e)
|
|
@@ -6878,7 +6878,7 @@ const Ks = (a) => {
|
|
|
6878
6878
|
} catch (n) {
|
|
6879
6879
|
return null;
|
|
6880
6880
|
}
|
|
6881
|
-
},
|
|
6881
|
+
}, qs = (a, t) => {
|
|
6882
6882
|
const e = document.caretPositionFromPoint(a, t);
|
|
6883
6883
|
return e === null ? null : {
|
|
6884
6884
|
node: e.offsetNode,
|
|
@@ -6893,7 +6893,7 @@ const Ks = (a) => {
|
|
|
6893
6893
|
ArrowRight: v.RIGHT,
|
|
6894
6894
|
ArrowUp: v.UP,
|
|
6895
6895
|
ArrowLeft: v.LEFT
|
|
6896
|
-
},
|
|
6896
|
+
}, Zs = /* @__PURE__ */ new Set(["Enter", "Process", "Spacebar", "Space", "Dead"]), Dt = '[contenteditable="true"], textarea, input', io = (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 {
|
|
@@ -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 && (Ro(t.lastInput, !1), o.mergeBlocks(t, e).then(() => {
|
|
7341
7341
|
n.close();
|
|
7342
7342
|
}).catch(() => {
|
|
7343
7343
|
}));
|
|
@@ -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 ? Ws(c) : null;
|
|
7372
7372
|
if (p !== null) {
|
|
7373
7373
|
y.setCursor(p.node, p.offset), t.preventDefault();
|
|
7374
7374
|
return;
|
|
@@ -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 || Zs.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 on(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 ro = "block-removed",
|
|
7655
|
-
class
|
|
7654
|
+
const ro = "block-removed", Gs = "block-added", Js = "block-moved", ao = "block-changed";
|
|
7655
|
+
class Po {
|
|
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 lo = "blok-announcer",
|
|
7678
|
+
const lo = "blok-announcer", Qs = [
|
|
7679
7679
|
"absolute",
|
|
7680
7680
|
"w-px",
|
|
7681
7681
|
"h-px",
|
|
@@ -7715,7 +7715,7 @@ const lo = "blok-announcer", Js = [
|
|
|
7715
7715
|
return;
|
|
7716
7716
|
}
|
|
7717
7717
|
const e = document.createElement("div");
|
|
7718
|
-
e.id = lo, e.className =
|
|
7718
|
+
e.id = lo, e.className = Qs, 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
|
-
}, Qs = () => {
|
|
7746
|
-
gt.addReference(), gt.getInstance();
|
|
7747
7745
|
}, ti = () => {
|
|
7746
|
+
gt.addReference(), gt.getInstance();
|
|
7747
|
+
}, ei = () => {
|
|
7748
7748
|
gt.getInstance().destroy();
|
|
7749
7749
|
};
|
|
7750
|
-
class
|
|
7750
|
+
class oi extends T {
|
|
7751
7751
|
constructor() {
|
|
7752
7752
|
super(...arguments), this._currentBlockIndex = -1, this._blocks = null, this.registeredShortcuts = [];
|
|
7753
7753
|
}
|
|
@@ -7945,7 +7945,7 @@ class ei extends T {
|
|
|
7945
7945
|
throw new Error(`Could not replace Block at index ${l}. Block not found.`);
|
|
7946
7946
|
return i && u !== void 0 && this.blockDidMutated(ro, u, {
|
|
7947
7947
|
index: l
|
|
7948
|
-
}), this.blocksStore.insert(l, h, i), this.blockDidMutated(
|
|
7948
|
+
}), this.blocksStore.insert(l, h, i), this.blockDidMutated(Gs, h, {
|
|
7949
7949
|
index: l
|
|
7950
7950
|
}), s && (this.currentBlockIndex = l), !s && l <= this.currentBlockIndex && this.currentBlockIndex++, h;
|
|
7951
7951
|
}
|
|
@@ -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(Js, n, {
|
|
8271
8271
|
fromIndex: e,
|
|
8272
8272
|
toIndex: t
|
|
8273
8273
|
});
|
|
@@ -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 Po();
|
|
8311
8311
|
[...this.blocks].forEach((n) => {
|
|
8312
8312
|
e.add(async () => {
|
|
8313
8313
|
await this.removeBlock(n, !1);
|
|
@@ -8473,7 +8473,7 @@ class ei extends T {
|
|
|
8473
8473
|
}), e;
|
|
8474
8474
|
}
|
|
8475
8475
|
}
|
|
8476
|
-
class
|
|
8476
|
+
class ni 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,23 +8792,23 @@ class oi extends T {
|
|
|
8792
8792
|
}, 20)();
|
|
8793
8793
|
}
|
|
8794
8794
|
}
|
|
8795
|
-
const
|
|
8795
|
+
const si = 127, co = (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 > si)
|
|
8803
8803
|
return !1;
|
|
8804
8804
|
}
|
|
8805
8805
|
return !0;
|
|
8806
|
-
},
|
|
8806
|
+
}, Ho = (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) => Ho(e)) : [];
|
|
8809
|
+
}, ii = (a) => {
|
|
8810
8810
|
var n, s;
|
|
8811
|
-
const t =
|
|
8811
|
+
const t = Ho(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) => {
|
|
@@ -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 = ii(t);
|
|
8892
8892
|
return o ? {
|
|
8893
8893
|
node: o,
|
|
8894
8894
|
offset: g.getContentLength(o)
|
|
@@ -9105,7 +9105,7 @@ 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 ? js(n) : !0))
|
|
9109
9109
|
return !1;
|
|
9110
9110
|
const i = eo(), { nextInput: r } = e;
|
|
9111
9111
|
if (r)
|
|
@@ -9134,7 +9134,7 @@ 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 ? $s(n) : !0))
|
|
9138
9138
|
return !1;
|
|
9139
9139
|
const i = eo(), { previousInput: r } = e;
|
|
9140
9140
|
return r ? (this.setToInputAtXPosition(r, i, !1), !0) : o !== null ? (this.setToBlockAtXPosition(o, i, !1), !0) : !1;
|
|
@@ -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 ri 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 !== nn.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 ai 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 li 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 = sn, 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(Bo, () => {
|
|
9871
|
-
this.disable();
|
|
9872
9870
|
}), this.eventsDispatcher.on(wo, () => {
|
|
9871
|
+
this.disable();
|
|
9872
|
+
}), this.eventsDispatcher.on(yo, () => {
|
|
9873
9873
|
this.enable();
|
|
9874
9874
|
});
|
|
9875
9875
|
}
|
|
@@ -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) => rn(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 = an(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 === "*");
|
|
@@ -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 ci 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 di 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
|
+
ln
|
|
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,35 +10801,38 @@ 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
|
|
10804
|
+
const hi = (a) => a.some((t) => t.items !== void 0 && t.items.length > 0), ui = (a) => {
|
|
10805
10805
|
var e;
|
|
10806
|
-
return a.type === "list" && ((e = a.data) == null ? void 0 : e.items) ?
|
|
10807
|
-
},
|
|
10806
|
+
return a.type === "list" && ((e = a.data) == null ? void 0 : e.items) ? hi(a.data.items) : !1;
|
|
10807
|
+
}, pi = (a) => a.parent !== void 0 || a.content !== void 0 && a.content.length > 0, fi = (a) => a.some(pi) ? { format: "hierarchical", hasHierarchy: !0 } : a.some(ui) ? { format: "legacy", hasHierarchy: !0 } : { format: "flat", hasHierarchy: !1 }, Fo = (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 = Fo(l.items, d, e + 1, o, void 0, s, i);
|
|
10824
|
+
p.length > 0 && (f.content = p);
|
|
10822
10825
|
}), r;
|
|
10823
|
-
},
|
|
10826
|
+
}, gi = (a, t) => {
|
|
10824
10827
|
const e = [], o = a.style, n = a.start;
|
|
10825
|
-
return
|
|
10826
|
-
},
|
|
10828
|
+
return Fo(a.items, void 0, 0, o, n, t, e), e;
|
|
10829
|
+
}, mi = (a) => {
|
|
10827
10830
|
var e, o;
|
|
10828
10831
|
const t = [];
|
|
10829
10832
|
for (const n of a) {
|
|
10830
10833
|
const s = (e = n.id) != null ? e : ve();
|
|
10831
10834
|
if (n.type === "list" && ((o = n.data) == null ? void 0 : o.items)) {
|
|
10832
|
-
const r = n.data, l =
|
|
10835
|
+
const r = n.data, l = gi(r, n.tunes);
|
|
10833
10836
|
t.push(...l);
|
|
10834
10837
|
} else
|
|
10835
10838
|
t.push(R(w({}, n), {
|
|
@@ -10837,22 +10840,22 @@ const di = (a) => a.some((t) => t.items !== void 0 && t.items.length > 0), hi =
|
|
|
10837
10840
|
}));
|
|
10838
10841
|
}
|
|
10839
10842
|
return t;
|
|
10840
|
-
},
|
|
10843
|
+
}, bi = (a, t) => {
|
|
10841
10844
|
a && t.add(a);
|
|
10842
10845
|
}, uo = (a) => {
|
|
10843
10846
|
const n = a, { parent: t, content: e } = n;
|
|
10844
10847
|
return jt(n, ["parent", "content"]);
|
|
10845
|
-
},
|
|
10848
|
+
}, ki = (a, t, e) => {
|
|
10846
10849
|
const o = [];
|
|
10847
10850
|
for (const n of a) {
|
|
10848
10851
|
const s = t.get(n);
|
|
10849
|
-
if (s && s.type === "
|
|
10850
|
-
const r =
|
|
10852
|
+
if (s && s.type === "list") {
|
|
10853
|
+
const r = _o(s, t, e);
|
|
10851
10854
|
o.push(...r);
|
|
10852
10855
|
}
|
|
10853
10856
|
}
|
|
10854
10857
|
return o;
|
|
10855
|
-
},
|
|
10858
|
+
}, _o = (a, t, e) => {
|
|
10856
10859
|
var r, l;
|
|
10857
10860
|
const o = [];
|
|
10858
10861
|
a.id && e.add(a.id);
|
|
@@ -10860,10 +10863,10 @@ const di = (a) => a.some((t) => t.items !== void 0 && t.items.length > 0), hi =
|
|
|
10860
10863
|
content: ((r = a.data) == null ? void 0 : r.text) || "",
|
|
10861
10864
|
checked: (l = a.data) == null ? void 0 : l.checked
|
|
10862
10865
|
};
|
|
10863
|
-
return a.content && a.content.length > 0 && (n.items =
|
|
10864
|
-
},
|
|
10866
|
+
return a.content && a.content.length > 0 && (n.items = ki(a.content, t, e)), n.items !== void 0 && n.items.length === 0 && delete n.items, o.push(n), o;
|
|
10867
|
+
}, vi = (a, t, e) => {
|
|
10865
10868
|
var r, l;
|
|
10866
|
-
const o =
|
|
10869
|
+
const o = _o(a, t, e), n = ((r = a.data) == null ? void 0 : r.style) || "unordered", s = (l = a.data) == null ? void 0 : l.start;
|
|
10867
10870
|
return w({
|
|
10868
10871
|
id: a.id,
|
|
10869
10872
|
type: "list",
|
|
@@ -10872,26 +10875,29 @@ const di = (a) => a.some((t) => t.items !== void 0 && t.items.length > 0), hi =
|
|
|
10872
10875
|
items: o
|
|
10873
10876
|
}, n === "ordered" && s !== void 0 && s !== 1 ? { start: s } : {})
|
|
10874
10877
|
}, a.tunes !== void 0 ? { tunes: a.tunes } : {});
|
|
10875
|
-
},
|
|
10876
|
-
|
|
10878
|
+
}, po = (a) => {
|
|
10879
|
+
var t, e;
|
|
10880
|
+
return a.type === "list" && ((t = a.data) == null ? void 0 : t.text) !== void 0 && ((e = a.data) == null ? void 0 : e.items) === void 0;
|
|
10881
|
+
}, Bi = (a) => {
|
|
10882
|
+
const t = /* @__PURE__ */ new Map();
|
|
10877
10883
|
for (const s of a)
|
|
10878
|
-
s.id && t.set(s.id, s)
|
|
10879
|
-
if (
|
|
10884
|
+
s.id && t.set(s.id, s);
|
|
10885
|
+
if (!a.some(po))
|
|
10880
10886
|
return a.map(uo);
|
|
10881
10887
|
const o = [], n = /* @__PURE__ */ new Set();
|
|
10882
10888
|
for (const s of a) {
|
|
10883
10889
|
if (s.id && n.has(s.id))
|
|
10884
10890
|
continue;
|
|
10885
|
-
const r = s
|
|
10886
|
-
if (
|
|
10887
|
-
const
|
|
10888
|
-
o.push(
|
|
10891
|
+
const r = po(s), l = r && !s.parent, c = !r;
|
|
10892
|
+
if (l) {
|
|
10893
|
+
const d = vi(s, t, n);
|
|
10894
|
+
o.push(d);
|
|
10889
10895
|
}
|
|
10890
|
-
|
|
10896
|
+
c && (o.push(uo(s)), bi(s.id, n));
|
|
10891
10897
|
}
|
|
10892
10898
|
return o;
|
|
10893
|
-
},
|
|
10894
|
-
class
|
|
10899
|
+
}, wi = (a, t) => a === "hierarchical" ? t === "legacy" : !1, yi = (a, t) => a === "legacy" || a === "auto" && t === "legacy";
|
|
10900
|
+
class xi extends T {
|
|
10895
10901
|
constructor() {
|
|
10896
10902
|
super(...arguments), this.detectedInputFormat = "flat";
|
|
10897
10903
|
}
|
|
@@ -10911,9 +10917,9 @@ class yi extends T {
|
|
|
10911
10917
|
if (t.length === 0)
|
|
10912
10918
|
n.insert();
|
|
10913
10919
|
else {
|
|
10914
|
-
const s = this.config.dataModel || "auto", i =
|
|
10920
|
+
const s = this.config.dataModel || "auto", i = fi(t);
|
|
10915
10921
|
this.detectedInputFormat = i.format;
|
|
10916
|
-
const l = (
|
|
10922
|
+
const l = (wi(s, i.format) ? mi(t) : t).map((c) => {
|
|
10917
10923
|
const { tunes: d, id: h, parent: u, content: f } = c, p = c.type, b = o.available.has(p) ? {
|
|
10918
10924
|
tool: p,
|
|
10919
10925
|
data: c.data
|
|
@@ -10978,7 +10984,7 @@ class yi extends T {
|
|
|
10978
10984
|
};
|
|
10979
10985
|
}
|
|
10980
10986
|
}
|
|
10981
|
-
class
|
|
10987
|
+
class Ti extends T {
|
|
10982
10988
|
/**
|
|
10983
10989
|
* Composes new chain of Promises to fire them alternatelly
|
|
10984
10990
|
* @returns {OutputData | undefined}
|
|
@@ -11067,7 +11073,7 @@ class xi extends T {
|
|
|
11067
11073
|
});
|
|
11068
11074
|
e.push(S);
|
|
11069
11075
|
});
|
|
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 =
|
|
11076
|
+
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 = yi(o, n) ? Bi(e) : e;
|
|
11071
11077
|
return {
|
|
11072
11078
|
time: +/* @__PURE__ */ new Date(),
|
|
11073
11079
|
blocks: s,
|
|
@@ -11170,7 +11176,7 @@ const De = class De {
|
|
|
11170
11176
|
* @returns {HTMLElement}
|
|
11171
11177
|
*/
|
|
11172
11178
|
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 =
|
|
11179
|
+
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 = cn, o = g.make("div", "ml-3.5"), n = g.make("div", "font-medium capitalize", {
|
|
11174
11180
|
textContent: this.title
|
|
11175
11181
|
}), s = g.make("div", "", {
|
|
11176
11182
|
textContent: this.subtitle
|
|
@@ -11180,7 +11186,7 @@ const De = class De {
|
|
|
11180
11186
|
};
|
|
11181
11187
|
De.isReadOnlySupported = !0;
|
|
11182
11188
|
let ge = De;
|
|
11183
|
-
class
|
|
11189
|
+
class Si extends Ie {
|
|
11184
11190
|
constructor() {
|
|
11185
11191
|
super(...arguments), this.type = dt.Inline;
|
|
11186
11192
|
}
|
|
@@ -11224,7 +11230,7 @@ class Ti extends Ie {
|
|
|
11224
11230
|
return this.constructable.titleKey;
|
|
11225
11231
|
}
|
|
11226
11232
|
}
|
|
11227
|
-
class
|
|
11233
|
+
class Ci extends Ie {
|
|
11228
11234
|
constructor() {
|
|
11229
11235
|
super(...arguments), this.type = dt.Tune;
|
|
11230
11236
|
}
|
|
@@ -11280,7 +11286,7 @@ class _ extends Map {
|
|
|
11280
11286
|
return new _(t);
|
|
11281
11287
|
}
|
|
11282
11288
|
}
|
|
11283
|
-
class
|
|
11289
|
+
class Ii extends Ie {
|
|
11284
11290
|
constructor() {
|
|
11285
11291
|
super(...arguments), this.type = dt.Block, this.inlineTools = new _(), this.tunes = new _();
|
|
11286
11292
|
}
|
|
@@ -11439,7 +11445,7 @@ class Ci extends Ie {
|
|
|
11439
11445
|
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
11446
|
}
|
|
11441
11447
|
}
|
|
11442
|
-
class
|
|
11448
|
+
class Ei {
|
|
11443
11449
|
/**
|
|
11444
11450
|
* @class
|
|
11445
11451
|
* @param config - tools config
|
|
@@ -11501,12 +11507,12 @@ class Ii {
|
|
|
11501
11507
|
*/
|
|
11502
11508
|
getConstructor(t) {
|
|
11503
11509
|
switch (!0) {
|
|
11504
|
-
case !!Reflect.get(t,
|
|
11505
|
-
return Ti;
|
|
11506
|
-
case !!Reflect.get(t, Eo.IsTune):
|
|
11510
|
+
case !!Reflect.get(t, Eo.IsInline):
|
|
11507
11511
|
return Si;
|
|
11508
|
-
|
|
11512
|
+
case !!Reflect.get(t, Ao.IsTune):
|
|
11509
11513
|
return Ci;
|
|
11514
|
+
default:
|
|
11515
|
+
return Ii;
|
|
11510
11516
|
}
|
|
11511
11517
|
}
|
|
11512
11518
|
}
|
|
@@ -11523,7 +11529,7 @@ const Le = class Le {
|
|
|
11523
11529
|
*/
|
|
11524
11530
|
render() {
|
|
11525
11531
|
return {
|
|
11526
|
-
icon:
|
|
11532
|
+
icon: vo,
|
|
11527
11533
|
title: this.api.i18n.t("blockSettings.delete"),
|
|
11528
11534
|
name: "delete",
|
|
11529
11535
|
onActivate: () => this.handleClick()
|
|
@@ -11607,7 +11613,7 @@ const ee = (a) => {
|
|
|
11607
11613
|
if (!e || Object.keys(e).length === 0)
|
|
11608
11614
|
throw Error("Can't start without tools");
|
|
11609
11615
|
const o = this.prepareConfig(e);
|
|
11610
|
-
this.factory = new
|
|
11616
|
+
this.factory = new Ei(o, this.config, this.Blok.API);
|
|
11611
11617
|
const n = this.getListOfPrepareFunctions(o);
|
|
11612
11618
|
if (n.length === 0)
|
|
11613
11619
|
return Promise.resolve();
|
|
@@ -11615,10 +11621,10 @@ const ee = (a) => {
|
|
|
11615
11621
|
this.isToolPrepareData(c) && this.toolPrepareMethodSuccess({ toolName: c.toolName });
|
|
11616
11622
|
}, i = (c) => {
|
|
11617
11623
|
this.isToolPrepareData(c) && this.toolPrepareMethodFallback({ toolName: c.toolName });
|
|
11618
|
-
}, r = new
|
|
11624
|
+
}, r = new Po();
|
|
11619
11625
|
n.forEach((c) => {
|
|
11620
11626
|
r.add(async () => {
|
|
11621
|
-
const d =
|
|
11627
|
+
const d = dn(c.data) ? {} : c.data;
|
|
11622
11628
|
try {
|
|
11623
11629
|
await c.function(c.data), s(d);
|
|
11624
11630
|
} catch (h) {
|
|
@@ -11677,7 +11683,7 @@ const ee = (a) => {
|
|
|
11677
11683
|
isInternal: !0
|
|
11678
11684
|
},
|
|
11679
11685
|
convertTo: {
|
|
11680
|
-
class: ee(
|
|
11686
|
+
class: ee(hn),
|
|
11681
11687
|
isInternal: !0
|
|
11682
11688
|
}
|
|
11683
11689
|
};
|
|
@@ -11899,14 +11905,14 @@ Wt.BLOK_SETTINGS_KEYS = /* @__PURE__ */ new Set([
|
|
|
11899
11905
|
"isInternal"
|
|
11900
11906
|
]);
|
|
11901
11907
|
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
|
|
11908
|
+
const Ai = `*,: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}}`, fo = 100;
|
|
11909
|
+
class Mi extends T {
|
|
11904
11910
|
constructor() {
|
|
11905
11911
|
super(...arguments), this.isMobile = !1, this.contentRectCache = null, this.resizeDebouncer = We(() => {
|
|
11906
11912
|
this.windowResize();
|
|
11907
11913
|
}, 200), this.selectionChangeDebounced = We(() => {
|
|
11908
11914
|
this.selectionChanged();
|
|
11909
|
-
},
|
|
11915
|
+
}, mn), this.documentTouchedListener = (t) => {
|
|
11910
11916
|
this.documentTouched(t);
|
|
11911
11917
|
};
|
|
11912
11918
|
}
|
|
@@ -11928,7 +11934,7 @@ class Ai extends T {
|
|
|
11928
11934
|
* Making main interface
|
|
11929
11935
|
*/
|
|
11930
11936
|
async prepare() {
|
|
11931
|
-
this.setIsMobile(), this.make(), this.loadStyles(),
|
|
11937
|
+
this.setIsMobile(), this.make(), this.loadStyles(), ti();
|
|
11932
11938
|
}
|
|
11933
11939
|
/**
|
|
11934
11940
|
* Toggle read-only state
|
|
@@ -11980,7 +11986,7 @@ class Ai extends T {
|
|
|
11980
11986
|
* Clean blok`s UI
|
|
11981
11987
|
*/
|
|
11982
11988
|
destroy() {
|
|
11983
|
-
this.nodes.holder.innerHTML = "", this.unbindReadOnlyInsensitiveListeners(),
|
|
11989
|
+
this.nodes.holder.innerHTML = "", this.unbindReadOnlyInsensitiveListeners(), ei();
|
|
11984
11990
|
}
|
|
11985
11991
|
/**
|
|
11986
11992
|
* Close all Blok's toolbars
|
|
@@ -11993,7 +11999,7 @@ class Ai extends T {
|
|
|
11993
11999
|
* Check for mobile mode and save the result
|
|
11994
12000
|
*/
|
|
11995
12001
|
setIsMobile() {
|
|
11996
|
-
const t = window.innerWidth <
|
|
12002
|
+
const t = window.innerWidth < gn;
|
|
11997
12003
|
t !== this.isMobile && this.eventsDispatcher.emit(yt, {
|
|
11998
12004
|
isEnabled: this.isMobile
|
|
11999
12005
|
}), this.isMobile = t;
|
|
@@ -12019,7 +12025,7 @@ class Ai extends T {
|
|
|
12019
12025
|
// Hide placeholder when toolbox is opened
|
|
12020
12026
|
"[&[data-blok-toolbox-opened=true]_[contentEditable=true][data-blok-placeholder]:focus]:before:!opacity-0",
|
|
12021
12027
|
...this.isRtl ? ["[direction:rtl]"] : []
|
|
12022
|
-
]), this.nodes.wrapper.setAttribute(m.interface,
|
|
12028
|
+
]), this.nodes.wrapper.setAttribute(m.interface, un), 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
12029
|
// Narrow mode: add right margin on non-mobile screens
|
|
12024
12030
|
"not-mobile:group-data-[blok-narrow=true]:mr-[theme(spacing.narrow-mode-right-padding)]",
|
|
12025
12031
|
// RTL narrow mode: add left margin instead
|
|
@@ -12038,7 +12044,7 @@ class Ai extends T {
|
|
|
12038
12044
|
return;
|
|
12039
12045
|
const e = g.make("style", null, {
|
|
12040
12046
|
id: t,
|
|
12041
|
-
textContent:
|
|
12047
|
+
textContent: Ai.toString()
|
|
12042
12048
|
});
|
|
12043
12049
|
this.config.style && !N(this.config.style) && this.config.style.nonce && e.setAttribute("nonce", this.config.style.nonce), g.prepend(document.head, e);
|
|
12044
12050
|
}
|
|
@@ -12114,7 +12120,7 @@ class Ai extends T {
|
|
|
12114
12120
|
*/
|
|
12115
12121
|
findBlockInHoverZone(t, e) {
|
|
12116
12122
|
const o = this.contentRect;
|
|
12117
|
-
if (!(this.isRtl ? t > o.right && t <= o.right +
|
|
12123
|
+
if (!(this.isRtl ? t > o.right && t <= o.right + fo : t < o.left && t >= o.left - fo))
|
|
12118
12124
|
return null;
|
|
12119
12125
|
for (const s of this.Blok.BlockManager.blocks) {
|
|
12120
12126
|
const i = s.holder.getBoundingClientRect();
|
|
@@ -12212,6 +12218,10 @@ class Ai extends T {
|
|
|
12212
12218
|
this.Blok.BlockSelection.disableNavigationMode(!1);
|
|
12213
12219
|
return;
|
|
12214
12220
|
}
|
|
12221
|
+
if (this.Blok.BlockSettings.opened) {
|
|
12222
|
+
this.Blok.BlockSettings.close();
|
|
12223
|
+
return;
|
|
12224
|
+
}
|
|
12215
12225
|
if (this.Blok.BlockSelection.anyBlockSelected) {
|
|
12216
12226
|
this.Blok.BlockSelection.clearSelection(t);
|
|
12217
12227
|
return;
|
|
@@ -12220,10 +12230,6 @@ class Ai extends T {
|
|
|
12220
12230
|
this.Blok.Toolbar.toolbox.close(), this.Blok.BlockManager.currentBlock && this.Blok.Caret.setToBlock(this.Blok.BlockManager.currentBlock, this.Blok.Caret.positions.END);
|
|
12221
12231
|
return;
|
|
12222
12232
|
}
|
|
12223
|
-
if (this.Blok.BlockSettings.opened) {
|
|
12224
|
-
this.Blok.BlockSettings.close();
|
|
12225
|
-
return;
|
|
12226
|
-
}
|
|
12227
12233
|
if (this.Blok.InlineToolbar.opened && this.Blok.InlineToolbar.hasNestedPopoverOpen) {
|
|
12228
12234
|
t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation(), this.Blok.InlineToolbar.closeNestedPopover();
|
|
12229
12235
|
return;
|
|
@@ -12330,8 +12336,8 @@ class Ai extends T {
|
|
|
12330
12336
|
const s = e.getAttribute("href");
|
|
12331
12337
|
if (!s)
|
|
12332
12338
|
return;
|
|
12333
|
-
const i =
|
|
12334
|
-
|
|
12339
|
+
const i = pn(s);
|
|
12340
|
+
fn(i);
|
|
12335
12341
|
}
|
|
12336
12342
|
/**
|
|
12337
12343
|
* Check if user clicks on the Blok's bottom zone:
|
|
@@ -12380,12 +12386,12 @@ class Ai extends T {
|
|
|
12380
12386
|
enableInputsEmptyMark() {
|
|
12381
12387
|
const t = (e) => {
|
|
12382
12388
|
const o = e.target;
|
|
12383
|
-
|
|
12389
|
+
mo(o);
|
|
12384
12390
|
};
|
|
12385
12391
|
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
12392
|
}
|
|
12387
12393
|
}
|
|
12388
|
-
const
|
|
12394
|
+
const Di = 30, Li = 200, Oi = 100, rt = class rt extends T {
|
|
12389
12395
|
constructor() {
|
|
12390
12396
|
super(...arguments), this.undoStack = [], this.redoStack = [], this.registeredShortcuts = [], this.debounceTimeout = null, this.isPerformingUndoRedo = !1, this.initialStateCaptured = !1;
|
|
12391
12397
|
}
|
|
@@ -12394,14 +12400,14 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12394
12400
|
*/
|
|
12395
12401
|
get maxHistoryLength() {
|
|
12396
12402
|
var t;
|
|
12397
|
-
return (t = this.config.maxHistoryLength) != null ? t :
|
|
12403
|
+
return (t = this.config.maxHistoryLength) != null ? t : Di;
|
|
12398
12404
|
}
|
|
12399
12405
|
/**
|
|
12400
12406
|
* Debounce time for batching changes
|
|
12401
12407
|
*/
|
|
12402
12408
|
get debounceTime() {
|
|
12403
12409
|
var t;
|
|
12404
|
-
return (t = this.config.historyDebounceTime) != null ? t :
|
|
12410
|
+
return (t = this.config.historyDebounceTime) != null ? t : Li;
|
|
12405
12411
|
}
|
|
12406
12412
|
/**
|
|
12407
12413
|
* Whether to use document-level shortcuts for undo/redo
|
|
@@ -12711,7 +12717,7 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12711
12717
|
* This helps ignore late-firing events after state restore
|
|
12712
12718
|
*/
|
|
12713
12719
|
cooldown() {
|
|
12714
|
-
return new Promise((t) => setTimeout(t,
|
|
12720
|
+
return new Promise((t) => setTimeout(t, Oi));
|
|
12715
12721
|
}
|
|
12716
12722
|
/**
|
|
12717
12723
|
* Captures current caret position for later restoration
|
|
@@ -12896,7 +12902,7 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12896
12902
|
* Emits history state changed event
|
|
12897
12903
|
*/
|
|
12898
12904
|
emitStateChanged() {
|
|
12899
|
-
this.eventsDispatcher.emit(
|
|
12905
|
+
this.eventsDispatcher.emit(Cn, {
|
|
12900
12906
|
canUndo: this.canUndo(),
|
|
12901
12907
|
canRedo: this.canRedo()
|
|
12902
12908
|
});
|
|
@@ -12914,49 +12920,49 @@ const Mi = 30, Di = 200, Li = 100, rt = class rt extends T {
|
|
|
12914
12920
|
};
|
|
12915
12921
|
rt.activeInstance = null;
|
|
12916
12922
|
let ke = rt;
|
|
12917
|
-
const
|
|
12923
|
+
const Ni = {
|
|
12918
12924
|
// 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:
|
|
12925
|
+
BlocksAPI: In,
|
|
12926
|
+
CaretAPI: An,
|
|
12927
|
+
EventsAPI: Mn,
|
|
12928
|
+
I18nAPI: Dn,
|
|
12929
|
+
API: Ln,
|
|
12930
|
+
InlineToolbarAPI: On,
|
|
12931
|
+
ListenersAPI: Nn,
|
|
12932
|
+
NotifierAPI: Pn,
|
|
12933
|
+
ReadOnlyAPI: Hn,
|
|
12934
|
+
SanitizerAPI: ts,
|
|
12935
|
+
SaverAPI: es,
|
|
12936
|
+
SelectionAPI: os,
|
|
12937
|
+
ToolsAPI: ns,
|
|
12938
|
+
StylesAPI: ss,
|
|
12939
|
+
ToolbarAPI: is,
|
|
12940
|
+
TooltipAPI: gs,
|
|
12941
|
+
UiAPI: ms,
|
|
12942
|
+
HistoryAPI: bs,
|
|
12937
12943
|
// Toolbar Modules
|
|
12938
|
-
BlockSettings:
|
|
12939
|
-
Toolbar:
|
|
12940
|
-
InlineToolbar:
|
|
12944
|
+
BlockSettings: Is,
|
|
12945
|
+
Toolbar: Os,
|
|
12946
|
+
InlineToolbar: Rs,
|
|
12941
12947
|
// Modules
|
|
12942
|
-
I18n:
|
|
12948
|
+
I18n: Ks,
|
|
12943
12949
|
BlockEvents: pe,
|
|
12944
|
-
BlockManager:
|
|
12945
|
-
BlockSelection:
|
|
12950
|
+
BlockManager: oi,
|
|
12951
|
+
BlockSelection: ni,
|
|
12946
12952
|
Caret: Me,
|
|
12947
|
-
CrossBlockSelection:
|
|
12948
|
-
DragManager:
|
|
12949
|
-
ModificationsObserver:
|
|
12953
|
+
CrossBlockSelection: ri,
|
|
12954
|
+
DragManager: ai,
|
|
12955
|
+
ModificationsObserver: li,
|
|
12950
12956
|
Paste: fe,
|
|
12951
|
-
ReadOnly:
|
|
12952
|
-
RectangleSelection:
|
|
12953
|
-
Renderer:
|
|
12954
|
-
Saver:
|
|
12957
|
+
ReadOnly: ci,
|
|
12958
|
+
RectangleSelection: di,
|
|
12959
|
+
Renderer: xi,
|
|
12960
|
+
Saver: Ti,
|
|
12955
12961
|
Tools: be,
|
|
12956
|
-
UI:
|
|
12962
|
+
UI: Mi,
|
|
12957
12963
|
History: ke
|
|
12958
12964
|
};
|
|
12959
|
-
class
|
|
12965
|
+
class Ri {
|
|
12960
12966
|
/**
|
|
12961
12967
|
* @param {BlokConfig} config - user configuration
|
|
12962
12968
|
*/
|
|
@@ -12979,7 +12985,7 @@ class Ni {
|
|
|
12979
12985
|
var l, c, d, h;
|
|
12980
12986
|
A(t) ? this.config = w({}, t) : this.config = {
|
|
12981
12987
|
holder: t
|
|
12982
|
-
}, this.config.holder == null && (this.config.holder = "blok"), this.config.logLevel == null && (this.config.logLevel =
|
|
12988
|
+
}, this.config.holder == null && (this.config.holder = "blok"), this.config.logLevel == null && (this.config.logLevel = bn.VERBOSE), kn(this.config.logLevel), this.config.defaultBlock = (l = this.config.defaultBlock) != null ? l : "paragraph";
|
|
12983
12989
|
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
12990
|
if (o && o !== "paragraph" && !n && !i) {
|
|
12985
12991
|
I(
|
|
@@ -13069,7 +13075,7 @@ class Ni {
|
|
|
13069
13075
|
* Make modules instances and save it to the @property this.moduleInstances
|
|
13070
13076
|
*/
|
|
13071
13077
|
constructModules() {
|
|
13072
|
-
Object.entries(
|
|
13078
|
+
Object.entries(Ni).forEach(([t, e]) => {
|
|
13073
13079
|
try {
|
|
13074
13080
|
this.moduleInstances[t] = new e({
|
|
13075
13081
|
config: this.configuration,
|
|
@@ -13133,7 +13139,7 @@ class Ni {
|
|
|
13133
13139
|
return e;
|
|
13134
13140
|
}
|
|
13135
13141
|
}
|
|
13136
|
-
const
|
|
13142
|
+
const _i = _t(), vt = class vt {
|
|
13137
13143
|
/** Blok version */
|
|
13138
13144
|
static get version() {
|
|
13139
13145
|
return _t();
|
|
@@ -13144,7 +13150,7 @@ const Fi = _t(), vt = class vt {
|
|
|
13144
13150
|
constructor(t) {
|
|
13145
13151
|
this.initialConfiguration = A(t) ? w({}, t) : t;
|
|
13146
13152
|
const e = A(t) && E(t.onReady) ? t.onReady : () => {
|
|
13147
|
-
}, o = new
|
|
13153
|
+
}, o = new Ri(t);
|
|
13148
13154
|
this.destroy = () => {
|
|
13149
13155
|
}, this.isReady = o.isReady.then(() => {
|
|
13150
13156
|
this.exportAPI(o), e();
|
|
@@ -13163,7 +13169,7 @@ const Fi = _t(), vt = class vt {
|
|
|
13163
13169
|
E(k.destroy) && k.destroy();
|
|
13164
13170
|
const B = k.listeners;
|
|
13165
13171
|
B && E(B.removeAll) && B.removeAll();
|
|
13166
|
-
}),
|
|
13172
|
+
}), fs();
|
|
13167
13173
|
for (const k in this)
|
|
13168
13174
|
Object.prototype.hasOwnProperty.call(this, k) && delete this[k];
|
|
13169
13175
|
Object.setPrototypeOf(this, null);
|
|
@@ -13231,9 +13237,9 @@ const Fi = _t(), vt = class vt {
|
|
|
13231
13237
|
}
|
|
13232
13238
|
};
|
|
13233
13239
|
vt.DATA_ATTR = m;
|
|
13234
|
-
let
|
|
13240
|
+
let go = vt;
|
|
13235
13241
|
export {
|
|
13236
|
-
|
|
13237
|
-
|
|
13238
|
-
|
|
13242
|
+
go as B,
|
|
13243
|
+
Fi as e,
|
|
13244
|
+
_i as v
|
|
13239
13245
|
};
|