@emailmaker/emailmaker 1.0.105-alpha.6 → 1.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cli/README.md +2 -0
- package/cli/apps/emailmaker/package.json +1 -1
- package/cli/index.js +13 -1
- package/cli/lib/config.js +16 -8
- package/cli/package.json +2 -2
- package/emailmaker-esm.js +4 -4
- package/emailmaker.js +2 -2
- package/iframe/js/amp.Hj8A4hcJ.js +1 -1
- package/iframe/js/chunk.oX6nCJbK.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.BSaCN7eK.js +1 -1
- package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
- package/package.json +1 -1
- package/static/amd/{7617a3c6.js → 127166bb.js} +3 -3
- package/static/amd/{31419a832.js → 45fc63362.js} +2 -2
- package/static/amd/{3568bbc9.js → b6593123.js} +1 -1
- package/static/core/{6db4a8aa2.js → 408b13ec2.js} +1 -1
- package/static/core/{3bc9e40e2.js → a42cb1892.js} +177 -176
- package/static/core/{d0d551132.js → f8b68b562.js} +8 -7
- /package/iframe/{iframe-eblock.3b0419db.html → iframe-eblock.986ee288.html} +0 -0
- /package/iframe/{iframe.3b0419db.html → iframe.986ee288.html} +0 -0
|
@@ -27386,7 +27386,7 @@ function nb() {
|
|
|
27386
27386
|
//#region src/modules/components/EmailIframe/EmailIframe.jsx
|
|
27387
27387
|
var rb = (e) => {
|
|
27388
27388
|
let t = e ? "iframe-eblock" : "iframe";
|
|
27389
|
-
return `${Ra() + "iframe/"}${t}.
|
|
27389
|
+
return `${Ra() + "iframe/"}${t}.986ee288.html`;
|
|
27390
27390
|
}, ib = Us(({ className: e = null, email: t = null, handlerSendPosition: r = () => {} }, i) => {
|
|
27391
27391
|
let a = ln(), o = Yo(), s = pn(), c = sa(), l = Ha(), d = ra(), f = Ta(N.ON_EMAIL_INIT_ID), [p, m] = B();
|
|
27392
27392
|
nb();
|
|
@@ -29259,7 +29259,7 @@ var Qb = class {
|
|
|
29259
29259
|
throw new et(t("Failed to clean trash"), "BackendError");
|
|
29260
29260
|
}
|
|
29261
29261
|
}
|
|
29262
|
-
}, $b = Gs(() => import("./
|
|
29262
|
+
}, $b = Gs(() => import("./f8b68b562.js")), ex = Gs(() => import("./c615024a2.js")), tx = {
|
|
29263
29263
|
height: "100%",
|
|
29264
29264
|
display: "flex",
|
|
29265
29265
|
justifyContent: "center",
|
|
@@ -29422,12 +29422,12 @@ var Qb = class {
|
|
|
29422
29422
|
y.codeEnabled,
|
|
29423
29423
|
Ge,
|
|
29424
29424
|
y.codeSideEnabled
|
|
29425
|
-
]), It = Xs(!1),
|
|
29425
|
+
]), It = re.includes("UPLOAD_IMAGE_") || re.includes("UPLOAD_BACKGROUND_"), Lt = Xs(!1), Rt = R((e) => {
|
|
29426
29426
|
let t = e.target;
|
|
29427
|
-
|
|
29428
|
-
}, []),
|
|
29429
|
-
let n =
|
|
29430
|
-
|
|
29427
|
+
Lt.current = !!(t.closest(".email-pane__content-col") || t.closest(".email-pane__collapse-wrapper") || t.closest(".selected-element-panel-content") || t.closest(".selected-element-panel") || t.closest(".em-analytics__email-tab-properties") || t.closest(".em-analytics__email-tab-styles") || t.closest(".em-analytics__email-tab-history") || t.closest(".blocks-modal-container") || t.closest(".email-pane__sizes") || t.closest(".email-preview-menu") || t.closest(".monaco-editor") || t.closest(".ant-modal-wrap"));
|
|
29428
|
+
}, []), zt = R((t) => {
|
|
29429
|
+
let n = Lt.current, r = window.getSelection().toString().length > 0 || document.activeElement && document.activeElement.tagName === "INPUT" && document.activeElement.selectionStart !== document.activeElement.selectionEnd;
|
|
29430
|
+
Lt.current = !1, !(n || r) && (!document.querySelector(".easylogic-colorpicker") && !Le.querySelector(".easylogic-colorpicker") && !t.target.closest(".email-pane__content-col") && !t.target.closest(".blocks-modal-container") && !t.target.closest(".email-pane__collapse-wrapper") && !t.target.closest(".selected-element-panel__columns-settings__controls__column__remove") && !t.target.closest(".email-preview__content-col_main") && !t.target.closest(".email-preview-menu") && !t.target.closest(".monaco-editor") && !t.target.closest(".main__pane-close-btn") && !t.target.closest(".main__pane-trigger") && !t.target.closest(".ant-modal-wrap") && !t.target.closest(".email-pane__sizes") && !t.target.closest(".ant-input-clear-icon") && !jt && !t.target.closest(".email-preview-menu__history") && !t.target.closest(".selected-element-panel-content") && !t.target.closest(".toggle_view") && !t.target.closest(".upload-bg-image__menu") && !t.target.closest(".email-pane__paths") && !t.target.closest(".ant-tabs-extra-content") && !t.target.closest(".anticon-delete") && !It && re !== Ne.IMAGE_EDITOR_MODAL && (E === "Properties" && (h(Hr()), d.send({ operation: g.SANDBOX_ELEMENT_ACTIVE_RESET }), Ee([])), E === "History" && h(zr(xe)), h(Cr(!0)), d.send({
|
|
29431
29431
|
operation: g.SANDBOX_LOCK_EDIT,
|
|
29432
29432
|
data: !1
|
|
29433
29433
|
}), setTimeout(() => {
|
|
@@ -29439,14 +29439,15 @@ var Qb = class {
|
|
|
29439
29439
|
re,
|
|
29440
29440
|
jt,
|
|
29441
29441
|
E,
|
|
29442
|
-
d
|
|
29443
|
-
|
|
29442
|
+
d,
|
|
29443
|
+
It
|
|
29444
|
+
]), [Bt, Vt] = B(!0), { data: Ht = [], refetch: Ut } = _d(Ye, { skip: !Ye }), [Wt, Gt] = B(""), [Kt, qt] = B("");
|
|
29444
29445
|
z(() => {
|
|
29445
|
-
Ye &&
|
|
29446
|
+
Ye && Ut();
|
|
29446
29447
|
}, [
|
|
29447
29448
|
E,
|
|
29448
29449
|
Ye,
|
|
29449
|
-
|
|
29450
|
+
Ut
|
|
29450
29451
|
]), z(() => {
|
|
29451
29452
|
Ye && !Object.keys(wt).length && Et === "fulfilled" && Tt();
|
|
29452
29453
|
}, [
|
|
@@ -29487,20 +29488,20 @@ var Qb = class {
|
|
|
29487
29488
|
]), z(() => {
|
|
29488
29489
|
$e({}), h(Xe === "email" ? As({}) : No({}));
|
|
29489
29490
|
}, [h, Xe]);
|
|
29490
|
-
let
|
|
29491
|
+
let Jt = R((e) => {
|
|
29491
29492
|
h(ss(e));
|
|
29492
|
-
}, [h]), Jt = R((e) => {
|
|
29493
|
-
h(Ho(e));
|
|
29494
29493
|
}, [h]), Yt = R((e) => {
|
|
29494
|
+
h(Ho(e));
|
|
29495
|
+
}, [h]), Xt = R((e) => {
|
|
29495
29496
|
h(Xe === "email" ? As(e) : No(e));
|
|
29496
29497
|
}, [h, Xe]);
|
|
29497
29498
|
z(() => {
|
|
29498
29499
|
let e = it.current, t = rt.current;
|
|
29499
29500
|
he(j ? t : e);
|
|
29500
29501
|
}, [j, M]);
|
|
29501
|
-
let
|
|
29502
|
+
let Zt = R((e) => {
|
|
29502
29503
|
ve(e), e === "search" ? we(!0) : (we(!1), be(e)), setTimeout(xt, 50);
|
|
29503
|
-
}, [xt]),
|
|
29504
|
+
}, [xt]), Qt = R((t) => {
|
|
29504
29505
|
let n = t.data.operation, r = t.data, i = t.data.action;
|
|
29505
29506
|
if (n === "application_block_inserted" || t.data.operationId === "application_block_inserted") {
|
|
29506
29507
|
let n = t.data.operationId ? t.data.data : r || {}, i = n.type === "project" || n.type === "template" || n.type === "common" ? "block" : "structure";
|
|
@@ -29520,11 +29521,11 @@ var Qb = class {
|
|
|
29520
29521
|
});
|
|
29521
29522
|
}, 100), n === g.APPLICATION_PREVIEW_ALERT_SHOW && Pe(r.settings.show), n === g.APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW && Ie(!0), n === g.APPLICATION_ACTION && i === "toggle_editor" && h(Fr()), n === g.APPLICATION_IFRAME_SET_HEIGHT && (Le.querySelector(".email-pane__iframe").style.height = r.settings.height + "px"), n === g.APPLICATION_EMAIL_SETTINGS_SET) {
|
|
29522
29523
|
let e = Object.assign({}, r.settings);
|
|
29523
|
-
delete e.preheader, Object.values(e).every((e) => !e) ? (h(ns(!0)), h(Hr())) :
|
|
29524
|
+
delete e.preheader, Object.values(e).every((e) => !e) ? (h(ns(!0)), h(Hr())) : Jt(r.settings), r.settings.noBlocks, h(xr(r.settings.responsive)), Vt(e.structuresMedia);
|
|
29524
29525
|
}
|
|
29525
|
-
if (n === g.APPLICATION_BLOCK_SETTINGS_SET && (Object.values(r.settings).every((e) => !e) ? (h(jo(!0)), h(Hr())) : (
|
|
29526
|
+
if (n === g.APPLICATION_BLOCK_SETTINGS_SET && (Object.values(r.settings).every((e) => !e) ? (h(jo(!0)), h(Hr())) : (Yt(r.settings), Vt(r.settings.structuresMedia))), n === g.APPLICATION_ELEMENT_SETTINGS_SET) {
|
|
29526
29527
|
let e = Object.values(k), t = r.tab ? !0 : !e.includes(r.type);
|
|
29527
|
-
t && E === "Properties" && h(Hr()), r.type === k.EMPTY_TABLE || r.type === k.EMPTY_TD ? (h(zr(xe)), r.type === k.EMPTY_TABLE ? (At(Ce), r.tab ?
|
|
29528
|
+
t && E === "Properties" && h(Hr()), r.type === k.EMPTY_TABLE || r.type === k.EMPTY_TD ? (h(zr(xe)), r.type === k.EMPTY_TABLE ? (At(Ce), r.tab ? Zt(r.tab) : Zt("common")) : r.type === k.EMPTY_TD && At(c)) : r.type && E !== "Properties" && h(zr(ge)), r.type === k.CAROUSEL || r.type === k.ACCORDION ? ($e((e) => ({
|
|
29528
29529
|
settings: {
|
|
29529
29530
|
...r.settings,
|
|
29530
29531
|
type: t ? null : r.type,
|
|
@@ -29535,7 +29536,7 @@ var Qb = class {
|
|
|
29535
29536
|
parent: t ? null : r.settings.parent,
|
|
29536
29537
|
caption: r.caption,
|
|
29537
29538
|
extraTabs: e.extraTabs
|
|
29538
|
-
})),
|
|
29539
|
+
})), Xt({})) : (Xt({
|
|
29539
29540
|
...r.settings,
|
|
29540
29541
|
type: t ? null : r.type,
|
|
29541
29542
|
parent: t ? null : r.settings.parent,
|
|
@@ -29545,11 +29546,11 @@ var Qb = class {
|
|
|
29545
29546
|
n === g.APPLICATION_ELEMENT_SETTINGS_CLOSE && h(Hr());
|
|
29546
29547
|
}, [
|
|
29547
29548
|
h,
|
|
29548
|
-
qt,
|
|
29549
29549
|
Jt,
|
|
29550
29550
|
Yt,
|
|
29551
|
-
E,
|
|
29552
29551
|
Xt,
|
|
29552
|
+
E,
|
|
29553
|
+
Zt,
|
|
29553
29554
|
Le,
|
|
29554
29555
|
C,
|
|
29555
29556
|
e,
|
|
@@ -29573,7 +29574,7 @@ var Qb = class {
|
|
|
29573
29574
|
}
|
|
29574
29575
|
} else ne || te.id?.toString() !== T?.members?.owner.ID ? y.mode === "simple" && h(Or("pro")) : h(Or("simple"));
|
|
29575
29576
|
}, []);
|
|
29576
|
-
let
|
|
29577
|
+
let $t = (t) => {
|
|
29577
29578
|
ne || (te.id?.toString(), T?.members?.owner.ID), setTimeout(() => {
|
|
29578
29579
|
if (ne || te.id?.toString() !== T?.members?.owner.ID) {
|
|
29579
29580
|
let n = t ? "pro" : "editor";
|
|
@@ -29592,7 +29593,7 @@ var Qb = class {
|
|
|
29592
29593
|
project_id: T?.id || m
|
|
29593
29594
|
});
|
|
29594
29595
|
}, 200);
|
|
29595
|
-
},
|
|
29596
|
+
}, en = () => {
|
|
29596
29597
|
j && h(Fr()), h(Hr()), h(Or("simple")), yt(!1), ht(!1), C({
|
|
29597
29598
|
event: "change",
|
|
29598
29599
|
action: "change_config_mode",
|
|
@@ -29601,7 +29602,7 @@ var Qb = class {
|
|
|
29601
29602
|
project_id: T?.id || m
|
|
29602
29603
|
});
|
|
29603
29604
|
};
|
|
29604
|
-
Io(
|
|
29605
|
+
Io(Qt), z(() => {
|
|
29605
29606
|
let t = d.addListener("application_atom_inserted", (t) => {
|
|
29606
29607
|
C({
|
|
29607
29608
|
event: "add",
|
|
@@ -29634,7 +29635,7 @@ var Qb = class {
|
|
|
29634
29635
|
m,
|
|
29635
29636
|
T?.id
|
|
29636
29637
|
]);
|
|
29637
|
-
let
|
|
29638
|
+
let tn = (t) => {
|
|
29638
29639
|
if (Le.querySelector(".atoms__list"), y.toggleSidePanel && t === E ? h(zr(D)) : t === "Optimize" ? ji(l, _) : t !== "Properties" && t !== "History" ? (h(zr(t)), C({
|
|
29639
29640
|
event: "navigate",
|
|
29640
29641
|
action: "navigate_email_pane_tab",
|
|
@@ -29662,11 +29663,11 @@ var Qb = class {
|
|
|
29662
29663
|
break;
|
|
29663
29664
|
default: _t(0);
|
|
29664
29665
|
}
|
|
29665
|
-
},
|
|
29666
|
+
}, nn = Xs(), [rn, an] = B("unset"), on = R(() => {
|
|
29666
29667
|
let e, t = rt.current?.getBoundingClientRect();
|
|
29667
|
-
if (
|
|
29668
|
+
if (nn?.current?.getBoundingClientRect().top >= 0) {
|
|
29668
29669
|
let e = t && Math.round(t && t?.height - 30);
|
|
29669
|
-
|
|
29670
|
+
nn.current.style.height = `${e}px`, an(e - 30);
|
|
29670
29671
|
}
|
|
29671
29672
|
e && window.clearTimeout(e), e = window.setTimeout(function() {
|
|
29672
29673
|
d.isInited() && Nt();
|
|
@@ -29679,19 +29680,19 @@ var Qb = class {
|
|
|
29679
29680
|
Tt,
|
|
29680
29681
|
E
|
|
29681
29682
|
]);
|
|
29682
|
-
let
|
|
29683
|
+
let sn = (e) => At(e || ""), [un, dn] = B(+window.localStorage.getItem(n.em_code_mode_pane_sizes) || 50), mn = Xs(un);
|
|
29683
29684
|
z(() => {
|
|
29684
|
-
|
|
29685
|
-
}, [
|
|
29686
|
-
let
|
|
29685
|
+
mn.current = un;
|
|
29686
|
+
}, [un]);
|
|
29687
|
+
let hn = () => {
|
|
29687
29688
|
we(!1), ve(ye);
|
|
29688
|
-
},
|
|
29689
|
+
}, gn = () => {
|
|
29689
29690
|
let e = Le.querySelector(".block-search__preview");
|
|
29690
29691
|
e && (e.style.opacity = "0", e.style.transform = "translateX(-99%)", setTimeout(function() {
|
|
29691
29692
|
e.remove();
|
|
29692
29693
|
}, 300));
|
|
29693
|
-
},
|
|
29694
|
-
y.blocksEmptyEnabled &&
|
|
29694
|
+
}, _n = [];
|
|
29695
|
+
y.blocksEmptyEnabled && _n.push({
|
|
29695
29696
|
label: /* @__PURE__ */ H(X, {
|
|
29696
29697
|
classNames: { body: "email-pane__tooltip" },
|
|
29697
29698
|
placement: "top",
|
|
@@ -29705,7 +29706,7 @@ var Qb = class {
|
|
|
29705
29706
|
})
|
|
29706
29707
|
}),
|
|
29707
29708
|
value: "empty"
|
|
29708
|
-
}), y.blocksSavedEnabled &&
|
|
29709
|
+
}), y.blocksSavedEnabled && _n.push({
|
|
29709
29710
|
label: /* @__PURE__ */ H(X, {
|
|
29710
29711
|
classNames: { body: "email-pane__tooltip" },
|
|
29711
29712
|
placement: "top",
|
|
@@ -29719,7 +29720,7 @@ var Qb = class {
|
|
|
29719
29720
|
})
|
|
29720
29721
|
}),
|
|
29721
29722
|
value: "project"
|
|
29722
|
-
}), y.blocksCommonEnabled &&
|
|
29723
|
+
}), y.blocksCommonEnabled && _n.push({
|
|
29723
29724
|
label: /* @__PURE__ */ H(X, {
|
|
29724
29725
|
classNames: { body: "email-pane__tooltip" },
|
|
29725
29726
|
placement: "top",
|
|
@@ -29733,7 +29734,7 @@ var Qb = class {
|
|
|
29733
29734
|
})
|
|
29734
29735
|
}),
|
|
29735
29736
|
value: "common"
|
|
29736
|
-
}), y.blocksTemplateEnabled &&
|
|
29737
|
+
}), y.blocksTemplateEnabled && _n.push({
|
|
29737
29738
|
label: /* @__PURE__ */ H(X, {
|
|
29738
29739
|
classNames: { body: "email-pane__tooltip" },
|
|
29739
29740
|
placement: "top",
|
|
@@ -29747,7 +29748,7 @@ var Qb = class {
|
|
|
29747
29748
|
})
|
|
29748
29749
|
}),
|
|
29749
29750
|
value: "template"
|
|
29750
|
-
}), y.blocksSearchEnabled &&
|
|
29751
|
+
}), y.blocksSearchEnabled && _n.push({
|
|
29751
29752
|
label: /* @__PURE__ */ H(X, {
|
|
29752
29753
|
classNames: { body: "email-pane__tooltip" },
|
|
29753
29754
|
placement: "top",
|
|
@@ -29762,7 +29763,7 @@ var Qb = class {
|
|
|
29762
29763
|
}),
|
|
29763
29764
|
value: "search"
|
|
29764
29765
|
});
|
|
29765
|
-
let
|
|
29766
|
+
let vn = [{
|
|
29766
29767
|
label: /* @__PURE__ */ H("div", {
|
|
29767
29768
|
className: "email-pane__tab",
|
|
29768
29769
|
children: l("Elements")
|
|
@@ -29789,9 +29790,9 @@ var Qb = class {
|
|
|
29789
29790
|
width: "100%",
|
|
29790
29791
|
marginTop: 24
|
|
29791
29792
|
},
|
|
29792
|
-
onChange:
|
|
29793
|
+
onChange: Zt,
|
|
29793
29794
|
value: _e,
|
|
29794
|
-
options:
|
|
29795
|
+
options: _n
|
|
29795
29796
|
}),
|
|
29796
29797
|
Se && /* @__PURE__ */ H("div", { style: {
|
|
29797
29798
|
width: "100%",
|
|
@@ -29809,7 +29810,7 @@ var Qb = class {
|
|
|
29809
29810
|
padding: "0 2px 0",
|
|
29810
29811
|
cursor: "pointer"
|
|
29811
29812
|
},
|
|
29812
|
-
onClick:
|
|
29813
|
+
onClick: hn
|
|
29813
29814
|
})
|
|
29814
29815
|
})
|
|
29815
29816
|
]
|
|
@@ -29822,7 +29823,7 @@ var Qb = class {
|
|
|
29822
29823
|
children: [/* @__PURE__ */ H("div", {
|
|
29823
29824
|
className: "blocks-search__empty-shadow",
|
|
29824
29825
|
style: { display: _e === "empty" && !Se ? "block" : "none" },
|
|
29825
|
-
children: H(
|
|
29826
|
+
children: H(Bt ? D_ : T_, {})
|
|
29826
29827
|
}), /* @__PURE__ */ H("div", {
|
|
29827
29828
|
style: {
|
|
29828
29829
|
height: y.blocksSectionsShow ? "calc(100% - 24px)" : "100%",
|
|
@@ -29838,18 +29839,18 @@ var Qb = class {
|
|
|
29838
29839
|
})
|
|
29839
29840
|
})]
|
|
29840
29841
|
})] })
|
|
29841
|
-
}],
|
|
29842
|
+
}], yn = [
|
|
29842
29843
|
{
|
|
29843
29844
|
disabled: mt,
|
|
29844
29845
|
key: ge,
|
|
29845
|
-
style: { height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
29846
|
+
style: { height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%" },
|
|
29846
29847
|
className: "em-analytics__email-tab-properties",
|
|
29847
29848
|
children: /* @__PURE__ */ H(V, { children: (!!Ze?.type || !!Qe?.type || !!Qe?.extraTabs?.length) && /* @__PURE__ */ H("div", {
|
|
29848
29849
|
className: cu("email-pane__collapse-wrapper", {
|
|
29849
29850
|
"mobile-view": N,
|
|
29850
29851
|
"mobile-properties": N && de !== "Structure"
|
|
29851
29852
|
}),
|
|
29852
|
-
onMouseLeave:
|
|
29853
|
+
onMouseLeave: gn,
|
|
29853
29854
|
children: /* @__PURE__ */ H(Iy, {
|
|
29854
29855
|
email: e,
|
|
29855
29856
|
formSettings: Qe
|
|
@@ -29859,11 +29860,11 @@ var Qb = class {
|
|
|
29859
29860
|
{
|
|
29860
29861
|
disabled: mt,
|
|
29861
29862
|
key: oe,
|
|
29862
|
-
style: { height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
29863
|
+
style: { height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%" },
|
|
29863
29864
|
className: "em-analytics__email-tab-history",
|
|
29864
29865
|
children: Pt && /* @__PURE__ */ H("div", {
|
|
29865
29866
|
className: "email-pane__collapse-wrapper",
|
|
29866
|
-
onMouseLeave:
|
|
29867
|
+
onMouseLeave: gn,
|
|
29867
29868
|
children: /* @__PURE__ */ H(vx, {
|
|
29868
29869
|
setCollapsedHistory: () => h(Cr(!0)),
|
|
29869
29870
|
emailElement: Pt
|
|
@@ -29890,12 +29891,12 @@ var Qb = class {
|
|
|
29890
29891
|
key: xe,
|
|
29891
29892
|
className: "em-analytics__email-tab-build",
|
|
29892
29893
|
style: {
|
|
29893
|
-
height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
29894
|
+
height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%",
|
|
29894
29895
|
overflow: "hidden"
|
|
29895
29896
|
},
|
|
29896
29897
|
children: /* @__PURE__ */ H("div", {
|
|
29897
29898
|
className: cu("email-pane__collapse-wrapper", { "email-pane__collapse-wrapper_no-topleft-radius": E === "Build" || !E }),
|
|
29898
|
-
onMouseLeave:
|
|
29899
|
+
onMouseLeave: gn,
|
|
29899
29900
|
children: /* @__PURE__ */ H(Vc, {
|
|
29900
29901
|
className: cu("secondary-tabs email-pane__collapse", { "secondary-tabs_unset_scroll": kt === Ce }),
|
|
29901
29902
|
size: "large",
|
|
@@ -29904,8 +29905,8 @@ var Qb = class {
|
|
|
29904
29905
|
tabPane: !1
|
|
29905
29906
|
},
|
|
29906
29907
|
activeKey: kt,
|
|
29907
|
-
onChange:
|
|
29908
|
-
items:
|
|
29908
|
+
onChange: sn,
|
|
29909
|
+
items: vn
|
|
29909
29910
|
})
|
|
29910
29911
|
})
|
|
29911
29912
|
},
|
|
@@ -29926,7 +29927,7 @@ var Qb = class {
|
|
|
29926
29927
|
key: Be,
|
|
29927
29928
|
className: "em-analytics__email-tab-styles",
|
|
29928
29929
|
style: {
|
|
29929
|
-
height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
29930
|
+
height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%",
|
|
29930
29931
|
overflow: "hidden"
|
|
29931
29932
|
},
|
|
29932
29933
|
children: /* @__PURE__ */ H("div", {
|
|
@@ -29935,7 +29936,7 @@ var Qb = class {
|
|
|
29935
29936
|
})
|
|
29936
29937
|
}
|
|
29937
29938
|
];
|
|
29938
|
-
y.commentsEnabled &&
|
|
29939
|
+
y.commentsEnabled && yn.push({
|
|
29939
29940
|
disabled: mt,
|
|
29940
29941
|
label: /* @__PURE__ */ U(X, {
|
|
29941
29942
|
classNames: { body: "email-pane__tooltip" },
|
|
@@ -29954,16 +29955,16 @@ var Qb = class {
|
|
|
29954
29955
|
strokeWidth: y.iconStrokeWidth,
|
|
29955
29956
|
className: "free-mode-firewall-icon free-mode-firewall-icon_emailpane"
|
|
29956
29957
|
}),
|
|
29957
|
-
!!
|
|
29958
|
+
!!Ht.length && /* @__PURE__ */ H("span", {
|
|
29958
29959
|
className: "email-pane__comment-counter",
|
|
29959
|
-
children:
|
|
29960
|
+
children: Ht.filter((e) => e.comment_status !== "deleted").length
|
|
29960
29961
|
})
|
|
29961
29962
|
]
|
|
29962
29963
|
}),
|
|
29963
29964
|
key: "Discuss",
|
|
29964
29965
|
className: "email-pane__tab-discuss em-analytics__email-tab-discuss",
|
|
29965
29966
|
style: {
|
|
29966
|
-
height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
29967
|
+
height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%",
|
|
29967
29968
|
overflow: "hidden"
|
|
29968
29969
|
},
|
|
29969
29970
|
children: /* @__PURE__ */ H("div", {
|
|
@@ -29983,7 +29984,7 @@ var Qb = class {
|
|
|
29983
29984
|
className: "email-settings__collapse-panel",
|
|
29984
29985
|
children: Ye ? /* @__PURE__ */ H(Z_, {
|
|
29985
29986
|
email: e,
|
|
29986
|
-
comments:
|
|
29987
|
+
comments: Ht,
|
|
29987
29988
|
subjectId: Ye,
|
|
29988
29989
|
isLoggedIn: !0,
|
|
29989
29990
|
emailElementType: Xe
|
|
@@ -30005,7 +30006,7 @@ var Qb = class {
|
|
|
30005
30006
|
})
|
|
30006
30007
|
})
|
|
30007
30008
|
});
|
|
30008
|
-
let
|
|
30009
|
+
let bn = () => {
|
|
30009
30010
|
fe({ entity_id: Ye }).then((e) => {
|
|
30010
30011
|
e.error ? x.error({
|
|
30011
30012
|
message: e.error.data.code,
|
|
@@ -30015,10 +30016,10 @@ var Qb = class {
|
|
|
30015
30016
|
description: e.data.success
|
|
30016
30017
|
}), Tt(), ke(!1);
|
|
30017
30018
|
});
|
|
30018
|
-
},
|
|
30019
|
+
}, xn = () => {
|
|
30019
30020
|
ke(!1);
|
|
30020
30021
|
};
|
|
30021
|
-
y.aiAssistentEnabled &&
|
|
30022
|
+
y.aiAssistentEnabled && yn.push({
|
|
30022
30023
|
disabled: mt,
|
|
30023
30024
|
label: /* @__PURE__ */ U(X, {
|
|
30024
30025
|
classNames: { body: "email-pane__tooltip" },
|
|
@@ -30046,7 +30047,7 @@ var Qb = class {
|
|
|
30046
30047
|
key: "AiChat",
|
|
30047
30048
|
className: "email-pane__tab-discuss em-analytics__email-tab-discuss",
|
|
30048
30049
|
style: {
|
|
30049
|
-
height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
30050
|
+
height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%",
|
|
30050
30051
|
overflow: "hidden"
|
|
30051
30052
|
},
|
|
30052
30053
|
children: /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H("div", {
|
|
@@ -30065,7 +30066,7 @@ var Qb = class {
|
|
|
30065
30066
|
title: l("Clear chat"),
|
|
30066
30067
|
children: /* @__PURE__ */ H(jc, {
|
|
30067
30068
|
description: l("Clear chat history?"),
|
|
30068
|
-
onConfirm:
|
|
30069
|
+
onConfirm: bn,
|
|
30069
30070
|
okText: l("Yes"),
|
|
30070
30071
|
cancelText: l("No"),
|
|
30071
30072
|
icon: "",
|
|
@@ -30110,7 +30111,7 @@ var Qb = class {
|
|
|
30110
30111
|
}]
|
|
30111
30112
|
})
|
|
30112
30113
|
}) })
|
|
30113
|
-
}), y.optimizeEnabled &&
|
|
30114
|
+
}), y.optimizeEnabled && yn.push({
|
|
30114
30115
|
disabled: mt,
|
|
30115
30116
|
label: /* @__PURE__ */ U(X, {
|
|
30116
30117
|
classNames: { body: "email-pane__tooltip" },
|
|
@@ -30132,7 +30133,7 @@ var Qb = class {
|
|
|
30132
30133
|
key: "Optimise",
|
|
30133
30134
|
className: "em-analytics__email-tab-optimise",
|
|
30134
30135
|
style: {
|
|
30135
|
-
height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
30136
|
+
height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%",
|
|
30136
30137
|
overflow: "hidden"
|
|
30137
30138
|
},
|
|
30138
30139
|
children: /* @__PURE__ */ H("div", {
|
|
@@ -30154,7 +30155,7 @@ var Qb = class {
|
|
|
30154
30155
|
}]
|
|
30155
30156
|
})
|
|
30156
30157
|
})
|
|
30157
|
-
}), y.settingsEnabled &&
|
|
30158
|
+
}), y.settingsEnabled && yn.push({
|
|
30158
30159
|
disabled: mt,
|
|
30159
30160
|
label: /* @__PURE__ */ H(X, {
|
|
30160
30161
|
classNames: { body: "email-pane__tooltip" },
|
|
@@ -30170,7 +30171,7 @@ var Qb = class {
|
|
|
30170
30171
|
key: "Edit",
|
|
30171
30172
|
className: "em-analytics__email-tab-edit",
|
|
30172
30173
|
style: {
|
|
30173
|
-
height: y.sidePanelFloating ? j && M === "bottom" ?
|
|
30174
|
+
height: y.sidePanelFloating ? j && M === "bottom" ? rn : "calc(100% - 30px)" : "100%",
|
|
30174
30175
|
overflow: "hidden"
|
|
30175
30176
|
},
|
|
30176
30177
|
children: /* @__PURE__ */ H("div", {
|
|
@@ -30178,43 +30179,43 @@ var Qb = class {
|
|
|
30178
30179
|
children: /* @__PURE__ */ H(_x, { email: e })
|
|
30179
30180
|
})
|
|
30180
30181
|
});
|
|
30181
|
-
let [
|
|
30182
|
+
let [Sn, Cn] = B([]), [wn, Tn] = B(!1), [En, Dn] = B(0), [On, kn] = B(0), An = Le.querySelector(".email-pane__col_preview")?.getBoundingClientRect().width - (y.sidePanelFloating ? 0 : 38), [jn, Mn] = B(null);
|
|
30182
30183
|
z(() => {
|
|
30183
|
-
Ye &&
|
|
30184
|
-
}, [Ye,
|
|
30184
|
+
Ye && Ut(Ye);
|
|
30185
|
+
}, [Ye, Ut]), z(() => {
|
|
30185
30186
|
let e = d.onInit(() => {
|
|
30186
30187
|
d.send({
|
|
30187
30188
|
operation: g.SANDBOX_LOCK_EDIT,
|
|
30188
30189
|
data: !1
|
|
30189
30190
|
}), d.send({
|
|
30190
30191
|
operation: g.SANDBOX_LOCK_DISCUSS,
|
|
30191
|
-
value:
|
|
30192
|
+
value: wn
|
|
30192
30193
|
});
|
|
30193
30194
|
});
|
|
30194
30195
|
return () => e.dispose();
|
|
30195
|
-
}, [
|
|
30196
|
-
if (
|
|
30196
|
+
}, [wn, d]), z(() => {
|
|
30197
|
+
if (Sn.length < 2) {
|
|
30197
30198
|
let e = me?.getBoundingClientRect(), t = setInterval(n, 50);
|
|
30198
|
-
|
|
30199
|
+
Cn((e) => [...e, t]);
|
|
30199
30200
|
function n() {
|
|
30200
30201
|
d.isInited() && e && (Nt(), clearInterval(t));
|
|
30201
30202
|
}
|
|
30202
30203
|
}
|
|
30203
|
-
return clearInterval(
|
|
30204
|
+
return clearInterval(Sn[Sn.length - 1]);
|
|
30204
30205
|
}, [
|
|
30205
|
-
|
|
30206
|
+
Sn,
|
|
30206
30207
|
me,
|
|
30207
30208
|
Nt,
|
|
30208
30209
|
d
|
|
30209
30210
|
]);
|
|
30210
|
-
let
|
|
30211
|
+
let Pn = R((e = O) => {
|
|
30211
30212
|
d.send({
|
|
30212
30213
|
operation: g.SANDBOX_IFRAME_SETSIZE,
|
|
30213
30214
|
settings: { iframeWidth: e + 2 }
|
|
30214
30215
|
}), tt.current?.resize();
|
|
30215
30216
|
}, [O, d]);
|
|
30216
30217
|
z(() => {
|
|
30217
|
-
if (
|
|
30218
|
+
if (Tn(E === Ke), E !== "Disabled_tab") {
|
|
30218
30219
|
let e = Le.querySelector(".email-pane__row")?.getBoundingClientRect().width;
|
|
30219
30220
|
nt?.current?.getBoundingClientRect().width + 540 > e && h(Nr("100%"));
|
|
30220
30221
|
}
|
|
@@ -30223,61 +30224,61 @@ var Qb = class {
|
|
|
30223
30224
|
E,
|
|
30224
30225
|
Le
|
|
30225
30226
|
]);
|
|
30226
|
-
let
|
|
30227
|
+
let Fn = R(() => {
|
|
30227
30228
|
let e = nt.current;
|
|
30228
30229
|
e && (e.style.borderWidth = "1px", y.sidePanelFloating || (e.style.marginLeft = "-1px", e.style.marginRight = "-1px"), e.style.borderLeftColor = null, e.style.borderRightColor = null);
|
|
30229
|
-
}, [y.sidePanelFloating]),
|
|
30230
|
-
let t =
|
|
30231
|
-
|
|
30230
|
+
}, [y.sidePanelFloating]), In = R((e) => {
|
|
30231
|
+
let t = mn.current;
|
|
30232
|
+
Bn(!1), jn && (setTimeout(() => Pn(), 50), Mn(null)), e.target.classList.contains("email-pane__handle") || Fn(), window.localStorage.setItem(n.em_code_mode_pane_sizes, JSON.stringify(t));
|
|
30232
30233
|
}, [
|
|
30233
|
-
|
|
30234
|
-
|
|
30235
|
-
|
|
30236
|
-
]),
|
|
30237
|
-
t.target.classList.contains("email-pane__handle") && (t.preventDefault(),
|
|
30238
|
-
},
|
|
30234
|
+
Pn,
|
|
30235
|
+
jn,
|
|
30236
|
+
Fn
|
|
30237
|
+
]), Ln = (e) => (t) => {
|
|
30238
|
+
t.target.classList.contains("email-pane__handle") && (t.preventDefault(), Dn(t.target.parentNode.offsetWidth), kn(t.pageX), Mn(e), Mt(e));
|
|
30239
|
+
}, Rn = (e) => {
|
|
30239
30240
|
let t = nt.current;
|
|
30240
|
-
typeof e == "string" && (!
|
|
30241
|
-
}, [
|
|
30242
|
-
if (!
|
|
30243
|
-
let t = (e.pageX -
|
|
30244
|
-
if (n > 318 && n < Math.min(
|
|
30241
|
+
typeof e == "string" && (!jn || jn === e) ? (Le.querySelector(".email-pane__iframe").style.width = "calc(100% + 1px)", e === "right" ? (t.style.borderRightColor = b.colorPrimary, t.style.borderRightWidth = "2px") : (t.style.borderLeftColor = b.colorPrimary, t.style.borderLeftWidth = "2px", Le.querySelector(".email-pane__iframe").style.marginLeft = "-1px")) : jn || (Fn(), Le.querySelector(".email-pane__iframe").style.width = "1px", Le.querySelector(".email-pane__iframe").style.removeProperty("margin-left"));
|
|
30242
|
+
}, [zn, Bn] = B(!1), Vn = () => Bn(!0), Un = R((e) => {
|
|
30243
|
+
if (!jn) return;
|
|
30244
|
+
let t = (e.pageX - On) * 2, n = En + (jn === "left" ? -t : t);
|
|
30245
|
+
if (n > 318 && n < Math.min(An, s)) {
|
|
30245
30246
|
let e = Math.min(n, s);
|
|
30246
30247
|
h(Nr(e)), typeof e == "number" && e <= 425 ? N || pe(!0) : N && pe(!1), tt.current?.resize();
|
|
30247
30248
|
}
|
|
30248
30249
|
}, [
|
|
30249
30250
|
h,
|
|
30250
|
-
|
|
30251
|
-
|
|
30251
|
+
En,
|
|
30252
|
+
On,
|
|
30253
|
+
jn,
|
|
30252
30254
|
An,
|
|
30253
|
-
kn,
|
|
30254
30255
|
N,
|
|
30255
30256
|
pe
|
|
30256
|
-
]),
|
|
30257
|
-
if (
|
|
30257
|
+
]), Wn = R((e) => {
|
|
30258
|
+
if (zn) if (M === "bottom") {
|
|
30258
30259
|
let t = at.current.getBoundingClientRect().height, n = at.current.getBoundingClientRect().top, r = (e.clientY - n) / t * 100;
|
|
30259
30260
|
if (r < 20 || r > 80) return;
|
|
30260
|
-
|
|
30261
|
+
dn(r), on();
|
|
30261
30262
|
} else {
|
|
30262
30263
|
let t = at.current.getBoundingClientRect().width, n = at.current.getBoundingClientRect().left, r = (e.clientX - n) / t * 100, i = nt.current.getBoundingClientRect().width;
|
|
30263
30264
|
if (y.desktopMobileSwitchPanel && typeof i == "number" && i <= 425 && (h(Nr(425)), N || pe(!0)), r < 20 || r > 80) return;
|
|
30264
|
-
|
|
30265
|
+
dn(r);
|
|
30265
30266
|
}
|
|
30266
30267
|
}, [
|
|
30267
|
-
|
|
30268
|
+
zn,
|
|
30268
30269
|
M,
|
|
30269
|
-
|
|
30270
|
+
on,
|
|
30270
30271
|
N,
|
|
30271
30272
|
h,
|
|
30272
30273
|
y.desktopMobileSwitchPanel,
|
|
30273
30274
|
pe
|
|
30274
30275
|
]);
|
|
30275
30276
|
z(() => {
|
|
30276
|
-
|
|
30277
|
-
}, [j,
|
|
30278
|
-
let
|
|
30277
|
+
on();
|
|
30278
|
+
}, [j, on]);
|
|
30279
|
+
let Kn = (t) => {
|
|
30279
30280
|
let n = typeof t == "number" ? Math.min(t, s) : t;
|
|
30280
|
-
h(Nr(n)), setTimeout(() =>
|
|
30281
|
+
h(Nr(n)), setTimeout(() => Pn(n), 700), typeof n == "number" && n <= 425 ? N || pe(!0) : N && pe(!1);
|
|
30281
30282
|
let r = typeof n == "number" ? n : n === "100%" ? "full" : n, i = typeof n == "number" && n <= 425 ? "mobile" : "desktop";
|
|
30282
30283
|
C({
|
|
30283
30284
|
event: "change",
|
|
@@ -30290,18 +30291,18 @@ var Qb = class {
|
|
|
30290
30291
|
};
|
|
30291
30292
|
z(() => {
|
|
30292
30293
|
let e = new se.Disposable();
|
|
30293
|
-
return e.addDisposable(pv(Le, "mousedown",
|
|
30294
|
+
return e.addDisposable(pv(Le, "mousedown", Rt, !0)), e.addDisposable(pv(Le, "click", zt)), e.addDisposable(pv(Le, "mouseup", (e) => In(e, un), !0)), () => {
|
|
30294
30295
|
e.dispose();
|
|
30295
30296
|
};
|
|
30296
30297
|
}, [
|
|
30297
30298
|
Le,
|
|
30299
|
+
zt,
|
|
30298
30300
|
Rt,
|
|
30299
|
-
|
|
30300
|
-
|
|
30301
|
-
|
|
30302
|
-
window.removeEventListener("mousemove", Vn, !0), window.removeEventListener("mousemove", Un), window.removeEventListener("scroll", an, !0), window.removeEventListener("keydown", Ft);
|
|
30301
|
+
In
|
|
30302
|
+
]), z(() => (window.addEventListener("scroll", on, !0), window.addEventListener("mousemove", Un, !0), window.addEventListener("mousemove", Wn), window.addEventListener("keydown", Ft), () => {
|
|
30303
|
+
window.removeEventListener("mousemove", Un, !0), window.removeEventListener("mousemove", Wn), window.removeEventListener("scroll", on, !0), window.removeEventListener("keydown", Ft);
|
|
30303
30304
|
}));
|
|
30304
|
-
let
|
|
30305
|
+
let qn = (t) => {
|
|
30305
30306
|
let n = j ? "visual" : "code", r = !j;
|
|
30306
30307
|
if (j ? h(Fr()) : typeof t == "string" ? (h(Tr(t)), !j && h(Fr())) : h(Fr()), r) {
|
|
30307
30308
|
let n = Xe === "block" ? "block" : "email", r = typeof t == "string" ? t : M || "toggle";
|
|
@@ -30323,11 +30324,11 @@ var Qb = class {
|
|
|
30323
30324
|
}), h(Hr()), setTimeout(() => {
|
|
30324
30325
|
h(Xe === "block" ? No({ type: null }) : As({ type: null }));
|
|
30325
30326
|
}, 300), d.send({ operation: g.SANDBOX_ELEMENT_ACTIVE_RESET }), h(Qo());
|
|
30326
|
-
}, [
|
|
30327
|
+
}, [Jn, Yn] = B(y.emailPaneDesktopSize || O);
|
|
30327
30328
|
z(() => {
|
|
30328
30329
|
y.emailPaneDesktopSize && h(Nr(y.emailPaneDesktopSize));
|
|
30329
30330
|
}, [h, y.emailPaneDesktopSize]), z(() => {
|
|
30330
|
-
|
|
30331
|
+
Yn(j && M !== "bottom" && !N && y.desktopMobileSwitchPanel ? "100%" : O);
|
|
30331
30332
|
}, [
|
|
30332
30333
|
h,
|
|
30333
30334
|
y.emailPaneDesktopSize,
|
|
@@ -30337,11 +30338,11 @@ var Qb = class {
|
|
|
30337
30338
|
y.desktopMobileSwitchPanel,
|
|
30338
30339
|
O
|
|
30339
30340
|
]);
|
|
30340
|
-
let
|
|
30341
|
-
At(Ce),
|
|
30341
|
+
let Xn = () => {
|
|
30342
|
+
At(Ce), Zt("project");
|
|
30342
30343
|
};
|
|
30343
30344
|
return z(() => {
|
|
30344
|
-
a &&
|
|
30345
|
+
a && Xn();
|
|
30345
30346
|
}, [a]), /* @__PURE__ */ U(Ec, {
|
|
30346
30347
|
className: cu("email-pane", {
|
|
30347
30348
|
"email-pane_code-mode": j,
|
|
@@ -30390,8 +30391,8 @@ var Qb = class {
|
|
|
30390
30391
|
flexGrow: 1,
|
|
30391
30392
|
overflowY: y.sidePanelFloating ? "scroll" : "hidden",
|
|
30392
30393
|
overflowX: "hidden",
|
|
30393
|
-
height: j && M === "bottom" ? `calc(${
|
|
30394
|
-
width: `${M === "left" ? 100 -
|
|
30394
|
+
height: j && M === "bottom" ? `calc(${un}%)` : "100%",
|
|
30395
|
+
width: `${M === "left" ? 100 - un : M === "bottom" ? 100 : un}%`
|
|
30395
30396
|
},
|
|
30396
30397
|
id: "pane-content-wrapper",
|
|
30397
30398
|
ref: y.sidePanelFloating ? rt : null,
|
|
@@ -30419,7 +30420,7 @@ var Qb = class {
|
|
|
30419
30420
|
strokeWidth: y.iconStrokeWidth
|
|
30420
30421
|
}),
|
|
30421
30422
|
shape: "circle",
|
|
30422
|
-
onClick: () =>
|
|
30423
|
+
onClick: () => Kn(y.emailPaneDesktopSize || 1e3),
|
|
30423
30424
|
className: "toggle_view desktop_view"
|
|
30424
30425
|
})
|
|
30425
30426
|
}), /* @__PURE__ */ H(X, {
|
|
@@ -30434,7 +30435,7 @@ var Qb = class {
|
|
|
30434
30435
|
strokeWidth: y.iconStrokeWidth
|
|
30435
30436
|
}),
|
|
30436
30437
|
shape: "circle",
|
|
30437
|
-
onClick: () =>
|
|
30438
|
+
onClick: () => Kn(425),
|
|
30438
30439
|
className: "toggle_view mobile_view"
|
|
30439
30440
|
})
|
|
30440
30441
|
})]
|
|
@@ -30445,7 +30446,7 @@ var Qb = class {
|
|
|
30445
30446
|
type: j ? "primary" : "default",
|
|
30446
30447
|
icon: /* @__PURE__ */ H(L, { icon: "Code" }),
|
|
30447
30448
|
shape: "circle",
|
|
30448
|
-
onClick: () =>
|
|
30449
|
+
onClick: () => qn("right")
|
|
30449
30450
|
})
|
|
30450
30451
|
})]
|
|
30451
30452
|
}),
|
|
@@ -30468,7 +30469,7 @@ var Qb = class {
|
|
|
30468
30469
|
},
|
|
30469
30470
|
ref: y.sidePanelFloating ? null : rt,
|
|
30470
30471
|
children: [y.desktopMobileSwitchRule && /* @__PURE__ */ H("div", {
|
|
30471
|
-
className: `email-pane__sizes ${
|
|
30472
|
+
className: `email-pane__sizes ${Wt}`,
|
|
30472
30473
|
children: /* @__PURE__ */ U("div", {
|
|
30473
30474
|
className: "email-pane__width-selectors-wrapper",
|
|
30474
30475
|
children: [
|
|
@@ -30476,79 +30477,79 @@ var Qb = class {
|
|
|
30476
30477
|
className: "device-width__full",
|
|
30477
30478
|
style: { flexGrow: 1 },
|
|
30478
30479
|
onMouseEnter: () => {
|
|
30479
|
-
|
|
30480
|
+
Gt("device-width__full-hovered"), qt(l("Desktop"));
|
|
30480
30481
|
},
|
|
30481
30482
|
onMouseLeave: () => {
|
|
30482
|
-
|
|
30483
|
+
Gt(""), qt("");
|
|
30483
30484
|
},
|
|
30484
|
-
onClick: () =>
|
|
30485
|
+
onClick: () => Kn(1200)
|
|
30485
30486
|
}),
|
|
30486
30487
|
/* @__PURE__ */ H("div", {
|
|
30487
30488
|
className: "device-width__768",
|
|
30488
30489
|
style: { width: 342 / 2 },
|
|
30489
30490
|
onMouseEnter: () => {
|
|
30490
|
-
|
|
30491
|
+
Gt("device-width__768-hovered"), qt(l("Small desktop – 768px"));
|
|
30491
30492
|
},
|
|
30492
30493
|
onMouseLeave: () => {
|
|
30493
|
-
|
|
30494
|
+
Gt(""), qt("");
|
|
30494
30495
|
},
|
|
30495
|
-
onClick: () =>
|
|
30496
|
+
onClick: () => Kn(768)
|
|
30496
30497
|
}),
|
|
30497
30498
|
/* @__PURE__ */ H("div", {
|
|
30498
30499
|
className: "device-width__425",
|
|
30499
30500
|
style: { width: 50 / 2 },
|
|
30500
30501
|
onMouseEnter: () => {
|
|
30501
|
-
|
|
30502
|
+
Gt("device-width__425-hovered"), qt(l("Mobile L – 425px"));
|
|
30502
30503
|
},
|
|
30503
30504
|
onMouseLeave: () => {
|
|
30504
|
-
|
|
30505
|
+
Gt(""), qt("");
|
|
30505
30506
|
},
|
|
30506
|
-
onClick: () =>
|
|
30507
|
+
onClick: () => Kn(425)
|
|
30507
30508
|
}),
|
|
30508
30509
|
/* @__PURE__ */ H("div", {
|
|
30509
30510
|
className: "device-width__375",
|
|
30510
30511
|
style: { width: 56 / 2 },
|
|
30511
30512
|
onMouseEnter: () => {
|
|
30512
|
-
|
|
30513
|
+
Gt("device-width__375-hovered"), qt(l("Mobile M – 375px"));
|
|
30513
30514
|
},
|
|
30514
30515
|
onMouseLeave: () => {
|
|
30515
|
-
|
|
30516
|
+
Gt(""), qt("");
|
|
30516
30517
|
},
|
|
30517
|
-
onClick: () =>
|
|
30518
|
+
onClick: () => Kn(375)
|
|
30518
30519
|
}),
|
|
30519
30520
|
/* @__PURE__ */ H("div", {
|
|
30520
30521
|
className: "device-width__320",
|
|
30521
30522
|
style: { width: 320 },
|
|
30522
30523
|
onMouseEnter: () => {
|
|
30523
|
-
|
|
30524
|
+
Gt("device-width__320-hovered"), qt(l("Mobile S – 320px"));
|
|
30524
30525
|
},
|
|
30525
30526
|
onMouseLeave: () => {
|
|
30526
|
-
|
|
30527
|
+
Gt(""), qt("");
|
|
30527
30528
|
},
|
|
30528
|
-
onClick: () =>
|
|
30529
|
-
children:
|
|
30529
|
+
onClick: () => Kn(320),
|
|
30530
|
+
children: Kt
|
|
30530
30531
|
}),
|
|
30531
30532
|
/* @__PURE__ */ H("div", {
|
|
30532
30533
|
className: "device-width__375",
|
|
30533
30534
|
style: { width: 56 / 2 },
|
|
30534
30535
|
onMouseEnter: () => {
|
|
30535
|
-
|
|
30536
|
+
Gt("device-width__375-hovered"), qt(l("Mobile M – 375px"));
|
|
30536
30537
|
},
|
|
30537
30538
|
onMouseLeave: () => {
|
|
30538
|
-
|
|
30539
|
+
Gt(""), qt("");
|
|
30539
30540
|
},
|
|
30540
|
-
onClick: () =>
|
|
30541
|
+
onClick: () => Kn(375)
|
|
30541
30542
|
}),
|
|
30542
30543
|
/* @__PURE__ */ H("div", {
|
|
30543
30544
|
className: "device-width__425",
|
|
30544
30545
|
style: { width: 50 / 2 },
|
|
30545
30546
|
onMouseEnter: () => {
|
|
30546
|
-
|
|
30547
|
+
Gt("device-width__425-hovered"), qt(l("Mobile L – 425px"));
|
|
30547
30548
|
},
|
|
30548
30549
|
onMouseLeave: () => {
|
|
30549
|
-
|
|
30550
|
+
Gt(""), qt("");
|
|
30550
30551
|
},
|
|
30551
|
-
onClick: () =>
|
|
30552
|
+
onClick: () => Kn(425),
|
|
30552
30553
|
children: /* @__PURE__ */ H(X, {
|
|
30553
30554
|
title: l("Mobile view"),
|
|
30554
30555
|
placement: "bottom",
|
|
@@ -30567,7 +30568,7 @@ var Qb = class {
|
|
|
30567
30568
|
zIndex: 999,
|
|
30568
30569
|
padding: 0,
|
|
30569
30570
|
position: "absolute",
|
|
30570
|
-
onClick: () =>
|
|
30571
|
+
onClick: () => Kn(425)
|
|
30571
30572
|
}
|
|
30572
30573
|
})
|
|
30573
30574
|
})
|
|
@@ -30576,12 +30577,12 @@ var Qb = class {
|
|
|
30576
30577
|
className: "device-width__768",
|
|
30577
30578
|
style: { width: 342 / 2 },
|
|
30578
30579
|
onMouseEnter: () => {
|
|
30579
|
-
|
|
30580
|
+
Gt("device-width__768-hovered"), qt(l("Small desktop – 768px"));
|
|
30580
30581
|
},
|
|
30581
30582
|
onMouseLeave: () => {
|
|
30582
|
-
|
|
30583
|
+
Gt(""), qt("");
|
|
30583
30584
|
},
|
|
30584
|
-
onClick: () =>
|
|
30585
|
+
onClick: () => Kn(768),
|
|
30585
30586
|
children: /* @__PURE__ */ H(X, {
|
|
30586
30587
|
title: l("Desktop view"),
|
|
30587
30588
|
placement: "bottom",
|
|
@@ -30600,7 +30601,7 @@ var Qb = class {
|
|
|
30600
30601
|
zIndex: 999,
|
|
30601
30602
|
padding: 0,
|
|
30602
30603
|
position: "absolute",
|
|
30603
|
-
onClick: () =>
|
|
30604
|
+
onClick: () => Kn(768)
|
|
30604
30605
|
}
|
|
30605
30606
|
})
|
|
30606
30607
|
})
|
|
@@ -30609,47 +30610,47 @@ var Qb = class {
|
|
|
30609
30610
|
className: "device-width__full",
|
|
30610
30611
|
style: { flexGrow: 1 },
|
|
30611
30612
|
onMouseEnter: () => {
|
|
30612
|
-
|
|
30613
|
+
Gt("device-width__full-hovered"), qt(l("Desktop"));
|
|
30613
30614
|
},
|
|
30614
30615
|
onMouseLeave: () => {
|
|
30615
|
-
|
|
30616
|
+
Gt(""), qt("");
|
|
30616
30617
|
},
|
|
30617
|
-
onClick: () =>
|
|
30618
|
+
onClick: () => Kn(1200)
|
|
30618
30619
|
})
|
|
30619
30620
|
]
|
|
30620
30621
|
})
|
|
30621
30622
|
}), /* @__PURE__ */ U("div", {
|
|
30622
|
-
className: cu("email-pane__resizable", { "email-pane__resizable_drag":
|
|
30623
|
-
style: { maxWidth: typeof
|
|
30623
|
+
className: cu("email-pane__resizable", { "email-pane__resizable_drag": jn || zn }),
|
|
30624
|
+
style: { maxWidth: typeof Jn == "number" ? Math.min(Jn, s) : s },
|
|
30624
30625
|
children: [
|
|
30625
30626
|
/* @__PURE__ */ H("div", {
|
|
30626
30627
|
className: "email-pane__handle left",
|
|
30627
|
-
onMouseDown:
|
|
30628
|
-
onMouseEnter: () =>
|
|
30629
|
-
onMouseLeave:
|
|
30628
|
+
onMouseDown: Ln("left"),
|
|
30629
|
+
onMouseEnter: () => Rn("left"),
|
|
30630
|
+
onMouseLeave: Rn
|
|
30630
30631
|
}),
|
|
30631
30632
|
/* @__PURE__ */ H("div", {
|
|
30632
30633
|
className: "email-pane__handle right",
|
|
30633
|
-
onMouseDown:
|
|
30634
|
-
onMouseEnter: () =>
|
|
30635
|
-
onMouseLeave:
|
|
30634
|
+
onMouseDown: Ln("right"),
|
|
30635
|
+
onMouseEnter: () => Rn("right"),
|
|
30636
|
+
onMouseLeave: Rn
|
|
30636
30637
|
}),
|
|
30637
30638
|
/* @__PURE__ */ H("div", {
|
|
30638
|
-
className: cu("email-pane__content-col email-pane__content-col_main", { "email-pane__content-col_disable":
|
|
30639
|
+
className: cu("email-pane__content-col email-pane__content-col_main", { "email-pane__content-col_disable": jn || zn }),
|
|
30639
30640
|
ref: nt,
|
|
30640
30641
|
id: "pane-content-iframe",
|
|
30641
30642
|
children: /* @__PURE__ */ H(hx, {
|
|
30642
30643
|
ref: tt,
|
|
30643
30644
|
className: "email-pane__iframe",
|
|
30644
30645
|
email: e,
|
|
30645
|
-
handlerSendPosition:
|
|
30646
|
+
handlerSendPosition: on
|
|
30646
30647
|
})
|
|
30647
30648
|
})
|
|
30648
30649
|
]
|
|
30649
30650
|
})]
|
|
30650
30651
|
}), /* @__PURE__ */ H(K, {
|
|
30651
30652
|
style: { display: j && M !== "bottom" || y.disableSideMenu ? "none" : "initial" },
|
|
30652
|
-
ref:
|
|
30653
|
+
ref: nn,
|
|
30653
30654
|
className: cu("email-pane__content-col email-pane__content-col_menu email-pane__content-col_tabs email-pane__col email-pane__col_settings", { "email-pane__col_disabled": E === D }),
|
|
30654
30655
|
children: (!j || M === "bottom") && /* @__PURE__ */ H(Vc, {
|
|
30655
30656
|
className: cu("email-pane__col_settings-inner", { "email-pane__col_settings-inner_reverse": y.menuDirection === "left" }),
|
|
@@ -30659,10 +30660,10 @@ var Qb = class {
|
|
|
30659
30660
|
tabPane: !1
|
|
30660
30661
|
},
|
|
30661
30662
|
activeKey: E,
|
|
30662
|
-
onTabClick:
|
|
30663
|
+
onTabClick: tn,
|
|
30663
30664
|
renderTabBar: cx,
|
|
30664
30665
|
tabPosition: "right",
|
|
30665
|
-
items:
|
|
30666
|
+
items: yn,
|
|
30666
30667
|
tabBarExtraContent: qe && /* @__PURE__ */ H("div", {
|
|
30667
30668
|
style: {
|
|
30668
30669
|
paddingTop: 15,
|
|
@@ -30672,13 +30673,13 @@ var Qb = class {
|
|
|
30672
30673
|
className: "ant-switch_editor-mode",
|
|
30673
30674
|
checkedChildren: "Pro",
|
|
30674
30675
|
unCheckedChildren: "Pro",
|
|
30675
|
-
onChange:
|
|
30676
|
+
onChange: $t,
|
|
30676
30677
|
defaultChecked: bt
|
|
30677
30678
|
}) : /* @__PURE__ */ H(zc, {
|
|
30678
30679
|
className: "ant-switch_editor-mode",
|
|
30679
30680
|
checkedChildren: "Pro",
|
|
30680
30681
|
unCheckedChildren: "Pro",
|
|
30681
|
-
onChange:
|
|
30682
|
+
onChange: $t,
|
|
30682
30683
|
checked: vt
|
|
30683
30684
|
})
|
|
30684
30685
|
})
|
|
@@ -30692,14 +30693,14 @@ var Qb = class {
|
|
|
30692
30693
|
]
|
|
30693
30694
|
}), /* @__PURE__ */ U(K, {
|
|
30694
30695
|
style: {
|
|
30695
|
-
width: `${M === "right" ? 100 -
|
|
30696
|
+
width: `${M === "right" ? 100 - un : M === "bottom" ? 100 : un}%`,
|
|
30696
30697
|
position: "relative",
|
|
30697
|
-
height: M === "bottom" ? `calc(${100 -
|
|
30698
|
+
height: M === "bottom" ? `calc(${100 - un}%)` : "unset",
|
|
30698
30699
|
display: j ? "initial" : "none"
|
|
30699
30700
|
},
|
|
30700
30701
|
children: [/* @__PURE__ */ H("div", {
|
|
30701
30702
|
className: "email-pane__code-divider",
|
|
30702
|
-
onMouseDown:
|
|
30703
|
+
onMouseDown: Vn
|
|
30703
30704
|
}), /* @__PURE__ */ H("div", {
|
|
30704
30705
|
className: "code-mode__pane code-mode__pane_editor email-pane__pane email-pane__pane_editor",
|
|
30705
30706
|
children: /* @__PURE__ */ H("div", {
|
|
@@ -30746,15 +30747,15 @@ var Qb = class {
|
|
|
30746
30747
|
/* @__PURE__ */ H(nx, {}),
|
|
30747
30748
|
/* @__PURE__ */ H(Si, {
|
|
30748
30749
|
open: mt,
|
|
30749
|
-
onCancel:
|
|
30750
|
+
onCancel: en,
|
|
30750
30751
|
initialSlide: gt
|
|
30751
30752
|
}),
|
|
30752
30753
|
/* @__PURE__ */ H(kc, {
|
|
30753
30754
|
title: l("Warning"),
|
|
30754
30755
|
centered: !0,
|
|
30755
30756
|
open: Oe,
|
|
30756
|
-
onOk:
|
|
30757
|
-
onCancel:
|
|
30757
|
+
onOk: bn,
|
|
30758
|
+
onCancel: xn,
|
|
30758
30759
|
children: /* @__PURE__ */ H("p", { children: l("Clear chat history?") })
|
|
30759
30760
|
})
|
|
30760
30761
|
]
|