@emailmaker/emailmaker 1.1.49 → 1.1.56
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.686599cb.js → emailmaker-core.80c7793f.js} +6 -6
- package/emailmaker-esm.js +298 -338
- package/emailmaker.js +62 -147
- 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 +1 -236
- 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/100f1a1f.js +3150 -0
- package/static/core/{e19a9688.js → 116ebe97.js} +523 -503
- package/static/core/{3723b7392.js → 17f94ad52.js} +2 -2
- package/static/core/{5a79f04d.js → 270ea1f0.js} +3 -3
- package/static/core/{f903e0b02.js → 3b0afd352.js} +17 -17
- package/static/core/{7b48c5bf.js → 41907e94.js} +543 -518
- package/static/core/{9f0a0813.js → 478adc67.js} +26 -8
- package/static/core/{35b2febf.js → 4de323c6.js} +3 -3
- package/static/core/{51d702ff2.js → 54db7dc92.js} +3 -3
- package/static/core/{97d77f4b.js → 5761661e.js} +5 -5
- package/static/core/{cf9b492f.js → 60b14e0c.js} +27 -27
- package/static/core/{c9f81757.js → 6bc4ff83.js} +10 -10
- package/static/core/{1724d302.js → 6dcd0dc9.js} +179 -173
- package/static/core/{9e5fd9cd.js → 7515f9852.js} +1 -1
- package/static/core/{67b72215.js → 76f8b642.js} +1509 -1520
- 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/8a4486b0.js +761 -0
- package/static/core/{dde3447a.js → 8c887aba.js} +14630 -14560
- package/static/core/{c78634e5.js → 916b241e.js} +706 -704
- package/static/core/{c4f07357.js → 95fcea69.js} +5 -5
- package/static/core/{bfec1c65.js → 99b9545a.js} +9347 -9285
- package/static/core/{b6536443.js → 9be94d262.js} +1 -1
- package/static/core/{d858c4102.js → aa8e5c1c2.js} +3 -3
- package/static/core/{51134c092.js → afd04ca42.js} +4 -4
- package/static/core/{b61ea992.js → b654a72e.js} +6920 -5223
- package/static/core/{c46c4a1e2.js → b6cc5b522.js} +4 -4
- package/static/core/c6089a51.js +466 -0
- package/static/core/{927ea89f2.js → d7506406.js} +1 -1
- package/static/core/{d6b9ee5f2.js → d76199d02.js} +15 -15
- package/static/core/{5cd9928a.js → d89e1015.js} +114 -114
- package/static/core/{b768aab6.js → e57264b8.js} +3 -3
- package/static/core/{f5401fe7.js → fa39fd23.js} +31 -31
- package/static/core/{898acf3a.js → fd0c6ce7.js} +8 -8
- package/static/core/{2638406e.js → ffb0449a.js} +46 -46
- package/static/core/{c79a7344.js → ffd61885.js} +5 -5
- package/static/esm/{1ce2bc32.js → 8b0bebd1.js} +55 -74
- package/static/esm/{c9e541a3.js → aec29e9e.js} +1 -1
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +49 -47
- package/runtime/prop-types/index.js +0 -4
- package/runtime/react-router-dom/index.js +0 -2
- package/static/core/23692b142.js +0 -602
- package/static/core/28d0ee07.js +0 -3097
- package/static/core/2c90e83d.js +0 -467
- package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
- package/static/runtime/prop-types-p_yYKrF7.js +0 -47
- /package/iframe/{iframe-eblock.686599cb.html → iframe-eblock.80c7793f.html} +0 -0
- /package/iframe/{iframe.686599cb.html → iframe.80c7793f.html} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = Object.defineProperty, E = (t, e) => {
|
|
2
2
|
let r = {};
|
|
3
|
-
for (var n in t)
|
|
3
|
+
for (var n in t) g(r, n, {
|
|
4
4
|
get: t[n],
|
|
5
5
|
enumerable: !0
|
|
6
6
|
});
|
|
7
|
-
return e ||
|
|
8
|
-
},
|
|
7
|
+
return e || g(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
8
|
+
}, d = class v {
|
|
9
9
|
_inner;
|
|
10
10
|
_isDisposed = !1;
|
|
11
11
|
constructor(e = []) {
|
|
12
12
|
this._inner = e;
|
|
13
13
|
}
|
|
14
14
|
addDisposable(e) {
|
|
15
|
-
return this._inner.push(e), e instanceof
|
|
15
|
+
return this._inner.push(e), e instanceof v && e.addDispose(() => {
|
|
16
16
|
this.removeDisposable(e);
|
|
17
17
|
}), e;
|
|
18
18
|
}
|
|
@@ -33,10 +33,10 @@ var E = Object.defineProperty, v = (t, e) => {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
function
|
|
36
|
+
function f(t) {
|
|
37
37
|
return `service_container_${t}`;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var D = class h extends d {
|
|
40
40
|
_parent;
|
|
41
41
|
_injectCallbacks = [];
|
|
42
42
|
_injections = /* @__PURE__ */ Object.create(null);
|
|
@@ -55,14 +55,14 @@ var T = class h extends f {
|
|
|
55
55
|
}
|
|
56
56
|
injectFactory(e, r, n) {
|
|
57
57
|
const s = this._injections[e];
|
|
58
|
-
let
|
|
59
|
-
const
|
|
60
|
-
n &&
|
|
58
|
+
let i = typeof s == "function" ? s() : s;
|
|
59
|
+
const o = this._injections[e] = () => (i = r(this, i), i);
|
|
60
|
+
n && o(), this._runCallbacks(e);
|
|
61
61
|
}
|
|
62
62
|
_find(e, r = !0) {
|
|
63
63
|
return this._injections[e] || r && this._parent?._find(e);
|
|
64
64
|
}
|
|
65
|
-
_onInject(e, r, n = new
|
|
65
|
+
_onInject(e, r, n = new d()) {
|
|
66
66
|
return n.addDisposable(this.onInject((s) => {
|
|
67
67
|
e === s && (n.dispose(), r(this.getInstance(s)));
|
|
68
68
|
})), this._parent && n.addDisposable(this._parent._onInject(e, r, n)), this.addDisposable(n), n;
|
|
@@ -82,24 +82,24 @@ var T = class h extends f {
|
|
|
82
82
|
return typeof r == "function" ? Promise.resolve(r()) : new Promise((n) => this._onInject(e, () => n(this.getInstance(e))));
|
|
83
83
|
}
|
|
84
84
|
addService(e, r) {
|
|
85
|
-
const n =
|
|
86
|
-
this.injectFactory(n, (
|
|
87
|
-
const s = new
|
|
85
|
+
const n = f(e);
|
|
86
|
+
this.injectFactory(n, (i, o = []) => o.indexOf(r) < 0 ? [...o, r] : o);
|
|
87
|
+
const s = new d();
|
|
88
88
|
return s.addDispose(() => {
|
|
89
|
-
this.injectFactory(n, (
|
|
89
|
+
this.injectFactory(n, (i, o = []) => o.filter((u) => u !== r));
|
|
90
90
|
}), s;
|
|
91
91
|
}
|
|
92
92
|
addServiceFactory(e, r, n) {
|
|
93
|
-
const s =
|
|
94
|
-
let
|
|
95
|
-
this.injectFactory(s, (u, c = []) => (
|
|
96
|
-
const
|
|
97
|
-
return
|
|
98
|
-
this.injectFactory(s, (u, c = []) =>
|
|
99
|
-
}),
|
|
93
|
+
const s = f(e);
|
|
94
|
+
let i;
|
|
95
|
+
this.injectFactory(s, (u, c = []) => (i = r(u, i), i === void 0 ? c : c.indexOf(i) < 0 ? [...c, i] : c), n);
|
|
96
|
+
const o = new d();
|
|
97
|
+
return o.addDispose(() => {
|
|
98
|
+
this.injectFactory(s, (u, c = []) => i === void 0 ? c : c.filter((T) => T !== i));
|
|
99
|
+
}), o;
|
|
100
100
|
}
|
|
101
101
|
getServices(e) {
|
|
102
|
-
const r =
|
|
102
|
+
const r = f(e);
|
|
103
103
|
return [...this.getInstance(r, !1) || [], ...this._parent?.getServices(e) || []];
|
|
104
104
|
}
|
|
105
105
|
createChild() {
|
|
@@ -115,101 +115,82 @@ var T = class h extends f {
|
|
|
115
115
|
this._injections = /* @__PURE__ */ Object.create(null);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
function
|
|
118
|
+
function p(t) {
|
|
119
119
|
return t.startsWith("__") ? t : `__${t}__`;
|
|
120
120
|
}
|
|
121
121
|
function A(t) {
|
|
122
122
|
if (typeof globalThis > "u") throw new Error("[di] globalThis is required for namespace container access.");
|
|
123
|
-
const e =
|
|
123
|
+
const e = p(t), r = globalThis;
|
|
124
124
|
return r[e] ??= {};
|
|
125
125
|
}
|
|
126
126
|
function C(t) {
|
|
127
127
|
return t != null && typeof t == "object" && typeof t.inject == "function" && typeof t.getInstance == "function";
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (t) return
|
|
131
|
-
return
|
|
129
|
+
function x(t) {
|
|
130
|
+
if (t) return p(t);
|
|
131
|
+
return p("emailmaker".trim());
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
const e = A(
|
|
133
|
+
function y(t) {
|
|
134
|
+
const e = A(x(t));
|
|
135
135
|
if (C(e.container)) return e.container;
|
|
136
|
-
const r = new
|
|
136
|
+
const r = new D(null);
|
|
137
137
|
return e.container = r, r;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
return
|
|
139
|
+
function O(t) {
|
|
140
|
+
return y(t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function m() {
|
|
143
143
|
let t = (/* @__PURE__ */ new Date()).getTime(), e = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
|
|
144
144
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
|
|
145
145
|
let n = Math.random() * 16;
|
|
146
146
|
return t > 0 ? (n = (t + n) % 16 | 0, t = Math.floor(t / 16)) : (n = (e + n) % 16 | 0, e = Math.floor(e / 16)), (r === "x" ? n : n & 3 | 8).toString(16);
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() :
|
|
149
|
+
function N() {
|
|
150
|
+
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : m();
|
|
151
151
|
}
|
|
152
|
-
function a(t =
|
|
152
|
+
function a(t = N()) {
|
|
153
153
|
return t;
|
|
154
154
|
}
|
|
155
155
|
function I() {
|
|
156
156
|
return "esm".trim();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function R(t) {
|
|
159
159
|
if (typeof globalThis > "u") return;
|
|
160
160
|
const e = I(), r = globalThis[t] ?? {};
|
|
161
161
|
globalThis[t] = r;
|
|
162
162
|
const n = r.__diagnostics ??= {}, s = n.diModuleEval ??= {
|
|
163
163
|
evalCount: 0,
|
|
164
|
-
records: []
|
|
165
|
-
duplicateWarned: !1
|
|
164
|
+
records: []
|
|
166
165
|
};
|
|
167
|
-
|
|
166
|
+
s.records.push({
|
|
168
167
|
buildSource: e,
|
|
169
168
|
timestamp: Date.now(),
|
|
170
169
|
stack: (/* @__PURE__ */ new Error()).stack
|
|
171
|
-
}), s.evalCount += 1
|
|
172
|
-
s.duplicateWarned = !0;
|
|
173
|
-
s.evalCount, s.records;
|
|
170
|
+
}), s.evalCount += 1;
|
|
174
171
|
}
|
|
175
|
-
function
|
|
172
|
+
function b() {
|
|
176
173
|
return `__${"emailmaker".trim()}__`;
|
|
177
174
|
}
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
180
|
-
const r = I(), n = globalThis, s = n[e] = n[e] || {},
|
|
181
|
-
entries: [],
|
|
182
|
-
warnings: []
|
|
183
|
-
}, u = {
|
|
175
|
+
function M(t, e) {
|
|
176
|
+
if (R(e), typeof globalThis > "u") return t;
|
|
177
|
+
const r = I(), n = globalThis, s = n[e] = n[e] || {}, i = s.__diagnostics = s.__diagnostics || {}, o = i.dependencyResolver = i.dependencyResolver || { entries: [] }, u = {
|
|
184
178
|
container: t,
|
|
185
179
|
source: "packages/runtime-core/di/index.ts",
|
|
186
180
|
buildSource: r,
|
|
187
181
|
timestamp: Date.now(),
|
|
188
182
|
stack: (/* @__PURE__ */ new Error()).stack
|
|
189
183
|
};
|
|
190
|
-
|
|
191
|
-
const c = i.entries[0];
|
|
192
|
-
if (i.entries.some((d) => d.container !== c.container) && !i.duplicateWarningShown) {
|
|
193
|
-
i.duplicateWarningShown = !0;
|
|
194
|
-
const d = {
|
|
195
|
-
message: "[di] Multiple DependencyResolver instances detected on namespace",
|
|
196
|
-
namespaceKey: e,
|
|
197
|
-
buildSource: r,
|
|
198
|
-
entries: i.entries
|
|
199
|
-
};
|
|
200
|
-
i.warnings.push(d);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return t;
|
|
184
|
+
return o.entries.push(u), t;
|
|
204
185
|
}
|
|
205
186
|
var _;
|
|
206
|
-
function
|
|
187
|
+
function w() {
|
|
207
188
|
if (_) return _;
|
|
208
|
-
const t =
|
|
209
|
-
return _ =
|
|
189
|
+
const t = b();
|
|
190
|
+
return _ = M(y(t), t), _;
|
|
210
191
|
}
|
|
211
192
|
new Proxy({}, { get(t, e, r) {
|
|
212
|
-
const n =
|
|
193
|
+
const n = w(), s = Reflect.get(n, e, r);
|
|
213
194
|
return typeof s == "function" ? s.bind(n) : s;
|
|
214
195
|
} });
|
|
215
196
|
function L(t, e = "BackendError") {
|
|
@@ -388,7 +369,7 @@ var j = class {
|
|
|
388
369
|
return this.target().forContext();
|
|
389
370
|
}
|
|
390
371
|
}, U = "PluginRegistry";
|
|
391
|
-
function F(t =
|
|
372
|
+
function F(t = O()) {
|
|
392
373
|
return t.getOrCreateInstance(U, () => new j());
|
|
393
374
|
}
|
|
394
375
|
var G = new P(() => F());
|
|
@@ -400,7 +381,7 @@ l("SETTINGS_PANEL_EVENT");
|
|
|
400
381
|
l("MODAL_SHOW_EVENT");
|
|
401
382
|
l("MODAL_CLOSE_EVENT");
|
|
402
383
|
l("MODAL_UPDATE_EVENT");
|
|
403
|
-
var oe = /* @__PURE__ */
|
|
384
|
+
var oe = /* @__PURE__ */ E({ FileManagerApiError: () => V }), V = class S extends Error {
|
|
404
385
|
code;
|
|
405
386
|
status;
|
|
406
387
|
details;
|
|
@@ -408,7 +389,7 @@ var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extend
|
|
|
408
389
|
return this.status;
|
|
409
390
|
}
|
|
410
391
|
constructor(e, r, n, s) {
|
|
411
|
-
super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this,
|
|
392
|
+
super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, S);
|
|
412
393
|
}
|
|
413
|
-
}, ae = /* @__PURE__ */
|
|
414
|
-
export {
|
|
394
|
+
}, ae = /* @__PURE__ */ E({ mapHttpStatusToErrorCode: () => L });
|
|
395
|
+
export { d as a, a as i, oe as n, G as r, ae as t };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<title>Two-step flow: design → subject/preheader (headless)</title>
|
|
6
|
-
<script id="plugin-script" type="text/javascript" src="emailmaker.js?
|
|
6
|
+
<script id="plugin-script" type="text/javascript" src="emailmaker.js?80c7793f"></script>
|
|
7
7
|
<style>
|
|
8
8
|
body {
|
|
9
9
|
margin: 0;
|
package/ui-kit/index.js
CHANGED
|
@@ -4910,51 +4910,52 @@ var { Option: Pp } = of, Fp = ({ options: e, position: t, setPosition: n, unit:
|
|
|
4910
4910
|
className: "limits-counter-extra",
|
|
4911
4911
|
children: o
|
|
4912
4912
|
})]
|
|
4913
|
-
}), Lp = "draggable-input-number__handle", $ = t.forwardRef(({ dragspeed: e = 1, prefix: t,
|
|
4914
|
-
let [
|
|
4915
|
-
|
|
4916
|
-
},
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4913
|
+
}), Lp = "draggable-input-number__handle", $ = t.forwardRef(({ dragspeed: e = 1, prefix: t, onChange: n, ...r }, i) => {
|
|
4914
|
+
let [a, s] = f(!1), [l, u] = f(0), [d, p] = f(null), m = r.value !== void 0, [h, g] = f(!1), [_, v] = f(null), [y, b] = f(null), x = h ? _ : r.defaultValue ?? null, S = a && y !== null ? y : m ? r.value ?? null : x, C = o((e) => {
|
|
4915
|
+
m || (g(!0), v(e));
|
|
4916
|
+
}, [m]), w = o((e) => {
|
|
4917
|
+
C(e), n?.(e);
|
|
4918
|
+
}, [C, n]), T = (e) => {
|
|
4919
|
+
e.target.closest?.(`.${Lp}`) && (e.preventDefault(), s(!0), u(e.clientX), p(S));
|
|
4920
|
+
}, E = o(() => {
|
|
4921
|
+
s(!1), b(null);
|
|
4922
|
+
}, []), D = o((t) => {
|
|
4923
|
+
if (a) {
|
|
4924
|
+
let i = t.clientX - l, a = (d || 0) + i * e;
|
|
4925
|
+
a = Math.max(0, Math.round(a)), r.max !== void 0 && (a = Math.min(a, Number(r.max))), r.min !== void 0 && (a = Math.max(a, Number(r.min))), b(a), C(a), n?.(a);
|
|
4920
4926
|
}
|
|
4921
4927
|
}, [
|
|
4922
|
-
|
|
4923
|
-
n
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
e
|
|
4929
|
-
|
|
4930
|
-
c(() => {
|
|
4931
|
-
n.value !== void 0 && n.value !== null ? m(n.value) : n.defaultValue !== void 0 && n.defaultValue !== null ? m(n.defaultValue) : m(null);
|
|
4932
|
-
}, [n.value, n.defaultValue]), c(() => (document.addEventListener("mouseup", g), document.addEventListener("mousemove", _), () => {
|
|
4933
|
-
document.removeEventListener("mouseup", g), document.removeEventListener("mousemove", _);
|
|
4934
|
-
}), [
|
|
4935
|
-
i,
|
|
4936
|
-
s,
|
|
4937
|
-
u,
|
|
4938
|
-
_
|
|
4928
|
+
a,
|
|
4929
|
+
n,
|
|
4930
|
+
r.max,
|
|
4931
|
+
r.min,
|
|
4932
|
+
d,
|
|
4933
|
+
l,
|
|
4934
|
+
e,
|
|
4935
|
+
C
|
|
4939
4936
|
]);
|
|
4940
|
-
|
|
4937
|
+
c(() => (document.addEventListener("mouseup", E), document.addEventListener("mousemove", D), () => {
|
|
4938
|
+
document.removeEventListener("mouseup", E), document.removeEventListener("mousemove", D);
|
|
4939
|
+
}), [E, D]);
|
|
4940
|
+
let ee = t == null ? t : /* @__PURE__ */ F("span", {
|
|
4941
4941
|
role: "none",
|
|
4942
4942
|
className: Lp,
|
|
4943
4943
|
children: t
|
|
4944
4944
|
});
|
|
4945
4945
|
return /* @__PURE__ */ I("div", {
|
|
4946
4946
|
role: "none",
|
|
4947
|
-
onMouseDown:
|
|
4947
|
+
onMouseDown: T,
|
|
4948
4948
|
children: [/* @__PURE__ */ F($d, {
|
|
4949
|
-
...
|
|
4950
|
-
ref:
|
|
4951
|
-
value:
|
|
4952
|
-
|
|
4949
|
+
...r,
|
|
4950
|
+
ref: i,
|
|
4951
|
+
value: S,
|
|
4952
|
+
onChange: w,
|
|
4953
|
+
prefix: ee,
|
|
4953
4954
|
className: "input-draggable"
|
|
4954
|
-
}),
|
|
4955
|
+
}), a && /* @__PURE__ */ F("div", {
|
|
4955
4956
|
role: "none",
|
|
4956
4957
|
className: "draggable-input-number-overlay",
|
|
4957
|
-
onMouseUp:
|
|
4958
|
+
onMouseUp: E
|
|
4958
4959
|
})]
|
|
4959
4960
|
});
|
|
4960
4961
|
}), Rp = (e) => e?.closest(".blocks-app") || (e?.ownerDocument?.body ?? document.body);
|
|
@@ -4971,13 +4972,13 @@ function Bp(e) {
|
|
|
4971
4972
|
}))
|
|
4972
4973
|
}));
|
|
4973
4974
|
}
|
|
4974
|
-
var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFontsData: i, loadGoogleFonts: a, loading: s, getPopupContainer: l = Rp, style:
|
|
4975
|
-
let [
|
|
4976
|
-
safeFonts:
|
|
4977
|
-
googleFonts:
|
|
4978
|
-
sansSerif:
|
|
4979
|
-
serif:
|
|
4980
|
-
}), [
|
|
4975
|
+
var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFontsData: i, loadGoogleFonts: a, loading: s, getPopupContainer: l = Rp, style: p, placement: m = "bottomRight", labels: h, filterOptions: g }) => {
|
|
4976
|
+
let [_, v] = f(), y = d(e), [b, x] = f(null), [S, C] = f(!!a), { __: w } = G(), T = u(() => ({
|
|
4977
|
+
safeFonts: h?.safeFonts ?? w("Safe Fonts"),
|
|
4978
|
+
googleFonts: h?.googleFonts ?? w("Google Fonts"),
|
|
4979
|
+
sansSerif: h?.sansSerif ?? w("Sans Serif"),
|
|
4980
|
+
serif: h?.serif ?? w("Serif")
|
|
4981
|
+
}), [h, w]), E = g?.subsets ?? _p.subsets, D = g?.maxPopularity ?? _p.maxPopularity, ee = r ?? mp, O = i ?? b, k = s ?? S;
|
|
4981
4982
|
c(() => {
|
|
4982
4983
|
if (!a || i) return;
|
|
4983
4984
|
let e = !1;
|
|
@@ -5001,23 +5002,24 @@ var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFonts
|
|
|
5001
5002
|
D
|
|
5002
5003
|
]);
|
|
5003
5004
|
c(() => {
|
|
5004
|
-
|
|
5005
|
+
if (!O) return;
|
|
5006
|
+
let t = e !== y.current;
|
|
5007
|
+
y.current = e, n && t ? e ? e[1] === "Sans Serif" ? v([
|
|
5005
5008
|
yp,
|
|
5006
5009
|
bp,
|
|
5007
5010
|
A.find((t) => t?.family.replace(/\s/g, "") === String(e[2]).replace(/\s/g, ""))?.family ?? "",
|
|
5008
5011
|
String(e[3]).replace(/Italic/g, " Italic")
|
|
5009
|
-
]) : e[1] === "Serif" ?
|
|
5012
|
+
]) : e[1] === "Serif" ? v([
|
|
5010
5013
|
yp,
|
|
5011
5014
|
xp,
|
|
5012
5015
|
j.find((t) => t?.family.replace(/\s/g, "") === String(e[2]).replace(/\s/g, ""))?.family ?? "",
|
|
5013
5016
|
String(e[3]).replace(/Italic/g, " Italic")
|
|
5014
|
-
]) : (e[0] === "Safe Fonts" ||
|
|
5017
|
+
]) : (e[0] === "Safe Fonts" || _ === void 0) && v(e) : v([""]) : !t && _ === void 0 && v(e), !n && (t || _ === void 0) && v(e);
|
|
5015
5018
|
}, [
|
|
5016
5019
|
e,
|
|
5017
5020
|
O,
|
|
5018
5021
|
n,
|
|
5019
|
-
|
|
5020
|
-
g,
|
|
5022
|
+
_,
|
|
5021
5023
|
A,
|
|
5022
5024
|
j
|
|
5023
5025
|
]);
|
|
@@ -5062,8 +5064,8 @@ var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFonts
|
|
|
5062
5064
|
return /* @__PURE__ */ F(Bd, {
|
|
5063
5065
|
allowClear: !1,
|
|
5064
5066
|
showSearch: !0,
|
|
5065
|
-
value:
|
|
5066
|
-
placement:
|
|
5067
|
+
value: _,
|
|
5068
|
+
placement: m,
|
|
5067
5069
|
popupClassName: "control-font-family-dropdown",
|
|
5068
5070
|
options: ne,
|
|
5069
5071
|
getPopupContainer: o((e) => {
|
|
@@ -5071,7 +5073,7 @@ var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFonts
|
|
|
5071
5073
|
return r != null && (r.overflowX === "hidden" || r.overflowX === "clip" || r.overflow === "hidden" || r.overflow === "clip") ? t : n;
|
|
5072
5074
|
}, [l]),
|
|
5073
5075
|
onChange: N,
|
|
5074
|
-
style:
|
|
5076
|
+
style: p
|
|
5075
5077
|
});
|
|
5076
5078
|
};
|
|
5077
5079
|
Vp.displayName = "ControlFontFamily";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { r as t } from "../../static/runtime/rolldown-runtime-Bklm4c_g.js";
|
|
2
|
-
import { t as a } from "../../static/runtime/prop-types-p_yYKrF7.js";
|
|
3
|
-
var e = t(a()), f = e.default && e.default.default ? e.default.default : e.default, { array: p, bigint: n, bool: l, func: s, number: u, object: d, string: y, symbol: i, any: m, arrayOf: c, element: _, elementType: b, instanceOf: O, node: T, objectOf: g, oneOf: h, oneOfType: v, shape: j, exact: x, checkPropTypes: P, resetWarningCache: k, PropTypes: q } = e.default;
|
|
4
|
-
export { q as PropTypes, m as any, p as array, c as arrayOf, n as bigint, l as bool, P as checkPropTypes, f as default, _ as element, b as elementType, x as exact, s as func, O as instanceOf, T as node, u as number, d as object, g as objectOf, h as oneOf, v as oneOfType, k as resetWarningCache, j as shape, y as string, i as symbol };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { $ as a, $t as e, A as s, At as r, B as o, Bt as n, C as u, Ct as i, D as S, Dt as c, E as R, Et as F, F as l, Ft as E, G as d, Gt as h, H as N, Ht as _, I as A, It as y, J as C, Jt as m, K as p, Kt as P, L as U, Lt as v, M as H, Mt as g, N as x, Nt as D, O as b, Ot as k, P as w, Pt as L, Q as B, Qt as M, R as O, Rt as T, S as W, Sn as f, St as I, T as V, Tt as q, U as G, Ut as K, V as j, Vt as z, W as J, Wt as Q, X, Xt as Y, Y as Z, Yt as $, Z as tt, Zt as at, _ as et, _n as st, _t as rt, a as ot, an as nt, at as ut, b as it, bn as St, bt as ct, c as Rt, cn as Ft, ct as lt, d as Et, dn as dt, dt as ht, en as Nt, et as _t, f as At, fn as yt, ft as Ct, g as mt, gn as pt, gt as Pt, h as Ut, hn as vt, ht as Ht, i as gt, in as xt, it as Dt, j as bt, jt as kt, k as wt, kt as Lt, l as Bt, ln as Mt, lt as Ot, m as Tt, mn as Wt, mt as ft, n as It, nn as Vt, nt as qt, o as Gt, on as Kt, ot as jt, p as zt, pn as Jt, pt as Qt, q as Xt, qt as Yt, r as Zt, rn as $t, rt as ta, s as aa, sn as ea, st as sa, t as ra, tn as oa, tt as na, u as ua, un as ia, ut as Sa, v as ca, vn as Ra, vt as Fa, w as la, wt as Ea, x as da, xn as ha, xt as Na, y as _a, yn as Aa, yt as ya, z as Ca, zt as ma } from "../../static/runtime/dom-export-CHgQ7Ws9.js";
|
|
2
|
-
export { da as Await, u as BrowserRouter, b as Form, s as HashRouter, ra as HydratedRouter, H as IDLE_BLOCKER, x as IDLE_FETCHER, w as IDLE_NAVIGATION, l as Link, A as Links, O as MemoryRouter, Ca as Meta, o as NavLink, j as Navigate, it as NavigationType, G as Outlet, J as PrefetchPageLinks, p as Route, C as Router, Z as RouterContextProvider, It as RouterProvider, X as Routes, tt as Scripts, B as ScrollRestoration, Gt as ServerRouter, _t as StaticRouter, na as StaticRouterProvider, W as UNSAFE_AwaitContextProvider, la as UNSAFE_DataRouterContext, V as UNSAFE_DataRouterStateContext, R as UNSAFE_ErrorResponseImpl, S as UNSAFE_FetchersContext, wt as UNSAFE_FrameworkContext, U as UNSAFE_LocationContext, N as UNSAFE_NavigationContext, Zt as UNSAFE_RSCDefaultRootErrorBoundary, d as UNSAFE_RemixErrorBoundary, Xt as UNSAFE_RouteContext, ot as UNSAFE_ServerMode, a as UNSAFE_SingleFetchRedirectSymbol, qt as UNSAFE_ViewTransitionContext, ta as UNSAFE_WithComponentProps, Dt as UNSAFE_WithErrorBoundaryProps, ut as UNSAFE_WithHydrateFallbackProps, jt as UNSAFE_createBrowserHistory, lt as UNSAFE_createClientRoutes, Ot as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ht as UNSAFE_createHashHistory, Qt as UNSAFE_createMemoryHistory, Pt as UNSAFE_createRouter, i as UNSAFE_decodeViaTurboStream, Tt as UNSAFE_getHydrationData, q as UNSAFE_getPatchRoutesOnNavigationFunction, F as UNSAFE_getTurboStreamSingleFetchDataStrategy, c as UNSAFE_hydrationRouteProperties, k as UNSAFE_invariant, r as UNSAFE_mapRouteProperties, ma as UNSAFE_shouldHydrateRouteLoader, Yt as UNSAFE_useFogOFWarDiscovery, pt as UNSAFE_useScrollRestoration, St as UNSAFE_withComponentProps, ha as UNSAFE_withErrorBoundaryProps, f as UNSAFE_withHydrateFallbackProps, sa as createBrowserRouter, Sa as createContext, aa as createCookie, Rt as createCookieSessionStorage, Ct as createHashRouter, ft as createMemoryRouter, Bt as createMemorySessionStorage, Ht as createPath, ua as createRequestHandler, rt as createRoutesFromChildren, Fa as createRoutesFromElements, Et as createRoutesStub, ya as createSearchParams, At as createSession, zt as createSessionStorage, ct as createStaticHandler, Na as createStaticRouter, I as data, Ea as generatePath, Ut as href, mt as isCookie, Lt as isRouteErrorResponse, et as isSession, kt as matchPath, g as matchRoutes, D as parsePath, L as redirect, E as redirectDocument, y as renderMatches, v as replace, T as resolvePath, bt as unstable_HistoryRouter, gt as unstable_RSCStaticRouter, ca as unstable_routeRSCServerRequest, _a as unstable_setDevServerHooks, Ft as unstable_usePrompt, dt as unstable_useRoute, Wt as unstable_useRouterState, n as useActionData, z as useAsyncError, _ as useAsyncValue, K as useBeforeUnload, Q as useBlocker, h as useFetcher, P as useFetchers, m as useFormAction, $ as useHref, Y as useInRouterContext, at as useLinkClickHandler, M as useLoaderData, e as useLocation, Nt as useMatch, oa as useMatches, Vt as useNavigate, $t as useNavigation, xt as useNavigationType, nt as useOutlet, Kt as useOutletContext, ea as useParams, Mt as useResolvedPath, ia as useRevalidator, yt as useRouteError, Jt as useRouteLoaderData, vt as useRoutes, st as useSearchParams, Ra as useSubmit, Aa as useViewTransitionState };
|