email-builder-online 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EditorContext-DlWj3SOK.js → EditorContext-CshOthVX.js} +1 -1
- package/dist/{captureThumbnail-B_uv4YoN.js → captureThumbnail-CsHIP-6e.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +121 -118
- package/dist/{lazyThumbnailGenerator-CTd4SLVr.js → lazyThumbnailGenerator-BTfXeGKJ.js} +2 -2
- package/dist/{seedLocalLibrary-BiPLxvr4.js → seedLocalLibrary-CDzh8PGl.js} +1 -1
- package/dist/standalone.js +1 -1
- package/dist/standalone.mjs +2 -1
- package/package.json +4 -3
- package/dist/rolldown-runtime-Ck3dxwZt.js +0 -38
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { $ as VC, A as D_i, B as x_i, C as N_i, D as F_i, E as Eh, F as I_i, G as B_i, H as j_i, I as U_i, J as W_i, L as $_i, M as km, N as G_i, O as q_i, Q as h7, R as K_i, S as o4, T as Y_i, U as Q_i, V as X_i, W as J_i, X as Z_i, Y as kC, Z as
|
|
3
|
-
import { $ as Sgi, $t as Tgi, A as ygi, At as Ogi, B as vb, Bt as Ah, C as Cgi, Ct as Mgi, D as I4, Di as wgi, Dt as FC, E as mb, Et as IC, F as Rgi, Ft as zgi, G as Fc, Gt as Pgi, H as Hgi, Ht as Od, I as Lgi, Ii as Egi, It as Agi, J as Vgi, Jt as kgi, K as Dgi, Kt as sc, L as xgi, Lt as BC, M as Ngi, Mt as Fgi, N as xm, Nr as TL, Nt as f7, O as Igi, Oi as xi, Ot as Bgi, P as p7, Pt as jC, Q as K5, Qt as g9, R as jgi, Rt as v7, S as Ugi, St as Wgi, T as m7, Tt as
|
|
1
|
+
import { a as AC, i as l, n as i, r as o, t as oe } from "./rolldown-runtime-dA-lZKys.js";
|
|
2
|
+
import { $ as VC, A as D_i, B as x_i, C as N_i, D as F_i, E as Eh, F as I_i, G as B_i, H as j_i, I as U_i, J as W_i, L as $_i, M as km, N as G_i, O as q_i, Q as h7, R as K_i, S as o4, T as Y_i, U as Q_i, V as X_i, W as J_i, X as Z_i, Y as kC, Z as Hq, _ as l4, a as hv, at as egi, b as tgi, c as rgi, ct as pb, d as SL, et as Lq, f as ngi, g as agi, h as Dm, i as igi, it as ogi, j as lgi, k as ugi, l as DC, lt as dgi, m as Eq, n as cgi, nt as xC, o as NC, ot as HHc, p as sgi, q as hgi, r as Aq, rt as u4, s as fgi, st as LHc, t as Vq, tt as kq, u as pgi, ut as vgi, v as mgi, w as bo, x as _gi, y as ggi, z as bgi } from "./captureThumbnail-CsHIP-6e.js";
|
|
3
|
+
import { $ as Sgi, $t as Tgi, A as ygi, At as Ogi, B as vb, Bt as Ah, C as Cgi, Ct as Mgi, D as I4, Di as wgi, Dt as FC, E as mb, Et as IC, F as Rgi, Ft as zgi, G as Fc, Gt as Pgi, H as Hgi, Ht as Od, I as Lgi, Ii as Egi, It as Agi, J as Vgi, Jt as kgi, K as Dgi, Kt as sc, L as xgi, Lt as BC, M as Ngi, Mt as Fgi, N as xm, Nr as TL, Nt as f7, O as Igi, Oi as xi, Ot as Bgi, P as p7, Pt as jC, Q as K5, Qt as g9, R as jgi, Rt as v7, S as Ugi, St as Wgi, T as m7, Tt as Dq, U as $gi, Ur as Ggi, Ut as qgi, V as Kgi, Vi as xq, Vt as Ln, W as Ygi, Wt as Nq, X as Gn, Xt as b9, Y as S9, Yt as Qgi, Z as B4, Zt as Xgi, _ as Jgi, _t as Zgi, a as ebi, at as _b, b as gb, bt as UC, ct as bb, d as tbi, dt as Yf, en as rbi, et as nbi, f as qt, ft as abi, g as ibi, gt as _7, h as obi, ht as lbi, i as ubi, it as yL, j as T9, jt as dbi, k as cbi, kr as sbi, kt as hbi, l as Sb, lt as fbi, m as Xi, mi as h2, mt as Fq, n as Y5, nn as pbi, nt as vbi, o as mbi, ot as Tb, p as yb, pt as _bi, q as WC, qt as gbi, r as bbi, rn as Sbi, rt as Tbi, s as ybi, st as Obi, t as Cbi, tn as Mbi, tt as wbi, u as Rbi, ut as zbi, v as OL, vt as Pbi, w as Hbi, wt as Lbi, x as Ebi, xt as Vh, y as CL, yt as $C, z as Iq, zt as kh } from "./EditorContext-CshOthVX.js";
|
|
4
4
|
import * as H from "react";
|
|
5
|
-
import i1, { Children as Abi, Fragment as w0, cloneElement as R0, createContext as Hu, createElement as Ii, forwardRef as GC, isValidElement as A5, memo as ga, startTransition as
|
|
5
|
+
import i1, { Children as Abi, Fragment as w0, cloneElement as R0, createContext as Hu, createElement as Ii, forwardRef as GC, isValidElement as A5, memo as ga, startTransition as Bq, useCallback as tt, useContext as No, useDebugValue as jq, useEffect as we, useImperativeHandle as Vbi, useLayoutEffect as g7, useMemo as o1, useRef as Ct, useState as ie, useSyncExternalStore as kbi } from "react";
|
|
6
6
|
import { Fragment as Et, jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
7
7
|
import * as Ob from "react-dom";
|
|
8
8
|
import Dbi, { createPortal as qC } from "react-dom";
|
|
9
9
|
import { createRoot as xbi } from "react-dom/client";
|
|
10
|
-
var
|
|
10
|
+
var Uq = Hu({ dragDropManager: void 0 });
|
|
11
11
|
function Ga(e) {
|
|
12
12
|
return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. ";
|
|
13
13
|
}
|
|
@@ -27,12 +27,12 @@ function Nbi(e) {
|
|
|
27
27
|
for (var t = e; Object.getPrototypeOf(t) !== null; ) t = Object.getPrototypeOf(t);
|
|
28
28
|
return Object.getPrototypeOf(e) === t;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Wq(e, t, n) {
|
|
31
31
|
var a;
|
|
32
32
|
if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw new Error(Ga(0));
|
|
33
33
|
if (typeof t == "function" && typeof n > "u" && (n = t, t = void 0), typeof n < "u") {
|
|
34
34
|
if (typeof n != "function") throw new Error(Ga(1));
|
|
35
|
-
return n(
|
|
35
|
+
return n(Wq)(e, t);
|
|
36
36
|
}
|
|
37
37
|
if (typeof e != "function") throw new Error(Ga(2));
|
|
38
38
|
var c = e, s = t, h = [], f = h, p = !1;
|
|
@@ -118,7 +118,7 @@ function Ibi(e, t, n) {
|
|
|
118
118
|
function Bbi(e, t) {
|
|
119
119
|
return e.filter((n) => n !== t);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function $q(e) {
|
|
122
122
|
return typeof e == "object";
|
|
123
123
|
}
|
|
124
124
|
function jbi(e, t) {
|
|
@@ -190,7 +190,7 @@ function qbi(e) {
|
|
|
190
190
|
h1(typeof e == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
|
|
191
191
|
}
|
|
192
192
|
function Kbi(e) {
|
|
193
|
-
h1(
|
|
193
|
+
h1($q(e), "Item must be an object.");
|
|
194
194
|
}
|
|
195
195
|
function Ybi(e, t) {
|
|
196
196
|
let n = null;
|
|
@@ -240,7 +240,7 @@ function eSi(e, t, n, a) {
|
|
|
240
240
|
return tSi(s), typeof s > "u" && (s = t === 0 ? {} : a.getDropResult()), s;
|
|
241
241
|
}
|
|
242
242
|
function tSi(e) {
|
|
243
|
-
h1(typeof e > "u" ||
|
|
243
|
+
h1(typeof e > "u" || $q(e), "Drop result must either be an object or undefined.");
|
|
244
244
|
}
|
|
245
245
|
function rSi(e) {
|
|
246
246
|
const t = e.getTargetIds().filter(e.canDropOnTarget, e);
|
|
@@ -351,7 +351,7 @@ function fSi(e, t) {
|
|
|
351
351
|
y: e.y + t.y
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Gq(e, t) {
|
|
355
355
|
return {
|
|
356
356
|
x: e.x - t.x,
|
|
357
357
|
y: e.y - t.y
|
|
@@ -359,11 +359,11 @@ function qq(e, t) {
|
|
|
359
359
|
}
|
|
360
360
|
function pSi(e) {
|
|
361
361
|
const { clientOffset: t, initialClientOffset: n, initialSourceClientOffset: a } = e;
|
|
362
|
-
return !t || !n || !a ? null :
|
|
362
|
+
return !t || !n || !a ? null : Gq(fSi(t, a), n);
|
|
363
363
|
}
|
|
364
364
|
function vSi(e) {
|
|
365
365
|
const { clientOffset: t, initialClientOffset: n } = e;
|
|
366
|
-
return !t || !n ? null :
|
|
366
|
+
return !t || !n ? null : Gq(t, n);
|
|
367
367
|
}
|
|
368
368
|
var w3 = [], QC = [];
|
|
369
369
|
w3.__IS_NONE__ = !0;
|
|
@@ -463,8 +463,8 @@ var _Si = class {
|
|
|
463
463
|
constructor(e, t) {
|
|
464
464
|
this.store = e, this.registry = t;
|
|
465
465
|
}
|
|
466
|
-
}, zL = typeof global < "u" ? global : self,
|
|
467
|
-
function
|
|
466
|
+
}, zL = typeof global < "u" ? global : self, qq = zL.MutationObserver || zL.WebKitMutationObserver;
|
|
467
|
+
function Kq(e) {
|
|
468
468
|
return function() {
|
|
469
469
|
const n = setTimeout(c, 0), a = setInterval(c, 50);
|
|
470
470
|
function c() {
|
|
@@ -474,12 +474,12 @@ function Yq(e) {
|
|
|
474
474
|
}
|
|
475
475
|
function gSi(e) {
|
|
476
476
|
let t = 1;
|
|
477
|
-
const n = new
|
|
477
|
+
const n = new qq(e), a = document.createTextNode("");
|
|
478
478
|
return n.observe(a, { characterData: !0 }), function() {
|
|
479
479
|
t = -t, a.data = t;
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
var bSi = typeof
|
|
482
|
+
var bSi = typeof qq == "function" ? gSi : Kq, SSi = class {
|
|
483
483
|
enqueueTask(e) {
|
|
484
484
|
const { queue: t, requestFlush: n } = this;
|
|
485
485
|
t.length || (n(), this.flushing = !0), t[t.length] = e;
|
|
@@ -497,7 +497,7 @@ var bSi = typeof Kq == "function" ? gSi : Yq, SSi = class {
|
|
|
497
497
|
e.length = 0, this.index = 0, this.flushing = !1;
|
|
498
498
|
}, this.registerPendingError = (e) => {
|
|
499
499
|
this.pendingErrors.push(e), this.requestErrorThrow();
|
|
500
|
-
}, this.requestFlush = bSi(this.flush), this.requestErrorThrow =
|
|
500
|
+
}, this.requestFlush = bSi(this.flush), this.requestErrorThrow = Kq(() => {
|
|
501
501
|
if (this.pendingErrors.length) throw this.pendingErrors.shift();
|
|
502
502
|
});
|
|
503
503
|
}
|
|
@@ -522,9 +522,9 @@ var bSi = typeof Kq == "function" ? gSi : Yq, SSi = class {
|
|
|
522
522
|
constructor(e) {
|
|
523
523
|
this.onError = e, this.freeTasks = [];
|
|
524
524
|
}
|
|
525
|
-
},
|
|
525
|
+
}, Yq = new SSi(), OSi = new ySi(Yq.registerPendingError);
|
|
526
526
|
function CSi(e) {
|
|
527
|
-
|
|
527
|
+
Yq.enqueueTask(OSi.create(e));
|
|
528
528
|
}
|
|
529
529
|
var XC = "dnd-core/ADD_SOURCE", JC = "dnd-core/ADD_TARGET", ZC = "dnd-core/REMOVE_SOURCE", O7 = "dnd-core/REMOVE_TARGET";
|
|
530
530
|
function MSi(e) {
|
|
@@ -848,7 +848,7 @@ function QSi(e, t = void 0, n = {}, a = !1) {
|
|
|
848
848
|
}
|
|
849
849
|
function XSi(e) {
|
|
850
850
|
const t = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
851
|
-
return
|
|
851
|
+
return Wq(YSi, e && t && t({
|
|
852
852
|
name: "dnd-core",
|
|
853
853
|
instanceId: "dnd-core"
|
|
854
854
|
}));
|
|
@@ -875,12 +875,12 @@ var EL = 0, y9 = /* @__PURE__ */ Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"), e
|
|
|
875
875
|
const [a, c] = tTi(JSi(t, ["children"]));
|
|
876
876
|
return we(() => {
|
|
877
877
|
if (c) {
|
|
878
|
-
const s =
|
|
878
|
+
const s = Qq();
|
|
879
879
|
return ++EL, () => {
|
|
880
880
|
--EL === 0 && (s[y9] = null);
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
|
-
}, []), /* @__PURE__ */ r(
|
|
883
|
+
}, []), /* @__PURE__ */ r(Uq.Provider, {
|
|
884
884
|
value: a,
|
|
885
885
|
children: n
|
|
886
886
|
});
|
|
@@ -888,11 +888,11 @@ var EL = 0, y9 = /* @__PURE__ */ Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"), e
|
|
|
888
888
|
function tTi(e) {
|
|
889
889
|
return "manager" in e ? [{ dragDropManager: e.manager }, !1] : [rTi(e.backend, e.context, e.options, e.debugMode), !e.context];
|
|
890
890
|
}
|
|
891
|
-
function rTi(e, t =
|
|
891
|
+
function rTi(e, t = Qq(), n, a) {
|
|
892
892
|
const c = t;
|
|
893
893
|
return c[y9] || (c[y9] = { dragDropManager: QSi(e, t, n, a) }), c[y9];
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Qq() {
|
|
896
896
|
return typeof global < "u" ? global : window;
|
|
897
897
|
}
|
|
898
898
|
var nTi = /* @__PURE__ */ oe(((e, t) => {
|
|
@@ -920,7 +920,7 @@ var nTi = /* @__PURE__ */ oe(((e, t) => {
|
|
|
920
920
|
return a !== a && c !== c;
|
|
921
921
|
};
|
|
922
922
|
})), Q5 = typeof window < "u" ? g7 : we, aTi = /* @__PURE__ */ AC(nTi(), 1);
|
|
923
|
-
function
|
|
923
|
+
function Xq(e, t, n) {
|
|
924
924
|
const [a, c] = ie(() => t(e)), s = tt(() => {
|
|
925
925
|
const h = t(e);
|
|
926
926
|
(0, aTi.default)(a, h) || (c(h), n && n());
|
|
@@ -932,17 +932,17 @@ function Jq(e, t, n) {
|
|
|
932
932
|
return Q5(s), [a, s];
|
|
933
933
|
}
|
|
934
934
|
function iTi(e, t, n) {
|
|
935
|
-
const [a, c] =
|
|
935
|
+
const [a, c] = Xq(e, t, n);
|
|
936
936
|
return Q5(function() {
|
|
937
937
|
const h = e.getHandlerId();
|
|
938
938
|
if (h != null)
|
|
939
939
|
return e.subscribeToStateChange(c, { handlerIds: [h] });
|
|
940
940
|
}, [e, c]), a;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Jq(e, t, n) {
|
|
943
943
|
return iTi(t, e || (() => ({})), () => n.reconnect());
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Zq(e, t) {
|
|
946
946
|
const n = [...t || []];
|
|
947
947
|
return t == null && typeof e != "function" && n.push(e), o1(() => typeof e == "function" ? e() : e, n);
|
|
948
948
|
}
|
|
@@ -1128,7 +1128,7 @@ function fTi(e) {
|
|
|
1128
1128
|
return hTi(a), pTi(a, n ? (c) => e(c, n) : e);
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function eK(e) {
|
|
1132
1132
|
const t = {};
|
|
1133
1133
|
return Object.keys(e).forEach((n) => {
|
|
1134
1134
|
const a = e[n];
|
|
@@ -1219,7 +1219,7 @@ var vTi = class {
|
|
|
1219
1219
|
this.dragPreviewNode = null, this.dragPreviewRef = null;
|
|
1220
1220
|
}
|
|
1221
1221
|
constructor(e) {
|
|
1222
|
-
this.hooks =
|
|
1222
|
+
this.hooks = eK({
|
|
1223
1223
|
dragSource: (t, n) => {
|
|
1224
1224
|
this.clearDragSource(), this.dragSourceOptions = n || null, Rb(t) ? this.dragSourceRef = t : this.dragSourceNode = t, this.reconnectDragSource();
|
|
1225
1225
|
},
|
|
@@ -1272,13 +1272,13 @@ var vTi = class {
|
|
|
1272
1272
|
this.dropTargetRef = null, this.dropTargetNode = null;
|
|
1273
1273
|
}
|
|
1274
1274
|
constructor(e) {
|
|
1275
|
-
this.hooks =
|
|
1275
|
+
this.hooks = eK({ dropTarget: (t, n) => {
|
|
1276
1276
|
this.clearDropTarget(), this.dropTargetOptions = n, Rb(t) ? this.dropTargetRef = t : this.dropTargetNode = t, this.reconnect();
|
|
1277
1277
|
} }), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = e;
|
|
1278
1278
|
}
|
|
1279
1279
|
};
|
|
1280
1280
|
function Cd() {
|
|
1281
|
-
const { dragDropManager: e } = No(
|
|
1281
|
+
const { dragDropManager: e } = No(Uq);
|
|
1282
1282
|
return h1(e != null, "Expected drag drop context"), e;
|
|
1283
1283
|
}
|
|
1284
1284
|
function _Ti(e, t) {
|
|
@@ -1339,17 +1339,17 @@ function yTi(e, t, n) {
|
|
|
1339
1339
|
]);
|
|
1340
1340
|
}
|
|
1341
1341
|
function Md(e, t) {
|
|
1342
|
-
const n =
|
|
1342
|
+
const n = Zq(e, t);
|
|
1343
1343
|
h1(!n.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
|
|
1344
1344
|
const a = gTi(), c = _Ti(n.options, n.previewOptions);
|
|
1345
1345
|
return yTi(n, a, c), [
|
|
1346
|
-
|
|
1346
|
+
Jq(n.collect, a, c),
|
|
1347
1347
|
oTi(c),
|
|
1348
1348
|
lTi(c)
|
|
1349
1349
|
];
|
|
1350
1350
|
}
|
|
1351
1351
|
function OTi(e) {
|
|
1352
|
-
const t = Cd().getMonitor(), [n, a] =
|
|
1352
|
+
const t = Cd().getMonitor(), [n, a] = Xq(t, e);
|
|
1353
1353
|
return we(() => t.subscribeToOffsetChange(a)), we(() => t.subscribeToStateChange(a)), n;
|
|
1354
1354
|
}
|
|
1355
1355
|
function CTi(e) {
|
|
@@ -1404,10 +1404,10 @@ function HTi(e, t, n) {
|
|
|
1404
1404
|
]);
|
|
1405
1405
|
}
|
|
1406
1406
|
function C7(e, t) {
|
|
1407
|
-
const n =
|
|
1408
|
-
return HTi(n, a, c), [
|
|
1407
|
+
const n = Zq(e, t), a = wTi(), c = MTi(n.options);
|
|
1408
|
+
return HTi(n, a, c), [Jq(n.collect, a, c), CTi(c)];
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function tK(e) {
|
|
1411
1411
|
let t = null;
|
|
1412
1412
|
return () => (t == null && (t = e()), t);
|
|
1413
1413
|
}
|
|
@@ -1475,17 +1475,17 @@ var ATi = class {
|
|
|
1475
1475
|
this.config = e, this.item = {}, this.initializeExposedProperties();
|
|
1476
1476
|
}
|
|
1477
1477
|
}, VL = /* @__PURE__ */ o({
|
|
1478
|
-
FILE: () =>
|
|
1479
|
-
HTML: () =>
|
|
1480
|
-
TEXT: () =>
|
|
1481
|
-
URL: () =>
|
|
1482
|
-
}),
|
|
1478
|
+
FILE: () => rK,
|
|
1479
|
+
HTML: () => iK,
|
|
1480
|
+
TEXT: () => aK,
|
|
1481
|
+
URL: () => nK
|
|
1482
|
+
}), rK = "__NATIVE_FILE__", nK = "__NATIVE_URL__", aK = "__NATIVE_TEXT__", iK = "__NATIVE_HTML__";
|
|
1483
1483
|
function jm(e, t, n) {
|
|
1484
1484
|
const a = t.reduce((c, s) => c || e.getData(s), "");
|
|
1485
1485
|
return a ?? n;
|
|
1486
1486
|
}
|
|
1487
1487
|
var zb = {
|
|
1488
|
-
[
|
|
1488
|
+
[rK]: {
|
|
1489
1489
|
exposeProperties: {
|
|
1490
1490
|
files: (e) => Array.prototype.slice.call(e.files),
|
|
1491
1491
|
items: (e) => e.items,
|
|
@@ -1493,14 +1493,14 @@ var zb = {
|
|
|
1493
1493
|
},
|
|
1494
1494
|
matchesTypes: ["Files"]
|
|
1495
1495
|
},
|
|
1496
|
-
[
|
|
1496
|
+
[iK]: {
|
|
1497
1497
|
exposeProperties: {
|
|
1498
1498
|
html: (e, t) => jm(e, t, ""),
|
|
1499
1499
|
dataTransfer: (e) => e
|
|
1500
1500
|
},
|
|
1501
1501
|
matchesTypes: ["Html", "text/html"]
|
|
1502
1502
|
},
|
|
1503
|
-
[
|
|
1503
|
+
[nK]: {
|
|
1504
1504
|
exposeProperties: {
|
|
1505
1505
|
urls: (e, t) => jm(e, t, "").split(`
|
|
1506
1506
|
`),
|
|
@@ -1508,7 +1508,7 @@ var zb = {
|
|
|
1508
1508
|
},
|
|
1509
1509
|
matchesTypes: ["Url", "text/uri-list"]
|
|
1510
1510
|
},
|
|
1511
|
-
[
|
|
1511
|
+
[aK]: {
|
|
1512
1512
|
exposeProperties: {
|
|
1513
1513
|
text: (e, t) => jm(e, t, ""),
|
|
1514
1514
|
dataTransfer: (e) => e
|
|
@@ -1530,7 +1530,7 @@ function Um(e) {
|
|
|
1530
1530
|
return a?.matchesTypes ? a.matchesTypes.some((c) => t.indexOf(c) > -1) : !1;
|
|
1531
1531
|
})[0] || null;
|
|
1532
1532
|
}
|
|
1533
|
-
var DTi =
|
|
1533
|
+
var DTi = tK(() => /firefox/i.test(navigator.userAgent)), oK = tK(() => !!window.safari), kL = class {
|
|
1534
1534
|
interpolate(e) {
|
|
1535
1535
|
const { xs: t, ys: n, c1s: a, c2s: c, c3s: s } = this;
|
|
1536
1536
|
let h = t.length - 1;
|
|
@@ -1576,7 +1576,7 @@ var DTi = rK(() => /firefox/i.test(navigator.userAgent)), lK = rK(() => !!window
|
|
|
1576
1576
|
this.xs = e, this.ys = t, this.c1s = v, this.c2s = m, this.c3s = _;
|
|
1577
1577
|
}
|
|
1578
1578
|
}, xTi = 1;
|
|
1579
|
-
function
|
|
1579
|
+
function lK(e) {
|
|
1580
1580
|
const t = e.nodeType === xTi ? e : e.parentElement;
|
|
1581
1581
|
if (!t) return null;
|
|
1582
1582
|
const { top: n, left: a } = t.getBoundingClientRect();
|
|
@@ -1597,13 +1597,13 @@ function NTi(e) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
function FTi(e, t, n, a) {
|
|
1599
1599
|
let c = e ? t.width : n, s = e ? t.height : a;
|
|
1600
|
-
return
|
|
1600
|
+
return oK() && e && (s /= window.devicePixelRatio, c /= window.devicePixelRatio), {
|
|
1601
1601
|
dragPreviewWidth: c,
|
|
1602
1602
|
dragPreviewHeight: s
|
|
1603
1603
|
};
|
|
1604
1604
|
}
|
|
1605
1605
|
function ITi(e, t, n, a, c) {
|
|
1606
|
-
const s = NTi(t), h =
|
|
1606
|
+
const s = NTi(t), h = lK(s ? e : t), f = {
|
|
1607
1607
|
x: n.x - h.x,
|
|
1608
1608
|
y: n.y - h.y
|
|
1609
1609
|
}, { offsetWidth: p, offsetHeight: v } = e, { anchorX: m, anchorY: _ } = a, { dragPreviewWidth: g, dragPreviewHeight: b } = FTi(s, t, p, v), S = () => {
|
|
@@ -1616,7 +1616,7 @@ function ITi(e, t, n, a, c) {
|
|
|
1616
1616
|
f.y / v * b,
|
|
1617
1617
|
f.y + b - v
|
|
1618
1618
|
]).interpolate(_);
|
|
1619
|
-
return
|
|
1619
|
+
return oK() && s && (w += (window.devicePixelRatio - 1) * b), w;
|
|
1620
1620
|
}, T = () => new kL([
|
|
1621
1621
|
0,
|
|
1622
1622
|
0.5,
|
|
@@ -1783,7 +1783,7 @@ var UTi = class {
|
|
|
1783
1783
|
constructor(e, t, n) {
|
|
1784
1784
|
this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (a) => {
|
|
1785
1785
|
const c = this.sourceNodes.get(a);
|
|
1786
|
-
return c &&
|
|
1786
|
+
return c && lK(c) || null;
|
|
1787
1787
|
}, this.endDragNativeItem = () => {
|
|
1788
1788
|
this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
|
|
1789
1789
|
}, this.isNodeInDocument = (a) => !!(a && this.document && this.document.body && this.document.body.contains(a)), this.endDragIfSourceWasRemovedFromDOM = () => {
|
|
@@ -1967,7 +1967,7 @@ function Wm(e) {
|
|
|
1967
1967
|
function QTi(e) {
|
|
1968
1968
|
return e.buttons === void 0 || (e.buttons & KTi.Left) === 0;
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function uK(e) {
|
|
1971
1971
|
return !!e.targetTouches;
|
|
1972
1972
|
}
|
|
1973
1973
|
var XTi = 1;
|
|
@@ -1986,7 +1986,7 @@ function ZTi(e, t) {
|
|
|
1986
1986
|
return fv(e.touches[0]);
|
|
1987
1987
|
}
|
|
1988
1988
|
function fv(e, t) {
|
|
1989
|
-
return
|
|
1989
|
+
return uK(e) ? ZTi(e, t) : {
|
|
1990
1990
|
x: e.clientX,
|
|
1991
1991
|
y: e.clientY
|
|
1992
1992
|
};
|
|
@@ -2121,7 +2121,7 @@ var xL = (() => {
|
|
|
2121
2121
|
}, this.handleTopMoveStart = (c) => {
|
|
2122
2122
|
if (!Wm(c)) return;
|
|
2123
2123
|
const s = fv(c);
|
|
2124
|
-
s && (
|
|
2124
|
+
s && (uK(c) && (this.lastTargetTouchFallback = c.targetTouches[0]), this._mouseClientOffset = s), this.waitingForDelay = !1;
|
|
2125
2125
|
}, this.handleTopMoveStartDelay = (c) => {
|
|
2126
2126
|
if (!Wm(c)) return;
|
|
2127
2127
|
const s = c.type === d4.touch.start ? this.options.delayTouchStart : this.options.delayMouseStart;
|
|
@@ -2225,8 +2225,8 @@ var xL = (() => {
|
|
|
2225
2225
|
}, iyi = (e, t, n) => {
|
|
2226
2226
|
const a = pv(e, n);
|
|
2227
2227
|
return a !== void 0 ? a : pv(t, n);
|
|
2228
|
-
},
|
|
2229
|
-
for (const a in t) a !== "__proto__" && a !== "constructor" && (Object.prototype.hasOwnProperty.call(e, a) ? t1(e[a]) || e[a] instanceof String || t1(t[a]) || t[a] instanceof String ? n && (e[a] = t[a]) :
|
|
2228
|
+
}, dK = (e, t, n) => {
|
|
2229
|
+
for (const a in t) a !== "__proto__" && a !== "constructor" && (Object.prototype.hasOwnProperty.call(e, a) ? t1(e[a]) || e[a] instanceof String || t1(t[a]) || t[a] instanceof String ? n && (e[a] = t[a]) : dK(e[a], t[a], n) : e[a] = t[a]);
|
|
2230
2230
|
return e;
|
|
2231
2231
|
}, f2 = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), oyi = {
|
|
2232
2232
|
"&": "&",
|
|
@@ -2399,7 +2399,7 @@ var xL = (() => {
|
|
|
2399
2399
|
let h = [e, t];
|
|
2400
2400
|
e.includes(".") && (h = e.split("."), a = n, n = t, t = h[1]), this.addNamespaces(t);
|
|
2401
2401
|
let f = pv(this.data, h) || {};
|
|
2402
|
-
s.skipCopy || (n = JSON.parse(JSON.stringify(n))), a ?
|
|
2402
|
+
s.skipCopy || (n = JSON.parse(JSON.stringify(n))), a ? dK(f, n, c) : f = {
|
|
2403
2403
|
...f,
|
|
2404
2404
|
...n
|
|
2405
2405
|
}, BL(this.data, h, f), s.silent || this.emit("added", e, t, n);
|
|
@@ -2423,7 +2423,7 @@ var xL = (() => {
|
|
|
2423
2423
|
toJSON() {
|
|
2424
2424
|
return this.data;
|
|
2425
2425
|
}
|
|
2426
|
-
},
|
|
2426
|
+
}, cK = {
|
|
2427
2427
|
processors: {},
|
|
2428
2428
|
addPostProcessor(e) {
|
|
2429
2429
|
this.processors[e.name] = e;
|
|
@@ -2433,14 +2433,14 @@ var xL = (() => {
|
|
|
2433
2433
|
t = this.processors[s]?.process(t, n, a, c) ?? t;
|
|
2434
2434
|
}), t;
|
|
2435
2435
|
}
|
|
2436
|
-
},
|
|
2436
|
+
}, sK = /* @__PURE__ */ Symbol("i18next/PATH_KEY");
|
|
2437
2437
|
function pyi() {
|
|
2438
2438
|
const e = [], t = /* @__PURE__ */ Object.create(null);
|
|
2439
2439
|
let n;
|
|
2440
|
-
return t.get = (a, c) => (n?.revoke?.(), c ===
|
|
2440
|
+
return t.get = (a, c) => (n?.revoke?.(), c === sK ? e : (e.push(c), n = Proxy.revocable(a, t), n.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t).proxy;
|
|
2441
2441
|
}
|
|
2442
2442
|
function V5(e, t) {
|
|
2443
|
-
const { [
|
|
2443
|
+
const { [sK]: n } = e(pyi()), a = t?.keySeparator ?? ".", c = t?.nsSeparator ?? ":", s = t?.enableSelector === "strict";
|
|
2444
2444
|
if (n.length > 1 && c) {
|
|
2445
2445
|
const h = t?.ns, f = s ? Array.isArray(h) ? h : h ? [h] : null : Array.isArray(h) ? h : null;
|
|
2446
2446
|
if (f && (s ? f : f.length > 1 ? f.slice(1) : []).includes(n[0]))
|
|
@@ -2448,7 +2448,7 @@ function V5(e, t) {
|
|
|
2448
2448
|
}
|
|
2449
2449
|
return n.join(a);
|
|
2450
2450
|
}
|
|
2451
|
-
var $m = (e) => !t1(e) && typeof e != "boolean" && typeof e != "number", UL = class
|
|
2451
|
+
var $m = (e) => !t1(e) && typeof e != "boolean" && typeof e != "number", UL = class hK extends M7 {
|
|
2452
2452
|
constructor(t, n = {}) {
|
|
2453
2453
|
super(), ryi([
|
|
2454
2454
|
"resourceStore",
|
|
@@ -2527,7 +2527,7 @@ var $m = (e) => !t1(e) && typeof e != "boolean" && typeof e != "number", UL = cl
|
|
|
2527
2527
|
"[object Number]",
|
|
2528
2528
|
"[object Function]",
|
|
2529
2529
|
"[object RegExp]"
|
|
2530
|
-
], M = c.joinArrays !== void 0 ? c.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, w = c.count !== void 0 && !t1(c.count), z =
|
|
2530
|
+
], M = c.joinArrays !== void 0 ? c.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, w = c.count !== void 0 && !t1(c.count), z = hK.hasDefaultValue(c), L = w ? this.pluralResolver.getSuffix(_, c.count, c) : "", A = c.ordinal && w ? this.pluralResolver.getSuffix(_, c.count, { ordinal: !1 }) : "", V = w && !c.ordinal && c.count === 0, k = V && c[`defaultValue${this.options.pluralSeparator}zero`] || c[`defaultValue${L}`] || c[`defaultValue${A}`] || c.defaultValue;
|
|
2531
2531
|
let D = S;
|
|
2532
2532
|
R && !S && z && (D = k);
|
|
2533
2533
|
const N = $m(D), E = Object.prototype.toString.apply(D);
|
|
@@ -2620,7 +2620,7 @@ var $m = (e) => !t1(e) && typeof e != "boolean" && typeof e != "number", UL = cl
|
|
|
2620
2620
|
!a.lng && c && c.res && (a.lng = this.language || c.usedLng), a.nest !== !1 && (t = this.interpolator.nest(t, (..._) => s?.[0] === _[0] && !a.context ? (this.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${n[0]}`), null) : this.translate(..._, n), a)), a.interpolation && this.interpolator.reset();
|
|
2621
2621
|
}
|
|
2622
2622
|
const h = a.postProcess || this.options.postProcess, f = t1(h) ? [h] : h;
|
|
2623
|
-
return t != null && f?.length && a.applyPostProcessor !== !1 && (t =
|
|
2623
|
+
return t != null && f?.length && a.applyPostProcessor !== !1 && (t = cK.handle(f, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
2624
2624
|
i18nResolved: {
|
|
2625
2625
|
...c,
|
|
2626
2626
|
usedParams: this.getUsedParamsDetails(a)
|
|
@@ -3284,7 +3284,7 @@ var $m = (e) => !t1(e) && typeof e != "boolean" && typeof e != "number", UL = cl
|
|
|
3284
3284
|
use(t) {
|
|
3285
3285
|
if (!t) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3286
3286
|
if (!t.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3287
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
3287
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && cK.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
3288
3288
|
}
|
|
3289
3289
|
setResolvedLanguage(t) {
|
|
3290
3290
|
if (!(!t || !this.languages) && !["cimode", "dev"].includes(t)) {
|
|
@@ -3536,7 +3536,7 @@ function XL(e) {
|
|
|
3536
3536
|
return t;
|
|
3537
3537
|
}
|
|
3538
3538
|
var Ryi = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, zyi = /^\s*$/, Pyi = /* @__PURE__ */ Object.create(null);
|
|
3539
|
-
function
|
|
3539
|
+
function fK(e, t) {
|
|
3540
3540
|
switch (t.type) {
|
|
3541
3541
|
case "text":
|
|
3542
3542
|
return e + t.content;
|
|
@@ -3545,7 +3545,7 @@ function pK(e, t) {
|
|
|
3545
3545
|
var a = [];
|
|
3546
3546
|
for (var c in n) a.push(c + '="' + n[c] + '"');
|
|
3547
3547
|
return a.length ? " " + a.join(" ") : "";
|
|
3548
|
-
})(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(
|
|
3548
|
+
})(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(fK, "") + "</" + t.name + ">";
|
|
3549
3549
|
case "comment":
|
|
3550
3550
|
return e + "<!--" + t.comment + "-->";
|
|
3551
3551
|
}
|
|
@@ -3586,7 +3586,7 @@ var Hyi = {
|
|
|
3586
3586
|
},
|
|
3587
3587
|
stringify: function(e) {
|
|
3588
3588
|
return e.reduce(function(t, n) {
|
|
3589
|
-
return t +
|
|
3589
|
+
return t + fK("", n);
|
|
3590
3590
|
}, "");
|
|
3591
3591
|
}
|
|
3592
3592
|
}, M9 = (e, t, n, a) => {
|
|
@@ -3598,7 +3598,7 @@ var Hyi = {
|
|
|
3598
3598
|
la(c[0]) && (c[0] = `react-i18next:: ${c[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...c) : console?.warn && console.warn(...c);
|
|
3599
3599
|
}, JL = {}, Ic = (e, t, n, a) => {
|
|
3600
3600
|
la(n) && JL[n] || (la(n) && (JL[n] = /* @__PURE__ */ new Date()), M9(e, t, n, a));
|
|
3601
|
-
},
|
|
3601
|
+
}, pK = (e, t) => () => {
|
|
3602
3602
|
if (e.isInitialized) t();
|
|
3603
3603
|
else {
|
|
3604
3604
|
const n = () => {
|
|
@@ -3609,12 +3609,12 @@ var Hyi = {
|
|
|
3609
3609
|
e.on("initialized", n);
|
|
3610
3610
|
}
|
|
3611
3611
|
}, Lb = (e, t, n) => {
|
|
3612
|
-
e.loadNamespaces(t,
|
|
3612
|
+
e.loadNamespaces(t, pK(e, n));
|
|
3613
3613
|
}, ZL = (e, t, n, a) => {
|
|
3614
3614
|
if (la(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return Lb(e, n, a);
|
|
3615
3615
|
n.forEach((c) => {
|
|
3616
3616
|
e.options.ns.indexOf(c) < 0 && e.options.ns.push(c);
|
|
3617
|
-
}), e.loadLanguages(t,
|
|
3617
|
+
}), e.loadLanguages(t, pK(e, a));
|
|
3618
3618
|
}, Lyi = (e, t, n = {}) => !t.languages || !t.languages.length ? (Ic(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
|
|
3619
3619
|
lng: n.lng,
|
|
3620
3620
|
precheck: (a, c) => {
|
|
@@ -3641,7 +3641,7 @@ var Hyi = {
|
|
|
3641
3641
|
"…": "…",
|
|
3642
3642
|
"/": "/",
|
|
3643
3643
|
"/": "/"
|
|
3644
|
-
}, Vyi = (e) => Ayi[e],
|
|
3644
|
+
}, Vyi = (e) => Ayi[e], vK = (e) => e.replace(Eyi, Vyi), Eb = {
|
|
3645
3645
|
bindI18n: "languageChanged",
|
|
3646
3646
|
bindI18nStore: "",
|
|
3647
3647
|
transEmptyNodeValue: "",
|
|
@@ -3654,16 +3654,16 @@ var Hyi = {
|
|
|
3654
3654
|
"p"
|
|
3655
3655
|
],
|
|
3656
3656
|
useSuspense: !0,
|
|
3657
|
-
unescape:
|
|
3657
|
+
unescape: vK,
|
|
3658
3658
|
transDefaultProps: void 0
|
|
3659
3659
|
}, kyi = (e = {}) => {
|
|
3660
3660
|
Eb = {
|
|
3661
3661
|
...Eb,
|
|
3662
3662
|
...e
|
|
3663
3663
|
};
|
|
3664
|
-
}, eM = () => Eb,
|
|
3665
|
-
|
|
3666
|
-
}, tM = () =>
|
|
3664
|
+
}, eM = () => Eb, mK, Dyi = (e) => {
|
|
3665
|
+
mK = e;
|
|
3666
|
+
}, tM = () => mK, w9 = (e, t) => {
|
|
3667
3667
|
if (!e) return !1;
|
|
3668
3668
|
const n = e.props?.children ?? e.children;
|
|
3669
3669
|
return t ? n.length > 0 : !!n;
|
|
@@ -3797,7 +3797,7 @@ var Hyi = {
|
|
|
3797
3797
|
const F = { ...k.attrs };
|
|
3798
3798
|
h && Object.keys(F).forEach((Q) => {
|
|
3799
3799
|
const ne = F[Q];
|
|
3800
|
-
la(ne) && (F[Q] =
|
|
3800
|
+
la(ne) && (F[Q] = vK(ne));
|
|
3801
3801
|
});
|
|
3802
3802
|
const I = Object.keys(F).length !== 0 ? Nyi({ props: F }, E) : E, B = A5(I), j = B && w9(k, !0) && !k.voidElement, U = p && I2(I) && I.dummy && !B, W = I2(t) && Object.hasOwnProperty.call(t, k.name);
|
|
3803
3803
|
if (la(I)) {
|
|
@@ -3850,17 +3850,17 @@ var Hyi = {
|
|
|
3850
3850
|
children: e || []
|
|
3851
3851
|
}], g, iu(e || []));
|
|
3852
3852
|
return j4(O[0]);
|
|
3853
|
-
},
|
|
3853
|
+
}, _K = (e, t, n) => {
|
|
3854
3854
|
const a = e.key || t, c = R0(e, { key: a });
|
|
3855
3855
|
if (!c.props || !c.props.children || n.indexOf(`${t}/>`) < 0 && n.indexOf(`${t} />`) < 0) return c;
|
|
3856
3856
|
function s() {
|
|
3857
3857
|
return Ii(w0, null, c);
|
|
3858
3858
|
}
|
|
3859
3859
|
return Ii(s, { key: a });
|
|
3860
|
-
}, jyi = (e, t) => e.map((n, a) =>
|
|
3860
|
+
}, jyi = (e, t) => e.map((n, a) => _K(n, a, t)), Uyi = (e, t) => {
|
|
3861
3861
|
const n = {};
|
|
3862
3862
|
return Object.keys(e).forEach((a) => {
|
|
3863
|
-
Object.assign(n, { [a]:
|
|
3863
|
+
Object.assign(n, { [a]: _K(e[a], a, t) });
|
|
3864
3864
|
}), n;
|
|
3865
3865
|
}, Wyi = (e, t, n, a) => e ? Array.isArray(e) ? jyi(e, t) : I2(e) ? Uyi(e, t) : (Ic(n, "TRANS_INVALID_COMPONENTS", '<Trans /> "components" prop expects an object or array', { i18nKey: a }), null) : null, $yi = (e) => !I2(e) || Array.isArray(e) ? !1 : Object.keys(e).reduce((t, n) => t && Number.isNaN(Number.parseFloat(n)), !0);
|
|
3866
3866
|
function Gyi({ children: e, count: t, parent: n, i18nKey: a, context: c, tOptions: s = {}, values: h, defaults: f, components: p, ns: v, i18n: m, t: _, shouldUnescape: g, ...b }) {
|
|
@@ -3928,7 +3928,7 @@ var qyi = {
|
|
|
3928
3928
|
return Object.keys(this.usedNamespaces);
|
|
3929
3929
|
}
|
|
3930
3930
|
};
|
|
3931
|
-
function
|
|
3931
|
+
function gK({ children: e, count: t, parent: n, i18nKey: a, context: c, tOptions: s = {}, values: h, defaults: f, components: p, ns: v, i18n: m, t: _, shouldUnescape: g, ...b }) {
|
|
3932
3932
|
const { i18n: S, defaultNS: T } = No(rM) || {}, y = m || S || tM(), O = _ || y?.t.bind(y);
|
|
3933
3933
|
return Gyi({
|
|
3934
3934
|
children: e,
|
|
@@ -3947,8 +3947,10 @@ function bK({ children: e, count: t, parent: n, i18nKey: a, context: c, tOptions
|
|
|
3947
3947
|
...b
|
|
3948
3948
|
});
|
|
3949
3949
|
}
|
|
3950
|
-
var
|
|
3951
|
-
|
|
3950
|
+
var bK = /* @__PURE__ */ oe(((e, t) => {
|
|
3951
|
+
t.exports = { ...H };
|
|
3952
|
+
})), Yyi = /* @__PURE__ */ oe(((e) => {
|
|
3953
|
+
var t = bK();
|
|
3952
3954
|
function n(g, b) {
|
|
3953
3955
|
return g === b && (g !== 0 || 1 / g === 1 / b) || g !== g && b !== b;
|
|
3954
3956
|
}
|
|
@@ -4108,7 +4110,7 @@ var TK = xi({
|
|
|
4108
4110
|
canvasColor: u4,
|
|
4109
4111
|
textColor: u4,
|
|
4110
4112
|
fontFamily: egi,
|
|
4111
|
-
childrenIds: sbi(
|
|
4113
|
+
childrenIds: sbi(xq()).optional().nullable(),
|
|
4112
4114
|
linkGlobal: xi({
|
|
4113
4115
|
linkColor: u4,
|
|
4114
4116
|
underline: TL()
|
|
@@ -4122,11 +4124,11 @@ var TK = xi({
|
|
|
4122
4124
|
}),
|
|
4123
4125
|
xi({
|
|
4124
4126
|
type: h2("Container"),
|
|
4125
|
-
data:
|
|
4127
|
+
data: Lq
|
|
4126
4128
|
}),
|
|
4127
4129
|
xi({
|
|
4128
4130
|
type: h2("ColumnsContainer"),
|
|
4129
|
-
data:
|
|
4131
|
+
data: kq
|
|
4130
4132
|
}),
|
|
4131
4133
|
xi({
|
|
4132
4134
|
type: h2("Button"),
|
|
@@ -4138,7 +4140,7 @@ var TK = xi({
|
|
|
4138
4140
|
}),
|
|
4139
4141
|
xi({
|
|
4140
4142
|
type: h2("NotionText"),
|
|
4141
|
-
data:
|
|
4143
|
+
data: Hq
|
|
4142
4144
|
}),
|
|
4143
4145
|
xi({
|
|
4144
4146
|
type: h2("Divider"),
|
|
@@ -4152,7 +4154,7 @@ var TK = xi({
|
|
|
4152
4154
|
type: h2("SocialMedia"),
|
|
4153
4155
|
data: Z_i
|
|
4154
4156
|
})
|
|
4155
|
-
]), tOi = Egi(
|
|
4157
|
+
]), tOi = Egi(xq(), eOi), XHc = [
|
|
4156
4158
|
"EmailLayout",
|
|
4157
4159
|
"Container",
|
|
4158
4160
|
"ColumnsContainer",
|
|
@@ -137167,7 +137169,7 @@ function Uu(e = {}) {
|
|
|
137167
137169
|
});
|
|
137168
137170
|
}
|
|
137169
137171
|
var nic = /* @__PURE__ */ oe(((e) => {
|
|
137170
|
-
var t =
|
|
137172
|
+
var t = bK(), n = SK();
|
|
137171
137173
|
function a(m, _) {
|
|
137172
137174
|
return m === _ && (m !== 0 || 1 / m === 1 / _) || m !== m && _ !== _;
|
|
137173
137175
|
}
|
|
@@ -137337,7 +137339,7 @@ var dic = class extends i1.Component {
|
|
|
137337
137339
|
function $4r(e) {
|
|
137338
137340
|
var t;
|
|
137339
137341
|
const [n] = ie(() => new hic(e.editor)), a = (0, iic.useSyncExternalStoreWithSelector)(n.subscribe, n.getSnapshot, n.getServerSnapshot, e.selector, (t = e.equalityFn) != null ? t : ric);
|
|
137340
|
-
return sic(() => n.watch(e.editor), [e.editor, n]),
|
|
137342
|
+
return sic(() => n.watch(e.editor), [e.editor, n]), jq(a), a;
|
|
137341
137343
|
}
|
|
137342
137344
|
var FU = !1, G4r = typeof window > "u", fic = G4r || !!(typeof window < "u" && window.next), pic = class q4r {
|
|
137343
137345
|
constructor(t) {
|
|
@@ -137474,7 +137476,7 @@ function vic(e = {}, t = []) {
|
|
|
137474
137476
|
const n = Ct(e);
|
|
137475
137477
|
n.current = e;
|
|
137476
137478
|
const [a] = ie(() => new pic(n)), c = (0, nM.useSyncExternalStore)(a.subscribe, a.getEditor, a.getServerSnapshot);
|
|
137477
|
-
return
|
|
137479
|
+
return jq(c), we(a.onRender(t)), $4r({
|
|
137478
137480
|
editor: c,
|
|
137479
137481
|
selector: ({ transactionNumber: s }) => e.shouldRerenderOnTransaction === !1 || e.shouldRerenderOnTransaction === void 0 ? null : e.immediatelyRender && s === 0 ? 0 : s + 1
|
|
137480
137482
|
}), c;
|
|
@@ -147711,7 +147713,7 @@ function v5c({ open: e, rootBlockId: t, onClose: n }) {
|
|
|
147711
147713
|
const B = {};
|
|
147712
147714
|
for (const U of M) B[U.id] = U.block;
|
|
147713
147715
|
const j = qt.getState().document.root?.data ?? {};
|
|
147714
|
-
D = await
|
|
147716
|
+
D = await Vq(Aq(B, t, {
|
|
147715
147717
|
backdropColor: j.backdropColor,
|
|
147716
147718
|
canvasColor: j.canvasColor
|
|
147717
147719
|
})), D && console.info("[SaveSubtreeDialog] captured thumbnail", `${(D.size / 1024).toFixed(1)} KB`, D.type || "(unknown type)");
|
|
@@ -147876,7 +147878,7 @@ function _5c({ open: e, onClose: t }) {
|
|
|
147876
147878
|
try {
|
|
147877
147879
|
const V = {};
|
|
147878
147880
|
for (const k of T) V[k.id] = k.block;
|
|
147879
|
-
O = await
|
|
147881
|
+
O = await Vq(Aq(V, "root")), O && console.info("[SaveTemplateDialog] captured thumbnail", `${(O.size / 1024).toFixed(1)} KB`, O.type || "(unknown type)");
|
|
147880
147882
|
} catch (V) {
|
|
147881
147883
|
console.warn("[SaveTemplateDialog] thumbnail capture failed:", V);
|
|
147882
147884
|
}
|
|
@@ -149321,7 +149323,7 @@ function adc() {
|
|
|
149321
149323
|
A.current = ne, S(null), M(!1), w("desktop");
|
|
149322
149324
|
let K = !1;
|
|
149323
149325
|
edc(n).then((q) => {
|
|
149324
|
-
A.current === ne && (K = !0,
|
|
149326
|
+
A.current === ne && (K = !0, Bq(() => {
|
|
149325
149327
|
p(q.doc), m(q.rootBlockId);
|
|
149326
149328
|
}), g(!1));
|
|
149327
149329
|
}).catch((q) => {
|
|
@@ -150005,7 +150007,7 @@ function vdc({ refreshKey: e, search: t, sort: n, onRename: a, onChange: c }) {
|
|
|
150005
150007
|
})] });
|
|
150006
150008
|
}
|
|
150007
150009
|
function mdc() {
|
|
150008
|
-
const e = UC(), t = e ? 380 : 64, n = Vh(), a = Ah(), c =
|
|
150010
|
+
const e = UC(), t = e ? 380 : 64, n = Vh(), a = Ah(), c = Nq(), s = Wgi(), { t: h } = nt("inspector"), f = (0, P.useTheme)(), p = o1(() => hdc.filter((D) => !(!c && D.key === "templates")), [c]), [v, m] = ie(0), [_, g] = ie(0), [b, S] = ie(null), [T, y] = ie(""), [O, M] = ie("updatedDesc"), [R, w] = ie(null), [z, L] = ie(() => p[0]?.key ?? "blocks");
|
|
150009
150011
|
we(() => {
|
|
150010
150012
|
p.some((D) => D.key === z) || L(p[0]?.key ?? "blocks");
|
|
150011
150013
|
}, [p, z]), we(() => {
|
|
@@ -150408,7 +150410,7 @@ function au({ childrenIds: e, onChange: t, parentId: n, position: a, isNotClient
|
|
|
150408
150410
|
})
|
|
150409
150411
|
}) : /* @__PURE__ */ x(Et, { children: [e.map((v) => /* @__PURE__ */ r(w0, { children: /* @__PURE__ */ r(Y6, { id: v }) }, v)), p] });
|
|
150410
150412
|
}
|
|
150411
|
-
var MP =
|
|
150413
|
+
var MP = kq, bdc = [
|
|
150412
150414
|
{ childrenIds: [] },
|
|
150413
150415
|
{ childrenIds: [] },
|
|
150414
150416
|
{ childrenIds: [] }
|
|
@@ -150516,7 +150518,7 @@ function ydc({ style: e, props: t, blockId: n, isNotClient: a }) {
|
|
|
150516
150518
|
}) })
|
|
150517
150519
|
});
|
|
150518
150520
|
}
|
|
150519
|
-
var C0r =
|
|
150521
|
+
var C0r = Lq;
|
|
150520
150522
|
function Odc(e) {
|
|
150521
150523
|
const t = e.childrenIds ?? [], n = Z8(), a = Ln();
|
|
150522
150524
|
return /* @__PURE__ */ r("div", {
|
|
@@ -150594,7 +150596,7 @@ var M0r = TK, Cdc = (e) => (t) => ({
|
|
|
150594
150596
|
justifyContent: "center"
|
|
150595
150597
|
}), oc = null;
|
|
150596
150598
|
function Mdc({ blockId: e }) {
|
|
150597
|
-
const t =
|
|
150599
|
+
const t = Fq(e), { t: n } = nt("inspector"), { t: a } = nt(), c = Dq(), s = Mgi(), h = c && s !== "local", [f, p] = ie(!1), v = o1(() => {
|
|
150598
150600
|
if (!t || t.type === "EmailLayout") return !1;
|
|
150599
150601
|
try {
|
|
150600
150602
|
const M = qt.getState().document;
|
|
@@ -151171,7 +151173,7 @@ var Dl = ga(Edc, (e, t) => e.children === t.children && e.canEdit === t.canEdit
|
|
|
151171
151173
|
});
|
|
151172
151174
|
}, kdc = ga(_gi), Ddc = ga(ydc), xdc = ga(Sdc), Ndc = ga(mgi), Fdc = ga(s5c), Idc = ga(ngi), Bdc = ga(ggi), w0r = dgi({
|
|
151173
151175
|
SocialMedia: {
|
|
151174
|
-
schema:
|
|
151176
|
+
schema: Eq,
|
|
151175
151177
|
Component: (e) => /* @__PURE__ */ r(Dl, {
|
|
151176
151178
|
isNotClient: e.isNotClient,
|
|
151177
151179
|
children: /* @__PURE__ */ r(Vdc, { ...e })
|
|
@@ -151215,7 +151217,7 @@ var Dl = ga(Edc, (e, t) => e.children === t.children && e.canEdit === t.canEdit
|
|
|
151215
151217
|
}
|
|
151216
151218
|
},
|
|
151217
151219
|
NotionText: {
|
|
151218
|
-
schema:
|
|
151220
|
+
schema: Hq,
|
|
151219
151221
|
Component: (e) => /* @__PURE__ */ r(Dl, {
|
|
151220
151222
|
isNotClient: e.isNotClient,
|
|
151221
151223
|
children: /* @__PURE__ */ r(Fdc, {
|
|
@@ -151726,7 +151728,7 @@ var Zdc = 350, ecc = 20, tcc = 10, rcc = [
|
|
|
151726
151728
|
whiteSpace: "nowrap",
|
|
151727
151729
|
textOverflow: "ellipsis"
|
|
151728
151730
|
},
|
|
151729
|
-
children: /* @__PURE__ */ r(
|
|
151731
|
+
children: /* @__PURE__ */ r(gK, {
|
|
151730
151732
|
t: a,
|
|
151731
151733
|
i18nKey: "inputs.unsplash.creditLine",
|
|
151732
151734
|
values: { author: e.user.name },
|
|
@@ -152149,7 +152151,7 @@ var Wr = ({ children: e }) => /* @__PURE__ */ r("div", {
|
|
|
152149
152151
|
fontSize: "0.8rem",
|
|
152150
152152
|
flexShrink: 0,
|
|
152151
152153
|
color: "#ccc"
|
|
152152
|
-
} }), /* @__PURE__ */ r(
|
|
152154
|
+
} }), /* @__PURE__ */ r(gK, {
|
|
152153
152155
|
t: c,
|
|
152154
152156
|
i18nKey: "inputs.unsplash.creditLine",
|
|
152155
152157
|
values: { author: s.photographerName },
|
|
@@ -152491,7 +152493,7 @@ var dcc = ({ defaultValue: e, onChange: t, values: n }) => {
|
|
|
152491
152493
|
}, []), we(() => {
|
|
152492
152494
|
const te = (de) => {
|
|
152493
152495
|
const { detail: ce } = de;
|
|
152494
|
-
Fc(!1, ce.id || ""), W({ url: ce.url }, ce.styles), a && Ac(a),
|
|
152496
|
+
Fc(!1, ce.id || ""), W({ url: ce.url }, ce.styles), a && Ac(a), Iq(!1), O(ce.url);
|
|
152495
152497
|
}, he = (de) => {
|
|
152496
152498
|
Fc(de?.detail?.uploading ?? !1, de?.detail?.id ?? "");
|
|
152497
152499
|
}, $ = () => {
|
|
@@ -156102,7 +156104,7 @@ var Dcc = (e, t, n) => {
|
|
|
156102
156104
|
}, []), we(() => {
|
|
156103
156105
|
const K = (ae) => {
|
|
156104
156106
|
const { detail: Z } = ae;
|
|
156105
|
-
Fc(!1, Z.id || ""), n && (_3(n, { url: Z.url }), Ac(n)),
|
|
156107
|
+
Fc(!1, Z.id || ""), n && (_3(n, { url: Z.url }), Ac(n)), Iq(!1);
|
|
156106
156108
|
}, q = (ae) => {
|
|
156107
156109
|
Fc(ae?.detail?.uploading ?? !1, ae?.detail?.id ?? "");
|
|
156108
156110
|
}, me = () => {
|
|
@@ -157186,7 +157188,7 @@ function jcc({ items: e = [], onChange: t }) {
|
|
|
157186
157188
|
}
|
|
157187
157189
|
var Ucc = ({ data: e, setData: t }) => {
|
|
157188
157190
|
const [, n] = ie(null), a = Ln(), { t: c } = nt("inspector"), s = (_) => {
|
|
157189
|
-
const g =
|
|
157191
|
+
const g = Eq.safeParse(_);
|
|
157190
157192
|
g.success ? (t(g.data), n(null)) : n(g.error);
|
|
157191
157193
|
}, h = (_) => {
|
|
157192
157194
|
s({
|
|
@@ -157301,7 +157303,7 @@ function IW(e) {
|
|
|
157301
157303
|
});
|
|
157302
157304
|
}
|
|
157303
157305
|
function Wcc() {
|
|
157304
|
-
const e = kh(), t =
|
|
157306
|
+
const e = kh(), t = Fq(e || ""), n = tt((s) => {
|
|
157305
157307
|
e && Rf(e, () => s);
|
|
157306
157308
|
}, [e]);
|
|
157307
157309
|
if (!e) return IW("Click on a block to inspect.");
|
|
@@ -157384,7 +157386,7 @@ function Wcc() {
|
|
|
157384
157386
|
return /* @__PURE__ */ r("pre", { children: JSON.stringify(t, null, " ") });
|
|
157385
157387
|
}
|
|
157386
157388
|
}
|
|
157387
|
-
var $cc = ga(Wcc), Gcc = "email-builder-standalone", qcc = "4.3.
|
|
157389
|
+
var $cc = ga(Wcc), Gcc = "email-builder-standalone", qcc = "4.3.1", Kcc = "module", Ycc = "./dist/index.cjs", Qcc = "./dist/index.mjs", Xcc = "./dist/index.d.ts", Jcc = {
|
|
157388
157390
|
".": {
|
|
157389
157391
|
types: "./dist/index.d.ts",
|
|
157390
157392
|
import: "./dist/index.mjs",
|
|
@@ -157481,6 +157483,7 @@ var $cc = ga(Wcc), Gcc = "email-builder-standalone", qcc = "4.3.0", Kcc = "modul
|
|
|
157481
157483
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
157482
157484
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
157483
157485
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
157486
|
+
rolldown: "1.1.5",
|
|
157484
157487
|
react: "^19.2.1",
|
|
157485
157488
|
"react-dom": "^19.2.1",
|
|
157486
157489
|
typescript: "^6.0.3",
|
|
@@ -157939,7 +157942,7 @@ function Ssc({ open: e, onClose: t, onSaved: n }) {
|
|
|
157939
157942
|
});
|
|
157940
157943
|
}
|
|
157941
157944
|
function Tsc() {
|
|
157942
|
-
const { t: e } = nt("inspector"), t = qgi(), n = Vh(), a =
|
|
157945
|
+
const { t: e } = nt("inspector"), t = qgi(), n = Vh(), a = Nq(), c = gbi(), s = wi(), [h, f] = ie(!1), [p, v] = ie(!1);
|
|
157943
157946
|
return /* @__PURE__ */ x(P.Container, {
|
|
157944
157947
|
sx: {
|
|
157945
157948
|
padding: "0!important",
|
|
@@ -235116,7 +235119,7 @@ function Izc() {
|
|
|
235116
235119
|
});
|
|
235117
235120
|
}
|
|
235118
235121
|
function Bzc({ enableEditorTab: e = !0, enablePreviewTab: t = !0, enableHtmlTab: n = !0, enableJsonTab: a = !0 }) {
|
|
235119
|
-
const c = Ah(), s =
|
|
235122
|
+
const c = Ah(), s = Dq(), h = Ln(), { t: f } = nt("inspector"), p = o1(() => {
|
|
235120
235123
|
const m = [];
|
|
235121
235124
|
return e && m.push("editor"), t && m.push("preview"), n && m.push("html"), a && s && m.push("json"), m;
|
|
235122
235125
|
}, [
|
|
@@ -235296,7 +235299,7 @@ function Wzc({ sticky: e, heightContent: t, enableEditorTab: n = !0, enablePrevi
|
|
|
235296
235299
|
we(() => {
|
|
235297
235300
|
const $ = (ee) => {
|
|
235298
235301
|
const { detail: de } = ee, ce = b9(de);
|
|
235299
|
-
|
|
235302
|
+
Bq(() => {
|
|
235300
235303
|
vb(ce, !1);
|
|
235301
235304
|
}), requestAnimationFrame(() => {
|
|
235302
235305
|
I(!0), B.current && clearTimeout(B.current), B.current = setTimeout(() => {
|
|
@@ -235828,9 +235831,9 @@ function $zc({ galleryImages: e = !0, darkMode: t = !1, stickyHeader: n = !0, he
|
|
|
235828
235831
|
let A = !1;
|
|
235829
235832
|
return (async () => {
|
|
235830
235833
|
try {
|
|
235831
|
-
const { seedLocalLibrary: V } = await import("./seedLocalLibrary-
|
|
235834
|
+
const { seedLocalLibrary: V } = await import("./seedLocalLibrary-CDzh8PGl.js");
|
|
235832
235835
|
if (await V(), A) return;
|
|
235833
|
-
const { generateMissingThumbnails: k } = await import("./lazyThumbnailGenerator-
|
|
235836
|
+
const { generateMissingThumbnails: k } = await import("./lazyThumbnailGenerator-BTfXeGKJ.js");
|
|
235834
235837
|
k();
|
|
235835
235838
|
} catch (V) {
|
|
235836
235839
|
console.warn("[EmailBuilder] local library seeding failed", V);
|
|
@@ -239848,8 +239851,8 @@ export {
|
|
|
239848
239851
|
XHc as BLOCK_TYPES,
|
|
239849
239852
|
xC as ButtonPropsSchema,
|
|
239850
239853
|
u4 as COLOR_SCHEMA,
|
|
239851
|
-
|
|
239852
|
-
|
|
239854
|
+
kq as ColumnsContainerPropsSchema,
|
|
239855
|
+
Lq as ContainerPropsSchema,
|
|
239853
239856
|
VC as DividerPropsSchema,
|
|
239854
239857
|
eOi as EditorBlockSchema,
|
|
239855
239858
|
tOi as EditorConfigurationSchema,
|
|
@@ -239858,7 +239861,7 @@ export {
|
|
|
239858
239861
|
ogi as FONT_FAMILY_NAMES,
|
|
239859
239862
|
egi as FONT_FAMILY_SCHEMA,
|
|
239860
239863
|
h7 as ImagePropsSchema,
|
|
239861
|
-
|
|
239864
|
+
Hq as NotionTextPropsSchema,
|
|
239862
239865
|
HHc as PADDING_SCHEMA,
|
|
239863
239866
|
LHc as SHAPE_SCHEMA,
|
|
239864
239867
|
Z_i as SocialMediaPropsSchema,
|