@jackuait/blok 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blok.mjs +2 -2
- package/dist/chunks/{blok-Ufr5cPq-.mjs → blok-3RuPZd3G.mjs} +1207 -1174
- package/dist/chunks/{constants-DT17zmu_.mjs → constants-BkelccB1.mjs} +185 -164
- package/dist/chunks/{tools-CJIETS-H.mjs → tools-rsbC2UUN.mjs} +31 -12
- package/dist/full.mjs +3 -3
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +2 -2
- package/package.json +1 -1
- package/src/components/inline-tools/inline-tool-marker.ts +11 -0
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +1 -9
- package/src/components/modules/caret.ts +13 -1
- package/src/components/modules/drag/utils/drag.constants.ts +1 -1
- package/src/components/modules/paste/google-docs-preprocessor.ts +96 -38
- package/src/components/modules/toolbar/blockSettings.ts +1 -1
- package/src/components/modules/toolbar/index.ts +10 -1
- package/src/components/modules/toolbar/inline/index.ts +24 -2
- package/src/components/modules/toolbar/styles.ts +1 -1
- package/src/components/selection/cursor.ts +7 -0
- package/src/components/ui/toolbox.ts +14 -0
- package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -1
- package/src/components/utils/popover/components/search-input/search-input.const.ts +1 -0
- package/src/components/utils/popover/components/search-input/search-input.ts +32 -1
- package/src/components/utils/popover/popover-desktop.ts +9 -1
- package/src/components/utils/popover/popover-inline.ts +8 -0
- package/src/styles/main.css +39 -11
- package/src/tools/paragraph/index.ts +3 -5
- package/src/tools/table/index.ts +70 -0
- package/src/tools/table/table-cell-blocks.ts +15 -3
- package/src/tools/table/table-cell-clipboard.ts +32 -5
|
@@ -137,7 +137,7 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
137
137
|
RIGHT: 2,
|
|
138
138
|
BACKWARD: 3,
|
|
139
139
|
FORWARD: 4
|
|
140
|
-
}, g = () => "0.7.
|
|
140
|
+
}, g = () => "0.7.2", _ = /* @__PURE__ */ function(e) {
|
|
141
141
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
142
142
|
}({}), v = (e, t, n = "log", r, i = "color: inherit") => {
|
|
143
143
|
let a = typeof console > "u" ? void 0 : console;
|
|
@@ -776,7 +776,7 @@ var T = () => {
|
|
|
776
776
|
}, Je = class {
|
|
777
777
|
static setCursor(e, t = 0) {
|
|
778
778
|
let n = document.createRange(), r = window.getSelection(), i = O.isNativeInput(e);
|
|
779
|
-
return i && !O.canSetCaret(e) ? e.getBoundingClientRect() : i ? (e.focus(), e.selectionStart = t, e.selectionEnd = t, e.getBoundingClientRect()) : (n.setStart(e, t), n.setEnd(e, t), r ? (r.removeAllRanges(), r.addRange(n), n.getBoundingClientRect()) : e.getBoundingClientRect());
|
|
779
|
+
return i && !O.canSetCaret(e) ? e.getBoundingClientRect() : i ? (e.focus(), e.selectionStart = t, e.selectionEnd = t, e.getBoundingClientRect()) : (n.setStart(e, t), n.setEnd(e, t), r ? (r.removeAllRanges(), r.addRange(n), O.isContentEditable(e) && document.activeElement !== e && e.focus(), n.getBoundingClientRect()) : e.getBoundingClientRect());
|
|
780
780
|
}
|
|
781
781
|
static isRangeInsideContainer(e) {
|
|
782
782
|
let t = M.getRange();
|
|
@@ -1209,9 +1209,9 @@ var Xe = class {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return r;
|
|
1211
1211
|
}, ct = (e, t, n) => {
|
|
1212
|
-
let r =
|
|
1213
|
-
return r ?
|
|
1214
|
-
}, lt = (e) => x(e) || ne(e) || b(e), ut = (e) => e ? nt.test(e) : !1,
|
|
1212
|
+
let r = vt(t, n);
|
|
1213
|
+
return r ? dt(bt(I(e, r), r)) : C(n) ? dt(e) : dt(bt(I(e, n), n));
|
|
1214
|
+
}, lt = (e) => x(e) || ne(e) || b(e), ut = (e) => e ? nt.test(e) : !1, dt = (e) => {
|
|
1215
1215
|
if (!e || e.indexOf("<") === -1) return e;
|
|
1216
1216
|
if (typeof document < "u") {
|
|
1217
1217
|
let t = document.createElement("template");
|
|
@@ -1222,41 +1222,41 @@ var Xe = class {
|
|
|
1222
1222
|
}), t.innerHTML;
|
|
1223
1223
|
}
|
|
1224
1224
|
return e.replace(rt, "");
|
|
1225
|
-
},
|
|
1225
|
+
}, ft = (e) => {
|
|
1226
1226
|
if (C(e)) return {};
|
|
1227
1227
|
let t = {};
|
|
1228
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
1228
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = L(e[n]));
|
|
1229
1229
|
return t;
|
|
1230
|
-
},
|
|
1230
|
+
}, pt = (e) => function(t) {
|
|
1231
1231
|
let n = e.call(this, t);
|
|
1232
1232
|
return n == null ? {} : n;
|
|
1233
|
-
},
|
|
1233
|
+
}, mt = new Set([
|
|
1234
1234
|
"class",
|
|
1235
1235
|
"id",
|
|
1236
1236
|
"title",
|
|
1237
1237
|
"role",
|
|
1238
1238
|
"dir",
|
|
1239
1239
|
"lang"
|
|
1240
|
-
]),
|
|
1240
|
+
]), ht = (e) => {
|
|
1241
1241
|
let t = e.toLowerCase();
|
|
1242
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1243
|
-
},
|
|
1242
|
+
return t.startsWith("data-") || t.startsWith("aria-") || mt.has(t);
|
|
1243
|
+
}, gt = (e) => {
|
|
1244
1244
|
let t = {};
|
|
1245
1245
|
return Array.from(e.attributes).forEach((e) => {
|
|
1246
|
-
|
|
1246
|
+
ht(e.name) && (t[e.name] = !0);
|
|
1247
1247
|
}), t;
|
|
1248
|
-
},
|
|
1249
|
-
if (C(e)) return
|
|
1248
|
+
}, L = (e) => e === !0 ? pt(gt) : e === !1 ? !1 : b(e) ? pt(e) : S(e) ? e : x(e) ? E({}, e) : e, _t = (e, t) => {
|
|
1249
|
+
if (C(e)) return ft(t);
|
|
1250
1250
|
let n = {};
|
|
1251
1251
|
for (let r in e) {
|
|
1252
1252
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1253
1253
|
let i = e[r], a = t ? t[r] : void 0;
|
|
1254
1254
|
if (b(a)) {
|
|
1255
|
-
n[r] =
|
|
1255
|
+
n[r] = L(a);
|
|
1256
1256
|
continue;
|
|
1257
1257
|
}
|
|
1258
1258
|
if (b(i)) {
|
|
1259
|
-
n[r] =
|
|
1259
|
+
n[r] = L(i);
|
|
1260
1260
|
continue;
|
|
1261
1261
|
}
|
|
1262
1262
|
if (x(i) && x(a)) {
|
|
@@ -1264,17 +1264,17 @@ var Xe = class {
|
|
|
1264
1264
|
continue;
|
|
1265
1265
|
}
|
|
1266
1266
|
if (a !== void 0) {
|
|
1267
|
-
n[r] =
|
|
1267
|
+
n[r] = L(a);
|
|
1268
1268
|
continue;
|
|
1269
1269
|
}
|
|
1270
|
-
n[r] =
|
|
1270
|
+
n[r] = L(i);
|
|
1271
1271
|
}
|
|
1272
1272
|
if (!t) return n;
|
|
1273
|
-
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] =
|
|
1273
|
+
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] = L(t[e])));
|
|
1274
1274
|
return n;
|
|
1275
|
-
},
|
|
1275
|
+
}, vt = (e, t) => x(e) && !b(e) ? _t(t, e) : e === !1 ? {} : C(t) ? null : ft(t), yt = (e, ...t) => {
|
|
1276
1276
|
if (C(e)) return Object.assign({}, ...t);
|
|
1277
|
-
let n =
|
|
1277
|
+
let n = ft(e);
|
|
1278
1278
|
return t.forEach((e) => {
|
|
1279
1279
|
if (e) for (let t in e) {
|
|
1280
1280
|
if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
|
|
@@ -1287,18 +1287,18 @@ var Xe = class {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
if (!(r === !0 && b(i))) {
|
|
1289
1289
|
if (r === !0) {
|
|
1290
|
-
n[t] = x(i) && !b(i) ? E({}, i) :
|
|
1290
|
+
n[t] = x(i) && !b(i) ? E({}, i) : L(r);
|
|
1291
1291
|
continue;
|
|
1292
1292
|
}
|
|
1293
1293
|
if (x(r) && x(i)) {
|
|
1294
1294
|
n[t] = E({}, i, r);
|
|
1295
1295
|
continue;
|
|
1296
1296
|
}
|
|
1297
|
-
n[t] =
|
|
1297
|
+
n[t] = L(r);
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
}), n;
|
|
1301
|
-
},
|
|
1301
|
+
}, bt = (e, t) => {
|
|
1302
1302
|
if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
|
|
1303
1303
|
let n = Object.entries(t).filter(([, e]) => b(e));
|
|
1304
1304
|
if (n.length === 0) return e;
|
|
@@ -1315,7 +1315,7 @@ var Xe = class {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
});
|
|
1317
1317
|
}), r.innerHTML;
|
|
1318
|
-
},
|
|
1318
|
+
}, xt, St = 10, Ct = "tooltip", wt = "aria-hidden", Tt = "false", Et = "true", Dt = "visibility", Ot = "visible", kt = "hidden", At = class e {
|
|
1319
1319
|
get CSS() {
|
|
1320
1320
|
return {
|
|
1321
1321
|
tooltip: n("absolute z-overlay top-0 left-0", "bg-tooltip-bg opacity-0", "select-none pointer-events-none", "rounded-lg shadow-tooltip", "before:content-[''] before:absolute before:inset-0 before:bg-tooltip-bg before:-z-10 before:rounded-lg", "mobile:hidden").split(" "),
|
|
@@ -1330,7 +1330,7 @@ var Xe = class {
|
|
|
1330
1330
|
this.nodes = {
|
|
1331
1331
|
wrapper: null,
|
|
1332
1332
|
content: null
|
|
1333
|
-
}, this.showed = !1, this.offsetTop =
|
|
1333
|
+
}, this.showed = !1, this.offsetTop = St, this.offsetLeft = St, this.offsetRight = St, this.showingTimeout = null, this.ariaObserver = null, this.handleWindowScroll = () => {
|
|
1334
1334
|
this.showed && this.hide();
|
|
1335
1335
|
}, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
|
|
1336
1336
|
}
|
|
@@ -1406,7 +1406,7 @@ var Xe = class {
|
|
|
1406
1406
|
updateTooltipVisibility() {
|
|
1407
1407
|
if (!this.nodes.wrapper) return;
|
|
1408
1408
|
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
|
|
1409
|
-
this.nodes.wrapper.style.setProperty(
|
|
1409
|
+
this.nodes.wrapper.style.setProperty(Dt, t ? Ot : kt, t ? "" : "important"), this.nodes.wrapper.setAttribute(wt, t ? Tt : Et), this.nodes.wrapper.setAttribute("data-blok-shown", t ? "true" : "false");
|
|
1410
1410
|
}
|
|
1411
1411
|
watchTooltipVisibility() {
|
|
1412
1412
|
var e;
|
|
@@ -1418,7 +1418,7 @@ var Xe = class {
|
|
|
1418
1418
|
}));
|
|
1419
1419
|
}
|
|
1420
1420
|
ensureTooltipAttributes() {
|
|
1421
|
-
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(f.interface) || this.nodes.wrapper.getAttribute(f.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(f.interface, Ge), this.nodes.wrapper.setAttribute("role",
|
|
1421
|
+
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(f.interface) || this.nodes.wrapper.getAttribute(f.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(f.interface, Ge), this.nodes.wrapper.setAttribute("role", Ct), this.watchTooltipVisibility());
|
|
1422
1422
|
}
|
|
1423
1423
|
placeBottom(e, t) {
|
|
1424
1424
|
var n;
|
|
@@ -1460,16 +1460,16 @@ var Xe = class {
|
|
|
1460
1460
|
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
1461
1461
|
}
|
|
1462
1462
|
};
|
|
1463
|
-
|
|
1464
|
-
var
|
|
1465
|
-
|
|
1466
|
-
},
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
|
|
1470
|
-
}, Nt = () => {
|
|
1471
|
-
z().destroy();
|
|
1463
|
+
xt = At, xt.instance = null;
|
|
1464
|
+
var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
1465
|
+
R().show(e, t, n == null ? {} : n);
|
|
1466
|
+
}, Mt = () => {
|
|
1467
|
+
R().hide();
|
|
1468
|
+
}, Nt = (e, t, n) => {
|
|
1469
|
+
R().onHover(e, t, n == null ? {} : n);
|
|
1472
1470
|
}, Pt = () => {
|
|
1471
|
+
R().destroy();
|
|
1472
|
+
}, Ft = () => {
|
|
1473
1473
|
var e, t;
|
|
1474
1474
|
let n = window.getSelection();
|
|
1475
1475
|
if (n === null) return [null, 0];
|
|
@@ -1480,7 +1480,7 @@ var z = () => kt.getInstance(), At = (e, t, n) => {
|
|
|
1480
1480
|
if (a !== void 0) return [a, 0];
|
|
1481
1481
|
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1482
1482
|
return [o, s === null ? 0 : s.length];
|
|
1483
|
-
},
|
|
1483
|
+
}, It = (e) => {
|
|
1484
1484
|
var t;
|
|
1485
1485
|
let n = window.getSelection();
|
|
1486
1486
|
if (n === null || n.rangeCount === 0) return 0;
|
|
@@ -1488,7 +1488,7 @@ var z = () => kt.getInstance(), At = (e, t, n) => {
|
|
|
1488
1488
|
if (i == null) return 0;
|
|
1489
1489
|
let a = document.createRange();
|
|
1490
1490
|
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1491
|
-
},
|
|
1491
|
+
}, Lt = (e, t, n, r) => {
|
|
1492
1492
|
let i = document.createRange();
|
|
1493
1493
|
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1494
1494
|
let a = i.cloneContents(), o = document.createElement("div");
|
|
@@ -1500,23 +1500,23 @@ var z = () => kt.getInstance(), At = (e, t, n) => {
|
|
|
1500
1500
|
o.style.position = "absolute", o.style.visibility = "hidden", o.style.height = "auto", o.style.width = "auto", o.style.whiteSpace = window.getComputedStyle(e).whiteSpace, document.body.appendChild(o);
|
|
1501
1501
|
let u = o.getBoundingClientRect().width;
|
|
1502
1502
|
return document.body.removeChild(o), !(u > 0 || !Te(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1503
|
-
},
|
|
1503
|
+
}, Rt = (e) => {
|
|
1504
1504
|
var t;
|
|
1505
1505
|
let n = O.getDeepestNode(e);
|
|
1506
1506
|
if (n === null || O.isEmpty(e)) return !0;
|
|
1507
1507
|
if (O.isNativeInput(n)) return n.selectionEnd === 0;
|
|
1508
1508
|
if (O.isEmpty(e)) return !0;
|
|
1509
|
-
let [r, i] =
|
|
1509
|
+
let [r, i] = Ft();
|
|
1510
1510
|
if (r === null) return !1;
|
|
1511
1511
|
let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
|
|
1512
|
-
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 :
|
|
1513
|
-
},
|
|
1512
|
+
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : Lt(e, r, i, "left");
|
|
1513
|
+
}, zt = (e) => {
|
|
1514
1514
|
let t = O.getDeepestNode(e, !0);
|
|
1515
1515
|
if (t === null) return !0;
|
|
1516
1516
|
if (O.isNativeInput(t)) return t.selectionEnd === t.value.length;
|
|
1517
|
-
let [n, r] =
|
|
1518
|
-
return n === null ? !1 :
|
|
1519
|
-
},
|
|
1517
|
+
let [n, r] = Ft();
|
|
1518
|
+
return n === null ? !1 : Lt(e, n, r, "right");
|
|
1519
|
+
}, Bt, z = class e {
|
|
1520
1520
|
constructor(e, t) {
|
|
1521
1521
|
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1522
1522
|
}
|
|
@@ -1549,13 +1549,13 @@ var z = () => kt.getInstance(), At = (e, t, n) => {
|
|
|
1549
1549
|
return O.canSetCaret(this.items[i]) && ae(() => et.setCursor(this.items[i]), 50)(), this.items[i].classList.add(this.focusedCssClass), this.items[i].setAttribute("data-blok-focused", "true"), i;
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
|
-
|
|
1552
|
+
Bt = z, Bt.directions = {
|
|
1553
1553
|
RIGHT: "right",
|
|
1554
1554
|
LEFT: "left"
|
|
1555
1555
|
};
|
|
1556
1556
|
//#endregion
|
|
1557
1557
|
//#region src/components/flipper.ts
|
|
1558
|
-
var
|
|
1558
|
+
var Vt = class e {
|
|
1559
1559
|
get isActivated() {
|
|
1560
1560
|
return this.activated;
|
|
1561
1561
|
}
|
|
@@ -1588,7 +1588,7 @@ var Bt = class e {
|
|
|
1588
1588
|
break;
|
|
1589
1589
|
case null: break;
|
|
1590
1590
|
}
|
|
1591
|
-
}, this.iterator = new
|
|
1591
|
+
}, this.iterator = new z(t.items || [], (n = t.focusedItemClass) == null ? "" : n), this.activateCallback = t.activateCallback, this.allowedKeys = t.allowedKeys || e.usedKeys, this.handleContentEditableTargets = (r = t.handleContentEditableTargets) == null ? !1 : r, this.onArrowLeftCallback = t.onArrowLeft;
|
|
1592
1592
|
}
|
|
1593
1593
|
static get usedKeys() {
|
|
1594
1594
|
return [
|
|
@@ -1677,16 +1677,16 @@ var Bt = class e {
|
|
|
1677
1677
|
return this.handleContentEditableTargets;
|
|
1678
1678
|
}
|
|
1679
1679
|
handleTabPress(e) {
|
|
1680
|
-
let t = e.shiftKey ?
|
|
1680
|
+
let t = e.shiftKey ? z.directions.LEFT : z.directions.RIGHT;
|
|
1681
1681
|
if (this.skipNextTabFocus) {
|
|
1682
1682
|
this.skipNextTabFocus = !1;
|
|
1683
1683
|
return;
|
|
1684
1684
|
}
|
|
1685
1685
|
switch (t) {
|
|
1686
|
-
case
|
|
1686
|
+
case z.directions.RIGHT:
|
|
1687
1687
|
this.flipRight();
|
|
1688
1688
|
break;
|
|
1689
|
-
case
|
|
1689
|
+
case z.directions.LEFT:
|
|
1690
1690
|
this.flipLeft();
|
|
1691
1691
|
break;
|
|
1692
1692
|
}
|
|
@@ -1715,7 +1715,7 @@ var Bt = class e {
|
|
|
1715
1715
|
let n = e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement, r = t.key === "Tab" || t.key === "ArrowUp" || t.key === "ArrowDown" || t.key === "Enter" || t.key === "ArrowRight" || t.key === "ArrowLeft", i = e.getAttribute("data-blok-flipper-navigation-target") === "true" && r, a = e.isContentEditable, o = e.closest("[data-blok-link-tool-input-opened=\"true\"]") !== null, s = a && !this.handleContentEditableTargets;
|
|
1716
1716
|
return n && !i || s || o;
|
|
1717
1717
|
}
|
|
1718
|
-
},
|
|
1718
|
+
}, Ht = [
|
|
1719
1719
|
{
|
|
1720
1720
|
name: "gray",
|
|
1721
1721
|
text: "#787774",
|
|
@@ -1769,7 +1769,7 @@ var Bt = class e {
|
|
|
1769
1769
|
];
|
|
1770
1770
|
//#endregion
|
|
1771
1771
|
//#region src/components/utils/color-mapping.ts
|
|
1772
|
-
function
|
|
1772
|
+
function Ut(e, t, n) {
|
|
1773
1773
|
let r = t / 100, i = n / 100;
|
|
1774
1774
|
if (r === 0) {
|
|
1775
1775
|
let e = Math.round(i * 255);
|
|
@@ -1789,7 +1789,7 @@ function Ht(e, t, n) {
|
|
|
1789
1789
|
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1790
1790
|
];
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function Wt(e) {
|
|
1793
1793
|
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1794
1794
|
if (t) return [
|
|
1795
1795
|
parseInt(t[1], 16),
|
|
@@ -1821,10 +1821,10 @@ function Ut(e) {
|
|
|
1821
1821
|
Number(a[3])
|
|
1822
1822
|
];
|
|
1823
1823
|
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1824
|
-
return o ?
|
|
1824
|
+
return o ? Ut(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1825
1825
|
}
|
|
1826
|
-
var
|
|
1827
|
-
function
|
|
1826
|
+
var Gt = .1;
|
|
1827
|
+
function Kt(e) {
|
|
1828
1828
|
let t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
|
|
1829
1829
|
if (i === a) return [
|
|
1830
1830
|
0,
|
|
@@ -1838,8 +1838,8 @@ function Gt(e) {
|
|
|
1838
1838
|
o
|
|
1839
1839
|
];
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1842
|
-
let n = e[1] <
|
|
1841
|
+
function qt(e, t) {
|
|
1842
|
+
let n = e[1] < Gt, r = t[1] < Gt;
|
|
1843
1843
|
if (n && r) {
|
|
1844
1844
|
let n = Math.abs(e[2] - t[2]);
|
|
1845
1845
|
return n * n;
|
|
@@ -1848,14 +1848,14 @@ function Kt(e, t) {
|
|
|
1848
1848
|
let i = Math.abs(e[0] - t[0]), a = Math.min(i, 360 - i) / 180, o = Math.abs(e[1] - t[1]), s = Math.abs(e[2] - t[2]);
|
|
1849
1849
|
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1850
1850
|
}
|
|
1851
|
-
function
|
|
1852
|
-
let n =
|
|
1851
|
+
function B(e, t) {
|
|
1852
|
+
let n = Wt(e);
|
|
1853
1853
|
if (n === null) return e;
|
|
1854
|
-
let r =
|
|
1855
|
-
return
|
|
1856
|
-
let i =
|
|
1854
|
+
let r = Kt(n);
|
|
1855
|
+
return Ht.reduce((e, n) => {
|
|
1856
|
+
let i = Wt(n[t]);
|
|
1857
1857
|
if (i === null) return e;
|
|
1858
|
-
let a =
|
|
1858
|
+
let a = qt(r, Kt(i));
|
|
1859
1859
|
return a < e.distance ? {
|
|
1860
1860
|
color: n[t],
|
|
1861
1861
|
distance: a
|
|
@@ -1867,11 +1867,11 @@ function V(e, t) {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
//#endregion
|
|
1869
1869
|
//#region src/tools/table/table-cell-clipboard.ts
|
|
1870
|
-
var
|
|
1871
|
-
function
|
|
1870
|
+
var V = "data-blok-table-cells";
|
|
1871
|
+
function Jt(e, t, n) {
|
|
1872
1872
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function Yt(e) {
|
|
1875
1875
|
if (e.length === 0) return {
|
|
1876
1876
|
rows: 0,
|
|
1877
1877
|
cols: 0,
|
|
@@ -1888,20 +1888,28 @@ function Jt(e) {
|
|
|
1888
1888
|
cells: s
|
|
1889
1889
|
};
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function Xt(e) {
|
|
1892
1892
|
let { data: t } = e;
|
|
1893
1893
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
|
|
1897
|
-
|
|
1895
|
+
function Zt(e) {
|
|
1896
|
+
var t;
|
|
1897
|
+
let n = document.createElement("div");
|
|
1898
|
+
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
1899
|
+
}
|
|
1900
|
+
function Qt(e) {
|
|
1901
|
+
return Zt(Xt(e));
|
|
1902
|
+
}
|
|
1903
|
+
function $t(e) {
|
|
1904
|
+
return `<table ${V}='${JSON.stringify(e).replace(/'/g, "'")}'>${e.cells.map((e) => `<tr>${e.map((e) => {
|
|
1905
|
+
let t = e.blocks.map(Xt).join(" "), n = [e.color ? `background-color: ${e.color}` : "", e.textColor ? `color: ${e.textColor}` : ""].filter(Boolean).join("; ");
|
|
1898
1906
|
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
1899
1907
|
}).join("")}</tr>`).join("")}</table>`;
|
|
1900
1908
|
}
|
|
1901
|
-
function
|
|
1902
|
-
return e.cells.map((e) => e.map((e) => e.blocks.map(
|
|
1909
|
+
function en(e) {
|
|
1910
|
+
return e.cells.map((e) => e.map((e) => e.blocks.map(Qt).join(" ")).join(" ")).join("\n");
|
|
1903
1911
|
}
|
|
1904
|
-
var
|
|
1912
|
+
var tn = new Set(["color", "background-color"]), nn = {
|
|
1905
1913
|
b: !0,
|
|
1906
1914
|
strong: !0,
|
|
1907
1915
|
i: !0,
|
|
@@ -1910,40 +1918,40 @@ var Qt = new Set(["color", "background-color"]), $t = {
|
|
|
1910
1918
|
a: { href: !0 },
|
|
1911
1919
|
mark: (e) => {
|
|
1912
1920
|
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
1913
|
-
for (let e of n)
|
|
1921
|
+
for (let e of n) tn.has(e) || t.removeProperty(e);
|
|
1914
1922
|
return t.length > 0 ? { style: !0 } : {};
|
|
1915
1923
|
}
|
|
1916
1924
|
};
|
|
1917
|
-
function
|
|
1925
|
+
function H(e) {
|
|
1918
1926
|
let t = e.replace(/\s/g, "");
|
|
1919
1927
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
1920
1928
|
}
|
|
1921
|
-
function
|
|
1929
|
+
function rn(e) {
|
|
1922
1930
|
let t = e.cloneNode(!0);
|
|
1923
1931
|
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
1924
1932
|
var n, r, i;
|
|
1925
|
-
let t = (n = e.getAttribute("style")) == null ? "" : n, a = /font-weight\s*:\s*(700|bold)/i.test(t), o = /font-style\s*:\s*italic/i.test(t), s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), c = /background-color\s*:\s*([^;]+)/i.exec(t), l = s == null || (r = s[1]) == null ? void 0 : r.trim(), u = c == null || (i = c[1]) == null ? void 0 : i.trim(), d = l !== void 0 && !
|
|
1933
|
+
let t = (n = e.getAttribute("style")) == null ? "" : n, a = /font-weight\s*:\s*(700|bold)/i.test(t), o = /font-style\s*:\s*italic/i.test(t), s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), c = /background-color\s*:\s*([^;]+)/i.exec(t), l = s == null || (r = s[1]) == null ? void 0 : r.trim(), u = c == null || (i = c[1]) == null ? void 0 : i.trim(), d = l !== void 0 && !H(l), f = u !== void 0 && u !== "transparent";
|
|
1926
1934
|
if (!a && !o && !d && !f) continue;
|
|
1927
|
-
let p = d ?
|
|
1935
|
+
let p = d ? B(l, "text") : "", m = f ? B(u, "bg") : "", h = [d ? `color: ${p}` : "", Jt(f, d, m)].filter(Boolean).join("; "), g = e.innerHTML, _ = h ? `<mark style="${h};">${g}</mark>` : g, v = o ? `<i>${_}</i>` : _, ee = a ? `<b>${v}</b>` : v;
|
|
1928
1936
|
e.replaceWith(document.createRange().createContextualFragment(ee));
|
|
1929
1937
|
}
|
|
1930
1938
|
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
1931
1939
|
var a, o, s;
|
|
1932
|
-
let t = (a = e.getAttribute("style")) == null ? "" : a, n = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), r = /background-color\s*:\s*([^;]+)/i.exec(t), i = n == null || (o = n[1]) == null ? void 0 : o.trim(), c = r == null || (s = r[1]) == null ? void 0 : s.trim(), l = i !== void 0 && !
|
|
1940
|
+
let t = (a = e.getAttribute("style")) == null ? "" : a, n = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), r = /background-color\s*:\s*([^;]+)/i.exec(t), i = n == null || (o = n[1]) == null ? void 0 : o.trim(), c = r == null || (s = r[1]) == null ? void 0 : s.trim(), l = i !== void 0 && !H(i) && i !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit";
|
|
1933
1941
|
if (!l && !u) continue;
|
|
1934
|
-
let d = l ?
|
|
1942
|
+
let d = l ? B(i, "text") : "", f = u ? B(c, "bg") : "", p = [l ? `color: ${d}` : "", Jt(u, l, f)].filter(Boolean).join("; "), m = e;
|
|
1935
1943
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
1936
1944
|
}
|
|
1937
1945
|
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
1938
1946
|
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
1939
1947
|
e.replaceWith(t);
|
|
1940
1948
|
}
|
|
1941
|
-
return I(t.innerHTML,
|
|
1949
|
+
return I(t.innerHTML, nn).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
1942
1950
|
}
|
|
1943
|
-
function
|
|
1951
|
+
function an(e) {
|
|
1944
1952
|
if (!e) return null;
|
|
1945
1953
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
1946
|
-
if (!t || t.hasAttribute(
|
|
1954
|
+
if (!t || t.hasAttribute(V)) return null;
|
|
1947
1955
|
let n = t.querySelectorAll("tr");
|
|
1948
1956
|
if (n.length === 0) return null;
|
|
1949
1957
|
let r = [];
|
|
@@ -1951,16 +1959,16 @@ function tn(e) {
|
|
|
1951
1959
|
let t = e.querySelectorAll("td, th"), n = [];
|
|
1952
1960
|
t.forEach((e) => {
|
|
1953
1961
|
var t;
|
|
1954
|
-
let r =
|
|
1962
|
+
let r = rn(e).split(/<br\s*\/?>/i).map((e) => e.trim()).filter(Boolean), i = { blocks: r.length > 0 ? r.map((e) => ({
|
|
1955
1963
|
tool: "paragraph",
|
|
1956
1964
|
data: { text: e }
|
|
1957
1965
|
})) : [{
|
|
1958
1966
|
tool: "paragraph",
|
|
1959
1967
|
data: { text: "" }
|
|
1960
1968
|
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
1961
|
-
o != null && o[1] && (i.color =
|
|
1969
|
+
o != null && o[1] && (i.color = B(o[1].trim(), "bg"));
|
|
1962
1970
|
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
1963
|
-
s != null && s[1] && !
|
|
1971
|
+
s != null && s[1] && !H(s[1].trim()) && (i.textColor = B(s[1].trim(), "text")), n.push(i);
|
|
1964
1972
|
}), r.push(n);
|
|
1965
1973
|
});
|
|
1966
1974
|
let i = Math.max(0, ...r.map((e) => e.length));
|
|
@@ -1975,14 +1983,14 @@ function tn(e) {
|
|
|
1975
1983
|
cells: r
|
|
1976
1984
|
};
|
|
1977
1985
|
}
|
|
1978
|
-
function
|
|
1979
|
-
let t = RegExp(`${
|
|
1986
|
+
function on(e) {
|
|
1987
|
+
let t = RegExp(`${V}='([^']*)'|${V}="([^"]*)"`, "s").exec(e);
|
|
1980
1988
|
if (!t) return null;
|
|
1981
1989
|
try {
|
|
1982
1990
|
var n;
|
|
1983
1991
|
let e = (n = t[1]) == null ? t[2] : n;
|
|
1984
1992
|
if (e === void 0) return null;
|
|
1985
|
-
let r = e.replace(/'/g, "'").replace(/"/g, "\"");
|
|
1993
|
+
let r = e.replace(/'/g, "'").replace(/"/g, "\"").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1986
1994
|
return JSON.parse(r);
|
|
1987
1995
|
} catch (e) {
|
|
1988
1996
|
return null;
|
|
@@ -1990,24 +1998,24 @@ function nn(e) {
|
|
|
1990
1998
|
}
|
|
1991
1999
|
//#endregion
|
|
1992
2000
|
//#region src/components/icons/index.ts
|
|
1993
|
-
var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m5 15 10-10m0 10L5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", an = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M5.5 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C11.702 5.31607 11.0759 5 10.4231 5H5.5v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H5.5v-6Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", on = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8.5 5h6m-10 12h6m1-12-4 12\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", sn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M6.5 14L10 5l3.5 9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M7.5 11.5h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <rect x=\"4.5\" y=\"16\" width=\"11\" height=\"1.5\" rx=\"0.75\" fill=\"currentColor\"/>\n</svg>\n", ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14.5 6.5l2-2-2-2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16.5 4.5h-4a5 5 0 0 0-5 5v1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5.5 13.5l-2 2 2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 15.5h4a5 5 0 0 0 5-5v-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"7.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 10h11M10 4.5v11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m12 5-5 5 5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", pn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"9\" cy=\"9\" r=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"m12.5 12.5 3.5 3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", hn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", _n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Sn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4 3 16h14Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 8.5v3.5m0 2v.01\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 3l3 2-3 2M9 5h8M6 10h11M6 15h11\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8 5h9M8 10h9M8 15h9\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n />\n <circle cx=\"4\" cy=\"5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"15\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", Tn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 5h9M8 10h9M8 15h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <text x=\"4\" y=\"6\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">1</text>\n <text x=\"4\" y=\"11\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">2</text>\n <text x=\"4\" y=\"16\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">3</text>\n</svg>\n", En = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", On = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", An = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4l-3 3m3-3l3 3M10 4v7M5 16h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 16l-3-3m3 3l3-3M10 16V9M5 4h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10l3-3M4 10l3 3M4 10h7M16 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Pn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"7\" y=\"7\" width=\"9\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 6.5h11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M6.5 6.5l.5 8.5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.5-8.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 9.5v3.5M11.5 9.5v3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", In = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m3.5 5 2-1.5V15\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m7 10h-3c0-3 3-2.25 3-4.5 0-1.125-1.5-1.875-3-.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Rn = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <rect x=\"3\" y=\"3\" width=\"14\" height=\"14\" rx=\"2\"/>\n <line x1=\"5\" y1=\"8\" x2=\"15\" y2=\"8\"/>\n <line x1=\"5\" y1=\"11\" x2=\"15\" y2=\"11\"/>\n <line x1=\"5\" y1=\"14\" x2=\"11\" y2=\"14\"/>\n</svg>", zn = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <rect x=\"1\" y=\"3\" width=\"18\" height=\"14\" rx=\"2\"/>\n <line x1=\"3\" y1=\"8\" x2=\"17\" y2=\"8\"/>\n <line x1=\"3\" y1=\"11\" x2=\"17\" y2=\"11\"/>\n <line x1=\"3\" y1=\"14\" x2=\"17\" y2=\"14\"/>\n</svg>", Bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11 8.5c1.25-.75 2.5-.25 2.5.75 0 .75-1 1.25-1 1.25s1 .5 1 1.25c0 1-1.25 1.5-2.5.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", W = {
|
|
2001
|
+
var sn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m5 15 10-10m0 10L5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M5.5 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C11.702 5.31607 11.0759 5 10.4231 5H5.5v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H5.5v-6Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8.5 5h6m-10 12h6m1-12-4 12\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M6.5 14L10 5l3.5 9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M7.5 11.5h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <rect x=\"4.5\" y=\"16\" width=\"11\" height=\"1.5\" rx=\"0.75\" fill=\"currentColor\"/>\n</svg>\n", fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14.5 6.5l2-2-2-2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16.5 4.5h-4a5 5 0 0 0-5 5v1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5.5 13.5l-2 2 2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 15.5h4a5 5 0 0 0 5-5v-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", pn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"7.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 10h11M10 4.5v11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", hn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m12 5-5 5 5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", _n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"9\" cy=\"9\" r=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"m12.5 12.5 3.5 3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Sn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Tn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4 3 16h14Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 8.5v3.5m0 2v.01\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", En = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 3l3 2-3 2M9 5h8M6 10h11M6 15h11\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8 5h9M8 10h9M8 15h9\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n />\n <circle cx=\"4\" cy=\"5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"15\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", On = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 5h9M8 10h9M8 15h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <text x=\"4\" y=\"6\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">1</text>\n <text x=\"4\" y=\"11\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">2</text>\n <text x=\"4\" y=\"16\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">3</text>\n</svg>\n", kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", An = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4l-3 3m3-3l3 3M10 4v7M5 16h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Pn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 16l-3-3m3 3l3-3M10 16V9M5 4h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10l3-3M4 10l3 3M4 10h7M16 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", In = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"7\" y=\"7\" width=\"9\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 6.5h11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M6.5 6.5l.5 8.5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.5-8.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 9.5v3.5M11.5 9.5v3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", zn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m3.5 5 2-1.5V15\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m7 10h-3c0-3 3-2.25 3-4.5 0-1.125-1.5-1.875-3-.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Vn = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <rect x=\"3\" y=\"3\" width=\"14\" height=\"14\" rx=\"2\"/>\n <line x1=\"5\" y1=\"8\" x2=\"15\" y2=\"8\"/>\n <line x1=\"5\" y1=\"11\" x2=\"15\" y2=\"11\"/>\n <line x1=\"5\" y1=\"14\" x2=\"11\" y2=\"14\"/>\n</svg>", Hn = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <rect x=\"1\" y=\"3\" width=\"18\" height=\"14\" rx=\"2\"/>\n <line x1=\"3\" y1=\"8\" x2=\"17\" y2=\"8\"/>\n <line x1=\"3\" y1=\"11\" x2=\"17\" y2=\"11\"/>\n <line x1=\"3\" y1=\"14\" x2=\"17\" y2=\"14\"/>\n</svg>", Un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11 8.5c1.25-.75 2.5-.25 2.5.75 0 .75-1 1.25-1 1.25s1 .5 1 1.25c0 1-1.25 1.5-2.5.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", U = {
|
|
1994
2002
|
root: "",
|
|
1995
2003
|
alignedStart: "text-start",
|
|
1996
2004
|
alignedCenter: "text-center",
|
|
1997
2005
|
title: "",
|
|
1998
2006
|
description: "opacity-60 mt-[3px]"
|
|
1999
|
-
},
|
|
2007
|
+
}, Wn = class {
|
|
2000
2008
|
constructor(e) {
|
|
2001
2009
|
let t = e.alignment === "center" ? "center" : "start";
|
|
2002
2010
|
this.nodes = {
|
|
2003
|
-
root: O.make("div", [
|
|
2004
|
-
title: O.make("div",
|
|
2005
|
-
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = O.make("div",
|
|
2011
|
+
root: O.make("div", [U.root, t === "center" ? U.alignedCenter : U.alignedStart]),
|
|
2012
|
+
title: O.make("div", U.title, { textContent: e.title })
|
|
2013
|
+
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = O.make("div", U.description, { textContent: e.description }), this.nodes.root.appendChild(this.nodes.description));
|
|
2006
2014
|
}
|
|
2007
2015
|
getElement() {
|
|
2008
2016
|
return this.nodes.root;
|
|
2009
2017
|
}
|
|
2010
|
-
},
|
|
2018
|
+
}, Gn = class {
|
|
2011
2019
|
constructor(e) {
|
|
2012
2020
|
this.params = e;
|
|
2013
2021
|
}
|
|
@@ -2015,7 +2023,7 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2015
2023
|
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2016
2024
|
}
|
|
2017
2025
|
destroy() {
|
|
2018
|
-
|
|
2026
|
+
Mt();
|
|
2019
2027
|
}
|
|
2020
2028
|
onChildrenOpen() {
|
|
2021
2029
|
var e;
|
|
@@ -2030,7 +2038,7 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2030
2038
|
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2031
2039
|
}
|
|
2032
2040
|
addHint(e, t) {
|
|
2033
|
-
|
|
2041
|
+
Nt(e, new Wn(t).getElement(), { placement: t.position });
|
|
2034
2042
|
}
|
|
2035
2043
|
getMountElement() {
|
|
2036
2044
|
return this.getElement();
|
|
@@ -2068,12 +2076,12 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2068
2076
|
get isActive() {
|
|
2069
2077
|
return this.params === void 0 || !("isActive" in this.params) ? !1 : typeof this.params.isActive == "function" ? this.params.isActive() : this.params.isActive === !0;
|
|
2070
2078
|
}
|
|
2071
|
-
},
|
|
2079
|
+
}, W = {
|
|
2072
2080
|
item: "flex items-center select-none border-none bg-transparent rounded-lg px-2 py-1 text-text-primary mb-px outline-hidden transition-[color,background-color,border-color,opacity,max-height,padding,margin] duration-150 max-h-9 overflow-hidden data-blok-popover-item-active:bg-icon-active-bg data-blok-popover-item-active:text-icon-active-text can-hover:hover:cursor-pointer can-hover:hover:bg-item-hover-bg data-blok-force-hover:cursor-pointer data-blok-force-hover:bg-item-hover-bg data-[blok-focused=\"true\"]:bg-item-focus-bg data-blok-popover-item-no-hover:hover:bg-transparent data-blok-popover-item-no-hover:cursor-default can-hover:data-blok-popover-item-destructive:hover:text-item-destructive-text can-hover:data-blok-popover-item-destructive:hover:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-force-hover]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-force-hover]]:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:bg-item-destructive-hover-bg",
|
|
2073
2081
|
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2074
2082
|
icon: "flex items-center justify-center w-7 h-7 shrink-0 rounded-lg bg-popover-icon-bg transition-colors duration-150 [&_svg]:w-icon [&_svg]:h-icon",
|
|
2075
2083
|
focused: "is-focused"
|
|
2076
|
-
},
|
|
2084
|
+
}, Kn = { item: "rounded p-1" }, qn = { item: "rounded p-[3px] mobile:p-1" }, G = class extends Gn {
|
|
2077
2085
|
get isDisabled() {
|
|
2078
2086
|
return this.params.isDisabled === !0;
|
|
2079
2087
|
}
|
|
@@ -2159,7 +2167,7 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2159
2167
|
}
|
|
2160
2168
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
2161
2169
|
let t = document.createElement("div");
|
|
2162
|
-
t.className = this.getChevronClass(s), t.setAttribute(f.popoverItemIcon, ""), t.setAttribute(f.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML =
|
|
2170
|
+
t.className = this.getChevronClass(s), t.setAttribute(f.popoverItemIcon, ""), t.setAttribute(f.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML = gn, e.appendChild(t), this.nodes.chevron = t;
|
|
2163
2171
|
}
|
|
2164
2172
|
}
|
|
2165
2173
|
createIconElement(e, t, n, r) {
|
|
@@ -2169,13 +2177,13 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2169
2177
|
getContainerClass() {
|
|
2170
2178
|
var e, n, r, i;
|
|
2171
2179
|
let a = (e = (n = this.renderParams) == null ? void 0 : n.isInline) == null ? !1 : e, o = (r = (i = this.renderParams) == null ? void 0 : i.isNestedInline) == null ? !1 : r;
|
|
2172
|
-
return t(
|
|
2180
|
+
return t(W.item, !a && !o && "pl-2 pr-3", a && Kn.item, o && qn.item, this.params.isDisabled && W.itemDisabled);
|
|
2173
2181
|
}
|
|
2174
2182
|
getIconClass(e, n, r, i) {
|
|
2175
|
-
return t(
|
|
2183
|
+
return t(W.icon, n && "w-auto h-auto bg-transparent [&_svg]:w-icon [&_svg]:h-icon mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile", r && "w-toolbox-btn h-toolbox-btn", e && "mr-3", e && n && "shadow-none mr-0!", e && r && "mr-2!", i && "animate-wobble");
|
|
2176
2184
|
}
|
|
2177
2185
|
getChevronClass(e) {
|
|
2178
|
-
return t(
|
|
2186
|
+
return t(W.icon, "w-5 h-5 bg-transparent", e && "rotate-90");
|
|
2179
2187
|
}
|
|
2180
2188
|
setActive(e) {
|
|
2181
2189
|
this.nodes.root && (e ? this.nodes.root.setAttribute(f.popoverItemActive, "true") : this.nodes.root.removeAttribute(f.popoverItemActive));
|
|
@@ -2265,16 +2273,16 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2265
2273
|
getIconElement() {
|
|
2266
2274
|
return this.nodes.icon;
|
|
2267
2275
|
}
|
|
2268
|
-
},
|
|
2276
|
+
}, K = {
|
|
2269
2277
|
container: "py-1.5 px-2 transition-[opacity,max-height,padding] duration-150 max-h-5 overflow-hidden",
|
|
2270
2278
|
containerHidden: "opacity-0 max-h-0! py-0!",
|
|
2271
2279
|
line: "h-px w-full bg-popover-border/60"
|
|
2272
|
-
},
|
|
2280
|
+
}, q = {
|
|
2273
2281
|
container: "px-1 py-0",
|
|
2274
2282
|
line: "h-full w-px",
|
|
2275
2283
|
nestedContainer: "py-1 px-[3px]",
|
|
2276
2284
|
nestedLine: "w-full h-px"
|
|
2277
|
-
},
|
|
2285
|
+
}, Jn = class extends Gn {
|
|
2278
2286
|
constructor(e) {
|
|
2279
2287
|
var t, n;
|
|
2280
2288
|
super(), this.nodes = {
|
|
@@ -2291,11 +2299,11 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2291
2299
|
this.nodes.root.className = e ? n : t, e ? this.nodes.root.setAttribute(f.hidden, "true") : this.nodes.root.removeAttribute(f.hidden);
|
|
2292
2300
|
}
|
|
2293
2301
|
getContainerClass(e) {
|
|
2294
|
-
let n =
|
|
2295
|
-
return this.isNestedInline ? t(n,
|
|
2302
|
+
let n = K.container;
|
|
2303
|
+
return this.isNestedInline ? t(n, q.nestedContainer, e && K.containerHidden) : this.isInline ? t(n, q.container, e && K.containerHidden) : t(n, e && K.containerHidden);
|
|
2296
2304
|
}
|
|
2297
2305
|
getLineClass() {
|
|
2298
|
-
return this.isNestedInline ? t(
|
|
2306
|
+
return this.isNestedInline ? t(K.line, q.nestedLine) : this.isInline ? t(K.line, q.line) : K.line;
|
|
2299
2307
|
}
|
|
2300
2308
|
createRootElement() {
|
|
2301
2309
|
let e = document.createElement("div");
|
|
@@ -2303,10 +2311,10 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2303
2311
|
let t = document.createElement("div");
|
|
2304
2312
|
return t.className = this.getLineClass(), t.setAttribute(f.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
|
|
2305
2313
|
}
|
|
2306
|
-
},
|
|
2314
|
+
}, Yn = {
|
|
2307
2315
|
root: "",
|
|
2308
2316
|
rootHidden: "hidden"
|
|
2309
|
-
},
|
|
2317
|
+
}, Xn = { root: "flex items-center" }, J = class extends Gn {
|
|
2310
2318
|
constructor(e, t) {
|
|
2311
2319
|
var n;
|
|
2312
2320
|
super(e), this.nodes = { root: null }, this.isHidden = !1, this.isInline = (n = t == null ? void 0 : t.isInline) == null ? !1 : n, this.nodes.root = this.createRootElement(e, t);
|
|
@@ -2323,12 +2331,12 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2323
2331
|
return Array.from(e);
|
|
2324
2332
|
}
|
|
2325
2333
|
updateRootClasses() {
|
|
2326
|
-
this.nodes.root && (this.nodes.root.className = t(
|
|
2334
|
+
this.nodes.root && (this.nodes.root.className = t(Yn.root, this.isInline && Xn.root, this.isHidden && Yn.rootHidden));
|
|
2327
2335
|
}
|
|
2328
2336
|
createRootElement(n, r) {
|
|
2329
2337
|
var i;
|
|
2330
2338
|
let a = document.createElement("div");
|
|
2331
|
-
if (a.className = t(
|
|
2339
|
+
if (a.className = t(Yn.root, this.isInline && Xn.root), a.setAttribute(f.popoverItemHtml, ""), a.setAttribute("data-blok-testid", "popover-item-html"), n.name && a.setAttribute("data-blok-item-name", n.name), a.appendChild(n.element), n.hint !== void 0 && (r == null || (i = r.hint) == null ? void 0 : i.enabled) !== !1) {
|
|
2332
2340
|
var o, s;
|
|
2333
2341
|
this.addHint(a, e(e({}, n.hint), {}, {
|
|
2334
2342
|
position: (r == null || (o = r.hint) == null ? void 0 : o.position) || "right",
|
|
@@ -2337,11 +2345,12 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2337
2345
|
}
|
|
2338
2346
|
return a;
|
|
2339
2347
|
}
|
|
2340
|
-
},
|
|
2348
|
+
}, Y = {
|
|
2341
2349
|
wrapper: "bg-search-input-bg border border-search-input-border rounded-lg p-1 grid grid-cols-[auto_auto_1fr] grid-rows-[auto] transition-all duration-200 focus-within:bg-popover-bg focus-within:border-search-input-focus-border focus-within:shadow-[0_0_0_2px_rgba(35,131,226,0.08)]",
|
|
2342
2350
|
icon: "w-toolbox-btn h-toolbox-btn flex items-center justify-center mr-2 [&_svg]:w-icon [&_svg]:h-icon [&_svg]:text-gray-text",
|
|
2343
|
-
input: "text-sm outline-hidden font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[22px] min-w-[calc(100%-(--spacing(6))-10px)] placeholder:text-gray-text/60 placeholder:font-normal"
|
|
2344
|
-
|
|
2351
|
+
input: "text-sm outline-hidden font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[22px] min-w-[calc(100%-(--spacing(6))-10px)] placeholder:text-gray-text/60 placeholder:font-normal",
|
|
2352
|
+
clearButton: "flex items-center justify-center w-toolbox-btn h-toolbox-btn cursor-pointer border-0 bg-transparent rounded p-0 opacity-0 pointer-events-none transition-opacity duration-150 [&_svg]:w-3 [&_svg]:h-3 [&_svg]:text-gray-text can-hover:hover:[&_svg]:text-dark"
|
|
2353
|
+
}, Zn = (e, t) => {
|
|
2345
2354
|
if (e.length === 0) return t.length;
|
|
2346
2355
|
if (t.length === 0) return e.length;
|
|
2347
2356
|
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
@@ -2354,47 +2363,52 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2354
2363
|
n.splice(0, n.length, ...r);
|
|
2355
2364
|
}
|
|
2356
2365
|
return n[t.length];
|
|
2357
|
-
},
|
|
2366
|
+
}, Qn = (e, t) => [...e].reduce((e, n) => e < t.length && n === t[e] ? e + 1 : e, 0) === t.length, $n = (e, t) => [...e].reduce((n, r, i) => {
|
|
2358
2367
|
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2359
2368
|
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2360
|
-
}, 0) === t.length,
|
|
2369
|
+
}, 0) === t.length, er = (e, t) => {
|
|
2361
2370
|
if (e === t) return 100;
|
|
2362
2371
|
if (e.startsWith(t)) return 90;
|
|
2363
2372
|
if (e.includes(t)) return 75;
|
|
2364
|
-
if (t.length >= 2 &&
|
|
2365
|
-
if (t.length >= 2 &&
|
|
2373
|
+
if (t.length >= 2 && $n(e, t)) return 55;
|
|
2374
|
+
if (t.length >= 2 && Qn(e, t)) return 35;
|
|
2366
2375
|
if (t.length >= 3) {
|
|
2367
2376
|
let n = Math.floor(t.length / 3);
|
|
2368
|
-
if (
|
|
2377
|
+
if (Zn(e, t) <= n) return 15;
|
|
2369
2378
|
}
|
|
2370
2379
|
return 0;
|
|
2371
|
-
},
|
|
2380
|
+
}, tr = (e, t) => {
|
|
2372
2381
|
if (t === "") return 100;
|
|
2373
2382
|
let n = t.toLowerCase(), r = [];
|
|
2374
2383
|
if (e.title !== void 0 && r.push(e.title.toLowerCase()), e.englishTitle !== void 0 && r.push(e.englishTitle.toLowerCase()), e.searchTerms !== void 0) for (let t of e.searchTerms) r.push(t.toLowerCase());
|
|
2375
2384
|
return r.reduce((e, t) => {
|
|
2376
|
-
let r =
|
|
2385
|
+
let r = er(t, n);
|
|
2377
2386
|
return r > e ? r : e;
|
|
2378
2387
|
}, 0);
|
|
2379
|
-
},
|
|
2388
|
+
}, nr = /* @__PURE__ */ function(e) {
|
|
2380
2389
|
return e.Search = "search", e;
|
|
2381
|
-
}({}),
|
|
2390
|
+
}({}), rr = class extends He {
|
|
2382
2391
|
constructor({ items: e, placeholder: t }) {
|
|
2383
2392
|
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2384
|
-
this.applySearch(this.input.value);
|
|
2385
|
-
}, this.listeners = new Me(), this.items = e, this.wrapper = O.make("div",
|
|
2386
|
-
let n = O.make("div",
|
|
2387
|
-
this.input = O.make("input",
|
|
2393
|
+
this.updateClearButtonVisibility(), this.applySearch(this.input.value);
|
|
2394
|
+
}, this.listeners = new Me(), this.items = e, this.wrapper = O.make("div", Y.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
|
|
2395
|
+
let n = O.make("div", Y.icon, { innerHTML: _n });
|
|
2396
|
+
this.input = O.make("input", Y.input, {
|
|
2388
2397
|
type: "search",
|
|
2389
2398
|
placeholder: t,
|
|
2390
2399
|
tabIndex: -1
|
|
2391
|
-
}), this.input.setAttribute("data-blok-flipper-navigation-target", "true"), this.input.setAttribute("data-blok-testid", "popover-search-input"), this.
|
|
2400
|
+
}), this.input.setAttribute("data-blok-flipper-navigation-target", "true"), this.input.setAttribute("data-blok-testid", "popover-search-input"), this.clearButton = O.make("button", Y.clearButton, {
|
|
2401
|
+
type: "button",
|
|
2402
|
+
innerHTML: sn
|
|
2403
|
+
}), this.clearButton.setAttribute("aria-label", "Clear search"), this.wrapper.appendChild(n), this.wrapper.appendChild(this.input), this.wrapper.appendChild(this.clearButton), this.overrideValueProperty(), [
|
|
2392
2404
|
"input",
|
|
2393
2405
|
"keyup",
|
|
2394
2406
|
"search",
|
|
2395
2407
|
"change"
|
|
2396
2408
|
].forEach((e) => {
|
|
2397
2409
|
this.listeners.on(this.input, e, this.handleValueChange);
|
|
2410
|
+
}), this.listeners.on(this.clearButton, "click", () => {
|
|
2411
|
+
this.clear(), this.input.focus();
|
|
2398
2412
|
});
|
|
2399
2413
|
}
|
|
2400
2414
|
getElement() {
|
|
@@ -2404,10 +2418,10 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2404
2418
|
this.input.focus();
|
|
2405
2419
|
}
|
|
2406
2420
|
clear() {
|
|
2407
|
-
this.input.value = "";
|
|
2421
|
+
this.input.value = "", this.updateClearButtonVisibility();
|
|
2408
2422
|
}
|
|
2409
2423
|
applySearch(e) {
|
|
2410
|
-
this.searchQuery !== e && (this.searchQuery = e, this.emit(
|
|
2424
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(nr.Search, {
|
|
2411
2425
|
query: e,
|
|
2412
2426
|
items: this.foundItems
|
|
2413
2427
|
}));
|
|
@@ -2429,16 +2443,20 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2429
2443
|
}
|
|
2430
2444
|
});
|
|
2431
2445
|
}
|
|
2446
|
+
updateClearButtonVisibility() {
|
|
2447
|
+
let e = this.input.value.length > 0;
|
|
2448
|
+
this.clearButton.classList.toggle("opacity-0", !e), this.clearButton.classList.toggle("pointer-events-none", !e), this.clearButton.classList.toggle("opacity-100", e), this.clearButton.classList.toggle("pointer-events-auto", e);
|
|
2449
|
+
}
|
|
2432
2450
|
destroy() {
|
|
2433
2451
|
this.listeners.removeAll();
|
|
2434
2452
|
}
|
|
2435
2453
|
get foundItems() {
|
|
2436
2454
|
return this.items.map((e) => ({
|
|
2437
2455
|
item: e,
|
|
2438
|
-
score:
|
|
2456
|
+
score: tr(e, this.searchQuery)
|
|
2439
2457
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2440
2458
|
}
|
|
2441
|
-
},
|
|
2459
|
+
}, ir, X = class e {
|
|
2442
2460
|
constructor() {
|
|
2443
2461
|
this.stack = [], this.boundPointerDown = null;
|
|
2444
2462
|
}
|
|
@@ -2490,7 +2508,7 @@ var rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2490
2508
|
t !== -1 && this.stack.splice(t, 1);
|
|
2491
2509
|
}
|
|
2492
2510
|
};
|
|
2493
|
-
|
|
2511
|
+
ir = X, ir._instance = null;
|
|
2494
2512
|
//#endregion
|
|
2495
2513
|
//#region src/components/utils/popover/popover.const.ts
|
|
2496
2514
|
var Z = {
|
|
@@ -2499,16 +2517,16 @@ var Z = {
|
|
|
2499
2517
|
popoverContainerOpened: "opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none animate-panel-showing",
|
|
2500
2518
|
popoverOverlay: "hidden bg-dark",
|
|
2501
2519
|
items: "overflow-y-auto overscroll-contain"
|
|
2502
|
-
},
|
|
2520
|
+
}, ar = {
|
|
2503
2521
|
popover: "relative",
|
|
2504
2522
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
2505
|
-
},
|
|
2523
|
+
}, or = (e) => `level-${e}`, Q = /* @__PURE__ */ function(e) {
|
|
2506
2524
|
return e.NestingLevel = "--nesting-level", e.PopoverHeight = "--popover-height", e.InlinePopoverWidth = "--inline-popover-width", e.PopoverTop = "--popover-top", e.PopoverLeft = "--popover-left", e.TriggerItemLeft = "--trigger-item-left", e.TriggerItemTop = "--trigger-item-top", e;
|
|
2507
2525
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
2508
2526
|
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2509
|
-
}({}),
|
|
2527
|
+
}({}), sr = class extends He {
|
|
2510
2528
|
get itemsDefault() {
|
|
2511
|
-
return this.items.filter((e) => e instanceof
|
|
2529
|
+
return this.items.filter((e) => e instanceof G);
|
|
2512
2530
|
}
|
|
2513
2531
|
constructor(t, n = {}) {
|
|
2514
2532
|
super(), this.params = t, this.itemsRenderParams = n, this.listeners = new Me(), this.messages = {
|
|
@@ -2550,21 +2568,21 @@ var Z = {
|
|
|
2550
2568
|
buildItems(e) {
|
|
2551
2569
|
return e.map((e) => {
|
|
2552
2570
|
switch (e.type) {
|
|
2553
|
-
case F.Separator: return new
|
|
2554
|
-
case F.Html: return new
|
|
2571
|
+
case F.Separator: return new Jn(this.itemsRenderParams[F.Separator]);
|
|
2572
|
+
case F.Html: return new J(e, this.itemsRenderParams[F.Html]);
|
|
2555
2573
|
case F.Default:
|
|
2556
|
-
case void 0: return new
|
|
2574
|
+
case void 0: return new G(e, this.itemsRenderParams[F.Default]);
|
|
2557
2575
|
}
|
|
2558
2576
|
});
|
|
2559
2577
|
}
|
|
2560
2578
|
getTargetItem(e) {
|
|
2561
|
-
return this.items.filter((e) => e instanceof
|
|
2579
|
+
return this.items.filter((e) => e instanceof G || e instanceof J).find((t) => {
|
|
2562
2580
|
let n = t.getElement();
|
|
2563
2581
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2564
2582
|
});
|
|
2565
2583
|
}
|
|
2566
2584
|
handleItemClick(e) {
|
|
2567
|
-
if (!(e instanceof
|
|
2585
|
+
if (!(e instanceof G && e.isDisabled)) {
|
|
2568
2586
|
if (e.hasChildren) {
|
|
2569
2587
|
this.showNestedItems(e), this.callHandleClickIfPresent(e);
|
|
2570
2588
|
return;
|
|
@@ -2577,7 +2595,7 @@ var Z = {
|
|
|
2577
2595
|
t !== void 0 && this.handleItemClick(t);
|
|
2578
2596
|
}
|
|
2579
2597
|
toggleItemActivenessIfNeeded(e) {
|
|
2580
|
-
if (!(e instanceof
|
|
2598
|
+
if (!(e instanceof G) || (e.toggle === !0 && e.toggleActive(), typeof e.toggle != "string")) return;
|
|
2581
2599
|
let t = this.itemsDefault.filter((t) => t.toggle === e.toggle);
|
|
2582
2600
|
if (t.length === 1) {
|
|
2583
2601
|
e.toggleActive();
|
|
@@ -2588,7 +2606,7 @@ var Z = {
|
|
|
2588
2606
|
});
|
|
2589
2607
|
}
|
|
2590
2608
|
refreshItemActiveState(e) {
|
|
2591
|
-
e instanceof
|
|
2609
|
+
e instanceof G && e.toggle === void 0 && e.toggleActive(e.isActive);
|
|
2592
2610
|
}
|
|
2593
2611
|
callHandleClickIfPresent(e) {
|
|
2594
2612
|
"handleClick" in e && typeof e.handleClick == "function" && e.handleClick();
|
|
@@ -2628,7 +2646,10 @@ var Z = {
|
|
|
2628
2646
|
i !== null && ((r = this.nodes.items) == null || r.appendChild(i));
|
|
2629
2647
|
});
|
|
2630
2648
|
}
|
|
2631
|
-
},
|
|
2649
|
+
}, cr = class e extends sr {
|
|
2650
|
+
setLeftAlignElement(e) {
|
|
2651
|
+
this.leftAlignElement = e;
|
|
2652
|
+
}
|
|
2632
2653
|
constructor(e, t) {
|
|
2633
2654
|
var n;
|
|
2634
2655
|
if (super(e, t), this.nestingLevel = 0, this.nestedPopoverTriggerItem = null, this.previouslyHoveredItem = null, this.scopeElement = document.body, this.hide = () => {
|
|
@@ -2644,7 +2665,7 @@ var Z = {
|
|
|
2644
2665
|
var t;
|
|
2645
2666
|
(t = e.getElement()) == null || t.style.setProperty("transition-duration", "0s");
|
|
2646
2667
|
}), this.items.forEach((e) => {
|
|
2647
|
-
let t = e instanceof
|
|
2668
|
+
let t = e instanceof G, a = e instanceof Jn || e instanceof J, o = t ? !i.includes(e) || e.name !== void 0 && this.isNamePermanentlyHidden(e.name) : a && (r || !n);
|
|
2648
2669
|
e.toggleHidden(o);
|
|
2649
2670
|
}), r && (this.nodes.popoverContainer.offsetHeight, this.items.forEach((e) => {
|
|
2650
2671
|
var t;
|
|
@@ -2654,9 +2675,9 @@ var Z = {
|
|
|
2654
2675
|
(t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(a), a.length > 0 && this.flipper.focusItem(0, { skipNextTab: !0 }));
|
|
2655
2676
|
}, e.trigger && (this.trigger = e.trigger), e.leftAlignElement && (this.leftAlignElement = e.leftAlignElement), e.nestingLevel !== void 0 && (this.nestingLevel = e.nestingLevel), this.nestingLevel > 0 && this.nodes.popover.setAttribute(f.nested, "true"), e.scopeElement !== void 0 && (this.scopeElement = e.scopeElement), this.nodes.popoverContainer !== null && (this.listeners.on(this.nodes.popoverContainer, "mouseover", (e) => this.handleHover(e)), this.listeners.on(this.nodes.popoverContainer, "mouseleave", (e) => this.handleMouseLeave(e))), e.searchable && this.addSearch(), e.flippable === !1) return;
|
|
2656
2677
|
let r = e.flipper;
|
|
2657
|
-
r === void 0 ? this.flipper = new
|
|
2678
|
+
r === void 0 ? this.flipper = new Vt({
|
|
2658
2679
|
items: this.flippableElements,
|
|
2659
|
-
focusedItemClass:
|
|
2680
|
+
focusedItemClass: W.focused,
|
|
2660
2681
|
allowedKeys: [
|
|
2661
2682
|
m.TAB,
|
|
2662
2683
|
m.UP,
|
|
@@ -2814,19 +2835,19 @@ var Z = {
|
|
|
2814
2835
|
return this.items.flatMap((e) => this.getFlippableElementsForItem(e)).filter((e) => e != null);
|
|
2815
2836
|
}
|
|
2816
2837
|
getFlippableElementsForItem(e) {
|
|
2817
|
-
if (e instanceof
|
|
2838
|
+
if (e instanceof J) {
|
|
2818
2839
|
let t = e.getElement();
|
|
2819
2840
|
return t ? [t] : [];
|
|
2820
2841
|
}
|
|
2821
|
-
if (!(e instanceof
|
|
2842
|
+
if (!(e instanceof G) || e.isDisabled) return [];
|
|
2822
2843
|
let t = e.getElement();
|
|
2823
2844
|
return t ? [t] : [];
|
|
2824
2845
|
}
|
|
2825
2846
|
addSearch() {
|
|
2826
|
-
this.search = new
|
|
2847
|
+
this.search = new rr({
|
|
2827
2848
|
items: this.itemsDefault,
|
|
2828
2849
|
placeholder: this.messages.search
|
|
2829
|
-
}), this.search.on(
|
|
2850
|
+
}), this.search.on(nr.Search, this.onSearch);
|
|
2830
2851
|
let e = this.search.getElement();
|
|
2831
2852
|
e.classList.add("mb-1.5"), this.nodes.popoverContainer.insertBefore(e, this.nodes.popoverContainer.firstChild);
|
|
2832
2853
|
}
|
|
@@ -2840,7 +2861,7 @@ var Z = {
|
|
|
2840
2861
|
}
|
|
2841
2862
|
let t = this.itemsDefault.map((t) => ({
|
|
2842
2863
|
item: t,
|
|
2843
|
-
score:
|
|
2864
|
+
score: tr(t, e)
|
|
2844
2865
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2845
2866
|
this.onSearch({
|
|
2846
2867
|
query: e,
|
|
@@ -2862,7 +2883,7 @@ var Z = {
|
|
|
2862
2883
|
this.originalItemOrder = void 0;
|
|
2863
2884
|
}
|
|
2864
2885
|
}
|
|
2865
|
-
},
|
|
2886
|
+
}, lr = function(e) {
|
|
2866
2887
|
let t = O.make("div");
|
|
2867
2888
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", e.forEach((e) => {
|
|
2868
2889
|
let n = O.make("div"), r = e.indexOf(" ");
|
|
@@ -2872,7 +2893,7 @@ var Z = {
|
|
|
2872
2893
|
} else n.appendChild(document.createTextNode(e));
|
|
2873
2894
|
t.appendChild(n);
|
|
2874
2895
|
}), t;
|
|
2875
|
-
},
|
|
2896
|
+
}, ur, dr = class {
|
|
2876
2897
|
constructor({ api: e }) {
|
|
2877
2898
|
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
2878
2899
|
t: (e, t) => this.i18nAPI.t(e),
|
|
@@ -2920,10 +2941,10 @@ var Z = {
|
|
|
2920
2941
|
};
|
|
2921
2942
|
}
|
|
2922
2943
|
};
|
|
2923
|
-
|
|
2944
|
+
ur = dr, ur.isInline = !0;
|
|
2924
2945
|
//#endregion
|
|
2925
2946
|
//#region src/tools/toggle/constants.ts
|
|
2926
|
-
var
|
|
2947
|
+
var fr = "toggle", pr = "tools.toggle.placeholder", mr = "tools.toggle.bodyPlaceholder", hr = "tools.toggle.ariaLabelCollapse", gr = "tools.toggle.ariaLabelExpand", _r = "outline-hidden py-[3px] mt-[2px] mb-px", vr = "outline-hidden pl-0.5 leading-[1.6em] flex-1 min-w-0", yr = "flex items-center", br = "flex-shrink-0 p-[8px] flex items-center justify-center cursor-pointer select-none rounded hover:bg-black/5 transition-colors duration-200 ease-in-out focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none", xr = "<svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.5 2.5L8.5 6L4.5 9.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", Sr = "hidden pl-7 pt-[calc(0.5em+5px)] pb-[4px] text-gray-text leading-[1.6em] cursor-pointer select-none", Cr = "pl-7", wr = {
|
|
2927
2948
|
toggleOpen: "data-blok-toggle-open",
|
|
2928
2949
|
toggleArrow: "data-blok-toggle-arrow",
|
|
2929
2950
|
toggleContent: "data-blok-toggle-content",
|
|
@@ -2931,4 +2952,4 @@ var ur = "toggle", dr = "tools.toggle.placeholder", fr = "tools.toggle.bodyPlace
|
|
|
2931
2952
|
toggleChildren: "data-blok-toggle-children"
|
|
2932
2953
|
};
|
|
2933
2954
|
//#endregion
|
|
2934
|
-
export {
|
|
2955
|
+
export { wn as $, Ee as $t, sn as A, F as At, Pn as B, Le as Bt, X as C, g as Cn, Pt as Ct, cn as D, p as Dn, I as Dt, W as E, f as En, jt as Et, Sn as F, qe as Ft, Dn as G, Ne as Gt, In as H, Fe as Ht, Cn as I, He as It, dn as J, Ae as Jt, kn as K, Me as Kt, Mn as L, Re as Lt, yn as M, Ue as Mt, bn as N, Ke as Nt, hn as O, l as On, yt as Ot, xn as P, We as Pt, An as Q, Te as Qt, jn as R, Be as Rt, or as S, ee as Sn, It as St, G as T, h as Tn, Nt as Tt, ln as U, Ie as Ut, Fn as V, ze as Vt, un as W, Pe as Wt, mn as X, Oe as Xt, pn as Y, je as Yt, fn as Z, O as Zt, sr as _, S as _n, Ht as _t, _r as a, ue as an, Tn as at, Z as b, y as bn, Rt as bt, vr as c, de as cn, tn as ct, Cr as d, oe as dn, H as dt, Ce as en, zn as et, yr as f, ae as fn, on as ft, cr as g, x as gn, Wt as gt, lr as h, b as hn, B as ht, br as i, he as in, Rn as it, vn as j, et as jt, Ln as k, it as kt, pr as l, le as ln, $t as lt, dr as m, C as mn, Yt as mt, gr as n, D as nn, Un as nt, mr as o, pe as on, Hn as ot, fr as p, se as pn, an as pt, On as q, ke as qt, xr as r, ge as rn, En as rt, Sr as s, fe as sn, Vn as st, hr as t, E as tn, Bn as tt, wr as u, me as un, en as ut, $ as v, ie as vn, Vt as vt, J as w, m as wn, Mt as wt, ar as x, te as xn, Ft as xt, Q as y, _ as yn, zt as yt, Nn as z, Ve as zt };
|