@emailmaker/emailmaker 1.1.81 → 1.1.84
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/CHANGELOG.md +30 -0
- package/README.md +18 -7
- package/{emailmaker-core.5550faa5.js → emailmaker-core.79ea451d.js} +6 -6
- package/emailmaker-esm.js +4 -4
- package/{emailmaker-po.5550faa5.js → emailmaker-po.79ea451d.js} +1 -1
- package/emailmaker.d.ts +51 -24
- package/emailmaker.js +3 -3
- package/iframe/css/sandbox-dark.css +1 -1
- package/iframe/css/sandbox-darktheme.css +3 -3
- package/iframe/css/sandbox-light.css +1 -1
- package/iframe/css/sandbox.css +2 -2
- package/iframe/js/amp.BX1rGa_X.js +1 -0
- 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/package.json +1 -1
- package/static/core/{8fe345a7.js → 12f8b705.js} +6 -6
- package/static/core/{438f4766.js → 1b3e2d70.js} +4 -4
- package/static/core/{4d48fdcd.js → 2180385a.js} +33 -33
- package/static/core/{26d559d32.js → 3834896e2.js} +124 -124
- package/static/core/{20625a132.js → 5ec924792.js} +857 -857
- package/static/core/{d34d3cc0.js → 62284a79.js} +77 -4
- package/static/core/{60e2f0e02.js → 69d13cd82.js} +49 -49
- package/static/core/{1cb65d65.js → 860577ca.js} +300 -300
- package/static/core/{ed08ded22.js → 8bf24c892.js} +982 -974
- package/static/core/{395f82fa.js → af78f5c5.js} +3 -3
- package/static/core/{adc7cd4e.js → c62226dd.js} +7 -7
- package/static/core/{f6e0d3702.js → d31af2772.js} +849 -836
- package/static/core/{5be7581f.js → d6d05bc8.js} +13058 -12638
- package/static/core/{d239a2a0.js → d825fdc8.js} +7 -7
- package/static/core/{16751762.js → dd044cfd.js} +7 -7
- package/static/core/{758a0c3c.js → f422bc19.js} +3 -3
- package/static/core/{d0a3e529.js → f4cfd2a7.js} +544 -539
- package/static/core/{544a8fe8.js → f740dd7d.js} +35 -35
- package/static/umd-runtime/{DntxC9N-.js → Py_VRWLn.js} +7 -1
- package/static/umd-runtime/runtime.js +2 -2
- package/static/umd-runtime/ui-kit.js +1742 -1734
- package/ui-kit/index.js +1859 -1851
- package/iframe/js/amp.BtGCOg7N.js +0 -1
- /package/iframe/{iframe-eblock.5550faa5.html → iframe-eblock.79ea451d.html} +0 -0
- /package/iframe/{iframe.5550faa5.html → iframe.79ea451d.html} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/62284a79.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
@@ -2142,6 +2142,22 @@ __emailmaker__.define("static/core/d34d3cc0.js", [
|
|
|
2142
2142
|
type: "application/x-www-form-urlencoded",
|
|
2143
2143
|
...n
|
|
2144
2144
|
}),
|
|
2145
|
+
media_sideload_create: ({ id: e, ...t }, r, n = {}) => this.request({
|
|
2146
|
+
path: `/wp/v2/media/${e}/sideload`,
|
|
2147
|
+
method: "POST",
|
|
2148
|
+
body: r,
|
|
2149
|
+
type: "application/x-www-form-urlencoded",
|
|
2150
|
+
format: "json",
|
|
2151
|
+
...n
|
|
2152
|
+
}),
|
|
2153
|
+
media_finalize_create: ({ id: e, ...t }, r, n = {}) => this.request({
|
|
2154
|
+
path: `/wp/v2/media/${e}/finalize`,
|
|
2155
|
+
method: "POST",
|
|
2156
|
+
body: r,
|
|
2157
|
+
type: "application/x-www-form-urlencoded",
|
|
2158
|
+
format: "json",
|
|
2159
|
+
...n
|
|
2160
|
+
}),
|
|
2145
2161
|
menu_items_list: (e, t = {}) => this.request({
|
|
2146
2162
|
path: "/wp/v2/menu-items",
|
|
2147
2163
|
method: "GET",
|
|
@@ -6251,7 +6267,8 @@ __emailmaker__.define("static/core/d34d3cc0.js", [
|
|
|
6251
6267
|
em_layout_convert_never_suggest: "em_layout_convert_never_suggest",
|
|
6252
6268
|
em_filemanager_v2: "em_filemanager_v2",
|
|
6253
6269
|
em_projects_v2: "em_projects_v2",
|
|
6254
|
-
em_translations_v2: "em_translations_v2"
|
|
6270
|
+
em_translations_v2: "em_translations_v2",
|
|
6271
|
+
em_guest_locale: "em_guest_locale"
|
|
6255
6272
|
}, xm = "deleted", Fm = "not all", Gm = "light", Bm = "dark", Um = "system", Hm = "(prefers-color-scheme: light)", Vm = "(prefers-color-scheme: dark)", Wm = {
|
|
6256
6273
|
auth: "/auth",
|
|
6257
6274
|
projects_index: "/",
|
|
@@ -6462,6 +6479,11 @@ __emailmaker__.define("static/core/d34d3cc0.js", [
|
|
|
6462
6479
|
REMOVE_ATOM: e("Remove element"),
|
|
6463
6480
|
EDIT_ATOM: e("Edit element"),
|
|
6464
6481
|
CHANGE_IMAGE: e("Change image"),
|
|
6482
|
+
CHANGE_IMAGE_EDIT: e("Edit"),
|
|
6483
|
+
CHANGE_IMAGE_STOCK: e("Stock"),
|
|
6484
|
+
CHANGE_IMAGE_CHANGETO: e("Upload"),
|
|
6485
|
+
CHANGE_IMAGE_GIF: e("GIF"),
|
|
6486
|
+
CHANGE_IMAGE_AI: e("Generate"),
|
|
6465
6487
|
REORDER_BLOCK: e("Reorder block"),
|
|
6466
6488
|
REORDER_BLOCK_UP: e("Move up"),
|
|
6467
6489
|
REORDER_BLOCK_DOWN: e("Move down"),
|
|
@@ -10342,6 +10364,28 @@ The error may be correlated with this previous error:
|
|
|
10342
10364
|
format: "json",
|
|
10343
10365
|
...t
|
|
10344
10366
|
}),
|
|
10367
|
+
authUsersImpersonateCreate: ({ id: e }, t = {}) => this.request({
|
|
10368
|
+
path: `/admin/auth/users/${e}/impersonate`,
|
|
10369
|
+
method: "POST",
|
|
10370
|
+
secure: !0,
|
|
10371
|
+
format: "json",
|
|
10372
|
+
...t
|
|
10373
|
+
}),
|
|
10374
|
+
authUsersPasswordCreate: ({ id: e }, t, r = {}) => this.request({
|
|
10375
|
+
path: `/admin/auth/users/${e}/password`,
|
|
10376
|
+
method: "POST",
|
|
10377
|
+
body: t,
|
|
10378
|
+
secure: !0,
|
|
10379
|
+
type: "application/json",
|
|
10380
|
+
...r
|
|
10381
|
+
}),
|
|
10382
|
+
authUsersPasswordResetCreate: ({ id: e }, t = {}) => this.request({
|
|
10383
|
+
path: `/admin/auth/users/${e}/password-reset`,
|
|
10384
|
+
method: "POST",
|
|
10385
|
+
secure: !0,
|
|
10386
|
+
format: "json",
|
|
10387
|
+
...t
|
|
10388
|
+
}),
|
|
10345
10389
|
emailsTemplatesList: (e = {}, t = {}) => this.request({
|
|
10346
10390
|
path: "/admin/emails/templates",
|
|
10347
10391
|
method: "GET",
|
|
@@ -10467,6 +10511,15 @@ The error may be correlated with this previous error:
|
|
|
10467
10511
|
type: "application/json",
|
|
10468
10512
|
format: "json",
|
|
10469
10513
|
...r
|
|
10514
|
+
}),
|
|
10515
|
+
projectsOwnerUpdate: ({ id: e }, t, r = {}) => this.request({
|
|
10516
|
+
path: `/admin/projects/${e}/owner`,
|
|
10517
|
+
method: "PUT",
|
|
10518
|
+
body: t,
|
|
10519
|
+
secure: !0,
|
|
10520
|
+
type: "application/json",
|
|
10521
|
+
format: "json",
|
|
10522
|
+
...r
|
|
10470
10523
|
})
|
|
10471
10524
|
};
|
|
10472
10525
|
ai = {
|
|
@@ -10584,6 +10637,15 @@ The error may be correlated with this previous error:
|
|
|
10584
10637
|
format: "json",
|
|
10585
10638
|
...e
|
|
10586
10639
|
}),
|
|
10640
|
+
userPartialUpdate: (e, t = {}) => this.request({
|
|
10641
|
+
path: "/auth/user",
|
|
10642
|
+
method: "PATCH",
|
|
10643
|
+
body: e,
|
|
10644
|
+
secure: !0,
|
|
10645
|
+
type: "application/json",
|
|
10646
|
+
format: "json",
|
|
10647
|
+
...t
|
|
10648
|
+
}),
|
|
10587
10649
|
yandexCreate: (e, t = {}) => this.request({
|
|
10588
10650
|
path: "/auth/yandex",
|
|
10589
10651
|
method: "POST",
|
|
@@ -10893,11 +10955,12 @@ The error may be correlated with this previous error:
|
|
|
10893
10955
|
format: "json",
|
|
10894
10956
|
...t
|
|
10895
10957
|
}),
|
|
10896
|
-
projectsDelete: ({ id: e },
|
|
10958
|
+
projectsDelete: ({ id: e, ...t }, r = {}) => this.request({
|
|
10897
10959
|
path: `/projects/${e}`,
|
|
10898
10960
|
method: "DELETE",
|
|
10961
|
+
query: t,
|
|
10899
10962
|
secure: !0,
|
|
10900
|
-
...
|
|
10963
|
+
...r
|
|
10901
10964
|
}),
|
|
10902
10965
|
projectsDetail: ({ id: e }, t = {}) => this.request({
|
|
10903
10966
|
path: `/projects/${e}`,
|
|
@@ -11178,6 +11241,12 @@ The error may be correlated with this previous error:
|
|
|
11178
11241
|
format: "json",
|
|
11179
11242
|
...r
|
|
11180
11243
|
}),
|
|
11244
|
+
restoreCreate: ({ id: e }, t = {}) => this.request({
|
|
11245
|
+
path: `/projects/${e}/restore`,
|
|
11246
|
+
method: "POST",
|
|
11247
|
+
secure: !0,
|
|
11248
|
+
...t
|
|
11249
|
+
}),
|
|
11181
11250
|
settingsUpdate: ({ id: e }, t, r = {}) => this.request({
|
|
11182
11251
|
path: `/projects/${e}/settings`,
|
|
11183
11252
|
method: "PUT",
|
|
@@ -13059,6 +13128,7 @@ The error may be correlated with this previous error:
|
|
|
13059
13128
|
optimizeSpamAssassinEnabled: !0,
|
|
13060
13129
|
optimizeCheckCodeEnabled: !0,
|
|
13061
13130
|
settingsEnabled: !0,
|
|
13131
|
+
settingsTabEnabled: !0,
|
|
13062
13132
|
UTMEnabled: !0,
|
|
13063
13133
|
annotationsEnabled: !0,
|
|
13064
13134
|
subjectEnabled: !0,
|
|
@@ -13229,6 +13299,7 @@ The error may be correlated with this previous error:
|
|
|
13229
13299
|
optimizeSpamAssassinEnabled: !0,
|
|
13230
13300
|
optimizeCheckCodeEnabled: !0,
|
|
13231
13301
|
settingsEnabled: !0,
|
|
13302
|
+
settingsTabEnabled: !0,
|
|
13232
13303
|
UTMEnabled: !1,
|
|
13233
13304
|
annotationsEnabled: !1,
|
|
13234
13305
|
subjectEnabled: !0,
|
|
@@ -13398,6 +13469,7 @@ The error may be correlated with this previous error:
|
|
|
13398
13469
|
optimizeSpamAssassinEnabled: !0,
|
|
13399
13470
|
optimizeCheckCodeEnabled: !0,
|
|
13400
13471
|
settingsEnabled: !0,
|
|
13472
|
+
settingsTabEnabled: !0,
|
|
13401
13473
|
UTMEnabled: !1,
|
|
13402
13474
|
annotationsEnabled: !1,
|
|
13403
13475
|
subjectEnabled: !0,
|
|
@@ -13561,6 +13633,7 @@ The error may be correlated with this previous error:
|
|
|
13561
13633
|
optimizeSpamAssassinEnabled: !0,
|
|
13562
13634
|
optimizeCheckCodeEnabled: !0,
|
|
13563
13635
|
settingsEnabled: !0,
|
|
13636
|
+
settingsTabEnabled: !0,
|
|
13564
13637
|
UTMEnabled: !0,
|
|
13565
13638
|
annotationsEnabled: !1,
|
|
13566
13639
|
subjectEnabled: !0,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/69d13cd82.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/7df48ae1.js",
|
|
6
|
-
"static/core/
|
|
6
|
+
"static/core/d31af2772.js",
|
|
7
7
|
"static/core/5f203ce92.js",
|
|
8
8
|
"react",
|
|
9
9
|
"antd",
|
|
10
10
|
"react/jsx-runtime",
|
|
11
11
|
"@ant-design/icons"
|
|
12
|
-
], function(U, O,
|
|
13
|
-
const te = U("./7df48ae1.js"),
|
|
12
|
+
], function(U, O, Ge) {
|
|
13
|
+
const te = U("./7df48ae1.js"), J = U("./d31af2772.js"), me = U("./5f203ce92.js");
|
|
14
14
|
let s = U("react"), T = te.__toESM(s, 1);
|
|
15
15
|
s = te.__toESM(s);
|
|
16
16
|
let z = U("antd"), t = U("react/jsx-runtime"), c = U("@ant-design/icons");
|
|
@@ -302,7 +302,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
302
302
|
strokeLinecap: "round",
|
|
303
303
|
strokeLinejoin: "round"
|
|
304
304
|
})]
|
|
305
|
-
}),
|
|
305
|
+
}), be = () => (0, t.jsx)("svg", {
|
|
306
306
|
width: "48",
|
|
307
307
|
height: "49",
|
|
308
308
|
viewBox: "0 0 48 49",
|
|
@@ -373,11 +373,11 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
373
373
|
...e
|
|
374
374
|
}),
|
|
375
375
|
StockBigIcon: (e) => (0, t.jsx)(c.default, {
|
|
376
|
-
component:
|
|
376
|
+
component: be,
|
|
377
377
|
...e
|
|
378
378
|
})
|
|
379
379
|
}, ne = () => {
|
|
380
|
-
let { options: e } =
|
|
380
|
+
let { options: e } = J.B(), { customIcons: n } = e, r = s.default.useCallback((o, h, l) => {
|
|
381
381
|
let i = n?.[o];
|
|
382
382
|
return i ? s.default.createElement(i, l) : s.default.createElement(h, l);
|
|
383
383
|
}, [n]);
|
|
@@ -413,29 +413,29 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
413
413
|
ThumbsUpIcon: (o) => r("thumbsUp", oe, o),
|
|
414
414
|
getCustomIcon: r
|
|
415
415
|
}), [r]);
|
|
416
|
-
},
|
|
416
|
+
}, Q = {
|
|
417
417
|
"em-filemanager": "em-filemanager",
|
|
418
418
|
emFilemanager: "em-filemanager",
|
|
419
419
|
noFilesContainer: "noFilesContainer",
|
|
420
420
|
noFilesImage: "noFilesImage",
|
|
421
421
|
noFilesTitle: "noFilesTitle",
|
|
422
422
|
noFilesDescription: "noFilesDescription"
|
|
423
|
-
},
|
|
424
|
-
let { t: e } =
|
|
423
|
+
}, Ve = () => {
|
|
424
|
+
let { t: e } = J.zn(), { NoFilesIcon: n } = ne();
|
|
425
425
|
return (0, t.jsxs)("div", {
|
|
426
|
-
className:
|
|
426
|
+
className: Q.noFilesContainer,
|
|
427
427
|
children: [
|
|
428
428
|
(0, t.jsx)(n, {
|
|
429
|
-
className:
|
|
429
|
+
className: Q.noFilesImage,
|
|
430
430
|
size: 48,
|
|
431
431
|
strokeWidth: 1.4
|
|
432
432
|
}),
|
|
433
433
|
(0, t.jsx)("h2", {
|
|
434
|
-
className:
|
|
434
|
+
className: Q.noFilesTitle,
|
|
435
435
|
children: e("There's nothing here")
|
|
436
436
|
}),
|
|
437
437
|
(0, t.jsx)("div", {
|
|
438
|
-
className:
|
|
438
|
+
className: Q.noFilesDescription,
|
|
439
439
|
children: e("Try using a different search query.")
|
|
440
440
|
})
|
|
441
441
|
]
|
|
@@ -465,7 +465,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
465
465
|
let r = n?.renderStrategy ?? "full";
|
|
466
466
|
if (r !== "windowed") {
|
|
467
467
|
if (r === "positioned") {
|
|
468
|
-
let D = n?.positioned?.layout ?? [], B = n?.positioned?.viewportTop ?? 0,
|
|
468
|
+
let D = n?.positioned?.layout ?? [], B = n?.positioned?.viewportTop ?? 0, V = n?.positioned?.viewportBottom ?? 2 ** 53 - 1, H = Math.max(0, n?.positioned?.overscanPx ?? 0), _ = Math.max(0, n?.positioned?.containerHeight ?? 0), F = D.filter((u) => u.bottom >= B - H && u.top <= V + H).map((u) => ({
|
|
469
469
|
row: e[u.index],
|
|
470
470
|
layout: u
|
|
471
471
|
})).filter((u) => !!u.row), R = F[0]?.layout.index ?? -1, p = F[F.length - 1]?.layout.index ?? -1;
|
|
@@ -489,11 +489,11 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
489
489
|
totalCount: e.length
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
|
-
let o = Math.max(0, n?.windowed?.startIndex ?? 0), h = n?.windowed?.endIndex ?? e.length - 1, l = Math.max(0, n?.windowed?.overscan ?? 0), i = Math.max(1, n?.windowed?.estimatedItemSize ?? 1), v = Math.max(1, n?.windowed?.itemsPerLane ?? 1), f = Math.ceil(e.length / v), d = Math.min(e.length - 1, h), W = Math.floor(o / v), j = Math.floor(Math.max(o, d) / v), w = Math.max(0, W - l), I = Math.min(f - 1, j + l), m = w * v,
|
|
492
|
+
let o = Math.max(0, n?.windowed?.startIndex ?? 0), h = n?.windowed?.endIndex ?? e.length - 1, l = Math.max(0, n?.windowed?.overscan ?? 0), i = Math.max(1, n?.windowed?.estimatedItemSize ?? 1), v = Math.max(1, n?.windowed?.itemsPerLane ?? 1), f = Math.ceil(e.length / v), d = Math.min(e.length - 1, h), W = Math.floor(o / v), j = Math.floor(Math.max(o, d) / v), w = Math.max(0, W - l), I = Math.min(f - 1, j + l), m = w * v, b = Math.min(e.length - 1, (I + 1) * v - 1), S = Math.max(0, f - I - 1);
|
|
493
493
|
return {
|
|
494
|
-
rows: e.slice(m,
|
|
494
|
+
rows: e.slice(m, b + 1),
|
|
495
495
|
startIndex: m,
|
|
496
|
-
endIndex:
|
|
496
|
+
endIndex: b,
|
|
497
497
|
topOffset: w * i,
|
|
498
498
|
bottomOffset: S * i,
|
|
499
499
|
totalCount: e.length
|
|
@@ -528,7 +528,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
528
528
|
folderMenu: "folderMenu",
|
|
529
529
|
folderIcon: "folderIcon"
|
|
530
530
|
}, Be = ({ selectedFolder: e, onSelect: n, onExpand: r, generateMenuItems: o, fetchChildFolders: h, disabledFolders: l = [], showFileCounts: i = !1, folderFileCounts: v = {}, className: f = "", expandedKeys: d, setExpandedKeys: W, showTrashFolder: j = !1, mode: w = "navigation", defaultExpandAll: I = !1 }) => {
|
|
531
|
-
let { t: m } =
|
|
531
|
+
let { t: m } = J.zn(), { options: b } = J.B(), { config: S } = b, { ExpandArrowIcon: D, CollapseArrowIcon: B, CollapseFolderIcon: V, ExpandFolderIcon: H, EmptyFolderIcon: _ } = ne(), F = (0, s.useCallback)((x) => {
|
|
532
532
|
let M = [], g = (E) => {
|
|
533
533
|
E.forEach((A) => {
|
|
534
534
|
M.push(A.key), A.children && g(A.children);
|
|
@@ -579,7 +579,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
579
579
|
}
|
|
580
580
|
u.includes(a) && e === a ? N(u.filter((Z) => Z !== a)) : u.includes(a) || N([...u, a]), C([a]);
|
|
581
581
|
}, A = g.length === 0 || g.length === 1 && (!g[0].children || g[0].children.length === 0), q = (a) => {
|
|
582
|
-
let Z = i ? v[a.key] : void 0,
|
|
582
|
+
let Z = i ? v[a.key] : void 0, G = i && Z === null ? null : i ? Z ?? 0 : 0, Re = u.includes(a.key), ee = l.includes(a.key), Ue = a.children?.length ? (0, t.jsx)(Re ? V : H, {
|
|
583
583
|
size: 20,
|
|
584
584
|
strokeWidth: S?.iconStrokeWidth
|
|
585
585
|
}) : (0, t.jsx)(_, {
|
|
@@ -602,8 +602,8 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
602
602
|
})]
|
|
603
603
|
}), i && (0, t.jsx)("div", {
|
|
604
604
|
className: P.fileCount,
|
|
605
|
-
title:
|
|
606
|
-
children:
|
|
605
|
+
title: G === null ? void 0 : `${G} ${m(G === 1 ? "item" : "items")}`,
|
|
606
|
+
children: G === null ? "—" : G
|
|
607
607
|
})]
|
|
608
608
|
});
|
|
609
609
|
return {
|
|
@@ -619,7 +619,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
619
619
|
},
|
|
620
620
|
children: (0, t.jsxs)("div", {
|
|
621
621
|
className: P.foldersTitleItem,
|
|
622
|
-
children: [(0, t.jsx)(le ?
|
|
622
|
+
children: [(0, t.jsx)(le ? V : H, {
|
|
623
623
|
size: 20,
|
|
624
624
|
strokeWidth: S?.iconStrokeWidth
|
|
625
625
|
}), (0, t.jsx)("span", {
|
|
@@ -627,7 +627,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
627
627
|
children: g[0]?.key === "folders" ? g[0].label : m("Folders")
|
|
628
628
|
})]
|
|
629
629
|
})
|
|
630
|
-
}),
|
|
630
|
+
}), Y = () => ({
|
|
631
631
|
key: "Trash",
|
|
632
632
|
title: (0, t.jsx)("div", {
|
|
633
633
|
className: P.foldersTitle,
|
|
@@ -661,7 +661,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
661
661
|
key: "folders",
|
|
662
662
|
title: $,
|
|
663
663
|
children: []
|
|
664
|
-
}), a.push(
|
|
664
|
+
}), a.push(Y()), a;
|
|
665
665
|
}
|
|
666
666
|
if (g.length > 0 && g[0].key === "folders") {
|
|
667
667
|
let a = [{
|
|
@@ -669,13 +669,13 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
669
669
|
title: $,
|
|
670
670
|
children: g[0].children?.map(q)
|
|
671
671
|
}];
|
|
672
|
-
return j && a.push(
|
|
672
|
+
return j && a.push(Y()), a;
|
|
673
673
|
}
|
|
674
674
|
return g.map(q);
|
|
675
675
|
}, [
|
|
676
676
|
o,
|
|
677
677
|
u,
|
|
678
|
-
|
|
678
|
+
V,
|
|
679
679
|
S?.iconStrokeWidth,
|
|
680
680
|
H,
|
|
681
681
|
m,
|
|
@@ -688,14 +688,14 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
688
688
|
j,
|
|
689
689
|
w,
|
|
690
690
|
N
|
|
691
|
-
]),
|
|
691
|
+
]), X = (0, s.useMemo)(() => y(), [y]);
|
|
692
692
|
return (0, t.jsx)(z.Tree, {
|
|
693
693
|
className: `${P.folderTree} ${P.folderMenu} ${f}`,
|
|
694
694
|
selectedKeys: e ? [e] : [],
|
|
695
695
|
expandedKeys: u,
|
|
696
696
|
onSelect: C,
|
|
697
697
|
onExpand: k,
|
|
698
|
-
treeData:
|
|
698
|
+
treeData: X,
|
|
699
699
|
switcherIcon: ({ expanded: x }) => (0, t.jsx)(x ? B : D, {}),
|
|
700
700
|
showLine: !1,
|
|
701
701
|
focusable: w !== "selection"
|
|
@@ -775,14 +775,14 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
775
775
|
]), d = s.default.useCallback((W) => {
|
|
776
776
|
let { folderId: j, targetForm: w, onTreeSelect: I, onComplete: m } = W;
|
|
777
777
|
return {
|
|
778
|
-
handleAddFolder: (
|
|
779
|
-
|
|
778
|
+
handleAddFolder: (b) => {
|
|
779
|
+
b.preventDefault(), b.stopPropagation(), v(j), w.setFieldsValue({
|
|
780
780
|
folderName: l("New folder"),
|
|
781
781
|
targetFolder: j
|
|
782
782
|
});
|
|
783
783
|
},
|
|
784
|
-
handleSelectFolder: (
|
|
785
|
-
|
|
784
|
+
handleSelectFolder: (b) => {
|
|
785
|
+
b.preventDefault(), b.stopPropagation(), I([j]).then(() => m(j));
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
788
|
}, [l]);
|
|
@@ -790,7 +790,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
790
790
|
activeFormField: i,
|
|
791
791
|
setActiveFormField: v,
|
|
792
792
|
generateMenuItemsFromFolders: s.default.useCallback((W) => {
|
|
793
|
-
let { targetForm: j, onTreeSelect: w, onComplete: I, actionButtonText: m } = W,
|
|
793
|
+
let { targetForm: j, onTreeSelect: w, onComplete: I, actionButtonText: m } = W, b = f(j, I), S = Array.isArray(e) ? e : [], D = (F = null, R = new Set()) => S.filter((p) => {
|
|
794
794
|
let u = F === null && !p.parentId, N = p.parentId === F;
|
|
795
795
|
return u || N;
|
|
796
796
|
}).map((p) => {
|
|
@@ -807,7 +807,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
807
807
|
onComplete: I
|
|
808
808
|
}), y = i === p.id ? [{
|
|
809
809
|
key: `${p.id}_input`,
|
|
810
|
-
label:
|
|
810
|
+
label: b(p.id),
|
|
811
811
|
icon: null
|
|
812
812
|
}, ...N] : N;
|
|
813
813
|
return {
|
|
@@ -824,14 +824,14 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
824
824
|
})] }),
|
|
825
825
|
children: y
|
|
826
826
|
};
|
|
827
|
-
}), B = D(), { handleAddFolder:
|
|
827
|
+
}), B = D(), { handleAddFolder: V, handleSelectFolder: H } = d({
|
|
828
828
|
folderId: "folders",
|
|
829
829
|
targetForm: j,
|
|
830
830
|
onTreeSelect: w,
|
|
831
831
|
onComplete: I
|
|
832
832
|
}), _ = i === "folders" ? [{
|
|
833
833
|
key: "folders_input",
|
|
834
|
-
label:
|
|
834
|
+
label: b("folders"),
|
|
835
835
|
icon: null
|
|
836
836
|
}, ...B] : B;
|
|
837
837
|
return [{
|
|
@@ -839,7 +839,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
839
839
|
label: (0, t.jsxs)(t.Fragment, { children: [l("Folders"), n !== "folders" && n !== null && (0, t.jsxs)("div", {
|
|
840
840
|
className: `${K.folderToolsField} folder-tools-field`,
|
|
841
841
|
children: [(0, t.jsx)(z.Button, {
|
|
842
|
-
onClick:
|
|
842
|
+
onClick: V,
|
|
843
843
|
children: "+"
|
|
844
844
|
}), (0, t.jsx)(z.Button, {
|
|
845
845
|
onClick: H,
|
|
@@ -891,7 +891,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
891
891
|
}
|
|
892
892
|
var Oe = 240, Ne = 240, Ze = 20, Ae = 800, ze = 1200, _e = 40, ie = 1200, $e = 800;
|
|
893
893
|
function De({ items: e, getId: n, getPreviewSrc: r, getAltText: o, getWidth: h, getHeight: l, layoutMode: i = "masonry", minColumnWidth: v = Oe, estimatedItemHeight: f = Ne, gap: d = Ze, overscanPx: W = Ae, prefetchThresholdPx: j = ze, resolveColumnCount: w, virtualizationThreshold: I = _e }) {
|
|
894
|
-
let [m,
|
|
894
|
+
let [m, b] = (0, s.useState)({
|
|
895
895
|
scrollTop: 0,
|
|
896
896
|
viewportHeight: $e,
|
|
897
897
|
viewportWidth: ie,
|
|
@@ -914,7 +914,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
914
914
|
v,
|
|
915
915
|
w,
|
|
916
916
|
m.viewportWidth
|
|
917
|
-
]),
|
|
917
|
+
]), V = (0, s.useMemo)(() => {
|
|
918
918
|
let C = Math.max(1, m.viewportWidth || ie);
|
|
919
919
|
return Math.max(1, (C - d * Math.max(0, B - 1)) / B);
|
|
920
920
|
}, [
|
|
@@ -924,14 +924,14 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
924
924
|
]), H = (0, s.useMemo)(() => {
|
|
925
925
|
let C = Array(B).fill(0), k = [];
|
|
926
926
|
e: for (let y = 0; y < e.length; y += 1) {
|
|
927
|
-
let
|
|
927
|
+
let X = e[y], x = h?.(X), M = l?.(X), g = x && M && x > 0 && M > 0 ? x / M : void 0, E = g ? V / g : f;
|
|
928
928
|
if (i === "grid") {
|
|
929
|
-
let $ = Math.floor(y / B),
|
|
929
|
+
let $ = Math.floor(y / B), Y = y % B, a = $ * (E + d), Z = Y * (V + d);
|
|
930
930
|
k.push({
|
|
931
931
|
index: y,
|
|
932
932
|
top: a,
|
|
933
933
|
left: Z,
|
|
934
|
-
width:
|
|
934
|
+
width: V,
|
|
935
935
|
height: E,
|
|
936
936
|
bottom: a + E
|
|
937
937
|
});
|
|
@@ -939,12 +939,12 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
939
939
|
}
|
|
940
940
|
let A = 0;
|
|
941
941
|
for (let $ = 1; $ < C.length; $ += 1) C[$] < C[A] && (A = $);
|
|
942
|
-
let q = C[A], le = A * (
|
|
942
|
+
let q = C[A], le = A * (V + d);
|
|
943
943
|
C[A] = q + E + d, k.push({
|
|
944
944
|
index: y,
|
|
945
945
|
top: q,
|
|
946
946
|
left: le,
|
|
947
|
-
width:
|
|
947
|
+
width: V,
|
|
948
948
|
height: E,
|
|
949
949
|
bottom: q + E
|
|
950
950
|
});
|
|
@@ -955,7 +955,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
955
955
|
};
|
|
956
956
|
}, [
|
|
957
957
|
B,
|
|
958
|
-
|
|
958
|
+
V,
|
|
959
959
|
f,
|
|
960
960
|
d,
|
|
961
961
|
l,
|
|
@@ -985,14 +985,14 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
985
985
|
I
|
|
986
986
|
])
|
|
987
987
|
}), R = (C) => {
|
|
988
|
-
|
|
988
|
+
b((k) => k.scrollTop === C.scrollTop && k.viewportHeight === C.viewportHeight && k.viewportWidth === C.viewportWidth && k.scrollHeight === C.scrollHeight ? k : C);
|
|
989
989
|
}, p = F.positionedItems ?? _.map((C, k) => ({
|
|
990
990
|
row: C,
|
|
991
991
|
layout: H.positionedItems[k] ?? {
|
|
992
992
|
index: k,
|
|
993
993
|
top: 0,
|
|
994
994
|
left: 0,
|
|
995
|
-
width:
|
|
995
|
+
width: V,
|
|
996
996
|
height: f,
|
|
997
997
|
bottom: f
|
|
998
998
|
}
|
|
@@ -1011,7 +1011,7 @@ __emailmaker__.define("static/core/60e2f0e02.js", [
|
|
|
1011
1011
|
Object.defineProperty(O, "J", {
|
|
1012
1012
|
enumerable: !0,
|
|
1013
1013
|
get: function() {
|
|
1014
|
-
return
|
|
1014
|
+
return Ve;
|
|
1015
1015
|
}
|
|
1016
1016
|
}), Object.defineProperty(O, "K", {
|
|
1017
1017
|
enumerable: !0,
|