@myissue/vue-website-page-builder 3.3.51 → 3.3.53
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.
|
@@ -4,10 +4,10 @@ var Pp = (r) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Wu = (r, t, e) => t in r ? Vu(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
6
6
|
var kt = (r, t, e) => Wu(r, typeof t != "symbol" ? t + "" : t, e), Ap = (r, t, e) => t.has(r) || Pp("Cannot " + e);
|
|
7
|
-
var
|
|
7
|
+
var Xt = (r, t, e) => (Ap(r, t, "read from private field"), e ? e.call(r) : t.get(r)), Lo = (r, t, e) => t.has(r) ? Pp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
8
8
|
var V = (r, t, e) => (Ap(r, t, "access private method"), e);
|
|
9
9
|
import * as Dp from "vue";
|
|
10
|
-
import { defineComponent as ce, computed as $, createBlock as xt, openBlock as v, Teleport as qu, createElementVNode as b, createElementBlock as C, createCommentVNode as L, normalizeClass as tt, toDisplayString as W, renderSlot as co, ref as S, Fragment as dt, withCtx as U, nextTick as
|
|
10
|
+
import { defineComponent as ce, computed as $, createBlock as xt, openBlock as v, Teleport as qu, createElementVNode as b, createElementBlock as C, createCommentVNode as L, normalizeClass as tt, toDisplayString as W, renderSlot as co, ref as S, Fragment as dt, withCtx as U, nextTick as pt, effectScope as Lc, markRaw as Dr, toRaw as Ut, hasInjectionContext as Uu, inject as Wr, getCurrentInstance as Rc, watch as ot, unref as T, reactive as Ku, isRef as Fi, isReactive as Nl, toRef as ps, getCurrentScope as Gu, onScopeDispose as Ju, toRefs as Np, createVNode as G, shallowRef as Yu, onMounted as xr, onBeforeUnmount as ja, h as qr, watchEffect as an, customRef as Xu, onBeforeMount as Qu, withDirectives as Ct, vModelText as Il, createTextVNode as Ft, provide as Br, resolveDynamicComponent as $c, cloneVNode as Zu, onUnmounted as tx, Transition as sn, renderList as ht, withKeys as ex, vShow as qs, vModelSelect as Zt, withModifiers as Ne, createStaticVNode as Ip } from "vue";
|
|
11
11
|
const rx = { class: "pbx-font-sans" }, ox = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "pbx-fixed pbx-inset-0 pbx-z-40 pbx-flex pbx-items-center pbx-justify-center pbx-mx-4",
|
|
@@ -1367,14 +1367,14 @@ function ds(r, t, e) {
|
|
|
1367
1367
|
const o = r.random || (r.rng || yx)();
|
|
1368
1368
|
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, wx(o);
|
|
1369
1369
|
}
|
|
1370
|
-
const
|
|
1370
|
+
const Se = function(t = 200) {
|
|
1371
1371
|
return new Promise((e) => {
|
|
1372
1372
|
setTimeout(e, t);
|
|
1373
1373
|
});
|
|
1374
1374
|
}, Ho = function(r) {
|
|
1375
1375
|
return !r || typeof r == "object" && r.constructor === Object && Object.keys(r).length === 0;
|
|
1376
1376
|
};
|
|
1377
|
-
var _, _c, zc, Fc, Hc, Rn, hi, yt, jc, Vc, za, Fa, Ha,
|
|
1377
|
+
var _, _c, zc, Fc, Hc, Rn, hi, yt, jc, Vc, za, Fa, Ha, ae, Wc, qc, io, Us, Uc, yi, Kc, Gc, $n, no, Ks, Jc;
|
|
1378
1378
|
class kx {
|
|
1379
1379
|
constructor(t) {
|
|
1380
1380
|
Lo(this, _);
|
|
@@ -1423,13 +1423,13 @@ class kx {
|
|
|
1423
1423
|
* The function is used to
|
|
1424
1424
|
* attach event listeners to each element within a 'section'
|
|
1425
1425
|
*/
|
|
1426
|
-
Lo(this,
|
|
1426
|
+
Lo(this, ae, async () => {
|
|
1427
1427
|
const t = /* @__PURE__ */ new WeakSet(), e = document.querySelector("#pagebuilder");
|
|
1428
|
-
e && (await
|
|
1428
|
+
e && (await pt(), e.querySelectorAll("section *").forEach((o) => {
|
|
1429
1429
|
if (this.isEditableElement(o) && t && !t.has(o)) {
|
|
1430
1430
|
t.add(o);
|
|
1431
1431
|
const i = o;
|
|
1432
|
-
i.addEventListener("click", (n) =>
|
|
1432
|
+
i.addEventListener("click", (n) => Xt(this, za).call(this, n, i)), i.addEventListener("mouseover", (n) => Xt(this, Fa).call(this, n, i)), i.addEventListener("mouseleave", (n) => Xt(this, Ha).call(this, n));
|
|
1433
1433
|
}
|
|
1434
1434
|
}));
|
|
1435
1435
|
});
|
|
@@ -1439,7 +1439,7 @@ class kx {
|
|
|
1439
1439
|
if (t && t.userSettings && typeof t.userSettings.autoSave == "boolean" && t.userSettings.autoSave !== !1) {
|
|
1440
1440
|
if (this.pageBuilderStateStore.getIsSaving) return;
|
|
1441
1441
|
try {
|
|
1442
|
-
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await
|
|
1442
|
+
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await Se(400);
|
|
1443
1443
|
} catch (e) {
|
|
1444
1444
|
console.error("Error trying auto save.", e);
|
|
1445
1445
|
} finally {
|
|
@@ -1448,7 +1448,7 @@ class kx {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
if (t && !t.userSettings)
|
|
1450
1450
|
try {
|
|
1451
|
-
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await
|
|
1451
|
+
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await Se(400);
|
|
1452
1452
|
} catch (e) {
|
|
1453
1453
|
console.error("Error trying saving.", e);
|
|
1454
1454
|
} finally {
|
|
@@ -1458,7 +1458,7 @@ class kx {
|
|
|
1458
1458
|
kt(this, "handleManualSave", async () => {
|
|
1459
1459
|
this.startEditing();
|
|
1460
1460
|
const t = this.pageBuilderStateStore.getPageBuilderConfig;
|
|
1461
|
-
t && t.userSettings && (typeof t.userSettings.autoSave == "boolean" && !t.userSettings.autoSave || typeof t.userSettings.autoSave == "boolean" && t.userSettings.autoSave) && (this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await
|
|
1461
|
+
t && t.userSettings && (typeof t.userSettings.autoSave == "boolean" && !t.userSettings.autoSave || typeof t.userSettings.autoSave == "boolean" && t.userSettings.autoSave) && (this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await Se(400), this.pageBuilderStateStore.setIsSaving(!1)), t && !t.userSettings && (this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await Se(400), this.pageBuilderStateStore.setIsSaving(!1));
|
|
1462
1462
|
});
|
|
1463
1463
|
kt(this, "ensureTextAreaHasContent", () => {
|
|
1464
1464
|
if (!this.getElement.value || typeof this.getElement.value.innerHTML != "string")
|
|
@@ -1468,7 +1468,7 @@ class kx {
|
|
|
1468
1468
|
});
|
|
1469
1469
|
kt(this, "handleTextInput", async (t) => {
|
|
1470
1470
|
var e;
|
|
1471
|
-
typeof ((e = this.getElement.value) == null ? void 0 : e.innerHTML) == "string" && (typeof this.getElement.value.innerHTML == "string" && (await
|
|
1471
|
+
typeof ((e = this.getElement.value) == null ? void 0 : e.innerHTML) == "string" && (typeof this.getElement.value.innerHTML == "string" && (await pt(), this.getElement.value.textContent = t, this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML), this.getElement.value.innerHTML = t), this.ensureTextAreaHasContent());
|
|
1472
1472
|
});
|
|
1473
1473
|
this.hasStartedEditing = !1, this.pageBuilderStateStore = t, this.getLocalStorageItemName = $(
|
|
1474
1474
|
() => this.pageBuilderStateStore.getLocalStorageItemName
|
|
@@ -1502,30 +1502,9 @@ class kx {
|
|
|
1502
1502
|
this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await V(this, _, Wc).call(this);
|
|
1503
1503
|
}
|
|
1504
1504
|
async tryMountPendingComponents() {
|
|
1505
|
-
this.deleteAllComponentsFromDOM();
|
|
1506
|
-
const t = this.loadStoredComponentsFromStorage();
|
|
1507
|
-
this.pageBuilderStateStore.
|
|
1508
|
-
const e = this.pageBuilderStateStore.getPageBuilderConfig, o = e && e.updateOrCreate && e.updateOrCreate.formType;
|
|
1509
|
-
if (e) {
|
|
1510
|
-
if (e && o === "update" && t && typeof t == "string" && this.pendingMountData && this.pageBuilderStateStore.setHasLocalDraftForUpdate(!0), e && o === "update") {
|
|
1511
|
-
if (this.pendingMountData) {
|
|
1512
|
-
V(this, _, hi).call(this, this.pendingMountData);
|
|
1513
|
-
return;
|
|
1514
|
-
}
|
|
1515
|
-
if (typeof t == "string") {
|
|
1516
|
-
await V(this, _, no).call(this, t), V(this, _, hi).call(this);
|
|
1517
|
-
return;
|
|
1518
|
-
}
|
|
1519
|
-
await lt(), await qt(this, Qt).call(this), this.pageBuilderStateStore.setIsRestoring(!1), this.pageBuilderStateStore.setIsLoadingGlobal(!1);
|
|
1520
|
-
}
|
|
1521
|
-
if (e && o === "create") {
|
|
1522
|
-
if (typeof t == "string") {
|
|
1523
|
-
await V(this, _, no).call(this, t), V(this, _, hi).call(this);
|
|
1524
|
-
return;
|
|
1525
|
-
}
|
|
1526
|
-
await lt(), await qt(this, Qt).call(this), this.pageBuilderStateStore.setIsRestoring(!1), this.pageBuilderStateStore.setIsLoadingGlobal(!1);
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1505
|
+
this.pageBuilderStateStore.setIsLoadingGlobal(!0), await Se(400), this.deleteAllComponentsFromDOM();
|
|
1506
|
+
const t = this.loadStoredComponentsFromStorage(), e = this.pageBuilderStateStore.getPageBuilderConfig, o = e && e.updateOrCreate && e.updateOrCreate.formType;
|
|
1507
|
+
e && (o === "update" && (t && typeof t == "string" && this.pageBuilderStateStore.setHasLocalDraftForUpdate(!0), this.pendingMountData && V(this, _, hi).call(this, this.pendingMountData), typeof t == "string" && !this.pendingMountData && (await V(this, _, no).call(this, t), V(this, _, hi).call(this))), o === "create" && typeof t == "string" && (await V(this, _, no).call(this, t), V(this, _, hi).call(this)), await pt(), await Xt(this, ae).call(this), this.pageBuilderStateStore.setIsRestoring(!1), this.pageBuilderStateStore.setIsLoadingGlobal(!1));
|
|
1529
1508
|
}
|
|
1530
1509
|
/**
|
|
1531
1510
|
* - Entry point for initializing the Page Builder.
|
|
@@ -1548,7 +1527,7 @@ class kx {
|
|
|
1548
1527
|
};
|
|
1549
1528
|
return i && (n.validation = i), Array.isArray(e) && e.length >= 0 && (n.passedComponentsArray = e), n;
|
|
1550
1529
|
} catch (n) {
|
|
1551
|
-
return console.error("Not able to start the Page Builder", n),
|
|
1530
|
+
return console.error("Not able to start the Page Builder", n), {
|
|
1552
1531
|
error: !0,
|
|
1553
1532
|
reason: "Failed to start the Page Builder due to an unexpected error."
|
|
1554
1533
|
};
|
|
@@ -1589,7 +1568,7 @@ class kx {
|
|
|
1589
1568
|
t || this.pageBuilderStateStore.setFontDesktop("none"), i && !t && this.pageBuilderStateStore.setFontDesktop(i);
|
|
1590
1569
|
}
|
|
1591
1570
|
async toggleTipTapModal(t) {
|
|
1592
|
-
this.pageBuilderStateStore.setShowModalTipTap(t), await
|
|
1571
|
+
this.pageBuilderStateStore.setShowModalTipTap(t), await pt(), await Xt(this, ae).call(this), t || await this.handleAutoSave();
|
|
1593
1572
|
}
|
|
1594
1573
|
isEditableElement(t) {
|
|
1595
1574
|
return t ? !this.NoneListernesTags.includes(t.tagName) : !1;
|
|
@@ -1698,7 +1677,7 @@ class kx {
|
|
|
1698
1677
|
}
|
|
1699
1678
|
async deleteComponentFromDOM() {
|
|
1700
1679
|
var n;
|
|
1701
|
-
V(this, _, Uc).call(this), await
|
|
1680
|
+
V(this, _, Uc).call(this), await pt();
|
|
1702
1681
|
const t = this.getComponents.value;
|
|
1703
1682
|
if (!t) return;
|
|
1704
1683
|
const e = t.findIndex(
|
|
@@ -1721,7 +1700,7 @@ class kx {
|
|
|
1721
1700
|
);
|
|
1722
1701
|
a && a.remove();
|
|
1723
1702
|
}
|
|
1724
|
-
await
|
|
1703
|
+
await pt(), await Xt(this, ae).call(this), this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await this.handleAutoSave();
|
|
1725
1704
|
}
|
|
1726
1705
|
async deleteElementFromDOM() {
|
|
1727
1706
|
var e;
|
|
@@ -1731,7 +1710,7 @@ class kx {
|
|
|
1731
1710
|
this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null);
|
|
1732
1711
|
return;
|
|
1733
1712
|
}
|
|
1734
|
-
((e = t.parentElement) == null ? void 0 : e.tagName) !== "SECTION" && (this.pageBuilderStateStore.setParentElement(t.parentNode), this.pageBuilderStateStore.setRestoredElement(t.outerHTML), this.pageBuilderStateStore.setNextSibling(t.nextSibling), t.remove()), this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await this.clearHtmlSelection(), await
|
|
1713
|
+
((e = t.parentElement) == null ? void 0 : e.tagName) !== "SECTION" && (this.pageBuilderStateStore.setParentElement(t.parentNode), this.pageBuilderStateStore.setRestoredElement(t.outerHTML), this.pageBuilderStateStore.setNextSibling(t.nextSibling), t.remove()), this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await this.clearHtmlSelection(), await pt(), await Xt(this, ae).call(this);
|
|
1735
1714
|
}
|
|
1736
1715
|
}
|
|
1737
1716
|
async restoreDeletedElementToDOM() {
|
|
@@ -1740,7 +1719,7 @@ class kx {
|
|
|
1740
1719
|
const i = document.createElement("div");
|
|
1741
1720
|
i.innerHTML = t, i.firstChild && e.insertBefore(i.firstChild, o);
|
|
1742
1721
|
}
|
|
1743
|
-
this.pageBuilderStateStore.setParentElement(null), this.pageBuilderStateStore.setRestoredElement(null), this.pageBuilderStateStore.setNextSibling(null), this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await
|
|
1722
|
+
this.pageBuilderStateStore.setParentElement(null), this.pageBuilderStateStore.setRestoredElement(null), this.pageBuilderStateStore.setNextSibling(null), this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await pt(), await Xt(this, ae).call(this);
|
|
1744
1723
|
}
|
|
1745
1724
|
handleRemoveClasses(t) {
|
|
1746
1725
|
var e, o;
|
|
@@ -1795,7 +1774,7 @@ class kx {
|
|
|
1795
1774
|
return t.trim().toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-+|-+$/g, "");
|
|
1796
1775
|
}
|
|
1797
1776
|
async removeCurrentComponentsFromLocalStorage() {
|
|
1798
|
-
V(this, _, io).call(this), await
|
|
1777
|
+
V(this, _, io).call(this), await pt();
|
|
1799
1778
|
const t = this.getLocalStorageItemName.value;
|
|
1800
1779
|
t && localStorage.removeItem(t);
|
|
1801
1780
|
}
|
|
@@ -1837,14 +1816,14 @@ class kx {
|
|
|
1837
1816
|
const o = this.getLocalStorageItemName.value;
|
|
1838
1817
|
if (typeof o == "string") {
|
|
1839
1818
|
const i = localStorage.getItem(o);
|
|
1840
|
-
typeof i == "string" && (this.pageBuilderStateStore.setIsLoadingResumeEditing(!0), await
|
|
1819
|
+
typeof i == "string" && (this.pageBuilderStateStore.setIsLoadingResumeEditing(!0), await Se(400), await V(this, _, no).call(this, i), this.pageBuilderStateStore.setIsLoadingResumeEditing(!1));
|
|
1841
1820
|
}
|
|
1842
|
-
await
|
|
1821
|
+
await pt(), await Xt(this, ae).call(this), this.pageBuilderStateStore.setIsLoadingResumeEditing(!1);
|
|
1843
1822
|
}
|
|
1844
1823
|
async restoreOriginalContent() {
|
|
1845
1824
|
V(this, _, io).call(this);
|
|
1846
1825
|
const t = this.pageBuilderStateStore.getPageBuilderConfig;
|
|
1847
|
-
(t && t.updateOrCreate && t.updateOrCreate.formType) === "update" && (this.pageBuilderStateStore.setIsRestoring(!0), await
|
|
1826
|
+
(t && t.updateOrCreate && t.updateOrCreate.formType) === "update" && (this.pageBuilderStateStore.setIsRestoring(!0), await Se(400), Array.isArray(this.originalComponents) && (await V(this, _, Rn).call(this, this.originalComponents), this.removeCurrentComponentsFromLocalStorage()), await pt(), await Xt(this, ae).call(this), this.pageBuilderStateStore.setIsRestoring(!1));
|
|
1848
1827
|
}
|
|
1849
1828
|
getStorageItemNameForResource() {
|
|
1850
1829
|
return this.getLocalStorageItemName.value;
|
|
@@ -1873,7 +1852,7 @@ class kx {
|
|
|
1873
1852
|
* If no element is selected or no image is staged, nothing happens.
|
|
1874
1853
|
*/
|
|
1875
1854
|
async applyPendingImageToSelectedElement() {
|
|
1876
|
-
this.getElement.value && this.getApplyImageToSelection.value && this.getApplyImageToSelection.value.src && (await
|
|
1855
|
+
this.getElement.value && this.getApplyImageToSelection.value && this.getApplyImageToSelection.value.src && (await pt(), this.pageBuilderStateStore.setBasePrimaryImage(`${this.getApplyImageToSelection.value.src}`), await this.handleAutoSave());
|
|
1877
1856
|
}
|
|
1878
1857
|
/**
|
|
1879
1858
|
* Inspects the currently selected element and, if it contains exactly one <img> and no <div>,
|
|
@@ -1919,13 +1898,13 @@ class kx {
|
|
|
1919
1898
|
o && this.getComponentArrayAddMethod.value === "push" && o.scrollTo({
|
|
1920
1899
|
top: o.scrollHeight + 50,
|
|
1921
1900
|
behavior: "smooth"
|
|
1922
|
-
}), await
|
|
1901
|
+
}), await pt(), await Xt(this, ae).call(this), await this.handleAutoSave();
|
|
1923
1902
|
} catch (e) {
|
|
1924
1903
|
console.error("Error adding component:", e);
|
|
1925
1904
|
}
|
|
1926
1905
|
}
|
|
1927
1906
|
async initializeElementStyles() {
|
|
1928
|
-
await
|
|
1907
|
+
await pt(), this.handleHyperlink(void 0, null, !1), this.handleOpacity(void 0), this.handleBackgroundOpacity(void 0), this.setBasePrimaryImageFromSelectedElement(), this.handleBorderStyle(void 0), this.handleBorderWidth(void 0), this.handleBorderColor(void 0), this.handleBorderRadiusGlobal(void 0), this.handleBorderRadiusTopLeft(void 0), this.handleBorderRadiusTopRight(void 0), this.handleBorderRadiusBottomleft(void 0), this.handleBorderRadiusBottomRight(void 0), this.handleFontSizeBase(void 0), this.handleFontSizeDesktop(void 0), this.handleFontSizeTablet(void 0), this.handleFontSizeMobile(void 0), this.handleFontWeight(void 0), this.handleFontFamily(void 0), this.handleFontStyle(void 0), this.handleVerticalPadding(void 0), this.handleHorizontalPadding(void 0), this.handleVerticalMargin(void 0), this.handleHorizontalMargin(void 0), this.handleBackgroundColor(void 0), this.handleTextColor(void 0), await V(this, _, qc).call(this);
|
|
1929
1908
|
}
|
|
1930
1909
|
}
|
|
1931
1910
|
_ = new WeakSet(), _c = function(t) {
|
|
@@ -2011,9 +1990,8 @@ _ = new WeakSet(), _c = function(t) {
|
|
|
2011
1990
|
let o;
|
|
2012
1991
|
typeof t == "string" ? o = t : t !== void 0 ? o = JSON.stringify(t) : o = "", await V(this, _, no).call(this, o);
|
|
2013
1992
|
}, hi = async function(t) {
|
|
2014
|
-
this.pageBuilderStateStore.setIsLoadingGlobal(!0);
|
|
2015
1993
|
const e = this.loadStoredComponentsFromStorage();
|
|
2016
|
-
await
|
|
1994
|
+
await this.clearHtmlSelection(), t && (!this.pendingMountData && e && typeof e == "string" ? await V(this, _, no).call(this, e) : (await V(this, _, Rn).call(this, t), this.pendingMountData = null)), t || (e && typeof e == "string" ? await V(this, _, no).call(this, e) : await V(this, _, Rn).call(this, [])), await pt(), await Xt(this, ae).call(this), this.deleteOldPageBuilderLocalStorage();
|
|
2017
1995
|
}, yt = function(t, e, o) {
|
|
2018
1996
|
const i = this.getElement.value;
|
|
2019
1997
|
if (!i) return;
|
|
@@ -2033,7 +2011,7 @@ _ = new WeakSet(), _c = function(t) {
|
|
|
2033
2011
|
const o = document.createElement("div");
|
|
2034
2012
|
(e = t.parentNode) == null || e.insertBefore(o, t), o.appendChild(t);
|
|
2035
2013
|
}
|
|
2036
|
-
}, za = new WeakMap(), Fa = new WeakMap(), Ha = new WeakMap(),
|
|
2014
|
+
}, za = new WeakMap(), Fa = new WeakMap(), Ha = new WeakMap(), ae = new WeakMap(), Wc = async function() {
|
|
2037
2015
|
const t = document.querySelector("#pagebuilder");
|
|
2038
2016
|
if (!t) return;
|
|
2039
2017
|
const e = t.querySelector("[hovered]");
|
|
@@ -2233,7 +2211,7 @@ $n = function(t, e = "pbx-") {
|
|
|
2233
2211
|
l.setAttribute("data-component-title", p), n.title = p, n.html_code = l.outerHTML;
|
|
2234
2212
|
}
|
|
2235
2213
|
return n;
|
|
2236
|
-
})), this.pageBuilderStateStore.setComponents(i), await
|
|
2214
|
+
})), this.pageBuilderStateStore.setComponents(i), await pt(), await Xt(this, ae).call(this);
|
|
2237
2215
|
} catch (e) {
|
|
2238
2216
|
console.error("Error parsing JSON components:", e), this.deleteAllComponentsFromDOM();
|
|
2239
2217
|
}
|
|
@@ -2255,7 +2233,7 @@ $n = function(t, e = "pbx-") {
|
|
|
2255
2233
|
id: l,
|
|
2256
2234
|
title: p
|
|
2257
2235
|
});
|
|
2258
|
-
}), this.pageBuilderStateStore.setComponents(n), await this.clearHtmlSelection(), await
|
|
2236
|
+
}), this.pageBuilderStateStore.setComponents(n), await this.clearHtmlSelection(), await pt(), await Xt(this, ae).call(this);
|
|
2259
2237
|
} catch (e) {
|
|
2260
2238
|
console.error("Error parsing HTML components:", e), this.deleteAllComponentsFromDOM();
|
|
2261
2239
|
}
|
|
@@ -2612,7 +2590,7 @@ function jx(r) {
|
|
|
2612
2590
|
}
|
|
2613
2591
|
}
|
|
2614
2592
|
let Uo = !0;
|
|
2615
|
-
const Hn = [], ao = "pinia:mutations",
|
|
2593
|
+
const Hn = [], ao = "pinia:mutations", Kt = "pinia", { assign: Vx } = Object, Yn = (r) => "🍍 " + r;
|
|
2616
2594
|
function Wx(r, t) {
|
|
2617
2595
|
Xc({
|
|
2618
2596
|
id: "dev.esm.pinia",
|
|
@@ -2628,7 +2606,7 @@ function Wx(r, t) {
|
|
|
2628
2606
|
label: "Pinia 🍍",
|
|
2629
2607
|
color: 15064968
|
|
2630
2608
|
}), e.addInspector({
|
|
2631
|
-
id:
|
|
2609
|
+
id: Kt,
|
|
2632
2610
|
label: "Pinia 🍍",
|
|
2633
2611
|
icon: "storage",
|
|
2634
2612
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -2643,7 +2621,7 @@ function Wx(r, t) {
|
|
|
2643
2621
|
{
|
|
2644
2622
|
icon: "content_paste",
|
|
2645
2623
|
action: async () => {
|
|
2646
|
-
await Lx(t), e.sendInspectorTree(
|
|
2624
|
+
await Lx(t), e.sendInspectorTree(Kt), e.sendInspectorState(Kt);
|
|
2647
2625
|
},
|
|
2648
2626
|
tooltip: "Replace the state with the content of your clipboard"
|
|
2649
2627
|
},
|
|
@@ -2657,7 +2635,7 @@ function Wx(r, t) {
|
|
|
2657
2635
|
{
|
|
2658
2636
|
icon: "folder_open",
|
|
2659
2637
|
action: async () => {
|
|
2660
|
-
await _x(t), e.sendInspectorTree(
|
|
2638
|
+
await _x(t), e.sendInspectorTree(Kt), e.sendInspectorState(Kt);
|
|
2661
2639
|
},
|
|
2662
2640
|
tooltip: "Import the state from a JSON file"
|
|
2663
2641
|
}
|
|
@@ -2683,7 +2661,7 @@ function Wx(r, t) {
|
|
|
2683
2661
|
editable: !0,
|
|
2684
2662
|
value: s._isOptionsAPI ? {
|
|
2685
2663
|
_custom: {
|
|
2686
|
-
value:
|
|
2664
|
+
value: Ut(s.$state),
|
|
2687
2665
|
actions: [
|
|
2688
2666
|
{
|
|
2689
2667
|
icon: "restore",
|
|
@@ -2712,19 +2690,19 @@ function Wx(r, t) {
|
|
|
2712
2690
|
});
|
|
2713
2691
|
}
|
|
2714
2692
|
}), e.on.getInspectorTree((o) => {
|
|
2715
|
-
if (o.app === r && o.inspectorId ===
|
|
2693
|
+
if (o.app === r && o.inspectorId === Kt) {
|
|
2716
2694
|
let i = [t];
|
|
2717
2695
|
i = i.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? i.filter((n) => "$id" in n ? n.$id.toLowerCase().includes(o.filter.toLowerCase()) : nb.toLowerCase().includes(o.filter.toLowerCase())) : i).map(zx);
|
|
2718
2696
|
}
|
|
2719
2697
|
}), globalThis.$pinia = t, e.on.getInspectorState((o) => {
|
|
2720
|
-
if (o.app === r && o.inspectorId ===
|
|
2698
|
+
if (o.app === r && o.inspectorId === Kt) {
|
|
2721
2699
|
const i = o.nodeId === Fn ? t : t._s.get(o.nodeId);
|
|
2722
2700
|
if (!i)
|
|
2723
2701
|
return;
|
|
2724
|
-
i && (o.nodeId !== Fn && (globalThis.$store =
|
|
2702
|
+
i && (o.nodeId !== Fn && (globalThis.$store = Ut(i)), o.state = Fx(i));
|
|
2725
2703
|
}
|
|
2726
2704
|
}), e.on.editInspectorState((o, i) => {
|
|
2727
|
-
if (o.app === r && o.inspectorId ===
|
|
2705
|
+
if (o.app === r && o.inspectorId === Kt) {
|
|
2728
2706
|
const n = o.nodeId === Fn ? t : t._s.get(o.nodeId);
|
|
2729
2707
|
if (!n)
|
|
2730
2708
|
return At(`store "${o.nodeId}" not found`, "error");
|
|
@@ -2820,7 +2798,7 @@ function qx(r, t) {
|
|
|
2820
2798
|
});
|
|
2821
2799
|
}, !0), t._customProperties.forEach((a) => {
|
|
2822
2800
|
ot(() => T(t[a]), (s, l) => {
|
|
2823
|
-
e.notifyComponentUpdate(), e.sendInspectorState(
|
|
2801
|
+
e.notifyComponentUpdate(), e.sendInspectorState(Kt), Uo && e.addTimelineEvent({
|
|
2824
2802
|
layerId: ao,
|
|
2825
2803
|
event: {
|
|
2826
2804
|
time: o(),
|
|
@@ -2835,7 +2813,7 @@ function qx(r, t) {
|
|
|
2835
2813
|
});
|
|
2836
2814
|
}, { deep: !0 });
|
|
2837
2815
|
}), t.$subscribe(({ events: a, type: s }, l) => {
|
|
2838
|
-
if (e.notifyComponentUpdate(), e.sendInspectorState(
|
|
2816
|
+
if (e.notifyComponentUpdate(), e.sendInspectorState(Kt), !Uo)
|
|
2839
2817
|
return;
|
|
2840
2818
|
const p = {
|
|
2841
2819
|
time: o(),
|
|
@@ -2868,17 +2846,17 @@ function qx(r, t) {
|
|
|
2868
2846
|
info: Ie("HMR update")
|
|
2869
2847
|
}
|
|
2870
2848
|
}
|
|
2871
|
-
}), e.notifyComponentUpdate(), e.sendInspectorTree(
|
|
2849
|
+
}), e.notifyComponentUpdate(), e.sendInspectorTree(Kt), e.sendInspectorState(Kt);
|
|
2872
2850
|
});
|
|
2873
2851
|
const { $dispose: n } = t;
|
|
2874
2852
|
t.$dispose = () => {
|
|
2875
|
-
n(), e.notifyComponentUpdate(), e.sendInspectorTree(
|
|
2876
|
-
}, e.notifyComponentUpdate(), e.sendInspectorTree(
|
|
2853
|
+
n(), e.notifyComponentUpdate(), e.sendInspectorTree(Kt), e.sendInspectorState(Kt), e.getSettings().logStoreChanges && At(`Disposed "${t.$id}" store 🗑`);
|
|
2854
|
+
}, e.notifyComponentUpdate(), e.sendInspectorTree(Kt), e.sendInspectorState(Kt), e.getSettings().logStoreChanges && At(`"${t.$id}" store installed 🆕`);
|
|
2877
2855
|
});
|
|
2878
2856
|
}
|
|
2879
2857
|
let ab = 0, Lr;
|
|
2880
2858
|
function _p(r, t, e) {
|
|
2881
|
-
const o = t.reduce((i, n) => (i[n] =
|
|
2859
|
+
const o = t.reduce((i, n) => (i[n] = Ut(r)[n], i), {});
|
|
2882
2860
|
for (const i in o)
|
|
2883
2861
|
r[i] = function() {
|
|
2884
2862
|
const n = ab, a = e ? new Proxy(r, {
|
|
@@ -2899,7 +2877,7 @@ function Ux({ app: r, store: t, options: e }) {
|
|
|
2899
2877
|
if (t._isOptionsAPI = !!e.state, !t._p._testing) {
|
|
2900
2878
|
_p(t, Object.keys(e.actions), t._isOptionsAPI);
|
|
2901
2879
|
const o = t._hotUpdate;
|
|
2902
|
-
|
|
2880
|
+
Ut(t)._hotUpdate = function(i) {
|
|
2903
2881
|
o.apply(this, arguments), _p(t, Object.keys(i._hmrPayload.actions), !!t._isOptionsAPI);
|
|
2904
2882
|
};
|
|
2905
2883
|
}
|
|
@@ -2973,7 +2951,7 @@ const Jx = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
2973
2951
|
function Yx(r) {
|
|
2974
2952
|
return !ko(r) || !r.hasOwnProperty(Jx);
|
|
2975
2953
|
}
|
|
2976
|
-
const { assign:
|
|
2954
|
+
const { assign: ve } = Object;
|
|
2977
2955
|
function Hp(r) {
|
|
2978
2956
|
return !!(Fi(r) && r.effect);
|
|
2979
2957
|
}
|
|
@@ -2986,7 +2964,7 @@ function jp(r, t, e, o) {
|
|
|
2986
2964
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
2987
2965
|
Np(S(i ? i() : {}).value)
|
|
2988
2966
|
) : Np(e.state.value[r]);
|
|
2989
|
-
return
|
|
2967
|
+
return ve(d, n, Object.keys(a || {}).reduce((c, m) => (process.env.NODE_ENV !== "production" && m in d && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${m}" in store "${r}".`), c[m] = Dr($(() => {
|
|
2990
2968
|
Hi(e);
|
|
2991
2969
|
const u = e._s.get(r);
|
|
2992
2970
|
return a[m].call(u, u);
|
|
@@ -2996,7 +2974,7 @@ function jp(r, t, e, o) {
|
|
|
2996
2974
|
}
|
|
2997
2975
|
function Ys(r, t, e = {}, o, i, n) {
|
|
2998
2976
|
let a;
|
|
2999
|
-
const s =
|
|
2977
|
+
const s = ve({ actions: {} }, e);
|
|
3000
2978
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
3001
2979
|
throw new Error("Pinia destroyed");
|
|
3002
2980
|
const l = { deep: !0 };
|
|
@@ -3021,14 +2999,14 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3021
2999
|
events: u
|
|
3022
3000
|
});
|
|
3023
3001
|
const z = f = Symbol();
|
|
3024
|
-
|
|
3002
|
+
pt().then(() => {
|
|
3025
3003
|
f === z && (p = !0);
|
|
3026
3004
|
}), d = !0, $o(c, E, o.state.value[r]);
|
|
3027
3005
|
}
|
|
3028
3006
|
const w = n ? function() {
|
|
3029
3007
|
const { state: E } = e, z = E ? E() : {};
|
|
3030
3008
|
this.$patch((X) => {
|
|
3031
|
-
|
|
3009
|
+
ve(X, z);
|
|
3032
3010
|
});
|
|
3033
3011
|
} : (
|
|
3034
3012
|
/* istanbul ignore next */
|
|
@@ -3058,13 +3036,13 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3058
3036
|
after: it,
|
|
3059
3037
|
onError: K
|
|
3060
3038
|
});
|
|
3061
|
-
let
|
|
3039
|
+
let lt;
|
|
3062
3040
|
try {
|
|
3063
|
-
|
|
3041
|
+
lt = P.apply(this && this.$id === r ? this : A, X);
|
|
3064
3042
|
} catch (gt) {
|
|
3065
3043
|
throw $o(ut, gt), gt;
|
|
3066
3044
|
}
|
|
3067
|
-
return
|
|
3045
|
+
return lt instanceof Promise ? lt.then((gt) => ($o(bt, gt), gt)).catch((gt) => ($o(ut, gt), Promise.reject(gt))) : ($o(bt, lt), lt);
|
|
3068
3046
|
};
|
|
3069
3047
|
return z[Fp] = !0, z[bs] = E, z;
|
|
3070
3048
|
}, B = /* @__PURE__ */ Dr({
|
|
@@ -3086,11 +3064,11 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3086
3064
|
type: Ke.direct,
|
|
3087
3065
|
events: u
|
|
3088
3066
|
}, bt);
|
|
3089
|
-
},
|
|
3067
|
+
}, ve({}, l, E)));
|
|
3090
3068
|
return z;
|
|
3091
3069
|
},
|
|
3092
3070
|
$dispose: k
|
|
3093
|
-
}, A = Ku(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir ?
|
|
3071
|
+
}, A = Ku(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir ? ve(
|
|
3094
3072
|
{
|
|
3095
3073
|
_hmrPayload: B,
|
|
3096
3074
|
_customProperties: Dr(/* @__PURE__ */ new Set())
|
|
@@ -3115,13 +3093,13 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3115
3093
|
) : E, Ir && (H._getters || // @ts-expect-error: same
|
|
3116
3094
|
(H._getters = Dr([]))).push(P));
|
|
3117
3095
|
}
|
|
3118
|
-
if (
|
|
3096
|
+
if (ve(A, H), ve(Ut(A), H), Object.defineProperty(A, "$state", {
|
|
3119
3097
|
get: () => process.env.NODE_ENV !== "production" && i ? g.value : o.state.value[r],
|
|
3120
3098
|
set: (P) => {
|
|
3121
3099
|
if (process.env.NODE_ENV !== "production" && i)
|
|
3122
3100
|
throw new Error("cannot set hotState");
|
|
3123
3101
|
y((E) => {
|
|
3124
|
-
|
|
3102
|
+
ve(E, P);
|
|
3125
3103
|
});
|
|
3126
3104
|
}
|
|
3127
3105
|
}), process.env.NODE_ENV !== "production" && (A._hotUpdate = Dr((P) => {
|
|
@@ -3133,7 +3111,7 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3133
3111
|
vn(A, E, ps(P.$state, E));
|
|
3134
3112
|
}), Object.keys(A.$state).forEach((E) => {
|
|
3135
3113
|
E in P.$state || cs(A, E);
|
|
3136
|
-
}), p = !1, d = !1, o.state.value[r] = ps(P._hmrPayload, "hotState"), d = !0,
|
|
3114
|
+
}), p = !1, d = !1, o.state.value[r] = ps(P._hmrPayload, "hotState"), d = !0, pt().then(() => {
|
|
3137
3115
|
p = !0;
|
|
3138
3116
|
});
|
|
3139
3117
|
for (const E in P._hmrPayload.actions) {
|
|
@@ -3160,7 +3138,7 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3160
3138
|
enumerable: !1
|
|
3161
3139
|
};
|
|
3162
3140
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((E) => {
|
|
3163
|
-
Object.defineProperty(A, E,
|
|
3141
|
+
Object.defineProperty(A, E, ve({ value: A[E] }, P));
|
|
3164
3142
|
});
|
|
3165
3143
|
}
|
|
3166
3144
|
return o._p.forEach((P) => {
|
|
@@ -3171,9 +3149,9 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3171
3149
|
pinia: o,
|
|
3172
3150
|
options: s
|
|
3173
3151
|
}));
|
|
3174
|
-
Object.keys(E || {}).forEach((z) => A._customProperties.add(z)),
|
|
3152
|
+
Object.keys(E || {}).forEach((z) => A._customProperties.add(z)), ve(A, E);
|
|
3175
3153
|
} else
|
|
3176
|
-
|
|
3154
|
+
ve(A, a.run(() => P({
|
|
3177
3155
|
store: A,
|
|
3178
3156
|
app: o._a,
|
|
3179
3157
|
pinia: o,
|
|
@@ -3200,7 +3178,7 @@ This will fail in production.`);
|
|
|
3200
3178
|
s = wi, s._s.has(o) || (n ? Ys(o, t, i, s) : jp(o, i, s), process.env.NODE_ENV !== "production" && (a._pinia = s));
|
|
3201
3179
|
const d = s._s.get(o);
|
|
3202
3180
|
if (process.env.NODE_ENV !== "production" && l) {
|
|
3203
|
-
const c = "__hot:" + o, m = n ? Ys(c, t, i, s, !0) : jp(c,
|
|
3181
|
+
const c = "__hot:" + o, m = n ? Ys(c, t, i, s, !0) : jp(c, ve({}, i), s, !0);
|
|
3204
3182
|
l._hotUpdate(m), delete s.state.value[c], s._s.delete(c);
|
|
3205
3183
|
}
|
|
3206
3184
|
if (process.env.NODE_ENV !== "production" && Ir) {
|
|
@@ -3546,7 +3524,7 @@ const Qx = /* @__PURE__ */ Xx("pageBuilderState", {
|
|
|
3546
3524
|
this.textColor = r;
|
|
3547
3525
|
},
|
|
3548
3526
|
setElement(r) {
|
|
3549
|
-
this.element = null,
|
|
3527
|
+
this.element = null, pt(() => {
|
|
3550
3528
|
this.element = r;
|
|
3551
3529
|
});
|
|
3552
3530
|
},
|
|
@@ -3555,12 +3533,12 @@ const Qx = /* @__PURE__ */ Xx("pageBuilderState", {
|
|
|
3555
3533
|
this.element = null, this.component = null;
|
|
3556
3534
|
return;
|
|
3557
3535
|
}
|
|
3558
|
-
this.component = null,
|
|
3536
|
+
this.component = null, pt(() => {
|
|
3559
3537
|
this.component = r;
|
|
3560
3538
|
});
|
|
3561
3539
|
},
|
|
3562
3540
|
setComponents(r) {
|
|
3563
|
-
this.components = [],
|
|
3541
|
+
this.components = [], pt(() => {
|
|
3564
3542
|
this.components = r || [];
|
|
3565
3543
|
});
|
|
3566
3544
|
},
|
|
@@ -6547,15 +6525,15 @@ class rl {
|
|
|
6547
6525
|
return (this.delInfo & Vn) > 0;
|
|
6548
6526
|
}
|
|
6549
6527
|
}
|
|
6550
|
-
class
|
|
6528
|
+
class be {
|
|
6551
6529
|
/**
|
|
6552
6530
|
Create a position map. The modifications to the document are
|
|
6553
6531
|
represented as an array of numbers, in which each group of three
|
|
6554
6532
|
represents a modified chunk as `[start, oldSize, newSize]`.
|
|
6555
6533
|
*/
|
|
6556
6534
|
constructor(t, e = !1) {
|
|
6557
|
-
if (this.ranges = t, this.inverted = e, !t.length &&
|
|
6558
|
-
return
|
|
6535
|
+
if (this.ranges = t, this.inverted = e, !t.length && be.empty)
|
|
6536
|
+
return be.empty;
|
|
6559
6537
|
}
|
|
6560
6538
|
/**
|
|
6561
6539
|
@internal
|
|
@@ -6626,7 +6604,7 @@ class me {
|
|
|
6626
6604
|
map positions in the post-step document to the pre-step document.
|
|
6627
6605
|
*/
|
|
6628
6606
|
invert() {
|
|
6629
|
-
return new
|
|
6607
|
+
return new be(this.ranges, !this.inverted);
|
|
6630
6608
|
}
|
|
6631
6609
|
/**
|
|
6632
6610
|
@internal
|
|
@@ -6640,10 +6618,10 @@ class me {
|
|
|
6640
6618
|
sub-document to a larger document, or vice-versa.
|
|
6641
6619
|
*/
|
|
6642
6620
|
static offset(t) {
|
|
6643
|
-
return t == 0 ?
|
|
6621
|
+
return t == 0 ? be.empty : new be(t < 0 ? [0, -t, 0] : [0, 0, t]);
|
|
6644
6622
|
}
|
|
6645
6623
|
}
|
|
6646
|
-
|
|
6624
|
+
be.empty = new be([]);
|
|
6647
6625
|
class Wi {
|
|
6648
6626
|
/**
|
|
6649
6627
|
Create a new mapping with the given position maps.
|
|
@@ -6752,14 +6730,14 @@ class Wi {
|
|
|
6752
6730
|
}
|
|
6753
6731
|
}
|
|
6754
6732
|
const xs = /* @__PURE__ */ Object.create(null);
|
|
6755
|
-
class
|
|
6733
|
+
class Jt {
|
|
6756
6734
|
/**
|
|
6757
6735
|
Get the step map that represents the changes made by this step,
|
|
6758
6736
|
and which can be used to transform between positions in the old
|
|
6759
6737
|
and the new document.
|
|
6760
6738
|
*/
|
|
6761
6739
|
getMap() {
|
|
6762
|
-
return
|
|
6740
|
+
return be.empty;
|
|
6763
6741
|
}
|
|
6764
6742
|
/**
|
|
6765
6743
|
Try to merge this step with another one, to be applied directly
|
|
@@ -6835,7 +6813,7 @@ function $l(r, t, e) {
|
|
|
6835
6813
|
}
|
|
6836
6814
|
return N.fromArray(o);
|
|
6837
6815
|
}
|
|
6838
|
-
class Rr extends
|
|
6816
|
+
class Rr extends Jt {
|
|
6839
6817
|
/**
|
|
6840
6818
|
Create a mark step.
|
|
6841
6819
|
*/
|
|
@@ -6873,8 +6851,8 @@ class Rr extends Yt {
|
|
|
6873
6851
|
return new Rr(e.from, e.to, t.markFromJSON(e.mark));
|
|
6874
6852
|
}
|
|
6875
6853
|
}
|
|
6876
|
-
|
|
6877
|
-
class Ue extends
|
|
6854
|
+
Jt.jsonID("addMark", Rr);
|
|
6855
|
+
class Ue extends Jt {
|
|
6878
6856
|
/**
|
|
6879
6857
|
Create a mark-removing step.
|
|
6880
6858
|
*/
|
|
@@ -6912,8 +6890,8 @@ class Ue extends Yt {
|
|
|
6912
6890
|
return new Ue(e.from, e.to, t.markFromJSON(e.mark));
|
|
6913
6891
|
}
|
|
6914
6892
|
}
|
|
6915
|
-
|
|
6916
|
-
class $r extends
|
|
6893
|
+
Jt.jsonID("removeMark", Ue);
|
|
6894
|
+
class $r extends Jt {
|
|
6917
6895
|
/**
|
|
6918
6896
|
Create a node mark step.
|
|
6919
6897
|
*/
|
|
@@ -6956,8 +6934,8 @@ class $r extends Yt {
|
|
|
6956
6934
|
return new $r(e.pos, t.markFromJSON(e.mark));
|
|
6957
6935
|
}
|
|
6958
6936
|
}
|
|
6959
|
-
|
|
6960
|
-
class Co extends
|
|
6937
|
+
Jt.jsonID("addNodeMark", $r);
|
|
6938
|
+
class Co extends Jt {
|
|
6961
6939
|
/**
|
|
6962
6940
|
Create a mark-removing step.
|
|
6963
6941
|
*/
|
|
@@ -6991,8 +6969,8 @@ class Co extends Yt {
|
|
|
6991
6969
|
return new Co(e.pos, t.markFromJSON(e.mark));
|
|
6992
6970
|
}
|
|
6993
6971
|
}
|
|
6994
|
-
|
|
6995
|
-
class Dt extends
|
|
6972
|
+
Jt.jsonID("removeNodeMark", Co);
|
|
6973
|
+
class Dt extends Jt {
|
|
6996
6974
|
/**
|
|
6997
6975
|
The given `slice` should fit the 'gap' between `from` and
|
|
6998
6976
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -7009,7 +6987,7 @@ class Dt extends Yt {
|
|
|
7009
6987
|
return this.structure && ol(t, this.from, this.to) ? Mt.fail("Structure replace would overwrite content") : Mt.fromReplace(t, this.from, this.to, this.slice);
|
|
7010
6988
|
}
|
|
7011
6989
|
getMap() {
|
|
7012
|
-
return new
|
|
6990
|
+
return new be([this.from, this.to - this.from, this.slice.size]);
|
|
7013
6991
|
}
|
|
7014
6992
|
invert(t) {
|
|
7015
6993
|
return new Dt(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
|
|
@@ -7043,8 +7021,8 @@ class Dt extends Yt {
|
|
|
7043
7021
|
return new Dt(e.from, e.to, F.fromJSON(t, e.slice), !!e.structure);
|
|
7044
7022
|
}
|
|
7045
7023
|
}
|
|
7046
|
-
|
|
7047
|
-
class Nt extends
|
|
7024
|
+
Jt.jsonID("replace", Dt);
|
|
7025
|
+
class Nt extends Jt {
|
|
7048
7026
|
/**
|
|
7049
7027
|
Create a replace-around step with the given range and gap.
|
|
7050
7028
|
`insert` should be the point in the slice into which the content
|
|
@@ -7064,7 +7042,7 @@ class Nt extends Yt {
|
|
|
7064
7042
|
return o ? Mt.fromReplace(t, this.from, this.to, o) : Mt.fail("Content does not fit in gap");
|
|
7065
7043
|
}
|
|
7066
7044
|
getMap() {
|
|
7067
|
-
return new
|
|
7045
|
+
return new be([
|
|
7068
7046
|
this.from,
|
|
7069
7047
|
this.gapFrom - this.from,
|
|
7070
7048
|
this.insert,
|
|
@@ -7101,7 +7079,7 @@ class Nt extends Yt {
|
|
|
7101
7079
|
return new Nt(e.from, e.to, e.gapFrom, e.gapTo, F.fromJSON(t, e.slice), e.insert, !!e.structure);
|
|
7102
7080
|
}
|
|
7103
7081
|
}
|
|
7104
|
-
|
|
7082
|
+
Jt.jsonID("replaceAround", Nt);
|
|
7105
7083
|
function ol(r, t, e) {
|
|
7106
7084
|
let o = r.resolve(t), i = e - t, n = o.depth;
|
|
7107
7085
|
for (; i > 0 && n > 0 && o.indexAfter(n) == o.node(n).childCount; )
|
|
@@ -7687,7 +7665,7 @@ function Fb(r, t) {
|
|
|
7687
7665
|
}
|
|
7688
7666
|
return e;
|
|
7689
7667
|
}
|
|
7690
|
-
class Xo extends
|
|
7668
|
+
class Xo extends Jt {
|
|
7691
7669
|
/**
|
|
7692
7670
|
Construct an attribute step.
|
|
7693
7671
|
*/
|
|
@@ -7706,7 +7684,7 @@ class Xo extends Yt {
|
|
|
7706
7684
|
return Mt.fromReplace(t, this.pos, this.pos + 1, new F(N.from(i), 0, e.isLeaf ? 0 : 1));
|
|
7707
7685
|
}
|
|
7708
7686
|
getMap() {
|
|
7709
|
-
return
|
|
7687
|
+
return be.empty;
|
|
7710
7688
|
}
|
|
7711
7689
|
invert(t) {
|
|
7712
7690
|
return new Xo(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
|
|
@@ -7724,8 +7702,8 @@ class Xo extends Yt {
|
|
|
7724
7702
|
return new Xo(e.pos, e.attr, e.value);
|
|
7725
7703
|
}
|
|
7726
7704
|
}
|
|
7727
|
-
|
|
7728
|
-
class qi extends
|
|
7705
|
+
Jt.jsonID("attr", Xo);
|
|
7706
|
+
class qi extends Jt {
|
|
7729
7707
|
/**
|
|
7730
7708
|
Construct an attribute step.
|
|
7731
7709
|
*/
|
|
@@ -7741,7 +7719,7 @@ class qi extends Yt {
|
|
|
7741
7719
|
return Mt.ok(o);
|
|
7742
7720
|
}
|
|
7743
7721
|
getMap() {
|
|
7744
|
-
return
|
|
7722
|
+
return be.empty;
|
|
7745
7723
|
}
|
|
7746
7724
|
invert(t) {
|
|
7747
7725
|
return new qi(this.attr, t.attrs[this.attr]);
|
|
@@ -7758,7 +7736,7 @@ class qi extends Yt {
|
|
|
7758
7736
|
return new qi(e.attr, e.value);
|
|
7759
7737
|
}
|
|
7760
7738
|
}
|
|
7761
|
-
|
|
7739
|
+
Jt.jsonID("docAttr", qi);
|
|
7762
7740
|
let Zo = class extends Error {
|
|
7763
7741
|
};
|
|
7764
7742
|
Zo = function r(t) {
|
|
@@ -8104,7 +8082,7 @@ class Z {
|
|
|
8104
8082
|
negative, it will search backwards first.
|
|
8105
8083
|
*/
|
|
8106
8084
|
static near(t, e = 1) {
|
|
8107
|
-
return this.findFrom(t, e) || this.findFrom(t, -e) || new
|
|
8085
|
+
return this.findFrom(t, e) || this.findFrom(t, -e) || new ue(t.node(0));
|
|
8108
8086
|
}
|
|
8109
8087
|
/**
|
|
8110
8088
|
Find the cursor or leaf node selection closest to the start of
|
|
@@ -8113,14 +8091,14 @@ class Z {
|
|
|
8113
8091
|
exists.
|
|
8114
8092
|
*/
|
|
8115
8093
|
static atStart(t) {
|
|
8116
|
-
return jo(t, t, 0, 0, 1) || new
|
|
8094
|
+
return jo(t, t, 0, 0, 1) || new ue(t);
|
|
8117
8095
|
}
|
|
8118
8096
|
/**
|
|
8119
8097
|
Find the cursor or leaf node selection closest to the end of the
|
|
8120
8098
|
given document.
|
|
8121
8099
|
*/
|
|
8122
8100
|
static atEnd(t) {
|
|
8123
|
-
return jo(t, t, t.content.size, t.childCount, -1) || new
|
|
8101
|
+
return jo(t, t, t.content.size, t.childCount, -1) || new ue(t);
|
|
8124
8102
|
}
|
|
8125
8103
|
/**
|
|
8126
8104
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -8316,7 +8294,7 @@ class Fl {
|
|
|
8316
8294
|
return o && J.isSelectable(o) ? new J(e) : Z.near(e);
|
|
8317
8295
|
}
|
|
8318
8296
|
}
|
|
8319
|
-
class
|
|
8297
|
+
class ue extends Z {
|
|
8320
8298
|
/**
|
|
8321
8299
|
Create an all-selection over the given document.
|
|
8322
8300
|
*/
|
|
@@ -8338,25 +8316,25 @@ class xe extends Z {
|
|
|
8338
8316
|
@internal
|
|
8339
8317
|
*/
|
|
8340
8318
|
static fromJSON(t) {
|
|
8341
|
-
return new
|
|
8319
|
+
return new ue(t);
|
|
8342
8320
|
}
|
|
8343
8321
|
map(t) {
|
|
8344
|
-
return new
|
|
8322
|
+
return new ue(t);
|
|
8345
8323
|
}
|
|
8346
8324
|
eq(t) {
|
|
8347
|
-
return t instanceof
|
|
8325
|
+
return t instanceof ue;
|
|
8348
8326
|
}
|
|
8349
8327
|
getBookmark() {
|
|
8350
8328
|
return Gg;
|
|
8351
8329
|
}
|
|
8352
8330
|
}
|
|
8353
|
-
Z.jsonID("all",
|
|
8331
|
+
Z.jsonID("all", ue);
|
|
8354
8332
|
const Gg = {
|
|
8355
8333
|
map() {
|
|
8356
8334
|
return this;
|
|
8357
8335
|
},
|
|
8358
8336
|
resolve(r) {
|
|
8359
|
-
return new
|
|
8337
|
+
return new ue(r);
|
|
8360
8338
|
}
|
|
8361
8339
|
};
|
|
8362
8340
|
function jo(r, t, e, o, i, n = !1) {
|
|
@@ -8781,7 +8759,7 @@ const ws = /* @__PURE__ */ Object.create(null);
|
|
|
8781
8759
|
function Vb(r) {
|
|
8782
8760
|
return r in ws ? r + "$" + ++ws[r] : (ws[r] = 0, r + "$");
|
|
8783
8761
|
}
|
|
8784
|
-
class
|
|
8762
|
+
class oe {
|
|
8785
8763
|
/**
|
|
8786
8764
|
Create a plugin key.
|
|
8787
8765
|
*/
|
|
@@ -8917,7 +8895,7 @@ function of(r, t, e) {
|
|
|
8917
8895
|
}
|
|
8918
8896
|
const Je = typeof navigator < "u" ? navigator : null, pd = typeof document < "u" ? document : null, Gr = Je && Je.userAgent || "", nl = /Edge\/(\d+)/.exec(Gr), Wb = /MSIE \d/.exec(Gr), al = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gr), le = !!(Wb || al || nl), Hr = Wb ? document.documentMode : al ? +al[1] : nl ? +nl[1] : 0, $e = !le && /gecko\/(\d+)/i.test(Gr);
|
|
8919
8897
|
$e && +(/Firefox\/(\d+)/.exec(Gr) || [0, 0])[1];
|
|
8920
|
-
const sl = !le && /Chrome\/(\d+)/.exec(Gr),
|
|
8898
|
+
const sl = !le && /Chrome\/(\d+)/.exec(Gr), Gt = !!sl, qb = sl ? +sl[1] : 0, te = !le && !!Je && /Apple Computer/.test(Je.vendor), ei = te && (/Mobile\/\w+/.test(Gr) || !!Je && Je.maxTouchPoints > 2), Ce = ei || (Je ? /Mac/.test(Je.platform) : !1), nf = Je ? /Win/.test(Je.platform) : !1, cr = /Android \d/.test(Gr), pn = !!pd && "webkitFontSmoothing" in pd.documentElement.style, af = pn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
8921
8899
|
function sf(r) {
|
|
8922
8900
|
let t = r.defaultView && r.defaultView.visualViewport;
|
|
8923
8901
|
return t ? {
|
|
@@ -9103,7 +9081,7 @@ function gf(r, t) {
|
|
|
9103
9081
|
if (!Hl(t, p) || (a = Jb(r.dom, t, p), !a))
|
|
9104
9082
|
return null;
|
|
9105
9083
|
}
|
|
9106
|
-
if (
|
|
9084
|
+
if (te)
|
|
9107
9085
|
for (let p = a; o && p; p = ti(p))
|
|
9108
9086
|
p.draggable && (o = void 0);
|
|
9109
9087
|
if (a = mf(a, t), o) {
|
|
@@ -9511,7 +9489,7 @@ class dn {
|
|
|
9511
9489
|
x = f;
|
|
9512
9490
|
}
|
|
9513
9491
|
let s = this.domFromPos(t, t ? -1 : 1), l = e == t ? s : this.domFromPos(e, e ? -1 : 1), p = o.root.getSelection(), d = o.domSelectionRange(), c = !1;
|
|
9514
|
-
if (($e ||
|
|
9492
|
+
if (($e || te) && t == e) {
|
|
9515
9493
|
let { node: u, offset: x } = s;
|
|
9516
9494
|
if (u.nodeType == 3) {
|
|
9517
9495
|
if (c = !!(x && u.nodeValue[x - 1] == `
|
|
@@ -9534,7 +9512,7 @@ class dn {
|
|
|
9534
9512
|
let u = d.focusNode.childNodes[d.focusOffset];
|
|
9535
9513
|
u && u.contentEditable == "false" && (i = !0);
|
|
9536
9514
|
}
|
|
9537
|
-
if (!(i || c &&
|
|
9515
|
+
if (!(i || c && te) && Mo(s.node, s.offset, d.anchorNode, d.anchorOffset) && Mo(l.node, l.offset, d.focusNode, d.focusOffset))
|
|
9538
9516
|
return;
|
|
9539
9517
|
let m = !1;
|
|
9540
9518
|
if ((p.extend || t == e) && !c) {
|
|
@@ -10139,7 +10117,7 @@ class Mf {
|
|
|
10139
10117
|
for (; t instanceof Eo; )
|
|
10140
10118
|
e = t, t = e.children[e.children.length - 1];
|
|
10141
10119
|
(!t || // Empty textblock
|
|
10142
|
-
!(t instanceof Ga) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((
|
|
10120
|
+
!(t instanceof Ga) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((te || Gt) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", e), this.addHackNode("BR", this.top));
|
|
10143
10121
|
}
|
|
10144
10122
|
addHackNode(t, e) {
|
|
10145
10123
|
if (e == this.top && this.index < e.children.length && e.children[this.index].matchesHack(t))
|
|
@@ -10315,7 +10293,7 @@ function om(r) {
|
|
|
10315
10293
|
function ur(r, t = !1) {
|
|
10316
10294
|
let e = r.state.selection;
|
|
10317
10295
|
if (im(r, e), !!om(r)) {
|
|
10318
|
-
if (!t && r.input.mouseDown && r.input.mouseDown.allowDefault &&
|
|
10296
|
+
if (!t && r.input.mouseDown && r.input.mouseDown.allowDefault && Gt) {
|
|
10319
10297
|
let o = r.domSelectionRange(), i = r.domObserver.currentSelection;
|
|
10320
10298
|
if (o.anchorNode && i.anchorNode && Mo(o.anchorNode, o.anchorOffset, i.anchorNode, i.anchorOffset)) {
|
|
10321
10299
|
r.input.mouseDown.delayedSelectionSync = !0, r.domObserver.setCurSelection();
|
|
@@ -10331,10 +10309,10 @@ function ur(r, t = !1) {
|
|
|
10331
10309
|
r.domObserver.setCurSelection(), r.domObserver.connectSelection();
|
|
10332
10310
|
}
|
|
10333
10311
|
}
|
|
10334
|
-
const hd =
|
|
10312
|
+
const hd = te || Gt && qb < 63;
|
|
10335
10313
|
function yd(r, t) {
|
|
10336
10314
|
let { node: e, offset: o } = r.docView.domFromPos(t, 0), i = o < e.childNodes.length ? e.childNodes[o] : null, n = o ? e.childNodes[o - 1] : null;
|
|
10337
|
-
if (
|
|
10315
|
+
if (te && i && i.contentEditable == "false")
|
|
10338
10316
|
return ks(i);
|
|
10339
10317
|
if ((!i || i.contentEditable == "false") && (!n || n.contentEditable == "false")) {
|
|
10340
10318
|
if (i)
|
|
@@ -10344,7 +10322,7 @@ function yd(r, t) {
|
|
|
10344
10322
|
}
|
|
10345
10323
|
}
|
|
10346
10324
|
function ks(r) {
|
|
10347
|
-
return r.contentEditable = "true",
|
|
10325
|
+
return r.contentEditable = "true", te && r.draggable && (r.draggable = !1, r.wasDraggable = !0), r;
|
|
10348
10326
|
}
|
|
10349
10327
|
function wd(r) {
|
|
10350
10328
|
r.contentEditable = "false", r.wasDraggable && (r.draggable = !0, r.wasDraggable = null);
|
|
@@ -10559,7 +10537,7 @@ function cl(r, t, e) {
|
|
|
10559
10537
|
}
|
|
10560
10538
|
function Cd(r, t) {
|
|
10561
10539
|
let e = r.state.doc.resolve(t);
|
|
10562
|
-
if (!(
|
|
10540
|
+
if (!(Gt || nf) && e.parent.inlineContent) {
|
|
10563
10541
|
let i = r.coordsAtPos(t);
|
|
10564
10542
|
if (t > e.start()) {
|
|
10565
10543
|
let n = r.coordsAtPos(t - 1), a = (n.top + n.bottom) / 2;
|
|
@@ -10585,7 +10563,7 @@ function Md(r, t, e) {
|
|
|
10585
10563
|
return Er(r, a);
|
|
10586
10564
|
}
|
|
10587
10565
|
if (!i.parent.inlineContent) {
|
|
10588
|
-
let a = t < 0 ? i : n, s = o instanceof
|
|
10566
|
+
let a = t < 0 ? i : n, s = o instanceof ue ? Z.near(a, t) : Z.findFrom(a, t);
|
|
10589
10567
|
return s ? Er(r, s) : !1;
|
|
10590
10568
|
}
|
|
10591
10569
|
return !1;
|
|
@@ -10611,7 +10589,7 @@ function Td(r, t, e) {
|
|
|
10611
10589
|
r.domObserver.stop(), t.contentEditable = e, r.domObserver.start();
|
|
10612
10590
|
}
|
|
10613
10591
|
function _f(r) {
|
|
10614
|
-
if (!
|
|
10592
|
+
if (!te || r.state.selection.$head.parentOffset > 0)
|
|
10615
10593
|
return !1;
|
|
10616
10594
|
let { focusNode: t, focusOffset: e } = r.domSelectionRange();
|
|
10617
10595
|
if (t && t.nodeType == 1 && e == 0 && t.firstChild && t.firstChild.contentEditable == "false") {
|
|
@@ -10812,7 +10790,7 @@ function Wf(r) {
|
|
|
10812
10790
|
return e;
|
|
10813
10791
|
}
|
|
10814
10792
|
function qf(r) {
|
|
10815
|
-
let t = r.querySelectorAll(
|
|
10793
|
+
let t = r.querySelectorAll(Gt ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
10816
10794
|
for (let e = 0; e < t.length; e++) {
|
|
10817
10795
|
let o = t[e];
|
|
10818
10796
|
o.childNodes.length == 1 && o.textContent == " " && o.parentNode && o.parentNode.replaceChild(r.ownerDocument.createTextNode(" "), o);
|
|
@@ -10836,20 +10814,20 @@ function Uf(r, t) {
|
|
|
10836
10814
|
}
|
|
10837
10815
|
return new F(i, n, a);
|
|
10838
10816
|
}
|
|
10839
|
-
const
|
|
10817
|
+
const ee = {}, re = {}, Kf = { touchstart: !0, touchmove: !0 };
|
|
10840
10818
|
class Gf {
|
|
10841
10819
|
constructor() {
|
|
10842
10820
|
this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "", button: 0 }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
|
|
10843
10821
|
}
|
|
10844
10822
|
}
|
|
10845
10823
|
function Jf(r) {
|
|
10846
|
-
for (let t in
|
|
10847
|
-
let e =
|
|
10824
|
+
for (let t in ee) {
|
|
10825
|
+
let e = ee[t];
|
|
10848
10826
|
r.dom.addEventListener(t, r.input.eventHandlers[t] = (o) => {
|
|
10849
|
-
Xf(r, o) && !ql(r, o) && (r.editable || !(o.type in
|
|
10827
|
+
Xf(r, o) && !ql(r, o) && (r.editable || !(o.type in re)) && e(r, o);
|
|
10850
10828
|
}, Kf[t] ? { passive: !0 } : void 0);
|
|
10851
10829
|
}
|
|
10852
|
-
|
|
10830
|
+
te && r.dom.addEventListener("input", () => null), ml(r);
|
|
10853
10831
|
}
|
|
10854
10832
|
function _r(r, t) {
|
|
10855
10833
|
r.input.lastSelectionOrigin = t, r.input.lastSelectionTime = Date.now();
|
|
@@ -10883,11 +10861,11 @@ function Xf(r, t) {
|
|
|
10883
10861
|
return !0;
|
|
10884
10862
|
}
|
|
10885
10863
|
function Qf(r, t) {
|
|
10886
|
-
!ql(r, t) &&
|
|
10864
|
+
!ql(r, t) && ee[t.type] && (r.editable || !(t.type in re)) && ee[t.type](r, t);
|
|
10887
10865
|
}
|
|
10888
|
-
|
|
10866
|
+
re.keydown = (r, t) => {
|
|
10889
10867
|
let e = t;
|
|
10890
|
-
if (r.input.shiftKey = e.keyCode == 16 || e.shiftKey, !um(r, e) && (r.input.lastKeyCode = e.keyCode, r.input.lastKeyCodeTime = Date.now(), !(cr &&
|
|
10868
|
+
if (r.input.shiftKey = e.keyCode == 16 || e.shiftKey, !um(r, e) && (r.input.lastKeyCode = e.keyCode, r.input.lastKeyCodeTime = Date.now(), !(cr && Gt && e.keyCode == 13)))
|
|
10891
10869
|
if (e.keyCode != 229 && r.domObserver.forceFlush(), ei && e.keyCode == 13 && !e.ctrlKey && !e.altKey && !e.metaKey) {
|
|
10892
10870
|
let o = Date.now();
|
|
10893
10871
|
r.input.lastIOSEnter = o, r.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -10895,10 +10873,10 @@ oe.keydown = (r, t) => {
|
|
|
10895
10873
|
}, 200);
|
|
10896
10874
|
} else r.someProp("handleKeyDown", (o) => o(r, e)) || Ff(r, e) ? e.preventDefault() : _r(r, "key");
|
|
10897
10875
|
};
|
|
10898
|
-
|
|
10876
|
+
re.keyup = (r, t) => {
|
|
10899
10877
|
t.keyCode == 16 && (r.input.shiftKey = !1);
|
|
10900
10878
|
};
|
|
10901
|
-
|
|
10879
|
+
re.keypress = (r, t) => {
|
|
10902
10880
|
let e = t;
|
|
10903
10881
|
if (um(r, e) || !e.charCode || e.ctrlKey && !e.altKey || Ce && e.metaKey)
|
|
10904
10882
|
return;
|
|
@@ -10986,7 +10964,7 @@ function Kl(r) {
|
|
|
10986
10964
|
return ia(r);
|
|
10987
10965
|
}
|
|
10988
10966
|
const mm = Ce ? "metaKey" : "ctrlKey";
|
|
10989
|
-
|
|
10967
|
+
ee.mousedown = (r, t) => {
|
|
10990
10968
|
let e = t;
|
|
10991
10969
|
r.input.shiftKey = e.shiftKey;
|
|
10992
10970
|
let o = Kl(r), i = Date.now(), n = "singleClick";
|
|
@@ -11024,14 +11002,14 @@ class ah {
|
|
|
11024
11002
|
return;
|
|
11025
11003
|
let e = this.pos;
|
|
11026
11004
|
this.view.state.doc != this.startDoc && (e = this.view.posAtCoords(Ja(t))), this.updateAllowDefault(t), this.allowDefault || !e ? _r(this.view, "pointer") : rh(this.view, e.pos, e.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
11027
|
-
|
|
11005
|
+
te && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
11028
11006
|
// cursor, but still report that the node is selected
|
|
11029
11007
|
// when asked through getSelection. You'll then get a
|
|
11030
11008
|
// situation where clicking at the point where that
|
|
11031
11009
|
// (hidden) cursor is doesn't change the selection, and
|
|
11032
11010
|
// thus doesn't get a reaction from ProseMirror. This
|
|
11033
11011
|
// works around that.
|
|
11034
|
-
|
|
11012
|
+
Gt && !this.view.state.selection.visible && Math.min(Math.abs(e.pos - this.view.state.selection.from), Math.abs(e.pos - this.view.state.selection.to)) <= 2) ? (Qo(this.view, Z.near(this.view.state.doc.resolve(e.pos))), t.preventDefault()) : _r(this.view, "pointer");
|
|
11035
11013
|
}
|
|
11036
11014
|
move(t) {
|
|
11037
11015
|
this.updateAllowDefault(t), _r(this.view, "pointer"), t.buttons == 0 && this.done();
|
|
@@ -11040,18 +11018,18 @@ class ah {
|
|
|
11040
11018
|
!this.allowDefault && (Math.abs(this.event.x - t.clientX) > 4 || Math.abs(this.event.y - t.clientY) > 4) && (this.allowDefault = !0);
|
|
11041
11019
|
}
|
|
11042
11020
|
}
|
|
11043
|
-
|
|
11021
|
+
ee.touchstart = (r) => {
|
|
11044
11022
|
r.input.lastTouch = Date.now(), Kl(r), _r(r, "pointer");
|
|
11045
11023
|
};
|
|
11046
|
-
|
|
11024
|
+
ee.touchmove = (r) => {
|
|
11047
11025
|
r.input.lastTouch = Date.now(), _r(r, "pointer");
|
|
11048
11026
|
};
|
|
11049
|
-
|
|
11027
|
+
ee.contextmenu = (r) => Kl(r);
|
|
11050
11028
|
function um(r, t) {
|
|
11051
|
-
return r.composing ? !0 :
|
|
11029
|
+
return r.composing ? !0 : te && Math.abs(t.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
|
|
11052
11030
|
}
|
|
11053
11031
|
const sh = cr ? 5e3 : -1;
|
|
11054
|
-
|
|
11032
|
+
re.compositionstart = re.compositionupdate = (r) => {
|
|
11055
11033
|
if (!r.composing) {
|
|
11056
11034
|
r.domObserver.flush();
|
|
11057
11035
|
let { state: t } = r, e = t.selection.$to;
|
|
@@ -11075,7 +11053,7 @@ oe.compositionstart = oe.compositionupdate = (r) => {
|
|
|
11075
11053
|
}
|
|
11076
11054
|
xm(r, sh);
|
|
11077
11055
|
};
|
|
11078
|
-
|
|
11056
|
+
re.compositionend = (r, t) => {
|
|
11079
11057
|
r.composing && (r.input.composing = !1, r.input.compositionEndedAt = t.timeStamp, r.input.compositionPendingChanges = r.domObserver.pendingRecords().length ? r.input.compositionID : 0, r.input.compositionNode = null, r.input.compositionPendingChanges && Promise.resolve().then(() => r.domObserver.flush()), r.input.compositionID++, xm(r, 20));
|
|
11080
11058
|
};
|
|
11081
11059
|
function xm(r, t) {
|
|
@@ -11128,7 +11106,7 @@ function dh(r, t) {
|
|
|
11128
11106
|
}, 50);
|
|
11129
11107
|
}
|
|
11130
11108
|
const Ui = le && Hr < 15 || ei && af < 604;
|
|
11131
|
-
|
|
11109
|
+
ee.copy = re.cut = (r, t) => {
|
|
11132
11110
|
let e = t, o = r.state.selection, i = e.type == "cut";
|
|
11133
11111
|
if (o.empty)
|
|
11134
11112
|
return;
|
|
@@ -11164,7 +11142,7 @@ function fm(r) {
|
|
|
11164
11142
|
let e = r.getData("text/uri-list");
|
|
11165
11143
|
return e ? e.replace(/\r?\n/g, " ") : "";
|
|
11166
11144
|
}
|
|
11167
|
-
|
|
11145
|
+
re.paste = (r, t) => {
|
|
11168
11146
|
let e = t;
|
|
11169
11147
|
if (r.composing && !cr)
|
|
11170
11148
|
return;
|
|
@@ -11181,7 +11159,7 @@ function ym(r, t) {
|
|
|
11181
11159
|
let e = r.someProp("dragCopies", (o) => !o(t));
|
|
11182
11160
|
return e ?? !t[mh];
|
|
11183
11161
|
}
|
|
11184
|
-
|
|
11162
|
+
ee.dragstart = (r, t) => {
|
|
11185
11163
|
let e = t, o = r.input.mouseDown;
|
|
11186
11164
|
if (o && o.done(), !e.dataTransfer)
|
|
11187
11165
|
return;
|
|
@@ -11195,16 +11173,16 @@ re.dragstart = (r, t) => {
|
|
|
11195
11173
|
}
|
|
11196
11174
|
}
|
|
11197
11175
|
let s = (a || r.state.selection).content(), { dom: l, text: p, slice: d } = Wl(r, s);
|
|
11198
|
-
(!e.dataTransfer.files.length || !
|
|
11176
|
+
(!e.dataTransfer.files.length || !Gt || qb > 120) && e.dataTransfer.clearData(), e.dataTransfer.setData(Ui ? "Text" : "text/html", l.innerHTML), e.dataTransfer.effectAllowed = "copyMove", Ui || e.dataTransfer.setData("text/plain", p), r.dragging = new hm(d, ym(r, e), a);
|
|
11199
11177
|
};
|
|
11200
|
-
|
|
11178
|
+
ee.dragend = (r) => {
|
|
11201
11179
|
let t = r.dragging;
|
|
11202
11180
|
window.setTimeout(() => {
|
|
11203
11181
|
r.dragging == t && (r.dragging = null);
|
|
11204
11182
|
}, 50);
|
|
11205
11183
|
};
|
|
11206
|
-
|
|
11207
|
-
|
|
11184
|
+
re.dragover = re.dragenter = (r, t) => t.preventDefault();
|
|
11185
|
+
re.drop = (r, t) => {
|
|
11208
11186
|
let e = t, o = r.dragging;
|
|
11209
11187
|
if (r.dragging = null, !e.dataTransfer)
|
|
11210
11188
|
return;
|
|
@@ -11242,17 +11220,17 @@ oe.drop = (r, t) => {
|
|
|
11242
11220
|
}
|
|
11243
11221
|
r.focus(), r.dispatch(p.setMeta("uiEvent", "drop"));
|
|
11244
11222
|
};
|
|
11245
|
-
|
|
11223
|
+
ee.focus = (r) => {
|
|
11246
11224
|
r.input.lastFocus = Date.now(), r.focused || (r.domObserver.stop(), r.dom.classList.add("ProseMirror-focused"), r.domObserver.start(), r.focused = !0, setTimeout(() => {
|
|
11247
11225
|
r.docView && r.hasFocus() && !r.domObserver.currentSelection.eq(r.domSelectionRange()) && ur(r);
|
|
11248
11226
|
}, 20));
|
|
11249
11227
|
};
|
|
11250
|
-
|
|
11228
|
+
ee.blur = (r, t) => {
|
|
11251
11229
|
let e = t;
|
|
11252
11230
|
r.focused && (r.domObserver.stop(), r.dom.classList.remove("ProseMirror-focused"), r.domObserver.start(), e.relatedTarget && r.dom.contains(e.relatedTarget) && r.domObserver.currentSelection.clear(), r.focused = !1);
|
|
11253
11231
|
};
|
|
11254
|
-
|
|
11255
|
-
if (
|
|
11232
|
+
ee.beforeinput = (r, t) => {
|
|
11233
|
+
if (Gt && cr && t.inputType == "deleteContentBackward") {
|
|
11256
11234
|
r.domObserver.flushSoon();
|
|
11257
11235
|
let { domChangeCount: o } = r.input;
|
|
11258
11236
|
setTimeout(() => {
|
|
@@ -11263,8 +11241,8 @@ re.beforeinput = (r, t) => {
|
|
|
11263
11241
|
}, 50);
|
|
11264
11242
|
}
|
|
11265
11243
|
};
|
|
11266
|
-
for (let r in
|
|
11267
|
-
|
|
11244
|
+
for (let r in re)
|
|
11245
|
+
ee[r] = re[r];
|
|
11268
11246
|
function Gi(r, t) {
|
|
11269
11247
|
if (r == t)
|
|
11270
11248
|
return !0;
|
|
@@ -11420,7 +11398,7 @@ class Tt {
|
|
|
11420
11398
|
you must make a copy if you want need to preserve that.
|
|
11421
11399
|
*/
|
|
11422
11400
|
static create(t, e) {
|
|
11423
|
-
return e.length ? aa(e, t, 0, fo) :
|
|
11401
|
+
return e.length ? aa(e, t, 0, fo) : qt;
|
|
11424
11402
|
}
|
|
11425
11403
|
/**
|
|
11426
11404
|
Find all decorations in this set which touch the given range
|
|
@@ -11450,7 +11428,7 @@ class Tt {
|
|
|
11450
11428
|
document.
|
|
11451
11429
|
*/
|
|
11452
11430
|
map(t, e, o) {
|
|
11453
|
-
return this ==
|
|
11431
|
+
return this == qt || t.maps.length == 0 ? this : this.mapInner(t, e, 0, 0, o || fo);
|
|
11454
11432
|
}
|
|
11455
11433
|
/**
|
|
11456
11434
|
@internal
|
|
@@ -11461,7 +11439,7 @@ class Tt {
|
|
|
11461
11439
|
let l = this.local[s].map(t, o, i);
|
|
11462
11440
|
l && l.type.valid(e, l) ? (a || (a = [])).push(l) : n.onRemove && n.onRemove(this.local[s].spec);
|
|
11463
11441
|
}
|
|
11464
|
-
return this.children.length ? uh(this.children, a || [], t, e, o, i, n) : a ? new Tt(a.sort(ho), Vo) :
|
|
11442
|
+
return this.children.length ? uh(this.children, a || [], t, e, o, i, n) : a ? new Tt(a.sort(ho), Vo) : qt;
|
|
11465
11443
|
}
|
|
11466
11444
|
/**
|
|
11467
11445
|
Add the given array of decorations to the ones in the set,
|
|
@@ -11470,7 +11448,7 @@ class Tt {
|
|
|
11470
11448
|
structure.
|
|
11471
11449
|
*/
|
|
11472
11450
|
add(t, e) {
|
|
11473
|
-
return e.length ? this ==
|
|
11451
|
+
return e.length ? this == qt ? Tt.create(t, e) : this.addInner(t, e, 0) : this;
|
|
11474
11452
|
}
|
|
11475
11453
|
addInner(t, e, o) {
|
|
11476
11454
|
let i, n = 0;
|
|
@@ -11492,7 +11470,7 @@ class Tt {
|
|
|
11492
11470
|
the ones in the given array.
|
|
11493
11471
|
*/
|
|
11494
11472
|
remove(t) {
|
|
11495
|
-
return t.length == 0 || this ==
|
|
11473
|
+
return t.length == 0 || this == qt ? this : this.removeInner(t, 0);
|
|
11496
11474
|
}
|
|
11497
11475
|
removeInner(t, e) {
|
|
11498
11476
|
let o = this.children, i = this.local;
|
|
@@ -11504,7 +11482,7 @@ class Tt {
|
|
|
11504
11482
|
continue;
|
|
11505
11483
|
o == this.children && (o = this.children.slice());
|
|
11506
11484
|
let p = o[n + 2].removeInner(a, s + 1);
|
|
11507
|
-
p !=
|
|
11485
|
+
p != qt ? o[n + 2] = p : (o.splice(n, 3), n -= 3);
|
|
11508
11486
|
}
|
|
11509
11487
|
if (i.length) {
|
|
11510
11488
|
for (let n = 0, a; n < t.length; n++)
|
|
@@ -11512,10 +11490,10 @@ class Tt {
|
|
|
11512
11490
|
for (let s = 0; s < i.length; s++)
|
|
11513
11491
|
i[s].eq(a, e) && (i == this.local && (i = this.local.slice()), i.splice(s--, 1));
|
|
11514
11492
|
}
|
|
11515
|
-
return o == this.children && i == this.local ? this : i.length || o.length ? new Tt(i, o) :
|
|
11493
|
+
return o == this.children && i == this.local ? this : i.length || o.length ? new Tt(i, o) : qt;
|
|
11516
11494
|
}
|
|
11517
11495
|
forChild(t, e) {
|
|
11518
|
-
if (this ==
|
|
11496
|
+
if (this == qt)
|
|
11519
11497
|
return this;
|
|
11520
11498
|
if (e.isLeaf)
|
|
11521
11499
|
return Tt.empty;
|
|
@@ -11537,7 +11515,7 @@ class Tt {
|
|
|
11537
11515
|
let s = new Tt(i.sort(ho), Vo);
|
|
11538
11516
|
return o ? new Pr([s, o]) : s;
|
|
11539
11517
|
}
|
|
11540
|
-
return o ||
|
|
11518
|
+
return o || qt;
|
|
11541
11519
|
}
|
|
11542
11520
|
/**
|
|
11543
11521
|
@internal
|
|
@@ -11565,7 +11543,7 @@ class Tt {
|
|
|
11565
11543
|
@internal
|
|
11566
11544
|
*/
|
|
11567
11545
|
localsInner(t) {
|
|
11568
|
-
if (this ==
|
|
11546
|
+
if (this == qt)
|
|
11569
11547
|
return Vo;
|
|
11570
11548
|
if (t.inlineContent || !this.local.some(Vr.is))
|
|
11571
11549
|
return this.local;
|
|
@@ -11580,7 +11558,7 @@ class Tt {
|
|
|
11580
11558
|
}
|
|
11581
11559
|
Tt.empty = new Tt([], []);
|
|
11582
11560
|
Tt.removeOverlap = Jl;
|
|
11583
|
-
const
|
|
11561
|
+
const qt = Tt.empty;
|
|
11584
11562
|
class Pr {
|
|
11585
11563
|
constructor(t) {
|
|
11586
11564
|
this.members = t;
|
|
@@ -11595,7 +11573,7 @@ class Pr {
|
|
|
11595
11573
|
let o = [];
|
|
11596
11574
|
for (let i = 0; i < this.members.length; i++) {
|
|
11597
11575
|
let n = this.members[i].forChild(t, e);
|
|
11598
|
-
n !=
|
|
11576
|
+
n != qt && (n instanceof Pr ? o = o.concat(n.members) : o.push(n));
|
|
11599
11577
|
}
|
|
11600
11578
|
return Pr.from(o);
|
|
11601
11579
|
}
|
|
@@ -11627,7 +11605,7 @@ class Pr {
|
|
|
11627
11605
|
static from(t) {
|
|
11628
11606
|
switch (t.length) {
|
|
11629
11607
|
case 0:
|
|
11630
|
-
return
|
|
11608
|
+
return qt;
|
|
11631
11609
|
case 1:
|
|
11632
11610
|
return t[0];
|
|
11633
11611
|
default:
|
|
@@ -11670,7 +11648,7 @@ function uh(r, t, e, o, i, n, a) {
|
|
|
11670
11648
|
let m = e.map(r[p + 1] + n, -1), u = m - i, { index: x, offset: g } = o.content.findIndex(c), f = o.maybeChild(x);
|
|
11671
11649
|
if (f && g == c && g + f.nodeSize == u) {
|
|
11672
11650
|
let y = s[p + 2].mapInner(e, f, d + 1, r[p] + n + 1, a);
|
|
11673
|
-
y !=
|
|
11651
|
+
y != qt ? (s[p] = c, s[p + 1] = u, s[p + 2] = y) : (s[p + 1] = -2, l = !0);
|
|
11674
11652
|
} else
|
|
11675
11653
|
l = !0;
|
|
11676
11654
|
}
|
|
@@ -11732,13 +11710,13 @@ function aa(r, t, e, o) {
|
|
|
11732
11710
|
if (p) {
|
|
11733
11711
|
n = !0;
|
|
11734
11712
|
let d = aa(p, s, e + l + 1, o);
|
|
11735
|
-
d !=
|
|
11713
|
+
d != qt && i.push(l, l + s.nodeSize, d);
|
|
11736
11714
|
}
|
|
11737
11715
|
});
|
|
11738
11716
|
let a = wm(n ? km(r) : r, -e).sort(ho);
|
|
11739
11717
|
for (let s = 0; s < a.length; s++)
|
|
11740
11718
|
a[s].type.valid(t, a[s]) || (o.onRemove && o.onRemove(a[s].spec), a.splice(s--, 1));
|
|
11741
|
-
return a.length || i.length ? new Tt(a, i) :
|
|
11719
|
+
return a.length || i.length ? new Tt(a, i) : qt;
|
|
11742
11720
|
}
|
|
11743
11721
|
function ho(r, t) {
|
|
11744
11722
|
return r.from - t.from || r.to - t.to;
|
|
@@ -11770,7 +11748,7 @@ function Cs(r) {
|
|
|
11770
11748
|
let t = [];
|
|
11771
11749
|
return r.someProp("decorations", (e) => {
|
|
11772
11750
|
let o = e(r.state);
|
|
11773
|
-
o && o !=
|
|
11751
|
+
o && o != qt && t.push(o);
|
|
11774
11752
|
}), r.cursorWrapper && t.push(Tt.create(r.state.doc, [r.cursorWrapper.deco])), Pr.from(t);
|
|
11775
11753
|
}
|
|
11776
11754
|
const gh = {
|
|
@@ -11971,7 +11949,7 @@ function kh(r, t) {
|
|
|
11971
11949
|
}
|
|
11972
11950
|
function Sh(r, t, e) {
|
|
11973
11951
|
let { node: o, fromOffset: i, toOffset: n, from: a, to: s } = r.docView.parseRange(t, e), l = r.domSelectionRange(), p, d = l.anchorNode;
|
|
11974
|
-
if (d && r.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (p = [{ node: d, offset: l.anchorOffset }], Ka(l) || p.push({ node: l.focusNode, offset: l.focusOffset })),
|
|
11952
|
+
if (d && r.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (p = [{ node: d, offset: l.anchorOffset }], Ka(l) || p.push({ node: l.focusNode, offset: l.focusOffset })), Gt && r.input.lastKeyCode === 8)
|
|
11975
11953
|
for (let f = n; f > i; f--) {
|
|
11976
11954
|
let y = o.childNodes[f - 1], w = y.pmViewDesc;
|
|
11977
11955
|
if (y.nodeName == "BR" && !w) {
|
|
@@ -12003,10 +11981,10 @@ function Ch(r) {
|
|
|
12003
11981
|
if (t)
|
|
12004
11982
|
return t.parseRule();
|
|
12005
11983
|
if (r.nodeName == "BR" && r.parentNode) {
|
|
12006
|
-
if (
|
|
11984
|
+
if (te && /^(ul|ol)$/i.test(r.parentNode.nodeName)) {
|
|
12007
11985
|
let e = document.createElement("div");
|
|
12008
11986
|
return e.appendChild(document.createElement("li")), { skip: e };
|
|
12009
|
-
} else if (r.parentNode.lastChild == r ||
|
|
11987
|
+
} else if (r.parentNode.lastChild == r || te && /^(tr|table)$/i.test(r.parentNode.nodeName))
|
|
12010
11988
|
return { ignore: !0 };
|
|
12011
11989
|
} else if (r.nodeName == "IMG" && r.getAttribute("mark-placeholder"))
|
|
12012
11990
|
return { ignore: !0 };
|
|
@@ -12018,7 +11996,7 @@ function Eh(r, t, e, o, i) {
|
|
|
12018
11996
|
if (r.input.compositionPendingChanges = 0, t < 0) {
|
|
12019
11997
|
let R = r.input.lastSelectionTime > Date.now() - 50 ? r.input.lastSelectionOrigin : null, H = jl(r, R);
|
|
12020
11998
|
if (H && !r.state.selection.eq(H)) {
|
|
12021
|
-
if (
|
|
11999
|
+
if (Gt && cr && r.input.lastKeyCode === 13 && Date.now() - 100 < r.input.lastKeyCodeTime && r.someProp("handleKeyDown", (E) => E(r, lo(13, "Enter"))))
|
|
12022
12000
|
return;
|
|
12023
12001
|
let P = r.state.tr.setSelection(H);
|
|
12024
12002
|
R == "pointer" ? P.setMeta("pointer", !0) : R == "key" && P.scrollIntoView(), n && P.setMeta("composition", n), r.dispatch(P);
|
|
@@ -12054,10 +12032,10 @@ function Eh(r, t, e, o, i) {
|
|
|
12054
12032
|
return;
|
|
12055
12033
|
}
|
|
12056
12034
|
if (r.state.selection.anchor > x.start && Oh(d, x.start, x.endA, g, f) && r.someProp("handleKeyDown", (R) => R(r, lo(8, "Backspace")))) {
|
|
12057
|
-
cr &&
|
|
12035
|
+
cr && Gt && r.domObserver.suppressSelectionUpdates();
|
|
12058
12036
|
return;
|
|
12059
12037
|
}
|
|
12060
|
-
|
|
12038
|
+
Gt && x.endB == x.start && (r.input.lastChromeDelete = Date.now()), cr && !w && g.start() != f.start() && f.parentOffset == 0 && g.depth == f.depth && p.sel && p.sel.anchor == p.sel.head && p.sel.head == x.endA && (x.endB -= 2, f = p.doc.resolveNoCache(x.endB - p.from), setTimeout(() => {
|
|
12061
12039
|
r.someProp("handleKeyDown", function(R) {
|
|
12062
12040
|
return R(r, lo(13, "Enter"));
|
|
12063
12041
|
});
|
|
@@ -12066,7 +12044,7 @@ function Eh(r, t, e, o, i) {
|
|
|
12066
12044
|
let H = R || r.state.tr.replace(h, B, p.doc.slice(x.start - p.from, x.endB - p.from));
|
|
12067
12045
|
if (p.sel) {
|
|
12068
12046
|
let P = Id(r, H.doc, p.sel);
|
|
12069
|
-
P && !(
|
|
12047
|
+
P && !(Gt && r.composing && P.empty && (x.start != x.endB || r.input.lastChromeDelete < Date.now() - 100) && (P.head == h || P.head == H.mapping.map(B) - 1) || le && P.empty && P.head == h) && H.setSelection(P);
|
|
12070
12048
|
}
|
|
12071
12049
|
return n && H.setMeta("composition", n), H.scrollIntoView();
|
|
12072
12050
|
}, A;
|
|
@@ -12238,9 +12216,9 @@ class Sm {
|
|
|
12238
12216
|
let m = d == "preserve" && a && this.dom.style.overflowAnchor == null && pf(this);
|
|
12239
12217
|
if (a) {
|
|
12240
12218
|
this.domObserver.stop();
|
|
12241
|
-
let u = c && (le ||
|
|
12219
|
+
let u = c && (le || Gt) && !this.composing && !i.selection.empty && !t.selection.empty && Ph(i.selection, t.selection);
|
|
12242
12220
|
if (c) {
|
|
12243
|
-
let x =
|
|
12221
|
+
let x = Gt ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
12244
12222
|
this.composing && (this.input.compositionNode = lh(this)), (n || !this.docView.update(t.doc, p, l, this)) && (this.docView.updateOuterDeco(p), this.docView.destroy(), this.docView = gd(t.doc, p, l, this.dom, this)), x && !this.trackWrites && (u = !0);
|
|
12245
12223
|
}
|
|
12246
12224
|
u || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Nf(this)) ? ur(this, u) : (im(this, t.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
@@ -12484,7 +12462,7 @@ class Sm {
|
|
|
12484
12462
|
*/
|
|
12485
12463
|
domSelectionRange() {
|
|
12486
12464
|
let t = this.domSelection();
|
|
12487
|
-
return t ?
|
|
12465
|
+
return t ? te && this.root.nodeType === 11 && rf(this.dom.ownerDocument) == this.dom && vh(this, t) || t : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
|
|
12488
12466
|
}
|
|
12489
12467
|
/**
|
|
12490
12468
|
@internal
|
|
@@ -12889,7 +12867,7 @@ const qh = (r, t) => {
|
|
|
12889
12867
|
return !0;
|
|
12890
12868
|
}, Nm = (r, t) => {
|
|
12891
12869
|
let e = r.selection, { $from: o, $to: i } = e;
|
|
12892
|
-
if (e instanceof
|
|
12870
|
+
if (e instanceof ue || o.parent.inlineContent || i.parent.inlineContent)
|
|
12893
12871
|
return !1;
|
|
12894
12872
|
let n = Zl(i.parent.contentMatchAt(i.indexAfter()));
|
|
12895
12873
|
if (!n || !n.isTextblock)
|
|
@@ -12929,7 +12907,7 @@ function Uh(r) {
|
|
|
12929
12907
|
n.unshift(null);
|
|
12930
12908
|
}
|
|
12931
12909
|
let d = t.tr;
|
|
12932
|
-
(t.selection instanceof Q || t.selection instanceof
|
|
12910
|
+
(t.selection instanceof Q || t.selection instanceof ue) && d.deleteSelection();
|
|
12933
12911
|
let c = d.mapping.map(o.pos), m = mr(d.doc, c, n.length, n);
|
|
12934
12912
|
if (m || (n[0] = s ? { type: s } : null, m = mr(d.doc, c, n.length, n)), !m)
|
|
12935
12913
|
return !1;
|
|
@@ -14054,7 +14032,7 @@ const v0 = jt.create({
|
|
|
14054
14032
|
addProseMirrorPlugins() {
|
|
14055
14033
|
return [
|
|
14056
14034
|
new Bt({
|
|
14057
|
-
key: new
|
|
14035
|
+
key: new oe("clipboardTextSerializer"),
|
|
14058
14036
|
props: {
|
|
14059
14037
|
clipboardTextSerializer: () => {
|
|
14060
14038
|
const { editor: r } = this, { state: t, schema: e } = r, { doc: o, selection: i } = t, { ranges: n } = i, a = Math.min(...n.map((d) => d.$from.pos)), s = Math.max(...n.map((d) => d.$to.pos)), l = op(e);
|
|
@@ -14458,7 +14436,7 @@ const o1 = (r, t) => ({ tr: e, state: o, dispatch: i }) => {
|
|
|
14458
14436
|
}), !0) : !1;
|
|
14459
14437
|
}, i1 = () => ({ tr: r, dispatch: t }) => (t && r.scrollIntoView(), !0), n1 = () => ({ tr: r, dispatch: t }) => {
|
|
14460
14438
|
if (t) {
|
|
14461
|
-
const e = new
|
|
14439
|
+
const e = new ue(r.doc);
|
|
14462
14440
|
r.setSelection(e);
|
|
14463
14441
|
}
|
|
14464
14442
|
return !0;
|
|
@@ -15040,7 +15018,7 @@ const H1 = jt.create({
|
|
|
15040
15018
|
addProseMirrorPlugins() {
|
|
15041
15019
|
return [
|
|
15042
15020
|
new Bt({
|
|
15043
|
-
key: new
|
|
15021
|
+
key: new oe("tiptapDrop"),
|
|
15044
15022
|
props: {
|
|
15045
15023
|
handleDrop: (r, t, e, o) => {
|
|
15046
15024
|
this.editor.emit("drop", {
|
|
@@ -15059,14 +15037,14 @@ const H1 = jt.create({
|
|
|
15059
15037
|
addProseMirrorPlugins() {
|
|
15060
15038
|
return [
|
|
15061
15039
|
new Bt({
|
|
15062
|
-
key: new
|
|
15040
|
+
key: new oe("editable"),
|
|
15063
15041
|
props: {
|
|
15064
15042
|
editable: () => this.editor.options.editable
|
|
15065
15043
|
}
|
|
15066
15044
|
})
|
|
15067
15045
|
];
|
|
15068
15046
|
}
|
|
15069
|
-
}), W1 = new
|
|
15047
|
+
}), W1 = new oe("focusEvents"), q1 = jt.create({
|
|
15070
15048
|
name: "focusEvents",
|
|
15071
15049
|
addProseMirrorPlugins() {
|
|
15072
15050
|
const { editor: r } = this;
|
|
@@ -15145,7 +15123,7 @@ const H1 = jt.create({
|
|
|
15145
15123
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
15146
15124
|
// with many other commands.
|
|
15147
15125
|
new Bt({
|
|
15148
|
-
key: new
|
|
15126
|
+
key: new oe("clearDocument"),
|
|
15149
15127
|
appendTransaction: (r, t, e) => {
|
|
15150
15128
|
if (r.some((g) => g.getMeta("composition")))
|
|
15151
15129
|
return;
|
|
@@ -15173,7 +15151,7 @@ const H1 = jt.create({
|
|
|
15173
15151
|
addProseMirrorPlugins() {
|
|
15174
15152
|
return [
|
|
15175
15153
|
new Bt({
|
|
15176
|
-
key: new
|
|
15154
|
+
key: new oe("tiptapPaste"),
|
|
15177
15155
|
props: {
|
|
15178
15156
|
handlePaste: (r, t, e) => {
|
|
15179
15157
|
this.editor.emit("paste", {
|
|
@@ -15191,7 +15169,7 @@ const H1 = jt.create({
|
|
|
15191
15169
|
addProseMirrorPlugins() {
|
|
15192
15170
|
return [
|
|
15193
15171
|
new Bt({
|
|
15194
|
-
key: new
|
|
15172
|
+
key: new oe("tabindex"),
|
|
15195
15173
|
props: {
|
|
15196
15174
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
15197
15175
|
}
|
|
@@ -15886,7 +15864,7 @@ var pe = "top", Be = "bottom", Pe = "right", de = "left", dp = "auto", cn = [pe,
|
|
|
15886
15864
|
function Xe(r) {
|
|
15887
15865
|
return r ? (r.nodeName || "").toLowerCase() : null;
|
|
15888
15866
|
}
|
|
15889
|
-
function
|
|
15867
|
+
function xe(r) {
|
|
15890
15868
|
if (r == null)
|
|
15891
15869
|
return window;
|
|
15892
15870
|
if (r.toString() !== "[object Window]") {
|
|
@@ -15896,17 +15874,17 @@ function ge(r) {
|
|
|
15896
15874
|
return r;
|
|
15897
15875
|
}
|
|
15898
15876
|
function Oo(r) {
|
|
15899
|
-
var t =
|
|
15877
|
+
var t = xe(r).Element;
|
|
15900
15878
|
return r instanceof t || r instanceof Element;
|
|
15901
15879
|
}
|
|
15902
15880
|
function Oe(r) {
|
|
15903
|
-
var t =
|
|
15881
|
+
var t = xe(r).HTMLElement;
|
|
15904
15882
|
return r instanceof t || r instanceof HTMLElement;
|
|
15905
15883
|
}
|
|
15906
15884
|
function cp(r) {
|
|
15907
15885
|
if (typeof ShadowRoot > "u")
|
|
15908
15886
|
return !1;
|
|
15909
|
-
var t =
|
|
15887
|
+
var t = xe(r).ShadowRoot;
|
|
15910
15888
|
return r instanceof t || r instanceof ShadowRoot;
|
|
15911
15889
|
}
|
|
15912
15890
|
function cy(r) {
|
|
@@ -15968,7 +15946,7 @@ function ai(r, t, e) {
|
|
|
15968
15946
|
t === void 0 && (t = !1), e === void 0 && (e = !1);
|
|
15969
15947
|
var o = r.getBoundingClientRect(), i = 1, n = 1;
|
|
15970
15948
|
t && Oe(r) && (i = r.offsetWidth > 0 && ni(o.width) / r.offsetWidth || 1, n = r.offsetHeight > 0 && ni(o.height) / r.offsetHeight || 1);
|
|
15971
|
-
var a = Oo(r) ?
|
|
15949
|
+
var a = Oo(r) ? xe(r) : window, s = a.visualViewport, l = !Qm() && e, p = (o.left + (l && s ? s.offsetLeft : 0)) / i, d = (o.top + (l && s ? s.offsetTop : 0)) / n, c = o.width / i, m = o.height / n;
|
|
15972
15950
|
return {
|
|
15973
15951
|
width: c,
|
|
15974
15952
|
height: m,
|
|
@@ -16004,7 +15982,7 @@ function Zm(r, t) {
|
|
|
16004
15982
|
return !1;
|
|
16005
15983
|
}
|
|
16006
15984
|
function fr(r) {
|
|
16007
|
-
return
|
|
15985
|
+
return xe(r).getComputedStyle(r);
|
|
16008
15986
|
}
|
|
16009
15987
|
function my(r) {
|
|
16010
15988
|
return ["table", "td", "th"].indexOf(Xe(r)) >= 0;
|
|
@@ -16048,7 +16026,7 @@ function uy(r) {
|
|
|
16048
16026
|
return null;
|
|
16049
16027
|
}
|
|
16050
16028
|
function bn(r) {
|
|
16051
|
-
for (var t =
|
|
16029
|
+
for (var t = xe(r), e = Yd(r); e && my(e) && fr(e).position === "static"; )
|
|
16052
16030
|
e = Yd(e);
|
|
16053
16031
|
return e && (Xe(e) === "html" || Xe(e) === "body" && fr(e).position === "static") ? t : e || uy(r) || t;
|
|
16054
16032
|
}
|
|
@@ -16131,7 +16109,7 @@ function Xd(r) {
|
|
|
16131
16109
|
var y = a.hasOwnProperty("x"), w = a.hasOwnProperty("y"), k = de, h = pe, B = window;
|
|
16132
16110
|
if (p) {
|
|
16133
16111
|
var M = bn(e), A = "clientHeight", R = "clientWidth";
|
|
16134
|
-
if (M ===
|
|
16112
|
+
if (M === xe(e) && (M = Yr(e), fr(M).position !== "static" && s === "absolute" && (A = "scrollHeight", R = "scrollWidth")), M = M, i === pe || (i === de || i === Pe) && n === Qi) {
|
|
16135
16113
|
h = Be;
|
|
16136
16114
|
var H = c && M === B && B.visualViewport ? B.visualViewport.height : (
|
|
16137
16115
|
// $FlowFixMe[prop-missing]
|
|
@@ -16153,7 +16131,7 @@ function Xd(r) {
|
|
|
16153
16131
|
}, p && wy), z = d === !0 ? vy({
|
|
16154
16132
|
x: u,
|
|
16155
16133
|
y: g
|
|
16156
|
-
},
|
|
16134
|
+
}, xe(e)) : {
|
|
16157
16135
|
x: u,
|
|
16158
16136
|
y: g
|
|
16159
16137
|
};
|
|
@@ -16197,7 +16175,7 @@ var Bn = {
|
|
|
16197
16175
|
passive: !0
|
|
16198
16176
|
};
|
|
16199
16177
|
function Cy(r) {
|
|
16200
|
-
var t = r.state, e = r.instance, o = r.options, i = o.scroll, n = i === void 0 ? !0 : i, a = o.resize, s = a === void 0 ? !0 : a, l =
|
|
16178
|
+
var t = r.state, e = r.instance, o = r.options, i = o.scroll, n = i === void 0 ? !0 : i, a = o.resize, s = a === void 0 ? !0 : a, l = xe(t.elements.popper), p = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
16201
16179
|
return n && p.forEach(function(d) {
|
|
16202
16180
|
d.addEventListener("scroll", e.update, Bn);
|
|
16203
16181
|
}), s && l.addEventListener("resize", e.update, Bn), function() {
|
|
@@ -16236,7 +16214,7 @@ function Qd(r) {
|
|
|
16236
16214
|
});
|
|
16237
16215
|
}
|
|
16238
16216
|
function up(r) {
|
|
16239
|
-
var t =
|
|
16217
|
+
var t = xe(r), e = t.pageXOffset, o = t.pageYOffset;
|
|
16240
16218
|
return {
|
|
16241
16219
|
scrollLeft: e,
|
|
16242
16220
|
scrollTop: o
|
|
@@ -16246,7 +16224,7 @@ function xp(r) {
|
|
|
16246
16224
|
return ai(Yr(r)).left + up(r).scrollLeft;
|
|
16247
16225
|
}
|
|
16248
16226
|
function Oy(r, t) {
|
|
16249
|
-
var e =
|
|
16227
|
+
var e = xe(r), o = Yr(r), i = e.visualViewport, n = o.clientWidth, a = o.clientHeight, s = 0, l = 0;
|
|
16250
16228
|
if (i) {
|
|
16251
16229
|
n = i.width, a = i.height;
|
|
16252
16230
|
var p = Qm();
|
|
@@ -16278,7 +16256,7 @@ function ou(r) {
|
|
|
16278
16256
|
function Di(r, t) {
|
|
16279
16257
|
var e;
|
|
16280
16258
|
t === void 0 && (t = []);
|
|
16281
|
-
var o = ou(r), i = o === ((e = r.ownerDocument) == null ? void 0 : e.body), n =
|
|
16259
|
+
var o = ou(r), i = o === ((e = r.ownerDocument) == null ? void 0 : e.body), n = xe(o), a = i ? [n].concat(n.visualViewport || [], gp(o) ? o : []) : o, s = t.concat(a);
|
|
16282
16260
|
return i ? s : (
|
|
16283
16261
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
16284
16262
|
s.concat(Di(rs(a)))
|
|
@@ -16409,8 +16387,8 @@ function Iy(r) {
|
|
|
16409
16387
|
function Ly(r) {
|
|
16410
16388
|
var t = r.state, e = r.options, o = r.name;
|
|
16411
16389
|
if (!t.modifiersData[o]._skip) {
|
|
16412
|
-
for (var i = e.mainAxis, n = i === void 0 ? !0 : i, a = e.altAxis, s = a === void 0 ? !0 : a, l = e.fallbackPlacements, p = e.padding, d = e.boundary, c = e.rootBoundary, m = e.altBoundary, u = e.flipVariations, x = u === void 0 ? !0 : u, g = e.allowedAutoPlacements, f = t.options.placement, y = Ge(f), w = y === f, k = l || (w || !x ? [qn(f)] : Iy(f)), h = [f].concat(k).reduce(function(
|
|
16413
|
-
return
|
|
16390
|
+
for (var i = e.mainAxis, n = i === void 0 ? !0 : i, a = e.altAxis, s = a === void 0 ? !0 : a, l = e.fallbackPlacements, p = e.padding, d = e.boundary, c = e.rootBoundary, m = e.altBoundary, u = e.flipVariations, x = u === void 0 ? !0 : u, g = e.allowedAutoPlacements, f = t.options.placement, y = Ge(f), w = y === f, k = l || (w || !x ? [qn(f)] : Iy(f)), h = [f].concat(k).reduce(function(ge, Vt) {
|
|
16391
|
+
return ge.concat(Ge(Vt) === dp ? Ny(t, {
|
|
16414
16392
|
placement: Vt,
|
|
16415
16393
|
boundary: d,
|
|
16416
16394
|
rootBoundary: c,
|
|
@@ -16427,9 +16405,9 @@ function Ly(r) {
|
|
|
16427
16405
|
padding: p
|
|
16428
16406
|
}), K = bt ? X ? Pe : de : X ? Be : pe;
|
|
16429
16407
|
B[ut] > M[ut] && (K = qn(K));
|
|
16430
|
-
var
|
|
16431
|
-
if (n && gt.push(it[z] <= 0), s && gt.push(it[K] <= 0, it[
|
|
16432
|
-
return
|
|
16408
|
+
var lt = qn(K), gt = [];
|
|
16409
|
+
if (n && gt.push(it[z] <= 0), s && gt.push(it[K] <= 0, it[lt] <= 0), gt.every(function(ge) {
|
|
16410
|
+
return ge;
|
|
16433
16411
|
})) {
|
|
16434
16412
|
H = E, R = !1;
|
|
16435
16413
|
break;
|
|
@@ -16437,18 +16415,18 @@ function Ly(r) {
|
|
|
16437
16415
|
A.set(E, gt);
|
|
16438
16416
|
}
|
|
16439
16417
|
if (R)
|
|
16440
|
-
for (var
|
|
16441
|
-
var
|
|
16442
|
-
var
|
|
16443
|
-
if (
|
|
16444
|
-
return
|
|
16418
|
+
for (var ie = x ? 3 : 1, Qe = function(Vt) {
|
|
16419
|
+
var fe = h.find(function(tr) {
|
|
16420
|
+
var he = A.get(tr);
|
|
16421
|
+
if (he)
|
|
16422
|
+
return he.slice(0, Vt).every(function(er) {
|
|
16445
16423
|
return er;
|
|
16446
16424
|
});
|
|
16447
16425
|
});
|
|
16448
|
-
if (
|
|
16449
|
-
return H =
|
|
16450
|
-
},
|
|
16451
|
-
var Ze = Qe(
|
|
16426
|
+
if (fe)
|
|
16427
|
+
return H = fe, "break";
|
|
16428
|
+
}, Yt = ie; Yt > 0; Yt--) {
|
|
16429
|
+
var Ze = Qe(Yt);
|
|
16452
16430
|
if (Ze === "break") break;
|
|
16453
16431
|
}
|
|
16454
16432
|
t.placement !== H && (t.modifiersData[o]._skip = !0, t.placement = H, t.reset = !0);
|
|
@@ -16566,15 +16544,15 @@ function qy(r) {
|
|
|
16566
16544
|
};
|
|
16567
16545
|
if (M) {
|
|
16568
16546
|
if (n) {
|
|
16569
|
-
var X, bt = h === "y" ? pe : de, ut = h === "y" ? Be : Pe, it = h === "y" ? "height" : "width", K = M[h],
|
|
16547
|
+
var X, bt = h === "y" ? pe : de, ut = h === "y" ? Be : Pe, it = h === "y" ? "height" : "width", K = M[h], lt = K + f[bt], gt = K - f[ut], ie = u ? -R[it] / 2 : 0, Qe = w === ii ? A[it] : R[it], Yt = w === ii ? -R[it] : -A[it], Ze = t.elements.arrow, ge = u && Ze ? bp(Ze) : {
|
|
16570
16548
|
width: 0,
|
|
16571
16549
|
height: 0
|
|
16572
|
-
}, Vt = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tu(),
|
|
16550
|
+
}, Vt = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tu(), fe = Vt[bt], tr = Vt[ut], he = Ai(0, A[it], ge[it]), er = k ? A[it] / 2 - ie - he - fe - P.mainAxis : Qe - he - fe - P.mainAxis, Ae = k ? -A[it] / 2 + ie + he + tr + P.mainAxis : Yt + he + tr + P.mainAxis, rr = t.elements.arrow && bn(t.elements.arrow), Qr = rr ? h === "y" ? rr.clientTop || 0 : rr.clientLeft || 0 : 0, hr = (X = E == null ? void 0 : E[h]) != null ? X : 0, Po = K + er - hr - Qr, Ao = K + Ae - hr, yr = Ai(u ? pa(lt, Po) : lt, K, u ? yo(gt, Ao) : gt);
|
|
16573
16551
|
M[h] = yr, z[h] = yr - K;
|
|
16574
16552
|
}
|
|
16575
16553
|
if (s) {
|
|
16576
|
-
var ze, Zr = h === "x" ? pe : de, to = h === "x" ? Be : Pe,
|
|
16577
|
-
M[B] = Sr, z[B] = Sr -
|
|
16554
|
+
var ze, Zr = h === "x" ? pe : de, to = h === "x" ? Be : Pe, ye = M[B], De = B === "y" ? "height" : "width", wr = ye + f[Zr], Fe = ye - f[to], vr = [pe, de].indexOf(y) !== -1, eo = (ze = E == null ? void 0 : E[B]) != null ? ze : 0, Do = vr ? wr : ye - A[De] - R[De] - eo + P.altAxis, kr = vr ? ye + A[De] + R[De] - eo - P.altAxis : Fe, Sr = u && vr ? xy(Do, ye, kr) : Ai(u ? Do : wr, ye, u ? kr : Fe);
|
|
16555
|
+
M[B] = Sr, z[B] = Sr - ye;
|
|
16578
16556
|
}
|
|
16579
16557
|
t.modifiersData[o] = z;
|
|
16580
16558
|
}
|
|
@@ -16593,7 +16571,7 @@ function Ky(r) {
|
|
|
16593
16571
|
};
|
|
16594
16572
|
}
|
|
16595
16573
|
function Gy(r) {
|
|
16596
|
-
return r ===
|
|
16574
|
+
return r === xe(r) || !Oe(r) ? up(r) : Ky(r);
|
|
16597
16575
|
}
|
|
16598
16576
|
function Jy(r) {
|
|
16599
16577
|
var t = r.getBoundingClientRect(), e = ni(t.width) / r.offsetWidth || 1, o = ni(t.height) / r.offsetHeight || 1;
|
|
@@ -16989,7 +16967,7 @@ var bu = {
|
|
|
16989
16967
|
role: "tooltip",
|
|
16990
16968
|
theme: "",
|
|
16991
16969
|
zIndex: 9999
|
|
16992
|
-
},
|
|
16970
|
+
}, me = Object.assign({
|
|
16993
16971
|
appendTo: lu,
|
|
16994
16972
|
aria: {
|
|
16995
16973
|
content: "auto",
|
|
@@ -17037,11 +17015,11 @@ var bu = {
|
|
|
17037
17015
|
touch: !0,
|
|
17038
17016
|
trigger: "mouseenter focus",
|
|
17039
17017
|
triggerTarget: null
|
|
17040
|
-
}, bu, Mw), Ew = Object.keys(
|
|
17018
|
+
}, bu, Mw), Ew = Object.keys(me), Tw = function(t) {
|
|
17041
17019
|
process.env.NODE_ENV !== "production" && uu(t, []);
|
|
17042
17020
|
var e = Object.keys(t);
|
|
17043
17021
|
e.forEach(function(o) {
|
|
17044
|
-
|
|
17022
|
+
me[o] = t[o];
|
|
17045
17023
|
});
|
|
17046
17024
|
};
|
|
17047
17025
|
function mu(r) {
|
|
@@ -17049,14 +17027,14 @@ function mu(r) {
|
|
|
17049
17027
|
var n = i.name, a = i.defaultValue;
|
|
17050
17028
|
if (n) {
|
|
17051
17029
|
var s;
|
|
17052
|
-
o[n] = r[n] !== void 0 ? r[n] : (s =
|
|
17030
|
+
o[n] = r[n] !== void 0 ? r[n] : (s = me[n]) != null ? s : a;
|
|
17053
17031
|
}
|
|
17054
17032
|
return o;
|
|
17055
17033
|
}, {});
|
|
17056
17034
|
return Object.assign({}, r, e);
|
|
17057
17035
|
}
|
|
17058
17036
|
function Ow(r, t) {
|
|
17059
|
-
var e = t ? Object.keys(mu(Object.assign({},
|
|
17037
|
+
var e = t ? Object.keys(mu(Object.assign({}, me, {
|
|
17060
17038
|
plugins: t
|
|
17061
17039
|
}))) : Ew, o = e.reduce(function(i, n) {
|
|
17062
17040
|
var a = (r.getAttribute("data-tippy-" + n) || "").trim();
|
|
@@ -17078,7 +17056,7 @@ function cc(r, t) {
|
|
|
17078
17056
|
var e = Object.assign({}, t, {
|
|
17079
17057
|
content: pu(t.content, [r])
|
|
17080
17058
|
}, t.ignoreAttributes ? {} : Ow(r, t.plugins));
|
|
17081
|
-
return e.aria = Object.assign({},
|
|
17059
|
+
return e.aria = Object.assign({}, me.aria, e.aria), e.aria = {
|
|
17082
17060
|
expanded: e.aria.expanded === "auto" ? t.interactive : e.aria.expanded,
|
|
17083
17061
|
content: e.aria.content === "auto" ? t.interactive ? null : "describedby" : e.aria.content
|
|
17084
17062
|
}, e;
|
|
@@ -17087,7 +17065,7 @@ function uu(r, t) {
|
|
|
17087
17065
|
r === void 0 && (r = {}), t === void 0 && (t = []);
|
|
17088
17066
|
var e = Object.keys(r);
|
|
17089
17067
|
e.forEach(function(o) {
|
|
17090
|
-
var i = sw(
|
|
17068
|
+
var i = sw(me, Object.keys(bu)), n = !aw(i, o);
|
|
17091
17069
|
n && (n = t.filter(function(a) {
|
|
17092
17070
|
return a.name === o;
|
|
17093
17071
|
}).length === 0), dr(n, ["`" + o + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -17141,7 +17119,7 @@ function xu(r) {
|
|
|
17141
17119
|
xu.$$tippy = !0;
|
|
17142
17120
|
var Pw = 1, Pn = [], Is = [];
|
|
17143
17121
|
function Aw(r, t) {
|
|
17144
|
-
var e = cc(r, Object.assign({},
|
|
17122
|
+
var e = cc(r, Object.assign({}, me, mu(ac(t)))), o, i, n, a = !1, s = !1, l = !1, p = !1, d, c, m, u = [], x = ic(Po, e.interactiveDebounce), g, f = Pw++, y = null, w = pw(e.plugins), k = {
|
|
17145
17123
|
// Is the instance currently enabled?
|
|
17146
17124
|
isEnabled: !0,
|
|
17147
17125
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -17180,7 +17158,7 @@ function Aw(r, t) {
|
|
|
17180
17158
|
var R = w.map(function(O) {
|
|
17181
17159
|
return O.fn(h);
|
|
17182
17160
|
}), H = r.hasAttribute("aria-expanded");
|
|
17183
|
-
return rr(),
|
|
17161
|
+
return rr(), ie(), K(), lt("onCreate", [h]), e.showOnCreate && wr(), M.addEventListener("mouseenter", function() {
|
|
17184
17162
|
h.props.interactive && h.state.isVisible && h.clearDelayTimeouts();
|
|
17185
17163
|
}), M.addEventListener("mouseleave", function() {
|
|
17186
17164
|
h.props.interactive && h.props.trigger.indexOf("mouseenter") >= 0 && bt().addEventListener("mousemove", x);
|
|
@@ -17207,12 +17185,12 @@ function Aw(r, t) {
|
|
|
17207
17185
|
return Sl(M);
|
|
17208
17186
|
}
|
|
17209
17187
|
function it(O) {
|
|
17210
|
-
return h.state.isMounted && !h.state.isVisible || We.isTouch || d && d.type === "focus" ? 0 : As(h.props.delay, O ? 0 : 1,
|
|
17188
|
+
return h.state.isMounted && !h.state.isVisible || We.isTouch || d && d.type === "focus" ? 0 : As(h.props.delay, O ? 0 : 1, me.delay);
|
|
17211
17189
|
}
|
|
17212
17190
|
function K(O) {
|
|
17213
17191
|
O === void 0 && (O = !1), M.style.pointerEvents = h.props.interactive && !O ? "" : "none", M.style.zIndex = "" + h.props.zIndex;
|
|
17214
17192
|
}
|
|
17215
|
-
function
|
|
17193
|
+
function lt(O, j, Y) {
|
|
17216
17194
|
if (Y === void 0 && (Y = !0), R.forEach(function(nt) {
|
|
17217
17195
|
nt[O] && nt[O].apply(nt, j);
|
|
17218
17196
|
}), Y) {
|
|
@@ -17229,13 +17207,13 @@ function Aw(r, t) {
|
|
|
17229
17207
|
if (h.state.isVisible)
|
|
17230
17208
|
nt.setAttribute(j, Wt ? Wt + " " + Y : Y);
|
|
17231
17209
|
else {
|
|
17232
|
-
var
|
|
17233
|
-
|
|
17210
|
+
var ne = Wt && Wt.replace(Y, "").trim();
|
|
17211
|
+
ne ? nt.setAttribute(j, ne) : nt.removeAttribute(j);
|
|
17234
17212
|
}
|
|
17235
17213
|
});
|
|
17236
17214
|
}
|
|
17237
17215
|
}
|
|
17238
|
-
function
|
|
17216
|
+
function ie() {
|
|
17239
17217
|
if (!(H || !h.props.aria.expanded)) {
|
|
17240
17218
|
var O = Wo(h.props.triggerTarget || r);
|
|
17241
17219
|
O.forEach(function(j) {
|
|
@@ -17248,7 +17226,7 @@ function Aw(r, t) {
|
|
|
17248
17226
|
return O !== x;
|
|
17249
17227
|
});
|
|
17250
17228
|
}
|
|
17251
|
-
function
|
|
17229
|
+
function Yt(O) {
|
|
17252
17230
|
if (!(We.isTouch && (l || O.type === "mousedown"))) {
|
|
17253
17231
|
var j = O.composedPath && O.composedPath()[0] || O.target;
|
|
17254
17232
|
if (!(h.props.interactive && lc(M, j))) {
|
|
@@ -17258,33 +17236,33 @@ function Aw(r, t) {
|
|
|
17258
17236
|
if (We.isTouch || h.state.isVisible && h.props.trigger.indexOf("click") >= 0)
|
|
17259
17237
|
return;
|
|
17260
17238
|
} else
|
|
17261
|
-
|
|
17239
|
+
lt("onClickOutside", [h, O]);
|
|
17262
17240
|
h.props.hideOnClick === !0 && (h.clearDelayTimeouts(), h.hide(), s = !0, setTimeout(function() {
|
|
17263
17241
|
s = !1;
|
|
17264
|
-
}), h.state.isMounted ||
|
|
17242
|
+
}), h.state.isMounted || fe());
|
|
17265
17243
|
}
|
|
17266
17244
|
}
|
|
17267
17245
|
}
|
|
17268
17246
|
function Ze() {
|
|
17269
17247
|
l = !0;
|
|
17270
17248
|
}
|
|
17271
|
-
function
|
|
17249
|
+
function ge() {
|
|
17272
17250
|
l = !1;
|
|
17273
17251
|
}
|
|
17274
17252
|
function Vt() {
|
|
17275
17253
|
var O = bt();
|
|
17276
|
-
O.addEventListener("mousedown",
|
|
17254
|
+
O.addEventListener("mousedown", Yt, !0), O.addEventListener("touchend", Yt, so), O.addEventListener("touchstart", ge, so), O.addEventListener("touchmove", Ze, so);
|
|
17277
17255
|
}
|
|
17278
|
-
function
|
|
17256
|
+
function fe() {
|
|
17279
17257
|
var O = bt();
|
|
17280
|
-
O.removeEventListener("mousedown",
|
|
17258
|
+
O.removeEventListener("mousedown", Yt, !0), O.removeEventListener("touchend", Yt, so), O.removeEventListener("touchstart", ge, so), O.removeEventListener("touchmove", Ze, so);
|
|
17281
17259
|
}
|
|
17282
17260
|
function tr(O, j) {
|
|
17283
17261
|
er(O, function() {
|
|
17284
17262
|
!h.state.isVisible && M.parentNode && M.parentNode.contains(M) && j();
|
|
17285
17263
|
});
|
|
17286
17264
|
}
|
|
17287
|
-
function
|
|
17265
|
+
function he(O, j) {
|
|
17288
17266
|
er(O, j);
|
|
17289
17267
|
}
|
|
17290
17268
|
function er(O, j) {
|
|
@@ -17338,7 +17316,7 @@ function Aw(r, t) {
|
|
|
17338
17316
|
var j, Y = !1;
|
|
17339
17317
|
if (!(!h.state.isEnabled || ze(O) || s)) {
|
|
17340
17318
|
var st = ((j = d) == null ? void 0 : j.type) === "focus";
|
|
17341
|
-
d = O, g = O.currentTarget,
|
|
17319
|
+
d = O, g = O.currentTarget, ie(), !h.state.isVisible && bw(O) && Pn.forEach(function(nt) {
|
|
17342
17320
|
return nt(O);
|
|
17343
17321
|
}), O.type === "click" && (h.props.trigger.indexOf("mouseenter") < 0 || a) && h.props.hideOnClick !== !1 && h.state.isVisible ? Y = !0 : wr(O), O.type === "click" && (a = !Y), Y && !st && Fe(O);
|
|
17344
17322
|
}
|
|
@@ -17347,7 +17325,7 @@ function Aw(r, t) {
|
|
|
17347
17325
|
var j = O.target, Y = X().contains(j) || M.contains(j);
|
|
17348
17326
|
if (!(O.type === "mousemove" && Y)) {
|
|
17349
17327
|
var st = De().concat(M).map(function(nt) {
|
|
17350
|
-
var Wt,
|
|
17328
|
+
var Wt, ne = nt._tippy, or = (Wt = ne.popperInstance) == null ? void 0 : Wt.state;
|
|
17351
17329
|
return or ? {
|
|
17352
17330
|
popperRect: nt.getBoundingClientRect(),
|
|
17353
17331
|
popperState: or,
|
|
@@ -17375,7 +17353,7 @@ function Aw(r, t) {
|
|
|
17375
17353
|
}
|
|
17376
17354
|
function Zr() {
|
|
17377
17355
|
to();
|
|
17378
|
-
var O = h.props, j = O.popperOptions, Y = O.placement, st = O.offset, nt = O.getReferenceClientRect, Wt = O.moveTransition,
|
|
17356
|
+
var O = h.props, j = O.popperOptions, Y = O.placement, st = O.offset, nt = O.getReferenceClientRect, Wt = O.moveTransition, ne = z() ? Sl(M).arrow : null, or = nt ? {
|
|
17379
17357
|
getBoundingClientRect: nt,
|
|
17380
17358
|
contextElement: nt.contextElement || X()
|
|
17381
17359
|
} : r, Bp = {
|
|
@@ -17418,10 +17396,10 @@ function Aw(r, t) {
|
|
|
17418
17396
|
adaptive: !Wt
|
|
17419
17397
|
}
|
|
17420
17398
|
}, Bp];
|
|
17421
|
-
z() &&
|
|
17399
|
+
z() && ne && ro.push({
|
|
17422
17400
|
name: "arrow",
|
|
17423
17401
|
options: {
|
|
17424
|
-
element:
|
|
17402
|
+
element: ne,
|
|
17425
17403
|
padding: 3
|
|
17426
17404
|
}
|
|
17427
17405
|
}), ro.push.apply(ro, (j == null ? void 0 : j.modifiers) || []), h.popperInstance = ow(or, M, Object.assign({}, j, {
|
|
@@ -17433,9 +17411,9 @@ function Aw(r, t) {
|
|
|
17433
17411
|
function to() {
|
|
17434
17412
|
h.popperInstance && (h.popperInstance.destroy(), h.popperInstance = null);
|
|
17435
17413
|
}
|
|
17436
|
-
function
|
|
17414
|
+
function ye() {
|
|
17437
17415
|
var O = h.props.appendTo, j, Y = X();
|
|
17438
|
-
h.props.interactive && O === lu || O === "parent" ? j = Y.parentNode : j = pu(O, [Y]), j.contains(M) || j.appendChild(M), h.state.isMounted = !0, Zr(), process.env.NODE_ENV !== "production" && dr(h.props.interactive && O ===
|
|
17416
|
+
h.props.interactive && O === lu || O === "parent" ? j = Y.parentNode : j = pu(O, [Y]), j.contains(M) || j.appendChild(M), h.state.isMounted = !0, Zr(), process.env.NODE_ENV !== "production" && dr(h.props.interactive && O === me.appendTo && Y.nextElementSibling !== M, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
17439
17417
|
|
|
17440
17418
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
17441
17419
|
|
|
@@ -17447,15 +17425,15 @@ function Aw(r, t) {
|
|
|
17447
17425
|
return da(M.querySelectorAll("[data-tippy-root]"));
|
|
17448
17426
|
}
|
|
17449
17427
|
function wr(O) {
|
|
17450
|
-
h.clearDelayTimeouts(), O &&
|
|
17428
|
+
h.clearDelayTimeouts(), O && lt("onTrigger", [h, O]), Vt();
|
|
17451
17429
|
var j = it(!0), Y = P(), st = Y[0], nt = Y[1];
|
|
17452
17430
|
We.isTouch && st === "hold" && nt && (j = nt), j ? o = setTimeout(function() {
|
|
17453
17431
|
h.show();
|
|
17454
17432
|
}, j) : h.show();
|
|
17455
17433
|
}
|
|
17456
17434
|
function Fe(O) {
|
|
17457
|
-
if (h.clearDelayTimeouts(),
|
|
17458
|
-
|
|
17435
|
+
if (h.clearDelayTimeouts(), lt("onUntrigger", [h, O]), !h.state.isVisible) {
|
|
17436
|
+
fe();
|
|
17459
17437
|
return;
|
|
17460
17438
|
}
|
|
17461
17439
|
if (!(h.props.trigger.indexOf("mouseenter") >= 0 && h.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(O.type) >= 0 && a)) {
|
|
@@ -17478,15 +17456,15 @@ function Aw(r, t) {
|
|
|
17478
17456
|
}
|
|
17479
17457
|
function kr(O) {
|
|
17480
17458
|
if (process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("setProps")), !h.state.isDestroyed) {
|
|
17481
|
-
|
|
17459
|
+
lt("onBeforeUpdate", [h, O]), Qr();
|
|
17482
17460
|
var j = h.props, Y = cc(r, Object.assign({}, j, ac(O), {
|
|
17483
17461
|
ignoreAttributes: !0
|
|
17484
17462
|
}));
|
|
17485
17463
|
h.props = Y, rr(), j.interactiveDebounce !== Y.interactiveDebounce && (Qe(), x = ic(Po, Y.interactiveDebounce)), j.triggerTarget && !Y.triggerTarget ? Wo(j.triggerTarget).forEach(function(st) {
|
|
17486
17464
|
st.removeAttribute("aria-expanded");
|
|
17487
|
-
}) : Y.triggerTarget && r.removeAttribute("aria-expanded"),
|
|
17465
|
+
}) : Y.triggerTarget && r.removeAttribute("aria-expanded"), ie(), K(), A && A(j, Y), h.popperInstance && (Zr(), De().forEach(function(st) {
|
|
17488
17466
|
requestAnimationFrame(st._tippy.popperInstance.forceUpdate);
|
|
17489
|
-
})),
|
|
17467
|
+
})), lt("onAfterUpdate", [h, O]);
|
|
17490
17468
|
}
|
|
17491
17469
|
}
|
|
17492
17470
|
function Sr(O) {
|
|
@@ -17496,11 +17474,11 @@ function Aw(r, t) {
|
|
|
17496
17474
|
}
|
|
17497
17475
|
function bi() {
|
|
17498
17476
|
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("show"));
|
|
17499
|
-
var O = h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st = We.isTouch && !h.props.touch, nt = As(h.props.duration, 0,
|
|
17500
|
-
if (!(O || j || Y || st) && !X().hasAttribute("disabled") && (
|
|
17477
|
+
var O = h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st = We.isTouch && !h.props.touch, nt = As(h.props.duration, 0, me.duration);
|
|
17478
|
+
if (!(O || j || Y || st) && !X().hasAttribute("disabled") && (lt("onShow", [h], !1), h.props.onShow(h) !== !1)) {
|
|
17501
17479
|
if (h.state.isVisible = !0, z() && (M.style.visibility = "visible"), K(), Vt(), h.state.isMounted || (M.style.transition = "none"), z()) {
|
|
17502
|
-
var Wt = ut(),
|
|
17503
|
-
Ds([
|
|
17480
|
+
var Wt = ut(), ne = Wt.box, or = Wt.content;
|
|
17481
|
+
Ds([ne, or], 0);
|
|
17504
17482
|
}
|
|
17505
17483
|
m = function() {
|
|
17506
17484
|
var ro;
|
|
@@ -17509,22 +17487,22 @@ function Aw(r, t) {
|
|
|
17509
17487
|
var ss = ut(), hn = ss.box, Io = ss.content;
|
|
17510
17488
|
Ds([hn, Io], nt), sc([hn, Io], "visible");
|
|
17511
17489
|
}
|
|
17512
|
-
gt(),
|
|
17513
|
-
h.state.isShown = !0,
|
|
17490
|
+
gt(), ie(), nc(Is, h), (ro = h.popperInstance) == null || ro.forceUpdate(), lt("onMount", [h]), h.props.animation && z() && he(nt, function() {
|
|
17491
|
+
h.state.isShown = !0, lt("onShown", [h]);
|
|
17514
17492
|
});
|
|
17515
17493
|
}
|
|
17516
|
-
},
|
|
17494
|
+
}, ye();
|
|
17517
17495
|
}
|
|
17518
17496
|
}
|
|
17519
17497
|
function mi() {
|
|
17520
17498
|
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("hide"));
|
|
17521
|
-
var O = !h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st = As(h.props.duration, 1,
|
|
17522
|
-
if (!(O || j || Y) && (
|
|
17523
|
-
if (h.state.isVisible = !1, h.state.isShown = !1, p = !1, a = !1, z() && (M.style.visibility = "hidden"), Qe(),
|
|
17524
|
-
var nt = ut(), Wt = nt.box,
|
|
17525
|
-
h.props.animation && (Ds([Wt,
|
|
17499
|
+
var O = !h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st = As(h.props.duration, 1, me.duration);
|
|
17500
|
+
if (!(O || j || Y) && (lt("onHide", [h], !1), h.props.onHide(h) !== !1)) {
|
|
17501
|
+
if (h.state.isVisible = !1, h.state.isShown = !1, p = !1, a = !1, z() && (M.style.visibility = "hidden"), Qe(), fe(), K(!0), z()) {
|
|
17502
|
+
var nt = ut(), Wt = nt.box, ne = nt.content;
|
|
17503
|
+
h.props.animation && (Ds([Wt, ne], st), sc([Wt, ne], "hidden"));
|
|
17526
17504
|
}
|
|
17527
|
-
gt(),
|
|
17505
|
+
gt(), ie(), h.props.animation ? z() && tr(st, h.unmount) : h.unmount();
|
|
17528
17506
|
}
|
|
17529
17507
|
}
|
|
17530
17508
|
function No(O) {
|
|
@@ -17535,15 +17513,15 @@ function Aw(r, t) {
|
|
|
17535
17513
|
O._tippy.unmount();
|
|
17536
17514
|
}), M.parentNode && M.parentNode.removeChild(M), Is = Is.filter(function(O) {
|
|
17537
17515
|
return O !== h;
|
|
17538
|
-
}), h.state.isMounted = !1,
|
|
17516
|
+
}), h.state.isMounted = !1, lt("onHidden", [h]));
|
|
17539
17517
|
}
|
|
17540
17518
|
function D() {
|
|
17541
|
-
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), Qr(), delete r._tippy, h.state.isDestroyed = !0,
|
|
17519
|
+
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), Qr(), delete r._tippy, h.state.isDestroyed = !0, lt("onDestroy", [h]));
|
|
17542
17520
|
}
|
|
17543
17521
|
}
|
|
17544
17522
|
function di(r, t) {
|
|
17545
17523
|
t === void 0 && (t = {});
|
|
17546
|
-
var e =
|
|
17524
|
+
var e = me.plugins.concat(t.plugins || []);
|
|
17547
17525
|
process.env.NODE_ENV !== "production" && (Cw(r), uu(t, e)), yw();
|
|
17548
17526
|
var o = Object.assign({}, t, {
|
|
17549
17527
|
plugins: e
|
|
@@ -17563,7 +17541,7 @@ function di(r, t) {
|
|
|
17563
17541
|
}, []);
|
|
17564
17542
|
return tn(r) ? s[0] : s;
|
|
17565
17543
|
}
|
|
17566
|
-
di.defaultProps =
|
|
17544
|
+
di.defaultProps = me;
|
|
17567
17545
|
di.setDefaultProps = Tw;
|
|
17568
17546
|
di.currentInput = We;
|
|
17569
17547
|
Object.assign({}, Xm, {
|
|
@@ -17681,7 +17659,7 @@ class Dw {
|
|
|
17681
17659
|
}
|
|
17682
17660
|
}
|
|
17683
17661
|
const gu = (r) => new Bt({
|
|
17684
|
-
key: typeof r.pluginKey == "string" ? new
|
|
17662
|
+
key: typeof r.pluginKey == "string" ? new oe(r.pluginKey) : r.pluginKey,
|
|
17685
17663
|
view: (t) => new Dw({ view: t, ...r })
|
|
17686
17664
|
});
|
|
17687
17665
|
jt.create({
|
|
@@ -17776,7 +17754,7 @@ class Nw {
|
|
|
17776
17754
|
}
|
|
17777
17755
|
}
|
|
17778
17756
|
const fu = (r) => new Bt({
|
|
17779
|
-
key: typeof r.pluginKey == "string" ? new
|
|
17757
|
+
key: typeof r.pluginKey == "string" ? new oe(r.pluginKey) : r.pluginKey,
|
|
17780
17758
|
view: (t) => new Nw({ view: t, ...r })
|
|
17781
17759
|
});
|
|
17782
17760
|
jt.create({
|
|
@@ -17899,7 +17877,7 @@ const Lw = ce({
|
|
|
17899
17877
|
const t = S(), e = Rc();
|
|
17900
17878
|
return an(() => {
|
|
17901
17879
|
const o = r.editor;
|
|
17902
|
-
o && o.options.element && t.value &&
|
|
17880
|
+
o && o.options.element && t.value && pt(() => {
|
|
17903
17881
|
if (!t.value || !o.options.element.firstChild)
|
|
17904
17882
|
return;
|
|
17905
17883
|
const i = T(t.value);
|
|
@@ -18326,7 +18304,7 @@ const Rw = (r = {}) => {
|
|
|
18326
18304
|
// this plugin creates a code block for pasted content from VS Code
|
|
18327
18305
|
// we can also detect the copied code language
|
|
18328
18306
|
new Bt({
|
|
18329
|
-
key: new
|
|
18307
|
+
key: new oe("codeBlockVSCodeHandler"),
|
|
18330
18308
|
props: {
|
|
18331
18309
|
handlePaste: (r, t) => {
|
|
18332
18310
|
if (!t.clipboardData || this.editor.isActive(this.type.name))
|
|
@@ -19052,7 +19030,7 @@ function Un(r) {
|
|
|
19052
19030
|
}
|
|
19053
19031
|
return Rs;
|
|
19054
19032
|
}
|
|
19055
|
-
const wo = new
|
|
19033
|
+
const wo = new oe("history"), y2 = new oe("closeHistory");
|
|
19056
19034
|
function w2(r = {}) {
|
|
19057
19035
|
return r = {
|
|
19058
19036
|
depth: r.depth || 100,
|
|
@@ -19566,7 +19544,7 @@ se.prototype = {
|
|
|
19566
19544
|
return i.j[r] = a, a;
|
|
19567
19545
|
}
|
|
19568
19546
|
};
|
|
19569
|
-
const et = (r, t, e, o, i) => r.ta(t, e, o, i), wt = (r, t, e, o, i) => r.tr(t, e, o, i), vc = (r, t, e, o, i) => r.ts(t, e, o, i), I = (r, t, e, o, i) => r.tt(t, e, o, i), lr = "WORD", Ol = "UWORD", Su = "ASCIINUMERICAL", Cu = "ALPHANUMERICAL", rn = "LOCALHOST", Bl = "TLD", Pl = "UTLD", Kn = "SCHEME", qo = "SLASH_SCHEME", yp = "NUM", Al = "WS", wp = "NL", Li = "OPENBRACE", Ri = "CLOSEBRACE", ba = "OPENBRACKET", ma = "CLOSEBRACKET", ua = "OPENPAREN", xa = "CLOSEPAREN", ga = "OPENANGLEBRACKET", fa = "CLOSEANGLEBRACKET", ha = "FULLWIDTHLEFTPAREN", ya = "FULLWIDTHRIGHTPAREN", wa = "LEFTCORNERBRACKET", va = "RIGHTCORNERBRACKET", ka = "LEFTWHITECORNERBRACKET", Sa = "RIGHTWHITECORNERBRACKET", Ca = "FULLWIDTHLESSTHAN", Ma = "FULLWIDTHGREATERTHAN", Ea = "AMPERSAND", Ta = "APOSTROPHE", Oa = "ASTERISK", Or = "AT", Ba = "BACKSLASH", Pa = "BACKTICK", Aa = "CARET", Ar = "COLON", vp = "COMMA", Da = "DOLLAR", je = "DOT", Na = "EQUALS", kp = "EXCLAMATION",
|
|
19547
|
+
const et = (r, t, e, o, i) => r.ta(t, e, o, i), wt = (r, t, e, o, i) => r.tr(t, e, o, i), vc = (r, t, e, o, i) => r.ts(t, e, o, i), I = (r, t, e, o, i) => r.tt(t, e, o, i), lr = "WORD", Ol = "UWORD", Su = "ASCIINUMERICAL", Cu = "ALPHANUMERICAL", rn = "LOCALHOST", Bl = "TLD", Pl = "UTLD", Kn = "SCHEME", qo = "SLASH_SCHEME", yp = "NUM", Al = "WS", wp = "NL", Li = "OPENBRACE", Ri = "CLOSEBRACE", ba = "OPENBRACKET", ma = "CLOSEBRACKET", ua = "OPENPAREN", xa = "CLOSEPAREN", ga = "OPENANGLEBRACKET", fa = "CLOSEANGLEBRACKET", ha = "FULLWIDTHLEFTPAREN", ya = "FULLWIDTHRIGHTPAREN", wa = "LEFTCORNERBRACKET", va = "RIGHTCORNERBRACKET", ka = "LEFTWHITECORNERBRACKET", Sa = "RIGHTWHITECORNERBRACKET", Ca = "FULLWIDTHLESSTHAN", Ma = "FULLWIDTHGREATERTHAN", Ea = "AMPERSAND", Ta = "APOSTROPHE", Oa = "ASTERISK", Or = "AT", Ba = "BACKSLASH", Pa = "BACKTICK", Aa = "CARET", Ar = "COLON", vp = "COMMA", Da = "DOLLAR", je = "DOT", Na = "EQUALS", kp = "EXCLAMATION", ke = "HYPHEN", $i = "PERCENT", Ia = "PIPE", La = "PLUS", Ra = "POUND", _i = "QUERY", Sp = "QUOTE", Mu = "FULLWIDTHMIDDLEDOT", Cp = "SEMI", Ve = "SLASH", zi = "TILDE", $a = "UNDERSCORE", Eu = "EMOJI", _a = "SYM";
|
|
19570
19548
|
var Tu = /* @__PURE__ */ Object.freeze({
|
|
19571
19549
|
__proto__: null,
|
|
19572
19550
|
ALPHANUMERICAL: Cu,
|
|
@@ -19594,7 +19572,7 @@ var Tu = /* @__PURE__ */ Object.freeze({
|
|
|
19594
19572
|
FULLWIDTHLESSTHAN: Ca,
|
|
19595
19573
|
FULLWIDTHMIDDLEDOT: Mu,
|
|
19596
19574
|
FULLWIDTHRIGHTPAREN: ya,
|
|
19597
|
-
HYPHEN:
|
|
19575
|
+
HYPHEN: ke,
|
|
19598
19576
|
LEFTCORNERBRACKET: wa,
|
|
19599
19577
|
LEFTWHITECORNERBRACKET: ka,
|
|
19600
19578
|
LOCALHOST: rn,
|
|
@@ -19632,7 +19610,7 @@ function q2(r = []) {
|
|
|
19632
19610
|
const t = {};
|
|
19633
19611
|
se.groups = t;
|
|
19634
19612
|
const e = new se();
|
|
19635
|
-
Dn == null && (Dn = Sc($2)), Nn == null && (Nn = Sc(_2)), I(e, "'", Ta), I(e, "{", Li), I(e, "}", Ri), I(e, "[", ba), I(e, "]", ma), I(e, "(", ua), I(e, ")", xa), I(e, "<", ga), I(e, ">", fa), I(e, "(", ha), I(e, ")", ya), I(e, "「", wa), I(e, "」", va), I(e, "『", ka), I(e, "』", Sa), I(e, "<", Ca), I(e, ">", Ma), I(e, "&", Ea), I(e, "*", Oa), I(e, "@", Or), I(e, "`", Pa), I(e, "^", Aa), I(e, ":", Ar), I(e, ",", vp), I(e, "$", Da), I(e, ".", je), I(e, "=", Na), I(e, "!", kp), I(e, "-",
|
|
19613
|
+
Dn == null && (Dn = Sc($2)), Nn == null && (Nn = Sc(_2)), I(e, "'", Ta), I(e, "{", Li), I(e, "}", Ri), I(e, "[", ba), I(e, "]", ma), I(e, "(", ua), I(e, ")", xa), I(e, "<", ga), I(e, ">", fa), I(e, "(", ha), I(e, ")", ya), I(e, "「", wa), I(e, "」", va), I(e, "『", ka), I(e, "』", Sa), I(e, "<", Ca), I(e, ">", Ma), I(e, "&", Ea), I(e, "*", Oa), I(e, "@", Or), I(e, "`", Pa), I(e, "^", Aa), I(e, ":", Ar), I(e, ",", vp), I(e, "$", Da), I(e, ".", je), I(e, "=", Na), I(e, "!", kp), I(e, "-", ke), I(e, "%", $i), I(e, "|", Ia), I(e, "+", La), I(e, "#", Ra), I(e, "?", _i), I(e, '"', Sp), I(e, "/", Ve), I(e, ";", Cp), I(e, "~", zi), I(e, "_", $a), I(e, "\\", Ba), I(e, "・", Mu);
|
|
19636
19614
|
const o = wt(e, sr, yp, {
|
|
19637
19615
|
[Cl]: !0
|
|
19638
19616
|
});
|
|
@@ -19984,38 +19962,38 @@ const Mc = is("email", {
|
|
|
19984
19962
|
const r = this.tk;
|
|
19985
19963
|
return r.length >= 2 && r[0].t !== rn && r[1].t === Ar;
|
|
19986
19964
|
}
|
|
19987
|
-
}),
|
|
19965
|
+
}), we = (r) => new se(r);
|
|
19988
19966
|
function G2({
|
|
19989
19967
|
groups: r
|
|
19990
19968
|
}) {
|
|
19991
|
-
const t = r.domain.concat([Ea, Oa, Or, Ba, Pa, Aa, Da, Na,
|
|
19969
|
+
const t = r.domain.concat([Ea, Oa, Or, Ba, Pa, Aa, Da, Na, ke, yp, $i, Ia, La, Ra, Ve, _a, zi, $a]), e = [Ta, Ar, vp, je, kp, $i, _i, Sp, Cp, ga, fa, Li, Ri, ma, ba, ua, xa, ha, ya, wa, va, ka, Sa, Ca, Ma], o = [Ea, Ta, Oa, Ba, Pa, Aa, Da, Na, ke, Li, Ri, $i, Ia, La, Ra, _i, Ve, _a, zi, $a], i = we(), n = I(i, zi);
|
|
19992
19970
|
et(n, o, n), et(n, r.domain, n);
|
|
19993
|
-
const a =
|
|
19971
|
+
const a = we(), s = we(), l = we();
|
|
19994
19972
|
et(i, r.domain, a), et(i, r.scheme, s), et(i, r.slashscheme, l), et(a, o, n), et(a, r.domain, a);
|
|
19995
19973
|
const p = I(a, Or);
|
|
19996
19974
|
I(n, Or, p), I(s, Or, p), I(l, Or, p);
|
|
19997
19975
|
const d = I(n, je);
|
|
19998
19976
|
et(d, o, n), et(d, r.domain, n);
|
|
19999
|
-
const c =
|
|
19977
|
+
const c = we();
|
|
20000
19978
|
et(p, r.domain, c), et(c, r.domain, c);
|
|
20001
19979
|
const m = I(c, je);
|
|
20002
19980
|
et(m, r.domain, c);
|
|
20003
|
-
const u =
|
|
19981
|
+
const u = we(Mc);
|
|
20004
19982
|
et(m, r.tld, u), et(m, r.utld, u), I(p, rn, u);
|
|
20005
|
-
const x = I(c,
|
|
20006
|
-
I(x,
|
|
19983
|
+
const x = I(c, ke);
|
|
19984
|
+
I(x, ke, x), et(x, r.domain, c), et(u, r.domain, c), I(u, je, m), I(u, ke, x);
|
|
20007
19985
|
const g = I(u, Ar);
|
|
20008
19986
|
et(g, r.numeric, Mc);
|
|
20009
|
-
const f = I(a,
|
|
20010
|
-
I(f,
|
|
20011
|
-
const w =
|
|
20012
|
-
et(y, r.tld, w), et(y, r.utld, w), et(w, r.domain, a), et(w, o, n), I(w, je, y), I(w,
|
|
20013
|
-
const k = I(w, Ar), h =
|
|
19987
|
+
const f = I(a, ke), y = I(a, je);
|
|
19988
|
+
I(f, ke, f), et(f, r.domain, a), et(y, o, n), et(y, r.domain, a);
|
|
19989
|
+
const w = we(In);
|
|
19990
|
+
et(y, r.tld, w), et(y, r.utld, w), et(w, r.domain, a), et(w, o, n), I(w, je, y), I(w, ke, f), I(w, Or, p);
|
|
19991
|
+
const k = I(w, Ar), h = we(In);
|
|
20014
19992
|
et(k, r.numeric, h);
|
|
20015
|
-
const B =
|
|
19993
|
+
const B = we(In), M = we();
|
|
20016
19994
|
et(B, t, B), et(B, e, M), et(M, t, B), et(M, e, M), I(w, Ve, B), I(h, Ve, B);
|
|
20017
19995
|
const A = I(s, Ar), R = I(l, Ar), H = I(R, Ve), P = I(H, Ve);
|
|
20018
|
-
et(s, r.domain, a), I(s, je, y), I(s,
|
|
19996
|
+
et(s, r.domain, a), I(s, je, y), I(s, ke, f), et(l, r.domain, a), I(l, je, y), I(l, ke, f), et(A, r.domain, B), I(A, Ve, B), I(A, _i, B), et(P, r.domain, B), et(P, t, B), I(P, Ve, B);
|
|
20019
19997
|
const E = [
|
|
20020
19998
|
[Li, Ri],
|
|
20021
19999
|
// {}
|
|
@@ -20037,9 +20015,9 @@ function G2({
|
|
|
20037
20015
|
for (let z = 0; z < E.length; z++) {
|
|
20038
20016
|
const [X, bt] = E[z], ut = I(B, X);
|
|
20039
20017
|
I(M, X, ut), I(ut, bt, B);
|
|
20040
|
-
const it =
|
|
20018
|
+
const it = we(In);
|
|
20041
20019
|
et(ut, t, it);
|
|
20042
|
-
const K =
|
|
20020
|
+
const K = we();
|
|
20043
20021
|
et(ut, e), et(it, t, it), et(it, e, K), et(K, t, it), et(K, e, K), I(it, bt, B), I(K, bt, B);
|
|
20044
20022
|
}
|
|
20045
20023
|
return I(i, rn, w), I(i, wp, K2), {
|
|
@@ -20125,7 +20103,7 @@ function tv(r) {
|
|
|
20125
20103
|
}
|
|
20126
20104
|
function ev(r) {
|
|
20127
20105
|
return new Bt({
|
|
20128
|
-
key: new
|
|
20106
|
+
key: new oe("autolink"),
|
|
20129
20107
|
appendTransaction: (t, e, o) => {
|
|
20130
20108
|
const i = t.some((p) => p.docChanged) && !e.doc.eq(o.doc), n = t.some((p) => p.getMeta("preventAutolink"));
|
|
20131
20109
|
if (!i || n)
|
|
@@ -20161,7 +20139,7 @@ function ev(r) {
|
|
|
20161
20139
|
}
|
|
20162
20140
|
function rv(r) {
|
|
20163
20141
|
return new Bt({
|
|
20164
|
-
key: new
|
|
20142
|
+
key: new oe("handleClickLink"),
|
|
20165
20143
|
props: {
|
|
20166
20144
|
handleClick: (t, e, o) => {
|
|
20167
20145
|
var i, n;
|
|
@@ -20181,7 +20159,7 @@ function rv(r) {
|
|
|
20181
20159
|
}
|
|
20182
20160
|
function ov(r) {
|
|
20183
20161
|
return new Bt({
|
|
20184
|
-
key: new
|
|
20162
|
+
key: new oe("handlePasteLink"),
|
|
20185
20163
|
props: {
|
|
20186
20164
|
handlePaste: (t, e, o) => {
|
|
20187
20165
|
const { state: i } = t, { selection: n } = i, { empty: a } = n;
|
|
@@ -20896,7 +20874,7 @@ var Pt = ((r) => (r.Space = " ", r.Enter = "Enter", r.Escape = "Escape", r.Backs
|
|
|
20896
20874
|
function Zv(r) {
|
|
20897
20875
|
throw new Error("Unexpected object: " + r);
|
|
20898
20876
|
}
|
|
20899
|
-
var
|
|
20877
|
+
var Qt = ((r) => (r[r.First = 0] = "First", r[r.Previous = 1] = "Previous", r[r.Next = 2] = "Next", r[r.Last = 3] = "Last", r[r.Specific = 4] = "Specific", r[r.Nothing = 5] = "Nothing", r))(Qt || {});
|
|
20900
20878
|
function t5(r, t) {
|
|
20901
20879
|
let e = t.resolveItems();
|
|
20902
20880
|
if (e.length <= 0) return null;
|
|
@@ -21012,7 +20990,7 @@ let un = ce({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
21012
20990
|
r.disabled || i.value !== 0 && (i.value = 0);
|
|
21013
20991
|
}, goToOption(k, h, B) {
|
|
21014
20992
|
if (r.disabled || i.value === 1) return;
|
|
21015
|
-
let M = m(), A = t5(k ===
|
|
20993
|
+
let M = m(), A = t5(k === Qt.Specific ? { focus: Qt.Specific, id: h } : { focus: k }, { resolveItems: () => M.options, resolveActiveIndex: () => M.activeOptionIndex, resolveId: (R) => R.id, resolveDisabled: (R) => R.dataRef.disabled });
|
|
21016
20994
|
p.value = "", d.value = A, c.value = B ?? 1, l.value = M.options;
|
|
21017
20995
|
}, search(k) {
|
|
21018
20996
|
if (r.disabled || i.value === 1) return;
|
|
@@ -21035,7 +21013,7 @@ let un = ce({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
21035
21013
|
r.disabled || g(k);
|
|
21036
21014
|
}, select(k) {
|
|
21037
21015
|
r.disabled || g(Re(u.value, { 0: () => k, 1: () => {
|
|
21038
|
-
let h =
|
|
21016
|
+
let h = Ut(y.value.value).slice(), B = Ut(k), M = h.findIndex((A) => y.compare(B, Ut(A)));
|
|
21039
21017
|
return M === -1 ? h.push(B) : h.splice(M, 1), h;
|
|
21040
21018
|
} }));
|
|
21041
21019
|
} };
|
|
@@ -21084,15 +21062,15 @@ let xn = ce({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21084
21062
|
case Pt.Space:
|
|
21085
21063
|
case Pt.Enter:
|
|
21086
21064
|
case Pt.ArrowDown:
|
|
21087
|
-
c.preventDefault(), a.openListbox(),
|
|
21065
|
+
c.preventDefault(), a.openListbox(), pt(() => {
|
|
21088
21066
|
var m;
|
|
21089
|
-
(m = St(a.optionsRef)) == null || m.focus({ preventScroll: !0 }), a.value.value || a.goToOption(
|
|
21067
|
+
(m = St(a.optionsRef)) == null || m.focus({ preventScroll: !0 }), a.value.value || a.goToOption(Qt.First);
|
|
21090
21068
|
});
|
|
21091
21069
|
break;
|
|
21092
21070
|
case Pt.ArrowUp:
|
|
21093
|
-
c.preventDefault(), a.openListbox(),
|
|
21071
|
+
c.preventDefault(), a.openListbox(), pt(() => {
|
|
21094
21072
|
var m;
|
|
21095
|
-
(m = St(a.optionsRef)) == null || m.focus({ preventScroll: !0 }), a.value.value || a.goToOption(
|
|
21073
|
+
(m = St(a.optionsRef)) == null || m.focus({ preventScroll: !0 }), a.value.value || a.goToOption(Qt.Last);
|
|
21096
21074
|
});
|
|
21097
21075
|
break;
|
|
21098
21076
|
}
|
|
@@ -21105,7 +21083,7 @@ let xn = ce({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21105
21083
|
}
|
|
21106
21084
|
}
|
|
21107
21085
|
function p(c) {
|
|
21108
|
-
a.disabled.value || (a.listboxState.value === 0 ? (a.closeListbox(),
|
|
21086
|
+
a.disabled.value || (a.listboxState.value === 0 ? (a.closeListbox(), pt(() => {
|
|
21109
21087
|
var m;
|
|
21110
21088
|
return (m = St(a.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
21111
21089
|
})) : (c.preventDefault(), a.openListbox(), s5(() => {
|
|
@@ -21132,23 +21110,23 @@ let xn = ce({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21132
21110
|
let m = a.options.value[a.activeOptionIndex.value];
|
|
21133
21111
|
a.select(m.dataRef.value);
|
|
21134
21112
|
}
|
|
21135
|
-
a.mode.value === 0 && (a.closeListbox(),
|
|
21113
|
+
a.mode.value === 0 && (a.closeListbox(), pt(() => {
|
|
21136
21114
|
var m;
|
|
21137
21115
|
return (m = St(a.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
21138
21116
|
}));
|
|
21139
21117
|
break;
|
|
21140
21118
|
case Re(a.orientation.value, { vertical: Pt.ArrowDown, horizontal: Pt.ArrowRight }):
|
|
21141
|
-
return c.preventDefault(), c.stopPropagation(), a.goToOption(
|
|
21119
|
+
return c.preventDefault(), c.stopPropagation(), a.goToOption(Qt.Next);
|
|
21142
21120
|
case Re(a.orientation.value, { vertical: Pt.ArrowUp, horizontal: Pt.ArrowLeft }):
|
|
21143
|
-
return c.preventDefault(), c.stopPropagation(), a.goToOption(
|
|
21121
|
+
return c.preventDefault(), c.stopPropagation(), a.goToOption(Qt.Previous);
|
|
21144
21122
|
case Pt.Home:
|
|
21145
21123
|
case Pt.PageUp:
|
|
21146
|
-
return c.preventDefault(), c.stopPropagation(), a.goToOption(
|
|
21124
|
+
return c.preventDefault(), c.stopPropagation(), a.goToOption(Qt.First);
|
|
21147
21125
|
case Pt.End:
|
|
21148
21126
|
case Pt.PageDown:
|
|
21149
|
-
return c.preventDefault(), c.stopPropagation(), a.goToOption(
|
|
21127
|
+
return c.preventDefault(), c.stopPropagation(), a.goToOption(Qt.Last);
|
|
21150
21128
|
case Pt.Escape:
|
|
21151
|
-
c.preventDefault(), c.stopPropagation(), a.closeListbox(),
|
|
21129
|
+
c.preventDefault(), c.stopPropagation(), a.closeListbox(), pt(() => {
|
|
21152
21130
|
var m;
|
|
21153
21131
|
return (m = St(a.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
21154
21132
|
});
|
|
@@ -21171,47 +21149,47 @@ let xn = ce({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21171
21149
|
var i;
|
|
21172
21150
|
let n = (i = r.id) != null ? i : `headlessui-listbox-option-${as()}`, a = mn("ListboxOption"), s = S(null);
|
|
21173
21151
|
o({ el: s, $el: s });
|
|
21174
|
-
let l = $(() => a.activeOptionIndex.value !== null ? a.options.value[a.activeOptionIndex.value].id === n : !1), p = $(() => Re(a.mode.value, { 0: () => a.compare(
|
|
21152
|
+
let l = $(() => a.activeOptionIndex.value !== null ? a.options.value[a.activeOptionIndex.value].id === n : !1), p = $(() => Re(a.mode.value, { 0: () => a.compare(Ut(a.value.value), Ut(r.value)), 1: () => Ut(a.value.value).some((k) => a.compare(Ut(k), Ut(r.value))) })), d = $(() => Re(a.mode.value, { 1: () => {
|
|
21175
21153
|
var k;
|
|
21176
|
-
let h =
|
|
21177
|
-
return ((k = a.options.value.find((B) => h.some((M) => a.compare(
|
|
21154
|
+
let h = Ut(a.value.value);
|
|
21155
|
+
return ((k = a.options.value.find((B) => h.some((M) => a.compare(Ut(M), Ut(B.dataRef.value))))) == null ? void 0 : k.id) === n;
|
|
21178
21156
|
}, 0: () => p.value })), c = r5(s), m = $(() => ({ disabled: r.disabled, value: r.value, get textValue() {
|
|
21179
21157
|
return c();
|
|
21180
21158
|
}, domRef: s }));
|
|
21181
21159
|
xr(() => a.registerOption(n, m)), tx(() => a.unregisterOption(n)), xr(() => {
|
|
21182
21160
|
ot([a.listboxState, p], () => {
|
|
21183
21161
|
a.listboxState.value === 0 && p.value && Re(a.mode.value, { 1: () => {
|
|
21184
|
-
d.value && a.goToOption(
|
|
21162
|
+
d.value && a.goToOption(Qt.Specific, n);
|
|
21185
21163
|
}, 0: () => {
|
|
21186
|
-
a.goToOption(
|
|
21164
|
+
a.goToOption(Qt.Specific, n);
|
|
21187
21165
|
} });
|
|
21188
21166
|
}, { immediate: !0 });
|
|
21189
21167
|
}), an(() => {
|
|
21190
|
-
a.listboxState.value === 0 && l.value && a.activationTrigger.value !== 0 &&
|
|
21168
|
+
a.listboxState.value === 0 && l.value && a.activationTrigger.value !== 0 && pt(() => {
|
|
21191
21169
|
var k, h;
|
|
21192
21170
|
return (h = (k = St(s)) == null ? void 0 : k.scrollIntoView) == null ? void 0 : h.call(k, { block: "nearest" });
|
|
21193
21171
|
});
|
|
21194
21172
|
});
|
|
21195
21173
|
function u(k) {
|
|
21196
21174
|
if (r.disabled) return k.preventDefault();
|
|
21197
|
-
a.select(r.value), a.mode.value === 0 && (a.closeListbox(),
|
|
21175
|
+
a.select(r.value), a.mode.value === 0 && (a.closeListbox(), pt(() => {
|
|
21198
21176
|
var h;
|
|
21199
21177
|
return (h = St(a.buttonRef)) == null ? void 0 : h.focus({ preventScroll: !0 });
|
|
21200
21178
|
}));
|
|
21201
21179
|
}
|
|
21202
21180
|
function x() {
|
|
21203
|
-
if (r.disabled) return a.goToOption(
|
|
21204
|
-
a.goToOption(
|
|
21181
|
+
if (r.disabled) return a.goToOption(Qt.Nothing);
|
|
21182
|
+
a.goToOption(Qt.Specific, n);
|
|
21205
21183
|
}
|
|
21206
21184
|
let g = Uv();
|
|
21207
21185
|
function f(k) {
|
|
21208
21186
|
g.update(k);
|
|
21209
21187
|
}
|
|
21210
21188
|
function y(k) {
|
|
21211
|
-
g.wasMoved(k) && (r.disabled || l.value || a.goToOption(
|
|
21189
|
+
g.wasMoved(k) && (r.disabled || l.value || a.goToOption(Qt.Specific, n, 0));
|
|
21212
21190
|
}
|
|
21213
21191
|
function w(k) {
|
|
21214
|
-
g.wasMoved(k) && (r.disabled || l.value && a.goToOption(
|
|
21192
|
+
g.wasMoved(k) && (r.disabled || l.value && a.goToOption(Qt.Nothing));
|
|
21215
21193
|
}
|
|
21216
21194
|
return () => {
|
|
21217
21195
|
let { disabled: k } = r, h = { active: l.value, selected: p.value, disabled: k }, { value: B, disabled: M, ...A } = r, R = { id: n, ref: s, role: "option", tabIndex: k === !0 ? void 0 : -1, "aria-disabled": k === !0 ? !0 : void 0, "aria-selected": p.value, disabled: void 0, onClick: u, onFocus: x, onPointerenter: f, onMouseenter: f, onPointermove: y, onMousemove: y, onPointerleave: w, onMouseleave: w };
|
|
@@ -21460,7 +21438,7 @@ const l5 = { class: "pbx-relative" }, p5 = { class: "pbx-flex pbx-gap-2 pbx-item
|
|
|
21460
21438
|
class: "pbx-myPrimaryInputLabel"
|
|
21461
21439
|
}, "Video url:", -1)),
|
|
21462
21440
|
Ct(b("input", {
|
|
21463
|
-
"onUpdate:modelValue": K[0] || (K[0] = (
|
|
21441
|
+
"onUpdate:modelValue": K[0] || (K[0] = (lt) => z.value = lt),
|
|
21464
21442
|
type: "text",
|
|
21465
21443
|
class: "pbx-myPrimaryInput",
|
|
21466
21444
|
name: "video"
|
|
@@ -21549,7 +21527,7 @@ const l5 = { class: "pbx-relative" }, p5 = { class: "pbx-flex pbx-gap-2 pbx-item
|
|
|
21549
21527
|
i.value && i.value.nodeType === 1 && !w.value && !T(t).ElOrFirstChildIsIframe() ? (v(), xt(S5, { key: 3 })) : L("", !0),
|
|
21550
21528
|
i.value ? (v(), C("button", {
|
|
21551
21529
|
key: 4,
|
|
21552
|
-
onClick: K[1] || (K[1] = (...
|
|
21530
|
+
onClick: K[1] || (K[1] = (...lt) => T(t).deleteElementFromDOM && T(t).deleteElementFromDOM(...lt)),
|
|
21553
21531
|
type: "button",
|
|
21554
21532
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-red-500 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
21555
21533
|
}, K[10] || (K[10] = [
|
|
@@ -21558,7 +21536,7 @@ const l5 = { class: "pbx-relative" }, p5 = { class: "pbx-flex pbx-gap-2 pbx-item
|
|
|
21558
21536
|
i.value && a.value ? (v(), C("div", {
|
|
21559
21537
|
key: 5,
|
|
21560
21538
|
class: "pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0",
|
|
21561
|
-
onClick: K[2] || (K[2] = (
|
|
21539
|
+
onClick: K[2] || (K[2] = (lt) => T(t).clearHtmlSelection())
|
|
21562
21540
|
}, K[11] || (K[11] = [
|
|
21563
21541
|
b("span", { class: "material-symbols-outlined" }, " close ", -1)
|
|
21564
21542
|
]))) : L("", !0)
|
|
@@ -22357,7 +22335,7 @@ const y3 = ["src"], w3 = {
|
|
|
22357
22335
|
i.value = !1;
|
|
22358
22336
|
};
|
|
22359
22337
|
}, u = async function(x) {
|
|
22360
|
-
o.value = !0, x && typeof x == "string" && x.length > 2 && (await h3(x), await
|
|
22338
|
+
o.value = !0, x && typeof x == "string" && x.length > 2 && (await h3(x), await Se(200), o.value = !1);
|
|
22361
22339
|
};
|
|
22362
22340
|
return (x, g) => (v(), C("div", null, [
|
|
22363
22341
|
Ct(b("div", null, g[0] || (g[0] = [
|
|
@@ -22671,7 +22649,7 @@ const y3 = ["src"], w3 = {
|
|
|
22671
22649
|
}, "Select", -1)),
|
|
22672
22650
|
(v(!0), C(dt, null, ht(T(fi).fontDesktop, (k) => (v(), C("option", { key: k }, W(k), 1))), 128))
|
|
22673
22651
|
], 544), [
|
|
22674
|
-
[
|
|
22652
|
+
[Zt, i.value]
|
|
22675
22653
|
])
|
|
22676
22654
|
]),
|
|
22677
22655
|
L("", !0),
|
|
@@ -22689,7 +22667,7 @@ const y3 = ["src"], w3 = {
|
|
|
22689
22667
|
}, "Select", -1)),
|
|
22690
22668
|
(v(!0), C(dt, null, ht(T(Jo).fontWeight, (k) => (v(), C("option", { key: k }, W(k), 1))), 128))
|
|
22691
22669
|
], 544), [
|
|
22692
|
-
[
|
|
22670
|
+
[Zt, s.value]
|
|
22693
22671
|
])
|
|
22694
22672
|
]),
|
|
22695
22673
|
w[31] || (w[31] = b("hr", null, null, -1)),
|
|
@@ -22706,7 +22684,7 @@ const y3 = ["src"], w3 = {
|
|
|
22706
22684
|
}, "Select", -1)),
|
|
22707
22685
|
(v(!0), C(dt, null, ht(T(Jo).fontFamily, (k) => (v(), C("option", { key: k }, W(k), 1))), 128))
|
|
22708
22686
|
], 544), [
|
|
22709
|
-
[
|
|
22687
|
+
[Zt, l.value]
|
|
22710
22688
|
])
|
|
22711
22689
|
]),
|
|
22712
22690
|
w[32] || (w[32] = b("hr", null, null, -1)),
|
|
@@ -22723,7 +22701,7 @@ const y3 = ["src"], w3 = {
|
|
|
22723
22701
|
}, "Select", -1)),
|
|
22724
22702
|
(v(!0), C(dt, null, ht(T(Jo).fontStyle, (k) => (v(), C("option", { key: k }, W(k), 1))), 128))
|
|
22725
22703
|
], 544), [
|
|
22726
|
-
[
|
|
22704
|
+
[Zt, p.value]
|
|
22727
22705
|
])
|
|
22728
22706
|
])
|
|
22729
22707
|
]),
|
|
@@ -22776,7 +22754,7 @@ const y3 = ["src"], w3 = {
|
|
|
22776
22754
|
}, "Select", -1)),
|
|
22777
22755
|
(v(!0), C(dt, null, ht(T(Nr).verticalPadding, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22778
22756
|
], 544), [
|
|
22779
|
-
[
|
|
22757
|
+
[Zt, o.value]
|
|
22780
22758
|
])
|
|
22781
22759
|
]),
|
|
22782
22760
|
m[9] || (m[9] = b("hr", null, null, -1)),
|
|
@@ -22793,7 +22771,7 @@ const y3 = ["src"], w3 = {
|
|
|
22793
22771
|
}, "Select", -1)),
|
|
22794
22772
|
(v(!0), C(dt, null, ht(T(Nr).horizontalPadding, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22795
22773
|
], 544), [
|
|
22796
|
-
[
|
|
22774
|
+
[Zt, i.value]
|
|
22797
22775
|
])
|
|
22798
22776
|
])
|
|
22799
22777
|
]),
|
|
@@ -22846,7 +22824,7 @@ const y3 = ["src"], w3 = {
|
|
|
22846
22824
|
}, "Select", -1)),
|
|
22847
22825
|
(v(!0), C(dt, null, ht(T(Nr).verticalMargin, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22848
22826
|
], 544), [
|
|
22849
|
-
[
|
|
22827
|
+
[Zt, n.value]
|
|
22850
22828
|
])
|
|
22851
22829
|
]),
|
|
22852
22830
|
m[9] || (m[9] = b("hr", null, null, -1)),
|
|
@@ -22863,7 +22841,7 @@ const y3 = ["src"], w3 = {
|
|
|
22863
22841
|
}, "Select", -1)),
|
|
22864
22842
|
(v(!0), C(dt, null, ht(T(Nr).horizontalMargin, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22865
22843
|
], 544), [
|
|
22866
|
-
[
|
|
22844
|
+
[Zt, a.value]
|
|
22867
22845
|
])
|
|
22868
22846
|
])
|
|
22869
22847
|
]),
|
|
@@ -22923,7 +22901,7 @@ const y3 = ["src"], w3 = {
|
|
|
22923
22901
|
}, "Select", -1)),
|
|
22924
22902
|
(v(!0), C(dt, null, ht(T(qe).roundedGlobal, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22925
22903
|
], 544), [
|
|
22926
|
-
[
|
|
22904
|
+
[Zt, o.value]
|
|
22927
22905
|
])
|
|
22928
22906
|
]),
|
|
22929
22907
|
x[22] || (x[22] = b("p", { class: "pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4" }, "Specific", -1)),
|
|
@@ -22940,7 +22918,7 @@ const y3 = ["src"], w3 = {
|
|
|
22940
22918
|
}, "Select", -1)),
|
|
22941
22919
|
(v(!0), C(dt, null, ht(T(qe).roundedTopLeft, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22942
22920
|
], 544), [
|
|
22943
|
-
[
|
|
22921
|
+
[Zt, i.value]
|
|
22944
22922
|
])
|
|
22945
22923
|
]),
|
|
22946
22924
|
b("div", Z3, [
|
|
@@ -22956,7 +22934,7 @@ const y3 = ["src"], w3 = {
|
|
|
22956
22934
|
}, "Select", -1)),
|
|
22957
22935
|
(v(!0), C(dt, null, ht(T(qe).roundedTopRight, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22958
22936
|
], 544), [
|
|
22959
|
-
[
|
|
22937
|
+
[Zt, n.value]
|
|
22960
22938
|
])
|
|
22961
22939
|
]),
|
|
22962
22940
|
b("div", tk, [
|
|
@@ -22972,7 +22950,7 @@ const y3 = ["src"], w3 = {
|
|
|
22972
22950
|
}, "Select", -1)),
|
|
22973
22951
|
(v(!0), C(dt, null, ht(T(qe).roundedBottomLeft, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22974
22952
|
], 544), [
|
|
22975
|
-
[
|
|
22953
|
+
[Zt, a.value]
|
|
22976
22954
|
])
|
|
22977
22955
|
]),
|
|
22978
22956
|
b("div", ek, [
|
|
@@ -22988,7 +22966,7 @@ const y3 = ["src"], w3 = {
|
|
|
22988
22966
|
}, "Select", -1)),
|
|
22989
22967
|
(v(!0), C(dt, null, ht(T(qe).roundedBottomRight, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22990
22968
|
], 544), [
|
|
22991
|
-
[
|
|
22969
|
+
[Zt, s.value]
|
|
22992
22970
|
])
|
|
22993
22971
|
])
|
|
22994
22972
|
]),
|
|
@@ -23042,7 +23020,7 @@ const y3 = ["src"], w3 = {
|
|
|
23042
23020
|
}, "Select", -1)),
|
|
23043
23021
|
(v(!0), C(dt, null, ht(T(Yo).borderStyle, (c) => (v(), C("option", { key: c }, W(c), 1))), 128))
|
|
23044
23022
|
], 544), [
|
|
23045
|
-
[
|
|
23023
|
+
[Zt, o.value]
|
|
23046
23024
|
])
|
|
23047
23025
|
]),
|
|
23048
23026
|
b("div", ik, [
|
|
@@ -23058,7 +23036,7 @@ const y3 = ["src"], w3 = {
|
|
|
23058
23036
|
}, "Select", -1)),
|
|
23059
23037
|
(v(!0), C(dt, null, ht(T(Yo).borderWidth, (c) => (v(), C("option", { key: c }, W(c), 1))), 128))
|
|
23060
23038
|
], 544), [
|
|
23061
|
-
[
|
|
23039
|
+
[Zt, i.value]
|
|
23062
23040
|
])
|
|
23063
23041
|
]),
|
|
23064
23042
|
d[15] || (d[15] = b("label", { class: "pbx-myPrimaryInputLabel" }, " Border Color ", -1)),
|
|
@@ -23228,7 +23206,7 @@ const y3 = ["src"], w3 = {
|
|
|
23228
23206
|
// or the specific value that triggers re-render
|
|
23229
23207
|
() => o.getElement,
|
|
23230
23208
|
() => {
|
|
23231
|
-
|
|
23209
|
+
pt(() => {
|
|
23232
23210
|
a.value && (a.value.scrollTop = s);
|
|
23233
23211
|
});
|
|
23234
23212
|
}
|
|
@@ -23323,7 +23301,7 @@ const y3 = ["src"], w3 = {
|
|
|
23323
23301
|
}, Z4 = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, tS = { class: "pbx-overflow-x-auto" }, eS = { class: "pbx-w-max" }, rS = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, oS = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, iS = { class: "pbx-min-w-[30rem] pbx-w-max" }, nS = { key: 0 }, aS = { key: 1 }, sS = { key: 0 }, lS = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, pS = { class: "pbx-min-w-[30rem] pbx-w-max" }, dS = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, cS = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, bS = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, mS = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, uS = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, xS = {
|
|
23324
23302
|
__name: "PageBuilderSettings",
|
|
23325
23303
|
setup(r) {
|
|
23326
|
-
const t = "3.3.
|
|
23304
|
+
const t = "3.3.53", e = Et, o = S(null), i = $(() => e.getPageBuilderConfig), n = $(() => e.getComponents), a = function(l, p) {
|
|
23327
23305
|
const d = document.createElement("a");
|
|
23328
23306
|
d.setAttribute(
|
|
23329
23307
|
"href",
|
|
@@ -23941,7 +23919,7 @@ const y3 = ["src"], w3 = {
|
|
|
23941
23919
|
n.value = !0, a.value = "delete", s.value = 2, l.value = "Remove all Components", p.value = "Are you sure you want to remove all Components?", d.value = "Close", c.value = null, m.value = "Delete", u.value = function() {
|
|
23942
23920
|
n.value = !1;
|
|
23943
23921
|
}, g.value = async function() {
|
|
23944
|
-
i.value = !0, t.deleteAllComponentsFromDOM(), await t.clearHtmlSelection(), await t.removeCurrentComponentsFromLocalStorage(), await
|
|
23922
|
+
i.value = !0, t.deleteAllComponentsFromDOM(), await t.clearHtmlSelection(), await t.removeCurrentComponentsFromLocalStorage(), await Se(500), n.value = !1, i.value = !1;
|
|
23945
23923
|
};
|
|
23946
23924
|
}, y = S(!1), w = function() {
|
|
23947
23925
|
y.value = !1;
|
|
@@ -24161,15 +24139,15 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24161
24139
|
});
|
|
24162
24140
|
const K = function(at) {
|
|
24163
24141
|
n.setComponent(at);
|
|
24164
|
-
},
|
|
24165
|
-
|
|
24142
|
+
}, lt = S(null), gt = $(() => n.getIsLoadingGlobal), ie = $(() => n.getIsSaving), Qe = $(() => n.getIsLoadingResumeEditing), Yt = $(() => n.getIsRestoring), Ze = S(1), ge = S(""), Vt = S(!1), fe = S(""), tr = S(""), he = S(""), er = S(null), Ae = S(null), rr = S(null), Qr = S(null), hr = S(null), Po = async function() {
|
|
24143
|
+
ge.value = "warning", Vt.value = !0, fe.value = "Continue Your Work?", tr.value = "We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently loaded from the database?", he.value = "Use Saved Version", er.value = null, Ae.value = "Continue Where I Left Off", rr.value = async function() {
|
|
24166
24144
|
n.setHasLocalDraftForUpdate(!1), Vt.value = !1;
|
|
24167
24145
|
}, Qr.value = function() {
|
|
24168
24146
|
}, hr.value = async function() {
|
|
24169
24147
|
await e.resumeEditingForUpdate(), n.setHasLocalDraftForUpdate(!1), Vt.value = !1;
|
|
24170
24148
|
};
|
|
24171
|
-
}, Ao = S(1), yr = S(""), ze = S(!1), Zr = S(""), to = S(""),
|
|
24172
|
-
await e.clearHtmlSelection(), yr.value = "success", ze.value = !0, Zr.value = "Do you want to reset this page?", to.value = "Are you sure you want to reset this page? This will overwrite your current changes.",
|
|
24149
|
+
}, Ao = S(1), yr = S(""), ze = S(!1), Zr = S(""), to = S(""), ye = S(""), De = S(null), wr = S(null), Fe = S(null), vr = S(null), eo = S(null), Do = async function() {
|
|
24150
|
+
await e.clearHtmlSelection(), yr.value = "success", ze.value = !0, Zr.value = "Do you want to reset this page?", to.value = "Are you sure you want to reset this page? This will overwrite your current changes.", ye.value = "Close", De.value = null, wr.value = "Reset changes", Fe.value = function() {
|
|
24173
24151
|
ze.value = !1;
|
|
24174
24152
|
}, vr.value = async function() {
|
|
24175
24153
|
}, eo.value = async function() {
|
|
@@ -24184,7 +24162,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24184
24162
|
if (!at || !D) return;
|
|
24185
24163
|
const j = at.querySelector("[selected]");
|
|
24186
24164
|
if (j && typeof j.getBoundingClientRect == "function") {
|
|
24187
|
-
const Y = j.getBoundingClientRect(), st = at.getBoundingClientRect(), nt = Y.left - st.left + Y.width / 2 - D.offsetWidth / 2,
|
|
24165
|
+
const Y = j.getBoundingClientRect(), st = at.getBoundingClientRect(), nt = Y.left - st.left + Y.width / 2 - D.offsetWidth / 2, ne = Y.top - st.top + at.scrollTop - D.offsetHeight - 20, or = Math.max(0, ne);
|
|
24188
24166
|
D.style.position = "absolute", D.style.left = `${nt}px`, D.style.top = `${or}px`, D.classList.add("is-visible"), bi = nt, mi = or;
|
|
24189
24167
|
} else O && bi !== null && mi !== null ? (D.style.position = "absolute", D.style.left = `${bi}px`, D.style.top = `${mi}px`, D.classList.add("is-visible")) : D.classList.remove("is-visible");
|
|
24190
24168
|
}
|
|
@@ -24197,7 +24175,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24197
24175
|
subtree: !0,
|
|
24198
24176
|
attributes: !0,
|
|
24199
24177
|
attributeFilter: ["selected"]
|
|
24200
|
-
}), window.addEventListener("scroll", No), window.addEventListener("resize", No), await
|
|
24178
|
+
}), window.addEventListener("scroll", No), window.addEventListener("resize", No), await Se(1e4), kr(), await Se(1e4), kr(), await Se(1e4), kr();
|
|
24201
24179
|
}), (at, D) => (v(), C("div", U6, [
|
|
24202
24180
|
gt.value && !w.value ? (v(), xt(q6, { key: 0 })) : L("", !0),
|
|
24203
24181
|
G(zr, {
|
|
@@ -24247,11 +24225,11 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24247
24225
|
G(vo, {
|
|
24248
24226
|
showDynamicModalBuilder: Vt.value,
|
|
24249
24227
|
isLoading: Qe.value,
|
|
24250
|
-
type:
|
|
24228
|
+
type: ge.value,
|
|
24251
24229
|
gridColumnAmount: Ze.value,
|
|
24252
|
-
title:
|
|
24230
|
+
title: fe.value,
|
|
24253
24231
|
description: tr.value,
|
|
24254
|
-
firstButtonText:
|
|
24232
|
+
firstButtonText: he.value,
|
|
24255
24233
|
secondButtonText: er.value,
|
|
24256
24234
|
thirdButtonText: Ae.value,
|
|
24257
24235
|
onFirstModalButtonFunctionDynamicModalBuilder: rr.value,
|
|
@@ -24267,12 +24245,12 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24267
24245
|
}, 8, ["showDynamicModalBuilder", "isLoading", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
|
|
24268
24246
|
G(vo, {
|
|
24269
24247
|
showDynamicModalBuilder: ze.value,
|
|
24270
|
-
isLoading:
|
|
24248
|
+
isLoading: Yt.value,
|
|
24271
24249
|
type: yr.value,
|
|
24272
24250
|
gridColumnAmount: Ao.value,
|
|
24273
24251
|
title: Zr.value,
|
|
24274
24252
|
description: to.value,
|
|
24275
|
-
firstButtonText:
|
|
24253
|
+
firstButtonText: ye.value,
|
|
24276
24254
|
secondButtonText: De.value,
|
|
24277
24255
|
thirdButtonText: wr.value,
|
|
24278
24256
|
onFirstModalButtonFunctionDynamicModalBuilder: Fe.value,
|
|
@@ -24332,12 +24310,12 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24332
24310
|
["stop"]
|
|
24333
24311
|
)),
|
|
24334
24312
|
type: "button",
|
|
24335
|
-
disabled:
|
|
24313
|
+
disabled: ie.value
|
|
24336
24314
|
}, [
|
|
24337
|
-
|
|
24315
|
+
ie.value ? L("", !0) : (v(), C("div", Q6, D[24] || (D[24] = [
|
|
24338
24316
|
b("span", { class: "material-symbols-outlined" }, "save", -1)
|
|
24339
24317
|
]))),
|
|
24340
|
-
|
|
24318
|
+
ie.value ? (v(), C("div", Z6, D[25] || (D[25] = [
|
|
24341
24319
|
b("span", { class: "pbx-relative pbx-flex pbx-size-3" }, [
|
|
24342
24320
|
b("span", { class: "pbx-absolute pbx-inline-flex pbx-h-full pbx-w-full pbx-animate-ping pbx-rounded-full pbx-bg-gray-400 pbx-opacity-75" }),
|
|
24343
24321
|
b("span", { class: "pbx-relative pbx-inline-flex pbx-size-3 pbx-rounded-full pbx-bg-green-200" })
|
|
@@ -24355,12 +24333,12 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24355
24333
|
["stop"]
|
|
24356
24334
|
)),
|
|
24357
24335
|
type: "button",
|
|
24358
|
-
disabled:
|
|
24336
|
+
disabled: Yt.value
|
|
24359
24337
|
}, [
|
|
24360
|
-
|
|
24338
|
+
Yt.value ? L("", !0) : (v(), C("div", eC, D[27] || (D[27] = [
|
|
24361
24339
|
b("span", { class: "material-symbols-outlined" }, " settings_backup_restore ", -1)
|
|
24362
24340
|
]))),
|
|
24363
|
-
|
|
24341
|
+
Yt.value ? (v(), C("div", rC, D[28] || (D[28] = [
|
|
24364
24342
|
b("span", { class: "pbx-relative pbx-flex pbx-size-3" }, [
|
|
24365
24343
|
b("span", { class: "pbx-absolute pbx-inline-flex pbx-h-full pbx-w-full pbx-animate-ping pbx-rounded-full pbx-bg-gray-400 pbx-opacity-75" }),
|
|
24366
24344
|
b("span", { class: "pbx-relative pbx-inline-flex pbx-size-3 pbx-rounded-full pbx-bg-green-200" })
|
|
@@ -24502,7 +24480,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24502
24480
|
b("div", dC, [
|
|
24503
24481
|
b("div", {
|
|
24504
24482
|
ref_key: "draggableZone",
|
|
24505
|
-
ref:
|
|
24483
|
+
ref: lt
|
|
24506
24484
|
}, [
|
|
24507
24485
|
(v(!0), C(dt, null, ht(X.value, (O) => (v(), C("div", {
|
|
24508
24486
|
key: O.id,
|