@emailmaker/emailmaker 1.1.53 → 1.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/emailmaker-core.dd403703.js +673 -0
- package/emailmaker-esm.js +888 -565
- package/emailmaker.d.ts +8 -0
- package/emailmaker.js +762 -479
- package/iframe/js/amp.V09Q6hy6.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.B-wCbIo7.js +1 -1
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -7
- package/runtime/THIRD_PARTY_LICENSES.txt +0 -235
- package/runtime/index.js +0 -2
- package/runtime/package.json +0 -6
- package/runtime/plugin-dev-manifest.json +0 -4
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{b3475019.js → 1567a51d.js} +3 -3
- package/static/core/{3723b7392.js → 17f94ad52.js} +2 -2
- package/static/core/{cc1487fb.js → 3763d012.js} +221 -210
- package/static/core/{f903e0b02.js → 3b0afd352.js} +17 -17
- package/static/core/{9f0a0813.js → 478adc67.js} +26 -8
- package/static/core/{83b6ffb1.js → 5430829b.js} +15291 -14910
- package/static/core/{51d702ff2.js → 54db7dc92.js} +3 -3
- package/static/core/{97d77f4b.js → 5761661e.js} +5 -5
- package/static/core/{7f43dc55.js → 5c5734a1.js} +10 -10
- package/static/core/{704587a1.js → 60b14e0c.js} +17 -17
- package/static/core/6115fe1b.js +3150 -0
- package/static/core/{9e5fd9cd.js → 7515f9852.js} +1 -1
- package/static/core/{1ce9dbcd2.js → 86a167002.js} +4 -4
- package/static/core/{54619353.js → 86ef0d53.js} +7 -7
- package/static/core/{10ac6936.js → 87d6fa75.js} +5 -5
- package/static/core/8b2a4177.js +811 -0
- package/static/core/{c4f07357.js → 95fcea69.js} +5 -5
- package/static/core/{956da3cd.js → 99b9545a.js} +9096 -9074
- package/static/core/{b6536443.js → 9be94d262.js} +1 -1
- package/static/core/{d745f656.js → a88dd635.js} +1019 -1032
- package/static/core/{d858c4102.js → aa8e5c1c2.js} +3 -3
- package/static/core/{51134c092.js → afd04ca42.js} +4 -4
- package/static/core/{7e999d72.js → b6907f0c.js} +13 -13
- package/static/core/{c46c4a1e2.js → b6cc5b522.js} +4 -4
- package/static/core/c734b889.js +466 -0
- package/static/core/{61a44678.js → cbac193c.js} +6789 -4865
- package/static/core/{927ea89f2.js → d7506406.js} +1 -1
- package/static/core/{d6b9ee5f2.js → d76199d02.js} +15 -15
- package/static/core/{abb0338c.js → d89e1015.js} +90 -90
- package/static/core/{4f1afec5.js → e437b0b0.js} +787 -792
- package/static/core/{b768aab6.js → e57264b8.js} +3 -3
- package/static/core/{57d41489.js → e900413d.js} +2134 -2040
- package/static/core/{4a0c3723.js → f25e08d3.js} +25 -25
- package/static/core/{75e0e02f.js → fa39fd23.js} +26 -26
- package/static/core/{898acf3a.js → fd0c6ce7.js} +8 -8
- package/static/core/{4a151a86.js → ffb0449a.js} +42 -42
- package/static/core/{c79a7344.js → ffd61885.js} +5 -5
- package/static/esm/7cd4296a.js +131 -0
- package/static/esm/{1ce2bc32.js → adb3ef80.js} +69 -88
- package/two_step_headless_plugin.html +1 -1
- package/emailmaker-core.2cbaea2b.js +0 -643
- package/runtime/prop-types/index.js +0 -4
- package/runtime/react-router-dom/index.js +0 -2
- package/static/core/342d650a.js +0 -467
- package/static/core/3bff559e.js +0 -3097
- package/static/core/9e7e9aa52.js +0 -602
- package/static/esm/c9e541a3.js +0 -127
- package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
- package/static/runtime/prop-types-p_yYKrF7.js +0 -47
- /package/iframe/{iframe-eblock.2cbaea2b.html → iframe-eblock.dd403703.html} +0 -0
- /package/iframe/{iframe.2cbaea2b.html → iframe.dd403703.html} +0 -0
package/emailmaker.js
CHANGED
|
@@ -689,7 +689,7 @@ var __amdEnv = window.__emailmaker__ || (window.__emailmaker__ = {});
|
|
|
689
689
|
|
|
690
690
|
|
|
691
691
|
// Configure AMD loader
|
|
692
|
-
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"emailmaker-core.
|
|
692
|
+
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"emailmaker-core.dd403703.js"} });
|
|
693
693
|
|
|
694
694
|
// PublicPath (script detection: entry script lookup → document.currentScript)
|
|
695
695
|
if (!__emailmaker__.publicPath) {
|
|
@@ -1037,7 +1037,7 @@ if (!ns.assetUrl) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
if (!ns.version) {
|
|
1040
|
-
ns.version = "1.1.
|
|
1040
|
+
ns.version = "1.1.60";
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
var modules = ns.modules = Object.create(null);
|
|
@@ -1050,8 +1050,6 @@ if (!ns.version) {
|
|
|
1050
1050
|
modules["ReactDomClient"] = runtimePromise.then(function(m) { return m["ReactDomClient"]; });
|
|
1051
1051
|
modules["ReactJsxRuntime"] = runtimePromise.then(function(m) { return m["ReactJsxRuntime"]; });
|
|
1052
1052
|
modules["ReactJsxDevRuntime"] = runtimePromise.then(function(m) { return m["ReactJsxDevRuntime"]; });
|
|
1053
|
-
modules["PropTypes"] = runtimePromise.then(function(m) { return m["PropTypes"]; });
|
|
1054
|
-
modules["ReactRouterDom"] = runtimePromise.then(function(m) { return m["ReactRouterDom"]; });
|
|
1055
1053
|
modules["Antd"] = runtimePromise.then(function(m) { return m["Antd"]; });
|
|
1056
1054
|
modules["AntDesignIcons"] = runtimePromise.then(function(m) { return m["AntDesignIcons"]; });
|
|
1057
1055
|
modules["AntDesignCssinjs"] = runtimePromise.then(function(m) { return m["AntDesignCssinjs"]; });
|
|
@@ -1291,70 +1289,6 @@ if (typeof ns.define === 'function') {
|
|
|
1291
1289
|
return __toSharedEsModule(originalValue);
|
|
1292
1290
|
});
|
|
1293
1291
|
});
|
|
1294
|
-
ns.define("prop-types", [], function() {
|
|
1295
|
-
var value = _modules["PropTypes"];
|
|
1296
|
-
if (value && typeof value.then === 'function') {
|
|
1297
|
-
return _modulesPromise.then(function(barrel) {
|
|
1298
|
-
var originalValue = barrel["PropTypes"];
|
|
1299
|
-
return __toSharedEsModule(originalValue);
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
if (value !== undefined) {
|
|
1303
|
-
return __toSharedEsModule(value);
|
|
1304
|
-
}
|
|
1305
|
-
return _modulesPromise.then(function(barrel) {
|
|
1306
|
-
var originalValue = barrel["PropTypes"];
|
|
1307
|
-
return __toSharedEsModule(originalValue);
|
|
1308
|
-
});
|
|
1309
|
-
});
|
|
1310
|
-
ns.define("@emailmaker/emailmaker/runtime/prop-types", [], function() {
|
|
1311
|
-
var value = _modules["PropTypes"];
|
|
1312
|
-
if (value && typeof value.then === 'function') {
|
|
1313
|
-
return _modulesPromise.then(function(barrel) {
|
|
1314
|
-
var originalValue = barrel["PropTypes"];
|
|
1315
|
-
return __toSharedEsModule(originalValue);
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
if (value !== undefined) {
|
|
1319
|
-
return __toSharedEsModule(value);
|
|
1320
|
-
}
|
|
1321
|
-
return _modulesPromise.then(function(barrel) {
|
|
1322
|
-
var originalValue = barrel["PropTypes"];
|
|
1323
|
-
return __toSharedEsModule(originalValue);
|
|
1324
|
-
});
|
|
1325
|
-
});
|
|
1326
|
-
ns.define("react-router-dom", [], function() {
|
|
1327
|
-
var value = _modules["ReactRouterDom"];
|
|
1328
|
-
if (value && typeof value.then === 'function') {
|
|
1329
|
-
return _modulesPromise.then(function(barrel) {
|
|
1330
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1331
|
-
return __toSharedEsModule(originalValue);
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
if (value !== undefined) {
|
|
1335
|
-
return __toSharedEsModule(value);
|
|
1336
|
-
}
|
|
1337
|
-
return _modulesPromise.then(function(barrel) {
|
|
1338
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1339
|
-
return __toSharedEsModule(originalValue);
|
|
1340
|
-
});
|
|
1341
|
-
});
|
|
1342
|
-
ns.define("@emailmaker/emailmaker/runtime/react-router-dom", [], function() {
|
|
1343
|
-
var value = _modules["ReactRouterDom"];
|
|
1344
|
-
if (value && typeof value.then === 'function') {
|
|
1345
|
-
return _modulesPromise.then(function(barrel) {
|
|
1346
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1347
|
-
return __toSharedEsModule(originalValue);
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
if (value !== undefined) {
|
|
1351
|
-
return __toSharedEsModule(value);
|
|
1352
|
-
}
|
|
1353
|
-
return _modulesPromise.then(function(barrel) {
|
|
1354
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1355
|
-
return __toSharedEsModule(originalValue);
|
|
1356
|
-
});
|
|
1357
|
-
});
|
|
1358
1292
|
ns.define("antd", [], function() {
|
|
1359
1293
|
var value = _modules["Antd"];
|
|
1360
1294
|
if (value && typeof value.then === 'function') {
|
|
@@ -1589,26 +1523,33 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1589
1523
|
"require",
|
|
1590
1524
|
"exports",
|
|
1591
1525
|
"module"
|
|
1592
|
-
], function(
|
|
1526
|
+
], function(ln, E, fn) {
|
|
1593
1527
|
Object.defineProperties(E, {
|
|
1594
1528
|
__esModule: { value: !0 },
|
|
1595
1529
|
[Symbol.toStringTag]: { value: "Module" }
|
|
1596
1530
|
});
|
|
1597
|
-
var
|
|
1531
|
+
var se = Object.defineProperty, ce = (e, t, r) => () => {
|
|
1532
|
+
if (r) throw r[0];
|
|
1533
|
+
try {
|
|
1534
|
+
return e && (t = e(e = 0)), t;
|
|
1535
|
+
} catch (n) {
|
|
1536
|
+
throw r = [n], n;
|
|
1537
|
+
}
|
|
1538
|
+
}, ue = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), le = (e, t) => {
|
|
1598
1539
|
let r = {};
|
|
1599
|
-
for (var n in e)
|
|
1540
|
+
for (var n in e) se(r, n, {
|
|
1600
1541
|
get: e[n],
|
|
1601
1542
|
enumerable: !0
|
|
1602
1543
|
});
|
|
1603
|
-
return t ||
|
|
1604
|
-
},
|
|
1544
|
+
return t || se(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
1545
|
+
}, b = class lt {
|
|
1605
1546
|
_inner;
|
|
1606
1547
|
_isDisposed = !1;
|
|
1607
1548
|
constructor(t = []) {
|
|
1608
1549
|
this._inner = t;
|
|
1609
1550
|
}
|
|
1610
1551
|
addDisposable(t) {
|
|
1611
|
-
return this._inner.push(t), t instanceof
|
|
1552
|
+
return this._inner.push(t), t instanceof lt && t.addDispose(() => {
|
|
1612
1553
|
this.removeDisposable(t);
|
|
1613
1554
|
}), t;
|
|
1614
1555
|
}
|
|
@@ -1629,10 +1570,10 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1629
1570
|
}
|
|
1630
1571
|
}
|
|
1631
1572
|
};
|
|
1632
|
-
function
|
|
1573
|
+
function W(e) {
|
|
1633
1574
|
return `service_container_${e}`;
|
|
1634
1575
|
}
|
|
1635
|
-
var
|
|
1576
|
+
var dt = class ae extends b {
|
|
1636
1577
|
_parent;
|
|
1637
1578
|
_injectCallbacks = [];
|
|
1638
1579
|
_injections = Object.create(null);
|
|
@@ -1650,17 +1591,17 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1650
1591
|
this._injections[t] = () => r, this._runCallbacks(t);
|
|
1651
1592
|
}
|
|
1652
1593
|
injectFactory(t, r, n) {
|
|
1653
|
-
const
|
|
1654
|
-
let
|
|
1655
|
-
const
|
|
1656
|
-
n &&
|
|
1594
|
+
const i = this._injections[t];
|
|
1595
|
+
let o = typeof i == "function" ? i() : i;
|
|
1596
|
+
const a = this._injections[t] = () => (o = r(this, o), o);
|
|
1597
|
+
n && a(), this._runCallbacks(t);
|
|
1657
1598
|
}
|
|
1658
1599
|
_find(t, r = !0) {
|
|
1659
1600
|
return this._injections[t] || r && this._parent?._find(t);
|
|
1660
1601
|
}
|
|
1661
|
-
_onInject(t, r, n = new
|
|
1662
|
-
return n.addDisposable(this.onInject((
|
|
1663
|
-
t ===
|
|
1602
|
+
_onInject(t, r, n = new b()) {
|
|
1603
|
+
return n.addDisposable(this.onInject((i) => {
|
|
1604
|
+
t === i && (n.dispose(), r(this.getInstance(i)));
|
|
1664
1605
|
})), this._parent && n.addDisposable(this._parent._onInject(t, r, n)), this.addDisposable(n), n;
|
|
1665
1606
|
}
|
|
1666
1607
|
getInstance(t, r = !0) {
|
|
@@ -1670,145 +1611,126 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1670
1611
|
getOrCreateInstance(t, r) {
|
|
1671
1612
|
const n = this._find(t);
|
|
1672
1613
|
if (typeof n == "function") return n();
|
|
1673
|
-
const
|
|
1674
|
-
return this.inject(t,
|
|
1614
|
+
const i = r(this);
|
|
1615
|
+
return this.inject(t, i), i;
|
|
1675
1616
|
}
|
|
1676
1617
|
getInstanceAsync(t) {
|
|
1677
1618
|
const r = this._find(t);
|
|
1678
1619
|
return typeof r == "function" ? Promise.resolve(r()) : new Promise((n) => this._onInject(t, () => n(this.getInstance(t))));
|
|
1679
1620
|
}
|
|
1680
1621
|
addService(t, r) {
|
|
1681
|
-
const n =
|
|
1682
|
-
this.injectFactory(n, (
|
|
1683
|
-
const
|
|
1684
|
-
return
|
|
1685
|
-
this.injectFactory(n, (
|
|
1686
|
-
}),
|
|
1622
|
+
const n = W(t);
|
|
1623
|
+
this.injectFactory(n, (o, a = []) => a.indexOf(r) < 0 ? [...a, r] : a);
|
|
1624
|
+
const i = new b();
|
|
1625
|
+
return i.addDispose(() => {
|
|
1626
|
+
this.injectFactory(n, (o, a = []) => a.filter((l) => l !== r));
|
|
1627
|
+
}), i;
|
|
1687
1628
|
}
|
|
1688
1629
|
addServiceFactory(t, r, n) {
|
|
1689
|
-
const
|
|
1690
|
-
let
|
|
1691
|
-
this.injectFactory(
|
|
1692
|
-
const
|
|
1693
|
-
return
|
|
1694
|
-
this.injectFactory(
|
|
1695
|
-
}),
|
|
1630
|
+
const i = W(t);
|
|
1631
|
+
let o;
|
|
1632
|
+
this.injectFactory(i, (l, f = []) => (o = r(l, o), o === void 0 ? f : f.indexOf(o) < 0 ? [...f, o] : f), n);
|
|
1633
|
+
const a = new b();
|
|
1634
|
+
return a.addDispose(() => {
|
|
1635
|
+
this.injectFactory(i, (l, f = []) => o === void 0 ? f : f.filter((c) => c !== o));
|
|
1636
|
+
}), a;
|
|
1696
1637
|
}
|
|
1697
1638
|
getServices(t) {
|
|
1698
|
-
const r =
|
|
1639
|
+
const r = W(t);
|
|
1699
1640
|
return [...this.getInstance(r, !1) || [], ...this._parent?.getServices(t) || []];
|
|
1700
1641
|
}
|
|
1701
1642
|
createChild() {
|
|
1702
|
-
return new
|
|
1643
|
+
return new ae(this);
|
|
1703
1644
|
}
|
|
1704
1645
|
getOrCreateIsolatedContainer(t) {
|
|
1705
1646
|
return this.getOrCreateInstance(t, () => {
|
|
1706
1647
|
const r = this._parent?.getOrCreateIsolatedContainer(t);
|
|
1707
|
-
return new
|
|
1648
|
+
return new ae(r);
|
|
1708
1649
|
});
|
|
1709
1650
|
}
|
|
1710
1651
|
dispose() {
|
|
1711
1652
|
this._injections = Object.create(null);
|
|
1712
1653
|
}
|
|
1713
1654
|
};
|
|
1714
|
-
function
|
|
1655
|
+
function V(e) {
|
|
1715
1656
|
return e.startsWith("__") ? e : `__${e}__`;
|
|
1716
1657
|
}
|
|
1717
|
-
function
|
|
1658
|
+
function pt(e) {
|
|
1718
1659
|
if (typeof globalThis > "u") throw new Error("[di] globalThis is required for namespace container access.");
|
|
1719
|
-
const t =
|
|
1660
|
+
const t = V(e), r = globalThis;
|
|
1720
1661
|
return r[t] ??= {};
|
|
1721
1662
|
}
|
|
1722
|
-
function
|
|
1663
|
+
function _t(e) {
|
|
1723
1664
|
return e != null && typeof e == "object" && typeof e.inject == "function" && typeof e.getInstance == "function";
|
|
1724
1665
|
}
|
|
1725
|
-
function
|
|
1726
|
-
if (e) return
|
|
1727
|
-
return
|
|
1666
|
+
function ht(e) {
|
|
1667
|
+
if (e) return V(e);
|
|
1668
|
+
return V("emailmaker".trim());
|
|
1728
1669
|
}
|
|
1729
|
-
function
|
|
1730
|
-
const t =
|
|
1731
|
-
if (
|
|
1732
|
-
const r = new
|
|
1670
|
+
function fe(e) {
|
|
1671
|
+
const t = pt(ht(e));
|
|
1672
|
+
if (_t(t.container)) return t.container;
|
|
1673
|
+
const r = new dt(null);
|
|
1733
1674
|
return t.container = r, r;
|
|
1734
1675
|
}
|
|
1735
|
-
function
|
|
1736
|
-
return
|
|
1676
|
+
function Et(e) {
|
|
1677
|
+
return fe(e);
|
|
1737
1678
|
}
|
|
1738
|
-
function
|
|
1679
|
+
function gt() {
|
|
1739
1680
|
let e = new Date().getTime(), t = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
|
|
1740
1681
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
|
|
1741
1682
|
let n = Math.random() * 16;
|
|
1742
1683
|
return e > 0 ? (n = (e + n) % 16 | 0, e = Math.floor(e / 16)) : (n = (t + n) % 16 | 0, t = Math.floor(t / 16)), (r === "x" ? n : n & 3 | 8).toString(16);
|
|
1743
1684
|
});
|
|
1744
1685
|
}
|
|
1745
|
-
function
|
|
1746
|
-
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() :
|
|
1686
|
+
function mt() {
|
|
1687
|
+
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : gt();
|
|
1747
1688
|
}
|
|
1748
|
-
function
|
|
1689
|
+
function d(e = mt()) {
|
|
1749
1690
|
return e;
|
|
1750
1691
|
}
|
|
1751
|
-
function
|
|
1692
|
+
function de() {
|
|
1752
1693
|
return "umd".trim();
|
|
1753
1694
|
}
|
|
1754
|
-
function
|
|
1695
|
+
function yt(e) {
|
|
1755
1696
|
if (typeof globalThis > "u") return;
|
|
1756
|
-
const t =
|
|
1697
|
+
const t = de(), r = globalThis[e] ?? {};
|
|
1757
1698
|
globalThis[e] = r;
|
|
1758
|
-
const n = r.__diagnostics ??= {},
|
|
1699
|
+
const n = r.__diagnostics ??= {}, i = n.diModuleEval ??= {
|
|
1759
1700
|
evalCount: 0,
|
|
1760
|
-
records: []
|
|
1761
|
-
duplicateWarned: !1
|
|
1701
|
+
records: []
|
|
1762
1702
|
};
|
|
1763
|
-
|
|
1703
|
+
i.records.push({
|
|
1764
1704
|
buildSource: t,
|
|
1765
1705
|
timestamp: Date.now(),
|
|
1766
1706
|
stack: new Error().stack
|
|
1767
|
-
}),
|
|
1768
|
-
o.duplicateWarned = !0;
|
|
1769
|
-
o.evalCount, o.records;
|
|
1707
|
+
}), i.evalCount += 1;
|
|
1770
1708
|
}
|
|
1771
|
-
function
|
|
1709
|
+
function At() {
|
|
1772
1710
|
return `__${"emailmaker".trim()}__`;
|
|
1773
1711
|
}
|
|
1774
|
-
function
|
|
1775
|
-
if (
|
|
1776
|
-
const r =
|
|
1777
|
-
entries: [],
|
|
1778
|
-
warnings: []
|
|
1779
|
-
}, d = {
|
|
1712
|
+
function It(e, t) {
|
|
1713
|
+
if (yt(t), typeof globalThis > "u") return e;
|
|
1714
|
+
const r = de(), n = globalThis, i = n[t] = n[t] || {}, o = i.__diagnostics = i.__diagnostics || {}, a = o.dependencyResolver = o.dependencyResolver || { entries: [] }, l = {
|
|
1780
1715
|
container: e,
|
|
1781
1716
|
source: "packages/runtime-core/di/index.ts",
|
|
1782
1717
|
buildSource: r,
|
|
1783
1718
|
timestamp: Date.now(),
|
|
1784
1719
|
stack: new Error().stack
|
|
1785
1720
|
};
|
|
1786
|
-
|
|
1787
|
-
const f = s.entries[0];
|
|
1788
|
-
if (s.entries.some((c) => c.container !== f.container) && !s.duplicateWarningShown) {
|
|
1789
|
-
s.duplicateWarningShown = !0;
|
|
1790
|
-
const c = {
|
|
1791
|
-
message: "[di] Multiple DependencyResolver instances detected on namespace",
|
|
1792
|
-
namespaceKey: t,
|
|
1793
|
-
buildSource: r,
|
|
1794
|
-
entries: s.entries
|
|
1795
|
-
};
|
|
1796
|
-
s.warnings.push(c);
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
return e;
|
|
1721
|
+
return a.entries.push(l), e;
|
|
1800
1722
|
}
|
|
1801
|
-
var
|
|
1802
|
-
function
|
|
1803
|
-
if (
|
|
1804
|
-
const e =
|
|
1805
|
-
return
|
|
1723
|
+
var F;
|
|
1724
|
+
function Tt() {
|
|
1725
|
+
if (F) return F;
|
|
1726
|
+
const e = At();
|
|
1727
|
+
return F = It(fe(e), e), F;
|
|
1806
1728
|
}
|
|
1807
1729
|
new Proxy({}, { get(e, t, r) {
|
|
1808
|
-
const n =
|
|
1809
|
-
return typeof
|
|
1730
|
+
const n = Tt(), i = Reflect.get(n, t, r);
|
|
1731
|
+
return typeof i == "function" ? i.bind(n) : i;
|
|
1810
1732
|
} });
|
|
1811
|
-
function
|
|
1733
|
+
function St(e, t = "BackendError") {
|
|
1812
1734
|
switch (e) {
|
|
1813
1735
|
case 400: return "ValidationError";
|
|
1814
1736
|
case 401: return "AuthenticationFailed";
|
|
@@ -1823,7 +1745,7 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1823
1745
|
default: return t;
|
|
1824
1746
|
}
|
|
1825
1747
|
}
|
|
1826
|
-
var
|
|
1748
|
+
var vt = class {
|
|
1827
1749
|
_plugins = new Map();
|
|
1828
1750
|
_listeners = new Map();
|
|
1829
1751
|
_getOrCreateEntry(e) {
|
|
@@ -1838,10 +1760,10 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1838
1760
|
_notifyListeners(e, t) {
|
|
1839
1761
|
const r = this._listeners.get(e);
|
|
1840
1762
|
if (!r || r.length === 0) return;
|
|
1841
|
-
for (const
|
|
1842
|
-
|
|
1763
|
+
for (const i of r) try {
|
|
1764
|
+
i.callback(t);
|
|
1843
1765
|
} catch {}
|
|
1844
|
-
const n = r.filter((
|
|
1766
|
+
const n = r.filter((i) => !i.once);
|
|
1845
1767
|
n.length > 0 ? this._listeners.set(e, n) : this._listeners.delete(e);
|
|
1846
1768
|
}
|
|
1847
1769
|
get(e) {
|
|
@@ -1856,7 +1778,7 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1856
1778
|
return this._applyOverrides(e, r);
|
|
1857
1779
|
}
|
|
1858
1780
|
if (t?.factory) {
|
|
1859
|
-
const r = Promise.resolve(t.factory()).then((
|
|
1781
|
+
const r = Promise.resolve(t.factory()).then((i) => (t.ctor = i, t.loading = void 0, this._notifyListeners(e, i), i));
|
|
1860
1782
|
t.loading = r;
|
|
1861
1783
|
const n = await r;
|
|
1862
1784
|
return this._applyOverrides(e, n);
|
|
@@ -1900,22 +1822,22 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1900
1822
|
r && t(r);
|
|
1901
1823
|
let n = this._listeners.get(e);
|
|
1902
1824
|
n || (n = [], this._listeners.set(e, n));
|
|
1903
|
-
const
|
|
1825
|
+
const i = {
|
|
1904
1826
|
callback: t,
|
|
1905
1827
|
once: !1
|
|
1906
1828
|
};
|
|
1907
|
-
return n.push(
|
|
1829
|
+
return n.push(i), { dispose: () => this._removeListener(e, t) };
|
|
1908
1830
|
}
|
|
1909
1831
|
once(e, t) {
|
|
1910
1832
|
const r = this.get(e);
|
|
1911
1833
|
if (r) return t(r), { dispose: () => {} };
|
|
1912
1834
|
let n = this._listeners.get(e);
|
|
1913
1835
|
n || (n = [], this._listeners.set(e, n));
|
|
1914
|
-
const
|
|
1836
|
+
const i = {
|
|
1915
1837
|
callback: t,
|
|
1916
1838
|
once: !0
|
|
1917
1839
|
};
|
|
1918
|
-
return n.push(
|
|
1840
|
+
return n.push(i), { dispose: () => this._removeListener(e, t) };
|
|
1919
1841
|
}
|
|
1920
1842
|
off(e, t) {
|
|
1921
1843
|
this._removeListener(e, t);
|
|
@@ -1923,7 +1845,7 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1923
1845
|
_removeListener(e, t) {
|
|
1924
1846
|
const r = this._listeners.get(e);
|
|
1925
1847
|
if (r) {
|
|
1926
|
-
const n = r.findIndex((
|
|
1848
|
+
const n = r.findIndex((i) => i.callback === t);
|
|
1927
1849
|
n >= 0 && r.splice(n, 1), r.length === 0 && this._listeners.delete(e);
|
|
1928
1850
|
}
|
|
1929
1851
|
}
|
|
@@ -1936,7 +1858,7 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1936
1858
|
e.add(t, r);
|
|
1937
1859
|
} };
|
|
1938
1860
|
}
|
|
1939
|
-
},
|
|
1861
|
+
}, wt = class {
|
|
1940
1862
|
resolveRegistry;
|
|
1941
1863
|
constructor(e) {
|
|
1942
1864
|
this.resolveRegistry = e;
|
|
@@ -1983,100 +1905,100 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
1983
1905
|
forContext() {
|
|
1984
1906
|
return this.target().forContext();
|
|
1985
1907
|
}
|
|
1986
|
-
},
|
|
1987
|
-
function
|
|
1908
|
+
}, q = null, Ot = "core";
|
|
1909
|
+
function Dt() {
|
|
1988
1910
|
return typeof __emailmaker__?.require != "function" ? Promise.reject(new Error("[loadEngine] AMD loader is unavailable")) : new Promise((e, t) => {
|
|
1989
|
-
__emailmaker__.require([
|
|
1911
|
+
__emailmaker__.require([Ot], (r) => e(r), (r) => t(r instanceof Error ? r : new Error("[loadEngine] Failed to require core module")));
|
|
1990
1912
|
});
|
|
1991
1913
|
}
|
|
1992
|
-
function
|
|
1993
|
-
return
|
|
1914
|
+
function $() {
|
|
1915
|
+
return q || (q = Dt()), q;
|
|
1994
1916
|
}
|
|
1995
|
-
var
|
|
1996
|
-
async function
|
|
1917
|
+
var K = null, X = null;
|
|
1918
|
+
async function Nt(e) {
|
|
1997
1919
|
typeof e?.prefetch == "function" && await e.prefetch();
|
|
1998
1920
|
}
|
|
1999
|
-
function
|
|
2000
|
-
return
|
|
1921
|
+
function pe() {
|
|
1922
|
+
return K || (K = $().then(() => {})), K;
|
|
2001
1923
|
}
|
|
2002
|
-
function
|
|
2003
|
-
return
|
|
1924
|
+
function z(e) {
|
|
1925
|
+
return X || (X = Nt(e)), X;
|
|
2004
1926
|
}
|
|
2005
|
-
function
|
|
2006
|
-
return Promise.all([
|
|
1927
|
+
function _e(e) {
|
|
1928
|
+
return Promise.all([pe(), z(e)]).then(() => {});
|
|
2007
1929
|
}
|
|
2008
|
-
function
|
|
1930
|
+
function bt(e) {
|
|
2009
1931
|
const t = e?.startupPrefetchMode;
|
|
2010
1932
|
return t === "eager" || t === "idle" || t === "manual" || t === "off" ? t : "eager";
|
|
2011
1933
|
}
|
|
2012
|
-
function
|
|
2013
|
-
Promise.resolve().then(() =>
|
|
1934
|
+
function J(e) {
|
|
1935
|
+
Promise.resolve().then(() => _e(e)).catch(() => {});
|
|
2014
1936
|
}
|
|
2015
|
-
function
|
|
2016
|
-
Promise.resolve().then(() =>
|
|
1937
|
+
function Ct(e) {
|
|
1938
|
+
Promise.resolve().then(() => z(e)).catch(() => {});
|
|
2017
1939
|
}
|
|
2018
|
-
function
|
|
2019
|
-
const t =
|
|
2020
|
-
if (t === "eager")
|
|
1940
|
+
function Pt(e) {
|
|
1941
|
+
const t = bt(e);
|
|
1942
|
+
if (t === "eager") J(e);
|
|
2021
1943
|
else if (t === "idle") {
|
|
2022
1944
|
const r = window.requestIdleCallback;
|
|
2023
|
-
typeof r == "function" ? r(() =>
|
|
1945
|
+
typeof r == "function" ? r(() => J(e), { timeout: 1500 }) : setTimeout(() => J(e), 0);
|
|
2024
1946
|
}
|
|
2025
1947
|
}
|
|
2026
|
-
var
|
|
2027
|
-
function
|
|
2028
|
-
return e.getOrCreateInstance(
|
|
1948
|
+
var Lt = "PluginRegistry";
|
|
1949
|
+
function Rt(e = Et()) {
|
|
1950
|
+
return e.getOrCreateInstance(Lt, () => new vt());
|
|
2029
1951
|
}
|
|
2030
|
-
var
|
|
2031
|
-
function
|
|
1952
|
+
var Mt = new wt(() => Rt()), P = new WeakMap(), xt = "data-emailmaker-config-styles";
|
|
1953
|
+
function kt(e) {
|
|
2032
1954
|
return typeof e == "string" ? e.trim() : "";
|
|
2033
1955
|
}
|
|
2034
|
-
function
|
|
1956
|
+
function he(e, t) {
|
|
2035
1957
|
if (e.firstChild) {
|
|
2036
1958
|
e.insertBefore(t, e.firstChild);
|
|
2037
1959
|
return;
|
|
2038
1960
|
}
|
|
2039
1961
|
e.appendChild(t);
|
|
2040
1962
|
}
|
|
2041
|
-
function
|
|
1963
|
+
function Ut(e, t, r) {
|
|
2042
1964
|
if (!e || typeof document > "u") return null;
|
|
2043
|
-
const n =
|
|
2044
|
-
if (!n) return
|
|
2045
|
-
if (
|
|
2046
|
-
const
|
|
2047
|
-
return
|
|
1965
|
+
const n = kt(t), i = P.get(e), o = r || e;
|
|
1966
|
+
if (!n) return i && (i.remove(), P.delete(e)), null;
|
|
1967
|
+
if (i) return i.textContent !== n && (i.textContent = n), (i.parentNode !== o || i !== o.firstChild) && he(o, i), i;
|
|
1968
|
+
const a = document.createElement("style");
|
|
1969
|
+
return a.setAttribute(xt, "true"), a.textContent = n, he(o, a), P.set(e, a), a;
|
|
2048
1970
|
}
|
|
2049
|
-
function
|
|
1971
|
+
function Ft(e) {
|
|
2050
1972
|
if (!e) return;
|
|
2051
|
-
const t =
|
|
2052
|
-
t && (t.remove(),
|
|
1973
|
+
const t = P.get(e);
|
|
1974
|
+
t && (t.remove(), P.delete(e));
|
|
2053
1975
|
}
|
|
2054
|
-
function
|
|
1976
|
+
function T(e) {
|
|
2055
1977
|
if (e instanceof DOMException && e.name === "AbortError") return e;
|
|
2056
1978
|
const t = e === void 0 ? "The operation was aborted." : typeof e == "string" ? e : e instanceof Error ? e.message : String(e);
|
|
2057
1979
|
return new DOMException(t, "AbortError");
|
|
2058
1980
|
}
|
|
2059
|
-
function
|
|
2060
|
-
if (e?.aborted) throw
|
|
1981
|
+
function h(e) {
|
|
1982
|
+
if (e?.aborted) throw T(e.reason);
|
|
2061
1983
|
}
|
|
2062
|
-
function
|
|
2063
|
-
return t ? (
|
|
2064
|
-
const
|
|
2065
|
-
|
|
2066
|
-
},
|
|
2067
|
-
t.removeEventListener("abort",
|
|
1984
|
+
function jt(e, t) {
|
|
1985
|
+
return t ? (h(t), new Promise((r, n) => {
|
|
1986
|
+
const i = () => {
|
|
1987
|
+
o(), n(T(t.reason));
|
|
1988
|
+
}, o = () => {
|
|
1989
|
+
t.removeEventListener("abort", i);
|
|
2068
1990
|
};
|
|
2069
|
-
t.addEventListener("abort",
|
|
2070
|
-
|
|
2071
|
-
}, (
|
|
2072
|
-
|
|
1991
|
+
t.addEventListener("abort", i), e.then((a) => {
|
|
1992
|
+
o(), r(a);
|
|
1993
|
+
}, (a) => {
|
|
1994
|
+
o(), n(a);
|
|
2073
1995
|
});
|
|
2074
1996
|
})) : e;
|
|
2075
1997
|
}
|
|
2076
|
-
function
|
|
1998
|
+
function Bt(e) {
|
|
2077
1999
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/([^a-zA-Z0-9_-])/g, "\\$1");
|
|
2078
2000
|
}
|
|
2079
|
-
function
|
|
2001
|
+
function Y(e, t = document) {
|
|
2080
2002
|
try {
|
|
2081
2003
|
const n = t.querySelector(e);
|
|
2082
2004
|
if (n) return n;
|
|
@@ -2085,77 +2007,77 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
2085
2007
|
}
|
|
2086
2008
|
const r = t.querySelectorAll("*");
|
|
2087
2009
|
for (let n = 0; n < r.length; n++) {
|
|
2088
|
-
const
|
|
2089
|
-
if (!
|
|
2090
|
-
const
|
|
2091
|
-
if (
|
|
2010
|
+
const i = r[n]?.shadowRoot;
|
|
2011
|
+
if (!i) continue;
|
|
2012
|
+
const o = Y(e, i);
|
|
2013
|
+
if (o) return o;
|
|
2092
2014
|
}
|
|
2093
2015
|
return null;
|
|
2094
2016
|
}
|
|
2095
|
-
function
|
|
2017
|
+
function Ee(e, t = []) {
|
|
2096
2018
|
const r = e.querySelectorAll("*");
|
|
2097
2019
|
for (let n = 0; n < r.length; n++) {
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2020
|
+
const i = r[n]?.shadowRoot;
|
|
2021
|
+
i && (t.push(i), Ee(i, t));
|
|
2100
2022
|
}
|
|
2101
2023
|
return t;
|
|
2102
2024
|
}
|
|
2103
|
-
function
|
|
2025
|
+
function Ht(e, t, r) {
|
|
2104
2026
|
if (e.isConnected) return e;
|
|
2105
2027
|
const n = e.id?.trim();
|
|
2106
|
-
return n ?
|
|
2028
|
+
return n ? ge(`#${Bt(n)}`, t, r) : Promise.reject(T("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."));
|
|
2107
2029
|
}
|
|
2108
|
-
function
|
|
2109
|
-
if (
|
|
2030
|
+
function ge(e, t, r) {
|
|
2031
|
+
if (h(r), typeof e < "u") {
|
|
2110
2032
|
if (typeof e == "string") {
|
|
2111
|
-
const n = e,
|
|
2112
|
-
if (
|
|
2113
|
-
const
|
|
2114
|
-
return new Promise((
|
|
2115
|
-
const f = (
|
|
2116
|
-
|
|
2033
|
+
const n = e, i = Y(n);
|
|
2034
|
+
if (i) return i;
|
|
2035
|
+
const o = t.addDisposable(new b());
|
|
2036
|
+
return new Promise((a, l) => {
|
|
2037
|
+
const f = (m) => {
|
|
2038
|
+
o.dispose(), m();
|
|
2117
2039
|
}, c = () => {
|
|
2118
|
-
f(() =>
|
|
2040
|
+
f(() => l(T(r?.reason)));
|
|
2119
2041
|
};
|
|
2120
2042
|
if (r?.aborted) {
|
|
2121
2043
|
c();
|
|
2122
2044
|
return;
|
|
2123
2045
|
}
|
|
2124
|
-
r?.addEventListener("abort", c),
|
|
2125
|
-
const
|
|
2126
|
-
if (!
|
|
2127
|
-
f(() =>
|
|
2046
|
+
r?.addEventListener("abort", c), o.addDispose(() => r?.removeEventListener("abort", c));
|
|
2047
|
+
const u = document.body ?? document.documentElement;
|
|
2048
|
+
if (!u) {
|
|
2049
|
+
f(() => l(T("Document is not ready to observe mount element")));
|
|
2128
2050
|
return;
|
|
2129
2051
|
}
|
|
2130
|
-
const p = new Set(),
|
|
2131
|
-
const
|
|
2132
|
-
if (
|
|
2133
|
-
f(() =>
|
|
2052
|
+
const p = new Set(), N = new MutationObserver(() => {
|
|
2053
|
+
const m = Y(n);
|
|
2054
|
+
if (m) {
|
|
2055
|
+
f(() => a(m));
|
|
2134
2056
|
return;
|
|
2135
2057
|
}
|
|
2136
|
-
|
|
2137
|
-
}),
|
|
2138
|
-
p.has(
|
|
2058
|
+
U();
|
|
2059
|
+
}), g = (m) => {
|
|
2060
|
+
p.has(m) || (p.add(m), N.observe(m, {
|
|
2139
2061
|
attributes: !0,
|
|
2140
2062
|
childList: !0,
|
|
2141
2063
|
subtree: !0
|
|
2142
2064
|
}));
|
|
2143
|
-
},
|
|
2144
|
-
const
|
|
2145
|
-
if (
|
|
2065
|
+
}, U = () => {
|
|
2066
|
+
const m = document.documentElement;
|
|
2067
|
+
if (m) for (const un of Ee(m)) g(un);
|
|
2146
2068
|
};
|
|
2147
|
-
|
|
2069
|
+
g(u), U(), o.addDispose(() => N.disconnect());
|
|
2148
2070
|
});
|
|
2149
2071
|
}
|
|
2150
|
-
return e instanceof Element ?
|
|
2072
|
+
return e instanceof Element ? Ht(e, t, r) : e;
|
|
2151
2073
|
}
|
|
2152
2074
|
return e;
|
|
2153
2075
|
}
|
|
2154
|
-
var
|
|
2155
|
-
function
|
|
2076
|
+
var S = new Map();
|
|
2077
|
+
function me() {
|
|
2156
2078
|
return !1;
|
|
2157
2079
|
}
|
|
2158
|
-
var
|
|
2080
|
+
var Gt = `
|
|
2159
2081
|
.blocks-app-initial-spinner-wrapper {
|
|
2160
2082
|
width: 100%;
|
|
2161
2083
|
height: 100%;
|
|
@@ -2185,34 +2107,342 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
2185
2107
|
transform: rotate(360deg);
|
|
2186
2108
|
}
|
|
2187
2109
|
}`;
|
|
2188
|
-
function
|
|
2110
|
+
function Wt() {
|
|
2189
2111
|
return () => {};
|
|
2190
2112
|
}
|
|
2191
|
-
function
|
|
2192
|
-
if (!
|
|
2193
|
-
e.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((
|
|
2194
|
-
|
|
2113
|
+
function Vt(e, t) {
|
|
2114
|
+
if (!me() || !e || typeof document > "u") return Wt();
|
|
2115
|
+
e.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((a) => {
|
|
2116
|
+
a.remove();
|
|
2195
2117
|
});
|
|
2196
2118
|
const r = document.createElement("div");
|
|
2197
2119
|
r.classList.add("blocks-app-initial-spinner-wrapper");
|
|
2198
2120
|
const n = document.createElement("div");
|
|
2199
2121
|
n.classList.add("blocks-app-initial-spinner"), r.appendChild(n);
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2202
|
-
let
|
|
2122
|
+
const i = document.createElement("style");
|
|
2123
|
+
i.setAttribute(t, "true"), i.textContent = Gt, document.head?.appendChild(i), e.appendChild(r);
|
|
2124
|
+
let o = !1;
|
|
2203
2125
|
return () => {
|
|
2204
|
-
|
|
2126
|
+
o || (o = !0, r.remove(), i.remove());
|
|
2205
2127
|
};
|
|
2206
2128
|
}
|
|
2207
|
-
|
|
2208
|
-
|
|
2129
|
+
var C, ye = ce((() => {
|
|
2130
|
+
ye(), C = typeof C < "u" ? C : typeof self < "u" ? self : typeof window < "u" ? window : {};
|
|
2131
|
+
}));
|
|
2132
|
+
function Ae() {
|
|
2133
|
+
throw new Error("setTimeout has not been defined");
|
|
2134
|
+
}
|
|
2135
|
+
function Ie() {
|
|
2136
|
+
throw new Error("clearTimeout has not been defined");
|
|
2137
|
+
}
|
|
2138
|
+
function Te(e) {
|
|
2139
|
+
if (A === setTimeout) return setTimeout(e, 0);
|
|
2140
|
+
if ((A === Ae || !A) && setTimeout) return A = setTimeout, setTimeout(e, 0);
|
|
2141
|
+
try {
|
|
2142
|
+
return A(e, 0);
|
|
2143
|
+
} catch {
|
|
2144
|
+
try {
|
|
2145
|
+
return A.call(null, e, 0);
|
|
2146
|
+
} catch {
|
|
2147
|
+
return A.call(this, e, 0);
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2209
2150
|
}
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2151
|
+
function qt(e) {
|
|
2152
|
+
if (I === clearTimeout) return clearTimeout(e);
|
|
2153
|
+
if ((I === Ie || !I) && clearTimeout) return I = clearTimeout, clearTimeout(e);
|
|
2154
|
+
try {
|
|
2155
|
+
return I(e);
|
|
2156
|
+
} catch {
|
|
2157
|
+
try {
|
|
2158
|
+
return I.call(null, e);
|
|
2159
|
+
} catch {
|
|
2160
|
+
return I.call(this, e);
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
function $t() {
|
|
2165
|
+
!w || !O || (w = !1, O.length ? y = O.concat(y) : L = -1, y.length && Se());
|
|
2166
|
+
}
|
|
2167
|
+
function Se() {
|
|
2168
|
+
if (!w) {
|
|
2169
|
+
var e = Te($t);
|
|
2170
|
+
w = !0;
|
|
2171
|
+
for (var t = y.length; t;) {
|
|
2172
|
+
for (O = y, y = []; ++L < t;) O && O[L].run();
|
|
2173
|
+
L = -1, t = y.length;
|
|
2174
|
+
}
|
|
2175
|
+
O = null, w = !1, qt(e);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
function Kt(e) {
|
|
2179
|
+
var t = new Array(arguments.length - 1);
|
|
2180
|
+
if (arguments.length > 1) for (var r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
2181
|
+
y.push(new ve(e, t)), y.length === 1 && !w && Te(Se);
|
|
2182
|
+
}
|
|
2183
|
+
function ve(e, t) {
|
|
2184
|
+
this.fun = e, this.array = t;
|
|
2185
|
+
}
|
|
2186
|
+
function v() {}
|
|
2187
|
+
function Xt(e) {
|
|
2188
|
+
throw new Error("process.binding is not supported");
|
|
2189
|
+
}
|
|
2190
|
+
function zt() {
|
|
2191
|
+
return "/";
|
|
2192
|
+
}
|
|
2193
|
+
function Jt(e) {
|
|
2194
|
+
throw new Error("process.chdir is not supported");
|
|
2195
|
+
}
|
|
2196
|
+
function Yt() {
|
|
2197
|
+
return 0;
|
|
2198
|
+
}
|
|
2199
|
+
function Qt(e) {
|
|
2200
|
+
var t = je.call(D) * .001, r = Math.floor(t), n = Math.floor(t % 1 * 1e9);
|
|
2201
|
+
return e && (r = r - e[0], n = n - e[1], n < 0 && (r--, n += 1e9)), [r, n];
|
|
2202
|
+
}
|
|
2203
|
+
function Zt() {
|
|
2204
|
+
return (new Date() - Be) / 1e3;
|
|
2205
|
+
}
|
|
2206
|
+
var A, I, y, w, O, L, we, Oe, De, Ne, be, Ce, Pe, Le, Re, Me, xe, ke, Ue, Fe, D, je, Be, j;
|
|
2207
|
+
ce((() => {
|
|
2208
|
+
ye(), A = Ae, I = Ie, typeof C.setTimeout == "function" && (A = setTimeout), typeof C.clearTimeout == "function" && (I = clearTimeout), y = [], w = !1, L = -1, ve.prototype.run = function() {
|
|
2209
|
+
this.fun.apply(null, this.array);
|
|
2210
|
+
}, we = "browser", Oe = "browser", De = {}, Ne = [], be = {}, Ce = {}, Pe = {}, Le = v, Re = v, Me = v, xe = v, ke = v, Ue = v, Fe = v, D = C.performance || {}, je = D.now || D.mozNow || D.msNow || D.oNow || D.webkitNow || function() {
|
|
2211
|
+
return new Date().getTime();
|
|
2212
|
+
}, Be = new Date(), j = {
|
|
2213
|
+
nextTick: Kt,
|
|
2214
|
+
title: we,
|
|
2215
|
+
browser: !0,
|
|
2216
|
+
env: De,
|
|
2217
|
+
argv: Ne,
|
|
2218
|
+
version: "",
|
|
2219
|
+
versions: be,
|
|
2220
|
+
on: Le,
|
|
2221
|
+
addListener: Re,
|
|
2222
|
+
once: Me,
|
|
2223
|
+
off: xe,
|
|
2224
|
+
removeListener: ke,
|
|
2225
|
+
removeAllListeners: Ue,
|
|
2226
|
+
emit: Fe,
|
|
2227
|
+
binding: Xt,
|
|
2228
|
+
cwd: zt,
|
|
2229
|
+
chdir: Jt,
|
|
2230
|
+
umask: Yt,
|
|
2231
|
+
hrtime: Qt,
|
|
2232
|
+
platform: Oe,
|
|
2233
|
+
release: Ce,
|
|
2234
|
+
config: Pe,
|
|
2235
|
+
uptime: Zt
|
|
2236
|
+
};
|
|
2237
|
+
}))();
|
|
2238
|
+
function R(e) {
|
|
2239
|
+
for (; e.endsWith("/");) e = e.slice(0, e.length - 1);
|
|
2240
|
+
return /\/wp-json$/i.test(e) ? e : `${e}/wp-json`;
|
|
2241
|
+
}
|
|
2242
|
+
function Q(...e) {
|
|
2243
|
+
const t = e.filter((o) => o != null);
|
|
2244
|
+
if (t.length === 0) return;
|
|
2245
|
+
if (t.length === 1) return t[0];
|
|
2246
|
+
const r = t.find((o) => o.aborted);
|
|
2247
|
+
if (r) return r;
|
|
2248
|
+
if (typeof AbortSignal < "u" && typeof AbortSignal.any == "function") return AbortSignal.any(t);
|
|
2249
|
+
const n = new AbortController(), i = (o) => {
|
|
2250
|
+
n.signal.aborted || n.abort(o.reason);
|
|
2251
|
+
};
|
|
2252
|
+
for (const o of t) o.addEventListener("abort", () => i(o), { once: !0 });
|
|
2253
|
+
return n.signal;
|
|
2254
|
+
}
|
|
2255
|
+
var He = 3e5, Ge = 15e3, _ = null, We = !1;
|
|
2256
|
+
function nr() {
|
|
2257
|
+
return !0;
|
|
2258
|
+
}
|
|
2259
|
+
function ir() {
|
|
2260
|
+
const e = String(j.env.REACT_APP_OPENAPI_FAILOVER_TTL_MS || "").trim();
|
|
2261
|
+
if (!e) return He;
|
|
2262
|
+
const t = Number(e);
|
|
2263
|
+
return Number.isFinite(t) && t > 0 ? t : He;
|
|
2264
|
+
}
|
|
2265
|
+
function or() {
|
|
2266
|
+
const e = String(j.env.REACT_APP_OPENAPI_FAILOVER_ATTEMPT_TIMEOUT_MS || "").trim();
|
|
2267
|
+
if (!e) return Ge;
|
|
2268
|
+
const t = Number(e);
|
|
2269
|
+
return Number.isFinite(t) && t > 0 ? t : Ge;
|
|
2270
|
+
}
|
|
2271
|
+
function ar() {
|
|
2272
|
+
return R("https://app.emailmaker.ru/api/".trim());
|
|
2273
|
+
}
|
|
2274
|
+
function sr(e) {
|
|
2275
|
+
const t = e.trim();
|
|
2276
|
+
if (!t) return [];
|
|
2277
|
+
if (t.startsWith("[")) try {
|
|
2278
|
+
const r = JSON.parse(t);
|
|
2279
|
+
if (!Array.isArray(r)) throw new Error("expected JSON array");
|
|
2280
|
+
return r.map((n) => String(n).trim()).filter(Boolean);
|
|
2281
|
+
} catch {
|
|
2282
|
+
return We || (We = !0), [];
|
|
2283
|
+
}
|
|
2284
|
+
return t.split(",").map((r) => r.trim()).filter(Boolean);
|
|
2285
|
+
}
|
|
2286
|
+
function cr(e) {
|
|
2287
|
+
const t = new Set(), r = [];
|
|
2288
|
+
for (const n of e) {
|
|
2289
|
+
const i = R(n);
|
|
2290
|
+
t.has(i) || (t.add(i), r.push(i));
|
|
2291
|
+
}
|
|
2292
|
+
return r;
|
|
2293
|
+
}
|
|
2294
|
+
function Ve(e) {
|
|
2295
|
+
const t = String(e || "").trim();
|
|
2296
|
+
return t ? R(t) : ar();
|
|
2297
|
+
}
|
|
2298
|
+
function qe(e, t = []) {
|
|
2299
|
+
return e ? cr([e, ...t]).slice(0, 3) : [];
|
|
2300
|
+
}
|
|
2301
|
+
function $e() {
|
|
2302
|
+
return sr(String(j.env.REACT_APP_OPENAPI_FAILOVER_BASE_URLS || "").trim());
|
|
2303
|
+
}
|
|
2304
|
+
function ur(e = Date.now()) {
|
|
2305
|
+
return _ ? e - _.switchedAt >= ir() : !0;
|
|
2306
|
+
}
|
|
2307
|
+
function Ke(e = Date.now()) {
|
|
2308
|
+
_ && ur(e) && (_ = null);
|
|
2309
|
+
}
|
|
2310
|
+
function M(e) {
|
|
2311
|
+
if (!nr()) return !1;
|
|
2312
|
+
const t = Ve(e);
|
|
2313
|
+
if (!t) return !1;
|
|
2314
|
+
const r = $e();
|
|
2315
|
+
return r.length === 0 ? !1 : qe(t, r).length > 1;
|
|
2316
|
+
}
|
|
2317
|
+
function x(e) {
|
|
2318
|
+
const t = Ve(e);
|
|
2319
|
+
if (!t) return [];
|
|
2320
|
+
const r = $e();
|
|
2321
|
+
return r.length === 0 ? [t] : qe(t, r);
|
|
2322
|
+
}
|
|
2323
|
+
function Xe(e) {
|
|
2324
|
+
const t = x(e);
|
|
2325
|
+
if (t.length === 0) return "";
|
|
2326
|
+
if (Ke(), _) {
|
|
2327
|
+
const r = t.indexOf(_.activeUrl);
|
|
2328
|
+
if (r >= 0) return t[r];
|
|
2329
|
+
}
|
|
2330
|
+
return t[0];
|
|
2331
|
+
}
|
|
2332
|
+
function lr(e) {
|
|
2333
|
+
const t = x(e);
|
|
2334
|
+
if (t.length <= 1 || (Ke(), !_ || !t.includes(_.activeUrl))) return t;
|
|
2335
|
+
const r = _.activeUrl;
|
|
2336
|
+
return [r, ...t.filter((n) => n !== r)];
|
|
2337
|
+
}
|
|
2338
|
+
function fr(e) {
|
|
2339
|
+
return Xe(e) || void 0;
|
|
2340
|
+
}
|
|
2341
|
+
function dr(e) {
|
|
2342
|
+
const t = e || void 0;
|
|
2343
|
+
if (typeof AbortController > "u") return {
|
|
2344
|
+
signal: t,
|
|
2345
|
+
timeoutError: () => {},
|
|
2346
|
+
done: () => {}
|
|
2347
|
+
};
|
|
2348
|
+
const r = or(), n = new AbortController();
|
|
2349
|
+
let i;
|
|
2350
|
+
const o = setTimeout(() => {
|
|
2351
|
+
i = pr(r), n.abort(i);
|
|
2352
|
+
}, r);
|
|
2353
|
+
return {
|
|
2354
|
+
signal: Q(t, n.signal),
|
|
2355
|
+
timeoutError: () => i,
|
|
2356
|
+
done: () => clearTimeout(o)
|
|
2357
|
+
};
|
|
2358
|
+
}
|
|
2359
|
+
function pr(e) {
|
|
2360
|
+
const t = `[apiOriginFailover] origin attempt timed out after ${e}ms`;
|
|
2361
|
+
if (typeof DOMException == "function") return new DOMException(t, "TimeoutError");
|
|
2362
|
+
const r = new Error(t);
|
|
2363
|
+
return r.name = "TimeoutError", r;
|
|
2364
|
+
}
|
|
2365
|
+
function _r(e) {
|
|
2366
|
+
return e === 502 || e === 503 || e === 504;
|
|
2367
|
+
}
|
|
2368
|
+
function hr(e) {
|
|
2369
|
+
return !(e instanceof Error) && !(e instanceof DOMException) ? !1 : e.name === "TimeoutError" ? !0 : e instanceof TypeError;
|
|
2370
|
+
}
|
|
2371
|
+
var ze;
|
|
2372
|
+
function Er(e) {
|
|
2373
|
+
ze = e;
|
|
2374
|
+
}
|
|
2375
|
+
function Je(e, t) {
|
|
2376
|
+
if (!M(t)) return;
|
|
2377
|
+
const r = x(t);
|
|
2378
|
+
if (r.length <= 1) return;
|
|
2379
|
+
const n = r.indexOf(R(e));
|
|
2380
|
+
if (n < 0) return;
|
|
2381
|
+
const i = n + 1;
|
|
2382
|
+
if (i >= r.length) return;
|
|
2383
|
+
const o = r[i], a = _?.activeUrl;
|
|
2384
|
+
_ = {
|
|
2385
|
+
activeUrl: o,
|
|
2386
|
+
switchedAt: Date.now()
|
|
2387
|
+
}, a !== o && ze?.();
|
|
2388
|
+
}
|
|
2389
|
+
function gr(e, t) {
|
|
2390
|
+
if (!M(t)) return;
|
|
2391
|
+
const r = R(e), n = x(t);
|
|
2392
|
+
if (n.includes(r)) {
|
|
2393
|
+
if (r === n[0]) {
|
|
2394
|
+
_ = null;
|
|
2395
|
+
return;
|
|
2396
|
+
}
|
|
2397
|
+
_?.activeUrl !== r && (_ = {
|
|
2398
|
+
activeUrl: r,
|
|
2399
|
+
switchedAt: Date.now()
|
|
2400
|
+
});
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
function mr() {
|
|
2404
|
+
_ = null;
|
|
2405
|
+
}
|
|
2406
|
+
async function yr(e, t, r, n) {
|
|
2407
|
+
const i = n?.attemptTimeout ?? M(r), o = M(r) ? lr(r) : x(r).length > 0 ? [Xe(r)] : [];
|
|
2408
|
+
if (o.length === 0) throw new Error("[apiOriginFailover] no API base URL configured");
|
|
2409
|
+
const a = e.startsWith("/") ? e : `/${e}`;
|
|
2410
|
+
let l, f;
|
|
2411
|
+
for (let c = 0; c < o.length; c++) {
|
|
2412
|
+
const u = o[c], p = c === o.length - 1, N = i ? dr(t.signal) : void 0;
|
|
2413
|
+
try {
|
|
2414
|
+
const g = await fetch(`${u}${a}`, {
|
|
2415
|
+
...t,
|
|
2416
|
+
...N ? { signal: N.signal } : {}
|
|
2417
|
+
});
|
|
2418
|
+
if (!g.ok && _r(g.status)) {
|
|
2419
|
+
if (l = g, !p) {
|
|
2420
|
+
Je(u, r);
|
|
2421
|
+
continue;
|
|
2422
|
+
}
|
|
2423
|
+
break;
|
|
2424
|
+
}
|
|
2425
|
+
return g.ok && gr(u, r), g;
|
|
2426
|
+
} catch (g) {
|
|
2427
|
+
const U = N?.timeoutError();
|
|
2428
|
+
if (!U && !hr(g)) throw g;
|
|
2429
|
+
f = U || g, p || Je(u, r);
|
|
2430
|
+
} finally {
|
|
2431
|
+
N?.done();
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
if (M(r) && mr(), l) return l;
|
|
2435
|
+
throw f instanceof Error ? f : new Error("[apiOriginFailover] fetch chain failed");
|
|
2436
|
+
}
|
|
2437
|
+
function k(e) {
|
|
2438
|
+
return d(e);
|
|
2439
|
+
}
|
|
2440
|
+
k("HANDLE_ATOM_INSERT");
|
|
2441
|
+
k("SETTINGS_PANEL_EVENT");
|
|
2442
|
+
k("MODAL_SHOW_EVENT");
|
|
2443
|
+
k("MODAL_CLOSE_EVENT");
|
|
2444
|
+
k("MODAL_UPDATE_EVENT");
|
|
2445
|
+
var Ar = ue(((e) => {
|
|
2216
2446
|
var t = {
|
|
2217
2447
|
isMounted: function() {
|
|
2218
2448
|
return !1;
|
|
@@ -2221,259 +2451,312 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
2221
2451
|
enqueueReplaceState: function() {},
|
|
2222
2452
|
enqueueSetState: function() {}
|
|
2223
2453
|
}, r = Object.assign, n = {};
|
|
2224
|
-
function
|
|
2225
|
-
this.props = c, this.context =
|
|
2454
|
+
function i(c, u, p) {
|
|
2455
|
+
this.props = c, this.context = u, this.refs = n, this.updater = p || t;
|
|
2226
2456
|
}
|
|
2227
|
-
|
|
2457
|
+
i.prototype.isReactComponent = {}, i.prototype.setState = function(c, u) {
|
|
2228
2458
|
if (typeof c != "object" && typeof c != "function" && c != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
2229
|
-
this.updater.enqueueSetState(this, c,
|
|
2230
|
-
},
|
|
2459
|
+
this.updater.enqueueSetState(this, c, u, "setState");
|
|
2460
|
+
}, i.prototype.forceUpdate = function(c) {
|
|
2231
2461
|
this.updater.enqueueForceUpdate(this, c, "forceUpdate");
|
|
2232
2462
|
};
|
|
2233
|
-
function
|
|
2234
|
-
|
|
2235
|
-
function
|
|
2236
|
-
this.props = c, this.context =
|
|
2463
|
+
function o() {}
|
|
2464
|
+
o.prototype = i.prototype;
|
|
2465
|
+
function a(c, u, p) {
|
|
2466
|
+
this.props = c, this.context = u, this.refs = n, this.updater = p || t;
|
|
2237
2467
|
}
|
|
2238
|
-
var
|
|
2239
|
-
|
|
2468
|
+
var l = a.prototype = new o();
|
|
2469
|
+
l.constructor = a, r(l, i.prototype), l.isPureReactComponent = !0;
|
|
2240
2470
|
Array.isArray;
|
|
2241
2471
|
}));
|
|
2242
|
-
|
|
2243
|
-
t.exports =
|
|
2472
|
+
ue(((e, t) => {
|
|
2473
|
+
t.exports = Ar();
|
|
2244
2474
|
}))();
|
|
2245
|
-
function
|
|
2246
|
-
return
|
|
2475
|
+
function s(e) {
|
|
2476
|
+
return d(e);
|
|
2247
2477
|
}
|
|
2248
|
-
var
|
|
2478
|
+
var Ye;
|
|
2249
2479
|
(function(e) {
|
|
2250
|
-
e.BEFORE_SAVE_EMAIL =
|
|
2251
|
-
})(
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
function
|
|
2255
|
-
|
|
2256
|
-
return /\/wp-json$/i.test(e) ? e : `${e}/wp-json`;
|
|
2480
|
+
e.BEFORE_SAVE_EMAIL = s(), e.ON_SAVEBUTTON_CLICK_ID = s(), e.ON_NEXTBUTTON_CLICK_ID = s(), e.ON_PREVIOUSBUTTON_CLICK_ID = s(), e.ON_MODEL_CHANGE = s(), e.WILL_EMAIL_INIT_ID = s(), e.ON_EMAIL_INIT_ID = s(), e.ON_BLOCK_INIT_ID = s(), e.ON_CONTENT_CHANGED_ID = s(), e.ON_PREHEADER_CHANGED_ID = s(), e.ON_SUBJECT_CHANGED_ID = s(), e.ON_EMAIL_CHANGED_ID = s(), e.ON_BLOCK_CHANGED_ID = s(), e.ON_CHUNKS_LOADED = s(), e.ON_SEND_TESTEMAIL_ID = s(), e.ON_SEND_LIVEPREVIEW_ID = s(), e.ON_SHARE_ID = s(), e.ON_SHOW_PREVIEW_ID = s(), e.ON_EMAIL_CLONE_ID = s(), e.ON_SEND_EMAIL_MODAL_ID = s(), e.ON_NOTIFICATION = s(), e.READ_LOCALE = s(), e.ON_TRANSLATE_ID = s(), e.ON_CODE_VALIDATE_ID = s(), e.UPLOAD_EVENT_ID = s(), e.PROXY_URL_EVENT_ID = s(), e.FILE_PROXY_EVENT_ID = s(), e.ON_LIMIT_ID = s(), e.ON_BROWSER_EXTENSION_DETECTED_ID = s(), e.ON_LAYOUT_CONVERT_REQUEST_ID = s(), e.ON_BROWSER_TRANSLATE_DETECTED_ID = s(), e.AI_TEXT_REQUEST_ID = s(), e.AI_IMAGE_REQUEST_ID = s(), e.AI_TEXT_PROGRESS_ID = s(), e.AI_IMAGE_PROGRESS_ID = s(), e.AI_TEXT_STREAM_ID = s();
|
|
2481
|
+
})(Ye || (Ye = {}));
|
|
2482
|
+
s("APP_LOAD_EVENT");
|
|
2483
|
+
s("CONFIG_CHANGED_EVENT");
|
|
2484
|
+
function Qe(e) {
|
|
2485
|
+
return String(e.standaloneKey || "").trim() || void 0;
|
|
2257
2486
|
}
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
Accept: "application/json"
|
|
2280
|
-
},
|
|
2281
|
-
body: `{"filter":{},"limit":${i}}`
|
|
2282
|
-
};
|
|
2283
|
-
return await (await fetch(`${t}/get?resource=${o}&dataset=${document.location.hostname}`, s)).json();
|
|
2284
|
-
}
|
|
2285
|
-
e.getAll = n;
|
|
2286
|
-
})(Z || (Z = {}));
|
|
2287
|
-
var x = new Map(), ee = new WeakMap();
|
|
2487
|
+
function Tr(e) {
|
|
2488
|
+
return e.standaloneOnAuthFailure === !0 ? !0 : e.config?.standaloneOnAuthFailure === !0;
|
|
2489
|
+
}
|
|
2490
|
+
function Ze(e) {
|
|
2491
|
+
return Tr(e) ? !!Qe(e) : !1;
|
|
2492
|
+
}
|
|
2493
|
+
function Sr(e) {
|
|
2494
|
+
return !!Qe(e) && !Ze(e);
|
|
2495
|
+
}
|
|
2496
|
+
function et(e) {
|
|
2497
|
+
return Sr(e);
|
|
2498
|
+
}
|
|
2499
|
+
var B = new Map(), Z = new Set();
|
|
2500
|
+
function vr(e, t) {
|
|
2501
|
+
Z.has(e) || Z.add(e);
|
|
2502
|
+
}
|
|
2503
|
+
function ee() {
|
|
2504
|
+
B.clear(), Z.clear();
|
|
2505
|
+
}
|
|
2506
|
+
Er(ee);
|
|
2507
|
+
var tt = new WeakMap();
|
|
2288
2508
|
function te(e) {
|
|
2289
|
-
|
|
2290
|
-
if (t) return M(t);
|
|
2291
|
-
return M("https://app.emailmaker.ru/api/".trim());
|
|
2509
|
+
return fr(e);
|
|
2292
2510
|
}
|
|
2293
|
-
|
|
2511
|
+
function wr(e, t) {
|
|
2512
|
+
const r = new Error(`[Loader] appInit request failed: ${e} ${t}`);
|
|
2513
|
+
return r.status = e, r;
|
|
2514
|
+
}
|
|
2515
|
+
function Or() {
|
|
2516
|
+
const e = new Error("[Loader] appInit skipped: empty auth token");
|
|
2517
|
+
return e.terminal = !0, e;
|
|
2518
|
+
}
|
|
2519
|
+
async function Dr(e) {
|
|
2294
2520
|
if (!e.getAuthToken) return;
|
|
2295
|
-
const t = await e.getAuthToken(e.user, e.project, void 0);
|
|
2296
|
-
return
|
|
2521
|
+
const t = await e.getAuthToken(e.user, e.project, void 0), r = String(t || "").trim();
|
|
2522
|
+
return r ? `Bearer ${r}` : void 0;
|
|
2297
2523
|
}
|
|
2298
|
-
function
|
|
2524
|
+
async function Nr(e) {
|
|
2525
|
+
if (!e.getAuthToken) return !0;
|
|
2526
|
+
try {
|
|
2527
|
+
const t = await e.getAuthToken(e.user, e.project, void 0);
|
|
2528
|
+
return !!String(t || "").trim();
|
|
2529
|
+
} catch {
|
|
2530
|
+
return !1;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
function br(e) {
|
|
2299
2534
|
return async ({ baseUrl: t }) => {
|
|
2300
2535
|
const r = te(t);
|
|
2301
2536
|
if (!r) throw new Error("[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL");
|
|
2302
2537
|
const n = new Headers({
|
|
2303
2538
|
Accept: "application/json",
|
|
2304
2539
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
|
|
2305
|
-
}),
|
|
2306
|
-
|
|
2307
|
-
|
|
2540
|
+
}), i = await Dr(e);
|
|
2541
|
+
if (e.getAuthToken && !i) throw Or();
|
|
2542
|
+
i && n.set("authorization", i);
|
|
2543
|
+
const o = await yr("/app/v1/app_init", {
|
|
2308
2544
|
method: "POST",
|
|
2309
2545
|
headers: n,
|
|
2310
2546
|
body: new URLSearchParams(),
|
|
2311
2547
|
credentials: "same-origin"
|
|
2312
|
-
});
|
|
2313
|
-
if (!
|
|
2314
|
-
return
|
|
2548
|
+
}, r, { attemptTimeout: Ze(e) || void 0 });
|
|
2549
|
+
if (!o.ok) throw wr(o.status, o.statusText);
|
|
2550
|
+
return o.json();
|
|
2315
2551
|
};
|
|
2316
2552
|
}
|
|
2317
|
-
function
|
|
2553
|
+
function Cr(e) {
|
|
2318
2554
|
return JSON.stringify({
|
|
2319
2555
|
baseUrl: te(e.baseUrl) || "",
|
|
2320
2556
|
project: e.project ?? "",
|
|
2321
2557
|
userId: e.user?.id ?? ""
|
|
2322
2558
|
});
|
|
2323
2559
|
}
|
|
2324
|
-
function
|
|
2560
|
+
function Pr(e) {
|
|
2561
|
+
if (!(e instanceof Error)) return !1;
|
|
2562
|
+
const t = e;
|
|
2563
|
+
return t.terminal ? !0 : t.status === 403 || t.status === 404;
|
|
2564
|
+
}
|
|
2565
|
+
function Lr(e) {
|
|
2566
|
+
return e.appInit ? !0 : !(e.jwtAuth && !e.getAuthToken);
|
|
2567
|
+
}
|
|
2568
|
+
function Rr(e) {
|
|
2325
2569
|
return async (t) => {
|
|
2326
|
-
const r =
|
|
2570
|
+
const r = Cr(t), n = B.get(r);
|
|
2327
2571
|
if (n) return n;
|
|
2328
|
-
const
|
|
2329
|
-
throw
|
|
2572
|
+
const i = Promise.resolve(e(t)).catch((o) => {
|
|
2573
|
+
throw vr(r, o), Pr(o) || B.delete(r), o;
|
|
2330
2574
|
});
|
|
2331
|
-
return
|
|
2575
|
+
return B.set(r, i), i;
|
|
2332
2576
|
};
|
|
2333
2577
|
}
|
|
2334
|
-
function
|
|
2335
|
-
if (e.
|
|
2336
|
-
const t = e.appInit ||
|
|
2337
|
-
let r =
|
|
2338
|
-
return r || (r =
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2578
|
+
function Mr(e) {
|
|
2579
|
+
if (et(e) || !e.appInit && !te(e.baseUrl) || !Lr(e)) return e;
|
|
2580
|
+
const t = e.appInit || br(e);
|
|
2581
|
+
let r = tt.get(t);
|
|
2582
|
+
return r || (r = Rr(t), tt.set(t, r)), (async () => {
|
|
2583
|
+
await Nr(e) && await r({
|
|
2584
|
+
baseUrl: e.baseUrl,
|
|
2585
|
+
user: e.user,
|
|
2586
|
+
project: e.project,
|
|
2587
|
+
prevApp: void 0
|
|
2588
|
+
});
|
|
2589
|
+
})().catch(() => {}), {
|
|
2344
2590
|
...e,
|
|
2345
2591
|
appInit: r
|
|
2346
2592
|
};
|
|
2347
2593
|
}
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
let
|
|
2351
|
-
return
|
|
2352
|
-
t = null;
|
|
2353
|
-
})), t);
|
|
2594
|
+
function xr(e) {
|
|
2595
|
+
const t = e.replace(/-/g, "+").replace(/_/g, "/").padEnd(e.length + (4 - e.length % 4) % 4, "="), r = atob(t), n = new Uint8Array(r.length);
|
|
2596
|
+
for (let i = 0; i < r.length; i++) n[i] = r.charCodeAt(i);
|
|
2597
|
+
return new TextDecoder().decode(n);
|
|
2354
2598
|
}
|
|
2355
|
-
function
|
|
2356
|
-
|
|
2599
|
+
function kr(e) {
|
|
2600
|
+
const [t, r, n] = e.split("."), i = JSON.parse(xr(r));
|
|
2601
|
+
return {
|
|
2602
|
+
exp: i.exp,
|
|
2603
|
+
createdAt: i.iat,
|
|
2604
|
+
data: i
|
|
2605
|
+
};
|
|
2606
|
+
}
|
|
2607
|
+
var rt = 0;
|
|
2608
|
+
function Ur() {
|
|
2609
|
+
return rt;
|
|
2610
|
+
}
|
|
2611
|
+
function Fr() {
|
|
2612
|
+
rt += 1, ee();
|
|
2613
|
+
}
|
|
2614
|
+
var nt = new WeakMap(), it = new WeakMap(), jr = 3e4;
|
|
2615
|
+
function Br(e, t) {
|
|
2616
|
+
return JSON.stringify({
|
|
2617
|
+
userId: e?.id ?? "",
|
|
2618
|
+
project: t ?? ""
|
|
2619
|
+
});
|
|
2620
|
+
}
|
|
2621
|
+
function Hr(e, t) {
|
|
2622
|
+
try {
|
|
2623
|
+
const r = kr(e)?.exp;
|
|
2624
|
+
if (typeof r == "number" && Number.isFinite(r) && r > 0) return r * 1e3;
|
|
2625
|
+
} catch {}
|
|
2626
|
+
return t + jr;
|
|
2627
|
+
}
|
|
2628
|
+
function Gr(e) {
|
|
2629
|
+
const t = new Map(), r = new Map();
|
|
2630
|
+
return async (n, i, o) => {
|
|
2631
|
+
const a = Br(n, i);
|
|
2632
|
+
if (o) return r.delete(a), t.delete(a), ee(), e(n, i, o);
|
|
2633
|
+
const l = r.get(a);
|
|
2634
|
+
if (l && !t.has(a)) {
|
|
2635
|
+
if (l.expiresAtMs > Date.now()) return l.token;
|
|
2636
|
+
r.delete(a);
|
|
2637
|
+
}
|
|
2638
|
+
let f = t.get(a);
|
|
2639
|
+
return f || (f = Promise.resolve(e(n, i, o)).then((c) => {
|
|
2640
|
+
const u = String(c || "").trim();
|
|
2641
|
+
return u && r.set(a, {
|
|
2642
|
+
token: c,
|
|
2643
|
+
expiresAtMs: Hr(u, Date.now())
|
|
2644
|
+
}), c;
|
|
2645
|
+
}).finally(() => {
|
|
2646
|
+
t.delete(a);
|
|
2647
|
+
}), t.set(a, f)), f;
|
|
2648
|
+
};
|
|
2649
|
+
}
|
|
2650
|
+
function Wr(e) {
|
|
2651
|
+
if (et(e)) return e;
|
|
2357
2652
|
const t = e.getAuthToken;
|
|
2358
2653
|
if (!t) return e;
|
|
2359
|
-
let r =
|
|
2360
|
-
|
|
2654
|
+
let r = nt.get(t);
|
|
2655
|
+
const n = Ur();
|
|
2656
|
+
return (!r || it.get(t) !== n) && (r = Gr(t), nt.set(t, r), it.set(t, n)), Promise.resolve(r(e.user, e.project, void 0)).catch((i) => {}), {
|
|
2361
2657
|
...e,
|
|
2362
2658
|
getAuthToken: r
|
|
2363
2659
|
};
|
|
2364
2660
|
}
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
if (t.length === 1) return t[0];
|
|
2369
|
-
const r = t.find((i) => i.aborted);
|
|
2370
|
-
if (r) return r;
|
|
2371
|
-
if (typeof AbortSignal < "u" && typeof AbortSignal.any == "function") return AbortSignal.any(t);
|
|
2372
|
-
const n = new AbortController(), o = (i) => {
|
|
2373
|
-
n.signal.aborted || n.abort(i.reason);
|
|
2374
|
-
};
|
|
2375
|
-
for (const i of t) i.addEventListener("abort", () => o(i), { once: !0 });
|
|
2376
|
-
return n.signal;
|
|
2377
|
-
}
|
|
2378
|
-
var k = "Editor mount element was removed from the document. Call instance.destroy() on host unmount.";
|
|
2379
|
-
function rt() {
|
|
2380
|
-
return g(k);
|
|
2661
|
+
var re = "Editor mount element was removed from the document. Call instance.destroy() on host unmount.";
|
|
2662
|
+
function Vr() {
|
|
2663
|
+
return T(re);
|
|
2381
2664
|
}
|
|
2382
|
-
function
|
|
2383
|
-
return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message ===
|
|
2665
|
+
function ot(e) {
|
|
2666
|
+
return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message === re;
|
|
2384
2667
|
}
|
|
2385
|
-
function
|
|
2668
|
+
function qr(e, t, r) {
|
|
2386
2669
|
if (typeof document > "u") return;
|
|
2387
|
-
let n = !1,
|
|
2388
|
-
const
|
|
2389
|
-
n = !0,
|
|
2390
|
-
},
|
|
2391
|
-
n || (
|
|
2670
|
+
let n = !1, i;
|
|
2671
|
+
const o = () => {
|
|
2672
|
+
n = !0, i?.disconnect(), i = void 0;
|
|
2673
|
+
}, a = () => {
|
|
2674
|
+
n || (o(), t());
|
|
2392
2675
|
};
|
|
2393
|
-
if (r.addDispose(
|
|
2394
|
-
queueMicrotask(
|
|
2676
|
+
if (r.addDispose(o), !e.isConnected) {
|
|
2677
|
+
queueMicrotask(a);
|
|
2395
2678
|
return;
|
|
2396
2679
|
}
|
|
2397
|
-
|
|
2398
|
-
e.isConnected ||
|
|
2680
|
+
i = new MutationObserver(() => {
|
|
2681
|
+
e.isConnected || a();
|
|
2399
2682
|
});
|
|
2400
|
-
let
|
|
2401
|
-
for (;
|
|
2683
|
+
let l = e.parentNode;
|
|
2684
|
+
for (; l;) i.observe(l, { childList: !0 }), l = l.parentNode;
|
|
2402
2685
|
}
|
|
2403
|
-
function
|
|
2404
|
-
const { hostElementOption: t, resolvedElement: r, externalSignal: n, disposable:
|
|
2686
|
+
function $r(e) {
|
|
2687
|
+
const { hostElementOption: t, resolvedElement: r, externalSignal: n, disposable: i } = e;
|
|
2405
2688
|
if (t === void 0 || !(r instanceof Element)) return n;
|
|
2406
|
-
const
|
|
2407
|
-
return
|
|
2408
|
-
r.id,
|
|
2409
|
-
},
|
|
2689
|
+
const o = new AbortController();
|
|
2690
|
+
return qr(r, () => {
|
|
2691
|
+
r.id, o.abort(Vr());
|
|
2692
|
+
}, i), Q(n, o.signal);
|
|
2410
2693
|
}
|
|
2411
|
-
var
|
|
2412
|
-
function
|
|
2413
|
-
return
|
|
2694
|
+
var ne = "Superseded by newer init() on the same mount element";
|
|
2695
|
+
function at() {
|
|
2696
|
+
return T(ne);
|
|
2414
2697
|
}
|
|
2415
|
-
function
|
|
2416
|
-
return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message ===
|
|
2698
|
+
function st(e) {
|
|
2699
|
+
return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message === ne;
|
|
2417
2700
|
}
|
|
2418
|
-
var
|
|
2419
|
-
function
|
|
2701
|
+
var H = new Map(), G = new WeakMap();
|
|
2702
|
+
function Kr(e) {
|
|
2420
2703
|
if (e instanceof Element) {
|
|
2421
2704
|
const t = e.id?.trim();
|
|
2422
2705
|
if (t) return `#${t}`;
|
|
2423
2706
|
}
|
|
2424
2707
|
}
|
|
2425
|
-
function
|
|
2708
|
+
function Xr(e) {
|
|
2426
2709
|
if (!(e instanceof Element)) return { release: () => {} };
|
|
2427
|
-
const t =
|
|
2428
|
-
|
|
2710
|
+
const t = Kr(e);
|
|
2711
|
+
G.get(e)?.abort(at()), t && H.get(t)?.abort(at());
|
|
2429
2712
|
const r = new AbortController();
|
|
2430
|
-
return
|
|
2713
|
+
return G.set(e, r), t && H.set(t, r), {
|
|
2431
2714
|
signal: r.signal,
|
|
2432
2715
|
release: () => {
|
|
2433
|
-
|
|
2716
|
+
G.get(e) === r && G.delete(e), t && H.get(t) === r && H.delete(t);
|
|
2434
2717
|
}
|
|
2435
2718
|
};
|
|
2436
2719
|
}
|
|
2437
|
-
var
|
|
2720
|
+
var zr = le({ FileManagerApiError: () => Jr }), Jr = class ft extends Error {
|
|
2438
2721
|
code;
|
|
2439
2722
|
status;
|
|
2440
2723
|
details;
|
|
2441
2724
|
get httpStatus() {
|
|
2442
2725
|
return this.status;
|
|
2443
2726
|
}
|
|
2444
|
-
constructor(t, r, n,
|
|
2445
|
-
super(t), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details =
|
|
2727
|
+
constructor(t, r, n, i) {
|
|
2728
|
+
super(t), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = i, Error.captureStackTrace && Error.captureStackTrace(this, ft);
|
|
2446
2729
|
}
|
|
2447
|
-
},
|
|
2448
|
-
function
|
|
2730
|
+
}, Yr = le({ mapHttpStatusToErrorCode: () => St });
|
|
2731
|
+
function Qr(e, t) {
|
|
2449
2732
|
return {
|
|
2450
2733
|
...e,
|
|
2451
2734
|
element: t
|
|
2452
2735
|
};
|
|
2453
2736
|
}
|
|
2454
|
-
function
|
|
2737
|
+
function ie() {
|
|
2455
2738
|
return () => {};
|
|
2456
2739
|
}
|
|
2457
|
-
function
|
|
2740
|
+
function Zr(e) {
|
|
2458
2741
|
const t = e.element;
|
|
2459
|
-
return !t || typeof t == "string" || typeof document > "u" ?
|
|
2460
|
-
|
|
2742
|
+
return !t || typeof t == "string" || typeof document > "u" ? ie() : (Ut(t, e.config?.styles, t), () => {
|
|
2743
|
+
Ft(t);
|
|
2461
2744
|
});
|
|
2462
2745
|
}
|
|
2463
|
-
function
|
|
2464
|
-
if (!
|
|
2746
|
+
function en(e) {
|
|
2747
|
+
if (!me() || e.initialSpinner === !1 || typeof document > "u") return {
|
|
2465
2748
|
options: e,
|
|
2466
|
-
cleanup:
|
|
2749
|
+
cleanup: ie()
|
|
2467
2750
|
};
|
|
2468
2751
|
const t = e.element;
|
|
2469
2752
|
if (!t || typeof t == "string") return {
|
|
2470
2753
|
options: e,
|
|
2471
|
-
cleanup:
|
|
2754
|
+
cleanup: ie()
|
|
2472
2755
|
};
|
|
2473
|
-
t.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((
|
|
2474
|
-
|
|
2756
|
+
t.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((i) => {
|
|
2757
|
+
i.remove();
|
|
2475
2758
|
});
|
|
2476
|
-
const r =
|
|
2759
|
+
const r = Vt(t, "data-emailmaker"), n = e.handleChunkLoaded;
|
|
2477
2760
|
return {
|
|
2478
2761
|
options: {
|
|
2479
2762
|
...e,
|
|
@@ -2484,103 +2767,103 @@ __emailmaker__.define("emailmaker.js", [
|
|
|
2484
2767
|
cleanup: r
|
|
2485
2768
|
};
|
|
2486
2769
|
}
|
|
2487
|
-
function
|
|
2770
|
+
function tn(e) {
|
|
2488
2771
|
return e?.length ? e.some((t) => Array.isArray(t) ? !1 : !!(t && typeof t == "object" && "url" in t)) : !1;
|
|
2489
2772
|
}
|
|
2490
|
-
function
|
|
2773
|
+
function ct(e) {
|
|
2491
2774
|
return e instanceof DOMException && e.name === "AbortError";
|
|
2492
2775
|
}
|
|
2493
|
-
function
|
|
2776
|
+
function ut(e) {
|
|
2494
2777
|
try {
|
|
2495
2778
|
e.destroy();
|
|
2496
2779
|
} catch {}
|
|
2497
2780
|
}
|
|
2498
|
-
function
|
|
2499
|
-
const r =
|
|
2500
|
-
t.some((n) => n !== void 0 && n === r) &&
|
|
2781
|
+
function oe(e, ...t) {
|
|
2782
|
+
const r = S.get(e);
|
|
2783
|
+
t.some((n) => n !== void 0 && n === r) && S.delete(e);
|
|
2501
2784
|
}
|
|
2502
|
-
var
|
|
2503
|
-
async function
|
|
2504
|
-
await
|
|
2785
|
+
var rn = "1.1.60";
|
|
2786
|
+
async function nn(e) {
|
|
2787
|
+
await _e(typeof __emailmaker__ < "u" ? __emailmaker__ : void 0);
|
|
2505
2788
|
}
|
|
2506
|
-
async function
|
|
2507
|
-
return
|
|
2789
|
+
async function on(e) {
|
|
2790
|
+
return an(e);
|
|
2508
2791
|
}
|
|
2509
|
-
async function
|
|
2510
|
-
|
|
2511
|
-
const t = new
|
|
2792
|
+
async function an(e) {
|
|
2793
|
+
h(e.signal);
|
|
2794
|
+
const t = new b();
|
|
2512
2795
|
let r;
|
|
2513
2796
|
try {
|
|
2514
|
-
const n = await
|
|
2797
|
+
const n = await ge(e.element, t, e.signal), i = $r({
|
|
2515
2798
|
hostElementOption: e.element,
|
|
2516
2799
|
resolvedElement: n,
|
|
2517
2800
|
externalSignal: e.signal,
|
|
2518
2801
|
disposable: t
|
|
2519
|
-
}),
|
|
2520
|
-
r =
|
|
2521
|
-
const
|
|
2522
|
-
return await
|
|
2802
|
+
}), o = Xr(n);
|
|
2803
|
+
r = o.release;
|
|
2804
|
+
const a = Q(i, o.signal);
|
|
2805
|
+
return await jt(sn(e, n, a), a);
|
|
2523
2806
|
} finally {
|
|
2524
2807
|
r?.(), t.dispose();
|
|
2525
2808
|
}
|
|
2526
2809
|
}
|
|
2527
|
-
async function
|
|
2528
|
-
|
|
2529
|
-
const n =
|
|
2810
|
+
async function sn(e, t, r) {
|
|
2811
|
+
h(r), Fr();
|
|
2812
|
+
const n = Mr(Wr(Qr(e, t))), i = r != null ? {
|
|
2530
2813
|
...n,
|
|
2531
2814
|
signal: r
|
|
2532
2815
|
} : n;
|
|
2533
2816
|
if (t) {
|
|
2534
|
-
const c =
|
|
2817
|
+
const c = S.get(t);
|
|
2535
2818
|
if (c) {
|
|
2536
|
-
let
|
|
2819
|
+
let u;
|
|
2537
2820
|
try {
|
|
2538
|
-
|
|
2821
|
+
u = await c, h(r);
|
|
2539
2822
|
} catch (p) {
|
|
2540
|
-
if (
|
|
2541
|
-
|
|
2823
|
+
if (h(r), oe(t, c), ct(p)) throw p;
|
|
2824
|
+
u = void 0;
|
|
2542
2825
|
}
|
|
2543
|
-
if (
|
|
2544
|
-
return await
|
|
2826
|
+
if (u) if (u.getElement() === t) try {
|
|
2827
|
+
return await u.reset(i);
|
|
2545
2828
|
} catch (p) {
|
|
2546
|
-
if (
|
|
2547
|
-
|
|
2829
|
+
if (h(r), st(p) || ot(p) || ct(p) && r?.aborted) throw p;
|
|
2830
|
+
oe(t, c, u), ut(u);
|
|
2548
2831
|
}
|
|
2549
|
-
else
|
|
2832
|
+
else oe(t, c, u), ut(u);
|
|
2550
2833
|
}
|
|
2551
2834
|
}
|
|
2552
|
-
|
|
2553
|
-
const
|
|
2554
|
-
...
|
|
2835
|
+
h(r);
|
|
2836
|
+
const o = Zr(n), a = en(n), l = r != null ? {
|
|
2837
|
+
...a.options,
|
|
2555
2838
|
signal: r
|
|
2556
|
-
} :
|
|
2839
|
+
} : a.options;
|
|
2557
2840
|
let f;
|
|
2558
2841
|
try {
|
|
2559
|
-
await
|
|
2842
|
+
await pe(), h(r);
|
|
2560
2843
|
const c = typeof __emailmaker__ < "u" ? __emailmaker__ : void 0;
|
|
2561
|
-
|
|
2562
|
-
const
|
|
2563
|
-
if (r?.aborted && (
|
|
2564
|
-
else throw
|
|
2565
|
-
return
|
|
2844
|
+
tn(l.plugins) ? (await z(c), h(r)) : Ct(c), h(r), f = $().then((p) => p.init(l)), t && S.set(t, f);
|
|
2845
|
+
const u = await f;
|
|
2846
|
+
if (r?.aborted && (u.destroy(), h(r)), t) if (S.get(t) === f) S.set(t, u);
|
|
2847
|
+
else throw u.destroy(), h(r), T(r?.reason);
|
|
2848
|
+
return u;
|
|
2566
2849
|
} catch (c) {
|
|
2567
|
-
throw
|
|
2850
|
+
throw o(), a.cleanup(), t && f && S.get(t) === f && S.delete(t), c;
|
|
2568
2851
|
}
|
|
2569
2852
|
}
|
|
2570
|
-
async function
|
|
2571
|
-
return (await
|
|
2853
|
+
async function cn(e) {
|
|
2854
|
+
return (await $()).parseAMP(e);
|
|
2572
2855
|
}
|
|
2573
|
-
typeof window < "u" &&
|
|
2856
|
+
typeof window < "u" && Pt(typeof __emailmaker__ < "u" ? __emailmaker__ : void 0), E.ELEMENT_DETACHED_ABORT_MESSAGE = re, E.SUPERSEDED_INIT_ABORT_MESSAGE = ne, Object.defineProperty(E, "errors", {
|
|
2574
2857
|
enumerable: !0,
|
|
2575
2858
|
get: function() {
|
|
2576
|
-
return
|
|
2859
|
+
return zr;
|
|
2577
2860
|
}
|
|
2578
2861
|
}), Object.defineProperty(E, "helpers", {
|
|
2579
2862
|
enumerable: !0,
|
|
2580
2863
|
get: function() {
|
|
2581
|
-
return
|
|
2864
|
+
return Yr;
|
|
2582
2865
|
}
|
|
2583
|
-
}), E.init =
|
|
2866
|
+
}), E.init = on, E.isElementDetachedError = ot, E.isSupersededInitError = st, E.parseAMP = cn, E.pluginRegistry = Mt, E.preload = nn, E.version = rn;
|
|
2584
2867
|
});
|
|
2585
2868
|
|
|
2586
2869
|
|