@emailmaker/emailmaker 1.0.111-dev.1 → 1.0.111-dev.3
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/README.md +1 -1
- package/emailmaker-core.e8a446cd.js +1 -0
- package/emailmaker-esm.js +30 -1004
- package/emailmaker.js +4 -6
- package/iframe/js/amp.BFiiFM7T.js +1 -0
- package/iframe/js/chunk.oX6nCJbK.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.BSaCN7eK.js +1 -1
- package/iframe/js/sanitize-html.Brggoo7U.js +1 -0
- package/monacoeditorwork/css.worker.bundle.js +1 -3
- package/monacoeditorwork/editor.worker.bundle.js +1 -3
- package/monacoeditorwork/html.worker.bundle.js +4 -6
- package/monacoeditorwork/json.worker.bundle.js +3 -5
- package/monacoeditorwork/ts.worker.bundle.js +3 -5
- package/package.json +1 -1
- package/react/index.js +1 -80
- package/runtime/@ant-design/pro-layout/index.js +1 -1
- package/runtime/antd/index.js +1 -1
- package/runtime/app-core/index.js +1 -1
- package/runtime/react-dom/client/index.js +1 -1
- package/runtime/react-dom/index.js +1 -1
- package/runtime/react-router-dom/index.js +1 -1
- package/runtime-core/index.js +64 -136
- package/static/core/{e2662f37.js → 10c65b49.js} +1 -1
- package/static/core/{f3de9e9a2.js → 1a135ad92.js} +6 -6
- package/static/core/{c5aeffb2.js → 1ce976fb.js} +2 -2
- package/static/core/337e81ef2.js +903 -0
- package/static/core/{4c0eea0d.js → 3915ee5d.js} +2 -2
- package/static/core/49a8aa01.js +47 -0
- package/static/core/4c9c4d012.js +596 -0
- package/static/core/{32f4e73e.js → 4f6c7c6b.js} +1 -1
- package/static/core/5017c0042.js +40 -0
- package/static/core/{7cc94064.js → 5cf42238.js} +1 -1
- package/static/core/{b733d3e7.js → 706f8931.js} +52 -54
- package/static/core/773c9c0b2.js +6 -0
- package/static/core/784d90d82.js +471 -0
- package/static/core/{8610aff1.js → 947fe6ad.js} +1 -1
- package/static/core/{a158dbe5.js → a73d3dfc.js} +1 -1
- package/static/core/ab2357622.js +3 -0
- package/static/core/{5859d2b82.js → afcbd8062.js} +1 -1
- package/static/core/{58073bbd.js → b2e7fac5.js} +1 -1
- package/static/core/{dfecb0b1.js → b7e39056.js} +1 -1
- package/static/core/{5aa6ffe0.js → b90a22a7.js} +1 -1
- package/static/core/{6aa2fc70.js → cc20a6bf.js} +2 -2
- package/static/core/{9476b2c7.js → d4368c3f.js} +1 -1
- package/static/core/{e14c4f64.js → d4fcbedb.js} +4 -6
- package/static/core/{480c2e5a.js → de29fcef.js} +5 -5
- package/static/core/{e45be63a2.js → e2c094522.js} +2 -2
- package/static/core/f5199bf32.js +3 -0
- package/static/core/f80dab8a.js +1 -0
- package/static/core/{3f396ad0.js → fbbf01d2.js} +1 -1
- package/static/esm/28a11e05.js +1 -0
- package/static/esm/48e604b0.js +1 -0
- package/static/esm/b09da19c.js +1 -0
- package/static/esm/d111d47f.js +1 -0
- package/static/runtime/client-DclOo982.js +1 -0
- package/static/runtime/dist-CQOUCSSc.js +2 -0
- package/static/runtime/{es-D9451PGN.js → es-B1Gd5vyV.js} +7 -7
- package/static/runtime/{es-B_QrCd0w.js → es-B9bjSlFv.js} +5 -5
- package/static/runtime/{react-dom-CHJrMg3F.js → react-dom-B_ktM7d0.js} +3 -3
- package/static/umd/3a623ceb.js +560 -0
- package/emailmaker-core.0e81adc5.js +0 -2
- package/iframe/js/amp.kRi8xP5B.js +0 -1
- package/iframe/js/sanitize-html.DnGOi7Ve.js +0 -1
- package/static/core/167feeb72.js +0 -477
- package/static/core/1e55fe352.js +0 -596
- package/static/core/293d4deb2.js +0 -3
- package/static/core/29b5e247.js +0 -47
- package/static/core/36daa25e2.js +0 -6
- package/static/core/77a4a5b42.js +0 -40
- package/static/core/7c89c88b2.js +0 -916
- package/static/core/e1d78bb3.js +0 -1
- package/static/core/f5f05aaa2.js +0 -3
- package/static/esm/21e5883f.js +0 -31
- package/static/esm/3239c2b2.js +0 -17
- package/static/esm/339a15a0.js +0 -30
- package/static/esm/8bd1b5bb.js +0 -28
- package/static/runtime/client-CjhXNXhR.js +0 -1
- package/static/runtime/dist-C64-v4Ip.js +0 -2
- package/static/umd/73d630dc.js +0 -560
- /package/iframe/{iframe-eblock.0e81adc5.html → iframe-eblock.e8a446cd.html} +0 -0
- /package/iframe/{iframe.0e81adc5.html → iframe.e8a446cd.html} +0 -0
package/emailmaker-esm.js
CHANGED
|
@@ -1,1004 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return t === "eager" || t === "idle" || t === "manual" || t === "off" ? t : "eager";
|
|
31
|
-
}
|
|
32
|
-
function _(e) {
|
|
33
|
-
Promise.resolve().then(() => h(e)).catch(() => {});
|
|
34
|
-
}
|
|
35
|
-
function v(e) {
|
|
36
|
-
Promise.resolve().then(() => m(e)).catch(() => {});
|
|
37
|
-
}
|
|
38
|
-
function y(e) {
|
|
39
|
-
let t = g(e);
|
|
40
|
-
if (t === "eager") _(e);
|
|
41
|
-
else if (t === "idle") {
|
|
42
|
-
let t = window.requestIdleCallback;
|
|
43
|
-
typeof t == "function" ? t(() => _(e), { timeout: 1500 }) : setTimeout(() => _(e), 0);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/plugin/utils/configStyles.ts
|
|
48
|
-
var b = /* @__PURE__ */ new WeakMap(), x = "data-emailmaker-config-styles";
|
|
49
|
-
function S(e) {
|
|
50
|
-
return typeof e == "string" ? e.trim() : "";
|
|
51
|
-
}
|
|
52
|
-
function C(e, t) {
|
|
53
|
-
if (e.firstChild) {
|
|
54
|
-
e.insertBefore(t, e.firstChild);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
e.appendChild(t);
|
|
58
|
-
}
|
|
59
|
-
function w(e, t, n) {
|
|
60
|
-
if (!e || typeof document > "u") return null;
|
|
61
|
-
let r = S(t), i = b.get(e), a = n || e;
|
|
62
|
-
if (!r) return i && (i.remove(), b.delete(e)), null;
|
|
63
|
-
if (i) return i.textContent !== r && (i.textContent = r), (i.parentNode !== a || i !== a.firstChild) && C(a, i), i;
|
|
64
|
-
let o = document.createElement("style");
|
|
65
|
-
return o.setAttribute(x, "true"), o.textContent = r, C(a, o), b.set(e, o), o;
|
|
66
|
-
}
|
|
67
|
-
function T(e) {
|
|
68
|
-
if (!e) return;
|
|
69
|
-
let t = b.get(e);
|
|
70
|
-
t && (t.remove(), b.delete(e));
|
|
71
|
-
}
|
|
72
|
-
var E = "\n.blocks-app-initial-spinner-wrapper {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.blocks-app-initial-spinner {\n width: 28px;\n height: 28px;\n border: 4px solid rgb(231 212 228 / 100%);\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: rotation_loader 1s linear infinite;\n will-change: transform;\n border-bottom-color: transparent;\n}\n\n@keyframes rotation_loader {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}";
|
|
73
|
-
function D() {
|
|
74
|
-
return () => {};
|
|
75
|
-
}
|
|
76
|
-
function O(e, t) {
|
|
77
|
-
if (!e || typeof document > "u") return D();
|
|
78
|
-
e.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((e) => {
|
|
79
|
-
e.remove();
|
|
80
|
-
});
|
|
81
|
-
let n = document.createElement("div");
|
|
82
|
-
n.classList.add("blocks-app-initial-spinner-wrapper");
|
|
83
|
-
let r = document.createElement("div");
|
|
84
|
-
r.classList.add("blocks-app-initial-spinner"), n.appendChild(r);
|
|
85
|
-
let i = document.createElement("style");
|
|
86
|
-
i.setAttribute(t, "true"), i.textContent = E, document.head?.appendChild(i), e.appendChild(n);
|
|
87
|
-
let a = !1;
|
|
88
|
-
return () => {
|
|
89
|
-
a || (a = !0, n.remove(), i.remove());
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/plugin/loader/warmup/appInit.ts
|
|
94
|
-
var k = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new Map();
|
|
95
|
-
function j(e) {
|
|
96
|
-
return M(String(e || "").trim() || "https://app.emailmaker.ru/api/");
|
|
97
|
-
}
|
|
98
|
-
function M(e) {
|
|
99
|
-
let t = e;
|
|
100
|
-
for (; t.endsWith("/");) t = t.slice(0, t.length - 1);
|
|
101
|
-
return `${t}/wp-json`;
|
|
102
|
-
}
|
|
103
|
-
async function N(e) {
|
|
104
|
-
if (!e.getAuthToken) return;
|
|
105
|
-
let t = await e.getAuthToken(e.user, e.project, void 0);
|
|
106
|
-
return t ? `Bearer ${t}` : void 0;
|
|
107
|
-
}
|
|
108
|
-
function P(e) {
|
|
109
|
-
return async ({ baseUrl: t }) => {
|
|
110
|
-
let n = j(t);
|
|
111
|
-
if (!n) throw Error("[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL");
|
|
112
|
-
let r = new Headers({
|
|
113
|
-
Accept: "application/json",
|
|
114
|
-
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
|
|
115
|
-
}), i = await N(e);
|
|
116
|
-
i && r.set("authorization", i);
|
|
117
|
-
let a = await fetch(`${n}/app/v1/app_init`, {
|
|
118
|
-
method: "POST",
|
|
119
|
-
headers: r,
|
|
120
|
-
body: new URLSearchParams(),
|
|
121
|
-
credentials: "same-origin"
|
|
122
|
-
});
|
|
123
|
-
if (!a.ok) throw Error(`[Loader] appInit request failed: ${a.status} ${a.statusText}`);
|
|
124
|
-
return a.json();
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function F(e) {
|
|
128
|
-
return JSON.stringify({
|
|
129
|
-
baseUrl: j(e.baseUrl) || "",
|
|
130
|
-
project: e.project ?? "",
|
|
131
|
-
userId: e.user?.id ?? ""
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
function I(e) {
|
|
135
|
-
return async (t) => {
|
|
136
|
-
let n = F(t), r = A.get(n);
|
|
137
|
-
if (r) return r;
|
|
138
|
-
let i = Promise.resolve(e(t)).catch((e) => {
|
|
139
|
-
throw A.delete(n), e;
|
|
140
|
-
});
|
|
141
|
-
return A.set(n, i), i;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function L(e) {
|
|
145
|
-
if (e.standaloneKey) return e;
|
|
146
|
-
let t = e.appInit || P(e), n = k.get(t);
|
|
147
|
-
return n || (n = I(t), k.set(t, n)), Promise.resolve(n({
|
|
148
|
-
baseUrl: e.baseUrl,
|
|
149
|
-
user: e.user,
|
|
150
|
-
project: e.project,
|
|
151
|
-
prevApp: void 0
|
|
152
|
-
})).catch((e) => {}), {
|
|
153
|
-
...e,
|
|
154
|
-
appInit: n
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region src/plugin/loader/warmup/authToken.ts
|
|
159
|
-
var R = /* @__PURE__ */ new WeakMap();
|
|
160
|
-
function z(e) {
|
|
161
|
-
let t = null;
|
|
162
|
-
return async (n, r, i) => (t ||= Promise.resolve(e(n, r, i)).finally(() => {
|
|
163
|
-
t = null;
|
|
164
|
-
}), t);
|
|
165
|
-
}
|
|
166
|
-
function B(e) {
|
|
167
|
-
if (e.standaloneKey) return e;
|
|
168
|
-
let t = e.getAuthToken;
|
|
169
|
-
if (!t) return e;
|
|
170
|
-
let n = R.get(t);
|
|
171
|
-
return n || (n = z(t), R.set(t, n)), Promise.resolve(n(e.user, e.project, void 0)).catch((e) => {}), {
|
|
172
|
-
...e,
|
|
173
|
-
getAuthToken: n
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
(function() {
|
|
177
|
-
var e = window.__emailmaker__ || (window.__emailmaker__ = {}), t = e.prefetch, n = e.modules && typeof e.modules == "object" ? e.modules : {}, r = [
|
|
178
|
-
"React",
|
|
179
|
-
"ReactDom",
|
|
180
|
-
"ReactDomClient",
|
|
181
|
-
"ReactJsxRuntime",
|
|
182
|
-
"ReactJsxDevRuntime",
|
|
183
|
-
"PropTypes",
|
|
184
|
-
"ReactRouterDom",
|
|
185
|
-
"Antd",
|
|
186
|
-
"AntDesignIcons",
|
|
187
|
-
"AntDesignCssinjs",
|
|
188
|
-
"AntDesignProLayout",
|
|
189
|
-
"Classnames",
|
|
190
|
-
"Dayjs",
|
|
191
|
-
"Uuid",
|
|
192
|
-
"Core",
|
|
193
|
-
"AppCore"
|
|
194
|
-
], i = e.__diagnostics ||= {}, a = i.runtimeLoads ||= {
|
|
195
|
-
entries: [],
|
|
196
|
-
warnings: []
|
|
197
|
-
};
|
|
198
|
-
window.__emailmaker__.publicPath || (window.__emailmaker__.publicPath = (function() {
|
|
199
|
-
var e = (function() {
|
|
200
|
-
try {
|
|
201
|
-
var e = import.meta.url;
|
|
202
|
-
return e.substring(0, e.lastIndexOf("/") + 1);
|
|
203
|
-
} catch {
|
|
204
|
-
return "./";
|
|
205
|
-
}
|
|
206
|
-
})();
|
|
207
|
-
e ||= "./";
|
|
208
|
-
try {
|
|
209
|
-
var t = String(e);
|
|
210
|
-
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(t) || t.indexOf("//") === 0) return t;
|
|
211
|
-
var n = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
|
|
212
|
-
return n ? new URL(t, n).href : t;
|
|
213
|
-
} catch {
|
|
214
|
-
return String(e);
|
|
215
|
-
}
|
|
216
|
-
})()), window.__emailmaker__.assetUrl || (window.__emailmaker__.assetUrl = function(e) {
|
|
217
|
-
function t(e) {
|
|
218
|
-
try {
|
|
219
|
-
var t = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
|
|
220
|
-
return t ? new URL(String(e || ""), t).href : String(e || "");
|
|
221
|
-
} catch {
|
|
222
|
-
return String(e || "");
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
var n = String(e || "");
|
|
226
|
-
if (!n) return "";
|
|
227
|
-
if (/^(?:data:|blob:)/.test(n)) return n;
|
|
228
|
-
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n) || n.indexOf("//") === 0 || n.charAt(0) === "/") return t(n);
|
|
229
|
-
var r = n.replace(/^\.\/+/, "").replace(/^\/+/, ""), i = "static/media".replace(/^\.\/+/, "").replace(/^\/+/, "").replace(/\/+$/, ""), a = i && r.indexOf(i + "/") !== 0 ? i + "/" + r : r, o = window.__emailmaker__.publicPath || "./";
|
|
230
|
-
try {
|
|
231
|
-
return new URL(a, o).href;
|
|
232
|
-
} catch {
|
|
233
|
-
return o.slice(-1) !== "/" && (o += "/"), t(o + a);
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
var o = window.__emailmaker__ || (window.__emailmaker__ = {});
|
|
237
|
-
(function() {
|
|
238
|
-
if (o !== void 0 && o.define) return;
|
|
239
|
-
o === void 0 && (window.__amdEnv = {});
|
|
240
|
-
var e = {}, t = {}, n = {}, r = {}, i = {}, a = "./", s = {};
|
|
241
|
-
function c(e, t) {
|
|
242
|
-
var n = /* @__PURE__ */ Error("[AMD] Failed to load module \"" + e + "\"" + (t ? ": " + t.message : ""));
|
|
243
|
-
return n.moduleId = e, n.cause = t, n;
|
|
244
|
-
}
|
|
245
|
-
function l(e, t, n) {
|
|
246
|
-
var r = /* @__PURE__ */ Error("[AMD] Failed to resolve dependency \"" + t + "\" for module \"" + e + "\"" + (n ? ": " + n.message : ""));
|
|
247
|
-
return r.moduleId = e, r.dependencyId = t, r.cause = n, r;
|
|
248
|
-
}
|
|
249
|
-
function u(e) {
|
|
250
|
-
for (var t = String(e || "").split("/"), n = [], r = 0; r < t.length; r++) {
|
|
251
|
-
var i = t[r];
|
|
252
|
-
if (!(!i || i === ".")) {
|
|
253
|
-
if (i === "..") {
|
|
254
|
-
n.length > 0 && n.pop();
|
|
255
|
-
continue;
|
|
256
|
-
}
|
|
257
|
-
n.push(i);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
return n.join("/");
|
|
261
|
-
}
|
|
262
|
-
function d(e) {
|
|
263
|
-
var t = String(e || "").replace(/\\/g, "/"), n = String(a || "./").replace(/\\/g, "/");
|
|
264
|
-
return n = n.replace(/^\.\/+/, ""), n = n.replace(/^\/+/, ""), n && n.slice(-1) !== "/" && (n += "/"), n && t.indexOf(n) === 0 && (t = t.slice(n.length)), t.indexOf("./") === 0 && (t = t.slice(2)), t;
|
|
265
|
-
}
|
|
266
|
-
function f(e, t) {
|
|
267
|
-
var n = String(e || "");
|
|
268
|
-
if (!n) return n;
|
|
269
|
-
if (!(n.indexOf("./") === 0 || n.indexOf("../") === 0)) return d(u(n));
|
|
270
|
-
var r = u(t || ""), i = r ? r.split("/") : [];
|
|
271
|
-
i.length > 0 && i.pop();
|
|
272
|
-
for (var a = n.split("/"), o = 0; o < a.length; o++) {
|
|
273
|
-
var s = a[o];
|
|
274
|
-
if (!(!s || s === ".")) {
|
|
275
|
-
if (s === "..") {
|
|
276
|
-
i.length > 0 && i.pop();
|
|
277
|
-
continue;
|
|
278
|
-
}
|
|
279
|
-
i.push(s);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
return d(i.join("/"));
|
|
283
|
-
}
|
|
284
|
-
function p(e) {
|
|
285
|
-
return /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e) || e.indexOf("//") === 0;
|
|
286
|
-
}
|
|
287
|
-
function m(e) {
|
|
288
|
-
var t = String(e || "");
|
|
289
|
-
if (!t || p(t)) return t;
|
|
290
|
-
try {
|
|
291
|
-
var n = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
|
|
292
|
-
return n ? new URL(t, n).href : t;
|
|
293
|
-
} catch {
|
|
294
|
-
return t;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
function h() {
|
|
298
|
-
var e = String(a || "./");
|
|
299
|
-
if (e.slice(-1) !== "/" && (e += "/"), p(e) || e.charAt(0) === "/") return e;
|
|
300
|
-
if (o !== void 0 && o && o.publicPath) try {
|
|
301
|
-
return new URL(e, m(o.publicPath)).href;
|
|
302
|
-
} catch {}
|
|
303
|
-
return m(e);
|
|
304
|
-
}
|
|
305
|
-
function g(e, t) {
|
|
306
|
-
var n = f(e, t), r = h(), i = Object.prototype.hasOwnProperty.call(s, n) ? String(s[n] || "") : n;
|
|
307
|
-
i.slice(-3) !== ".js" && (i += ".js");
|
|
308
|
-
try {
|
|
309
|
-
return new URL(i, r).href;
|
|
310
|
-
} catch {
|
|
311
|
-
return r + i;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
function _() {
|
|
315
|
-
if (typeof document > "u") return "";
|
|
316
|
-
var e = document.currentScript;
|
|
317
|
-
if (e) {
|
|
318
|
-
var t = e.getAttribute("data-amd-module-id");
|
|
319
|
-
if (t) return t;
|
|
320
|
-
}
|
|
321
|
-
return "";
|
|
322
|
-
}
|
|
323
|
-
function v(t, n, r) {
|
|
324
|
-
if (Array.isArray(t) ? (r = n, n = t, t = _()) : typeof t == "function" ? (r = t, n = [], t = _()) : typeof n == "function" && (r = n, n = []), !t) throw Error("[AMD] Anonymous define() could not be associated with a module id");
|
|
325
|
-
t in e || (e[t] = {
|
|
326
|
-
deps: n || [],
|
|
327
|
-
factory: r
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
v.amd = { async: !0 };
|
|
331
|
-
function y() {
|
|
332
|
-
return function() {};
|
|
333
|
-
}
|
|
334
|
-
function b(e, t) {
|
|
335
|
-
return {
|
|
336
|
-
id: e,
|
|
337
|
-
exports: t,
|
|
338
|
-
uri: g(e)
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
function x(e, t, n, r) {
|
|
342
|
-
if (Array.isArray(e)) {
|
|
343
|
-
var i = Promise.all(e.map(function(e) {
|
|
344
|
-
return C(e, r);
|
|
345
|
-
})).then(function(e) {
|
|
346
|
-
return t && t.apply(null, e), e;
|
|
347
|
-
});
|
|
348
|
-
return n && i.catch(n), i;
|
|
349
|
-
}
|
|
350
|
-
return C(e, r);
|
|
351
|
-
}
|
|
352
|
-
function S(a, o) {
|
|
353
|
-
if (Array.isArray(a)) throw Error("[AMD] syncRequire does not support dependency arrays");
|
|
354
|
-
var s = f(a, o);
|
|
355
|
-
if (s in i) throw i[s];
|
|
356
|
-
if (s in t) return t[s];
|
|
357
|
-
if (s in n || s in r) throw c(s, /* @__PURE__ */ Error("Module is still loading asynchronously"));
|
|
358
|
-
if (!(s in e)) throw c(s, /* @__PURE__ */ Error("Module is not available for syncRequire"));
|
|
359
|
-
return T(s);
|
|
360
|
-
}
|
|
361
|
-
function C(r, a) {
|
|
362
|
-
var o = f(r, a);
|
|
363
|
-
return o in i ? Promise.reject(i[o]) : o in t ? Promise.resolve(t[o]) : o in n ? n[o] : o in e ? (n[o] = w(o), n[o]) : (n[o] = D(o).then(function() {
|
|
364
|
-
if (!(o in e)) {
|
|
365
|
-
var t = c(o, /* @__PURE__ */ Error("Module not defined after script load"));
|
|
366
|
-
throw i[o] = t, t;
|
|
367
|
-
}
|
|
368
|
-
return w(o);
|
|
369
|
-
}).catch(function(e) {
|
|
370
|
-
delete n[o];
|
|
371
|
-
var t = c(o, e);
|
|
372
|
-
throw i[o] = t, t;
|
|
373
|
-
}), n[o]);
|
|
374
|
-
}
|
|
375
|
-
function w(r) {
|
|
376
|
-
var a = e[r], o = E(r), s = y(), c = b(r, s);
|
|
377
|
-
return Promise.all(a.deps.map(function(e) {
|
|
378
|
-
return e === "exports" ? s : e === "require" ? o : e === "module" ? c : C(e, r).catch(function(t) {
|
|
379
|
-
throw l(r, e, t);
|
|
380
|
-
});
|
|
381
|
-
})).then(function(e) {
|
|
382
|
-
var i = a.factory.apply(null, e);
|
|
383
|
-
return i && typeof i.then == "function" ? i.then(function(e) {
|
|
384
|
-
return t[r] = e === void 0 ? c.exports : e, delete n[r], t[r];
|
|
385
|
-
}) : (t[r] = i === void 0 ? c.exports : i, delete n[r], t[r]);
|
|
386
|
-
}).catch(function(e) {
|
|
387
|
-
throw delete n[r], i[r] = e, e;
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
function T(n) {
|
|
391
|
-
var r = e[n], a = E(n), o = y(), s = b(n, o);
|
|
392
|
-
try {
|
|
393
|
-
var u = r.deps.map(function(e) {
|
|
394
|
-
if (e === "exports") return o;
|
|
395
|
-
if (e === "require") return a;
|
|
396
|
-
if (e === "module") return s;
|
|
397
|
-
try {
|
|
398
|
-
return S(e, n);
|
|
399
|
-
} catch (t) {
|
|
400
|
-
throw l(n, e, t);
|
|
401
|
-
}
|
|
402
|
-
}), d = r.factory.apply(null, u);
|
|
403
|
-
if (d && typeof d.then == "function") throw c(n, /* @__PURE__ */ Error("Module resolved asynchronously and cannot be syncRequired"));
|
|
404
|
-
return t[n] = d === void 0 ? s.exports : d, t[n];
|
|
405
|
-
} catch (e) {
|
|
406
|
-
throw i[n] = e, e;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
function E(n) {
|
|
410
|
-
var r = function(r, i, a) {
|
|
411
|
-
if (Array.isArray(r)) return x(r, i, a, n);
|
|
412
|
-
var o = f(r, n);
|
|
413
|
-
return o in t ? t[o] : o in e ? S(r, n) : C(r, n);
|
|
414
|
-
};
|
|
415
|
-
return r.resolve = function(e) {
|
|
416
|
-
return f(e, n);
|
|
417
|
-
}, r.toUrl = function(e) {
|
|
418
|
-
return g(e, n);
|
|
419
|
-
}, r.sync = function(e) {
|
|
420
|
-
return S(e, n);
|
|
421
|
-
}, r;
|
|
422
|
-
}
|
|
423
|
-
function D(e) {
|
|
424
|
-
if (e in r) return r[e];
|
|
425
|
-
var t = g(e);
|
|
426
|
-
return document.querySelector("script[src=\"" + t + "\"]") ? (r[e] = Promise.resolve(), r[e]) : (r[e] = new Promise(function(n, i) {
|
|
427
|
-
var a = document.createElement("script");
|
|
428
|
-
a.src = t, a.setAttribute("data-amd-module-id", e), a.async = !0, a.onload = function() {
|
|
429
|
-
n();
|
|
430
|
-
}, a.onerror = function() {
|
|
431
|
-
delete r[e], i(/* @__PURE__ */ Error("Failed to load script: " + t));
|
|
432
|
-
}, document.head.appendChild(a);
|
|
433
|
-
}), r[e]);
|
|
434
|
-
}
|
|
435
|
-
x.config = function(e) {
|
|
436
|
-
if (e.baseUrl && (a = e.baseUrl), e.paths) for (var t in e.paths) Object.prototype.hasOwnProperty.call(e.paths, t) && (s[t] = e.paths[t]);
|
|
437
|
-
}, x.modules = e, x.resolved = t, x.errors = i, x.toUrl = g, x.sync = S, o.define = v, o.require = x, o.syncRequire = S;
|
|
438
|
-
})(), o.require.config({
|
|
439
|
-
baseUrl: "./",
|
|
440
|
-
paths: { core: "emailmaker-core.0e81adc5.js" }
|
|
441
|
-
});
|
|
442
|
-
var s = import("./static/esm/8bd1b5bb.js").then(function(e) {
|
|
443
|
-
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && (n[t] = e[t]);
|
|
444
|
-
return e;
|
|
445
|
-
}), c = {
|
|
446
|
-
source: "legacy-shared",
|
|
447
|
-
modulesObject: n,
|
|
448
|
-
modulesPromise: s,
|
|
449
|
-
previousPrefetch: t,
|
|
450
|
-
stack: (/* @__PURE__ */ Error()).stack,
|
|
451
|
-
timestamp: Date.now()
|
|
452
|
-
};
|
|
453
|
-
if (a.entries.length > 0) {
|
|
454
|
-
var l = a.entries[a.entries.length - 1];
|
|
455
|
-
if (l && l.modulesObject !== n) {
|
|
456
|
-
var u = {
|
|
457
|
-
message: "[runtime] Duplicate runtime shared initialization detected",
|
|
458
|
-
current: c,
|
|
459
|
-
previous: l,
|
|
460
|
-
timestamp: Date.now()
|
|
461
|
-
};
|
|
462
|
-
a.warnings.push(u), typeof console < "u" && typeof console.warn == "function" && u.message;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
if (a.entries.push(c), e.modules = n, r.forEach(function(e) {
|
|
466
|
-
n[e] = s.then(function(t) {
|
|
467
|
-
var r = t[e];
|
|
468
|
-
return n[e] = r, r;
|
|
469
|
-
});
|
|
470
|
-
}), typeof e.define == "function") {
|
|
471
|
-
function t(e) {
|
|
472
|
-
if (!e || typeof e != "object" && typeof e != "function" || e.__esModule) return e;
|
|
473
|
-
var t = Object.create(null);
|
|
474
|
-
Object.defineProperties(t, {
|
|
475
|
-
__esModule: { value: !0 },
|
|
476
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
477
|
-
});
|
|
478
|
-
for (var n = Reflect.ownKeys(e), r = 0; r < n.length; r++) {
|
|
479
|
-
var i = n[r];
|
|
480
|
-
if (i !== "__esModule") {
|
|
481
|
-
var a = Object.getOwnPropertyDescriptor(e, i);
|
|
482
|
-
a && Object.defineProperty(t, i, a);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
return t;
|
|
486
|
-
}
|
|
487
|
-
var d = e.__diagnostics ||= {}, f = d.runtimeLoads ||= {
|
|
488
|
-
entries: [],
|
|
489
|
-
warnings: []
|
|
490
|
-
}, p = d.runtimeModules ||= {
|
|
491
|
-
byModuleId: Object.create(null),
|
|
492
|
-
byExportName: Object.create(null),
|
|
493
|
-
warnings: []
|
|
494
|
-
};
|
|
495
|
-
function r(e, t) {
|
|
496
|
-
var n = {
|
|
497
|
-
message: e,
|
|
498
|
-
payload: t,
|
|
499
|
-
timestamp: Date.now()
|
|
500
|
-
};
|
|
501
|
-
p.warnings.push(n), f && f.warnings && f.warnings.push(n);
|
|
502
|
-
}
|
|
503
|
-
function i(e, t, n, i, a) {
|
|
504
|
-
var o = p.byModuleId[e];
|
|
505
|
-
o ||= p.byModuleId[e] = {
|
|
506
|
-
moduleId: e,
|
|
507
|
-
exportName: t,
|
|
508
|
-
records: [],
|
|
509
|
-
duplicateWarningShown: !1
|
|
510
|
-
};
|
|
511
|
-
var s = p.byExportName[t];
|
|
512
|
-
s ||= p.byExportName[t] = {
|
|
513
|
-
exportName: t,
|
|
514
|
-
moduleIds: [],
|
|
515
|
-
records: []
|
|
516
|
-
}, s.moduleIds.indexOf(e) < 0 && s.moduleIds.push(e);
|
|
517
|
-
var c = {
|
|
518
|
-
source: a,
|
|
519
|
-
originalValue: n,
|
|
520
|
-
resolvedValue: i,
|
|
521
|
-
timestamp: Date.now(),
|
|
522
|
-
stack: (/* @__PURE__ */ Error()).stack
|
|
523
|
-
};
|
|
524
|
-
return o.records.push(c), s.records.push(c), o.firstResolvedValue ? (o.firstResolvedValue !== i && o.firstOriginalValue !== n && !o.duplicateWarningShown && (o.duplicateWarningShown = !0, r("[runtime] Duplicate runtime module detected", {
|
|
525
|
-
moduleId: e,
|
|
526
|
-
exportName: t,
|
|
527
|
-
first: {
|
|
528
|
-
originalValue: o.firstOriginalValue,
|
|
529
|
-
resolvedValue: o.firstResolvedValue
|
|
530
|
-
},
|
|
531
|
-
second: {
|
|
532
|
-
originalValue: n,
|
|
533
|
-
resolvedValue: i
|
|
534
|
-
},
|
|
535
|
-
records: o.records
|
|
536
|
-
})), i) : (o.firstResolvedValue = i, o.firstOriginalValue = n, i);
|
|
537
|
-
}
|
|
538
|
-
e.define("react", [], function() {
|
|
539
|
-
var e = n.React;
|
|
540
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
541
|
-
var n = e.React;
|
|
542
|
-
return i("react", "React", n, t(n), "barrel-promise");
|
|
543
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
544
|
-
var n = e.React;
|
|
545
|
-
return i("react", "React", n, t(n), "barrel-fallback");
|
|
546
|
-
}) : i("react", "React", e, t(e), "modules-cache");
|
|
547
|
-
}), e.define("@emailmaker/emailmaker/runtime/react", [], function() {
|
|
548
|
-
var e = n.React;
|
|
549
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
550
|
-
var n = e.React;
|
|
551
|
-
return i("@emailmaker/emailmaker/runtime/react", "React", n, t(n), "barrel-promise");
|
|
552
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
553
|
-
var n = e.React;
|
|
554
|
-
return i("@emailmaker/emailmaker/runtime/react", "React", n, t(n), "barrel-fallback");
|
|
555
|
-
}) : i("@emailmaker/emailmaker/runtime/react", "React", e, t(e), "modules-cache");
|
|
556
|
-
}), e.define("react-dom", [], function() {
|
|
557
|
-
var e = n.ReactDom;
|
|
558
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
559
|
-
var n = e.ReactDom;
|
|
560
|
-
return i("react-dom", "ReactDom", n, t(n), "barrel-promise");
|
|
561
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
562
|
-
var n = e.ReactDom;
|
|
563
|
-
return i("react-dom", "ReactDom", n, t(n), "barrel-fallback");
|
|
564
|
-
}) : i("react-dom", "ReactDom", e, t(e), "modules-cache");
|
|
565
|
-
}), e.define("@emailmaker/emailmaker/runtime/react-dom", [], function() {
|
|
566
|
-
var e = n.ReactDom;
|
|
567
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
568
|
-
var n = e.ReactDom;
|
|
569
|
-
return i("@emailmaker/emailmaker/runtime/react-dom", "ReactDom", n, t(n), "barrel-promise");
|
|
570
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
571
|
-
var n = e.ReactDom;
|
|
572
|
-
return i("@emailmaker/emailmaker/runtime/react-dom", "ReactDom", n, t(n), "barrel-fallback");
|
|
573
|
-
}) : i("@emailmaker/emailmaker/runtime/react-dom", "ReactDom", e, t(e), "modules-cache");
|
|
574
|
-
}), e.define("react-dom/client", [], function() {
|
|
575
|
-
var e = n.ReactDomClient;
|
|
576
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
577
|
-
var n = e.ReactDomClient;
|
|
578
|
-
return i("react-dom/client", "ReactDomClient", n, t(n), "barrel-promise");
|
|
579
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
580
|
-
var n = e.ReactDomClient;
|
|
581
|
-
return i("react-dom/client", "ReactDomClient", n, t(n), "barrel-fallback");
|
|
582
|
-
}) : i("react-dom/client", "ReactDomClient", e, t(e), "modules-cache");
|
|
583
|
-
}), e.define("@emailmaker/emailmaker/runtime/react-dom/client", [], function() {
|
|
584
|
-
var e = n.ReactDomClient;
|
|
585
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
586
|
-
var n = e.ReactDomClient;
|
|
587
|
-
return i("@emailmaker/emailmaker/runtime/react-dom/client", "ReactDomClient", n, t(n), "barrel-promise");
|
|
588
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
589
|
-
var n = e.ReactDomClient;
|
|
590
|
-
return i("@emailmaker/emailmaker/runtime/react-dom/client", "ReactDomClient", n, t(n), "barrel-fallback");
|
|
591
|
-
}) : i("@emailmaker/emailmaker/runtime/react-dom/client", "ReactDomClient", e, t(e), "modules-cache");
|
|
592
|
-
}), e.define("react/jsx-runtime", [], function() {
|
|
593
|
-
var e = n.ReactJsxRuntime;
|
|
594
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
595
|
-
var n = e.ReactJsxRuntime;
|
|
596
|
-
return i("react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-promise");
|
|
597
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
598
|
-
var n = e.ReactJsxRuntime;
|
|
599
|
-
return i("react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-fallback");
|
|
600
|
-
}) : i("react/jsx-runtime", "ReactJsxRuntime", e, t(e), "modules-cache");
|
|
601
|
-
}), e.define("@emailmaker/emailmaker/runtime/react/jsx-runtime", [], function() {
|
|
602
|
-
var e = n.ReactJsxRuntime;
|
|
603
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
604
|
-
var n = e.ReactJsxRuntime;
|
|
605
|
-
return i("@emailmaker/emailmaker/runtime/react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-promise");
|
|
606
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
607
|
-
var n = e.ReactJsxRuntime;
|
|
608
|
-
return i("@emailmaker/emailmaker/runtime/react/jsx-runtime", "ReactJsxRuntime", n, t(n), "barrel-fallback");
|
|
609
|
-
}) : i("@emailmaker/emailmaker/runtime/react/jsx-runtime", "ReactJsxRuntime", e, t(e), "modules-cache");
|
|
610
|
-
}), e.define("react/jsx-dev-runtime", [], function() {
|
|
611
|
-
var e = n.ReactJsxDevRuntime;
|
|
612
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
613
|
-
var n = e.ReactJsxDevRuntime;
|
|
614
|
-
return i("react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-promise");
|
|
615
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
616
|
-
var n = e.ReactJsxDevRuntime;
|
|
617
|
-
return i("react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-fallback");
|
|
618
|
-
}) : i("react/jsx-dev-runtime", "ReactJsxDevRuntime", e, t(e), "modules-cache");
|
|
619
|
-
}), e.define("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", [], function() {
|
|
620
|
-
var e = n.ReactJsxDevRuntime;
|
|
621
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
622
|
-
var n = e.ReactJsxDevRuntime;
|
|
623
|
-
return i("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-promise");
|
|
624
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
625
|
-
var n = e.ReactJsxDevRuntime;
|
|
626
|
-
return i("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", "ReactJsxDevRuntime", n, t(n), "barrel-fallback");
|
|
627
|
-
}) : i("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", "ReactJsxDevRuntime", e, t(e), "modules-cache");
|
|
628
|
-
}), e.define("prop-types", [], function() {
|
|
629
|
-
var e = n.PropTypes;
|
|
630
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
631
|
-
var n = e.PropTypes;
|
|
632
|
-
return i("prop-types", "PropTypes", n, t(n), "barrel-promise");
|
|
633
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
634
|
-
var n = e.PropTypes;
|
|
635
|
-
return i("prop-types", "PropTypes", n, t(n), "barrel-fallback");
|
|
636
|
-
}) : i("prop-types", "PropTypes", e, t(e), "modules-cache");
|
|
637
|
-
}), e.define("@emailmaker/emailmaker/runtime/prop-types", [], function() {
|
|
638
|
-
var e = n.PropTypes;
|
|
639
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
640
|
-
var n = e.PropTypes;
|
|
641
|
-
return i("@emailmaker/emailmaker/runtime/prop-types", "PropTypes", n, t(n), "barrel-promise");
|
|
642
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
643
|
-
var n = e.PropTypes;
|
|
644
|
-
return i("@emailmaker/emailmaker/runtime/prop-types", "PropTypes", n, t(n), "barrel-fallback");
|
|
645
|
-
}) : i("@emailmaker/emailmaker/runtime/prop-types", "PropTypes", e, t(e), "modules-cache");
|
|
646
|
-
}), e.define("react-router-dom", [], function() {
|
|
647
|
-
var e = n.ReactRouterDom;
|
|
648
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
649
|
-
var n = e.ReactRouterDom;
|
|
650
|
-
return i("react-router-dom", "ReactRouterDom", n, t(n), "barrel-promise");
|
|
651
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
652
|
-
var n = e.ReactRouterDom;
|
|
653
|
-
return i("react-router-dom", "ReactRouterDom", n, t(n), "barrel-fallback");
|
|
654
|
-
}) : i("react-router-dom", "ReactRouterDom", e, t(e), "modules-cache");
|
|
655
|
-
}), e.define("@emailmaker/emailmaker/runtime/react-router-dom", [], function() {
|
|
656
|
-
var e = n.ReactRouterDom;
|
|
657
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
658
|
-
var n = e.ReactRouterDom;
|
|
659
|
-
return i("@emailmaker/emailmaker/runtime/react-router-dom", "ReactRouterDom", n, t(n), "barrel-promise");
|
|
660
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
661
|
-
var n = e.ReactRouterDom;
|
|
662
|
-
return i("@emailmaker/emailmaker/runtime/react-router-dom", "ReactRouterDom", n, t(n), "barrel-fallback");
|
|
663
|
-
}) : i("@emailmaker/emailmaker/runtime/react-router-dom", "ReactRouterDom", e, t(e), "modules-cache");
|
|
664
|
-
}), e.define("antd", [], function() {
|
|
665
|
-
var e = n.Antd;
|
|
666
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
667
|
-
var n = e.Antd;
|
|
668
|
-
return i("antd", "Antd", n, t(n), "barrel-promise");
|
|
669
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
670
|
-
var n = e.Antd;
|
|
671
|
-
return i("antd", "Antd", n, t(n), "barrel-fallback");
|
|
672
|
-
}) : i("antd", "Antd", e, t(e), "modules-cache");
|
|
673
|
-
}), e.define("@emailmaker/emailmaker/runtime/antd", [], function() {
|
|
674
|
-
var e = n.Antd;
|
|
675
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
676
|
-
var n = e.Antd;
|
|
677
|
-
return i("@emailmaker/emailmaker/runtime/antd", "Antd", n, t(n), "barrel-promise");
|
|
678
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
679
|
-
var n = e.Antd;
|
|
680
|
-
return i("@emailmaker/emailmaker/runtime/antd", "Antd", n, t(n), "barrel-fallback");
|
|
681
|
-
}) : i("@emailmaker/emailmaker/runtime/antd", "Antd", e, t(e), "modules-cache");
|
|
682
|
-
}), e.define("@ant-design/icons", [], function() {
|
|
683
|
-
var e = n.AntDesignIcons;
|
|
684
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
685
|
-
var n = e.AntDesignIcons;
|
|
686
|
-
return i("@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-promise");
|
|
687
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
688
|
-
var n = e.AntDesignIcons;
|
|
689
|
-
return i("@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-fallback");
|
|
690
|
-
}) : i("@ant-design/icons", "AntDesignIcons", e, t(e), "modules-cache");
|
|
691
|
-
}), e.define("@emailmaker/emailmaker/runtime/@ant-design/icons", [], function() {
|
|
692
|
-
var e = n.AntDesignIcons;
|
|
693
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
694
|
-
var n = e.AntDesignIcons;
|
|
695
|
-
return i("@emailmaker/emailmaker/runtime/@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-promise");
|
|
696
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
697
|
-
var n = e.AntDesignIcons;
|
|
698
|
-
return i("@emailmaker/emailmaker/runtime/@ant-design/icons", "AntDesignIcons", n, t(n), "barrel-fallback");
|
|
699
|
-
}) : i("@emailmaker/emailmaker/runtime/@ant-design/icons", "AntDesignIcons", e, t(e), "modules-cache");
|
|
700
|
-
}), e.define("@ant-design/cssinjs", [], function() {
|
|
701
|
-
var e = n.AntDesignCssinjs;
|
|
702
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
703
|
-
var n = e.AntDesignCssinjs;
|
|
704
|
-
return i("@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-promise");
|
|
705
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
706
|
-
var n = e.AntDesignCssinjs;
|
|
707
|
-
return i("@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-fallback");
|
|
708
|
-
}) : i("@ant-design/cssinjs", "AntDesignCssinjs", e, t(e), "modules-cache");
|
|
709
|
-
}), e.define("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", [], function() {
|
|
710
|
-
var e = n.AntDesignCssinjs;
|
|
711
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
712
|
-
var n = e.AntDesignCssinjs;
|
|
713
|
-
return i("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-promise");
|
|
714
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
715
|
-
var n = e.AntDesignCssinjs;
|
|
716
|
-
return i("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", "AntDesignCssinjs", n, t(n), "barrel-fallback");
|
|
717
|
-
}) : i("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", "AntDesignCssinjs", e, t(e), "modules-cache");
|
|
718
|
-
}), e.define("@ant-design/pro-layout", [], function() {
|
|
719
|
-
var e = n.AntDesignProLayout;
|
|
720
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
721
|
-
var n = e.AntDesignProLayout;
|
|
722
|
-
return i("@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-promise");
|
|
723
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
724
|
-
var n = e.AntDesignProLayout;
|
|
725
|
-
return i("@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-fallback");
|
|
726
|
-
}) : i("@ant-design/pro-layout", "AntDesignProLayout", e, t(e), "modules-cache");
|
|
727
|
-
}), e.define("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", [], function() {
|
|
728
|
-
var e = n.AntDesignProLayout;
|
|
729
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
730
|
-
var n = e.AntDesignProLayout;
|
|
731
|
-
return i("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-promise");
|
|
732
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
733
|
-
var n = e.AntDesignProLayout;
|
|
734
|
-
return i("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", "AntDesignProLayout", n, t(n), "barrel-fallback");
|
|
735
|
-
}) : i("@emailmaker/emailmaker/runtime/@ant-design/pro-layout", "AntDesignProLayout", e, t(e), "modules-cache");
|
|
736
|
-
}), e.define("classnames", [], function() {
|
|
737
|
-
var e = n.Classnames;
|
|
738
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
739
|
-
var n = e.Classnames;
|
|
740
|
-
return i("classnames", "Classnames", n, t(n), "barrel-promise");
|
|
741
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
742
|
-
var n = e.Classnames;
|
|
743
|
-
return i("classnames", "Classnames", n, t(n), "barrel-fallback");
|
|
744
|
-
}) : i("classnames", "Classnames", e, t(e), "modules-cache");
|
|
745
|
-
}), e.define("@emailmaker/emailmaker/runtime/classnames", [], function() {
|
|
746
|
-
var e = n.Classnames;
|
|
747
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
748
|
-
var n = e.Classnames;
|
|
749
|
-
return i("@emailmaker/emailmaker/runtime/classnames", "Classnames", n, t(n), "barrel-promise");
|
|
750
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
751
|
-
var n = e.Classnames;
|
|
752
|
-
return i("@emailmaker/emailmaker/runtime/classnames", "Classnames", n, t(n), "barrel-fallback");
|
|
753
|
-
}) : i("@emailmaker/emailmaker/runtime/classnames", "Classnames", e, t(e), "modules-cache");
|
|
754
|
-
}), e.define("dayjs", [], function() {
|
|
755
|
-
var e = n.Dayjs;
|
|
756
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
757
|
-
var n = e.Dayjs;
|
|
758
|
-
return i("dayjs", "Dayjs", n, t(n), "barrel-promise");
|
|
759
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
760
|
-
var n = e.Dayjs;
|
|
761
|
-
return i("dayjs", "Dayjs", n, t(n), "barrel-fallback");
|
|
762
|
-
}) : i("dayjs", "Dayjs", e, t(e), "modules-cache");
|
|
763
|
-
}), e.define("@emailmaker/emailmaker/runtime/dayjs", [], function() {
|
|
764
|
-
var e = n.Dayjs;
|
|
765
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
766
|
-
var n = e.Dayjs;
|
|
767
|
-
return i("@emailmaker/emailmaker/runtime/dayjs", "Dayjs", n, t(n), "barrel-promise");
|
|
768
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
769
|
-
var n = e.Dayjs;
|
|
770
|
-
return i("@emailmaker/emailmaker/runtime/dayjs", "Dayjs", n, t(n), "barrel-fallback");
|
|
771
|
-
}) : i("@emailmaker/emailmaker/runtime/dayjs", "Dayjs", e, t(e), "modules-cache");
|
|
772
|
-
}), e.define("uuid", [], function() {
|
|
773
|
-
var e = n.Uuid;
|
|
774
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
775
|
-
var n = e.Uuid;
|
|
776
|
-
return i("uuid", "Uuid", n, t(n), "barrel-promise");
|
|
777
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
778
|
-
var n = e.Uuid;
|
|
779
|
-
return i("uuid", "Uuid", n, t(n), "barrel-fallback");
|
|
780
|
-
}) : i("uuid", "Uuid", e, t(e), "modules-cache");
|
|
781
|
-
}), e.define("@emailmaker/emailmaker/runtime/uuid", [], function() {
|
|
782
|
-
var e = n.Uuid;
|
|
783
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
784
|
-
var n = e.Uuid;
|
|
785
|
-
return i("@emailmaker/emailmaker/runtime/uuid", "Uuid", n, t(n), "barrel-promise");
|
|
786
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
787
|
-
var n = e.Uuid;
|
|
788
|
-
return i("@emailmaker/emailmaker/runtime/uuid", "Uuid", n, t(n), "barrel-fallback");
|
|
789
|
-
}) : i("@emailmaker/emailmaker/runtime/uuid", "Uuid", e, t(e), "modules-cache");
|
|
790
|
-
}), e.define("di", [], function() {
|
|
791
|
-
var e = n.Core;
|
|
792
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
793
|
-
var n = e.Core;
|
|
794
|
-
return i("di", "Core", n, t(n), "barrel-promise");
|
|
795
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
796
|
-
var n = e.Core;
|
|
797
|
-
return i("di", "Core", n, t(n), "barrel-fallback");
|
|
798
|
-
}) : i("di", "Core", e, t(e), "modules-cache");
|
|
799
|
-
}), e.define("@emailmaker/emailmaker/runtime-core", [], function() {
|
|
800
|
-
var e = n.Core;
|
|
801
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
802
|
-
var n = e.Core;
|
|
803
|
-
return i("@emailmaker/emailmaker/runtime-core", "Core", n, t(n), "barrel-promise");
|
|
804
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
805
|
-
var n = e.Core;
|
|
806
|
-
return i("@emailmaker/emailmaker/runtime-core", "Core", n, t(n), "barrel-fallback");
|
|
807
|
-
}) : i("@emailmaker/emailmaker/runtime-core", "Core", e, t(e), "modules-cache");
|
|
808
|
-
}), e.define("@emailmaker/emailmaker/runtime/core", [], function() {
|
|
809
|
-
var e = n.Core;
|
|
810
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
811
|
-
var n = e.Core;
|
|
812
|
-
return i("@emailmaker/emailmaker/runtime/core", "Core", n, t(n), "barrel-promise");
|
|
813
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
814
|
-
var n = e.Core;
|
|
815
|
-
return i("@emailmaker/emailmaker/runtime/core", "Core", n, t(n), "barrel-fallback");
|
|
816
|
-
}) : i("@emailmaker/emailmaker/runtime/core", "Core", e, t(e), "modules-cache");
|
|
817
|
-
}), e.define("disposable", [], function() {
|
|
818
|
-
var e = n.Core;
|
|
819
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
820
|
-
var n = e.Core;
|
|
821
|
-
return i("disposable", "Core", n, t(n), "barrel-promise");
|
|
822
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
823
|
-
var n = e.Core;
|
|
824
|
-
return i("disposable", "Core", n, t(n), "barrel-fallback");
|
|
825
|
-
}) : i("disposable", "Core", e, t(e), "modules-cache");
|
|
826
|
-
}), e.define("guid", [], function() {
|
|
827
|
-
var e = n.Core;
|
|
828
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
829
|
-
var n = e.Core;
|
|
830
|
-
return i("guid", "Core", n, t(n), "barrel-promise");
|
|
831
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
832
|
-
var n = e.Core;
|
|
833
|
-
return i("guid", "Core", n, t(n), "barrel-fallback");
|
|
834
|
-
}) : i("guid", "Core", e, t(e), "modules-cache");
|
|
835
|
-
}), e.define("errors-runtime", [], function() {
|
|
836
|
-
var e = n.Core;
|
|
837
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
838
|
-
var n = e.Core;
|
|
839
|
-
return i("errors-runtime", "Core", n, t(n), "barrel-promise");
|
|
840
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
841
|
-
var n = e.Core;
|
|
842
|
-
return i("errors-runtime", "Core", n, t(n), "barrel-fallback");
|
|
843
|
-
}) : i("errors-runtime", "Core", e, t(e), "modules-cache");
|
|
844
|
-
}), e.define("app-core", [], function() {
|
|
845
|
-
var e = n.AppCore;
|
|
846
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
847
|
-
var n = e.AppCore;
|
|
848
|
-
return i("app-core", "AppCore", n, t(n), "barrel-promise");
|
|
849
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
850
|
-
var n = e.AppCore;
|
|
851
|
-
return i("app-core", "AppCore", n, t(n), "barrel-fallback");
|
|
852
|
-
}) : i("app-core", "AppCore", e, t(e), "modules-cache");
|
|
853
|
-
}), e.define("@emailmaker/emailmaker/runtime/app-core", [], function() {
|
|
854
|
-
var e = n.AppCore;
|
|
855
|
-
return e && typeof e.then == "function" ? s.then(function(e) {
|
|
856
|
-
var n = e.AppCore;
|
|
857
|
-
return i("@emailmaker/emailmaker/runtime/app-core", "AppCore", n, t(n), "barrel-promise");
|
|
858
|
-
}) : e === void 0 ? s.then(function(e) {
|
|
859
|
-
var n = e.AppCore;
|
|
860
|
-
return i("@emailmaker/emailmaker/runtime/app-core", "AppCore", n, t(n), "barrel-fallback");
|
|
861
|
-
}) : i("@emailmaker/emailmaker/runtime/app-core", "AppCore", e, t(e), "modules-cache");
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
e.prefetch = function() {
|
|
865
|
-
return s.then(function() {
|
|
866
|
-
if (typeof t == "function") return t();
|
|
867
|
-
});
|
|
868
|
-
};
|
|
869
|
-
})(), (function(e) {
|
|
870
|
-
if (!(!e || typeof e != "object")) {
|
|
871
|
-
var t = e.__emailmaker__ ||= {}, n = t.__compat ||= {};
|
|
872
|
-
n.host = n.host || null, n.packages = n.packages || {}, n.warned = n.warned || {}, n.normalizeVersion ||= function(e) {
|
|
873
|
-
return String(e || "").split("-")[0] || "0.0.0";
|
|
874
|
-
}, n.parseVersion ||= function(e) {
|
|
875
|
-
var t = n.normalizeVersion(e).split(".");
|
|
876
|
-
return {
|
|
877
|
-
major: parseInt(t[0] || "0", 10),
|
|
878
|
-
minor: parseInt(t[1] || "0", 10),
|
|
879
|
-
patch: parseInt(t[2] || "0", 10)
|
|
880
|
-
};
|
|
881
|
-
}, n.compareVersions ||= function(e, t) {
|
|
882
|
-
var r = n.parseVersion(e), i = n.parseVersion(t);
|
|
883
|
-
return r.major === i.major ? r.minor === i.minor ? r.patch - i.patch : r.minor - i.minor : r.major - i.major;
|
|
884
|
-
}, n.satisfies ||= function(e, t) {
|
|
885
|
-
if (!t || t === "*" || t === "latest") return !0;
|
|
886
|
-
var r = n.normalizeVersion(e), i = String(t || "").trim();
|
|
887
|
-
if (!i) return !0;
|
|
888
|
-
if (i.charAt(0) === "^") {
|
|
889
|
-
var a = n.parseVersion(i.slice(1)), o = n.parseVersion(r);
|
|
890
|
-
return n.compareVersions(r, i.slice(1)) < 0 ? !1 : a.major > 0 ? o.major === a.major : a.minor > 0 ? o.major === 0 && o.minor === a.minor : o.major === 0 && o.minor === 0 && o.patch === a.patch;
|
|
891
|
-
}
|
|
892
|
-
return n.normalizeVersion(r) === n.normalizeVersion(i);
|
|
893
|
-
}, n.warnOnce ||= function(e, t, r) {
|
|
894
|
-
n.warned[e] || (n.warned[e] = !0);
|
|
895
|
-
}, n.validateAll ||= function() {
|
|
896
|
-
var e = n.host, t = n.packages || {};
|
|
897
|
-
e && e.supports && Object.keys(t).forEach(function(r) {
|
|
898
|
-
var i = t[r], a = e.supports[r];
|
|
899
|
-
a && !n.satisfies(i.version, a) && n.warnOnce("host:" + r + ":" + i.version + ":" + a, "Host supports a different package version range.", {
|
|
900
|
-
packageId: r,
|
|
901
|
-
packageVersion: i.version,
|
|
902
|
-
supportedRange: a,
|
|
903
|
-
hostVersion: e.version
|
|
904
|
-
});
|
|
905
|
-
}), Object.keys(t).forEach(function(r) {
|
|
906
|
-
var i = t[r], a = i.requires || {};
|
|
907
|
-
Object.keys(a).forEach(function(o) {
|
|
908
|
-
var s = a[o], c = o === "host" ? e && e.version : t[o] && t[o].version;
|
|
909
|
-
c && (n.satisfies(c, s) || n.warnOnce(r + ":" + o + ":" + c + ":" + s, "Loaded package is outside the declared compatibility range.", {
|
|
910
|
-
packageId: r,
|
|
911
|
-
packageVersion: i.version,
|
|
912
|
-
targetId: o,
|
|
913
|
-
targetVersion: c,
|
|
914
|
-
requiredRange: s
|
|
915
|
-
}));
|
|
916
|
-
});
|
|
917
|
-
});
|
|
918
|
-
}, n.registerHost ||= function(e) {
|
|
919
|
-
n.host = e, n.validateAll();
|
|
920
|
-
}, n.registerPackage ||= function(e) {
|
|
921
|
-
n.packages[e.id] = e, n.validateAll();
|
|
922
|
-
}, t.__compat.registerHost({
|
|
923
|
-
version: "1.0.111-dev.1",
|
|
924
|
-
supports: {
|
|
925
|
-
"extensions-api": "^0.9.0",
|
|
926
|
-
"extensions-react": "^0.9.0",
|
|
927
|
-
"extensions-sandbox": "^0.9.0"
|
|
928
|
-
}
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
})(typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : void 0);
|
|
932
|
-
function V(e, t) {
|
|
933
|
-
return {
|
|
934
|
-
...e,
|
|
935
|
-
element: t
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
function H() {
|
|
939
|
-
return () => {};
|
|
940
|
-
}
|
|
941
|
-
function U(e) {
|
|
942
|
-
let t = e.element;
|
|
943
|
-
return !t || typeof t == "string" || typeof document > "u" ? H() : (w(t, e.config?.styles, t), () => {
|
|
944
|
-
T(t);
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
function W(e) {
|
|
948
|
-
if (e.initialSpinner === !1 || typeof document > "u") return {
|
|
949
|
-
options: e,
|
|
950
|
-
cleanup: H()
|
|
951
|
-
};
|
|
952
|
-
let t = e.element;
|
|
953
|
-
if (!t || typeof t == "string") return {
|
|
954
|
-
options: e,
|
|
955
|
-
cleanup: H()
|
|
956
|
-
};
|
|
957
|
-
t.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((e) => {
|
|
958
|
-
e.remove();
|
|
959
|
-
});
|
|
960
|
-
let n = O(t, "data-emailmaker"), r = e.handleChunkLoaded;
|
|
961
|
-
return {
|
|
962
|
-
options: {
|
|
963
|
-
...e,
|
|
964
|
-
handleChunkLoaded: () => {
|
|
965
|
-
n(), r?.();
|
|
966
|
-
}
|
|
967
|
-
},
|
|
968
|
-
cleanup: n
|
|
969
|
-
};
|
|
970
|
-
}
|
|
971
|
-
var G = "1.0.111-dev.1";
|
|
972
|
-
async function K(e) {
|
|
973
|
-
await h(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
|
|
974
|
-
}
|
|
975
|
-
async function q(r) {
|
|
976
|
-
let i = new t.Disposable(), a = await e(r.element, i);
|
|
977
|
-
i.dispose();
|
|
978
|
-
let o = L(B(V(r, a)));
|
|
979
|
-
if (a) {
|
|
980
|
-
let e = n.get(a);
|
|
981
|
-
if (e) try {
|
|
982
|
-
let t = await e;
|
|
983
|
-
if (t.getElement() === a) return t.reset(o);
|
|
984
|
-
} catch {
|
|
985
|
-
n.get(a) === e && n.delete(a);
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
let s = U(o), c = W(o), u = c.options;
|
|
989
|
-
await p(), v(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
|
|
990
|
-
let d = l().then((e) => e.init(u));
|
|
991
|
-
a && n.set(a, d);
|
|
992
|
-
try {
|
|
993
|
-
let e = await d;
|
|
994
|
-
return a && n.set(a, e), e;
|
|
995
|
-
} catch (e) {
|
|
996
|
-
throw s(), c.cleanup(), a && n.get(a) === d && n.delete(a), e;
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
async function J(e) {
|
|
1000
|
-
return (await l()).parseAMP(e);
|
|
1001
|
-
}
|
|
1002
|
-
typeof window < "u" && y(window.__emailmaker__ === void 0 ? void 0 : window.__emailmaker__);
|
|
1003
|
-
//#endregion
|
|
1004
|
-
export { i as errors, a as helpers, q as init, J as parseAMP, r as pluginRegistry, K as preload, G as version };
|
|
1
|
+
import{n as e,r as t,t as n}from"./static/esm/b09da19c.js";import{i as r,n as i,t as a}from"./static/esm/d111d47f.js";var o=null,s=`core`;function c(){return typeof window.__emailmaker__?.require==`function`?new Promise((e,t)=>{window.__emailmaker__.require([s],t=>e(t),e=>t(e instanceof Error?e:Error(`[loadEngine] Failed to require core module`)))}):Promise.reject(Error(`[loadEngine] AMD loader is unavailable`))}function l(){return o||=c(),o}var u=null,d=null;async function f(e){typeof e?.prefetch==`function`&&await e.prefetch()}function p(){return u||=l().then(()=>void 0),u}function m(e){return d||=f(e),d}function h(e){return Promise.all([p(),m(e)]).then(()=>void 0)}function g(e){let t=e?.startupPrefetchMode;return t===`eager`||t===`idle`||t===`manual`||t===`off`?t:`eager`}function _(e){Promise.resolve().then(()=>h(e)).catch(()=>{})}function v(e){Promise.resolve().then(()=>m(e)).catch(()=>{})}function y(e){let t=g(e);if(t===`eager`)_(e);else if(t===`idle`){let t=window.requestIdleCallback;typeof t==`function`?t(()=>_(e),{timeout:1500}):setTimeout(()=>_(e),0)}}var b=new WeakMap,x=`data-emailmaker-config-styles`;function S(e){return typeof e==`string`?e.trim():``}function C(e,t){if(e.firstChild){e.insertBefore(t,e.firstChild);return}e.appendChild(t)}function w(e,t,n){if(!e||typeof document>`u`)return null;let r=S(t),i=b.get(e),a=n||e;if(!r)return i&&(i.remove(),b.delete(e)),null;if(i)return i.textContent!==r&&(i.textContent=r),(i.parentNode!==a||i!==a.firstChild)&&C(a,i),i;let o=document.createElement(`style`);return o.setAttribute(x,`true`),o.textContent=r,C(a,o),b.set(e,o),o}function T(e){if(!e)return;let t=b.get(e);t&&(t.remove(),b.delete(e))}var E=`
|
|
2
|
+
.blocks-app-initial-spinner-wrapper {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.blocks-app-initial-spinner {
|
|
11
|
+
width: 28px;
|
|
12
|
+
height: 28px;
|
|
13
|
+
border: 4px solid rgb(231 212 228 / 100%);
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
animation: rotation_loader 1s linear infinite;
|
|
18
|
+
will-change: transform;
|
|
19
|
+
border-bottom-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@keyframes rotation_loader {
|
|
23
|
+
0% {
|
|
24
|
+
transform: rotate(0deg);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
100% {
|
|
28
|
+
transform: rotate(360deg);
|
|
29
|
+
}
|
|
30
|
+
}`;function D(){return()=>{}}function O(e,t){if(!e||typeof document>`u`)return D();e.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=document.createElement(`div`);n.classList.add(`blocks-app-initial-spinner-wrapper`);let r=document.createElement(`div`);r.classList.add(`blocks-app-initial-spinner`),n.appendChild(r);let i=document.createElement(`style`);i.setAttribute(t,`true`),i.textContent=E,document.head?.appendChild(i),e.appendChild(n);let a=!1;return()=>{a||(a=!0,n.remove(),i.remove())}}var k=new WeakMap,A=new Map;function j(e){return M(String(e||``).trim()||`https://app.emailmaker.ru/api/`)}function M(e){let t=e;for(;t.endsWith(`/`);)t=t.slice(0,t.length-1);return`${t}/wp-json`}async function N(e){if(!e.getAuthToken)return;let t=await e.getAuthToken(e.user,e.project,void 0);return t?`Bearer ${t}`:void 0}function P(e){return async({baseUrl:t})=>{let n=j(t);if(!n)throw Error(`[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL`);let r=new Headers({Accept:`application/json`,"Content-Type":`application/x-www-form-urlencoded;charset=UTF-8`}),i=await N(e);i&&r.set(`authorization`,i);let a=await fetch(`${n}/app/v1/app_init`,{method:`POST`,headers:r,body:new URLSearchParams,credentials:`same-origin`});if(!a.ok)throw Error(`[Loader] appInit request failed: ${a.status} ${a.statusText}`);return a.json()}}function F(e){return JSON.stringify({baseUrl:j(e.baseUrl)||``,project:e.project??``,userId:e.user?.id??``})}function I(e){return async t=>{let n=F(t),r=A.get(n);if(r)return r;let i=Promise.resolve(e(t)).catch(e=>{throw A.delete(n),e});return A.set(n,i),i}}function L(e){if(e.standaloneKey)return e;let t=e.appInit||P(e),n=k.get(t);return n||(n=I(t),k.set(t,n)),Promise.resolve(n({baseUrl:e.baseUrl,user:e.user,project:e.project,prevApp:void 0})).catch(e=>{}),{...e,appInit:n}}var R=new WeakMap;function z(e){let t=null;return async(n,r,i)=>(t||=Promise.resolve(e(n,r,i)).finally(()=>{t=null}),t)}function B(e){if(e.standaloneKey)return e;let t=e.getAuthToken;if(!t)return e;let n=R.get(t);return n||(n=z(t),R.set(t,n)),Promise.resolve(n(e.user,e.project,void 0)).catch(e=>{}),{...e,getAuthToken:n}}(function(){var e=window.__emailmaker__||(window.__emailmaker__={}),t=e.prefetch,n=e.modules&&typeof e.modules==`object`?e.modules:{},r=[`React`,`ReactDom`,`ReactDomClient`,`ReactJsxRuntime`,`ReactJsxDevRuntime`,`PropTypes`,`ReactRouterDom`,`Antd`,`AntDesignIcons`,`AntDesignCssinjs`,`AntDesignProLayout`,`Classnames`,`Dayjs`,`Uuid`,`Core`,`AppCore`],i=e.__diagnostics||={},a=i.runtimeLoads||={entries:[],warnings:[]};window.__emailmaker__.publicPath||(window.__emailmaker__.publicPath=(function(){var e=(function(){try{var e=import.meta.url;return e.substring(0,e.lastIndexOf(`/`)+1)}catch{return`./`}})();e||=`./`;try{var t=String(e);if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(t)||t.indexOf(`//`)===0)return t;var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return String(e)}})()),window.__emailmaker__.assetUrl||(window.__emailmaker__.assetUrl=function(e){function t(e){try{var t=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return t?new URL(String(e||``),t).href:String(e||``)}catch{return String(e||``)}}var n=String(e||``);if(!n)return``;if(/^(?:data:|blob:)/.test(n))return n;if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.indexOf(`//`)===0||n.charAt(0)===`/`)return t(n);var r=n.replace(/^\.\/+/,``).replace(/^\/+/,``),i=`static/media`.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/,``),a=i&&r.indexOf(i+`/`)!==0?i+`/`+r:r,o=window.__emailmaker__.publicPath||`./`;try{return new URL(a,o).href}catch{return o.slice(-1)!==`/`&&(o+=`/`),t(o+a)}});var o=window.__emailmaker__||(window.__emailmaker__={});(function(){if(o!==void 0&&o.define)return;o===void 0&&(window.__amdEnv={});var e={},t={},n={},r={},i={},a=`./`,s={};function c(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function l(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function u(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(!(!i||i===`.`)){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function d(e){var t=String(e||``).replace(/\\/g,`/`),n=String(a||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function f(e,t){var n=String(e||``);if(!n)return n;if(!(n.indexOf(`./`)===0||n.indexOf(`../`)===0))return d(u(n));var r=u(t||``),i=r?r.split(`/`):[];i.length>0&&i.pop();for(var a=n.split(`/`),o=0;o<a.length;o++){var s=a[o];if(!(!s||s===`.`)){if(s===`..`){i.length>0&&i.pop();continue}i.push(s)}}return d(i.join(`/`))}function p(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function m(e){var t=String(e||``);if(!t||p(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function h(){var e=String(a||`./`);if(e.slice(-1)!==`/`&&(e+=`/`),p(e)||e.charAt(0)===`/`)return e;if(o!==void 0&&o&&o.publicPath)try{return new URL(e,m(o.publicPath)).href}catch{}return m(e)}function g(e,t){var n=f(e,t),r=h(),i=Object.prototype.hasOwnProperty.call(s,n)?String(s[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function _(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function v(t,n,r){if(Array.isArray(t)?(r=n,n=t,t=_()):typeof t==`function`?(r=t,n=[],t=_()):typeof n==`function`&&(r=n,n=[]),!t)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);t in e||(e[t]={deps:n||[],factory:r})}v.amd={async:!0};function y(){return function(){}}function b(e,t){return{id:e,exports:t,uri:g(e)}}function x(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return C(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return C(e,r)}function S(a,o){if(Array.isArray(a))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=f(a,o);if(s in i)throw i[s];if(s in t)return t[s];if(s in n||s in r)throw c(s,Error(`Module is still loading asynchronously`));if(!(s in e))throw c(s,Error(`Module is not available for syncRequire`));return T(s)}function C(r,a){var o=f(r,a);return o in i?Promise.reject(i[o]):o in t?Promise.resolve(t[o]):o in n?n[o]:o in e?(n[o]=w(o),n[o]):(n[o]=D(o).then(function(){if(!(o in e)){var t=c(o,Error(`Module not defined after script load`));throw i[o]=t,t}return w(o)}).catch(function(e){delete n[o];var t=c(o,e);throw i[o]=t,t}),n[o])}function w(r){var a=e[r],o=E(r),s=y(),c=b(r,s);return Promise.all(a.deps.map(function(e){return e===`exports`?s:e===`require`?o:e===`module`?c:C(e,r).catch(function(t){throw l(r,e,t)})})).then(function(e){var i=a.factory.apply(null,e);return i&&typeof i.then==`function`?i.then(function(e){return t[r]=e===void 0?c.exports:e,delete n[r],t[r]}):(t[r]=i===void 0?c.exports:i,delete n[r],t[r])}).catch(function(e){throw delete n[r],i[r]=e,e})}function T(n){var r=e[n],a=E(n),o=y(),s=b(n,o);try{var u=r.deps.map(function(e){if(e===`exports`)return o;if(e===`require`)return a;if(e===`module`)return s;try{return S(e,n)}catch(t){throw l(n,e,t)}}),d=r.factory.apply(null,u);if(d&&typeof d.then==`function`)throw c(n,Error(`Module resolved asynchronously and cannot be syncRequired`));return t[n]=d===void 0?s.exports:d,t[n]}catch(e){throw i[n]=e,e}}function E(n){var r=function(r,i,a){if(Array.isArray(r))return x(r,i,a,n);var o=f(r,n);return o in t?t[o]:o in e?S(r,n):C(r,n)};return r.resolve=function(e){return f(e,n)},r.toUrl=function(e){return g(e,n)},r.sync=function(e){return S(e,n)},r}function D(e){if(e in r)return r[e];var t=g(e);return document.querySelector(`script[src="`+t+`"]`)?(r[e]=Promise.resolve(),r[e]):(r[e]=new Promise(function(n,i){var a=document.createElement(`script`);a.src=t,a.setAttribute(`data-amd-module-id`,e),a.async=!0,a.onload=function(){n()},a.onerror=function(){delete r[e],i(Error(`Failed to load script: `+t))},document.head.appendChild(a)}),r[e])}x.config=function(e){if(e.baseUrl&&(a=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(s[t]=e.paths[t])},x.modules=e,x.resolved=t,x.errors=i,x.toUrl=g,x.sync=S,o.define=v,o.require=x,o.syncRequire=S})(),o.require.config({baseUrl:`./`,paths:{core:`emailmaker-core.e8a446cd.js`}});var s=import(`./static/esm/28a11e05.js`).then(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return e}),c={source:`legacy-shared`,modulesObject:n,modulesPromise:s,previousPrefetch:t,stack:Error().stack,timestamp:Date.now()};if(a.entries.length>0){var l=a.entries[a.entries.length-1];if(l&&l.modulesObject!==n){var u={message:`[runtime] Duplicate runtime shared initialization detected`,current:c,previous:l,timestamp:Date.now()};a.warnings.push(u)}}if(a.entries.push(c),e.modules=n,r.forEach(function(e){n[e]=s.then(function(t){var r=t[e];return n[e]=r,r})}),typeof e.define==`function`){function t(e){if(!e||typeof e!=`object`&&typeof e!=`function`||e.__esModule)return e;var t=Object.create(null);Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});for(var n=Reflect.ownKeys(e),r=0;r<n.length;r++){var i=n[r];if(i!==`__esModule`){var a=Object.getOwnPropertyDescriptor(e,i);a&&Object.defineProperty(t,i,a)}}return t}var d=e.__diagnostics||={},f=d.runtimeLoads||={entries:[],warnings:[]},p=d.runtimeModules||={byModuleId:Object.create(null),byExportName:Object.create(null),warnings:[]};function r(e,t){var n={message:e,payload:t,timestamp:Date.now()};p.warnings.push(n),f&&f.warnings&&f.warnings.push(n)}function i(e,t,n,i,a){var o=p.byModuleId[e];o||=p.byModuleId[e]={moduleId:e,exportName:t,records:[],duplicateWarningShown:!1};var s=p.byExportName[t];s||=p.byExportName[t]={exportName:t,moduleIds:[],records:[]},s.moduleIds.indexOf(e)<0&&s.moduleIds.push(e);var c={source:a,originalValue:n,resolvedValue:i,timestamp:Date.now(),stack:Error().stack};return o.records.push(c),s.records.push(c),o.firstResolvedValue?(o.firstResolvedValue!==i&&o.firstOriginalValue!==n&&!o.duplicateWarningShown&&(o.duplicateWarningShown=!0,r(`[runtime] Duplicate runtime module detected`,{moduleId:e,exportName:t,first:{originalValue:o.firstOriginalValue,resolvedValue:o.firstResolvedValue},second:{originalValue:n,resolvedValue:i},records:o.records})),i):(o.firstResolvedValue=i,o.firstOriginalValue=n,i)}e.define(`react`,[],function(){var e=n.React;return e&&typeof e.then==`function`?s.then(function(e){var n=e.React;return i(`react`,`React`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.React;return i(`react`,`React`,n,t(n),`barrel-fallback`)}):i(`react`,`React`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/react`,[],function(){var e=n.React;return e&&typeof e.then==`function`?s.then(function(e){var n=e.React;return i(`@emailmaker/emailmaker/runtime/react`,`React`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.React;return i(`@emailmaker/emailmaker/runtime/react`,`React`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react`,`React`,e,t(e),`modules-cache`)}),e.define(`react-dom`,[],function(){var e=n.ReactDom;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactDom;return i(`react-dom`,`ReactDom`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactDom;return i(`react-dom`,`ReactDom`,n,t(n),`barrel-fallback`)}):i(`react-dom`,`ReactDom`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/react-dom`,[],function(){var e=n.ReactDom;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactDom;return i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactDom;return i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,e,t(e),`modules-cache`)}),e.define(`react-dom/client`,[],function(){var e=n.ReactDomClient;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactDomClient;return i(`react-dom/client`,`ReactDomClient`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactDomClient;return i(`react-dom/client`,`ReactDomClient`,n,t(n),`barrel-fallback`)}):i(`react-dom/client`,`ReactDomClient`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/react-dom/client`,[],function(){var e=n.ReactDomClient;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactDomClient;return i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactDomClient;return i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,e,t(e),`modules-cache`)}),e.define(`react/jsx-runtime`,[],function(){var e=n.ReactJsxRuntime;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactJsxRuntime;return i(`react/jsx-runtime`,`ReactJsxRuntime`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactJsxRuntime;return i(`react/jsx-runtime`,`ReactJsxRuntime`,n,t(n),`barrel-fallback`)}):i(`react/jsx-runtime`,`ReactJsxRuntime`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,[],function(){var e=n.ReactJsxRuntime;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactJsxRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactJsxRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,e,t(e),`modules-cache`)}),e.define(`react/jsx-dev-runtime`,[],function(){var e=n.ReactJsxDevRuntime;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactJsxDevRuntime;return i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactJsxDevRuntime;return i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,t(n),`barrel-fallback`)}):i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,[],function(){var e=n.ReactJsxDevRuntime;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactJsxDevRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactJsxDevRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,e,t(e),`modules-cache`)}),e.define(`prop-types`,[],function(){var e=n.PropTypes;return e&&typeof e.then==`function`?s.then(function(e){var n=e.PropTypes;return i(`prop-types`,`PropTypes`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.PropTypes;return i(`prop-types`,`PropTypes`,n,t(n),`barrel-fallback`)}):i(`prop-types`,`PropTypes`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/prop-types`,[],function(){var e=n.PropTypes;return e&&typeof e.then==`function`?s.then(function(e){var n=e.PropTypes;return i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.PropTypes;return i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,e,t(e),`modules-cache`)}),e.define(`react-router-dom`,[],function(){var e=n.ReactRouterDom;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactRouterDom;return i(`react-router-dom`,`ReactRouterDom`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactRouterDom;return i(`react-router-dom`,`ReactRouterDom`,n,t(n),`barrel-fallback`)}):i(`react-router-dom`,`ReactRouterDom`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/react-router-dom`,[],function(){var e=n.ReactRouterDom;return e&&typeof e.then==`function`?s.then(function(e){var n=e.ReactRouterDom;return i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.ReactRouterDom;return i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,e,t(e),`modules-cache`)}),e.define(`antd`,[],function(){var e=n.Antd;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Antd;return i(`antd`,`Antd`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Antd;return i(`antd`,`Antd`,n,t(n),`barrel-fallback`)}):i(`antd`,`Antd`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/antd`,[],function(){var e=n.Antd;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Antd;return i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Antd;return i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,e,t(e),`modules-cache`)}),e.define(`@ant-design/icons`,[],function(){var e=n.AntDesignIcons;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AntDesignIcons;return i(`@ant-design/icons`,`AntDesignIcons`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AntDesignIcons;return i(`@ant-design/icons`,`AntDesignIcons`,n,t(n),`barrel-fallback`)}):i(`@ant-design/icons`,`AntDesignIcons`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/@ant-design/icons`,[],function(){var e=n.AntDesignIcons;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AntDesignIcons;return i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AntDesignIcons;return i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,e,t(e),`modules-cache`)}),e.define(`@ant-design/cssinjs`,[],function(){var e=n.AntDesignCssinjs;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AntDesignCssinjs;return i(`@ant-design/cssinjs`,`AntDesignCssinjs`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AntDesignCssinjs;return i(`@ant-design/cssinjs`,`AntDesignCssinjs`,n,t(n),`barrel-fallback`)}):i(`@ant-design/cssinjs`,`AntDesignCssinjs`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,[],function(){var e=n.AntDesignCssinjs;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AntDesignCssinjs;return i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AntDesignCssinjs;return i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,e,t(e),`modules-cache`)}),e.define(`@ant-design/pro-layout`,[],function(){var e=n.AntDesignProLayout;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AntDesignProLayout;return i(`@ant-design/pro-layout`,`AntDesignProLayout`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AntDesignProLayout;return i(`@ant-design/pro-layout`,`AntDesignProLayout`,n,t(n),`barrel-fallback`)}):i(`@ant-design/pro-layout`,`AntDesignProLayout`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,[],function(){var e=n.AntDesignProLayout;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AntDesignProLayout;return i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AntDesignProLayout;return i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,e,t(e),`modules-cache`)}),e.define(`classnames`,[],function(){var e=n.Classnames;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Classnames;return i(`classnames`,`Classnames`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Classnames;return i(`classnames`,`Classnames`,n,t(n),`barrel-fallback`)}):i(`classnames`,`Classnames`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/classnames`,[],function(){var e=n.Classnames;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Classnames;return i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Classnames;return i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,e,t(e),`modules-cache`)}),e.define(`dayjs`,[],function(){var e=n.Dayjs;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Dayjs;return i(`dayjs`,`Dayjs`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Dayjs;return i(`dayjs`,`Dayjs`,n,t(n),`barrel-fallback`)}):i(`dayjs`,`Dayjs`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/dayjs`,[],function(){var e=n.Dayjs;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Dayjs;return i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Dayjs;return i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,e,t(e),`modules-cache`)}),e.define(`uuid`,[],function(){var e=n.Uuid;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Uuid;return i(`uuid`,`Uuid`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Uuid;return i(`uuid`,`Uuid`,n,t(n),`barrel-fallback`)}):i(`uuid`,`Uuid`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/uuid`,[],function(){var e=n.Uuid;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Uuid;return i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Uuid;return i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,e,t(e),`modules-cache`)}),e.define(`di`,[],function(){var e=n.Core;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Core;return i(`di`,`Core`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Core;return i(`di`,`Core`,n,t(n),`barrel-fallback`)}):i(`di`,`Core`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime-core`,[],function(){var e=n.Core;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Core;return i(`@emailmaker/emailmaker/runtime-core`,`Core`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Core;return i(`@emailmaker/emailmaker/runtime-core`,`Core`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime-core`,`Core`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/core`,[],function(){var e=n.Core;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Core;return i(`@emailmaker/emailmaker/runtime/core`,`Core`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Core;return i(`@emailmaker/emailmaker/runtime/core`,`Core`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/core`,`Core`,e,t(e),`modules-cache`)}),e.define(`disposable`,[],function(){var e=n.Core;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Core;return i(`disposable`,`Core`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Core;return i(`disposable`,`Core`,n,t(n),`barrel-fallback`)}):i(`disposable`,`Core`,e,t(e),`modules-cache`)}),e.define(`guid`,[],function(){var e=n.Core;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Core;return i(`guid`,`Core`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Core;return i(`guid`,`Core`,n,t(n),`barrel-fallback`)}):i(`guid`,`Core`,e,t(e),`modules-cache`)}),e.define(`errors-runtime`,[],function(){var e=n.Core;return e&&typeof e.then==`function`?s.then(function(e){var n=e.Core;return i(`errors-runtime`,`Core`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.Core;return i(`errors-runtime`,`Core`,n,t(n),`barrel-fallback`)}):i(`errors-runtime`,`Core`,e,t(e),`modules-cache`)}),e.define(`app-core`,[],function(){var e=n.AppCore;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AppCore;return i(`app-core`,`AppCore`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AppCore;return i(`app-core`,`AppCore`,n,t(n),`barrel-fallback`)}):i(`app-core`,`AppCore`,e,t(e),`modules-cache`)}),e.define(`@emailmaker/emailmaker/runtime/app-core`,[],function(){var e=n.AppCore;return e&&typeof e.then==`function`?s.then(function(e){var n=e.AppCore;return i(`@emailmaker/emailmaker/runtime/app-core`,`AppCore`,n,t(n),`barrel-promise`)}):e===void 0?s.then(function(e){var n=e.AppCore;return i(`@emailmaker/emailmaker/runtime/app-core`,`AppCore`,n,t(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/app-core`,`AppCore`,e,t(e),`modules-cache`)})}e.prefetch=function(){return s.then(function(){if(typeof t==`function`)return t()})}})(),(function(e){if(!(!e||typeof e!=`object`)){var t=e.__emailmaker__||={},n=t.__compat||={};n.host=n.host||null,n.packages=n.packages||{},n.warned=n.warned||{},n.normalizeVersion||=function(e){return String(e||``).split(`-`)[0]||`0.0.0`},n.parseVersion||=function(e){var t=n.normalizeVersion(e).split(`.`);return{major:parseInt(t[0]||`0`,10),minor:parseInt(t[1]||`0`,10),patch:parseInt(t[2]||`0`,10)}},n.compareVersions||=function(e,t){var r=n.parseVersion(e),i=n.parseVersion(t);return r.major===i.major?r.minor===i.minor?r.patch-i.patch:r.minor-i.minor:r.major-i.major},n.satisfies||=function(e,t){if(!t||t===`*`||t===`latest`)return!0;var r=n.normalizeVersion(e),i=String(t||``).trim();if(!i)return!0;if(i.charAt(0)===`^`){var a=n.parseVersion(i.slice(1)),o=n.parseVersion(r);return n.compareVersions(r,i.slice(1))<0?!1:a.major>0?o.major===a.major:a.minor>0?o.major===0&&o.minor===a.minor:o.major===0&&o.minor===0&&o.patch===a.patch}return n.normalizeVersion(r)===n.normalizeVersion(i)},n.warnOnce||=function(e,t,r){n.warned[e]||(n.warned[e]=!0)},n.validateAll||=function(){var e=n.host,t=n.packages||{};e&&e.supports&&Object.keys(t).forEach(function(r){var i=t[r],a=e.supports[r];a&&!n.satisfies(i.version,a)&&n.warnOnce(`host:`+r+`:`+i.version+`:`+a,`Host supports a different package version range.`,{packageId:r,packageVersion:i.version,supportedRange:a,hostVersion:e.version})}),Object.keys(t).forEach(function(r){var i=t[r],a=i.requires||{};Object.keys(a).forEach(function(o){var s=a[o],c=o===`host`?e&&e.version:t[o]&&t[o].version;c&&(n.satisfies(c,s)||n.warnOnce(r+`:`+o+`:`+c+`:`+s,`Loaded package is outside the declared compatibility range.`,{packageId:r,packageVersion:i.version,targetId:o,targetVersion:c,requiredRange:s}))})})},n.registerHost||=function(e){n.host=e,n.validateAll()},n.registerPackage||=function(e){n.packages[e.id]=e,n.validateAll()},t.__compat.registerHost({version:`1.0.111-dev.3`,supports:{"extensions-api":`^0.9.0`,"extensions-react":`^0.9.0`,"extensions-sandbox":`^0.9.0`}})}})(typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0);function V(e,t){return{...e,element:t}}function H(){return()=>{}}function U(e){let t=e.element;return!t||typeof t==`string`||typeof document>`u`?H():(w(t,e.config?.styles,t),()=>{T(t)})}function W(e){if(e.initialSpinner===!1||typeof document>`u`)return{options:e,cleanup:H()};let t=e.element;if(!t||typeof t==`string`)return{options:e,cleanup:H()};t.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=O(t,`data-emailmaker`),r=e.handleChunkLoaded;return{options:{...e,handleChunkLoaded:()=>{n(),r?.()}},cleanup:n}}var G=`1.0.111-dev.3`;async function K(e){await h(window.__emailmaker__===void 0?void 0:window.__emailmaker__)}async function q(r){let i=new t.Disposable,a=await e(r.element,i);i.dispose();let o=L(B(V(r,a)));if(a){let e=n.get(a);if(e)try{let t=await e;if(t.getElement()===a)return t.reset(o)}catch{n.get(a)===e&&n.delete(a)}}let s=U(o),c=W(o),u=c.options;await p(),v(window.__emailmaker__===void 0?void 0:window.__emailmaker__);let d=l().then(e=>e.init(u));a&&n.set(a,d);try{let e=await d;return a&&n.set(a,e),e}catch(e){throw s(),c.cleanup(),a&&n.get(a)===d&&n.delete(a),e}}async function J(e){return(await l()).parseAMP(e)}typeof window<`u`&&y(window.__emailmaker__===void 0?void 0:window.__emailmaker__);export{i as errors,a as helpers,q as init,J as parseAMP,r as pluginRegistry,K as preload,G as version};
|